@openmrs/esm-framework 3.3.2-pre.71 → 3.3.2-pre.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see openmrs-esm-framework.js.LICENSE.txt */
|
|
2
|
-
System.register([],(function(e,t){return{execute:function(){e((()=>{var e={9672:(e,t)=>{!function(){var e=t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function r(e){this.message=e}r.prototype=new Error,r.prototype.name="InvalidCharacterError",e.btoa||(e.btoa=function(e){for(var t,o,i=String(e),a=0,u=n,c="";i.charAt(0|a)||(u="=",a%1);c+=u.charAt(63&t>>8-a%1*8)){if((o=i.charCodeAt(a+=3/4))>255)throw new r("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|o}return c}),e.atob||(e.atob=function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,a=0,u=0,c="";i=t.charAt(u++);~i&&(o=a%4?64*o+i:i,a++%4)?c+=String.fromCharCode(255&o>>(-2*a&6)):0)i=n.indexOf(i);return c})}()},841:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===i)for(var u in n)r.call(n,u)&&n[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6618:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(9233),o=n.n(r),i=n(361),a=n.n(i)()(o());a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.eeld8KBrQxmCmipzUrEP6A\\=\\=>div a:nth-child(1){height:3rem;padding:1.5rem 0 1.5rem 1.2rem;color:#8d8d8d;border-left:.25rem solid transparent;font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.omrs-breakpoint-gt-tablet .eeld8KBrQxmCmipzUrEP6A\\=\\=>div{padding-top:1rem}.omrs-breakpoint-gt-tablet .eeld8KBrQxmCmipzUrEP6A\\=\\=>div a:nth-child(1){height:2rem;color:#8d8d8d;padding:0 0 0 1rem}.eeld8KBrQxmCmipzUrEP6A\\=\\=>div a:nth-child(1):hover{background-color:#e0e0e0;color:#161616;border-left:var(--brand-01)}.eeld8KBrQxmCmipzUrEP6A\\=\\=>div a:nth-child(1):focus{background-color:#e0e0e0;outline:none;color:#161616;border-left:var(--brand-01)}","",{version:3,sources:["webpack://./../esm-styleguide/src/_vars.scss","webpack://./../esm-styleguide/src/left-nav/left-nav.module.scss","webpack://./../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/themes/generated/_mixins.scss","webpack://./../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,+CACE,WAAA,CACA,8BAAA,CACA,aCyCQ,CDxCR,oCAAA,CEugBE,iBAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CArLtB,oBAqLsB,CFxrB1B,2DACE,gBAAA,CAGF,0EACE,WAAA,CACA,aC8BQ,CD7BR,kBAAA,CAGF,qDACE,wBCwBQ,CDvBR,aCyBQ,CDxBR,2BAAA,CAGF,qDACE,wBCkBQ,CDjBR,YAAA,CACA,aCkBQ,CDjBR,2BAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1200px;\n$breakpoint-desktop-min: 1201px;\n$breakpoint-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n",'@import "../vars";\n@import "carbon-components/scss/globals/scss/typography.scss";\n@import "~carbon-components/scss/globals/scss/_spacing.scss";\n\n.link > div a:nth-child(1) {\n height: 3rem;\n padding: 1.5rem 0 1.5rem 1.2rem;\n color: $ui-04;\n border-left: 0.25rem solid transparent;\n @include carbon--type-style("productive-heading-01");\n}\n\n:global(.omrs-breakpoint-gt-tablet) .link > div {\n padding-top: 1rem;\n}\n\n:global(.omrs-breakpoint-gt-tablet) .link > div a:nth-child(1) {\n height: 2rem;\n color: $ui-04;\n padding: 0 0 0 1rem;\n}\n\n.link > div a:nth-child(1):hover {\n background-color: $ui-03;\n color: $ui-05;\n border-left: var(--brand-01);\n}\n\n.link > div a:nth-child(1):focus {\n background-color: $ui-03;\n outline: none;\n color: $ui-05;\n border-left: var(--brand-01);\n}\n',"// Code generated by @carbon/themes. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2019\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import './themes';\n\n/// Define theme variables from a map of tokens\n/// @access public\n/// @param {Map} $theme [$carbon--theme] - Map of theme tokens\n/// @param {Bool} $emit-custom-properties [false] - Output CSS Custom Properties for theme tokens\n/// @content Pass in your custom declaration blocks to be used after the token maps set theming variables.\n///\n/// @example scss\n/// // Default usage\n/// @include carbon--theme();\n///\n/// // Alternate styling (not white theme)\n/// @include carbon--theme($carbon--theme--g90) {\n/// // declarations...\n/// }\n///\n/// // Inline styling\n/// @include carbon--theme($carbon--theme--g90) {\n/// .my-dark-theme {\n/// // declarations...\n/// }\n/// }\n///\n/// @group @carbon/themes\n@mixin carbon--theme(\n $theme: $carbon--theme,\n $emit-custom-properties: false,\n $emit-difference: false\n) {\n $parent-carbon-theme: $carbon--theme;\n $carbon--theme: $theme !global;\n $interactive-01: map-get($theme, 'interactive-01') !global;\n $interactive-02: map-get($theme, 'interactive-02') !global;\n $interactive-03: map-get($theme, 'interactive-03') !global;\n $interactive-04: map-get($theme, 'interactive-04') !global;\n $ui-background: map-get($theme, 'ui-background') !global;\n $ui-01: map-get($theme, 'ui-01') !global;\n $ui-02: map-get($theme, 'ui-02') !global;\n $ui-03: map-get($theme, 'ui-03') !global;\n $ui-04: map-get($theme, 'ui-04') !global;\n $ui-05: map-get($theme, 'ui-05') !global;\n $text-01: map-get($theme, 'text-01') !global;\n $text-02: map-get($theme, 'text-02') !global;\n $text-03: map-get($theme, 'text-03') !global;\n $text-04: map-get($theme, 'text-04') !global;\n $text-05: map-get($theme, 'text-05') !global;\n $text-error: map-get($theme, 'text-error') !global;\n $icon-01: map-get($theme, 'icon-01') !global;\n $icon-02: map-get($theme, 'icon-02') !global;\n $icon-03: map-get($theme, 'icon-03') !global;\n $link-01: map-get($theme, 'link-01') !global;\n $link-02: map-get($theme, 'link-02') !global;\n $inverse-link: map-get($theme, 'inverse-link') !global;\n $field-01: map-get($theme, 'field-01') !global;\n $field-02: map-get($theme, 'field-02') !global;\n $inverse-01: map-get($theme, 'inverse-01') !global;\n $inverse-02: map-get($theme, 'inverse-02') !global;\n $support-01: map-get($theme, 'support-01') !global;\n $support-02: map-get($theme, 'support-02') !global;\n $support-03: map-get($theme, 'support-03') !global;\n $support-04: map-get($theme, 'support-04') !global;\n $inverse-support-01: map-get($theme, 'inverse-support-01') !global;\n $inverse-support-02: map-get($theme, 'inverse-support-02') !global;\n $inverse-support-03: map-get($theme, 'inverse-support-03') !global;\n $inverse-support-04: map-get($theme, 'inverse-support-04') !global;\n $overlay-01: map-get($theme, 'overlay-01') !global;\n $danger-01: map-get($theme, 'danger-01') !global;\n $danger-02: map-get($theme, 'danger-02') !global;\n $focus: map-get($theme, 'focus') !global;\n $inverse-focus-ui: map-get($theme, 'inverse-focus-ui') !global;\n $hover-primary: map-get($theme, 'hover-primary') !global;\n $active-primary: map-get($theme, 'active-primary') !global;\n $hover-primary-text: map-get($theme, 'hover-primary-text') !global;\n $hover-secondary: map-get($theme, 'hover-secondary') !global;\n $active-secondary: map-get($theme, 'active-secondary') !global;\n $hover-tertiary: map-get($theme, 'hover-tertiary') !global;\n $active-tertiary: map-get($theme, 'active-tertiary') !global;\n $hover-ui: map-get($theme, 'hover-ui') !global;\n $hover-light-ui: map-get($theme, 'hover-light-ui') !global;\n $hover-selected-ui: map-get($theme, 'hover-selected-ui') !global;\n $active-ui: map-get($theme, 'active-ui') !global;\n $active-light-ui: map-get($theme, 'active-light-ui') !global;\n $selected-ui: map-get($theme, 'selected-ui') !global;\n $selected-light-ui: map-get($theme, 'selected-light-ui') !global;\n $inverse-hover-ui: map-get($theme, 'inverse-hover-ui') !global;\n $hover-danger: map-get($theme, 'hover-danger') !global;\n $active-danger: map-get($theme, 'active-danger') !global;\n $hover-row: map-get($theme, 'hover-row') !global;\n $visited-link: map-get($theme, 'visited-link') !global;\n $disabled-01: map-get($theme, 'disabled-01') !global;\n $disabled-02: map-get($theme, 'disabled-02') !global;\n $disabled-03: map-get($theme, 'disabled-03') !global;\n $highlight: map-get($theme, 'highlight') !global;\n $decorative-01: map-get($theme, 'decorative-01') !global;\n $button-separator: map-get($theme, 'button-separator') !global;\n $skeleton-01: map-get($theme, 'skeleton-01') !global;\n $skeleton-02: map-get($theme, 'skeleton-02') !global;\n $brand-01: map-get($theme, 'brand-01') !global;\n $brand-02: map-get($theme, 'brand-02') !global;\n $brand-03: map-get($theme, 'brand-03') !global;\n $active-01: map-get($theme, 'active-01') !global;\n $hover-field: map-get($theme, 'hover-field') !global;\n $danger: map-get($theme, 'danger') !global;\n $caption-01: map-get($theme, 'caption-01') !global;\n $label-01: map-get($theme, 'label-01') !global;\n $helper-text-01: map-get($theme, 'helper-text-01') !global;\n $body-short-01: map-get($theme, 'body-short-01') !global;\n $body-long-01: map-get($theme, 'body-long-01') !global;\n $body-short-02: map-get($theme, 'body-short-02') !global;\n $body-long-02: map-get($theme, 'body-long-02') !global;\n $code-01: map-get($theme, 'code-01') !global;\n $code-02: map-get($theme, 'code-02') !global;\n $heading-01: map-get($theme, 'heading-01') !global;\n $productive-heading-01: map-get($theme, 'productive-heading-01') !global;\n $heading-02: map-get($theme, 'heading-02') !global;\n $productive-heading-02: map-get($theme, 'productive-heading-02') !global;\n $productive-heading-03: map-get($theme, 'productive-heading-03') !global;\n $productive-heading-04: map-get($theme, 'productive-heading-04') !global;\n $productive-heading-05: map-get($theme, 'productive-heading-05') !global;\n $productive-heading-06: map-get($theme, 'productive-heading-06') !global;\n $productive-heading-07: map-get($theme, 'productive-heading-07') !global;\n $expressive-heading-01: map-get($theme, 'expressive-heading-01') !global;\n $expressive-heading-02: map-get($theme, 'expressive-heading-02') !global;\n $expressive-heading-03: map-get($theme, 'expressive-heading-03') !global;\n $expressive-heading-04: map-get($theme, 'expressive-heading-04') !global;\n $expressive-heading-05: map-get($theme, 'expressive-heading-05') !global;\n $expressive-heading-06: map-get($theme, 'expressive-heading-06') !global;\n $expressive-paragraph-01: map-get($theme, 'expressive-paragraph-01') !global;\n $quotation-01: map-get($theme, 'quotation-01') !global;\n $quotation-02: map-get($theme, 'quotation-02') !global;\n $display-01: map-get($theme, 'display-01') !global;\n $display-02: map-get($theme, 'display-02') !global;\n $display-03: map-get($theme, 'display-03') !global;\n $display-04: map-get($theme, 'display-04') !global;\n $spacing-01: map-get($theme, 'spacing-01') !global;\n $spacing-02: map-get($theme, 'spacing-02') !global;\n $spacing-03: map-get($theme, 'spacing-03') !global;\n $spacing-04: map-get($theme, 'spacing-04') !global;\n $spacing-05: map-get($theme, 'spacing-05') !global;\n $spacing-06: map-get($theme, 'spacing-06') !global;\n $spacing-07: map-get($theme, 'spacing-07') !global;\n $spacing-08: map-get($theme, 'spacing-08') !global;\n $spacing-09: map-get($theme, 'spacing-09') !global;\n $spacing-10: map-get($theme, 'spacing-10') !global;\n $spacing-11: map-get($theme, 'spacing-11') !global;\n $spacing-12: map-get($theme, 'spacing-12') !global;\n $fluid-spacing-01: map-get($theme, 'fluid-spacing-01') !global;\n $fluid-spacing-02: map-get($theme, 'fluid-spacing-02') !global;\n $fluid-spacing-03: map-get($theme, 'fluid-spacing-03') !global;\n $fluid-spacing-04: map-get($theme, 'fluid-spacing-04') !global;\n $layout-01: map-get($theme, 'layout-01') !global;\n $layout-02: map-get($theme, 'layout-02') !global;\n $layout-03: map-get($theme, 'layout-03') !global;\n $layout-04: map-get($theme, 'layout-04') !global;\n $layout-05: map-get($theme, 'layout-05') !global;\n $layout-06: map-get($theme, 'layout-06') !global;\n $layout-07: map-get($theme, 'layout-07') !global;\n $container-01: map-get($theme, 'container-01') !global;\n $container-02: map-get($theme, 'container-02') !global;\n $container-03: map-get($theme, 'container-03') !global;\n $container-04: map-get($theme, 'container-04') !global;\n $container-05: map-get($theme, 'container-05') !global;\n $icon-size-01: map-get($theme, 'icon-size-01') !global;\n $icon-size-02: map-get($theme, 'icon-size-02') !global;\n\n @if global-variable-exists('feature-flags') and\n map-get($feature-flags, 'enable-css-custom-properties')\n {\n $interactive-01: var(\n --#{$custom-property-prefix}-interactive-01,\n map-get($theme, 'interactive-01')\n ) !global;\n $interactive-02: var(\n --#{$custom-property-prefix}-interactive-02,\n map-get($theme, 'interactive-02')\n ) !global;\n $interactive-03: var(\n --#{$custom-property-prefix}-interactive-03,\n map-get($theme, 'interactive-03')\n ) !global;\n $interactive-04: var(\n --#{$custom-property-prefix}-interactive-04,\n map-get($theme, 'interactive-04')\n ) !global;\n $ui-background: var(\n --#{$custom-property-prefix}-ui-background,\n map-get($theme, 'ui-background')\n ) !global;\n $ui-01: var(\n --#{$custom-property-prefix}-ui-01,\n map-get($theme, 'ui-01')\n ) !global;\n $ui-02: var(\n --#{$custom-property-prefix}-ui-02,\n map-get($theme, 'ui-02')\n ) !global;\n $ui-03: var(\n --#{$custom-property-prefix}-ui-03,\n map-get($theme, 'ui-03')\n ) !global;\n $ui-04: var(\n --#{$custom-property-prefix}-ui-04,\n map-get($theme, 'ui-04')\n ) !global;\n $ui-05: var(\n --#{$custom-property-prefix}-ui-05,\n map-get($theme, 'ui-05')\n ) !global;\n $text-01: var(\n --#{$custom-property-prefix}-text-01,\n map-get($theme, 'text-01')\n ) !global;\n $text-02: var(\n --#{$custom-property-prefix}-text-02,\n map-get($theme, 'text-02')\n ) !global;\n $text-03: var(\n --#{$custom-property-prefix}-text-03,\n map-get($theme, 'text-03')\n ) !global;\n $text-04: var(\n --#{$custom-property-prefix}-text-04,\n map-get($theme, 'text-04')\n ) !global;\n $text-05: var(\n --#{$custom-property-prefix}-text-05,\n map-get($theme, 'text-05')\n ) !global;\n $text-error: var(\n --#{$custom-property-prefix}-text-error,\n map-get($theme, 'text-error')\n ) !global;\n $icon-01: var(\n --#{$custom-property-prefix}-icon-01,\n map-get($theme, 'icon-01')\n ) !global;\n $icon-02: var(\n --#{$custom-property-prefix}-icon-02,\n map-get($theme, 'icon-02')\n ) !global;\n $icon-03: var(\n --#{$custom-property-prefix}-icon-03,\n map-get($theme, 'icon-03')\n ) !global;\n $link-01: var(\n --#{$custom-property-prefix}-link-01,\n map-get($theme, 'link-01')\n ) !global;\n $link-02: var(\n --#{$custom-property-prefix}-link-02,\n map-get($theme, 'link-02')\n ) !global;\n $inverse-link: var(\n --#{$custom-property-prefix}-inverse-link,\n map-get($theme, 'inverse-link')\n ) !global;\n $field-01: var(\n --#{$custom-property-prefix}-field-01,\n map-get($theme, 'field-01')\n ) !global;\n $field-02: var(\n --#{$custom-property-prefix}-field-02,\n map-get($theme, 'field-02')\n ) !global;\n $inverse-01: var(\n --#{$custom-property-prefix}-inverse-01,\n map-get($theme, 'inverse-01')\n ) !global;\n $inverse-02: var(\n --#{$custom-property-prefix}-inverse-02,\n map-get($theme, 'inverse-02')\n ) !global;\n $support-01: var(\n --#{$custom-property-prefix}-support-01,\n map-get($theme, 'support-01')\n ) !global;\n $support-02: var(\n --#{$custom-property-prefix}-support-02,\n map-get($theme, 'support-02')\n ) !global;\n $support-03: var(\n --#{$custom-property-prefix}-support-03,\n map-get($theme, 'support-03')\n ) !global;\n $support-04: var(\n --#{$custom-property-prefix}-support-04,\n map-get($theme, 'support-04')\n ) !global;\n $inverse-support-01: var(\n --#{$custom-property-prefix}-inverse-support-01,\n map-get($theme, 'inverse-support-01')\n ) !global;\n $inverse-support-02: var(\n --#{$custom-property-prefix}-inverse-support-02,\n map-get($theme, 'inverse-support-02')\n ) !global;\n $inverse-support-03: var(\n --#{$custom-property-prefix}-inverse-support-03,\n map-get($theme, 'inverse-support-03')\n ) !global;\n $inverse-support-04: var(\n --#{$custom-property-prefix}-inverse-support-04,\n map-get($theme, 'inverse-support-04')\n ) !global;\n $overlay-01: var(\n --#{$custom-property-prefix}-overlay-01,\n map-get($theme, 'overlay-01')\n ) !global;\n $danger-01: var(\n --#{$custom-property-prefix}-danger-01,\n map-get($theme, 'danger-01')\n ) !global;\n $danger-02: var(\n --#{$custom-property-prefix}-danger-02,\n map-get($theme, 'danger-02')\n ) !global;\n $focus: var(\n --#{$custom-property-prefix}-focus,\n map-get($theme, 'focus')\n ) !global;\n $inverse-focus-ui: var(\n --#{$custom-property-prefix}-inverse-focus-ui,\n map-get($theme, 'inverse-focus-ui')\n ) !global;\n $hover-primary: var(\n --#{$custom-property-prefix}-hover-primary,\n map-get($theme, 'hover-primary')\n ) !global;\n $active-primary: var(\n --#{$custom-property-prefix}-active-primary,\n map-get($theme, 'active-primary')\n ) !global;\n $hover-primary-text: var(\n --#{$custom-property-prefix}-hover-primary-text,\n map-get($theme, 'hover-primary-text')\n ) !global;\n $hover-secondary: var(\n --#{$custom-property-prefix}-hover-secondary,\n map-get($theme, 'hover-secondary')\n ) !global;\n $active-secondary: var(\n --#{$custom-property-prefix}-active-secondary,\n map-get($theme, 'active-secondary')\n ) !global;\n $hover-tertiary: var(\n --#{$custom-property-prefix}-hover-tertiary,\n map-get($theme, 'hover-tertiary')\n ) !global;\n $active-tertiary: var(\n --#{$custom-property-prefix}-active-tertiary,\n map-get($theme, 'active-tertiary')\n ) !global;\n $hover-ui: var(\n --#{$custom-property-prefix}-hover-ui,\n map-get($theme, 'hover-ui')\n ) !global;\n $hover-light-ui: var(\n --#{$custom-property-prefix}-hover-light-ui,\n map-get($theme, 'hover-light-ui')\n ) !global;\n $hover-selected-ui: var(\n --#{$custom-property-prefix}-hover-selected-ui,\n map-get($theme, 'hover-selected-ui')\n ) !global;\n $active-ui: var(\n --#{$custom-property-prefix}-active-ui,\n map-get($theme, 'active-ui')\n ) !global;\n $active-light-ui: var(\n --#{$custom-property-prefix}-active-light-ui,\n map-get($theme, 'active-light-ui')\n ) !global;\n $selected-ui: var(\n --#{$custom-property-prefix}-selected-ui,\n map-get($theme, 'selected-ui')\n ) !global;\n $selected-light-ui: var(\n --#{$custom-property-prefix}-selected-light-ui,\n map-get($theme, 'selected-light-ui')\n ) !global;\n $inverse-hover-ui: var(\n --#{$custom-property-prefix}-inverse-hover-ui,\n map-get($theme, 'inverse-hover-ui')\n ) !global;\n $hover-danger: var(\n --#{$custom-property-prefix}-hover-danger,\n map-get($theme, 'hover-danger')\n ) !global;\n $active-danger: var(\n --#{$custom-property-prefix}-active-danger,\n map-get($theme, 'active-danger')\n ) !global;\n $hover-row: var(\n --#{$custom-property-prefix}-hover-row,\n map-get($theme, 'hover-row')\n ) !global;\n $visited-link: var(\n --#{$custom-property-prefix}-visited-link,\n map-get($theme, 'visited-link')\n ) !global;\n $disabled-01: var(\n --#{$custom-property-prefix}-disabled-01,\n map-get($theme, 'disabled-01')\n ) !global;\n $disabled-02: var(\n --#{$custom-property-prefix}-disabled-02,\n map-get($theme, 'disabled-02')\n ) !global;\n $disabled-03: var(\n --#{$custom-property-prefix}-disabled-03,\n map-get($theme, 'disabled-03')\n ) !global;\n $highlight: var(\n --#{$custom-property-prefix}-highlight,\n map-get($theme, 'highlight')\n ) !global;\n $decorative-01: var(\n --#{$custom-property-prefix}-decorative-01,\n map-get($theme, 'decorative-01')\n ) !global;\n $button-separator: var(\n --#{$custom-property-prefix}-button-separator,\n map-get($theme, 'button-separator')\n ) !global;\n $skeleton-01: var(\n --#{$custom-property-prefix}-skeleton-01,\n map-get($theme, 'skeleton-01')\n ) !global;\n $skeleton-02: var(\n --#{$custom-property-prefix}-skeleton-02,\n map-get($theme, 'skeleton-02')\n ) !global;\n $brand-01: var(\n --#{$custom-property-prefix}-brand-01,\n map-get($theme, 'brand-01')\n ) !global;\n $brand-02: var(\n --#{$custom-property-prefix}-brand-02,\n map-get($theme, 'brand-02')\n ) !global;\n $brand-03: var(\n --#{$custom-property-prefix}-brand-03,\n map-get($theme, 'brand-03')\n ) !global;\n $active-01: var(\n --#{$custom-property-prefix}-active-01,\n map-get($theme, 'active-01')\n ) !global;\n $hover-field: var(\n --#{$custom-property-prefix}-hover-field,\n map-get($theme, 'hover-field')\n ) !global;\n $danger: var(\n --#{$custom-property-prefix}-danger,\n map-get($theme, 'danger')\n ) !global;\n $spacing-01: var(\n --#{$custom-property-prefix}-spacing-01,\n map-get($theme, 'spacing-01')\n ) !global;\n $spacing-02: var(\n --#{$custom-property-prefix}-spacing-02,\n map-get($theme, 'spacing-02')\n ) !global;\n $spacing-03: var(\n --#{$custom-property-prefix}-spacing-03,\n map-get($theme, 'spacing-03')\n ) !global;\n $spacing-04: var(\n --#{$custom-property-prefix}-spacing-04,\n map-get($theme, 'spacing-04')\n ) !global;\n $spacing-05: var(\n --#{$custom-property-prefix}-spacing-05,\n map-get($theme, 'spacing-05')\n ) !global;\n $spacing-06: var(\n --#{$custom-property-prefix}-spacing-06,\n map-get($theme, 'spacing-06')\n ) !global;\n $spacing-07: var(\n --#{$custom-property-prefix}-spacing-07,\n map-get($theme, 'spacing-07')\n ) !global;\n $spacing-08: var(\n --#{$custom-property-prefix}-spacing-08,\n map-get($theme, 'spacing-08')\n ) !global;\n $spacing-09: var(\n --#{$custom-property-prefix}-spacing-09,\n map-get($theme, 'spacing-09')\n ) !global;\n $spacing-10: var(\n --#{$custom-property-prefix}-spacing-10,\n map-get($theme, 'spacing-10')\n ) !global;\n $spacing-11: var(\n --#{$custom-property-prefix}-spacing-11,\n map-get($theme, 'spacing-11')\n ) !global;\n $spacing-12: var(\n --#{$custom-property-prefix}-spacing-12,\n map-get($theme, 'spacing-12')\n ) !global;\n $fluid-spacing-01: var(\n --#{$custom-property-prefix}-fluid-spacing-01,\n map-get($theme, 'fluid-spacing-01')\n ) !global;\n $fluid-spacing-02: var(\n --#{$custom-property-prefix}-fluid-spacing-02,\n map-get($theme, 'fluid-spacing-02')\n ) !global;\n $fluid-spacing-03: var(\n --#{$custom-property-prefix}-fluid-spacing-03,\n map-get($theme, 'fluid-spacing-03')\n ) !global;\n $fluid-spacing-04: var(\n --#{$custom-property-prefix}-fluid-spacing-04,\n map-get($theme, 'fluid-spacing-04')\n ) !global;\n $layout-01: var(\n --#{$custom-property-prefix}-layout-01,\n map-get($theme, 'layout-01')\n ) !global;\n $layout-02: var(\n --#{$custom-property-prefix}-layout-02,\n map-get($theme, 'layout-02')\n ) !global;\n $layout-03: var(\n --#{$custom-property-prefix}-layout-03,\n map-get($theme, 'layout-03')\n ) !global;\n $layout-04: var(\n --#{$custom-property-prefix}-layout-04,\n map-get($theme, 'layout-04')\n ) !global;\n $layout-05: var(\n --#{$custom-property-prefix}-layout-05,\n map-get($theme, 'layout-05')\n ) !global;\n $layout-06: var(\n --#{$custom-property-prefix}-layout-06,\n map-get($theme, 'layout-06')\n ) !global;\n $layout-07: var(\n --#{$custom-property-prefix}-layout-07,\n map-get($theme, 'layout-07')\n ) !global;\n $container-01: var(\n --#{$custom-property-prefix}-container-01,\n map-get($theme, 'container-01')\n ) !global;\n $container-02: var(\n --#{$custom-property-prefix}-container-02,\n map-get($theme, 'container-02')\n ) !global;\n $container-03: var(\n --#{$custom-property-prefix}-container-03,\n map-get($theme, 'container-03')\n ) !global;\n $container-04: var(\n --#{$custom-property-prefix}-container-04,\n map-get($theme, 'container-04')\n ) !global;\n $container-05: var(\n --#{$custom-property-prefix}-container-05,\n map-get($theme, 'container-05')\n ) !global;\n $icon-size-01: var(\n --#{$custom-property-prefix}-icon-size-01,\n map-get($theme, 'icon-size-01')\n ) !global;\n $icon-size-02: var(\n --#{$custom-property-prefix}-icon-size-02,\n map-get($theme, 'icon-size-02')\n ) !global;\n }\n @if $emit-custom-properties == true {\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'interactive-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'interactive-01',\n map-get($theme, 'interactive-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'interactive-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'interactive-02',\n map-get($theme, 'interactive-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'interactive-03',\n $emit-difference\n )\n {\n @include custom-property(\n 'interactive-03',\n map-get($theme, 'interactive-03')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'interactive-04',\n $emit-difference\n )\n {\n @include custom-property(\n 'interactive-04',\n map-get($theme, 'interactive-04')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'ui-background',\n $emit-difference\n )\n {\n @include custom-property(\n 'ui-background',\n map-get($theme, 'ui-background')\n );\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'ui-01', $emit-difference) {\n @include custom-property('ui-01', map-get($theme, 'ui-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'ui-02', $emit-difference) {\n @include custom-property('ui-02', map-get($theme, 'ui-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'ui-03', $emit-difference) {\n @include custom-property('ui-03', map-get($theme, 'ui-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'ui-04', $emit-difference) {\n @include custom-property('ui-04', map-get($theme, 'ui-04'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'ui-05', $emit-difference) {\n @include custom-property('ui-05', map-get($theme, 'ui-05'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'text-01', $emit-difference) {\n @include custom-property('text-01', map-get($theme, 'text-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'text-02', $emit-difference) {\n @include custom-property('text-02', map-get($theme, 'text-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'text-03', $emit-difference) {\n @include custom-property('text-03', map-get($theme, 'text-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'text-04', $emit-difference) {\n @include custom-property('text-04', map-get($theme, 'text-04'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'text-05', $emit-difference) {\n @include custom-property('text-05', map-get($theme, 'text-05'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'text-error',\n $emit-difference\n )\n {\n @include custom-property('text-error', map-get($theme, 'text-error'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'icon-01', $emit-difference) {\n @include custom-property('icon-01', map-get($theme, 'icon-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'icon-02', $emit-difference) {\n @include custom-property('icon-02', map-get($theme, 'icon-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'icon-03', $emit-difference) {\n @include custom-property('icon-03', map-get($theme, 'icon-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'link-01', $emit-difference) {\n @include custom-property('link-01', map-get($theme, 'link-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'link-02', $emit-difference) {\n @include custom-property('link-02', map-get($theme, 'link-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-link',\n $emit-difference\n )\n {\n @include custom-property('inverse-link', map-get($theme, 'inverse-link'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'field-01', $emit-difference)\n {\n @include custom-property('field-01', map-get($theme, 'field-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'field-02', $emit-difference)\n {\n @include custom-property('field-02', map-get($theme, 'field-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-01',\n $emit-difference\n )\n {\n @include custom-property('inverse-01', map-get($theme, 'inverse-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-02',\n $emit-difference\n )\n {\n @include custom-property('inverse-02', map-get($theme, 'inverse-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'support-01',\n $emit-difference\n )\n {\n @include custom-property('support-01', map-get($theme, 'support-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'support-02',\n $emit-difference\n )\n {\n @include custom-property('support-02', map-get($theme, 'support-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'support-03',\n $emit-difference\n )\n {\n @include custom-property('support-03', map-get($theme, 'support-03'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'support-04',\n $emit-difference\n )\n {\n @include custom-property('support-04', map-get($theme, 'support-04'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-support-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-support-01',\n map-get($theme, 'inverse-support-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-support-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-support-02',\n map-get($theme, 'inverse-support-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-support-03',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-support-03',\n map-get($theme, 'inverse-support-03')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-support-04',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-support-04',\n map-get($theme, 'inverse-support-04')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'overlay-01',\n $emit-difference\n )\n {\n @include custom-property('overlay-01', map-get($theme, 'overlay-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'danger-01', $emit-difference)\n {\n @include custom-property('danger-01', map-get($theme, 'danger-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'danger-02', $emit-difference)\n {\n @include custom-property('danger-02', map-get($theme, 'danger-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'focus', $emit-difference) {\n @include custom-property('focus', map-get($theme, 'focus'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-focus-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-focus-ui',\n map-get($theme, 'inverse-focus-ui')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-primary',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-primary',\n map-get($theme, 'hover-primary')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'active-primary',\n $emit-difference\n )\n {\n @include custom-property(\n 'active-primary',\n map-get($theme, 'active-primary')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-primary-text',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-primary-text',\n map-get($theme, 'hover-primary-text')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-secondary',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-secondary',\n map-get($theme, 'hover-secondary')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'active-secondary',\n $emit-difference\n )\n {\n @include custom-property(\n 'active-secondary',\n map-get($theme, 'active-secondary')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-tertiary',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-tertiary',\n map-get($theme, 'hover-tertiary')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'active-tertiary',\n $emit-difference\n )\n {\n @include custom-property(\n 'active-tertiary',\n map-get($theme, 'active-tertiary')\n );\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'hover-ui', $emit-difference)\n {\n @include custom-property('hover-ui', map-get($theme, 'hover-ui'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-light-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-light-ui',\n map-get($theme, 'hover-light-ui')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-selected-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-selected-ui',\n map-get($theme, 'hover-selected-ui')\n );\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'active-ui', $emit-difference)\n {\n @include custom-property('active-ui', map-get($theme, 'active-ui'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'active-light-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'active-light-ui',\n map-get($theme, 'active-light-ui')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'selected-ui',\n $emit-difference\n )\n {\n @include custom-property('selected-ui', map-get($theme, 'selected-ui'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'selected-light-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'selected-light-ui',\n map-get($theme, 'selected-light-ui')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-hover-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-hover-ui',\n map-get($theme, 'inverse-hover-ui')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-danger',\n $emit-difference\n )\n {\n @include custom-property('hover-danger', map-get($theme, 'hover-danger'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'active-danger',\n $emit-difference\n )\n {\n @include custom-property(\n 'active-danger',\n map-get($theme, 'active-danger')\n );\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'hover-row', $emit-difference)\n {\n @include custom-property('hover-row', map-get($theme, 'hover-row'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'visited-link',\n $emit-difference\n )\n {\n @include custom-property('visited-link', map-get($theme, 'visited-link'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'disabled-01',\n $emit-difference\n )\n {\n @include custom-property('disabled-01', map-get($theme, 'disabled-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'disabled-02',\n $emit-difference\n )\n {\n @include custom-property('disabled-02', map-get($theme, 'disabled-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'disabled-03',\n $emit-difference\n )\n {\n @include custom-property('disabled-03', map-get($theme, 'disabled-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'highlight', $emit-difference)\n {\n @include custom-property('highlight', map-get($theme, 'highlight'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'decorative-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'decorative-01',\n map-get($theme, 'decorative-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'button-separator',\n $emit-difference\n )\n {\n @include custom-property(\n 'button-separator',\n map-get($theme, 'button-separator')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'skeleton-01',\n $emit-difference\n )\n {\n @include custom-property('skeleton-01', map-get($theme, 'skeleton-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'skeleton-02',\n $emit-difference\n )\n {\n @include custom-property('skeleton-02', map-get($theme, 'skeleton-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'brand-01', $emit-difference)\n {\n @include custom-property('brand-01', map-get($theme, 'brand-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'brand-02', $emit-difference)\n {\n @include custom-property('brand-02', map-get($theme, 'brand-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'brand-03', $emit-difference)\n {\n @include custom-property('brand-03', map-get($theme, 'brand-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'active-01', $emit-difference)\n {\n @include custom-property('active-01', map-get($theme, 'active-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-field',\n $emit-difference\n )\n {\n @include custom-property('hover-field', map-get($theme, 'hover-field'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'danger', $emit-difference) {\n @include custom-property('danger', map-get($theme, 'danger'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'caption-01',\n $emit-difference\n )\n {\n @include custom-property('caption-01', map-get($theme, 'caption-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'label-01', $emit-difference)\n {\n @include custom-property('label-01', map-get($theme, 'label-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'helper-text-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'helper-text-01',\n map-get($theme, 'helper-text-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'body-short-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'body-short-01',\n map-get($theme, 'body-short-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'body-long-01',\n $emit-difference\n )\n {\n @include custom-property('body-long-01', map-get($theme, 'body-long-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'body-short-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'body-short-02',\n map-get($theme, 'body-short-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'body-long-02',\n $emit-difference\n )\n {\n @include custom-property('body-long-02', map-get($theme, 'body-long-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'code-01', $emit-difference) {\n @include custom-property('code-01', map-get($theme, 'code-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'code-02', $emit-difference) {\n @include custom-property('code-02', map-get($theme, 'code-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'heading-01',\n $emit-difference\n )\n {\n @include custom-property('heading-01', map-get($theme, 'heading-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-01',\n map-get($theme, 'productive-heading-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'heading-02',\n $emit-difference\n )\n {\n @include custom-property('heading-02', map-get($theme, 'heading-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-02',\n map-get($theme, 'productive-heading-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-03',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-03',\n map-get($theme, 'productive-heading-03')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-04',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-04',\n map-get($theme, 'productive-heading-04')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-05',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-05',\n map-get($theme, 'productive-heading-05')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-06',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-06',\n map-get($theme, 'productive-heading-06')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-07',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-07',\n map-get($theme, 'productive-heading-07')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-01',\n map-get($theme, 'expressive-heading-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-02',\n map-get($theme, 'expressive-heading-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-03',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-03',\n map-get($theme, 'expressive-heading-03')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-04',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-04',\n map-get($theme, 'expressive-heading-04')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-05',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-05',\n map-get($theme, 'expressive-heading-05')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-06',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-06',\n map-get($theme, 'expressive-heading-06')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-paragraph-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-paragraph-01',\n map-get($theme, 'expressive-paragraph-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'quotation-01',\n $emit-difference\n )\n {\n @include custom-property('quotation-01', map-get($theme, 'quotation-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'quotation-02',\n $emit-difference\n )\n {\n @include custom-property('quotation-02', map-get($theme, 'quotation-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'display-01',\n $emit-difference\n )\n {\n @include custom-property('display-01', map-get($theme, 'display-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'display-02',\n $emit-difference\n )\n {\n @include custom-property('display-02', map-get($theme, 'display-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'display-03',\n $emit-difference\n )\n {\n @include custom-property('display-03', map-get($theme, 'display-03'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'display-04',\n $emit-difference\n )\n {\n @include custom-property('display-04', map-get($theme, 'display-04'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-01',\n $emit-difference\n )\n {\n @include custom-property('spacing-01', map-get($theme, 'spacing-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-02',\n $emit-difference\n )\n {\n @include custom-property('spacing-02', map-get($theme, 'spacing-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-03',\n $emit-difference\n )\n {\n @include custom-property('spacing-03', map-get($theme, 'spacing-03'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-04',\n $emit-difference\n )\n {\n @include custom-property('spacing-04', map-get($theme, 'spacing-04'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-05',\n $emit-difference\n )\n {\n @include custom-property('spacing-05', map-get($theme, 'spacing-05'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-06',\n $emit-difference\n )\n {\n @include custom-property('spacing-06', map-get($theme, 'spacing-06'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-07',\n $emit-difference\n )\n {\n @include custom-property('spacing-07', map-get($theme, 'spacing-07'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-08',\n $emit-difference\n )\n {\n @include custom-property('spacing-08', map-get($theme, 'spacing-08'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-09',\n $emit-difference\n )\n {\n @include custom-property('spacing-09', map-get($theme, 'spacing-09'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-10',\n $emit-difference\n )\n {\n @include custom-property('spacing-10', map-get($theme, 'spacing-10'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-11',\n $emit-difference\n )\n {\n @include custom-property('spacing-11', map-get($theme, 'spacing-11'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-12',\n $emit-difference\n )\n {\n @include custom-property('spacing-12', map-get($theme, 'spacing-12'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'fluid-spacing-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'fluid-spacing-01',\n map-get($theme, 'fluid-spacing-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'fluid-spacing-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'fluid-spacing-02',\n map-get($theme, 'fluid-spacing-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'fluid-spacing-03',\n $emit-difference\n )\n {\n @include custom-property(\n 'fluid-spacing-03',\n map-get($theme, 'fluid-spacing-03')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'fluid-spacing-04',\n $emit-difference\n )\n {\n @include custom-property(\n 'fluid-spacing-04',\n map-get($theme, 'fluid-spacing-04')\n );\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-01', $emit-difference)\n {\n @include custom-property('layout-01', map-get($theme, 'layout-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-02', $emit-difference)\n {\n @include custom-property('layout-02', map-get($theme, 'layout-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-03', $emit-difference)\n {\n @include custom-property('layout-03', map-get($theme, 'layout-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-04', $emit-difference)\n {\n @include custom-property('layout-04', map-get($theme, 'layout-04'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-05', $emit-difference)\n {\n @include custom-property('layout-05', map-get($theme, 'layout-05'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-06', $emit-difference)\n {\n @include custom-property('layout-06', map-get($theme, 'layout-06'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-07', $emit-difference)\n {\n @include custom-property('layout-07', map-get($theme, 'layout-07'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'container-01',\n $emit-difference\n )\n {\n @include custom-property('container-01', map-get($theme, 'container-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'container-02',\n $emit-difference\n )\n {\n @include custom-property('container-02', map-get($theme, 'container-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'container-03',\n $emit-difference\n )\n {\n @include custom-property('container-03', map-get($theme, 'container-03'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'container-04',\n $emit-difference\n )\n {\n @include custom-property('container-04', map-get($theme, 'container-04'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'container-05',\n $emit-difference\n )\n {\n @include custom-property('container-05', map-get($theme, 'container-05'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'icon-size-01',\n $emit-difference\n )\n {\n @include custom-property('icon-size-01', map-get($theme, 'icon-size-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'icon-size-02',\n $emit-difference\n )\n {\n @include custom-property('icon-size-02', map-get($theme, 'icon-size-02'));\n }\n }\n\n @content;\n\n // Reset to default theme after apply in content\n @if $carbon--theme != $parent-carbon-theme {\n $carbon--theme: $parent-carbon-theme !global;\n\n @include carbon--theme();\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import '../layout/breakpoint';\n@import 'font-family';\n@import 'scale';\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$caption-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$helper-text-01: (\n font-size: carbon--type-scale(1),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: map-merge(\n $heading-01,\n (\n line-height: 1.25,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: map-merge(\n $heading-02,\n (\n line-height: 1.5,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(5),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(8),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n font-weight: carbon--font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: carbon--type-scale(6),\n font-weight: carbon--font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(5),\n ),\n lg: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n label-01: $label-01,\n helper-text-01: $helper-text-01,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n);\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return $value / ($value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: $carbon--grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map-remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map-get($type-styles, breakpoints) {\n @include carbon--breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: $carbon--grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map-get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map-get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map-remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map-get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map-get($type-styles, font-size);\n $min-font-size: map-get($type-styles, font-size);\n @if map-has-key($fluid-breakpoint, font-size) {\n $min-font-size: map-get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map-get($breakpoint, width);\n $min-vw: map-get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: carbon--breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map-has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: carbon--breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map-get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map-get(\n map-get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map-get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n$custom-property-prefix: 'cds' !default;\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin carbon--type-style(\n $name,\n $fluid: false,\n $breakpoints: $carbon--grid-breakpoints\n) {\n @if not map-has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map-get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map-has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @if global-variable-exists('feature-flags') and\n map-get($feature-flags, 'enable-css-custom-properties')\n {\n @include custom-properties($name, $token);\n } @else {\n // Otherwise, we just include all the property declarations directly on the\n // selector\n @include properties(map-remove($token, 'breakpoints'));\n }\n }\n}\n"],sourceRoot:""}]),a.locals={link:"eeld8KBrQxmCmipzUrEP6A=="};const u=a},361:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},9233:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n,r,o=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[1],a=o[3];if(!a)return i;if("function"==typeof btoa){var u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),s="/*# ".concat(c," */"),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(l).concat([s]).join("\n")}return[i].join("\n")}},7530:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",u="week",c="month",s="quarter",l="year",f="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:l,w:u,d:a,D:f,h:i,m:o,s:r,ms:n,Q:s}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},g="en",b={};b[g]=m;var w=function(e){return e instanceof E},_=function e(t,n,r){var o;if(!t)return g;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;b[u]=t,o=u}return!r&&o&&(g=o),o||!r&&g},x=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},S=v;S.l=_,S.i=w,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=_(e.locale,null,!0),this.parse(e)}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return x(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<x(e)},y.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,s=!!S.u(t)||t,p=S.p(e),d=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return s?r:r.endOf(a)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,y=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(p){case l:return s?d(1,0):d(31,11);case c:return s?d(1,y):d(0,y+1);case u:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return d(s?v-w:v+(6-w),y);case a:case f:return h(g+"Hours",0);case i:return h(g+"Minutes",1);case o:return h(g+"Seconds",2);case r:return h(g+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var u,s=S.p(e),p="set"+(this.$u?"UTC":""),d=(u={},u[a]=p+"Date",u[f]=p+"Date",u[c]=p+"Month",u[l]=p+"FullYear",u[i]=p+"Hours",u[o]=p+"Minutes",u[r]=p+"Seconds",u[n]=p+"Milliseconds",u)[s],h=s===a?this.$D+(t-this.$W):t;if(s===c||s===l){var m=this.clone().set(f,1);m.$d[d](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[S.p(e)]()},y.add=function(n,s){var f,p=this;n=Number(n);var d=S.p(s),h=function(e){var t=x(p);return S.w(t.date(t.date()+Math.round(e*n)),p)};if(d===c)return this.set(c,this.$M+n);if(d===l)return this.set(l,this.$y+n);if(d===a)return h(1);if(d===u)return h(7);var m=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[d]||1,y=this.$d.getTime()+n*m;return S.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=S.z(this),i=this.$H,a=this.$m,u=this.$M,c=n.weekdays,s=n.months,l=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].substr(0,i)},f=function(e){return S.s(i%12||12,e,"0")},d=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:S.s(u+1,2,"0"),MMM:l(n.monthsShort,u,s,3),MMMM:l(s,u),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(i),HH:S.s(i,2,"0"),h:f(1),hh:f(2),a:d(i,a,!0),A:d(i,a,!1),m:String(a),mm:S.s(a,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:o};return r.replace(h,(function(e,t){return t||m[e]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,p){var d,h=S.p(f),m=x(n),y=(m.utcOffset()-this.utcOffset())*e,v=this-m,g=S.m(this,m);return g=(d={},d[l]=g/12,d[c]=g,d[s]=g/3,d[u]=(v-y)/6048e5,d[a]=(v-y)/864e5,d[i]=v/t,d[o]=v/e,d[r]=v/1e3,d)[h]||v,p?g:S.a(g)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return b[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),$=E.prototype;return x.prototype=$,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",c],["$y",l],["$D",f]].forEach((function(e){$[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),x.extend=function(e,t){return e.$i||(e(t,E,x),e.$i=!0),x},x.locale=_,x.isDayjs=w,x.unix=function(e){return x(1e3*e)},x.en=b[g],x.Ls=b,x.p={},x}()},4332:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}}()},4525:function(e){(function(){var t,n;function r(e,o){var i,a=e.data.entry||[],u=[];for(i=0;i<a.length;i++)u.push(a[i].resource);o(u);var c=n.defer();return t.nextPage({bundle:e.data}).then((function(e){r(e,o).then((function(e){c.resolve()}))}),(function(e){c.resolve()})),c.promise}function o(e,o,i,a){n.defer(),t.search(e).then((function(e){r(e,o).then((function(){i()}),(function(e){a(e)}))}),(function(e){a(e)}))}function i(e){var t=n.defer(),r=[];return o(e,(function(e){e.forEach((function(e){r.push(e)}))}),(function(){t.resolve(r)}),(function(e){t.reject(e)})),t.promise}function a(e,r){var o=n.defer();return t.search(e).then((function(e){var n={},i=[function(){o.resolve(e,n)}];function a(){i.pop()()}var u=e.data;u.entry&&u.entry.forEach((function(e){var o=e.resource,c=o.resourceType;r&&r.forEach((function(e){var r=e.split("."),s=r[0],l=r[1],f=o[l];if(c===s&&f){var p=f.reference;n[p]||function(e,r,o){i.push((function(){!function(e,r,o){var i=o.reference;t.resolve({bundle:e,resource:r,reference:o}).then((function(e){var t=e.data||e.content;n[i]=t,a()}))}(e,r,o)}))}(u,o,f)}}))})),a()}),(function(){o.reject("Could not fetch search results")})),o.promise}e.exports=function(e,r){return t=e,n=r,e.drain=o,e.fetchAll=i,e.fetchAllWithReferences=a,e}}).call(this)},1256:function(e,t,n){(function(){n(5454);var t=n(4801),r=n(7921),o=n(8294),i=n(8821),a=n(442),u=n(856),c=n(7719),s=n(3029),l=n(2723),f=n(4249),p=n(4525);e.exports=function(e,n){var d=t.Middleware,h=t.$$Attr,m=function(e){return h("method",e)},y=function(e,t){return h("headers."+e,t)},v=d(a),g=d(u(e,n)).and(v).and(o.$Basic).and(o.$Bearer).and(o.$Credentials).and(i.$JsonData).and(y("Accept",e.headers&&e.headers.Accept?e.headers.Accept:"application/json")).and(y("Content-Type",e.headers&&e.headers["Content-Type"]?e.headers["Content-Type"]:"application/json")),b=g.and(m("GET")),w=g.and(m("POST")),_=g.and(m("PUT")),x=g.and(m("DELETE")),S=g.and(m("PATCH")),E=i.Http(e,n),$=f.Path,O=$(e.baseUrl),k=O.slash(":type || :resource.resourceType"),j=k.slash("_history"),P=k.slash(":id || :resource.id"),T=P.slash("_history"),A=P.slash(":versionId || :resource.meta.versionId"),C=O.slash(":target.resourceType || :target.type").slash(":target.id").slash(":target.versionId"),I=y("Prefer","return=representation"),R=d(r.$Paging);return p({conformance:b.and(O.slash("metadata")).end(E),document:w.and(O.slash("Document")).end(E),profile:b.and(O.slash("Profile").slash(":type")).end(E),transaction:w.and(O).end(E),history:b.and(O.slash("_history")).and(R).end(E),typeHistory:b.and(j).and(R).end(E),resourceHistory:b.and(T).and(R).end(E),read:b.and(s.$WithPatient).and(P).end(E),vread:b.and(A).end(E),delete:x.and(P).and(I).end(E),create:w.and(k).and(I).end(E),validate:w.and(k.slash("_validate")).end(E),meta:{add:w.and(C.slash("$meta-add")).end(E),delete:w.and(C.slash("$meta-delete")).end(E),read:b.and(C.slash("$meta")).end(E)},search:b.and(k).and(s.$WithPatient).and(r.$SearchParams).and(R).end(E),update:_.and(P).and(I).end(E),conditionalUpdate:_.and(k).and(r.$SearchParams).and(I).end(E),conditionalDelete:x.and(k).and(r.$SearchParams).and(I).end(E),nextPage:b.and(c.$$BundleLinkUrl("next")).end(E),prevPage:b.and(c.$$BundleLinkUrl("previous")).and(c.$$BundleLinkUrl("prev")).end(E),getBundleByUrl:b.and($(":url")).end(E),resolve:b.and(l.resolve).end(E),patch:S.and(P).and(y("Content-Type","application/json-patch+json")).end(E)},n)}}).call(this)},8294:function(e,t,n){(function(){var e,r=n(4801),o=n(9672).btoa;t.$Basic=r.$$Attr("headers.Authorization",(function(e){if(e.auth&&e.auth.user&&e.auth.pass)return"Basic "+o(e.auth.user+":"+e.auth.pass)})),t.$Bearer=r.$$Attr("headers.Authorization",(function(e){if(e.auth&&e.auth.bearer)return"Bearer "+e.auth.bearer})),t.$Credentials=r.Middleware(r.$$Attr("credentials",(function(t){return e=t.credentials,""}))).and(r.$$Attr("credentials",(function(t){if(["same-origin","include"].indexOf(e)>-1)return e})))}).call(this)},7719:(e,t)=>{t.$$BundleLinkUrl=function(e){return function(t){return function(n){var r=n.bundle&&(n.bundle.link||[]).filter((function(t){return t.relation&&t.relation===e}))[0];return r&&r.url&&(n.url=r.url,n.data=null),t(n)}}}},856:function(e){(function(){var t=function(e,t,n){var r=e[n];return r&&!t[n]&&(t[n]=r),e};e.exports=function(e,n){return function(r){return function(o){return t(e,o,"baseUrl"),t(e,o,"cache"),t(e,o,"auth"),t(e,o,"patient"),t(e,o,"debug"),t(e,o,"credentials"),t(e,o,"headers"),t(e,o,"agentOptions"),t(n,o,"defer"),t(n,o,"http"),r(o)}}}}).call(this)},4801:function(e,t,n){(function(){var e=n(5454),r=function(e){return e.and=function(t){return r((n=e,o=t,function(e){return n(o(e))}));var n,o},e.end=function(t){return e(t)},e};t.$$Simple=function(e){return function(t){return function(n){return t(e(n))}}},t.$$Attr=function(t,n){return r((function(r){return function(o){var i;return i="function"==e.type(n)?n(o):n,r(null==i&&null==i?o:function(e,t,n){for(var r=t.split("."),o=e,i=0;i<r.length-1;i++){var a=r[i];(o=e[a])||(o={},e[a]=o)}return o[r[r.length-1]]=n,e}(o,t,i))}}))};var o=function(e,t){return r((function(n){return function(r){return r[e]=t(r),n(r)}}))};t.Middleware=r,t.Attribute=o,t.Method=function(e){return o("method",(t=e,function(){return t}));var t}}).call(this)},442:e=>{e.exports=function(e){return function(t){try{return e(t)}catch(e){if(t.debug&&(console.log("\nDEBUG: (ERROR in middleware)"),console.log(e.message),console.log(e.stack)),!t.defer)throw console.log("\nDEBUG: (ERROR in middleware)"),console.log(e.message),console.log(e.stack),new Error("I need adapter.defer");var n=t.defer();return n.reject(e),n.promise}}}},8821:function(e,t,n){(function(){var e=n(5454);t.Http=function(e,t){return function(n){n.debug&&console.log("\nDEBUG (request):",n.method,n.url,n);var r=(n.http||t.http||e.http)(n);return n.debug&&r&&r.then&&r.then((function(e){console.log("\nDEBUG: (responce)",e)})),r}},t.$JsonData=function(t){return function(n){var r,o=n.bundle||n.data||n.resource;return o&&(n.data=(r=o,"object"==e.type(r)||"array"==e.type(r)?JSON.stringify(r):r)),t(n)}}}).call(this)},3029:function(e,t,n){(function(){var e=n(4801),r=["Account","AllergyIntolerance","BodySite","CarePlan","Claim","ClinicalImpression","Communication","CommunicationRequest","Composition","Condition","Contract","DetectedIssue","Device","DeviceUseRequest","DeviceUseStatement","DiagnosticOrder","DiagnosticReport","DocumentManifest","DocumentReference","Encounter","EnrollmentRequest","EpisodeOfCare","FamilyMemberHistory","Flag","Goal","ImagingObjectSelection","ImagingStudy","Immunization","ImmunizationRecommendation","List","Media","MedicationAdministration","MedicationDispense","MedicationOrder","MedicationStatement","NutritionOrder","Observation","Order","Procedure","ProcedureRequest","QuestionnaireResponse","ReferralRequest","RelatedPerson","RiskAssessment","Specimen","SupplyDelivery","SupplyRequest","VisionPrescription"];t.$WithPatient=e.$$Simple((function(e){var t=e.type;return e.patient&&("Patient"===t?(e.query=e.query||{},e.query._id=e.patient,e.id=e.patient):r.indexOf(t)>=0&&(e.query=e.query||{},e.query.patient=e.patient)),e}))}).call(this)},2723:function(e,t,n){(function(){var t=n(5454),r=/^#(.*)/,o=function(e){var n=e.cache,o=e.reference,i=e.bundle,a=o;if(!a.reference)return null;if(a.reference.match(r))return function(e,t){var n=e.match(r)[1],o=(t.contained||[]).filter((function(e){return(e.id||e._id)==n}))[0];return o&&{content:o}||null}(a.reference,e.resource);var u=t.absoluteUrl(e.baseUrl,a.reference);return(i&&i.entry||[]).filter((function(e){return e.id===u}))[0]||(null!=n?n[u]:void 0)||null};e.exports.sync=o,e.exports.resolve=function(e){return function(n){var i=o(n),a=n.reference,u=n.defer();if(i){if(!n.defer)throw new Error("I need promise constructor 'adapter.defer' in adapter");return u.resolve(i),u.promise}if(!a)throw new Error("No reference found");if(a&&a.reference.match(r))throw new Error("Contained resource not found");return n.url=t.absoluteUrl(n.baseUrl,a.reference),n.data=null,e(n)}}}).call(this)},7921:function(e,t,n){(function(){var e=n(5454),r=e.type,o=e.assertArray,i=(e.assertObject,e.reduceMap),a=e.identity,u={$gt:"gt",$lt:"lt",$lte:"lte",$gte:"gte",$ge:"ge",$le:"le"},c={$asc:":asc",$desc:":desc",$exact:":exact",$missing:":missing",$null:":missing",$text:":text"},s=function(e,t){if("$sort"===e)return function(e){var t,n,i,a;for(o(e),i=[],t=0,n=e.length;t<n;t++)switch(a=e[t],r(a)){case"array":i.push({param:"_sort",value:a[0],modifier:":"+a[1]});break;case"string":i.push({param:"_sort",value:a});break;default:i.push(void 0)}return i}(t);if("$has"===e)return i(t,(function(e,t){var n,o;return n=t[0],o=t[1],e.concat(function(){switch(r(o)){case"array":return o.map((function(e){return{param:"_has",value:n+"="+e}}));case"string":return[{param:"_has",value:n+"="+o}]}}())}));if("$include"===e||"$revInclude"===e)return n=e,i(t,(function(e,t){var o,i;return o=t[0],i=t[1],e.concat(function(){switch(r(i)){case"array":return i.map((function(e){return{param:"$include"===n?"_include":"_revinclude",value:o+":"+e}}));case"string":return[{param:"$include"===n?"_include":"_revinclude",value:o+":"+i}]}}())}));var n;switch(r(t)){case"object":return function(e,t){return i(t,(function(n,i){var a,l,f,p;return a=i[0],p=i[1],n.concat("$and"===a?o(p).reduce((function(t,n){return t.concat(s(e,n))}),[]):"$type"===a?[]:function(e){return 0===e.indexOf("$")}(a)?(l={param:e},"$or"===a?l.value=p:(u[a]&&(l.operator=u[a]),c[a]&&(l.modifier=c[a]),"object"===r(p)&&p.$or?l.value=p.$or:l.value=[p]),[l]):(t.$type&&(f=":"+t.$type),s(""+e+(f||"")+"."+a,p)))}))}(e,t);case"string":case"number":return[{param:e,value:[t]}];case"array":return[{param:e,value:[t.join("|")]}];default:throw"could not linearizeParams "+r(t)}},l=function(e){return i(e,(function(e,t){var n,r;return n=t[0],r=t[1],e.concat(s(n,r))}))},f=function(e){var t,n,r=["_include","_revinclude","_has"];return function(){var o,i,u,c;for(c=[],o=0,i=(u=l(e)).length;o<i;o++)t=u[o],n=-1===r.indexOf(t.param)?encodeURIComponent(t.value):t.value,c.push([t.param,t.modifier,"_has"==t.param?":":"=",t.operator,n].filter(a).join(""));return c}().join("&")};t._query=l,t.query=f;var p=n(4801);t.$SearchParams=p.$$Attr("url",(function(e){var t=e.url;return e.query?t+"?"+f(e.query):t})),t.$Paging=function(e){return function(t){var n=t.params||{};return t.since&&(n._since=t.since),t.count&&(n._count=t.count),t.params=n,e(t)}}}).call(this)},4249:function(e,t,n){(function(){n(5454);var e=n(4801),r=function(t,n){var o=function(e){return n&&t.includes("target.versionId")&&!e.target.versionId?n(e):(n&&n(e)+"/"||"")+function(e,t){var n=function(e,t){return 0==e.indexOf(":")?function(e,t){for(var n,r=e.split("||").map((function(e){return e.trim().substring(1)})),o=0;o<r.length;o++){var i=(n=t,r[o].split(".").reduce((function(e,t){return"versionId"===t&&e[t]?"_history/"+e[t]:null==e||null==e?null:e[t]}),n));if(i)return i}return null}(e,t):e}(e.trim(),t);if((null==n||void 0===n)&&0==e.includes("target.versionId"))throw new Error("Parameter "+e+" is required: "+JSON.stringify(t));return n}(t,e)},i=e.Attribute("url",o);return i.slash=function(e){return r(e,o)},i};t.Path=r}).call(this)},5454:function(e,t,n){(function(){var e=n(651),r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;t.trim=function(e){return e?e.toString().replace(r,""):""};var o=function(e){return null==e&&void 0===e?String(e):{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"}[Object.prototype.toString.call(e)]};t.type=o,t.assertArray=function(e){if("array"!==o(e))throw"not array";return e};var i=function(e){if("object"!==o(e))throw"not object";return e};t.assertObject=i;var a=function(e,t,n){var r,o;return n||(n=[]),i(e),function(){var t;for(r in t=[],e)o=e[r],t.push([r,o]);return t}().reduce(t,n)};t.reduceMap=a,t.identity=function(e){return e};var u=function(){return Array.prototype.slice.call(arguments)};t.argsArray=u,t.mergeLists=function(){var t;return t=function(t,n){var r,o,i;for(r in o=e(!0,t),n)i=n[r],o[r]=(o[r]||[]).concat(i);return o},u.apply(null,arguments).reduce(t,{})},t.absoluteUrl=function(e,t){return t.match(/https?:\/\/./)?t:e+"/"+t},t.relativeUrl=function(e,t){return t.slice(t,e.length+1)===e+"/"?t.slice(e.length+1):t},t.resourceIdToUrl=function(e,t,n){return t=t.replace(/\/$/,""),(e=e.replace(/^\//,"")).indexOf("/")<0?t+"/"+n+"/"+e:0!==e.indexOf(t)?t+"/"+e:e};var c=function(e,t,n,r){var i;switch(o(n)){case"array":return t(n.map((function(t){return e(t,[n,r])})),r);case"object":return i=function(t,o){var i,a;return i=o[0],a=o[1],t[i]=e(a,[n].concat(r)),t},t(a(n,i,{}),r);default:return t(n,r)}};t.walk=c;var s=function(e,t,n){return t?c(s(e),e,t,n):function(t,n){return s(e,t,n)}};t.postwalk=s}).call(this)},2891:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",c=32,s=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],m="[object Arguments]",y="[object Array]",v="[object Boolean]",g="[object Date]",b="[object Error]",w="[object Function]",_="[object GeneratorFunction]",x="[object Map]",S="[object Number]",E="[object Object]",$="[object Promise]",O="[object RegExp]",k="[object Set]",j="[object String]",P="[object Symbol]",T="[object WeakMap]",A="[object ArrayBuffer]",C="[object DataView]",I="[object Float32Array]",R="[object Float64Array]",N="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",L="[object Uint8Array]",U="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",B=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,H=RegExp(q.source),Z=RegExp(K.source),G=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$e="["+Ee+"]",Oe="["+_e+"]",ke="\\d+",je="["+xe+"]",Pe="[^\\ud800-\\udfff"+Ee+ke+"\\u2700-\\u27bf"+xe+Se+"]",Te="\\ud83c[\\udffb-\\udfff]",Ae="[^\\ud800-\\udfff]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",Ie="[\\ud800-\\udbff][\\udc00-\\udfff]",Re="["+Se+"]",Ne="(?:"+je+"|"+Pe+")",De="(?:"+Re+"|"+Pe+")",Me="(?:['’](?:d|ll|m|re|s|t|ve))?",Le="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Oe+"|"+Te+")?",ze="[\\ufe0e\\ufe0f]?",Fe=ze+Ue+"(?:\\u200d(?:"+[Ae,Ce,Ie].join("|")+")"+ze+Ue+")*",Be="(?:"+["[\\u2700-\\u27bf]",Ce,Ie].join("|")+")"+Fe,Ve="(?:"+[Ae+Oe+"?",Oe,Ce,Ie,"[\\ud800-\\udfff]"].join("|")+")",We=RegExp("['’]","g"),qe=RegExp(Oe,"g"),Ke=RegExp(Te+"(?="+Te+")|"+Ve+Fe,"g"),He=RegExp([Re+"?"+je+"+"+Me+"(?="+[$e,Re,"$"].join("|")+")",De+"+"+Le+"(?="+[$e,Re+Ne,"$"].join("|")+")",Re+"?"+Ne+"+"+Me,Re+"+"+Le,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Be].join("|"),"g"),Ze=RegExp("[\\u200d\\ud800-\\udfff"+_e+"\\ufe0e\\ufe0f]"),Ge=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ye=-1,Je={};Je[I]=Je[R]=Je[N]=Je[D]=Je[M]=Je[L]=Je[U]=Je[z]=Je[F]=!0,Je[m]=Je[y]=Je[A]=Je[v]=Je[C]=Je[g]=Je[b]=Je[w]=Je[x]=Je[S]=Je[E]=Je[O]=Je[k]=Je[j]=Je[T]=!1;var Xe={};Xe[m]=Xe[y]=Xe[A]=Xe[C]=Xe[v]=Xe[g]=Xe[I]=Xe[R]=Xe[N]=Xe[D]=Xe[M]=Xe[x]=Xe[S]=Xe[E]=Xe[O]=Xe[k]=Xe[j]=Xe[P]=Xe[L]=Xe[U]=Xe[z]=Xe[F]=!0,Xe[b]=Xe[w]=Xe[T]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,ut=at&&e&&!e.nodeType&&e,ct=ut&&ut.exports===at,st=ct&&rt.process,lt=function(){try{return ut&&ut.require&&ut.require("util").types||st&&st.binding&&st.binding("util")}catch(e){}}(),ft=lt&<.isArrayBuffer,pt=lt&<.isDate,dt=lt&<.isMap,ht=lt&<.isRegExp,mt=lt&<.isSet,yt=lt&<.isTypedArray;function vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function gt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function xt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function St(e,t){return!(null==e||!e.length)&&It(e,t,0)>-1}function Et(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function $t(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ot(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function kt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function jt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Tt=Mt("length");function At(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ct(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function It(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ct(e,Nt,n)}function Rt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Nt(e){return e!=e}function Dt(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:p}function Mt(e){return function(t){return null==t?o:t[e]}}function Lt(e){return function(t){return null==e?o:e[t]}}function Ut(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function zt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Ft(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Bt(e){return e?e.slice(0,un(e)+1).replace(re,""):e}function Vt(e){return function(t){return e(t)}}function Wt(e,t){return $t(t,(function(t){return e[t]}))}function qt(e,t){return e.has(t)}function Kt(e,t){for(var n=-1,r=e.length;++n<r&&It(t,e[n],0)>-1;);return n}function Ht(e,t){for(var n=e.length;n--&&It(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Gt=Lt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Qt=Lt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Yt(e){return"\\"+et[e]}function Jt(e){return Ze.test(e)}function Xt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==u||(e[n]=u,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Jt(e)?function(e){for(var t=Ke.lastIndex=0;Ke.test(e);)++t;return t}(e):Tt(e)}function an(e){return Jt(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.split("")}(e)}function un(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var cn=Lt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),sn=function e(t){var n,r=(t=null==t?it:sn.defaults(it.Object(),t,sn.pick(it,Qe))).Array,oe=t.Date,_e=t.Error,xe=t.Function,Se=t.Math,Ee=t.Object,$e=t.RegExp,Oe=t.String,ke=t.TypeError,je=r.prototype,Pe=xe.prototype,Te=Ee.prototype,Ae=t["__core-js_shared__"],Ce=Pe.toString,Ie=Te.hasOwnProperty,Re=0,Ne=(n=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Te.toString,Me=Ce.call(Ee),Le=it._,Ue=$e("^"+Ce.call(Ie).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=ct?t.Buffer:o,Fe=t.Symbol,Be=t.Uint8Array,Ve=ze?ze.allocUnsafe:o,Ke=en(Ee.getPrototypeOf,Ee),Ze=Ee.create,et=Te.propertyIsEnumerable,rt=je.splice,ot=Fe?Fe.isConcatSpreadable:o,at=Fe?Fe.iterator:o,ut=Fe?Fe.toStringTag:o,st=function(){try{var e=li(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,Tt=oe&&oe.now!==it.Date.now&&oe.now,Lt=t.setTimeout!==it.setTimeout&&t.setTimeout,ln=Se.ceil,fn=Se.floor,pn=Ee.getOwnPropertySymbols,dn=ze?ze.isBuffer:o,hn=t.isFinite,mn=je.join,yn=en(Ee.keys,Ee),vn=Se.max,gn=Se.min,bn=oe.now,wn=t.parseInt,_n=Se.random,xn=je.reverse,Sn=li(t,"DataView"),En=li(t,"Map"),$n=li(t,"Promise"),On=li(t,"Set"),kn=li(t,"WeakMap"),jn=li(Ee,"create"),Pn=kn&&new kn,Tn={},An=Ui(Sn),Cn=Ui(En),In=Ui($n),Rn=Ui(On),Nn=Ui(kn),Dn=Fe?Fe.prototype:o,Mn=Dn?Dn.valueOf:o,Ln=Dn?Dn.toString:o;function Un(e){if(nu(e)&&!qa(e)&&!(e instanceof Vn)){if(e instanceof Bn)return e;if(Ie.call(e,"__wrapped__"))return zi(e)}return new Bn(e)}var zn=function(){function e(){}return function(t){if(!tu(t))return{};if(Ze)return Ze(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Fn(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Zn(e){var t=this.__data__=new qn(e);this.size=t.size}function Gn(e,t){var n=qa(e),r=!n&&Wa(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&lu(e),a=n||r||o||i,u=a?Ft(e.length,Oe):[],c=u.length;for(var s in e)!t&&!Ie.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||vi(s,c))||u.push(s);return u}function Qn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Yn(e,t){return Ri(jo(e),ar(t,0,e.length))}function Jn(e){return Ri(jo(e))}function Xn(e,t,n){(n!==o&&!Fa(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];Ie.call(e,t)&&Fa(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Fa(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&Po(t,Cu(t),e)}function or(e,t,n){"__proto__"==t&&st?st(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),u=null==e;++n<i;)a[n]=u?o:ku(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ur(e,t,n,r,i,a){var u,c=1&t,s=2&t,l=4&t;if(n&&(u=i?n(e,r,i,a):n(e)),u!==o)return u;if(!tu(e))return e;var f=qa(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return jo(e,u)}else{var p=di(e),d=p==w||p==_;if(Ga(e))return xo(e,c);if(p==E||p==m||d&&!i){if(u=s||d?{}:mi(e),!c)return s?function(e,t){return Po(e,pi(e),t)}(e,function(e,t){return e&&Po(t,Iu(t),e)}(u,e)):function(e,t){return Po(e,fi(e),t)}(e,rr(u,e))}else{if(!Xe[p])return i?e:{};u=function(e,t,n){var r,o=e.constructor;switch(t){case A:return So(e);case v:case g:return new o(+e);case C:return function(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case R:case N:case D:case M:case L:case U:case z:case F:return Eo(e,n);case x:return new o;case S:case j:return new o(e);case O:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case P:return r=e,Mn?Ee(Mn.call(r)):{}}}(e,p,c)}}a||(a=new Zn);var h=a.get(e);if(h)return h;a.set(e,u),uu(e)?e.forEach((function(r){u.add(ur(r,t,n,r,e,a))})):ru(e)&&e.forEach((function(r,o){u.set(o,ur(r,t,n,o,e,a))}));var y=f?o:(l?s?ri:ni:s?Iu:Cu)(e);return bt(y||e,(function(r,o){y&&(r=e[o=r]),er(u,o,ur(r,t,n,o,e,a))})),u}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var i=n[r],a=t[i],u=e[i];if(u===o&&!(i in e)||!a(u))return!1}return!0}function sr(e,t,n){if("function"!=typeof e)throw new ke(i);return Ti((function(){e.apply(o,n)}),t)}function lr(e,t,n,r){var o=-1,i=St,a=!0,u=e.length,c=[],s=t.length;if(!u)return c;n&&(t=$t(t,Vt(n))),r?(i=Et,a=!1):t.length>=200&&(i=qt,a=!1,t=new Hn(t));e:for(;++o<u;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=s;p--;)if(t[p]===f)continue e;c.push(l)}else i(t,f,r)||c.push(l)}return c}Un.templateSettings={escape:G,evaluate:Q,interpolate:Y,variable:"",imports:{_:Un}},Un.prototype=Fn.prototype,Un.prototype.constructor=Un,Bn.prototype=zn(Fn.prototype),Bn.prototype.constructor=Bn,Vn.prototype=zn(Fn.prototype),Vn.prototype.constructor=Vn,Wn.prototype.clear=function(){this.__data__=jn?jn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(jn){var n=t[e];return n===a?o:n}return Ie.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return jn?t[e]!==o:Ie.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jn&&t===o?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},qn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return tr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(En||qn),string:new Wn}},Kn.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return ci(this,e).get(e)},Kn.prototype.has=function(e){return ci(this,e).has(e)},Kn.prototype.set=function(e,t){var n=ci(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(e){return this.__data__.set(e,a),this},Hn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new qn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var fr=Co(br),pr=Co(wr,!0);function dr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],u=t(a);if(null!=u&&(c===o?u==u&&!su(u):n(u,c)))var c=u,s=a}return s}function mr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?yr(u,t-1,n,r,o):Ot(o,u):r||(o[o.length]=u)}return o}var vr=Io(),gr=Io(!0);function br(e,t){return e&&vr(e,t,Cu)}function wr(e,t){return e&&gr(e,t,Cu)}function _r(e,t){return xt(t,(function(t){return Ja(e[t])}))}function xr(e,t){for(var n=0,r=(t=go(t,e)).length;null!=e&&n<r;)e=e[Li(t[n++])];return n&&n==r?e:o}function Sr(e,t,n){var r=t(e);return qa(e)?r:Ot(r,n(e))}function Er(e){return null==e?e===o?"[object Undefined]":"[object Null]":ut&&ut in Ee(e)?function(e){var t=Ie.call(e,ut),n=e[ut];try{e[ut]=o;var r=!0}catch(e){}var i=De.call(e);return r&&(t?e[ut]=n:delete e[ut]),i}(e):function(e){return De.call(e)}(e)}function $r(e,t){return e>t}function Or(e,t){return null!=e&&Ie.call(e,t)}function kr(e,t){return null!=e&&t in Ee(e)}function jr(e,t,n){for(var i=n?Et:St,a=e[0].length,u=e.length,c=u,s=r(u),l=1/0,f=[];c--;){var p=e[c];c&&t&&(p=$t(p,Vt(t))),l=gn(p.length,l),s[c]=!n&&(t||a>=120&&p.length>=120)?new Hn(c&&p):o}p=e[0];var d=-1,h=s[0];e:for(;++d<a&&f.length<l;){var m=p[d],y=t?t(m):m;if(m=n||0!==m?m:0,!(h?qt(h,y):i(f,y,n))){for(c=u;--c;){var v=s[c];if(!(v?qt(v,y):i(e[c],y,n)))continue e}h&&h.push(y),f.push(m)}}return f}function Pr(e,t,n){var r=null==(e=Oi(e,t=go(t,e)))?e:e[Li(Yi(t))];return null==r?o:vt(r,e,n)}function Tr(e){return nu(e)&&Er(e)==m}function Ar(e,t,n,r,i){return e===t||(null==e||null==t||!nu(e)&&!nu(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var u=qa(e),c=qa(t),s=u?y:di(e),l=c?y:di(t),f=(s=s==m?E:s)==E,p=(l=l==m?E:l)==E,d=s==l;if(d&&Ga(e)){if(!Ga(t))return!1;u=!0,f=!1}if(d&&!f)return a||(a=new Zn),u||lu(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case v:case g:case S:return Fa(+e,+t);case b:return e.name==t.name&&e.message==t.message;case O:case j:return e==t+"";case x:var u=Xt;case k:var c=1&r;if(u||(u=nn),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var l=ei(u(e),u(t),r,o,i,a);return a.delete(e),l;case P:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,s,n,r,i,a);if(!(1&n)){var h=f&&Ie.call(e,"__wrapped__"),w=p&&Ie.call(t,"__wrapped__");if(h||w){var _=h?e.value():e,$=w?t.value():t;return a||(a=new Zn),i(_,$,n,r,a)}}return!!d&&(a||(a=new Zn),function(e,t,n,r,i,a){var u=1&n,c=ni(e),s=c.length;if(s!=ni(t).length&&!u)return!1;for(var l=s;l--;){var f=c[l];if(!(u?f in t:Ie.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=u;++l<s;){var y=e[f=c[l]],v=t[f];if(r)var g=u?r(v,y,f,t,e,a):r(y,v,f,e,t,a);if(!(g===o?y===v||i(y,v,n,r,a):g)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Ar,i))}function Cr(e,t,n,r){var i=n.length,a=i,u=!r;if(null==e)return!a;for(e=Ee(e);i--;){var c=n[i];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var s=(c=n[i])[0],l=e[s],f=c[1];if(u&&c[2]){if(l===o&&!(s in e))return!1}else{var p=new Zn;if(r)var d=r(l,f,s,e,t,p);if(!(d===o?Ar(f,l,3,r,p):d))return!1}}return!0}function Ir(e){return!(!tu(e)||(t=e,Ne&&Ne in t))&&(Ja(e)?Ue:me).test(Ui(e));var t}function Rr(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?qa(e)?Ur(e[0],e[1]):Lr(e):dc(e)}function Nr(e){if(!xi(e))return yn(e);var t=[];for(var n in Ee(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e,t){return e<t}function Mr(e,t){var n=-1,o=Ha(e)?r(e.length):[];return fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Lr(e){var t=si(e);return 1==t.length&&t[0][2]?Ei(t[0][0],t[0][1]):function(n){return n===e||Cr(n,e,t)}}function Ur(e,t){return bi(e)&&Si(t)?Ei(Li(e),t):function(n){var r=ku(n,e);return r===o&&r===t?ju(n,e):Ar(t,r,3)}}function zr(e,t,n,r,i){e!==t&&vr(t,(function(a,u){if(i||(i=new Zn),tu(a))!function(e,t,n,r,i,a,u){var c=ji(e,n),s=ji(t,n),l=u.get(s);if(l)Xn(e,n,l);else{var f=a?a(c,s,n+"",e,t,u):o,p=f===o;if(p){var d=qa(s),h=!d&&Ga(s),m=!d&&!h&&lu(s);f=s,d||h||m?qa(c)?f=c:Za(c)?f=jo(c):h?(p=!1,f=xo(s,!0)):m?(p=!1,f=Eo(s,!0)):f=[]:iu(s)||Wa(s)?(f=c,Wa(c)?f=gu(c):tu(c)&&!Ja(c)||(f=mi(s))):p=!1}p&&(u.set(s,f),i(f,s,r,a,u),u.delete(s)),Xn(e,n,f)}}(e,t,u,n,zr,r,i);else{var c=r?r(ji(e,u),a,u+"",e,t,i):o;c===o&&(c=a),Xn(e,u,c)}}),Iu)}function Fr(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function Br(e,t,n){t=t.length?$t(t,(function(e){return qa(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[oc];var r=-1;t=$t(t,Vt(ui()));var o=Mr(e,(function(e,n,o){var i=$t(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var c=$o(o[r],i[r]);if(c)return r>=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=xr(e,a);n(u,a)&&Yr(i,go(a,e),u)}return i}function Wr(e,t,n,r){var o=r?Rt:It,i=-1,a=t.length,u=e;for(e===t&&(t=jo(t)),n&&(u=$t(e,Vt(n)));++i<a;)for(var c=0,s=t[i],l=n?n(s):s;(c=o(u,l,c,r))>-1;)u!==e&&rt.call(u,c,1),rt.call(e,c,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?rt.call(e,o,1):so(e,o)}}return e}function Kr(e,t){return e+fn(_n()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Ai($i(e,t,oc),e+"")}function Gr(e){return Qn(Fu(e))}function Qr(e,t){var n=Fu(e);return Ri(n,ar(t,0,n.length))}function Yr(e,t,n,r){if(!tu(e))return e;for(var i=-1,a=(t=go(t,e)).length,u=a-1,c=e;null!=c&&++i<a;){var s=Li(t[i]),l=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=u){var f=c[s];(l=r?r(f,s,c):o)===o&&(l=tu(f)?f:vi(t[i+1])?[]:{})}er(c,s,l),c=c[s]}return e}var Jr=Pn?function(e,t){return Pn.set(e,t),e}:oc,Xr=st?function(e,t){return st(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:oc;function eo(e){return Ri(Fu(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!su(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,oc,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var u=(t=n(t))!=t,c=null===t,s=su(t),l=t===o;i<a;){var f=fn((i+a)/2),p=n(e[f]),d=p!==o,h=null===p,m=p==p,y=su(p);if(u)var v=r||m;else v=l?m&&(r||d):c?m&&d&&(r||!h):s?m&&d&&!h&&(r||!y):!h&&!y&&(r?p<=t:p<t);v?i=f+1:a=f}return gn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!Fa(u,c)){var c=u;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:su(e)?p:+e}function uo(e){if("string"==typeof e)return e;if(qa(e))return $t(e,uo)+"";if(su(e))return Ln?Ln.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,n){var r=-1,o=St,i=e.length,a=!0,u=[],c=u;if(n)a=!1,o=Et;else if(i>=200){var s=t?null:Zo(e);if(s)return nn(s);a=!1,o=qt,c=new Hn}else c=t?[]:u;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=c.length;p--;)if(c[p]===f)continue e;t&&c.push(f),u.push(l)}else o(c,f,n)||(c!==u&&c.push(f),u.push(l))}return u}function so(e,t){return null==(e=Oi(e,t=go(t,e)))||delete e[Li(Yi(t))]}function lo(e,t,n,r){return Yr(e,t,n(xr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Vn&&(n=n.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function ho(e,t,n){var o=e.length;if(o<2)return o?co(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var u=e[i],c=-1;++c<o;)c!=i&&(a[i]=lr(a[i]||u,e[c],t,n));return co(yr(a,1),t,n)}function mo(e,t,n){for(var r=-1,i=e.length,a=t.length,u={};++r<i;){var c=r<a?t[r]:o;n(u,e[r],c)}return u}function yo(e){return Za(e)?e:[]}function vo(e){return"function"==typeof e?e:oc}function go(e,t){return qa(e)?e:bi(e,t)?[e]:Mi(bu(e))}var bo=Zr;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var _o=lt||function(e){return it.clearTimeout(e)};function xo(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function So(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function Eo(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function $o(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=su(e),u=t!==o,c=null===t,s=t==t,l=su(t);if(!c&&!l&&!a&&e>t||a&&u&&s&&!c&&!l||r&&u&&s||!n&&s||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||c&&n&&i||!u&&i||!s)return-1}return 0}function Oo(e,t,n,o){for(var i=-1,a=e.length,u=n.length,c=-1,s=t.length,l=vn(a-u,0),f=r(s+l),p=!o;++c<s;)f[c]=t[c];for(;++i<u;)(p||i<a)&&(f[n[i]]=e[i]);for(;l--;)f[c++]=e[i++];return f}function ko(e,t,n,o){for(var i=-1,a=e.length,u=-1,c=n.length,s=-1,l=t.length,f=vn(a-c,0),p=r(f+l),d=!o;++i<f;)p[i]=e[i];for(var h=i;++s<l;)p[h+s]=t[s];for(;++u<c;)(d||i<a)&&(p[h+n[u]]=e[i++]);return p}function jo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Po(e,t,n,r){var i=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var c=t[a],s=r?r(n[c],e[c],c,n,e):o;s===o&&(s=e[c]),i?or(n,c,s):er(n,c,s)}return n}function To(e,t){return function(n,r){var o=qa(n)?gt:nr,i=t?t():{};return o(n,e,ui(r,2),i)}}function Ao(e){return Zr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,u=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,u&&gi(n[0],n[1],u)&&(a=i<3?o:a,i=1),t=Ee(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t}))}function Co(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ee(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Io(e){return function(t,n,r){for(var o=-1,i=Ee(t),a=r(t),u=a.length;u--;){var c=a[e?u:++o];if(!1===n(i[c],c,i))break}return t}}function Ro(e){return function(t){var n=Jt(t=bu(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function No(e){return function(t){return kt(Ju(Wu(t).replace(We,"")),e,"")}}function Do(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return tu(r)?r:n}}function Mo(e){return function(t,n,r){var i=Ee(t);if(!Ha(t)){var a=ui(n,3);t=Cu(t),n=function(e){return a(i[e],e,i)}}var u=e(t,n,r);return u>-1?i[a?t[u]:u]:o}}function Lo(e){return ti((function(t){var n=t.length,r=n,a=Bn.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new ke(i);if(a&&!c&&"wrapper"==ii(u))var c=new Bn([],!0)}for(r=c?r:n;++r<n;){var s=ii(u=t[r]),l="wrapper"==s?oi(u):o;c=l&&wi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ii(l[0])].apply(c,l[3]):1==u.length&&wi(u)?c[s]():c.thru(u)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&qa(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Uo(e,t,n,i,a,u,c,l,f,p){var d=t&s,h=1&t,m=2&t,y=24&t,v=512&t,g=m?o:Do(e);return function o(){for(var s=arguments.length,b=r(s),w=s;w--;)b[w]=arguments[w];if(y)var _=ai(o),x=Zt(b,_);if(i&&(b=Oo(b,i,a,y)),u&&(b=ko(b,u,c,y)),s-=x,y&&s<p){var S=tn(b,_);return Ko(e,t,Uo,o.placeholder,n,b,S,l,f,p-s)}var E=h?n:this,$=m?E[e]:e;return s=b.length,l?b=ki(b,l):v&&s>1&&b.reverse(),d&&f<s&&(b.length=f),this&&this!==it&&this instanceof o&&($=g||Do($)),$.apply(E,b)}}function zo(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Fo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Bo(e){return ti((function(t){return t=$t(t,Vt(ui())),Zr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Vo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Hr(t,e):t;var r=Hr(t,ln(e/on(t)));return Jt(t)?wo(an(r),0,e).join(""):r.slice(0,e)}function Wo(e){return function(t,n,i){return i&&"number"!=typeof i&&gi(t,n,i)&&(n=i=o),t=hu(t),n===o?(n=t,t=0):n=hu(n),function(e,t,n,o){for(var i=-1,a=vn(ln((t-e)/(n||1)),0),u=r(a);a--;)u[o?a:++i]=e,e+=n;return u}(t,n,i=i===o?t<n?1:-1:hu(i),e)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vu(t),n=vu(n)),e(t,n)}}function Ko(e,t,n,r,i,a,u,s,l,f){var p=8&t;t|=p?c:64,4&(t&=~(p?64:c))||(t&=-4);var d=[e,t,i,p?a:o,p?u:o,p?o:a,p?o:u,s,l,f],h=n.apply(o,d);return wi(e)&&Pi(h,d),h.placeholder=r,Ci(h,e,t)}function Ho(e){var t=Se[e];return function(e,n){if(e=vu(e),(n=null==n?0:gn(mu(n),292))&&hn(e)){var r=(bu(e)+"e").split("e");return+((r=(bu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Zo=On&&1/nn(new On([,-0]))[1]==l?function(e){return new On(e)}:sc;function Go(e){return function(t){var n=di(t);return n==x?Xt(t):n==k?rn(t):function(e,t){return $t(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qo(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(i);var m=a?a.length:0;if(m||(t&=-97,a=l=o),p=p===o?p:vn(mu(p),0),d=d===o?d:mu(d),m-=l?l.length:0,64&t){var y=a,v=l;a=l=o}var g=h?o:oi(e),b=[e,t,n,a,l,y,v,f,p,d];if(g&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==s&&8==n||r==s&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?Oo(l,c,t[4]):c,e[4]=l?tn(e[3],u):t[4]}(c=t[5])&&(l=e[5],e[5]=l?ko(l,c,t[6]):c,e[6]=l?tn(e[5],u):t[6]),(c=t[7])&&(e[7]=c),r&s&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,g),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(d=b[9]=b[9]===o?h?0:e.length:vn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=Do(e);return function a(){for(var u=arguments.length,c=r(u),s=u,l=ai(a);s--;)c[s]=arguments[s];var f=u<3&&c[0]!==l&&c[u-1]!==l?[]:tn(c,l);return(u-=f.length)<n?Ko(e,t,Uo,a.placeholder,o,c,f,o,o,n-u):vt(this&&this!==it&&this instanceof a?i:e,this,c)}}(e,t,d):t!=c&&33!=t||l.length?Uo.apply(o,b):function(e,t,n,o){var i=1&t,a=Do(e);return function t(){for(var u=-1,c=arguments.length,s=-1,l=o.length,f=r(l+c),p=this&&this!==it&&this instanceof t?a:e;++s<l;)f[s]=o[s];for(;c--;)f[s++]=arguments[++u];return vt(p,i?n:this,f)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=Do(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ci((g?Jr:Pi)(w,b),e,t)}function Yo(e,t,n,r){return e===o||Fa(e,Te[n])&&!Ie.call(r,n)?t:e}function Jo(e,t,n,r,i,a){return tu(e)&&tu(t)&&(a.set(t,e),zr(e,t,o,Jo,a),a.delete(t)),e}function Xo(e){return iu(e)?o:e}function ei(e,t,n,r,i,a){var u=1&n,c=e.length,s=t.length;if(c!=s&&!(u&&s>c))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Hn:o;for(a.set(e,t),a.set(t,e);++p<c;){var m=e[p],y=t[p];if(r)var v=u?r(y,m,p,t,e,a):r(m,y,p,e,t,a);if(v!==o){if(v)continue;d=!1;break}if(h){if(!Pt(t,(function(e,t){if(!qt(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(m!==y&&!i(m,y,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ti(e){return Ai($i(e,o,Ki),e+"")}function ni(e){return Sr(e,Cu,fi)}function ri(e){return Sr(e,Iu,pi)}var oi=Pn?function(e){return Pn.get(e)}:sc;function ii(e){for(var t=e.name+"",n=Tn[t],r=Ie.call(Tn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Ie.call(Un,"placeholder")?Un:e).placeholder}function ui(){var e=Un.iteratee||ic;return e=e===ic?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function si(e){for(var t=Cu(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Si(o)]}return t}function li(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Ir(n)?n:o}var fi=pn?function(e){return null==e?[]:(e=Ee(e),xt(pn(e),(function(t){return et.call(e,t)})))}:yc,pi=pn?function(e){for(var t=[];e;)Ot(t,fi(e)),e=Ke(e);return t}:yc,di=Er;function hi(e,t,n){for(var r=-1,o=(t=go(t,e)).length,i=!1;++r<o;){var a=Li(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&eu(o)&&vi(a,o)&&(qa(e)||Wa(e))}function mi(e){return"function"!=typeof e.constructor||xi(e)?{}:zn(Ke(e))}function yi(e){return qa(e)||Wa(e)||!!(ot&&e&&e[ot])}function vi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function gi(e,t,n){if(!tu(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&vi(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function bi(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!su(e))||X.test(e)||!J.test(e)||null!=t&&e in Ee(t)}function wi(e){var t=ii(e),n=Un[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(Sn&&di(new Sn(new ArrayBuffer(1)))!=C||En&&di(new En)!=x||$n&&di($n.resolve())!=$||On&&di(new On)!=k||kn&&di(new kn)!=T)&&(di=function(e){var t=Er(e),n=t==E?e.constructor:o,r=n?Ui(n):"";if(r)switch(r){case An:return C;case Cn:return x;case In:return $;case Rn:return k;case Nn:return T}return t});var _i=Ae?Ja:vc;function xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)}function Si(e){return e==e&&!tu(e)}function Ei(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ee(n))}}function $i(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),u=r(a);++i<a;)u[i]=o[t+i];i=-1;for(var c=r(t+1);++i<t;)c[i]=o[i];return c[t]=n(u),vt(e,this,c)}}function Oi(e,t){return t.length<2?e:xr(e,to(t,0,-1))}function ki(e,t){for(var n=e.length,r=gn(t.length,n),i=jo(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}function ji(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pi=Ii(Jr),Ti=Lt||function(e,t){return it.setTimeout(e,t)},Ai=Ii(Xr);function Ci(e,t,n){var r=t+"";return Ai(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(h,(function(n){var r="_."+n[0];t&n[1]&&!St(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(ue):[]}(r),n)))}function Ii(e){var t=0,n=0;return function(){var r=bn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ri(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),u=e[a];e[a]=e[n],e[n]=u}return e.length=t,e}var Ni,Di,Mi=(Ni=Na((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Di.size&&Di.clear(),e})),Di=Ni.cache,Ni);function Li(e){if("string"==typeof e||su(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ui(e){if(null!=e){try{return Ce.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function zi(e){if(e instanceof Vn)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=jo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Zr((function(e,t){return Za(e)?lr(e,yr(t,1,Za,!0)):[]})),Bi=Zr((function(e,t){var n=Yi(t);return Za(n)&&(n=o),Za(e)?lr(e,yr(t,1,Za,!0),ui(n,2)):[]})),Vi=Zr((function(e,t){var n=Yi(t);return Za(n)&&(n=o),Za(e)?lr(e,yr(t,1,Za,!0),o,n):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:mu(n);return o<0&&(o=vn(r+o,0)),Ct(e,ui(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=mu(n),i=n<0?vn(r+i,0):gn(i,r-1)),Ct(e,ui(t,3),i,!0)}function Ki(e){return null!=e&&e.length?yr(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var Zi=Zr((function(e){var t=$t(e,yo);return t.length&&t[0]===e[0]?jr(t):[]})),Gi=Zr((function(e){var t=Yi(e),n=$t(e,yo);return t===Yi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?jr(n,ui(t,2)):[]})),Qi=Zr((function(e){var t=Yi(e),n=$t(e,yo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?jr(n,o,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ji=Zr(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return qr(e,$t(t,(function(e){return vi(e,n)?+e:e})).sort($o)),r}));function ta(e){return null==e?e:xn.call(e)}var na=Zr((function(e){return co(yr(e,1,Za,!0))})),ra=Zr((function(e){var t=Yi(e);return Za(t)&&(t=o),co(yr(e,1,Za,!0),ui(t,2))})),oa=Zr((function(e){var t=Yi(e);return t="function"==typeof t?t:o,co(yr(e,1,Za,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if(Za(e))return t=vn(e.length,t),!0})),Ft(t,(function(t){return $t(e,Mt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:$t(n,(function(e){return vt(t,o,e)}))}var ua=Zr((function(e,t){return Za(e)?lr(e,t):[]})),ca=Zr((function(e){return ho(xt(e,Za))})),sa=Zr((function(e){var t=Yi(e);return Za(t)&&(t=o),ho(xt(e,Za),ui(t,2))})),la=Zr((function(e){var t=Yi(e);return t="function"==typeof t?t:o,ho(xt(e,Za),o,t)})),fa=Zr(ia),pa=Zr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function da(e){var t=Un(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Bn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ya=To((function(e,t,n){Ie.call(e,n)?++e[n]:or(e,n,1)})),va=Mo(Wi),ga=Mo(qi);function ba(e,t){return(qa(e)?bt:fr)(e,ui(t,3))}function wa(e,t){return(qa(e)?wt:pr)(e,ui(t,3))}var _a=To((function(e,t,n){Ie.call(e,n)?e[n].push(t):or(e,n,[t])})),xa=Zr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ha(e)?r(e.length):[];return fr(e,(function(e){a[++o]=i?vt(t,e,n):Pr(e,t,n)})),a})),Sa=To((function(e,t,n){or(e,n,t)}));function Ea(e,t){return(qa(e)?$t:Mr)(e,ui(t,3))}var $a=To((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Oa=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&gi(e,t[0],t[1])?t=[]:n>2&&gi(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,yr(t,1),[])})),ka=Tt||function(){return it.Date.now()};function ja(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,s,o,o,o,o,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new ke(i);return e=mu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ta=Zr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(Ta));r|=c}return Qo(e,r,t,n,o)})),Aa=Zr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Aa));r|=c}return Qo(t,r,e,n,o)}));function Ca(e,t,n){var r,a,u,c,s,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new ke(i);function m(t){var n=r,i=a;return r=a=o,f=t,c=e.apply(i,n)}function y(e){return f=e,s=Ti(g,t),p?m(e):c}function v(e){var n=e-l;return l===o||n>=t||n<0||d&&e-f>=u}function g(){var e=ka();if(v(e))return b(e);s=Ti(g,function(e){var n=t-(e-l);return d?gn(n,u-(e-f)):n}(e))}function b(e){return s=o,h&&r?m(e):(r=a=o,c)}function w(){var e=ka(),n=v(e);if(r=arguments,a=this,l=e,n){if(s===o)return y(l);if(d)return _o(s),s=Ti(g,t),m(l)}return s===o&&(s=Ti(g,t)),c}return t=vu(t)||0,tu(n)&&(p=!!n.leading,u=(d="maxWait"in n)?vn(vu(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),w.cancel=function(){s!==o&&_o(s),f=0,r=l=a=s=o},w.flush=function(){return s===o?c:b(ka())},w}var Ia=Zr((function(e,t){return sr(e,1,t)})),Ra=Zr((function(e,t,n){return sr(e,vu(t)||0,n)}));function Na(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Na.Cache||Kn),n}function Da(e){if("function"!=typeof e)throw new ke(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Na.Cache=Kn;var Ma=bo((function(e,t){var n=(t=1==t.length&&qa(t[0])?$t(t[0],Vt(ui())):$t(yr(t,1),Vt(ui()))).length;return Zr((function(r){for(var o=-1,i=gn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return vt(e,this,r)}))})),La=Zr((function(e,t){var n=tn(t,ai(La));return Qo(e,c,o,t,n)})),Ua=Zr((function(e,t){var n=tn(t,ai(Ua));return Qo(e,64,o,t,n)})),za=ti((function(e,t){return Qo(e,256,o,o,o,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var Ba=qo($r),Va=qo((function(e,t){return e>=t})),Wa=Tr(function(){return arguments}())?Tr:function(e){return nu(e)&&Ie.call(e,"callee")&&!et.call(e,"callee")},qa=r.isArray,Ka=ft?Vt(ft):function(e){return nu(e)&&Er(e)==A};function Ha(e){return null!=e&&eu(e.length)&&!Ja(e)}function Za(e){return nu(e)&&Ha(e)}var Ga=dn||vc,Qa=pt?Vt(pt):function(e){return nu(e)&&Er(e)==g};function Ya(e){if(!nu(e))return!1;var t=Er(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!iu(e)}function Ja(e){if(!tu(e))return!1;var t=Er(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xa(e){return"number"==typeof e&&e==mu(e)}function eu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function tu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function nu(e){return null!=e&&"object"==typeof e}var ru=dt?Vt(dt):function(e){return nu(e)&&di(e)==x};function ou(e){return"number"==typeof e||nu(e)&&Er(e)==S}function iu(e){if(!nu(e)||Er(e)!=E)return!1;var t=Ke(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ce.call(n)==Me}var au=ht?Vt(ht):function(e){return nu(e)&&Er(e)==O},uu=mt?Vt(mt):function(e){return nu(e)&&di(e)==k};function cu(e){return"string"==typeof e||!qa(e)&&nu(e)&&Er(e)==j}function su(e){return"symbol"==typeof e||nu(e)&&Er(e)==P}var lu=yt?Vt(yt):function(e){return nu(e)&&eu(e.length)&&!!Je[Er(e)]},fu=qo(Dr),pu=qo((function(e,t){return e<=t}));function du(e){if(!e)return[];if(Ha(e))return cu(e)?an(e):jo(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=di(e);return(t==x?Xt:t==k?nn:Fu)(e)}function hu(e){return e?(e=vu(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function mu(e){var t=hu(e),n=t%1;return t==t?n?t-n:t:0}function yu(e){return e?ar(mu(e),0,d):0}function vu(e){if("number"==typeof e)return e;if(su(e))return p;if(tu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Bt(e);var n=he.test(e);return n||ye.test(e)?nt(e.slice(2),n?2:8):de.test(e)?p:+e}function gu(e){return Po(e,Iu(e))}function bu(e){return null==e?"":uo(e)}var wu=Ao((function(e,t){if(xi(t)||Ha(t))Po(t,Cu(t),e);else for(var n in t)Ie.call(t,n)&&er(e,n,t[n])})),_u=Ao((function(e,t){Po(t,Iu(t),e)})),xu=Ao((function(e,t,n,r){Po(t,Iu(t),e,r)})),Su=Ao((function(e,t,n,r){Po(t,Cu(t),e,r)})),Eu=ti(ir),$u=Zr((function(e,t){e=Ee(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&gi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],u=Iu(a),c=-1,s=u.length;++c<s;){var l=u[c],f=e[l];(f===o||Fa(f,Te[l])&&!Ie.call(e,l))&&(e[l]=a[l])}return e})),Ou=Zr((function(e){return e.push(o,Jo),vt(Nu,o,e)}));function ku(e,t,n){var r=null==e?o:xr(e,t);return r===o?n:r}function ju(e,t){return null!=e&&hi(e,t,kr)}var Pu=zo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),tc(oc)),Tu=zo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Au=Zr(Pr);function Cu(e){return Ha(e)?Gn(e):Nr(e)}function Iu(e){return Ha(e)?Gn(e,!0):function(e){if(!tu(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=xi(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}(e)}var Ru=Ao((function(e,t,n){zr(e,t,n)})),Nu=Ao((function(e,t,n,r){zr(e,t,n,r)})),Du=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=$t(t,(function(t){return t=go(t,e),r||(r=t.length>1),t})),Po(e,ri(e),n),r&&(n=ur(n,7,Xo));for(var o=t.length;o--;)so(n,t[o]);return n})),Mu=ti((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return ju(e,n)}))}(e,t)}));function Lu(e,t){if(null==e)return{};var n=$t(ri(e),(function(e){return[e]}));return t=ui(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Uu=Go(Cu),zu=Go(Iu);function Fu(e){return null==e?[]:Wt(e,Cu(e))}var Bu=No((function(e,t,n){return t=t.toLowerCase(),e+(n?Vu(t):t)}));function Vu(e){return Yu(bu(e).toLowerCase())}function Wu(e){return(e=bu(e))&&e.replace(ge,Gt).replace(qe,"")}var qu=No((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ku=No((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hu=Ro("toLowerCase"),Zu=No((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gu=No((function(e,t,n){return e+(n?" ":"")+Yu(t)})),Qu=No((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Yu=Ro("toUpperCase");function Ju(e,t,n){return e=bu(e),(t=n?o:t)===o?function(e){return Ge.test(e)}(e)?function(e){return e.match(He)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Xu=Zr((function(e,t){try{return vt(e,o,t)}catch(e){return Ya(e)?e:new _e(e)}})),ec=ti((function(e,t){return bt(t,(function(t){t=Li(t),or(e,t,Ta(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Lo(),rc=Lo(!0);function oc(e){return e}function ic(e){return Rr("function"==typeof e?e:ur(e,1))}var ac=Zr((function(e,t){return function(n){return Pr(n,e,t)}})),uc=Zr((function(e,t){return function(n){return Pr(e,n,t)}}));function cc(e,t,n){var r=Cu(t),o=_r(t,r);null!=n||tu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Cu(t)));var i=!(tu(n)&&"chain"in n&&!n.chain),a=Ja(e);return bt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=jo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function sc(){}var lc=Bo($t),fc=Bo(_t),pc=Bo(Pt);function dc(e){return bi(e)?Mt(Li(e)):function(e){return function(t){return xr(t,e)}}(e)}var hc=Wo(),mc=Wo(!0);function yc(){return[]}function vc(){return!1}var gc,bc=Fo((function(e,t){return e+t}),0),wc=Ho("ceil"),_c=Fo((function(e,t){return e/t}),1),xc=Ho("floor"),Sc=Fo((function(e,t){return e*t}),1),Ec=Ho("round"),$c=Fo((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new ke(i);return e=mu(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=ja,Un.assign=wu,Un.assignIn=_u,Un.assignInWith=xu,Un.assignWith=Su,Un.at=Eu,Un.before=Pa,Un.bind=Ta,Un.bindAll=ec,Un.bindKey=Aa,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Un.chain=da,Un.chunk=function(e,t,n){t=(n?gi(e,t,n):t===o)?1:vn(mu(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,u=0,c=r(ln(i/t));a<i;)c[u++]=to(e,a,a+=t);return c},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ot(qa(n)?jo(n):[n],yr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?$t(e,(function(e){if("function"!=typeof e[1])throw new ke(i);return[n(e[0]),e[1]]})):[],Zr((function(n){for(var r=-1;++r<t;){var o=e[r];if(vt(o[0],this,n))return vt(o[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Cu(e);return function(n){return cr(n,e,t)}}(ur(e,1))},Un.constant=tc,Un.countBy=ya,Un.create=function(e,t){var n=zn(e);return null==t?n:rr(n,t)},Un.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.curryRight=function e(t,n,r){var i=Qo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.debounce=Ca,Un.defaults=$u,Un.defaultsDeep=Ou,Un.defer=Ia,Un.delay=Ra,Un.difference=Fi,Un.differenceBy=Bi,Un.differenceWith=Vi,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:mu(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:mu(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?fo(e,ui(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?fo(e,ui(t,3),!0):[]},Un.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&gi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=mu(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:mu(r))<0&&(r+=i),r=n>r?0:yu(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(qa(e)?xt:mr)(e,ui(t,3))},Un.flatMap=function(e,t){return yr(Ea(e,t),1)},Un.flatMapDeep=function(e,t){return yr(Ea(e,t),l)},Un.flatMapDepth=function(e,t,n){return n=n===o?1:mu(n),yr(Ea(e,t),n)},Un.flatten=Ki,Un.flattenDeep=function(e){return null!=e&&e.length?yr(e,l):[]},Un.flattenDepth=function(e,t){return null!=e&&e.length?yr(e,t=t===o?1:mu(t)):[]},Un.flip=function(e){return Qo(e,512)},Un.flow=nc,Un.flowRight=rc,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Un.functions=function(e){return null==e?[]:_r(e,Cu(e))},Un.functionsIn=function(e){return null==e?[]:_r(e,Iu(e))},Un.groupBy=_a,Un.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Un.intersection=Zi,Un.intersectionBy=Gi,Un.intersectionWith=Qi,Un.invert=Pu,Un.invertBy=Tu,Un.invokeMap=xa,Un.iteratee=ic,Un.keyBy=Sa,Un.keys=Cu,Un.keysIn=Iu,Un.map=Ea,Un.mapKeys=function(e,t){var n={};return t=ui(t,3),br(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Un.mapValues=function(e,t){var n={};return t=ui(t,3),br(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Un.matches=function(e){return Lr(ur(e,1))},Un.matchesProperty=function(e,t){return Ur(e,ur(t,1))},Un.memoize=Na,Un.merge=Ru,Un.mergeWith=Nu,Un.method=ac,Un.methodOf=uc,Un.mixin=cc,Un.negate=Da,Un.nthArg=function(e){return e=mu(e),Zr((function(t){return Fr(t,e)}))},Un.omit=Du,Un.omitBy=function(e,t){return Lu(e,Da(ui(t)))},Un.once=function(e){return Pa(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?o:n)||(n=null==n?[]:[n]),Br(e,t,n))},Un.over=lc,Un.overArgs=Ma,Un.overEvery=fc,Un.overSome=pc,Un.partial=La,Un.partialRight=Ua,Un.partition=$a,Un.pick=Mu,Un.pickBy=Lu,Un.property=dc,Un.propertyOf=function(e){return function(t){return null==e?o:xr(e,t)}},Un.pull=Ji,Un.pullAll=Xi,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,ui(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,o,n):e},Un.pullAt=ea,Un.range=hc,Un.rangeRight=mc,Un.rearg=za,Un.reject=function(e,t){return(qa(e)?xt:mr)(e,Da(ui(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return qr(e,o),n},Un.rest=function(e,t){if("function"!=typeof e)throw new ke(i);return Zr(e,t=t===o?t:mu(t))},Un.reverse=ta,Un.sampleSize=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:mu(t),(qa(e)?Yn:Qr)(e,t)},Un.set=function(e,t,n){return null==e?e:Yr(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Yr(e,t,n,r)},Un.shuffle=function(e){return(qa(e)?Jn:eo)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&gi(e,t,n)?(t=0,n=r):(t=null==t?0:mu(t),n=n===o?r:mu(n)),to(e,t,n)):[]},Un.sortBy=Oa,Un.sortedUniq=function(e){return e&&e.length?io(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?io(e,ui(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&gi(e,t,n)&&(t=n=o),(n=n===o?d:n>>>0)?(e=bu(e))&&("string"==typeof t||null!=t&&!au(t))&&!(t=uo(t))&&Jt(e)?wo(an(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new ke(i);return t=null==t?0:vn(mu(t),0),Zr((function(n){var r=n[t],o=wo(n,0,t);return r&&Ot(o,r),vt(e,this,o)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:mu(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:mu(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?fo(e,ui(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?fo(e,ui(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ke(i);return tu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ca(e,t,{leading:r,maxWait:t,trailing:o})},Un.thru=ha,Un.toArray=du,Un.toPairs=Uu,Un.toPairsIn=zu,Un.toPath=function(e){return qa(e)?$t(e,Li):su(e)?[e]:jo(Mi(bu(e)))},Un.toPlainObject=gu,Un.transform=function(e,t,n){var r=qa(e),o=r||Ga(e)||lu(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:tu(e)&&Ja(i)?zn(Ke(e)):{}}return(o?bt:br)(e,(function(e,r,o){return t(n,e,r,o)})),n},Un.unary=function(e){return ja(e,1)},Un.union=na,Un.unionBy=ra,Un.unionWith=oa,Un.uniq=function(e){return e&&e.length?co(e):[]},Un.uniqBy=function(e,t){return e&&e.length?co(e,ui(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?co(e,o,t):[]},Un.unset=function(e,t){return null==e||so(e,t)},Un.unzip=ia,Un.unzipWith=aa,Un.update=function(e,t,n){return null==e?e:lo(e,t,vo(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,vo(n),r)},Un.values=Fu,Un.valuesIn=function(e){return null==e?[]:Wt(e,Iu(e))},Un.without=ua,Un.words=Ju,Un.wrap=function(e,t){return La(vo(t),e)},Un.xor=ca,Un.xorBy=sa,Un.xorWith=la,Un.zip=fa,Un.zipObject=function(e,t){return mo(e||[],t||[],er)},Un.zipObjectDeep=function(e,t){return mo(e||[],t||[],Yr)},Un.zipWith=pa,Un.entries=Uu,Un.entriesIn=zu,Un.extend=_u,Un.extendWith=xu,cc(Un,Un),Un.add=bc,Un.attempt=Xu,Un.camelCase=Bu,Un.capitalize=Vu,Un.ceil=wc,Un.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vu(n))==n?n:0),t!==o&&(t=(t=vu(t))==t?t:0),ar(vu(e),t,n)},Un.clone=function(e){return ur(e,4)},Un.cloneDeep=function(e){return ur(e,5)},Un.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:o)},Un.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:o)},Un.conformsTo=function(e,t){return null==t||cr(e,t,Cu(t))},Un.deburr=Wu,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=_c,Un.endsWith=function(e,t,n){e=bu(e),t=uo(t);var r=e.length,i=n=n===o?r:ar(mu(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=Fa,Un.escape=function(e){return(e=bu(e))&&Z.test(e)?e.replace(K,Qt):e},Un.escapeRegExp=function(e){return(e=bu(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=qa(e)?_t:dr;return n&&gi(e,t,n)&&(t=o),r(e,ui(t,3))},Un.find=va,Un.findIndex=Wi,Un.findKey=function(e,t){return At(e,ui(t,3),br)},Un.findLast=ga,Un.findLastIndex=qi,Un.findLastKey=function(e,t){return At(e,ui(t,3),wr)},Un.floor=xc,Un.forEach=ba,Un.forEachRight=wa,Un.forIn=function(e,t){return null==e?e:vr(e,ui(t,3),Iu)},Un.forInRight=function(e,t){return null==e?e:gr(e,ui(t,3),Iu)},Un.forOwn=function(e,t){return e&&br(e,ui(t,3))},Un.forOwnRight=function(e,t){return e&&wr(e,ui(t,3))},Un.get=ku,Un.gt=Ba,Un.gte=Va,Un.has=function(e,t){return null!=e&&hi(e,t,Or)},Un.hasIn=ju,Un.head=Hi,Un.identity=oc,Un.includes=function(e,t,n,r){e=Ha(e)?e:Fu(e),n=n&&!r?mu(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),cu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&It(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:mu(n);return o<0&&(o=vn(r+o,0)),It(e,t,o)},Un.inRange=function(e,t,n){return t=hu(t),n===o?(n=t,t=0):n=hu(n),function(e,t,n){return e>=gn(t,n)&&e<vn(t,n)}(e=vu(e),t,n)},Un.invoke=Au,Un.isArguments=Wa,Un.isArray=qa,Un.isArrayBuffer=Ka,Un.isArrayLike=Ha,Un.isArrayLikeObject=Za,Un.isBoolean=function(e){return!0===e||!1===e||nu(e)&&Er(e)==v},Un.isBuffer=Ga,Un.isDate=Qa,Un.isElement=function(e){return nu(e)&&1===e.nodeType&&!iu(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||lu(e)||Wa(e)))return!e.length;var t=di(e);if(t==x||t==k)return!e.size;if(xi(e))return!Nr(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Ar(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Ar(e,t,o,n):!!r},Un.isError=Ya,Un.isFinite=function(e){return"number"==typeof e&&hn(e)},Un.isFunction=Ja,Un.isInteger=Xa,Un.isLength=eu,Un.isMap=ru,Un.isMatch=function(e,t){return e===t||Cr(e,t,si(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Cr(e,t,si(t),n)},Un.isNaN=function(e){return ou(e)&&e!=+e},Un.isNative=function(e){if(_i(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ir(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=ou,Un.isObject=tu,Un.isObjectLike=nu,Un.isPlainObject=iu,Un.isRegExp=au,Un.isSafeInteger=function(e){return Xa(e)&&e>=-9007199254740991&&e<=f},Un.isSet=uu,Un.isString=cu,Un.isSymbol=su,Un.isTypedArray=lu,Un.isUndefined=function(e){return e===o},Un.isWeakMap=function(e){return nu(e)&&di(e)==T},Un.isWeakSet=function(e){return nu(e)&&"[object WeakSet]"==Er(e)},Un.join=function(e,t){return null==e?"":mn.call(e,t)},Un.kebabCase=qu,Un.last=Yi,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=mu(n))<0?vn(r+i,0):gn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ct(e,Nt,i,!0)},Un.lowerCase=Ku,Un.lowerFirst=Hu,Un.lt=fu,Un.lte=pu,Un.max=function(e){return e&&e.length?hr(e,oc,$r):o},Un.maxBy=function(e,t){return e&&e.length?hr(e,ui(t,2),$r):o},Un.mean=function(e){return Dt(e,oc)},Un.meanBy=function(e,t){return Dt(e,ui(t,2))},Un.min=function(e){return e&&e.length?hr(e,oc,Dr):o},Un.minBy=function(e,t){return e&&e.length?hr(e,ui(t,2),Dr):o},Un.stubArray=yc,Un.stubFalse=vc,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Sc,Un.nth=function(e,t){return e&&e.length?Fr(e,mu(t)):o},Un.noConflict=function(){return it._===this&&(it._=Le),this},Un.noop=sc,Un.now=ka,Un.pad=function(e,t,n){e=bu(e);var r=(t=mu(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(fn(o),n)+e+Vo(ln(o),n)},Un.padEnd=function(e,t,n){e=bu(e);var r=(t=mu(t))?on(e):0;return t&&r<t?e+Vo(t-r,n):e},Un.padStart=function(e,t,n){e=bu(e);var r=(t=mu(t))?on(e):0;return t&&r<t?Vo(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(bu(e).replace(re,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&gi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hu(e),t===o?(t=e,e=0):t=hu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return gn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Un.reduce=function(e,t,n){var r=qa(e)?kt:Ut,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},Un.reduceRight=function(e,t,n){var r=qa(e)?jt:Ut,o=arguments.length<3;return r(e,ui(t,4),n,o,pr)},Un.repeat=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:mu(t),Hr(bu(e),t)},Un.replace=function(){var e=arguments,t=bu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=go(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Li(t[r])];a===o&&(r=i,a=n),e=Ja(a)?a.call(e):a}return e},Un.round=Ec,Un.runInContext=e,Un.sample=function(e){return(qa(e)?Qn:Gr)(e)},Un.size=function(e){if(null==e)return 0;if(Ha(e))return cu(e)?on(e):e.length;var t=di(e);return t==x||t==k?e.size:Nr(e).length},Un.snakeCase=Zu,Un.some=function(e,t,n){var r=qa(e)?Pt:no;return n&&gi(e,t,n)&&(t=o),r(e,ui(t,3))},Un.sortedIndex=function(e,t){return ro(e,t)},Un.sortedIndexBy=function(e,t,n){return oo(e,t,ui(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return ro(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return oo(e,t,ui(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Un.startCase=Gu,Un.startsWith=function(e,t,n){return e=bu(e),n=null==n?0:ar(mu(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Un.subtract=$c,Un.sum=function(e){return e&&e.length?zt(e,oc):0},Un.sumBy=function(e,t){return e&&e.length?zt(e,ui(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&gi(e,t,n)&&(t=o),e=bu(e),t=xu({},t,r,Yo);var i,a,u=xu({},t.imports,r.imports,Yo),c=Cu(u),s=Wt(u,c),l=0,f=t.interpolate||be,p="__p += '",d=$e((t.escape||be).source+"|"+f.source+"|"+(f===Y?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ye+"]")+"\n";e.replace(d,(function(t,n,r,o,u,c){return r||(r=o),p+=e.slice(l,c).replace(we,Yt),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),u&&(a=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),p+="';\n";var m=Ie.call(t,"variable")&&t.variable;if(m){if(se.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(B,""):p).replace(V,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Xu((function(){return xe(c,h+"return "+p).apply(o,s)}));if(y.source=p,Ya(y))throw y;return y},Un.times=function(e,t){if((e=mu(e))<1||e>f)return[];var n=d,r=gn(e,d);t=ui(t),e-=d;for(var o=Ft(r,t);++n<e;)t(n);return o},Un.toFinite=hu,Un.toInteger=mu,Un.toLength=yu,Un.toLower=function(e){return bu(e).toLowerCase()},Un.toNumber=vu,Un.toSafeInteger=function(e){return e?ar(mu(e),-9007199254740991,f):0===e?e:0},Un.toString=bu,Un.toUpper=function(e){return bu(e).toUpperCase()},Un.trim=function(e,t,n){if((e=bu(e))&&(n||t===o))return Bt(e);if(!e||!(t=uo(t)))return e;var r=an(e),i=an(t);return wo(r,Kt(r,i),Ht(r,i)+1).join("")},Un.trimEnd=function(e,t,n){if((e=bu(e))&&(n||t===o))return e.slice(0,un(e)+1);if(!e||!(t=uo(t)))return e;var r=an(e);return wo(r,0,Ht(r,an(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=bu(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=uo(t)))return e;var r=an(e);return wo(r,Kt(r,an(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(tu(t)){var i="separator"in t?t.separator:i;n="length"in t?mu(t.length):n,r="omission"in t?uo(t.omission):r}var a=(e=bu(e)).length;if(Jt(e)){var u=an(e);a=u.length}if(n>=a)return e;var c=n-on(r);if(c<1)return r;var s=u?wo(u,0,c).join(""):e.slice(0,c);if(i===o)return s+r;if(u&&(c+=s.length-c),au(i)){if(e.slice(c).search(i)){var l,f=s;for(i.global||(i=$e(i.source,bu(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;s=s.slice(0,p===o?c:p)}}else if(e.indexOf(uo(i),c)!=c){var d=s.lastIndexOf(i);d>-1&&(s=s.slice(0,d))}return s+r},Un.unescape=function(e){return(e=bu(e))&&H.test(e)?e.replace(q,cn):e},Un.uniqueId=function(e){var t=++Re;return bu(e)+t},Un.upperCase=Qu,Un.upperFirst=Yu,Un.each=ba,Un.eachRight=wa,Un.first=Hi,cc(Un,(gc={},br(Un,(function(e,t){Ie.call(Un.prototype,t)||(gc[t]=e)})),gc),{chain:!1}),Un.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),bt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===o?1:vn(mu(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(oc)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Pr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Da(ui(e)))},Vn.prototype.slice=function(e,t){e=mu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=mu(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(d)},br(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,c=t instanceof Vn,s=u[0],l=c||qa(t),f=function(e){var t=i.apply(Un,Ot([e],u));return r&&p?t[0]:t};l&&n&&"function"==typeof s&&1!=s.length&&(c=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,m=c&&!d;if(!a&&l){t=m?t:new Vn(this);var y=e.apply(t,u);return y.__actions__.push({func:ha,args:[f],thisArg:o}),new Bn(y,p)}return h&&m?e.apply(this,u):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),br(Vn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Ie.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Uo(o,2).name]=[{name:"wrapper",func:o}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=jo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=jo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=jo(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,c=u-a,s=r?u:a-1,l=this.__iteratees__,f=l.length,p=0,d=gn(c,this.__takeCount__);if(!n||!r&&o==c&&d==c)return po(e,this.__actions__);var h=[];e:for(;c--&&p<d;){for(var m=-1,y=e[s+=t];++m<f;){var v=l[m],g=v.iteratee,b=v.type,w=g(y);if(2==b)y=w;else if(!w){if(1==b)continue e;break e}}h[p++]=y}return h},Un.prototype.at=ma,Un.prototype.chain=function(){return da(this)},Un.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===o&&(this.__values__=du(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Fn;){var r=zi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new Bn(t,this.__chain__)}return this.thru(ta)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,at&&(Un.prototype[at]=function(){return this}),Un}();it._=sn,(r=function(){return sn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},651:(e,t,n)=>{!function(t){var n=function(e){return o(!0===e,!1,arguments)};function r(e,t){if("object"!==i(e))return t;for(var n in t)"object"===i(e[n])&&"object"===i(t[n])?e[n]=r(e[n],t[n]):e[n]=t[n];return e}function o(e,t,o){var a=o[0],u=o.length;(e||"object"!==i(a))&&(a={});for(var c=0;c<u;++c){var s=o[c];if("object"===i(s))for(var l in s)if("__proto__"!==l){var f=e?n.clone(s[l]):s[l];a[l]=t?r(a[l],f):f}}return a}function i(e){return{}.toString.call(e).slice(8,-1).toLowerCase()}n.recursive=function(e){return o(!0===e,!0,arguments)},n.clone=function(e){var t,r,o=e,a=i(e);if("array"===a)for(o=[],r=e.length,t=0;t<r;++t)o[t]=n.clone(e[t]);else if("object"===a)for(t in o={},e)o[t]=n.clone(e[t]);return o},t?e.exports=n:window.merge=n}((e=n.nmd(e))&&"object"==typeof e.exports&&e.exports)},4516:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,u,c=o(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))n.call(a,l)&&(c[l]=a[l]);if(t){u=t(a);for(var f=0;f<u.length;f++)r.call(a,u[f])&&(c[u[f]]=a[u[f]])}}return c}},459:(e,t,n)=>{"use strict";var r=n(5704);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=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 u.name="Invariant Violation",u}}function t(){return e}e.isRequired=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:i,resetWarningCache:o};return n.PropTypes=n,n}},216:(e,t,n)=>{e.exports=n(459)()},5704:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3975:(e,t,n)=>{"use strict";var r=n(2735),o=n(4516),i=n(9146);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function u(e,t,n,r,o,i,a,u,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var c=!1,s=null,l=!1,f=null,p={onError:function(e){c=!0,s=e}};function d(e,t,n,r,o,i,a,l,f){c=!1,s=null,u.apply(p,arguments)}var h=null,m=null,y=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=y(n),function(e,t,n,r,o,i,u,p,h){if(d.apply(this,arguments),c){if(!c)throw Error(a(198));var m=s;c=!1,s=null,l||(l=!0,f=m)}}(r,t,void 0,e),e.currentTarget=null}var g=null,b={};function w(){if(g)for(var e in b){var t=b[e],n=g.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!x[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in x[n]=t,n=t.eventTypes){var o=void 0,i=n[r],u=t,c=r;if(S.hasOwnProperty(c))throw Error(a(99,c));S[c]=i;var s=i.phasedRegistrationNames;if(s){for(o in s)s.hasOwnProperty(o)&&_(s[o],u,c);o=!0}else i.registrationName?(_(i.registrationName,u,c),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function _(e,t,n){if(E[e])throw Error(a(100,e));E[e]=t,$[e]=t.eventTypes[n].dependencies}var x=[],S={},E={},$={};function O(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var k=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),j=null,P=null,T=null;function A(e){if(e=m(e)){if("function"!=typeof j)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),j(e.stateNode,e.type,t))}}function C(e){P?T?T.push(e):T=[e]:P=e}function I(){if(P){var e=P,t=T;if(T=P=null,A(e),t)for(e=0;e<t.length;e++)A(t[e])}}function R(e,t){return e(t)}function N(e,t,n,r,o){return e(t,n,r,o)}function D(){}var M=R,L=!1,U=!1;function z(){null===P&&null===T||(D(),I())}function F(e,t,n){if(U)return e(t,n);U=!0;try{return M(e,t,n)}finally{U=!1,z()}}var B=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,V=Object.prototype.hasOwnProperty,W={},q={};function K(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var H={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){H[e]=new K(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];H[t]=new K(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){H[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){H[e]=new K(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){H[e]=new K(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){H[e]=new K(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){H[e]=new K(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){H[e]=new K(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){H[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var Z=/[\-:]([a-z])/g;function G(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Z,G);H[t]=new K(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Z,G);H[t]=new K(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Z,G);H[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){H[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),H.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){H[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));var Q=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(e,t,n,r){var o=H.hasOwnProperty(t)?H[t]:null;(null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!V.call(q,e)||!V.call(W,e)&&(B.test(e)?q[e]=!0:(W[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,X="function"==typeof Symbol&&Symbol.for,ee=X?Symbol.for("react.element"):60103,te=X?Symbol.for("react.portal"):60106,ne=X?Symbol.for("react.fragment"):60107,re=X?Symbol.for("react.strict_mode"):60108,oe=X?Symbol.for("react.profiler"):60114,ie=X?Symbol.for("react.provider"):60109,ae=X?Symbol.for("react.context"):60110,ue=X?Symbol.for("react.concurrent_mode"):60111,ce=X?Symbol.for("react.forward_ref"):60112,se=X?Symbol.for("react.suspense"):60113,le=X?Symbol.for("react.suspense_list"):60120,fe=X?Symbol.for("react.memo"):60115,pe=X?Symbol.for("react.lazy"):60116,de=X?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ye(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case se:return"Suspense";case le:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case ce:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ye(e.type);case de:return ye(e.render);case pe:if(e=1===e._status?e._result:null)return ye(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=ye(e.type);n=null,r&&(n=ye(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(J,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Se(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&Y(e,"checked",t,!1)}function $e(e,t){Ee(e,t);var n=ge(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ke(e,t.type,n):t.hasOwnProperty("defaultValue")&&ke(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ke(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function je(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Pe(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ge(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function Ce(e,t){var n=ge(t.value),r=ge(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Re(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ne(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var De,Me,Le=(Me=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((De=De||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=De.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Me(e,t)}))}:Me);function Ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function ze(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fe={animationend:ze("Animation","AnimationEnd"),animationiteration:ze("Animation","AnimationIteration"),animationstart:ze("Animation","AnimationStart"),transitionend:ze("Transition","TransitionEnd")},Be={},Ve={};function We(e){if(Be[e])return Be[e];if(!Fe[e])return e;var t,n=Fe[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ve)return Be[e]=n[t];return e}k&&(Ve=document.createElement("div").style,"AnimationEvent"in window||(delete Fe.animationend.animation,delete Fe.animationiteration.animation,delete Fe.animationstart.animation),"TransitionEvent"in window||delete Fe.transitionend.transition);var qe=We("animationend"),Ke=We("animationiteration"),He=We("animationstart"),Ze=We("transitionend"),Ge="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qe=new("function"==typeof WeakMap?WeakMap:Map);function Ye(e){var t=Qe.get(e);return void 0===t&&(t=new Map,Qe.set(e,t)),t}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function et(e){if(Je(e)!==e)throw Error(a(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return et(o),e;if(i===r)return et(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var u=!1,c=o.child;c;){if(c===n){u=!0,n=o,r=i;break}if(c===r){u=!0,r=o,n=i;break}c=c.sibling}if(!u){for(c=i.child;c;){if(c===n){u=!0,n=i,r=o;break}if(c===r){u=!0,r=i,n=o;break}c=c.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function nt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function it(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function at(e){if(null!==e&&(ot=nt(ot,e)),e=ot,ot=null,e){if(rt(e,it),ot)throw Error(a(95));if(l)throw e=f,l=!1,f=null,e}}function ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!k)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var st=[];function lt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>st.length&&st.push(e)}function ft(e,t,n,r){if(st.length){var o=st.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Pn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=ut(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var u=null,c=0;c<x.length;c++){var s=x[c];s&&(s=s.extractEvents(r,t,i,o,a))&&(u=nt(u,s))}at(u)}}function dt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Ht(t,"scroll",!0);break;case"focus":case"blur":Ht(t,"focus",!0),Ht(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Ht(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ge.indexOf(e)&&Kt(e,t)}n.set(e,null)}}var ht,mt,yt,vt=!1,gt=[],bt=null,wt=null,_t=null,xt=new Map,St=new Map,Et=[],$t="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ot="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function kt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function jt(e,t){switch(e){case"focus":case"blur":bt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Pt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=kt(t,n,r,o,i),null!==t&&null!==(t=Tn(t))&&mt(t),e):(e.eventSystemFlags|=r,e)}function Tt(e){var t=Pn(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Tn(t);return null!==n&&mt(n),e.blockedOn=t,!1}return!0}function Ct(e,t,n){At(e)&&n.delete(t)}function It(){for(vt=!1;0<gt.length;){var e=gt[0];if(null!==e.blockedOn){null!==(e=Tn(e.blockedOn))&&ht(e);break}var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:gt.shift()}null!==bt&&At(bt)&&(bt=null),null!==wt&&At(wt)&&(wt=null),null!==_t&&At(_t)&&(_t=null),xt.forEach(Ct),St.forEach(Ct)}function Rt(e,t){e.blockedOn===t&&(e.blockedOn=null,vt||(vt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,It)))}function Nt(e){function t(t){return Rt(t,e)}if(0<gt.length){Rt(gt[0],e);for(var n=1;n<gt.length;n++){var r=gt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==bt&&Rt(bt,e),null!==wt&&Rt(wt,e),null!==_t&&Rt(_t,e),xt.forEach(t),St.forEach(t),n=0;n<Et.length;n++)(r=Et[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Et.length&&null===(n=Et[0]).blockedOn;)Tt(n),null===n.blockedOn&&Et.shift()}var Dt={},Mt=new Map,Lt=new Map,Ut=["abort","abort",qe,"animationEnd",Ke,"animationIteration",He,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ze,"transitionEnd","waiting","waiting"];function zt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Lt.set(r,t),Mt.set(r,i),Dt[o]=i}}zt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),zt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),zt(Ut,2);for(var Ft="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Bt=0;Bt<Ft.length;Bt++)Lt.set(Ft[Bt],0);var Vt=i.unstable_UserBlockingPriority,Wt=i.unstable_runWithPriority,qt=!0;function Kt(e,t){Ht(t,e,!1)}function Ht(e,t,n){var r=Lt.get(t);switch(void 0===r?2:r){case 0:r=Zt.bind(null,t,1,e);break;case 1:r=Gt.bind(null,t,1,e);break;default:r=Qt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Zt(e,t,n,r){L||D();var o=Qt,i=L;L=!0;try{N(o,e,t,n,r)}finally{(L=i)||z()}}function Gt(e,t,n,r){Wt(Vt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){if(qt)if(0<gt.length&&-1<$t.indexOf(e))e=kt(null,e,t,n,r),gt.push(e);else{var o=Yt(e,t,n,r);if(null===o)jt(e,r);else if(-1<$t.indexOf(e))e=kt(o,e,t,n,r),gt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return bt=Pt(bt,e,t,n,r,o),!0;case"dragenter":return wt=Pt(wt,e,t,n,r,o),!0;case"mouseover":return _t=Pt(_t,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return xt.set(i,Pt(xt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,St.set(i,Pt(St.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){jt(e,r),e=ft(e,r,null,t);try{F(pt,e)}finally{lt(e)}}}}function Yt(e,t,n,r){if(null!==(n=Pn(n=ut(r)))){var o=Je(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=Xe(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=ft(e,r,n,t);try{F(pt,e)}finally{lt(e)}return null}var Jt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xt=["Webkit","ms","Moz","O"];function en(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Jt.hasOwnProperty(e)&&Jt[e]?(""+t).trim():t+"px"}function tn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=en(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Jt).forEach((function(e){Xt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jt[t]=Jt[e]}))}));var nn=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rn(e,t){if(t){if(nn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function on(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var an="http://www.w3.org/1999/xhtml";function un(e,t){var n=Ye(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=$[t];for(var r=0;r<t.length;r++)dt(t[r],e,n)}function cn(){}function sn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ln(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fn(e,t){var n,r=ln(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ln(r)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dn(){for(var e=window,t=sn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=sn((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn="$?",yn="$!",vn=null,gn=null;function bn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function wn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var _n="function"==typeof setTimeout?setTimeout:void 0,xn="function"==typeof clearTimeout?clearTimeout:void 0;function Sn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function En(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===yn||n===mn){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var $n=Math.random().toString(36).slice(2),On="__reactInternalInstance$"+$n,kn="__reactEventHandlers$"+$n,jn="__reactContainere$"+$n;function Pn(e){var t=e[On];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jn]||n[On]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=En(e);null!==e;){if(n=e[On])return n;e=En(e)}return t}n=(e=n).parentNode}return null}function Tn(e){return!(e=e[On]||e[jn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function An(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Cn(e){return e[kn]||null}function In(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Rn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Nn(e,t,n){(t=Rn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Dn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=In(t);for(t=n.length;0<t--;)Nn(n[t],"captured",e);for(t=0;t<n.length;t++)Nn(n[t],"bubbled",e)}}function Mn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Rn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Ln(e){e&&e.dispatchConfig.registrationName&&Mn(e._targetInst,null,e)}function Un(e){rt(e,Dn)}var zn=null,Fn=null,Bn=null;function Vn(){if(Bn)return Bn;var e,t,n=Fn,r=n.length,o="value"in zn?zn.value:zn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Bn=o.slice(e,1<t?1-t:void 0)}function Wn(){return!0}function qn(){return!1}function Kn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Wn:qn,this.isPropagationStopped=qn,this}function Hn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Zn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Hn,e.release=Zn}o(Kn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Wn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wn)},persist:function(){this.isPersistent=Wn},isPersistent:qn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qn,this._dispatchInstances=this._dispatchListeners=null}}),Kn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Kn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Gn(n),n},Gn(Kn);var Qn=Kn.extend({data:null}),Yn=Kn.extend({data:null}),Jn=[9,13,27,32],Xn=k&&"CompositionEvent"in window,er=null;k&&"documentMode"in document&&(er=document.documentMode);var tr=k&&"TextEvent"in window&&!er,nr=k&&(!Xn||er&&8<er&&11>=er),rr=String.fromCharCode(32),or={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ir=!1;function ar(e,t){switch(e){case"keyup":return-1!==Jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ur(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var cr=!1,sr={eventTypes:or,extractEvents:function(e,t,n,r){var o;if(Xn)e:{switch(e){case"compositionstart":var i=or.compositionStart;break e;case"compositionend":i=or.compositionEnd;break e;case"compositionupdate":i=or.compositionUpdate;break e}i=void 0}else cr?ar(e,n)&&(i=or.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=or.compositionStart);return i?(nr&&"ko"!==n.locale&&(cr||i!==or.compositionStart?i===or.compositionEnd&&cr&&(o=Vn()):(Fn="value"in(zn=r)?zn.value:zn.textContent,cr=!0)),i=Qn.getPooled(i,t,n,r),(o||null!==(o=ur(n)))&&(i.data=o),Un(i),o=i):o=null,(e=tr?function(e,t){switch(e){case"compositionend":return ur(t);case"keypress":return 32!==t.which?null:(ir=!0,rr);case"textInput":return(e=t.data)===rr&&ir?null:e;default:return null}}(e,n):function(e,t){if(cr)return"compositionend"===e||!Xn&&ar(e,t)?(e=Vn(),Bn=Fn=zn=null,cr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nr&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Yn.getPooled(or.beforeInput,t,n,r)).data=e,Un(t)):t=null,null===o?t:null===t?o:[o,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var pr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function dr(e,t,n){return(e=Kn.getPooled(pr.change,e,t,n)).type="change",C(n),Un(e),e}var hr=null,mr=null;function yr(e){at(e)}function vr(e){if(_e(An(e)))return e}function gr(e,t){if("change"===e)return t}var br=!1;function wr(){hr&&(hr.detachEvent("onpropertychange",_r),mr=hr=null)}function _r(e){if("value"===e.propertyName&&vr(mr))if(e=dr(mr,e,ut(e)),L)at(e);else{L=!0;try{R(yr,e)}finally{L=!1,z()}}}function xr(e,t,n){"focus"===e?(wr(),mr=n,(hr=t).attachEvent("onpropertychange",_r)):"blur"===e&&wr()}function Sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vr(mr)}function Er(e,t){if("click"===e)return vr(t)}function $r(e,t){if("input"===e||"change"===e)return vr(t)}k&&(br=ct("input")&&(!document.documentMode||9<document.documentMode));var Or={eventTypes:pr,_isInputEventSupported:br,extractEvents:function(e,t,n,r){var o=t?An(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=gr;else if(fr(o))if(br)a=$r;else{a=Sr;var u=xr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Er);if(a&&(a=a(e,t)))return dr(a,n,r);u&&u(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&ke(o,"number",o.value)}},kr=Kn.extend({view:null,detail:null}),jr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=jr[e])&&!!t[e]}function Tr(){return Pr}var Ar=0,Cr=0,Ir=!1,Rr=!1,Nr=kr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Tr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ar;return Ar=e.screenX,Ir?"mousemove"===e.type?e.screenX-t:0:(Ir=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Cr;return Cr=e.screenY,Rr?"mousemove"===e.type?e.screenY-t:0:(Rr=!0,0)}}),Dr=Nr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Mr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Lr={eventTypes:Mr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Pn(t):null)&&(t!==Je(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var u=Nr,c=Mr.mouseLeave,s=Mr.mouseEnter,l="mouse";else"pointerout"!==e&&"pointerover"!==e||(u=Dr,c=Mr.pointerLeave,s=Mr.pointerEnter,l="pointer");if(e=null==a?i:An(a),i=null==t?i:An(t),(c=u.getPooled(c,a,n,r)).type=l+"leave",c.target=e,c.relatedTarget=i,(n=u.getPooled(s,t,n,r)).type=l+"enter",n.target=i,n.relatedTarget=e,l=t,(r=a)&&l)e:{for(s=l,a=0,e=u=r;e;e=In(e))a++;for(e=0,t=s;t;t=In(t))e++;for(;0<a-e;)u=In(u),a--;for(;0<e-a;)s=In(s),e--;for(;a--;){if(u===s||u===s.alternate)break e;u=In(u),s=In(s)}u=null}else u=null;for(s=u,u=[];r&&r!==s&&(null===(a=r.alternate)||a!==s);)u.push(r),r=In(r);for(r=[];l&&l!==s&&(null===(a=l.alternate)||a!==s);)r.push(l),l=In(l);for(l=0;l<u.length;l++)Mn(u[l],"bubbled",c);for(l=r.length;0<l--;)Mn(r[l],"captured",n);return 0==(64&o)?[c]:[c,n]}},Ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},zr=Object.prototype.hasOwnProperty;function Fr(e,t){if(Ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!zr.call(t,n[r])||!Ur(e[n[r]],t[n[r]]))return!1;return!0}var Br=k&&"documentMode"in document&&11>=document.documentMode,Vr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wr=null,qr=null,Kr=null,Hr=!1;function Zr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Hr||null==Wr||Wr!==sn(n)?null:(n="selectionStart"in(n=Wr)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Kr&&Fr(Kr,n)?null:(Kr=n,(e=Kn.getPooled(Vr.select,qr,e,t)).type="select",e.target=Wr,Un(e),e))}var Gr={eventTypes:Vr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Ye(o),i=$.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?An(t):window,e){case"focus":(fr(o)||"true"===o.contentEditable)&&(Wr=o,qr=t,Kr=null);break;case"blur":Kr=qr=Wr=null;break;case"mousedown":Hr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Hr=!1,Zr(n,r);case"selectionchange":if(Br)break;case"keydown":case"keyup":return Zr(n,r)}return null}},Qr=Kn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Yr=Kn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jr=kr.extend({relatedTarget:null});function Xr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var eo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},to={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},no=kr.extend({key:function(e){if(e.key){var t=eo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?to[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Tr,charCode:function(e){return"keypress"===e.type?Xr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ro=Nr.extend({dataTransfer:null}),oo=kr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Tr}),io=Kn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ao=Nr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),uo={eventTypes:Dt,extractEvents:function(e,t,n,r){var o=Mt.get(e);if(!o)return null;switch(e){case"keypress":if(0===Xr(n))return null;case"keydown":case"keyup":e=no;break;case"blur":case"focus":e=Jr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Nr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ro;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=oo;break;case qe:case Ke:case He:e=Qr;break;case Ze:e=io;break;case"scroll":e=kr;break;case"wheel":e=ao;break;case"copy":case"cut":case"paste":e=Yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Dr;break;default:e=Kn}return Un(t=e.getPooled(o,t,n,r)),t}};if(g)throw Error(a(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Cn,m=Tn,y=An,O({SimpleEventPlugin:uo,EnterLeaveEventPlugin:Lr,ChangeEventPlugin:Or,SelectEventPlugin:Gr,BeforeInputEventPlugin:sr});var co=[],so=-1;function lo(e){0>so||(e.current=co[so],co[so]=null,so--)}function fo(e,t){so++,co[so]=e.current,e.current=t}var po={},ho={current:po},mo={current:!1},yo=po;function vo(e,t){var n=e.type.contextTypes;if(!n)return po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function go(e){return null!=e.childContextTypes}function bo(){lo(mo),lo(ho)}function wo(e,t,n){if(ho.current!==po)throw Error(a(168));fo(ho,t),fo(mo,n)}function _o(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,ye(t)||"Unknown",i));return o({},n,{},r)}function xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,yo=ho.current,fo(ho,e),fo(mo,mo.current),!0}function So(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=_o(e,t,yo),r.__reactInternalMemoizedMergedChildContext=e,lo(mo),lo(ho),fo(ho,e)):lo(mo),fo(mo,n)}var Eo=i.unstable_runWithPriority,$o=i.unstable_scheduleCallback,Oo=i.unstable_cancelCallback,ko=i.unstable_requestPaint,jo=i.unstable_now,Po=i.unstable_getCurrentPriorityLevel,To=i.unstable_ImmediatePriority,Ao=i.unstable_UserBlockingPriority,Co=i.unstable_NormalPriority,Io=i.unstable_LowPriority,Ro=i.unstable_IdlePriority,No={},Do=i.unstable_shouldYield,Mo=void 0!==ko?ko:function(){},Lo=null,Uo=null,zo=!1,Fo=jo(),Bo=1e4>Fo?jo:function(){return jo()-Fo};function Vo(){switch(Po()){case To:return 99;case Ao:return 98;case Co:return 97;case Io:return 96;case Ro:return 95;default:throw Error(a(332))}}function Wo(e){switch(e){case 99:return To;case 98:return Ao;case 97:return Co;case 96:return Io;case 95:return Ro;default:throw Error(a(332))}}function qo(e,t){return e=Wo(e),Eo(e,t)}function Ko(e,t,n){return e=Wo(e),$o(e,t,n)}function Ho(e){return null===Lo?(Lo=[e],Uo=$o(To,Go)):Lo.push(e),No}function Zo(){if(null!==Uo){var e=Uo;Uo=null,Oo(e)}Go()}function Go(){if(!zo&&null!==Lo){zo=!0;var e=0;try{var t=Lo;qo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Lo=null}catch(t){throw null!==Lo&&(Lo=Lo.slice(e+1)),$o(To,Zo),t}finally{zo=!1}}}function Qo(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Yo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Jo={current:null},Xo=null,ei=null,ti=null;function ni(){ti=ei=Xo=null}function ri(e){var t=Jo.current;lo(Jo),e.type._context._currentValue=t}function oi(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ii(e,t){Xo=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ca=!0),e.firstContext=null)}function ai(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===Xo)throw Error(a(308));ei=t,Xo.dependencies={expirationTime:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var ui=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function li(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function fi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function pi(e,t){var n=e.alternate;null!==n&&si(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function di(e,t,n,r){var i=e.updateQueue;ui=!1;var a=i.baseQueue,u=i.shared.pending;if(null!==u){if(null!==a){var c=a.next;a.next=u.next,u.next=c}a=u,i.shared.pending=null,null!==(c=e.alternate)&&null!==(c=c.updateQueue)&&(c.baseQueue=u)}if(null!==a){c=a.next;var s=i.baseState,l=0,f=null,p=null,d=null;if(null!==c)for(var h=c;;){if((u=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===d?(p=d=m,f=s):d=d.next=m,u>l&&(l=u)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),sc(u,h.suspenseConfig);e:{var y=e,v=h;switch(u=t,m=n,v.tag){case 1:if("function"==typeof(y=v.payload)){s=y.call(m,s,u);break e}s=y;break e;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null==(u="function"==typeof(y=v.payload)?y.call(m,s,u):y))break e;s=o({},s,u);break e;case 2:ui=!0}}null!==h.callback&&(e.effectTag|=32,null===(u=i.effects)?i.effects=[h]:u.push(h))}if(null===(h=h.next)||h===c){if(null===(u=i.shared.pending))break;h=a.next=u.next,u.next=c,i.baseQueue=a=u,i.shared.pending=null}}null===d?f=s:d.next=p,i.baseState=f,i.baseQueue=d,lc(l),e.expirationTime=l,e.memoizedState=s}}function hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var mi=Q.ReactCurrentBatchConfig,yi=(new r.Component).refs;function vi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var gi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Qu(),o=mi.suspense;(o=li(r=Yu(r,e,o),o)).payload=t,null!=n&&(o.callback=n),fi(e,o),Ju(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Qu(),o=mi.suspense;(o=li(r=Yu(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),fi(e,o),Ju(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Qu(),r=mi.suspense;(r=li(n=Yu(n,e,r),r)).tag=2,null!=t&&(r.callback=t),fi(e,r),Ju(e,n)}};function bi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&Fr(n,r)&&Fr(o,i))}function wi(e,t,n){var r=!1,o=po,i=t.contextType;return"object"==typeof i&&null!==i?i=ai(i):(o=go(t)?yo:ho.current,i=(r=null!=(r=t.contextTypes))?vo(e,o):po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=gi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function _i(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&gi.enqueueReplaceState(t,t.state,null)}function xi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=yi,ci(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ai(i):(i=go(t)?yo:ho.current,o.context=vo(e,i)),di(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&gi.enqueueReplaceState(o,o.state,null),di(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Si=Array.isArray;function Ei(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===yi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function $i(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Oi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Tc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Ic(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ei(e,t,n),r.return=e,r):((r=Ac(n.type,n.key,n.props,null,e.mode,r)).ref=Ei(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Rc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Cc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ic(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=Ei(e,null,t),n.return=e,n;case te:return(t=Rc(t,e.mode,n)).return=e,t}if(Si(t)||me(t))return(t=Cc(t,e.mode,n,null)).return=e,t;$i(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case te:return n.key===o?l(e,t,n,r):null}if(Si(n)||me(n))return null!==o?null:f(e,t,n,r,null);$i(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case te:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Si(r)||me(r))return f(t,e=e.get(n)||null,r,o,null);$i(t,r)}return null}function m(o,a,u,c){for(var s=null,l=null,f=a,m=a=0,y=null;null!==f&&m<u.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=d(o,f,u[m],c);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(o,f),a=i(v,a,m),null===l?s=v:l.sibling=v,l=v,f=y}if(m===u.length)return n(o,f),s;if(null===f){for(;m<u.length;m++)null!==(f=p(o,u[m],c))&&(a=i(f,a,m),null===l?s=f:l.sibling=f,l=f);return s}for(f=r(o,f);m<u.length;m++)null!==(y=h(f,o,m,u[m],c))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),a=i(y,a,m),null===l?s=y:l.sibling=y,l=y);return e&&f.forEach((function(e){return t(o,e)})),s}function y(o,u,c,s){var l=me(c);if("function"!=typeof l)throw Error(a(150));if(null==(c=l.call(c)))throw Error(a(151));for(var f=l=null,m=u,y=u=0,v=null,g=c.next();null!==m&&!g.done;y++,g=c.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=d(o,m,g.value,s);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),u=i(b,u,y),null===f?l=b:f.sibling=b,f=b,m=v}if(g.done)return n(o,m),l;if(null===m){for(;!g.done;y++,g=c.next())null!==(g=p(o,g.value,s))&&(u=i(g,u,y),null===f?l=g:f.sibling=g,f=g);return l}for(m=r(o,m);!g.done;y++,g=c.next())null!==(g=h(m,o,y,g.value,s))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),u=i(g,u,y),null===f?l=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),l}return function(e,r,i,c){var s="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;s&&(i=i.props.children);var l="object"==typeof i&&null!==i;if(l)switch(i.$$typeof){case ee:e:{for(l=i.key,s=r;null!==s;){if(s.key===l){if(7===s.tag){if(i.type===ne){n(e,s.sibling),(r=o(s,i.props.children)).return=e,e=r;break e}}else if(s.elementType===i.type){n(e,s.sibling),(r=o(s,i.props)).ref=Ei(e,s,i),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}i.type===ne?((r=Cc(i.props.children,e.mode,c,i.key)).return=e,e=r):((c=Ac(i.type,i.key,i.props,null,e.mode,c)).ref=Ei(e,r,i),c.return=e,e=c)}return u(e);case te:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Rc(i,e.mode,c)).return=e,e=r}return u(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Ic(i,e.mode,c)).return=e,e=r),u(e);if(Si(i))return m(e,r,i,c);if(me(i))return y(e,r,i,c);if(l&&$i(e,i),void 0===i&&!s)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var ki=Oi(!0),ji=Oi(!1),Pi={},Ti={current:Pi},Ai={current:Pi},Ci={current:Pi};function Ii(e){if(e===Pi)throw Error(a(174));return e}function Ri(e,t){switch(fo(Ci,t),fo(Ai,e),fo(Ti,Pi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ne(null,"");break;default:t=Ne(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(Ti),fo(Ti,t)}function Ni(){lo(Ti),lo(Ai),lo(Ci)}function Di(e){Ii(Ci.current);var t=Ii(Ti.current),n=Ne(t,e.type);t!==n&&(fo(Ai,e),fo(Ti,n))}function Mi(e){Ai.current===e&&(lo(Ti),lo(Ai))}var Li={current:0};function Ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===mn||n.data===yn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function zi(e,t){return{responder:e,props:t}}var Fi=Q.ReactCurrentDispatcher,Bi=Q.ReactCurrentBatchConfig,Vi=0,Wi=null,qi=null,Ki=null,Hi=!1;function Zi(){throw Error(a(321))}function Gi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ur(e[n],t[n]))return!1;return!0}function Qi(e,t,n,r,o,i){if(Vi=i,Wi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Fi.current=null===e||null===e.memoizedState?ba:wa,e=n(r,o),t.expirationTime===Vi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Ki=qi=null,t.updateQueue=null,Fi.current=_a,e=n(r,o)}while(t.expirationTime===Vi)}if(Fi.current=ga,t=null!==qi&&null!==qi.next,Vi=0,Ki=qi=Wi=null,Hi=!1,t)throw Error(a(300));return e}function Yi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Wi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function Ji(){if(null===qi){var e=Wi.alternate;e=null!==e?e.memoizedState:null}else e=qi.next;var t=null===Ki?Wi.memoizedState:Ki.next;if(null!==t)Ki=t,qi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(qi=e).memoizedState,baseState:qi.baseState,baseQueue:qi.baseQueue,queue:qi.queue,next:null},null===Ki?Wi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function Xi(e,t){return"function"==typeof t?t(e):t}function ea(e){var t=Ji(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=qi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var u=o.next;o.next=i.next,i.next=u}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var c=u=i=null,s=o;do{var l=s.expirationTime;if(l<Vi){var f={expirationTime:s.expirationTime,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===c?(u=c=f,i=r):c=c.next=f,l>Wi.expirationTime&&(Wi.expirationTime=l,lc(l))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),sc(l,s.suspenseConfig),r=s.eagerReducer===e?s.eagerState:e(r,s.action);s=s.next}while(null!==s&&s!==o);null===c?i=r:c.next=u,Ur(r,t.memoizedState)||(Ca=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ta(e){var t=Ji(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{i=e(i,u.action),u=u.next}while(u!==o);Ur(i,t.memoizedState)||(Ca=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function na(e){var t=Yi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e}).dispatch=va.bind(null,Wi,e),[t.memoizedState,e]}function ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Wi.updateQueue)?(t={lastEffect:null},Wi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function oa(){return Ji().memoizedState}function ia(e,t,n,r){var o=Yi();Wi.effectTag|=e,o.memoizedState=ra(1|t,n,void 0,void 0===r?null:r)}function aa(e,t,n,r){var o=Ji();r=void 0===r?null:r;var i=void 0;if(null!==qi){var a=qi.memoizedState;if(i=a.destroy,null!==r&&Gi(r,a.deps))return void ra(t,n,i,r)}Wi.effectTag|=e,o.memoizedState=ra(1|t,n,i,r)}function ua(e,t){return ia(516,4,e,t)}function ca(e,t){return aa(516,4,e,t)}function sa(e,t){return aa(4,2,e,t)}function la(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function fa(e,t,n){return n=null!=n?n.concat([e]):null,aa(4,2,la.bind(null,t,e),n)}function pa(){}function da(e,t){return Yi().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Gi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ma(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Gi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ya(e,t,n){var r=Vo();qo(98>r?98:r,(function(){e(!0)})),qo(97<r?97:r,(function(){var r=Bi.suspense;Bi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Bi.suspense=r}}))}function va(e,t,n){var r=Qu(),o=mi.suspense;o={expirationTime:r=Yu(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Wi||null!==i&&i===Wi)Hi=!0,o.expirationTime=Vi,Wi.expirationTime=Vi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=i(a,n);if(o.eagerReducer=i,o.eagerState=u,Ur(u,a))return}catch(e){}Ju(e,r)}}var ga={readContext:ai,useCallback:Zi,useContext:Zi,useEffect:Zi,useImperativeHandle:Zi,useLayoutEffect:Zi,useMemo:Zi,useReducer:Zi,useRef:Zi,useState:Zi,useDebugValue:Zi,useResponder:Zi,useDeferredValue:Zi,useTransition:Zi},ba={readContext:ai,useCallback:da,useContext:ai,useEffect:ua,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ia(4,2,la.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ia(4,2,e,t)},useMemo:function(e,t){var n=Yi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=va.bind(null,Wi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Yi().memoizedState=e},useState:na,useDebugValue:pa,useResponder:zi,useDeferredValue:function(e,t){var n=na(e),r=n[0],o=n[1];return ua((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=na(!1),n=t[0];return t=t[1],[da(ya.bind(null,t,e),[t,e]),n]}},wa={readContext:ai,useCallback:ha,useContext:ai,useEffect:ca,useImperativeHandle:fa,useLayoutEffect:sa,useMemo:ma,useReducer:ea,useRef:oa,useState:function(){return ea(Xi)},useDebugValue:pa,useResponder:zi,useDeferredValue:function(e,t){var n=ea(Xi),r=n[0],o=n[1];return ca((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(Xi),n=t[0];return t=t[1],[ha(ya.bind(null,t,e),[t,e]),n]}},_a={readContext:ai,useCallback:ha,useContext:ai,useEffect:ca,useImperativeHandle:fa,useLayoutEffect:sa,useMemo:ma,useReducer:ta,useRef:oa,useState:function(){return ta(Xi)},useDebugValue:pa,useResponder:zi,useDeferredValue:function(e,t){var n=ta(Xi),r=n[0],o=n[1];return ca((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ta(Xi),n=t[0];return t=t[1],[ha(ya.bind(null,t,e),[t,e]),n]}},xa=null,Sa=null,Ea=!1;function $a(e,t){var n=jc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Oa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function ka(e){if(Ea){var t=Sa;if(t){var n=t;if(!Oa(e,t)){if(!(t=Sn(n.nextSibling))||!Oa(e,t))return e.effectTag=-1025&e.effectTag|2,Ea=!1,void(xa=e);$a(xa,n)}xa=e,Sa=Sn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ea=!1,xa=e}}function ja(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xa=e}function Pa(e){if(e!==xa)return!1;if(!Ea)return ja(e),Ea=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!wn(t,e.memoizedProps))for(t=Sa;t;)$a(e,t),t=Sn(t.nextSibling);if(ja(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Sa=Sn(e.nextSibling);break e}t--}else"$"!==n&&n!==yn&&n!==mn||t++}e=e.nextSibling}Sa=null}}else Sa=xa?Sn(e.stateNode.nextSibling):null;return!0}function Ta(){Sa=xa=null,Ea=!1}var Aa=Q.ReactCurrentOwner,Ca=!1;function Ia(e,t,n,r){t.child=null===e?ji(t,null,n,r):ki(t,e.child,n,r)}function Ra(e,t,n,r,o){n=n.render;var i=t.ref;return ii(t,o),r=Qi(e,t,n,r,i,o),null===e||Ca?(t.effectTag|=1,Ia(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Qa(e,t,o))}function Na(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Pc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ac(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Da(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Fr)(o,r)&&e.ref===t.ref)?Qa(e,t,i):(t.effectTag|=1,(e=Tc(a,r)).ref=t.ref,e.return=t,t.child=e)}function Da(e,t,n,r,o,i){return null!==e&&Fr(e.memoizedProps,r)&&e.ref===t.ref&&(Ca=!1,o<i)?(t.expirationTime=e.expirationTime,Qa(e,t,i)):La(e,t,n,r,i)}function Ma(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function La(e,t,n,r,o){var i=go(n)?yo:ho.current;return i=vo(t,i),ii(t,o),n=Qi(e,t,n,r,i,o),null===e||Ca?(t.effectTag|=1,Ia(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Qa(e,t,o))}function Ua(e,t,n,r,o){if(go(n)){var i=!0;xo(t)}else i=!1;if(ii(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),wi(t,n,r),xi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var c=a.context,s=n.contextType;s="object"==typeof s&&null!==s?ai(s):vo(t,s=go(n)?yo:ho.current);var l=n.getDerivedStateFromProps,f="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||c!==s)&&_i(t,a,r,s),ui=!1;var p=t.memoizedState;a.state=p,di(t,r,a,o),c=t.memoizedState,u!==r||p!==c||mo.current||ui?("function"==typeof l&&(vi(t,n,l,r),c=t.memoizedState),(u=ui||bi(t,n,u,r,p,c,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=s,r=u):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,si(e,t),u=t.memoizedProps,a.props=t.type===t.elementType?u:Yo(t.type,u),c=a.context,s="object"==typeof(s=n.contextType)&&null!==s?ai(s):vo(t,s=go(n)?yo:ho.current),(f="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||c!==s)&&_i(t,a,r,s),ui=!1,c=t.memoizedState,a.state=c,di(t,r,a,o),p=t.memoizedState,u!==r||c!==p||mo.current||ui?("function"==typeof l&&(vi(t,n,l,r),p=t.memoizedState),(l=ui||bi(t,n,u,r,c,p,s))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=s,r=l):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return za(e,t,n,r,i,o)}function za(e,t,n,r,o,i){Ma(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&So(t,n,!1),Qa(e,t,i);r=t.stateNode,Aa.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=ki(t,e.child,null,i),t.child=ki(t,null,u,i)):Ia(e,t,u,i),t.memoizedState=r.state,o&&So(t,n,!0),t.child}function Fa(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Ri(e,t.containerInfo)}var Ba,Va,Wa,qa={dehydrated:null,retryTime:0};function Ka(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Li.current,u=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(u=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),fo(Li,1&a),null===e){if(void 0!==i.fallback&&ka(t),u){if(u=i.fallback,(i=Cc(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Cc(u,o,n,null)).return=t,i.sibling=n,t.memoizedState=qa,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=ji(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,u){if(i=i.fallback,(n=Tc(e,e.pendingProps)).return=t,0==(2&t.mode)&&(u=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=u;null!==u;)u.return=n,u=u.sibling;return(o=Tc(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=qa,t.child=n,o}return n=ki(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,u){if(u=i.fallback,(i=Cc(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Cc(u,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=qa,t.child=i,n}return t.memoizedState=null,t.child=ki(t,e,i.children,n)}function Ha(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),oi(e.return,t)}function Za(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Ga(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ia(e,t,r.children,n),0!=(2&(r=Li.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ha(e,n);else if(19===e.tag)Ha(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fo(Li,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ui(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Za(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ui(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Za(t,!0,n,null,i,t.lastEffect);break;case"together":Za(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&lc(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Tc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ya(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ja(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return go(t.type)&&bo(),null;case 3:return Ni(),lo(mo),lo(ho),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Pa(t)||(t.effectTag|=4),null;case 5:Mi(t),n=Ii(Ci.current);var i=t.type;if(null!==e&&null!=t.stateNode)Va(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ii(Ti.current),Pa(t)){r=t.stateNode,i=t.type;var u=t.memoizedProps;switch(r[On]=t,r[kn]=u,i){case"iframe":case"object":case"embed":Kt("load",r);break;case"video":case"audio":for(e=0;e<Ge.length;e++)Kt(Ge[e],r);break;case"source":Kt("error",r);break;case"img":case"image":case"link":Kt("error",r),Kt("load",r);break;case"form":Kt("reset",r),Kt("submit",r);break;case"details":Kt("toggle",r);break;case"input":Se(r,u),Kt("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Kt("invalid",r),un(n,"onChange");break;case"textarea":Ae(r,u),Kt("invalid",r),un(n,"onChange")}for(var c in rn(i,u),e=null,u)if(u.hasOwnProperty(c)){var s=u[c];"children"===c?"string"==typeof s?r.textContent!==s&&(e=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(e=["children",""+s]):E.hasOwnProperty(c)&&null!=s&&un(n,c)}switch(i){case"input":we(r),Oe(r,u,!0);break;case"textarea":we(r),Ie(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,e===an&&(e=Re(i)),e===an?"script"===i?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(i,{is:r.is}):(e=c.createElement(i),"select"===i&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,i),e[On]=t,e[kn]=r,Ba(e,t),t.stateNode=e,c=on(i,r),i){case"iframe":case"object":case"embed":Kt("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ge.length;s++)Kt(Ge[s],e);s=r;break;case"source":Kt("error",e),s=r;break;case"img":case"image":case"link":Kt("error",e),Kt("load",e),s=r;break;case"form":Kt("reset",e),Kt("submit",e),s=r;break;case"details":Kt("toggle",e),s=r;break;case"input":Se(e,r),s=xe(e,r),Kt("invalid",e),un(n,"onChange");break;case"option":s=je(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=o({},r,{value:void 0}),Kt("invalid",e),un(n,"onChange");break;case"textarea":Ae(e,r),s=Te(e,r),Kt("invalid",e),un(n,"onChange");break;default:s=r}rn(i,s);var l=s;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];"style"===u?tn(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&Le(e,f):"children"===u?"string"==typeof f?("textarea"!==i||""!==f)&&Ue(e,f):"number"==typeof f&&Ue(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(E.hasOwnProperty(u)?null!=f&&un(n,u):null!=f&&Y(e,u,f,c))}switch(i){case"input":we(e),Oe(e,r,!1);break;case"textarea":we(e),Ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ge(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Pe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Pe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof s.onClick&&(e.onclick=cn)}bn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Wa(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ii(Ci.current),Ii(Ti.current),Pa(t)?(n=t.stateNode,r=t.memoizedProps,n[On]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[On]=t,t.stateNode=n)}return null;case 13:return lo(Li),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Pa(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=i,i.nextEffect=u):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Li.current)?Au===Eu&&(Au=$u):(Au!==Eu&&Au!==$u||(Au=Ou),0!==Du&&null!==ju&&(Mc(ju,Tu),Lc(ju,Du)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ni(),null;case 10:return ri(t),null;case 19:if(lo(Li),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(u=r.rendering)){if(i)Ya(r,!1);else if(Au!==Eu||null!==e&&0!=(64&e.effectTag))for(u=t.child;null!==u;){if(null!==(e=Ui(u))){for(t.effectTag|=64,Ya(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)u=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=u,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,u=e.dependencies,i.dependencies=null===u?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),r=r.sibling;return fo(Li,1&Li.current|2),t.child}u=u.sibling}}else{if(!i)if(null!==(e=Ui(u))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ya(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Ya(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Bo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bo(),n.sibling=null,t=Li.current,fo(Li,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Xa(e){switch(e.tag){case 1:go(e.type)&&bo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ni(),lo(mo),lo(ho),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Mi(e),null;case 13:return lo(Li),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return lo(Li),null;case 4:return Ni(),null;case 10:return ri(e),null;default:return null}}function eu(e,t){return{value:e,source:t,stack:ve(t)}}Ba=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var u,c,s=t.stateNode;switch(Ii(Ti.current),e=null,n){case"input":a=xe(s,a),r=xe(s,r),e=[];break;case"option":a=je(s,a),r=je(s,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Te(s,a),r=Te(s,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=cn)}for(u in rn(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u)for(c in s=a[u])s.hasOwnProperty(c)&&(n||(n={}),n[c]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(E.hasOwnProperty(u)?e||(e=[]):(e=e||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(c in s)!s.hasOwnProperty(c)||l&&l.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in l)l.hasOwnProperty(c)&&s[c]!==l[c]&&(n||(n={}),n[c]=l[c])}else n||(e||(e=[]),e.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(e=e||[]).push(u,l)):"children"===u?s===l||"string"!=typeof l&&"number"!=typeof l||(e=e||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(E.hasOwnProperty(u)?(null!=l&&un(i,u),e||s===l||(e=[])):(e=e||[]).push(u,l))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Wa=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var tu="function"==typeof WeakSet?WeakSet:Set;function nu(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&ye(n.type),t=t.value,null!==e&&1===e.tag&&ye(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ru(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){xc(e,t)}else t.current=null}function ou(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function iu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function au(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function uu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void au(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Yo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&hi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}hi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Nt(n)))))}throw Error(a(163))}function cu(e,t,n){switch("function"==typeof Oc&&Oc(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;qo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){xc(o,e)}}e=e.next}while(e!==r)}))}break;case 1:ru(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){xc(e,t)}}(t,n);break;case 5:ru(t);break;case 4:hu(e,t,n)}}function su(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&su(t)}function lu(e){return 5===e.tag||3===e.tag||4===e.tag}function fu(e){e:{for(var t=e.return;null!==t;){if(lu(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||lu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?pu(e,n,t):du(e,n,t)}function pu(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=cn));else if(4!==r&&null!==(e=e.child))for(pu(e,t,n),e=e.sibling;null!==e;)pu(e,t,n),e=e.sibling}function du(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(du(e,t,n),e=e.sibling;null!==e;)du(e,t,n),e=e.sibling}function hu(e,t,n){for(var r,o,i=t,u=!1;;){if(!u){u=i.return;e:for(;;){if(null===u)throw Error(a(160));switch(r=u.stateNode,u.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}u=u.return}u=!0}if(5===i.tag||6===i.tag){e:for(var c=e,s=i,l=n,f=s;;)if(cu(c,f,l),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===s)break e;for(;null===f.sibling;){if(null===f.return||f.return===s)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?(c=r,s=i.stateNode,8===c.nodeType?c.parentNode.removeChild(s):c.removeChild(s)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(cu(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(u=!1)}i.sibling.return=i.return,i=i.sibling}}function mu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void iu(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[kn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),on(e,o),t=on(e,r),o=0;o<i.length;o+=2){var u=i[o],c=i[o+1];"style"===u?tn(n,c):"dangerouslySetInnerHTML"===u?Le(n,c):"children"===u?Ue(n,c):Y(n,u,c,t)}switch(e){case"input":$e(n,r);break;case"textarea":Ce(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Pe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Pe(n,!!r.multiple,r.defaultValue,!0):Pe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Nt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Lu=Bo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=en("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void yu(t);case 19:return void yu(t)}throw Error(a(163))}function yu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new tu),t.forEach((function(t){var r=Ec.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var vu="function"==typeof WeakMap?WeakMap:Map;function gu(e,t,n){(n=li(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zu||(zu=!0,Fu=r),nu(e,t)},n}function bu(e,t,n){(n=li(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return nu(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Bu?Bu=new Set([this]):Bu.add(this),nu(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var wu,_u=Math.ceil,xu=Q.ReactCurrentDispatcher,Su=Q.ReactCurrentOwner,Eu=0,$u=3,Ou=4,ku=0,ju=null,Pu=null,Tu=0,Au=Eu,Cu=null,Iu=1073741823,Ru=1073741823,Nu=null,Du=0,Mu=!1,Lu=0,Uu=null,zu=!1,Fu=null,Bu=null,Vu=!1,Wu=null,qu=90,Ku=null,Hu=0,Zu=null,Gu=0;function Qu(){return 0!=(48&ku)?1073741821-(Bo()/10|0):0!==Gu?Gu:Gu=1073741821-(Bo()/10|0)}function Yu(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Vo();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&ku))return Tu;if(null!==n)e=Qo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Qo(e,150,100);break;case 97:case 96:e=Qo(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==ju&&e===Tu&&--e,e}function Ju(e,t){if(50<Hu)throw Hu=0,Zu=null,Error(a(185));if(null!==(e=Xu(e,t))){var n=Vo();1073741823===t?0!=(8&ku)&&0==(48&ku)?rc(e):(tc(e),0===ku&&Zo()):tc(e),0==(4&ku)||98!==n&&99!==n||(null===Ku?Ku=new Map([[e,t]]):(void 0===(n=Ku.get(e))||n>t)&&Ku.set(e,t))}}function Xu(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(ju===o&&(lc(t),Au===Ou&&Mc(o,Tu)),Lc(o,t)),o}function ec(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Dc(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function tc(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ho(rc.bind(null,e));else{var t=ec(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Qu();if(r=1073741823===t?99:1===t||2===t?95:0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==No&&Oo(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Ho(rc.bind(null,e)):Ko(r,nc.bind(null,e),{timeout:10*(1073741821-t)-Bo()}),e.callbackNode=t}}}function nc(e,t){if(Gu=0,t)return Uc(e,t=Qu()),tc(e),null;var n=ec(e);if(0!==n){if(t=e.callbackNode,0!=(48&ku))throw Error(a(327));if(bc(),e===ju&&n===Tu||ac(e,n),null!==Pu){var r=ku;ku|=16;for(var o=cc();;)try{pc();break}catch(t){uc(e,t)}if(ni(),ku=r,xu.current=o,1===Au)throw t=Cu,ac(e,n),Mc(e,n),tc(e),t;if(null===Pu)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Au,ju=null,r){case Eu:case 1:throw Error(a(345));case 2:Uc(e,2<n?2:n);break;case $u:if(Mc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=mc(o)),1073741823===Iu&&10<(o=Lu+500-Bo())){if(Mu){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,ac(e,n);break}}if(0!==(i=ec(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=_n(yc.bind(null,e),o);break}yc(e);break;case Ou:if(Mc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=mc(o)),Mu&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,ac(e,n);break}if(0!==(o=ec(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ru?r=10*(1073741821-Ru)-Bo():1073741823===Iu?r=0:(r=10*(1073741821-Iu)-5e3,0>(r=(o=Bo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_u(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=_n(yc.bind(null,e),r);break}yc(e);break;case 5:if(1073741823!==Iu&&null!==Nu){i=Iu;var u=Nu;if(0>=(r=0|u.busyMinDurationMs)?r=0:(o=0|u.busyDelayMs,r=(i=Bo()-(10*(1073741821-i)-(0|u.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Mc(e,n),e.timeoutHandle=_n(yc.bind(null,e),r);break}}yc(e);break;default:throw Error(a(329))}if(tc(e),e.callbackNode===t)return nc.bind(null,e)}}return null}function rc(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&ku))throw Error(a(327));if(bc(),e===ju&&t===Tu||ac(e,t),null!==Pu){var n=ku;ku|=16;for(var r=cc();;)try{fc();break}catch(t){uc(e,t)}if(ni(),ku=n,xu.current=r,1===Au)throw n=Cu,ac(e,t),Mc(e,t),tc(e),n;if(null!==Pu)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,ju=null,yc(e),tc(e)}return null}function oc(e,t){var n=ku;ku|=1;try{return e(t)}finally{0===(ku=n)&&Zo()}}function ic(e,t){var n=ku;ku&=-2,ku|=8;try{return e(t)}finally{0===(ku=n)&&Zo()}}function ac(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xn(n)),null!==Pu)for(n=Pu.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&bo();break;case 3:Ni(),lo(mo),lo(ho);break;case 5:Mi(r);break;case 4:Ni();break;case 13:case 19:lo(Li);break;case 10:ri(r)}n=n.return}ju=e,Pu=Tc(e.current,null),Tu=t,Au=Eu,Cu=null,Ru=Iu=1073741823,Nu=null,Du=0,Mu=!1}function uc(e,t){for(;;){try{if(ni(),Fi.current=ga,Hi)for(var n=Wi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Vi=0,Ki=qi=Wi=null,Hi=!1,null===Pu||null===Pu.return)return Au=1,Cu=t,Pu=null;e:{var o=e,i=Pu.return,a=Pu,u=t;if(t=Tu,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u;if(0==(2&a.mode)){var s=a.alternate;s?(a.updateQueue=s.updateQueue,a.memoizedState=s.memoizedState,a.expirationTime=s.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var l=0!=(1&Li.current),f=i;do{var p;if(p=13===f.tag){var d=f.memoizedState;if(null!==d)p=null!==d.dehydrated;else{var h=f.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!l)}}if(p){var m=f.updateQueue;if(null===m){var y=new Set;y.add(c),f.updateQueue=y}else m.add(c);if(0==(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=li(1073741823,null);v.tag=2,fi(a,v)}a.expirationTime=1073741823;break e}u=void 0,a=t;var g=o.pingCache;if(null===g?(g=o.pingCache=new vu,u=new Set,g.set(c,u)):void 0===(u=g.get(c))&&(u=new Set,g.set(c,u)),!u.has(a)){u.add(a);var b=Sc.bind(null,o,c,a);c.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);u=Error((ye(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==Au&&(Au=2),u=eu(u,a),f=i;do{switch(f.tag){case 3:c=u,f.effectTag|=4096,f.expirationTime=t,pi(f,gu(f,c,t));break e;case 1:c=u;var w=f.type,_=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===Bu||!Bu.has(_)))){f.effectTag|=4096,f.expirationTime=t,pi(f,bu(f,c,t));break e}}f=f.return}while(null!==f)}Pu=hc(Pu)}catch(e){t=e;continue}break}}function cc(){var e=xu.current;return xu.current=ga,null===e?ga:e}function sc(e,t){e<Iu&&2<e&&(Iu=e),null!==t&&e<Ru&&2<e&&(Ru=e,Nu=t)}function lc(e){e>Du&&(Du=e)}function fc(){for(;null!==Pu;)Pu=dc(Pu)}function pc(){for(;null!==Pu&&!Do();)Pu=dc(Pu)}function dc(e){var t=wu(e.alternate,e,Tu);return e.memoizedProps=e.pendingProps,null===t&&(t=hc(e)),Su.current=null,t}function hc(e){Pu=e;do{var t=Pu.alternate;if(e=Pu.return,0==(2048&Pu.effectTag)){if(t=Ja(t,Pu,Tu),1===Tu||1!==Pu.childExpirationTime){for(var n=0,r=Pu.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Pu.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Pu.firstEffect),null!==Pu.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Pu.firstEffect),e.lastEffect=Pu.lastEffect),1<Pu.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Pu:e.firstEffect=Pu,e.lastEffect=Pu))}else{if(null!==(t=Xa(Pu)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Pu.sibling))return t;Pu=e}while(null!==Pu);return Au===Eu&&(Au=5),null}function mc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function yc(e){var t=Vo();return qo(99,vc.bind(null,e,t)),null}function vc(e,t){do{bc()}while(null!==Wu);if(0!=(48&ku))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=mc(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ju&&(Pu=ju=null,Tu=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=ku;ku|=32,Su.current=null,vn=qt;var u=dn();if(hn(u)){if("selectionStart"in u)var c={start:u.selectionStart,end:u.selectionEnd};else e:{var s=(c=(c=u.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(s&&0!==s.rangeCount){c=s.anchorNode;var l=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{c.nodeType,f.nodeType}catch(e){c=null;break e}var p=0,d=-1,h=-1,m=0,y=0,v=u,g=null;t:for(;;){for(var b;v!==c||0!==l&&3!==v.nodeType||(d=p+l),v!==f||0!==s&&3!==v.nodeType||(h=p+s),3===v.nodeType&&(p+=v.nodeValue.length),null!==(b=v.firstChild);)g=v,v=b;for(;;){if(v===u)break t;if(g===c&&++m===l&&(d=p),g===f&&++y===s&&(h=p),null!==(b=v.nextSibling))break;g=(v=g).parentNode}v=b}c=-1===d||-1===h?null:{start:d,end:h}}else c=null}c=c||{start:0,end:0}}else c=null;gn={activeElementDetached:null,focusedElem:u,selectionRange:c},qt=!1,Uu=o;do{try{gc()}catch(e){if(null===Uu)throw Error(a(330));xc(Uu,e),Uu=Uu.nextEffect}}while(null!==Uu);Uu=o;do{try{for(u=e,c=t;null!==Uu;){var w=Uu.effectTag;if(16&w&&Ue(Uu.stateNode,""),128&w){var _=Uu.alternate;if(null!==_){var x=_.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&w){case 2:fu(Uu),Uu.effectTag&=-3;break;case 6:fu(Uu),Uu.effectTag&=-3,mu(Uu.alternate,Uu);break;case 1024:Uu.effectTag&=-1025;break;case 1028:Uu.effectTag&=-1025,mu(Uu.alternate,Uu);break;case 4:mu(Uu.alternate,Uu);break;case 8:hu(u,l=Uu,c),su(l)}Uu=Uu.nextEffect}}catch(e){if(null===Uu)throw Error(a(330));xc(Uu,e),Uu=Uu.nextEffect}}while(null!==Uu);if(x=gn,_=dn(),w=x.focusedElem,c=x.selectionRange,_!==w&&w&&w.ownerDocument&&pn(w.ownerDocument.documentElement,w)){null!==c&&hn(w)&&(_=c.start,void 0===(x=c.end)&&(x=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(x,w.value.length)):(x=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(x=x.getSelection(),l=w.textContent.length,u=Math.min(c.start,l),c=void 0===c.end?u:Math.min(c.end,l),!x.extend&&u>c&&(l=c,c=u,u=l),l=fn(w,u),f=fn(w,c),l&&f&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((_=_.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),u>c?(x.addRange(_),x.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),x.addRange(_))))),_=[];for(x=w;x=x.parentNode;)1===x.nodeType&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(x=_[w]).element.scrollLeft=x.left,x.element.scrollTop=x.top}qt=!!vn,gn=vn=null,e.current=n,Uu=o;do{try{for(w=e;null!==Uu;){var S=Uu.effectTag;if(36&S&&uu(w,Uu.alternate,Uu),128&S){_=void 0;var E=Uu.ref;if(null!==E){var $=Uu.stateNode;Uu.tag,_=$,"function"==typeof E?E(_):E.current=_}}Uu=Uu.nextEffect}}catch(e){if(null===Uu)throw Error(a(330));xc(Uu,e),Uu=Uu.nextEffect}}while(null!==Uu);Uu=null,Mo(),ku=i}else e.current=n;if(Vu)Vu=!1,Wu=e,qu=t;else for(Uu=o;null!==Uu;)t=Uu.nextEffect,Uu.nextEffect=null,Uu=t;if(0===(t=e.firstPendingTime)&&(Bu=null),1073741823===t?e===Zu?Hu++:(Hu=0,Zu=e):Hu=0,"function"==typeof $c&&$c(n.stateNode,r),tc(e),zu)throw zu=!1,e=Fu,Fu=null,e;return 0!=(8&ku)||Zo(),null}function gc(){for(;null!==Uu;){var e=Uu.effectTag;0!=(256&e)&&ou(Uu.alternate,Uu),0==(512&e)||Vu||(Vu=!0,Ko(97,(function(){return bc(),null}))),Uu=Uu.nextEffect}}function bc(){if(90!==qu){var e=97<qu?97:qu;return qu=90,qo(e,wc)}}function wc(){if(null===Wu)return!1;var e=Wu;if(Wu=null,0!=(48&ku))throw Error(a(331));var t=ku;for(ku|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:iu(5,n),au(5,n)}}catch(t){if(null===e)throw Error(a(330));xc(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return ku=t,Zo(),!0}function _c(e,t,n){fi(e,t=gu(e,t=eu(n,t),1073741823)),null!==(e=Xu(e,1073741823))&&tc(e)}function xc(e,t){if(3===e.tag)_c(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){_c(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Bu||!Bu.has(r))){fi(n,e=bu(n,e=eu(t,e),1073741823)),null!==(n=Xu(n,1073741823))&&tc(n);break}}n=n.return}}function Sc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),ju===e&&Tu===n?Au===Ou||Au===$u&&1073741823===Iu&&Bo()-Lu<500?ac(e,Tu):Mu=!0:Dc(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,tc(e)))}function Ec(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=Yu(t=Qu(),e,null)),null!==(e=Xu(e,t))&&tc(e)}wu=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||mo.current)Ca=!0;else{if(r<n){switch(Ca=!1,t.tag){case 3:Fa(t),Ta();break;case 5:if(Di(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:go(t.type)&&xo(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,fo(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ka(e,t,n):(fo(Li,1&Li.current),null!==(t=Qa(e,t,n))?t.sibling:null);fo(Li,1&Li.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ga(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),fo(Li,Li.current),!r)return null}return Qa(e,t,n)}Ca=!1}}else Ca=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=vo(t,ho.current),ii(t,n),o=Qi(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,go(r)){var i=!0;xo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ci(t);var u=r.getDerivedStateFromProps;"function"==typeof u&&vi(t,r,u,e),o.updater=gi,t.stateNode=o,o._reactInternalFiber=t,xi(t,r,e,n),t=za(null,t,r,!0,i,n)}else t.tag=0,Ia(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return Pc(e)?1:0;if(null!=e){if((e=e.$$typeof)===ce)return 11;if(e===fe)return 14}return 2}(o),e=Yo(o,e),i){case 0:t=La(null,t,o,e,n);break e;case 1:t=Ua(null,t,o,e,n);break e;case 11:t=Ra(null,t,o,e,n);break e;case 14:t=Na(null,t,o,Yo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,La(e,t,r,o=t.elementType===r?o:Yo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Yo(r,o),n);case 3:if(Fa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,si(e,t),di(t,r,null,n),(r=t.memoizedState.element)===o)Ta(),t=Qa(e,t,n);else{if((o=t.stateNode.hydrate)&&(Sa=Sn(t.stateNode.containerInfo.firstChild),xa=t,o=Ea=!0),o)for(n=ji(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ia(e,t,r,n),Ta();t=t.child}return t;case 5:return Di(t),null===e&&ka(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,u=o.children,wn(r,o)?u=null:null!==i&&wn(r,i)&&(t.effectTag|=16),Ma(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ia(e,t,u,n),t=t.child),t;case 6:return null===e&&ka(t),null;case 13:return Ka(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ki(t,null,r,n):Ia(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ra(e,t,r,o=t.elementType===r?o:Yo(r,o),n);case 7:return Ia(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ia(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,u=t.memoizedProps,i=o.value;var c=t.type._context;if(fo(Jo,c._currentValue),c._currentValue=i,null!==u)if(c=u.value,0==(i=Ur(c,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,i):1073741823))){if(u.children===o.children&&!mo.current){t=Qa(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var s=c.dependencies;if(null!==s){u=c.child;for(var l=s.firstContext;null!==l;){if(l.context===r&&0!=(l.observedBits&i)){1===c.tag&&((l=li(n,null)).tag=2,fi(c,l)),c.expirationTime<n&&(c.expirationTime=n),null!==(l=c.alternate)&&l.expirationTime<n&&(l.expirationTime=n),oi(c.return,n),s.expirationTime<n&&(s.expirationTime=n);break}l=l.next}}else u=10===c.tag&&c.type===t.type?null:c.child;if(null!==u)u.return=c;else for(u=c;null!==u;){if(u===t){u=null;break}if(null!==(c=u.sibling)){c.return=u.return,u=c;break}u=u.return}c=u}Ia(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ii(t,n),r=r(o=ai(o,i.unstable_observedBits)),t.effectTag|=1,Ia(e,t,r,n),t.child;case 14:return i=Yo(o=t.type,t.pendingProps),Na(e,t,o,i=Yo(o.type,i),r,n);case 15:return Da(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,go(r)?(e=!0,xo(t)):e=!1,ii(t,n),wi(t,r,o),xi(t,r,o,n),za(null,t,r,!0,e,n);case 19:return Ga(e,t,n)}throw Error(a(156,t.tag))};var $c=null,Oc=null;function kc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function jc(e,t,n,r){return new kc(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tc(e,t){var n=e.alternate;return null===n?((n=jc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ac(e,t,n,r,o,i){var u=2;if(r=e,"function"==typeof e)Pc(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case ne:return Cc(n.children,o,i,t);case ue:u=8,o|=7;break;case re:u=8,o|=1;break;case oe:return(e=jc(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case se:return(e=jc(13,n,t,o)).type=se,e.elementType=se,e.expirationTime=i,e;case le:return(e=jc(19,n,t,o)).elementType=le,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:u=10;break e;case ae:u=9;break e;case ce:u=11;break e;case fe:u=14;break e;case pe:u=16,r=null;break e;case de:u=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=jc(u,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Cc(e,t,n,r){return(e=jc(7,e,r,t)).expirationTime=n,e}function Ic(e,t,n){return(e=jc(6,e,null,t)).expirationTime=n,e}function Rc(e,t,n){return(t=jc(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nc(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Dc(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Mc(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Lc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Uc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function zc(e,t,n,r){var o=t.current,i=Qu(),u=mi.suspense;i=Yu(i,o,u);e:if(n){t:{if(Je(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(go(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var s=n.type;if(go(s)){n=_o(n,s,c);break e}}n=c}else n=po;return null===t.context?t.context=n:t.pendingContext=n,(t=li(i,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fi(o,t),Ju(o,i),i}function Fc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Bc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Vc(e,t){Bc(e,t),(e=e.alternate)&&Bc(e,t)}function Wc(e,t,n){var r=new Nc(e,t,n=null!=n&&!0===n.hydrate),o=jc(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ci(o),e[jn]=r.current,n&&0!==t&&function(e,t){var n=Ye(t);$t.forEach((function(e){dt(e,t,n)})),Ot.forEach((function(e){dt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Kc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var u=o;o=function(){var e=Fc(a);u.call(e)}}zc(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Wc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var c=o;o=function(){var e=Fc(a);c.call(e)}}ic((function(){zc(t,a,e,o)}))}return Fc(a)}function Hc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Zc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qc(t))throw Error(a(200));return Hc(e,t,null,n)}Wc.prototype.render=function(e){zc(e,this._internalRoot,null,null)},Wc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;zc(null,e,null,(function(){t[jn]=null}))},ht=function(e){if(13===e.tag){var t=Qo(Qu(),150,100);Ju(e,t),Vc(e,t)}},mt=function(e){13===e.tag&&(Ju(e,3),Vc(e,3))},yt=function(e){if(13===e.tag){var t=Qu();Ju(e,t=Yu(t,e,null)),Vc(e,t)}},j=function(e,t,n){switch(t){case"input":if($e(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Cn(r);if(!o)throw Error(a(90));_e(r),$e(r,o)}}}break;case"textarea":Ce(e,n);break;case"select":null!=(t=n.value)&&Pe(e,!!n.multiple,t,!1)}},R=oc,N=function(e,t,n,r,o){var i=ku;ku|=4;try{return qo(98,e.bind(null,t,n,r,o))}finally{0===(ku=i)&&Zo()}},D=function(){0==(49&ku)&&(function(){if(null!==Ku){var e=Ku;Ku=null,e.forEach((function(e,t){Uc(t,e),tc(t)})),Zo()}}(),bc())},M=function(e,t){var n=ku;ku|=2;try{return e(t)}finally{0===(ku=n)&&Zo()}};var Gc={Events:[Tn,An,Cn,O,S,Un,function(e){rt(e,Ln)},C,I,Qt,at,bc,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);$c=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Oc=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Pn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gc,t.createPortal=Zc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&ku))throw Error(a(187));var n=ku;ku|=1;try{return qo(99,e.bind(null,t))}finally{ku=n,Zo()}},t.hydrate=function(e,t,n){if(!qc(t))throw Error(a(200));return Kc(null,e,t,!0,n)},t.render=function(e,t,n){if(!qc(t))throw Error(a(200));return Kc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!qc(e))throw Error(a(40));return!!e._reactRootContainer&&(ic((function(){Kc(null,null,e,!1,(function(){e._reactRootContainer=null,e[jn]=null}))})),!0)},t.unstable_batchedUpdates=oc,t.unstable_createPortal=function(e,t){return Zc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qc(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Kc(e,t,n,!1,r)},t.version="16.14.0"},2788:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(3975)},8447:(e,t,n)=>{"use strict";var r=n(4516),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}function _(){}function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var S=x.prototype=new _;S.constructor=x,r(S,w.prototype),S.isPureReactComponent=!0;var E={current:null},$=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r,o={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)$.call(t,r)&&!O.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===o[r]&&(o[r]=c[r]);return{$$typeof:i,type:e,key:a,ref:u,props:o,_owner:E.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g,T=[];function A(e,t,n,r){if(T.length){var o=T.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function C(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>T.length&&T.push(e)}function I(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var u=!1;if(null===e)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return n(r,e,""===t?"."+N(e,0):t),1;if(u=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c<e.length;c++){var s=t+N(o=e[c],c);u+=I(o,s,n,r)}else if("function"==typeof(s=null===e||"object"!=typeof e?null:"function"==typeof(s=y&&e[y]||e["@@iterator"])?s:null))for(e=s.call(e),c=0;!(o=e.next()).done;)u+=I(o=o.value,s=t+N(o,c++),n,r);else if("object"===o)throw n=""+e,Error(v(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return u}function R(e,t,n){return null==e?0:I(e,"",t,n)}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function D(e,t){e.func.call(e.context,t,e.count++)}function M(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,(function(e){return e})):null!=e&&(j(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),R(e,M,t=A(t,i,r,o)),C(t)}var U={current:null};function z(){var e=U.current;if(null===e)throw Error(v(321));return e}var F={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,D,t=A(null,null,t,n)),C(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!j(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=u,t.Profiler=s,t.PureComponent=x,t.StrictMode=c,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var o=r({},e.props),a=e.key,u=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,c=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)$.call(t,l)&&!O.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){s=Array(l);for(var f=0;f<l;f++)s[f]=arguments[f+2];o.children=s}return{$$typeof:i,type:e.type,key:a,ref:u,props:o,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return z().useCallback(e,t)},t.useContext=function(e,t){return z().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return z().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return z().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return z().useLayoutEffect(e,t)},t.useMemo=function(e,t){return z().useMemo(e,t)},t.useReducer=function(e,t,n){return z().useReducer(e,t,n)},t.useRef=function(e){return z().useRef(e)},t.useState=function(e){return z().useState(e)},t.version="16.14.0"},2735:(e,t,n)=>{"use strict";e.exports=n(8447)},1602:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new j(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=$(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(P([])));_&&_!==n&&r.call(_,i)&&(b=_);var x=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,u){var c=l(e[o],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function $(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,$(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return v.prototype=g,c(x,"constructor",g),c(g,"constructor",v),v.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},S(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(x),c(x,u,"Generator"),c(x,i,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},1720:(e,t,n)=>{"use strict";n.d(t,{y:()=>l});var r=n(7811),o=n(9573),i=n(2412),a=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function u(e){return e}function c(e){return 0===e.length?u:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var s=n(5769),l=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var a=this.operator,u=function(e,t,n){if(e){if(e instanceof r.L)return e;if(e[o.b])return e[o.b]()}return e||t||n?new r.L(e,t,n):new r.L(i.c)}(e,t,n);if(a?u.add(a.call(u,this.source)):u.add(this.source||s.v.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),s.v.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){s.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&o instanceof r.L?o:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=f(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:c(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function f(e){if(e||(e=s.v.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},2412:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(5769),o=n(1450),i={closed:!0,next:function(e){},error:function(e){if(r.v.useDeprecatedSynchronousErrorHandling)throw e;(0,o.z)(e)},complete:function(){}}},7860:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>f});var r=n(7080),o=n(1720),i=n(7811),a=n(6462),u=n(7043),c=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.ZT(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(a.w),s=n(9573),l=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.ZT(t,e),t}(i.L),f=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.ZT(t,e),t.prototype[s.b]=function(){return new l(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new u.N;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new u.N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new u.N;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new u.N;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new u.N;return this.hasError?(e.error(this.thrownError),a.w.EMPTY):this.isStopped?(e.complete(),a.w.EMPTY):(this.observers.push(e),new c(this,e))},t.prototype.asObservable=function(){var e=new o.y;return e.source=this,e},t.create=function(e,t){return new p(e,t)},t}(o.y),p=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return r.ZT(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.w.EMPTY},t}(f)},7811:(e,t,n)=>{"use strict";n.d(t,{L:()=>l});var r=n(7080),o=n(9147),i=n(2412),a=n(6462),u=n(9573),c=n(5769),s=n(1450),l=function(e){function t(n,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.c;break;case 1:if(!n){a.destination=i.c;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,n,r,o)}return a}return r.ZT(t,e),t.prototype[u.b]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.w),f=function(e){function t(t,n,r,a){var u,c=e.call(this)||this;c._parentSubscriber=t;var s=c;return(0,o.m)(n)?u=n:n&&(u=n.next,r=n.error,a=n.complete,n!==i.c&&(s=Object.create(n),(0,o.m)(s.unsubscribe)&&c.add(s.unsubscribe.bind(s)),s.unsubscribe=c.unsubscribe.bind(c))),c._context=s,c._next=u,c._error=r,c._complete=a,c}return r.ZT(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;c.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=c.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):(0,s.z)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;(0,s.z)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};c.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),c.v.useDeprecatedSynchronousErrorHandling)throw e;(0,s.z)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!c.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return c.v.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):((0,s.z)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},6462:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var r=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}(),o=n(9147),i=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),a=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n,a=this,c=a._parentOrParents,s=a._ctorUnsubscribe,l=a._unsubscribe,f=a._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,c instanceof e)c.remove(this);else if(null!==c)for(var p=0;p<c.length;++p)c[p].remove(this);if((0,o.m)(l)){s&&(this._unsubscribe=void 0);try{l.call(this)}catch(e){t=e instanceof i?u(e.errors):[e]}}if(r(f)){p=-1;for(var d=f.length;++p<d;){var h=f[p];if(null!==(n=h)&&"object"==typeof n)try{h.unsubscribe()}catch(e){t=t||[],e instanceof i?t=t.concat(u(e.errors)):t.push(e)}}}if(t)throw new i(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function u(e){return e.reduce((function(e,t){return e.concat(t instanceof i?t.errors:t)}),[])}},5769:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},9573:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},7043:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},1450:(e,t,n)=>{"use strict";function r(e){setTimeout((function(){throw e}),0)}n.d(t,{z:()=>r})},9147:(e,t,n)=>{"use strict";function r(e){return"function"==typeof e}n.d(t,{m:()=>r})},7080:(e,t,n)=>{"use strict";n.d(t,{ZT:()=>o});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},9666:(e,t)=>{"use strict";var n,r,o,i,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,s=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(s,0),e}},l=Date.now();t.unstable_now=function(){return Date.now()-l},n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(s,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,p=window.Date,d=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var y=p.now();t.unstable_now=function(){return p.now()-y}}var v=!1,g=null,b=-1,w=5,_=0;i=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,S=x.port2;x.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+w;try{g(!0,e)?S.postMessage(null):(v=!1,g=null)}catch(e){throw S.postMessage(null),e}}else v=!1},n=function(e){g=e,v||(v=!0,S.postMessage(null))},r=function(e,n){b=d((function(){e(t.unstable_now())}),n)},o=function(){h(b),b=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<k(o,t)))break e;e[r]=t,e[n]=o,n=r}}function $(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],u=i+1,c=e[u];if(void 0!==a&&0>k(a,n))void 0!==c&&0>k(c,a)?(e[r]=c,e[u]=n,r=u):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>k(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var j=[],P=[],T=1,A=null,C=3,I=!1,R=!1,N=!1;function D(e){for(var t=$(P);null!==t;){if(null===t.callback)O(P);else{if(!(t.startTime<=e))break;O(P),t.sortIndex=t.expirationTime,E(j,t)}t=$(P)}}function M(e){if(N=!1,D(e),!R)if(null!==$(j))R=!0,n(L);else{var t=$(P);null!==t&&r(M,t.startTime-e)}}function L(e,n){R=!1,N&&(N=!1,o()),I=!0;var a=C;try{for(D(n),A=$(j);null!==A&&(!(A.expirationTime>n)||e&&!i());){var u=A.callback;if(null!==u){A.callback=null,C=A.priorityLevel;var c=u(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?A.callback=c:A===$(j)&&O(j),D(n)}else O(j);A=$(j)}if(null!==A)var s=!0;else{var l=$(P);null!==l&&r(M,l.startTime-n),s=!1}return s}finally{A=null,C=a,I=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||I||(R=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_getFirstCallbackNode=function(){return $(j)},t.unstable_next=function(e){switch(C){case 1:case 2:case 3:var t=3;break;default:t=C}var n=C;C=t;try{return e()}finally{C=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=C;C=e;try{return t()}finally{C=n}},t.unstable_scheduleCallback=function(e,i,a){var u=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?u+c:u,a="number"==typeof a.timeout?a.timeout:U(e)}else a=U(e),c=u;return e={id:T++,callback:i,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>u?(e.sortIndex=c,E(P,e),null===$(j)&&e===$(P)&&(N?o():N=!0,r(M,c-u))):(e.sortIndex=a,E(j,e),R||I||(R=!0,n(L))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();D(e);var n=$(j);return n!==A&&null!==A&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<A.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=C;return function(){var n=C;C=t;try{return e.apply(this,arguments)}finally{C=n}}}},9146:(e,t,n)=>{"use strict";e.exports=n(9666)},3710:(e,t,n)=>{"use strict";n.d(t,{BP:()=>B,UO:()=>oe});var r=Object.freeze({__proto__:null,get start(){return Ue},get ensureJQuerySupport(){return de},get setBootstrapMaxTime(){return H},get setMountMaxTime(){return Z},get setUnmountMaxTime(){return G},get setUnloadMaxTime(){return Q},get registerApplication(){return $e},get unregisterApplication(){return ke},get getMountedApps(){return xe},get getAppStatus(){return Ee},get unloadApplication(){return je},get checkActivityFunctions(){return Oe},get getAppNames(){return Se},get pathToActiveWhen(){return Ae},get navigateToUrl(){return oe},get triggerAppChange(){return Ne},get addErrorHandler(){return l},get removeErrorHandler(){return f},get mountRootParcel(){return B},get NOT_LOADED(){return h},get LOADING_SOURCE_CODE(){return m},get NOT_BOOTSTRAPPED(){return y},get BOOTSTRAPPING(){return v},get NOT_MOUNTED(){return g},get MOUNTING(){return b},get UPDATING(){return _},get LOAD_ERROR(){return S},get MOUNTED(){return w},get UNMOUNTING(){return x},get SKIP_BECAUSE_BROKEN(){return E}});function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).CustomEvent,u=function(){try{var e=new a("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?a:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},c=[];function s(e,t,n){var r=d(e,t,n);c.length?c.forEach((function(e){return e(r)})):setTimeout((function(){throw r}))}function l(e){if("function"!=typeof e)throw Error(p(28,!1));c.push(e)}function f(e){if("function"!=typeof e)throw Error(p(29,!1));var t=!1;return c=c.filter((function(n){var r=n===e;return t=t||r,!r})),t}function p(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(e,": ").concat(t?t+" ":"","See https://single-spa.js.org/error/?code=").concat(e).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function d(e,t,n){var r,o="".concat(P(t)," '").concat(k(t),"' died in status ").concat(t.status,": ");if(e instanceof Error){try{e.message=o+e.message}catch(e){}r=e}else{console.warn(p(30,!1,t.status,k(t)));try{r=Error(o+JSON.stringify(e))}catch(t){r=e}}return r.appOrParcelName=k(t),t.status=n,r}var h="NOT_LOADED",m="LOADING_SOURCE_CODE",y="NOT_BOOTSTRAPPED",v="BOOTSTRAPPING",g="NOT_MOUNTED",b="MOUNTING",w="MOUNTED",_="UPDATING",x="UNMOUNTING",S="LOAD_ERROR",E="SKIP_BECAUSE_BROKEN";function $(e){return e.status===w}function O(e){try{return e.activeWhen(window.location)}catch(t){return s(t,e,E),!1}}function k(e){return e.name}function j(e){return Boolean(e.unmountThisParcel)}function P(e){return j(e)?"parcel":"application"}function T(){for(var e=arguments.length-1;e>0;e--)for(var t in arguments[e])"__proto__"!==t&&(arguments[e-1][t]=arguments[e][t]);return arguments[0]}function A(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}function C(e){return e&&("function"==typeof e||(t=e,Array.isArray(t)&&!A(t,(function(e){return"function"!=typeof e}))));var t}function I(e,t){var n=e[t]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=P(e),o=k(e);return function(e){return n.reduce((function(n,i,a){return n.then((function(){var n=i(e);return R(n)?n:Promise.reject(p(15,!1,r,o,t,a))}))}),Promise.resolve())}}function R(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}function N(e,t){return Promise.resolve().then((function(){return e.status!==y?e:(e.status=v,e.bootstrap?Y(e,"bootstrap").then(n).catch((function(n){if(t)throw d(n,e,E);return s(n,e,E),e})):Promise.resolve().then(n))}));function n(){return e.status=g,e}}function D(e,t){return Promise.resolve().then((function(){if(e.status!==w)return e;e.status=x;var n=Object.keys(e.parcels).map((function(t){return e.parcels[t].unmountThisParcel()}));return Promise.all(n).then(r,(function(n){return r().then((function(){var r=Error(n.message);if(t)throw d(r,e,E);s(r,e,E)}))})).then((function(){return e}));function r(){return Y(e,"unmount").then((function(){e.status=g})).catch((function(n){if(t)throw d(n,e,E);s(n,e,E)}))}}))}var M=!1,L=!1;function U(e,t){return Promise.resolve().then((function(){return e.status!==g?e:(M||(window.dispatchEvent(new u("single-spa:before-first-mount")),M=!0),Y(e,"mount").then((function(){return e.status=w,L||(window.dispatchEvent(new u("single-spa:first-mount")),L=!0),e})).catch((function(n){return e.status=w,D(e,!0).then(r,r);function r(){if(t)throw d(n,e,E);return s(n,e,E),e}})))}))}var z=0,F={parcels:{}};function B(){return V.apply(F,arguments)}function V(e,t){var n=this;if(!e||"object"!==o(e)&&"function"!=typeof e)throw Error(p(2,!1));if(e.name&&"string"!=typeof e.name)throw Error(p(3,!1,o(e.name)));if("object"!==o(t))throw Error(p(4,!1,name,o(t)));if(!t.domElement)throw Error(p(5,!1,name));var r,i=z++,a="function"==typeof e,u=a?e:function(){return Promise.resolve(e)},c={id:i,parcels:{},status:a?m:y,customProps:t,parentName:k(n),unmountThisParcel:function(){return v.then((function(){if(c.status!==w)throw Error(p(6,!1,name,c.status));return D(c,!0)})).then((function(e){return c.parentName&&delete n.parcels[c.id],e})).then((function(e){return l(e),e})).catch((function(e){throw c.status=E,f(e),e}))}};n.parcels[i]=c;var s=u();if(!s||"function"!=typeof s.then)throw Error(p(7,!1));var l,f,h=(s=s.then((function(e){if(!e)throw Error(p(8,!1));var t=e.name||"parcel-".concat(i);if(Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!C(e.bootstrap))throw Error(p(9,!1,t));if(!C(e.mount))throw Error(p(10,!1,t));if(!C(e.unmount))throw Error(p(11,!1,t));if(e.update&&!C(e.update))throw Error(p(12,!1,t));var n=I(e,"bootstrap"),o=I(e,"mount"),a=I(e,"unmount");c.status=y,c.name=t,c.bootstrap=n,c.mount=o,c.unmount=a,c.timeouts=J(e.timeouts),e.update&&(c.update=I(e,"update"),r.update=function(e){return c.customProps=e,W(function(e){return Promise.resolve().then((function(){if(e.status!==w)throw Error(p(32,!1,k(e)));return e.status=_,Y(e,"update").then((function(){return e.status=w,e})).catch((function(t){throw d(t,e,E)}))}))}(c))})}))).then((function(){return N(c,!0)})),v=h.then((function(){return U(c,!0)})),b=new Promise((function(e,t){l=e,f=t}));return r={mount:function(){return W(Promise.resolve().then((function(){if(c.status!==g)throw Error(p(13,!1,name,c.status));return n.parcels[i]=c,U(c)})))},unmount:function(){return W(c.unmountThisParcel())},getStatus:function(){return c.status},loadPromise:W(s),bootstrapPromise:W(h),mountPromise:W(v),unmountPromise:W(b)}}function W(e){return e.then((function(){return null}))}function q(e){var t=k(e),n="function"==typeof e.customProps?e.customProps(t,window.location):e.customProps;("object"!==o(n)||null===n||Array.isArray(n))&&(n={},console.warn(p(40,!1),t,n));var i=T({},n,{name:t,mountParcel:V.bind(e),singleSpa:r});return j(e)&&(i.unmountSelf=e.unmountThisParcel),i}var K={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function H(e,t,n){if("number"!=typeof e||e<=0)throw Error(p(16,!1));K.bootstrap={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Z(e,t,n){if("number"!=typeof e||e<=0)throw Error(p(17,!1));K.mount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function G(e,t,n){if("number"!=typeof e||e<=0)throw Error(p(18,!1));K.unmount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Q(e,t,n){if("number"!=typeof e||e<=0)throw Error(p(19,!1));K.unload={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Y(e,t){var n=e.timeouts[t],r=n.warningMillis,o=P(e);return new Promise((function(i,a){var u=!1,c=!1;e[t](q(e)).then((function(e){u=!0,i(e)})).catch((function(e){u=!0,a(e)})),setTimeout((function(){return l(1)}),r),setTimeout((function(){return l(!0)}),n.millis);var s=p(31,!1,t,o,k(e),n.millis);function l(e){if(!u)if(!0===e)c=!0,n.dieOnTimeout?a(Error(s)):console.error(s);else if(!c){var t=e,o=t*r;console.warn(s),o+r<n.millis&&setTimeout((function(){return l(t+1)}),r)}}}))}function J(e){var t={};for(var n in K)t[n]=T({},K[n],e&&e[n]||{});return t}function X(e){return Promise.resolve().then((function(){return e.loadPromise?e.loadPromise:e.status!==h&&e.status!==S?e:(e.status=m,e.loadPromise=Promise.resolve().then((function(){var r=e.loadApp(q(e));if(!R(r))throw n=!0,Error(p(33,!1,k(e)));return r.then((function(n){var r;e.loadErrorTime=null,"object"!==o(t=n)&&(r=34),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!C(t.bootstrap)&&(r=35),C(t.mount)||(r=36),C(t.unmount)||(r=37);var i=P(t);if(r){var a;try{a=JSON.stringify(t)}catch(e){}return console.error(p(r,!1,i,k(e),a),t),s(void 0,e,E),e}return t.devtools&&t.devtools.overlays&&(e.devtools.overlays=T({},e.devtools.overlays,t.devtools.overlays)),e.status=y,e.bootstrap=I(t,"bootstrap"),e.mount=I(t,"mount"),e.unmount=I(t,"unmount"),e.unload=I(t,"unload"),e.timeouts=J(t.timeouts),delete e.loadPromise,e}))})).catch((function(t){var r;return delete e.loadPromise,n?r=E:(r=S,e.loadErrorTime=(new Date).getTime()),s(t,e,r),e})));var t,n}))}var ee,te="undefined"!=typeof window,ne={hashchange:[],popstate:[]},re=["hashchange","popstate"];function oe(e){var t;if("string"==typeof e)t=e;else if(this&&this.href)t=this.href;else{if(!(e&&e.currentTarget&&e.currentTarget.href&&e.preventDefault))throw Error(p(14,!1));t=e.currentTarget.href,e.preventDefault()}var n=fe(window.location.href),r=fe(t);0===t.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=t:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,t)}function ie(e){var t=this;if(e){var n=e[0].type;re.indexOf(n)>=0&&ne[n].forEach((function(n){try{n.apply(t,e)}catch(e){setTimeout((function(){throw e}))}}))}}function ae(){De([],arguments)}function ue(e,t){return function(){var n=window.location.href,r=e.apply(this,arguments),o=window.location.href;return ee&&n===o||(ze()?window.dispatchEvent(ce(window.history.state,t)):De([])),r}}function ce(e,t){var n;try{n=new PopStateEvent("popstate",{state:e})}catch(t){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,e)}return n.singleSpa=!0,n.singleSpaTrigger=t,n}if(te){window.addEventListener("hashchange",ae),window.addEventListener("popstate",ae);var se=window.addEventListener,le=window.removeEventListener;window.addEventListener=function(e,t){if(!("function"==typeof t&&re.indexOf(e)>=0)||A(ne[e],(function(e){return e===t})))return se.apply(this,arguments);ne[e].push(t)},window.removeEventListener=function(e,t){if(!("function"==typeof t&&re.indexOf(e)>=0))return le.apply(this,arguments);ne[e]=ne[e].filter((function(e){return e!==t}))},window.history.pushState=ue(window.history.pushState,"pushState"),window.history.replaceState=ue(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(p(41,!1)):window.singleSpaNavigate=oe}function fe(e){var t=document.createElement("a");return t.href=e,t}var pe=!1;function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(e||window.$&&window.$.fn&&window.$.fn.jquery&&(e=window.$),e&&!pe){var t=e.fn.on,n=e.fn.off;e.fn.on=function(e,n){return he.call(this,t,window.addEventListener,e,n,arguments)},e.fn.off=function(e,t){return he.call(this,n,window.removeEventListener,e,t,arguments)},pe=!0}}function he(e,t,n,r,o){return"string"!=typeof n?e.apply(this,o):(n.split(/\s+/).forEach((function(e){re.indexOf(e)>=0&&(t(e,r),n=n.replace(e,""))})),""===n.trim()?this:e.apply(this,o))}var me={};function ye(e){return Promise.resolve().then((function(){var t=me[k(e)];if(!t)return e;if(e.status===h)return ve(e,t),e;if("UNLOADING"===e.status)return t.promise.then((function(){return e}));if(e.status!==g&&e.status!==S)return e;var n=e.status===S?Promise.resolve():Y(e,"unload");return e.status="UNLOADING",n.then((function(){return ve(e,t),e})).catch((function(n){return function(e,t,n){delete me[k(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,s(n,e,E),t.reject(n)}(e,t,n),e}))}))}function ve(e,t){delete me[k(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,e.status=h,t.resolve()}function ge(e,t,n,r){me[k(e)]={app:e,resolve:n,reject:r},Object.defineProperty(me[k(e)],"promise",{get:t})}function be(e){return me[e]}var we=[];function _e(){var e=[],t=[],n=[],r=[],o=(new Date).getTime();return we.forEach((function(i){var a=i.status!==E&&O(i);switch(i.status){case S:a&&o-i.loadErrorTime>=200&&n.push(i);break;case h:case m:a&&n.push(i);break;case y:case g:!a&&be(k(i))?e.push(i):a&&r.push(i);break;case w:a||t.push(i)}})),{appsToUnload:e,appsToUnmount:t,appsToLoad:n,appsToMount:r}}function xe(){return we.filter($).map(k)}function Se(){return we.map(k)}function Ee(e){var t=A(we,(function(t){return k(t)===e}));return t?t.status:null}function $e(e,t,n,r){var i=function(e,t,n,r){var i,a={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===o(e)?(function(e){if(Array.isArray(e)||null===e)throw Error(p(39,!1));var t=["name","app","activeWhen","customProps"],n=Object.keys(e).reduce((function(e,n){return t.indexOf(n)>=0?e:e.concat(n)}),[]);if(0!==n.length)throw Error(p(38,!1,t.join(", "),n.join(", ")));if("string"!=typeof e.name||0===e.name.length)throw Error(p(20,!1));if("object"!==o(e.app)&&"function"!=typeof e.app)throw Error(p(20,!1));var r=function(e){return"string"==typeof e||"function"==typeof e};if(!(r(e.activeWhen)||Array.isArray(e.activeWhen)&&e.activeWhen.every(r)))throw Error(p(24,!1));if(!Te(e.customProps))throw Error(p(22,!1))}(e),a.name=e.name,a.loadApp=e.app,a.activeWhen=e.activeWhen,a.customProps=e.customProps):(function(e,t,n,r){if("string"!=typeof e||0===e.length)throw Error(p(20,!1));if(!t)throw Error(p(23,!1));if("function"!=typeof n)throw Error(p(24,!1));if(!Te(r))throw Error(p(22,!1))}(e,t,n,r),a.name=e,a.loadApp=t,a.activeWhen=n,a.customProps=r),a.loadApp="function"!=typeof(i=a.loadApp)?function(){return Promise.resolve(i)}:i,a.customProps=function(e){return e||{}}(a.customProps),a.activeWhen=function(e){var t=Array.isArray(e)?e:[e];return t=t.map((function(e){return"function"==typeof e?e:Ae(e)})),function(e){return t.some((function(t){return t(e)}))}}(a.activeWhen),a}(e,t,n,r);if(-1!==Se().indexOf(i.name))throw Error(p(21,!1,i.name));we.push(T({loadErrorTime:null,status:h,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},i)),te&&(de(),De())}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return we.filter((function(t){return t.activeWhen(e)})).map(k)}function ke(e){if(0===we.filter((function(t){return k(t)===e})).length)throw Error(p(25,!1,e));return je(e).then((function(){var t=we.map(k).indexOf(e);we.splice(t,1)}))}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof e)throw Error(p(26,!1));var n=A(we,(function(t){return k(t)===e}));if(!n)throw Error(p(27,!1,e));var r,o=be(k(n));if(t&&t.waitForUnmount){if(o)return o.promise;var i=new Promise((function(e,t){ge(n,(function(){return i}),e,t)}));return i}return o?(r=o.promise,Pe(n,o.resolve,o.reject)):r=new Promise((function(e,t){ge(n,(function(){return r}),e,t),Pe(n,e,t)})),r}function Pe(e,t,n){D(e).then(ye).then((function(){t(),setTimeout((function(){De()}))})).catch(n)}function Te(e){return!e||"function"==typeof e||"object"===o(e)&&null!==e&&!Array.isArray(e)}function Ae(e,t){var n=function(e,t){var n=0,r=!1,o="^";"/"!==e[0]&&(e="/"+e);for(var i=0;i<e.length;i++){var a=e[i];(!r&&":"===a||r&&"/"===a)&&u(i)}return u(e.length),new RegExp(o,"i");function u(i){var a=e.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===e.length)if(r)t&&(o+="$");else{var u=t?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}r=!r,n=i}}(e,t);return function(e){var t=e.origin;t||(t="".concat(e.protocol,"//").concat(e.host));var r=e.href.replace(t,"").replace(e.search,"").split("?")[0];return n.test(r)}}var Ce=!1,Ie=[],Re=te&&window.location.href;function Ne(){return De()}function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(Ce)return new Promise((function(e,n){Ie.push({resolve:e,reject:n,eventArguments:t})}));var n,r=_e(),o=r.appsToUnload,a=r.appsToUnmount,c=r.appsToLoad,s=r.appsToMount,l=!1,f=Re,p=Re=window.location.href;return ze()?(Ce=!0,n=o.concat(c,a,s),y()):(n=c,m());function d(){l=!0}function m(){return Promise.resolve().then((function(){var e=c.map(X);return Promise.all(e).then(b).then((function(){return[]})).catch((function(e){throw b(),e}))}))}function y(){return Promise.resolve().then((function(){if(window.dispatchEvent(new u(0===n.length?"single-spa:before-no-app-change":"single-spa:before-app-change",_(!0))),window.dispatchEvent(new u("single-spa:before-routing-event",_(!0,{cancelNavigation:d}))),l)return window.dispatchEvent(new u("single-spa:before-mount-routing-event",_(!0))),v(),void oe(f);var t=o.map(ye),r=a.map(D).map((function(e){return e.then(ye)})).concat(t),i=Promise.all(r);i.then((function(){window.dispatchEvent(new u("single-spa:before-mount-routing-event",_(!0)))}));var p=c.map((function(e){return X(e).then((function(e){return Me(e,i)}))})),h=s.filter((function(e){return c.indexOf(e)<0})).map((function(e){return Me(e,i)}));return i.catch((function(e){throw b(),e})).then((function(){return b(),Promise.all(p.concat(h)).catch((function(t){throw e.forEach((function(e){return e.reject(t)})),t})).then(v)}))}))}function v(){var t=xe();e.forEach((function(e){return e.resolve(t)}));try{var r=0===n.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new u(r,_())),window.dispatchEvent(new u("single-spa:routing-event",_()))}catch(e){setTimeout((function(){throw e}))}if(Ce=!1,Ie.length>0){var o=Ie;Ie=[],De(o)}return t}function b(){e.forEach((function(e){ie(e.eventArguments)})),ie(t)}function _(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],u=arguments.length>1?arguments[1]:void 0,d={},m=(i(e={},w,[]),i(e,g,[]),i(e,h,[]),i(e,E,[]),e);r?(c.concat(s).forEach((function(e,t){v(e,w)})),o.forEach((function(e){v(e,h)})),a.forEach((function(e){v(e,g)}))):n.forEach((function(e){v(e)}));var y={detail:{newAppStatuses:d,appsByNewStatus:m,totalAppChanges:n.length,originalEvent:null==t?void 0:t[0],oldUrl:f,newUrl:p,navigationIsCanceled:l}};return u&&T(y.detail,u),y;function v(e,t){var n=k(e);t=t||Ee(n),d[n]=t,(m[t]=m[t]||[]).push(n)}}}function Me(e,t){return O(e)?N(e).then((function(e){return t.then((function(){return O(e)?U(e):e}))})):t.then((function(){return e}))}var Le=!1;function Ue(e){var t;Le=!0,e&&e.urlRerouteOnly&&(t=e.urlRerouteOnly,ee=t),te&&De()}function ze(){return Le}te&&setTimeout((function(){Le||console.warn(p(1,!1))}),5e3);var Fe={getRawAppData:function(){return[].concat(we)},reroute:De,NOT_LOADED:h,toLoadPromise:X,toBootstrapPromise:N,unregisterApplication:ke};te&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=Fe)},487:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],u=0;u<e.length;u++){var c=e[u],s=r.base?c[0]+r.base:c[0],l=i[s]||0,f="".concat(s," ").concat(l);i[s]=l+1;var p=n(f),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var h=o(d,r);r.byIndex=u,t.splice(u,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var u=n(i[a]);t[u].references--}for(var c=r(e,o),s=0;s<i.length;s++){var l=n(i[s]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=c}}},2052:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},1469:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},4010:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},631:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9329:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},7641:(e,t,n)=>{function r(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var o=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};System.register(["@openmrs/esm-config","@openmrs/esm-error-handling"],(function(e,t){var i={},a={};return{setters:[function(e){i.Type=e.Type,i.defineConfigSchema=e.defineConfigSchema,i.getConfig=e.getConfig,i.navigate=e.navigate,i.validators=e.validators},function(e){a.reportError=e.reportError}],execute:function(){e(function(){var e={672:function(e,t){var n,r,o;r=t,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",((n=function(e){this.message=e}).prototype=new Error).name="InvalidCharacterError",r.btoa||(r.btoa=function(e){for(var t,r,i=String(e),a=0,u=o,c="";i.charAt(0|a)||(u="=",a%1);c+=u.charAt(63&t>>8-a%1*8)){if((r=i.charCodeAt(a+=3/4))>255)throw new n("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|r}return c}),r.atob||(r.atob=function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,a=0,u=0,c="";i=t.charAt(u++);~i&&(r=a%4?64*r+i:i,a++%4)?c+=String.fromCharCode(255&r>>(-2*a&6)):0)i=o.indexOf(i);return c})},525:function(e){(function(){var t,n,r=function(e,r,o,i){n.defer(),t.search(e).then((function(e){a(e,r).then((function(){o()}),(function(e){i(e)}))}),(function(e){i(e)}))},o=function(e){var t=n.defer(),o=[];return r(e,(function(e){e.forEach((function(e){o.push(e)}))}),(function(){t.resolve(o)}),(function(e){t.reject(e)})),t.promise},i=function(e,r){var o=n.defer();return t.search(e).then((function(e){var n={},i=[function(){o.resolve(e,n)}];function a(){i.pop()()}var u=e.data;u.entry&&u.entry.forEach((function(e){var o=e.resource,c=o.resourceType;r&&r.forEach((function(e){var r,s,l,f=e.split("."),p=f[0],d=f[1],h=o[d];if(c===p&&h){var m=h.reference;n[m]||(r=u,s=o,l=h,i.push((function(){!function(e,r,o){var i=o.reference;t.resolve({bundle:e,resource:r,reference:o}).then((function(e){var t=e.data||e.content;n[i]=t,a()}))}(r,s,l)})))}}))})),a()}),(function(){o.reject("Could not fetch search results")})),o.promise};function a(e,r){var o,i=e.data.entry||[],u=[];for(o=0;o<i.length;o++)u.push(i[o].resource);r(u);var c=n.defer();return t.nextPage({bundle:e.data}).then((function(e){a(e,r).then((function(e){c.resolve()}))}),(function(e){c.resolve()})),c.promise}e.exports=function(e,a){return t=e,n=a,e.drain=r,e.fetchAll=o,e.fetchAllWithReferences=i,e}}).call(this)},256:function(e,t,n){(function(){n(454);var t=n(801),r=n(921),o=n(294),i=n(821),a=n(442),u=n(856),c=n(719),s=n(29),l=n(723),f=n(249),p=n(525);e.exports=function(e,n){var d=t.Middleware,h=t.$$Attr,m=function(e){return h("method",e)},y=function(e,t){return h("headers."+e,t)},v=d(a),g=d(u(e,n)).and(v).and(o.$Basic).and(o.$Bearer).and(o.$Credentials).and(i.$JsonData).and(y("Accept",e.headers&&e.headers.Accept?e.headers.Accept:"application/json")).and(y("Content-Type",e.headers&&e.headers["Content-Type"]?e.headers["Content-Type"]:"application/json")),b=g.and(m("GET")),w=g.and(m("POST")),_=g.and(m("PUT")),x=g.and(m("DELETE")),S=g.and(m("PATCH")),E=i.Http(e,n),$=f.Path,O=$(e.baseUrl),k=O.slash(":type || :resource.resourceType"),j=k.slash("_history"),P=k.slash(":id || :resource.id"),T=P.slash("_history"),A=P.slash(":versionId || :resource.meta.versionId"),C=O.slash(":target.resourceType || :target.type").slash(":target.id").slash(":target.versionId"),I=y("Prefer","return=representation"),R=d(r.$Paging);return p({conformance:b.and(O.slash("metadata")).end(E),document:w.and(O.slash("Document")).end(E),profile:b.and(O.slash("Profile").slash(":type")).end(E),transaction:w.and(O).end(E),history:b.and(O.slash("_history")).and(R).end(E),typeHistory:b.and(j).and(R).end(E),resourceHistory:b.and(T).and(R).end(E),read:b.and(s.$WithPatient).and(P).end(E),vread:b.and(A).end(E),delete:x.and(P).and(I).end(E),create:w.and(k).and(I).end(E),validate:w.and(k.slash("_validate")).end(E),meta:{add:w.and(C.slash("$meta-add")).end(E),delete:w.and(C.slash("$meta-delete")).end(E),read:b.and(C.slash("$meta")).end(E)},search:b.and(k).and(s.$WithPatient).and(r.$SearchParams).and(R).end(E),update:_.and(P).and(I).end(E),conditionalUpdate:_.and(k).and(r.$SearchParams).and(I).end(E),conditionalDelete:x.and(k).and(r.$SearchParams).and(I).end(E),nextPage:b.and(c.$$BundleLinkUrl("next")).end(E),prevPage:b.and(c.$$BundleLinkUrl("previous")).and(c.$$BundleLinkUrl("prev")).end(E),getBundleByUrl:b.and($(":url")).end(E),resolve:b.and(l.resolve).end(E),patch:S.and(P).and(y("Content-Type","application/json-patch+json")).end(E)},n)}}).call(this)},294:function(e,t,n){(function(){var e,r=n(801),o=n(672).btoa;t.$Basic=r.$$Attr("headers.Authorization",(function(e){if(e.auth&&e.auth.user&&e.auth.pass)return"Basic "+o(e.auth.user+":"+e.auth.pass)})),t.$Bearer=r.$$Attr("headers.Authorization",(function(e){if(e.auth&&e.auth.bearer)return"Bearer "+e.auth.bearer})),t.$Credentials=r.Middleware(r.$$Attr("credentials",(function(t){return e=t.credentials,""}))).and(r.$$Attr("credentials",(function(t){if(["same-origin","include"].indexOf(e)>-1)return e})))}).call(this)},719:function(e,t){t.$$BundleLinkUrl=function(e){return function(t){return function(n){var r=n.bundle&&(n.bundle.link||[]).filter((function(t){return t.relation&&t.relation===e}))[0];return r&&r.url&&(n.url=r.url,n.data=null),t(n)}}}},856:function(e){(function(){var t=function(e,t,n){var r=e[n];return r&&!t[n]&&(t[n]=r),e};e.exports=function(e,n){return function(r){return function(o){return t(e,o,"baseUrl"),t(e,o,"cache"),t(e,o,"auth"),t(e,o,"patient"),t(e,o,"debug"),t(e,o,"credentials"),t(e,o,"headers"),t(e,o,"agentOptions"),t(n,o,"defer"),t(n,o,"http"),r(o)}}}}).call(this)},801:function(e,t,n){(function(){var e=n(454),r=function(e){return e.and=function(t){return r((n=e,o=t,function(e){return n(o(e))}));var n,o},e.end=function(t){return e(t)},e};t.$$Simple=function(e){return function(t){return function(n){return t(e(n))}}},t.$$Attr=function(t,n){return r((function(r){return function(o){var i;return i="function"==e.type(n)?n(o):n,r(null==i&&null==i?o:function(e,t,n){for(var r=t.split("."),o=e,i=0;i<r.length-1;i++){var a=r[i];(o=e[a])||(o={},e[a]=o)}return o[r[r.length-1]]=n,e}(o,t,i))}}))};var o=function(e,t){return r((function(n){return function(r){return r[e]=t(r),n(r)}}))};t.Middleware=r,t.Attribute=o,t.Method=function(e){return o("method",(t=e,function(){return t}));var t}}).call(this)},442:function(e){e.exports=function(e){return function(t){try{return e(t)}catch(e){if(t.debug&&(console.log("\nDEBUG: (ERROR in middleware)"),console.log(e.message),console.log(e.stack)),!t.defer)throw console.log("\nDEBUG: (ERROR in middleware)"),console.log(e.message),console.log(e.stack),new Error("I need adapter.defer");var n=t.defer();return n.reject(e),n.promise}}}},821:function(e,t,n){(function(){var e=n(454);t.Http=function(e,t){return function(n){n.debug&&console.log("\nDEBUG (request):",n.method,n.url,n);var r=(n.http||t.http||e.http)(n);return n.debug&&r&&r.then&&r.then((function(e){console.log("\nDEBUG: (responce)",e)})),r}},t.$JsonData=function(t){return function(n){var r,o=n.bundle||n.data||n.resource;return o&&(n.data=(r=o,"object"==e.type(r)||"array"==e.type(r)?JSON.stringify(r):r)),t(n)}}}).call(this)},29:function(e,t,n){(function(){var e=n(801),r=["Account","AllergyIntolerance","BodySite","CarePlan","Claim","ClinicalImpression","Communication","CommunicationRequest","Composition","Condition","Contract","DetectedIssue","Device","DeviceUseRequest","DeviceUseStatement","DiagnosticOrder","DiagnosticReport","DocumentManifest","DocumentReference","Encounter","EnrollmentRequest","EpisodeOfCare","FamilyMemberHistory","Flag","Goal","ImagingObjectSelection","ImagingStudy","Immunization","ImmunizationRecommendation","List","Media","MedicationAdministration","MedicationDispense","MedicationOrder","MedicationStatement","NutritionOrder","Observation","Order","Procedure","ProcedureRequest","QuestionnaireResponse","ReferralRequest","RelatedPerson","RiskAssessment","Specimen","SupplyDelivery","SupplyRequest","VisionPrescription"];t.$WithPatient=e.$$Simple((function(e){var t=e.type;return e.patient&&("Patient"===t?(e.query=e.query||{},e.query._id=e.patient,e.id=e.patient):r.indexOf(t)>=0&&(e.query=e.query||{},e.query.patient=e.patient)),e}))}).call(this)},723:function(e,t,n){(function(){var t=n(454),r=/^#(.*)/,o=function(e){var n,o,i,a,u=e.cache,c=e.reference,s=e.bundle,l=c;if(!l.reference)return null;if(l.reference.match(r))return n=l.reference,o=e.resource,i=n.match(r)[1],(a=(o.contained||[]).filter((function(e){return(e.id||e._id)==i}))[0])&&{content:a}||null;var f=t.absoluteUrl(e.baseUrl,l.reference);return(s&&s.entry||[]).filter((function(e){return e.id===f}))[0]||(null!=u?u[f]:void 0)||null};e.exports.sync=o,e.exports.resolve=function(e){return function(n){var i=o(n),a=n.reference,u=n.defer();if(i){if(!n.defer)throw new Error("I need promise constructor 'adapter.defer' in adapter");return u.resolve(i),u.promise}if(!a)throw new Error("No reference found");if(a&&a.reference.match(r))throw new Error("Contained resource not found");return n.url=t.absoluteUrl(n.baseUrl,a.reference),n.data=null,e(n)}}}).call(this)},921:function(e,t,n){(function(){var e=n(454),r=e.type,o=e.assertArray,i=(e.assertObject,e.reduceMap),a=e.identity,u={$gt:"gt",$lt:"lt",$lte:"lte",$gte:"gte",$ge:"ge",$le:"le"},c={$asc:":asc",$desc:":desc",$exact:":exact",$missing:":missing",$null:":missing",$text:":text"},s=function(e,t){if("$sort"===e)return function(e){var t,n,i,a;for(o(e),i=[],t=0,n=e.length;t<n;t++)switch(a=e[t],r(a)){case"array":i.push({param:"_sort",value:a[0],modifier:":"+a[1]});break;case"string":i.push({param:"_sort",value:a});break;default:i.push(void 0)}return i}(t);if("$has"===e)return i(t,(function(e,t){var n,o;return n=t[0],o=t[1],e.concat(function(){switch(r(o)){case"array":return o.map((function(e){return{param:"_has",value:n+"="+e}}));case"string":return[{param:"_has",value:n+"="+o}]}}())}));if("$include"===e||"$revInclude"===e)return n=e,i(t,(function(e,t){var o,i;return o=t[0],i=t[1],e.concat(function(){switch(r(i)){case"array":return i.map((function(e){return{param:"$include"===n?"_include":"_revinclude",value:o+":"+e}}));case"string":return[{param:"$include"===n?"_include":"_revinclude",value:o+":"+i}]}}())}));var n,a,l;switch(r(t)){case"object":return a=e,i(l=t,(function(e,t){var n,i,f,p;return n=t[0],p=t[1],e.concat("$and"===n?o(p).reduce((function(e,t){return e.concat(s(a,t))}),[]):"$type"===n?[]:0===n.indexOf("$")?(i={param:a},"$or"===n?i.value=p:(u[n]&&(i.operator=u[n]),c[n]&&(i.modifier=c[n]),"object"===r(p)&&p.$or?i.value=p.$or:i.value=[p]),[i]):(l.$type&&(f=":"+l.$type),s(""+a+(f||"")+"."+n,p)))}));case"string":case"number":return[{param:e,value:[t]}];case"array":return[{param:e,value:[t.join("|")]}];default:throw"could not linearizeParams "+r(t)}},l=function(e){return i(e,(function(e,t){var n,r;return n=t[0],r=t[1],e.concat(s(n,r))}))},f=function(e){var t,n,r=["_include","_revinclude","_has"];return function(){var o,i,u,c;for(c=[],o=0,i=(u=l(e)).length;o<i;o++)t=u[o],n=-1===r.indexOf(t.param)?encodeURIComponent(t.value):t.value,c.push([t.param,t.modifier,"_has"==t.param?":":"=",t.operator,n].filter(a).join(""));return c}().join("&")};t._query=l,t.query=f;var p=n(801);t.$SearchParams=p.$$Attr("url",(function(e){var t=e.url;return e.query?t+"?"+f(e.query):t})),t.$Paging=function(e){return function(t){var n=t.params||{};return t.since&&(n._since=t.since),t.count&&(n._count=t.count),t.params=n,e(t)}}}).call(this)},249:function(e,t,n){(function(){n(454);var e=n(801),r=function(t,n){var o=function(e){return n&&t.includes("target.versionId")&&!e.target.versionId?n(e):(n&&n(e)+"/"||"")+function(e,t){var n,r,o=(r=t,0==(n=e.trim()).indexOf(":")?function(e,t){for(var n,r=e.split("||").map((function(e){return e.trim().substring(1)})),o=0;o<r.length;o++){var i=(n=t,r[o].split(".").reduce((function(e,t){return"versionId"===t&&e[t]?"_history/"+e[t]:null==e||null==e?null:e[t]}),n));if(i)return i}return null}(n,r):n);if((null==o||void 0===o)&&0==e.includes("target.versionId"))throw new Error("Parameter "+e+" is required: "+JSON.stringify(t));return o}(t,e)},i=e.Attribute("url",o);return i.slash=function(e){return r(e,o)},i};t.Path=r}).call(this)},454:function(e,t,n){(function(){var e=n(651),r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;t.trim=function(e){return e?e.toString().replace(r,""):""};var o=function(e){return null==e&&void 0===e?String(e):{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"}[Object.prototype.toString.call(e)]};t.type=o,t.assertArray=function(e){if("array"!==o(e))throw"not array";return e};var i=function(e){if("object"!==o(e))throw"not object";return e};t.assertObject=i;var a=function(e,t,n){var r,o;return n||(n=[]),i(e),function(){var t;for(r in t=[],e)o=e[r],t.push([r,o]);return t}().reduce(t,n)};t.reduceMap=a,t.identity=function(e){return e};var u=function(){return Array.prototype.slice.call(arguments)};t.argsArray=u,t.mergeLists=function(){var t;return t=function(t,n){var r,o,i;for(r in o=e(!0,t),n)i=n[r],o[r]=(o[r]||[]).concat(i);return o},u.apply(null,arguments).reduce(t,{})},t.absoluteUrl=function(e,t){return t.match(/https?:\/\/./)?t:e+"/"+t},t.relativeUrl=function(e,t){return t.slice(t,e.length+1)===e+"/"?t.slice(e.length+1):t},t.resourceIdToUrl=function(e,t,n){return t=t.replace(/\/$/,""),(e=e.replace(/^\//,"")).indexOf("/")<0?t+"/"+n+"/"+e:0!==e.indexOf(t)?t+"/"+e:e};var c=function(e,t,n,r){var i;switch(o(n)){case"array":return t(n.map((function(t){return e(t,[n,r])})),r);case"object":return i=function(t,o){var i,a;return i=o[0],a=o[1],t[i]=e(a,[n].concat(r)),t},t(a(n,i,{}),r);default:return t(n,r)}};t.walk=c;var s=function(e,t,n){return t?c(s(e),e,t,n):function(t,n){return s(e,t,n)}};t.postwalk=s}).call(this)},651:function(e,t,n){!function(t){var n=function(e,t,n){var a=n[0],u=n.length;(e||"object"!==r(a))&&(a={});for(var c=0;c<u;++c){var s=n[c];if("object"===r(s))for(var l in s)if("__proto__"!==l){var f=e?o.clone(s[l]):s[l];a[l]=t?i(a[l],f):f}}return a},r=function(e){return{}.toString.call(e).slice(8,-1).toLowerCase()},o=function(e){return n(!0===e,!1,arguments)};function i(e,t){if("object"!==r(e))return t;for(var n in t)"object"===r(e[n])&&"object"===r(t[n])?e[n]=i(e[n],t[n]):e[n]=t[n];return e}o.recursive=function(e){return n(!0===e,!0,arguments)},o.clone=function(e){var t,n,i=e,a=r(e);if("array"===a)for(i=[],n=e.length,t=0;t<n;++t)i[t]=o.clone(e[t]);else if("object"===a)for(t in i={},e)i[t]=o.clone(e[t]);return i},t?e.exports=o:window.merge=o}((e=n.nmd(e))&&"object"==typeof e.exports&&e.exports)},602:function(e){var t=function(e){"use strict";var t,n=function(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]},o=function(e,t,n,o){var u,c,s,l,f=t&&r(t.prototype,a)?t:a,p=Object.create(f.prototype),h=new d(o||[]);return p._invoke=(u=e,c=n,s=h,l=x,function(e,t){if(l===E)throw new Error("Generator is already running");if(l===$){if("throw"===e)throw t;return m()}for(s.method=e,s.arg=t;;){var n=s.delegate;if(n){var r=A(n,s);if(r){if(r===O)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===x)throw l=$,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=E;var o=i(u,c,s);if("normal"===o.type){if(l=s.done?$:S,o.arg===O)continue;return{value:o.arg,done:s.done}}"throw"===o.type&&(l=$,s.method="throw",s.arg=o.arg)}}),p},i=function(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}},a=function(){},u=function(){},c=function(){},s=function(e){["next","throw","return"].forEach((function(t){n(e,t,(function(e){return this._invoke(t,e)}))}))},l=function(e,t){function n(r,o,a,u){var c=i(e[r],e,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&v.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var r;this._invoke=function(e,o){function i(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(i,i):i()}},f=function(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)},p=function(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t},d=function(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)},h=function(e){if(e){var n=e[b];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(v.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:m}},m=function(){return{value:t,done:!0}},y=Object.prototype,v=y.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},b=g.iterator||"@@iterator",w=g.asyncIterator||"@@asyncIterator",_=g.toStringTag||"@@toStringTag";try{n({},"")}catch(e){n=function(e,t,n){return e[t]=n}}e.wrap=o;var x="suspendedStart",S="suspendedYield",E="executing",$="completed",O={},k={};n(k,b,(function(){return this}));var j=Object.getPrototypeOf,P=j&&j(j(h([])));P&&P!==y&&v.call(P,b)&&(k=P);var T=c.prototype=a.prototype=Object.create(k);function A(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method))return O;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var o=i(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,O;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,O):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,O)}return u.prototype=c,n(T,"constructor",c),n(c,"constructor",u),u.displayName=n(c,_,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===u||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,n(e,_,"GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},s(l.prototype),n(l.prototype,w,(function(){return this})),e.AsyncIterator=l,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var u=new l(o(t,n,r,i),a);return e.isGeneratorFunction(n)?u:u.next().then((function(e){return e.done?e.value:u.next()}))},s(T),n(T,_,"Generator"),n(T,b,(function(){return this})),n(T,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=h,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(p),!e)for(var n in this)"t"===n.charAt(0)&&v.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){var n=function(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o};if(this.done)throw e;for(var r=this,o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=v.call(i,"catchLoc"),c=v.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,O):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),O},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),O}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:h(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),O}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},385:function(){System.register([],(function(e,t){return{execute:function(){e(function(){var e={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.y=t,r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}();var o={};return(0,r(968).s)(1),function(){"use strict";var e=function(e,t){for(var n in t)e[n]=t[n];return e},t=function(t){var n=function(e){for(var t=[],n=0;n<o.length;n++)o[n]===e?e=null:t.push(o[n]);o=t},r=function(n,r,i){t=r?n:e(e({},t),n);for(var a=o,u=0;u<a.length;u++)a[u](t,i)},o=[];return t=t||{},{action:function(e){var n=function(t){r(t,!1,e)};return function(){for(var r=arguments,o=[t],i=0;i<arguments.length;i++)o.push(r[i]);var a=e.apply(this,o);if(null!=a)return a.then?a.then(n):n(a)}},setState:r,subscribe:function(e){return o.push(e),function(){n(e)}},unsubscribe:n,getState:function(){return t}}},n=function(e,n){var r=s[e];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=t(n);return s[e]={value:o,active:!0},o},i=function(e,n){var r=s[e];if(!r){var o=t(n);return s[e]={value:o,active:!1},o}return r.value},a=function(e){return n("app",e)},u=function(){return i("app",{})},c=function(e,t,n){var r=t(e.getState());return e.subscribe((function(e){var o=t(e);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return a},createGlobalStore:function(){return n},getAppState:function(){return u},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},824:function(e){"use strict";e.exports=i},254:function(e){"use strict";e.exports=a}},u={};function c(t){var n=u[t];if(void 0!==n)return n.exports;var r=u[t]={id:t,loaded:!1,exports:{}};return e[t].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}c.y=t,c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},c.d=function(e,t){for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;c.g.importScripts&&(e=c.g.location+"");var t=c.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=e}();var s={};return(0,c(968).s)(1),function(){"use strict";var e=function(e,t){function n(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(e){return"function"==typeof e},i=function(e){setTimeout((function(){throw e}),0)},a=function(e){return e.reduce((function(e,t){return e.concat(r(t,X)?t.errors:t)}),[])},u=function(e){return e},l=function(e){return 0===e.length?u:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}},f=function(e){if(e||(e=Q.Promise||Promise),!e)throw new Error("no Promise impl found");return e},p=function(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)},d=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,u,"next",e)}function u(e){p(i,r,o,a,u,"throw",e)}a(void 0)}))}},h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}},m=function(e,t){return!t||"object"!==Oe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t},y=function(e){return window.openmrsBase+e},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof t)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");var n=y(e);t.headers||(t.headers={}),_e(t.body)&&(t.body=JSON.stringify(t.body)),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),null===t.headers.Accept&&delete t.headers.Accept;var r,o=Error();return window.fetch(n,t).then((r=d(H().mark((function e(t){var r,i;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=t).ok){e.next=10;break}if(204!==r.status){e.next=7;break}return r.data=null,e.abrupt("return",r);case 7:return e.abrupt("return",r.text().then((function(e){try{e&&(r.data=JSON.parse(e))}catch(e){}return r})));case 8:e.next=19;break;case 10:return e.next=12,(0,xe.getConfig)("@openmrs/esm-api");case 12:if(i=e.sent.redirectAuthFailure,!(n===y(je)&&403===r.status||i.enabled&&i.errors.includes(r.status))){e.next=18;break}return(0,xe.navigate)({to:i.url}),e.abrupt("return",i.resolvePromise?Promise.resolve():new Promise((function(){})));case 18:return e.abrupt("return",r.text().then((function(e){var t=e;try{t=JSON.parse(e)}catch(e){}throw new Pe(n,r,t,o)}),(function(e){throw new Pe(n,r,null,o)})));case 19:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)}))},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!=typeof t)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");var n=new AbortController;return t.signal=n.signal,new ie((function(r){var o=!1;return v(e,t).then((function(e){o=!0,r.next(e),r.complete()}),(function(e){o=!0,r.error(e)})),function(){o||n.abort()}}))},b=function(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)},w=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){b(i,r,o,a,u,"next",e)}function u(e){b(i,r,o,a,u,"throw",e)}a(void 0)}))}},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeAuthStatus:!0};return(Re<Date.now()-6e4||!Ie.getState().loaded)&&S(),new ie((function(t){var n=function(n){var r;n.loaded&&(e.includeAuthStatus?t.next(n.session):t.next(null===(r=n.session)||void 0===r?void 0:r.user))};return n(Ie.getState()),Ie.subscribe(n)}))},x=function(){return(Re<Date.now()-6e4||!Ie.getState().loaded)&&S(),Ie},S=function(){return new Promise((function(e,t){Re=Date.now(),v(je).then((function(n){if("object"!=typeof(null==n?void 0:n.data))return t(),Promise.reject();var r,o,i,a,u;(u=null!==(a=null==(r=n.data)||null===(o=r.user)||void 0===o||null===(i=o.userProperties)||void 0===i?void 0:i.defaultLocale)&&void 0!==a?a:r.locale)!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",u),e(n.data),Ie.setState({loaded:!0,session:n.data})})).catch((function(e){return(0,Ce.reportError)("Failed to fetch new session information: ".concat(e)),t(e),{sessionId:"",authenticated:!1}}))}))},E=function(){Ie.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})},$=function(e,t){return n=e,t.privileges.find((function(e){return n===e.display}))||t.roles.find((function(e){return"System Developer"===e.display}));var n},O=function(){var e,t;return new Promise((function(n,r){var o=function(r){r.loaded&&r.session.user&&(e=r.session.user,n(r.session.user),t&&t())};o(Ie.getState()),e||(t=Ie.subscribe(o))}))},k=function(){return new Promise((function(e,t){var n=_().subscribe((function(t){e(t.sessionLocation),n.unsubscribe()}),t)}))},j=function(e,t){return Ne.apply(this,arguments)},P=function(){(0,xe.defineConfigSchema)("@openmrs/esm-api",{redirectAuthFailure:{enabled:{_type:xe.Type.Boolean,_default:!0,_description:"Whether to redirect logged-out users to `redirectAuthFailure.url`"},url:{_type:xe.Type.String,_default:"${openmrsSpaBase}/login",_validators:[xe.validators.isUrl]},errors:{_type:xe.Type.Array,_default:[401],_elements:{_type:xe.Type.Number,_validators:[xe.validators.inRange(100,600)]},_description:"The HTTP error codes for which users will be redirected"},resolvePromise:{_type:xe.Type.Boolean,_default:!1,_description:"Changes how requests that fail authentication are handled. Try messing with this if redirects to the login page aren't working correctly."}}}),S()},T=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},A=function(e,t){return e?Ae.read(function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){T(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e}({type:"Patient",patient:e},t)):Promise.resolve(null)},C=function(e){return function(t){return 0===e?Ke:t.lift(new He(e))}},I=function(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Ge(e,t))}},R=function(e,t,n){var r=null!=n?n:Ye;return g("/ws/rest/v1/visit?patient=".concat(e,"&v=").concat(r),{signal:t.signal,method:"GET",headers:{"Content-type":"application/json"}}).pipe(C(1)).pipe(I((function(e){return e})))},N=function(e,t){return g("/ws/rest/v1/visit",{signal:t.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})},D=function(e,t,n){return g("/ws/rest/v1/visit/".concat(e),{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})},M=function(e){return{uuid:e.uuid,display:e.display,name:e.name}},L=function(){return g("/ws/rest/v1/visittype").pipe(I((function(e){return e.data.results.map(M)}))).pipe(C(1))},U=function(e){return{uuid:e.uuid,display:e.display}},z=function(){return g("/ws/rest/v1/location").pipe(I((function(e){return e.data.results.map(U)}))).pipe(C(1))};c.r(s),c.d(s,{OpenmrsFetchError:function(){return Pe},VisitMode:function(){return De},VisitStatus:function(){return Me},backendDependencies:function(){return Xe},clearCurrentUser:function(){return E},defaultVisitCustomRepresentation:function(){return Ye},fetchCurrentPatient:function(){return A},fhir:function(){return Ae},fhirBaseUrl:function(){return Te},getCurrentUser:function(){return _},getLocations:function(){return z},getLoggedInUser:function(){return O},getSessionLocation:function(){return k},getSessionStore:function(){return x},getStartedVisit:function(){return Je},getVisitTypes:function(){return L},getVisitsForPatient:function(){return R},makeUrl:function(){return y},openmrsFetch:function(){return v},openmrsObservableFetch:function(){return g},refetchCurrentUser:function(){return S},saveVisit:function(){return N},sessionEndpoint:function(){return je},setSessionLocation:function(){return j},setupApiModule:function(){return P},toLocationObject:function(){return U},toVisitTypeObject:function(){return M},updateVisit:function(){return D},userHasAccess:function(){return $}});var F,B,V,W,q,K=c(602),H=c.n(K),Z=function(e,t){return(Z=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},G=!1,Q={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,G=e},get useDeprecatedSynchronousErrorHandling(){return G}},Y={closed:!0,next:function(e){},error:function(e){if(Q.useDeprecatedSynchronousErrorHandling)throw e;i(e)},complete:function(){}},J=Array.isArray||function(e){return e&&"number"==typeof e.length},X=(F=function(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this},F.prototype=Object.create(Error.prototype),F),ee=function(){var e,n=function(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)};return n.prototype.unsubscribe=function(){var e;if(!this.closed){var o,i=this,u=i._parentOrParents,c=i._ctorUnsubscribe,s=i._unsubscribe,l=i._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r(u,n))u.remove(this);else if(null!==u)for(var f=0;f<u.length;++f)u[f].remove(this);if(t(s)){c&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=r(t,X)?a(t.errors):[t]}}if(J(l)){f=-1;for(var p=l.length;++f<p;){var d=l[f];if(null!==(o=d)&&"object"==typeof o)try{d.unsubscribe()}catch(t){e=e||[],r(t,X)?e=e.concat(a(t.errors)):e.push(t)}}}if(e)throw new X(e)}},n.prototype.add=function(e){var t=e;if(!e)return n.EMPTY;switch(void 0===e?"undefined":o(e)){case"function":t=new n(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!r(t,n)){var i=t;(t=new n)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var a=t._parentOrParents;if(null===a)t._parentOrParents=this;else if(r(a,n)){if(a===this)return t;t._parentOrParents=[a,this]}else{if(-1!==a.indexOf(this))return t;a.push(this)}var u=this._subscriptions;return null===u?this._subscriptions=[t]:u.push(t),t},n.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},n.EMPTY=((e=new n).closed=!0,e),n}(),te="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),ne=function(t){function n(e,o,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=Y;break;case 1:if(!e){a.destination=Y;break}if("object"==typeof e){r(e,n)?(a.syncErrorThrowable=e.syncErrorThrowable,a.destination=e,e.add(a)):(a.syncErrorThrowable=!0,a.destination=new re(a,e));break}default:a.syncErrorThrowable=!0,a.destination=new re(a,e,o,i)}return a}return e(n,t),n.prototype[te]=function(){return this},n.create=function(e,t,r){var o=new n(e,t,r);return o.syncErrorThrowable=!1,o},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},n}(ee),re=(V=function(e,n,r,o){var i,a=B.call(this)||this;a._parentSubscriber=e;var u=a;return t(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==Y&&(t((u=Object.create(n)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=i,a._error=r,a._complete=o,a},e(V,B=ne),V.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;Q.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},V.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=Q.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):i(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;i(e)}}},V.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};Q.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},V.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),Q.useDeprecatedSynchronousErrorHandling)throw e;i(e)}},V.prototype.__tryOrSetError=function(e,t,n){if(!Q.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return Q.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(i(t),!0)}return!1},V.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},V),oe="function"==typeof Symbol&&Symbol.observable||"@@observable",ie=function(){var e=function(e){this._isScalar=!1,e&&(this._subscribe=e)};return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o=this.operator,i=function(e,t,n){if(e){if(r(e,ne))return e;if(e[te])return e[te]()}return e||t||n?new ne(e,t,n):new ne(Y)}(e,t,n);if(o?i.add(o.call(i,this.source)):i.add(this.source||Q.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Q.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){Q.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&r(o,ne)?o:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=f(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[oe]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:l(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}(),ae="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ue="object"==typeof self&&self&&self.Object===Object&&self,ce=(ae||ue||Function("return this")()).Symbol,se=Object.prototype,le=se.hasOwnProperty,fe=se.toString,pe=ce?ce.toStringTag:void 0,de=Object.prototype.toString,he=ce?ce.toStringTag:void 0,me=(W=Object.getPrototypeOf,q=Object,function(e){return W(q(e))}),ye=Function.prototype,ve=Object.prototype,ge=ye.toString,be=ve.hasOwnProperty,we=ge.call(Object),_e=function(e){if(null==(t=e)||"object"!=typeof t||"[object Object]"!=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":he&&he in Object(e)?function(e){var t=le.call(e,pe),n=e[pe];try{e[pe]=void 0;var r=!0}catch(e){}var o=fe.call(e);return r&&(t?e[pe]=n:delete e[pe]),o}(e):(t=e,de.call(t));var t}(e))return!1;var t,n=me(e);if(null===n)return!0;var o=be.call(n,"constructor")&&n.constructor;return"function"==typeof o&&r(o,o)&&ge.call(o)==we},xe=c(824);function Se(e,t,n){return Se=h()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&$e(o,n.prototype),o},Se.apply(null,arguments)}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $e(e,t){return($e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Oe=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":void 0===e?"undefined":o(e)};function ke(e){var t="function"==typeof Map?new Map:void 0;return ke=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Se(e,arguments,Ee(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$e(r,e)},ke(e)}var je="/ws/rest/v1/session",Pe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$e(e,t)}(i,e);var t,n,o=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Ee(t);if(n){var o=Ee(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return m(this,e)});function i(e,t,n,a){var u;return function(e,t){if(!r(e,t))throw new TypeError("Cannot call a class as a function")}(this,i),(u=o.call(this)).message="Server responded with ".concat(t.status," (").concat(t.statusText,") for url ").concat(e,". Check err.responseBody or network tab in dev tools for more info"),a.message=u.message,u.responseBody=n,u.response=t,u.stack="Stacktrace for outgoing request:\n".concat(a.stack,"\nStacktrace for incoming response:\n").concat(u.stack),u}return i}(ke(Error)),Te="/ws/fhir2/R4",Ae=c(256)({baseUrl:Te},{http:function(e){return v(e.url,{method:e.method,headers:e.headers}).then((function(t){return{status:t.status,headers:t.headers,data:t.data,config:e}}),(function(t){return{status:t.response.status,headers:t.response.headers,data:t.responseBody,config:e}}))}}),Ce=c(254),Ie=(0,c(385).createGlobalStore)("session",{loaded:!1,session:null}),Re=0;function Ne(){return(Ne=w(H().mark((function e(t,n){return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(je,{method:"POST",body:{sessionLocation:t},headers:{"Content-Type":"application/json"},signal:n.signal});case 2:S();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var De,Me,Le,Ue=function(){var e=function(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this};return e.prototype=Object.create(Error.prototype),e}(),ze=function(t){var n=function(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r};return e(n,t),n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},n}(ee),Fe=function(t){var n=function(e){var n=t.call(this,e)||this;return n.destination=e,n};return e(n,t),n}(ne),Be=function(t){var n=function(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e};return e(n,t),n.prototype[te]=function(){return new Fe(this)},n.prototype.lift=function(e){var t=new Ve(this,this);return t.operator=e,t},n.prototype.next=function(e){if(this.closed)throw new Ue;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},n.prototype.error=function(e){if(this.closed)throw new Ue;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},n.prototype.complete=function(){if(this.closed)throw new Ue;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},n.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},n.prototype._trySubscribe=function(e){if(this.closed)throw new Ue;return t.prototype._trySubscribe.call(this,e)},n.prototype._subscribe=function(e){if(this.closed)throw new Ue;return this.hasError?(e.error(this.thrownError),ee.EMPTY):this.isStopped?(e.complete(),ee.EMPTY):(this.observers.push(e),new ze(this,e))},n.prototype.asObservable=function(){var e=new ie;return e.source=this,e},n.create=function(e,t){return new Ve(e,t)},n}(ie),Ve=function(t){var n=function(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r};return e(n,t),n.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},n.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},n.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},n.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):ee.EMPTY},n}(Be),We=function(t){var n=function(e){var n=t.call(this)||this;return n._value=e,n};return e(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ue;return this._value},n.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},n}(Be),qe=function(){var e=function(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this};return e.prototype=Object.create(Error.prototype),e}(),Ke=new ie((function(e){return e.complete()})),He=function(){var e=function(e){if(this.total=e,this.total<0)throw new qe};return e.prototype.call=function(e,t){return t.subscribe(new Ze(e,this.total))},e}(),Ze=function(t){var n=function(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r};return e(n,t),n.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},n}(ne),Ge=function(){var e=function(e,t){this.project=e,this.thisArg=t};return e.prototype.call=function(e,t){return t.subscribe(new Qe(e,this.project,this.thisArg))},e}(),Qe=function(t){var n=function(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o};return e(n,t),n.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},n}(ne),Ye="custom:(uuid,encounters:(uuid,encounterDatetime,form:(uuid,name),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display))),patient:(uuid,uuid),visitType:(uuid,name,display),attributes:(uuid,display,value),location:(uuid,name,display),startDatetime,stopDatetime)",Je=new We(null);(Le=De||(De={})).NEWVISIT="startVisit",Le.EDITVISIT="editVisit",Le.LOADING="loadingVisit",function(e){e.NOTSTARTED="notStarted",e.ONGOING="ongoing"}(Me||(Me={}));var Xe={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"}}(),s}())}}}))},8461:(e,t,n)=>{"use strict";n.d(t,{nF:()=>P,u4:()=>fe,Rx:()=>pe,Wf:()=>ge,Ze:()=>z,I$:()=>ue,Vy:()=>H,N$:()=>A,DN:()=>T,ts:()=>M,JC:()=>ve,r:()=>B,WK:()=>V,KJ:()=>L,$X:()=>de,P9:()=>me,nx:()=>ce,bf:()=>O,vb:()=>k,uj:()=>j,VJ:()=>U,bX:()=>se,z$:()=>$,jK:()=>W,Lq:()=>ye,VF:()=>he,ym:()=>le,y9:()=>F});var r=n(1602),o=n.n(r),i=n(1720),a=n(963);const u=(0,n(6899).Z)(Object.getPrototypeOf,Object);var c=n(4897),s=Function.prototype,l=Object.prototype,f=s.toString,p=l.hasOwnProperty,d=f.call(Object);const h=function(e){if(!(0,c.Z)(e)||"[object Object]"!=(0,a.Z)(e))return!1;var t=u(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&f.call(n)==d};var m=n(9714);function y(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){y(i,r,o,a,u,"next",e)}function u(e){y(i,r,o,a,u,"throw",e)}a(void 0)}))}}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function b(e,t,n){return b=g()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&x(o,n.prototype),o},b.apply(null,arguments)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function _(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}var S=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function E(e){var t="function"==typeof Map?new Map:void 0;return E=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return b(e,arguments,w(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),x(r,e)},E(e)}var $="/ws/rest/v1/session";function O(e){return window.openmrsBase+e}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof t)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");var n=O(e);t.headers||(t.headers={}),h(t.body)&&(t.body=JSON.stringify(t.body)),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),null===t.headers.Accept&&delete t.headers.Accept;var r,i=Error();return window.fetch(n,t).then((r=v(o().mark((function e(t){var r,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=t).ok){e.next=10;break}if(204!==r.status){e.next=7;break}return r.data=null,e.abrupt("return",r);case 7:return e.abrupt("return",r.text().then((function(e){try{e&&(r.data=JSON.parse(e))}catch(e){}return r})));case 8:e.next=19;break;case 10:return e.next=12,(0,m.getConfig)("@openmrs/esm-api");case 12:if(a=e.sent.redirectAuthFailure,!(n===O($)&&403===r.status||a.enabled&&a.errors.includes(r.status))){e.next=18;break}return(0,m.navigate)({to:a.url}),e.abrupt("return",a.resolvePromise?Promise.resolve():new Promise((function(){})));case 18:return e.abrupt("return",r.text().then((function(e){var t=e;try{t=JSON.parse(e)}catch(e){}throw new P(n,r,t,i)}),(function(e){throw new P(n,r,null,i)})));case 19:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)}))}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!=typeof t)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");var n=new AbortController;return t.signal=n.signal,new i.y((function(r){var o=!1;return k(e,t).then((function(e){o=!0,r.next(e),r.complete()}),(function(e){o=!0,r.error(e)})),function(){o||n.abort()}}))}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=w(t);if(n){var o=w(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return _(this,e)});function o(e,t,n,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(a=r.call(this)).message="Server responded with ".concat(t.status," (").concat(t.statusText,") for url ").concat(e,". Check err.responseBody or network tab in dev tools for more info"),i.message=a.message,a.responseBody=n,a.response=t,a.stack="Stacktrace for outgoing request:\n".concat(i.stack,"\nStacktrace for incoming response:\n").concat(a.stack),a}return o}(E(Error)),T="/ws/fhir2/R4",A=n(1256)({baseUrl:T},{http:function(e){return k(e.url,{method:e.method,headers:e.headers}).then((function(t){return{status:t.status,headers:t.headers,data:t.data,config:e}}),(function(t){return{status:t.response.status,headers:t.response.headers,data:t.responseBody,config:e}}))}}),C=n(674);function I(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function R(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){I(i,r,o,a,u,"next",e)}function u(e){I(i,r,o,a,u,"throw",e)}a(void 0)}))}}var N=(0,n(5385).createGlobalStore)("session",{loaded:!1,session:null}),D=0;function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeAuthStatus:!0};return(D<Date.now()-6e4||!N.getState().loaded)&&U(),new i.y((function(t){var n=function(n){var r;n.loaded&&(e.includeAuthStatus?t.next(n.session):t.next(null===(r=n.session)||void 0===r?void 0:r.user))};return n(N.getState()),N.subscribe(n)}))}function L(){return(D<Date.now()-6e4||!N.getState().loaded)&&U(),N}function U(){return new Promise((function(e,t){D=Date.now(),k($).then((function(n){if("object"!=typeof(null==n?void 0:n.data))return t(),Promise.reject();var r,o,i,a,u;(u=null!==(a=null==(r=n.data)||null===(o=r.user)||void 0===o||null===(i=o.userProperties)||void 0===i?void 0:i.defaultLocale)&&void 0!==a?a:r.locale)!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",u),e(n.data),N.setState({loaded:!0,session:n.data})})).catch((function(e){return(0,C.reportError)("Failed to fetch new session information: ".concat(e)),t(e),{sessionId:"",authenticated:!1}}))}))}function z(){N.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})}function F(e,t){return function(e,t){return t.privileges.find((function(t){return e===t.display}))}(e,t)||function(e){return e.roles.find((function(e){return"System Developer"===e.display}))}(t)}function B(){var e,t;return new Promise((function(n,r){var o=function(r){r.loaded&&r.session.user&&(e=r.session.user,n(r.session.user),t&&t())};o(N.getState()),e||(t=N.subscribe(o))}))}function V(){return new Promise((function(e,t){var n=M().subscribe((function(t){e(t.sessionLocation),n.unsubscribe()}),t)}))}function W(e,t){return q.apply(this,arguments)}function q(){return(q=R(o().mark((function e(t,n){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k($,{method:"POST",body:{sessionLocation:t},headers:{"Content-Type":"application/json"},signal:n.signal});case 2:U();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){return e?A.read(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){K(e,t,n[t])}))}return e}({type:"Patient",patient:e},t)):Promise.resolve(null)}var Z=n(7080),G=n(7860),Q=n(7043),Y=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return Z.ZT(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Q.N;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(G.xQ),J=n(7811),X=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),ee=new i.y((function(e){return e.complete()}));function te(e){return function(t){return 0===e?n?function(e){return new i.y((function(t){return e.schedule((function(){return t.complete()}))}))}(n):ee:t.lift(new ne(e));var n}}var ne=function(){function e(e){if(this.total=e,this.total<0)throw new X}return e.prototype.call=function(e,t){return t.subscribe(new re(e,this.total))},e}(),re=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return Z.ZT(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(J.L);function oe(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new ie(e,t))}}var ie=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new ae(e,this.project,this.thisArg))},e}(),ae=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return Z.ZT(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(J.L),ue="custom:(uuid,encounters:(uuid,encounterDatetime,form:(uuid,name),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display))),patient:(uuid,uuid),visitType:(uuid,name,display),attributes:(uuid,display,value),location:(uuid,name,display),startDatetime,stopDatetime)";function ce(e,t,n){var r=null!=n?n:ue;return j("/ws/rest/v1/visit?patient=".concat(e,"&v=").concat(r),{signal:t.signal,method:"GET",headers:{"Content-type":"application/json"}}).pipe(te(1)).pipe(oe((function(e){return e})))}function se(e,t){return j("/ws/rest/v1/visit",{signal:t.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})}function le(e,t,n){return j("/ws/rest/v1/visit/".concat(e),{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})}var fe,pe,de=new Y(null);function he(e){return{uuid:e.uuid,display:e.display,name:e.name}}function me(){return j("/ws/rest/v1/visittype").pipe(oe((function(e){return e.data.results.map(he)}))).pipe(te(1))}function ye(e){return{uuid:e.uuid,display:e.display}}function ve(){return j("/ws/rest/v1/location").pipe(oe((function(e){return e.data.results.map(ye)}))).pipe(te(1))}!function(e){e.NEWVISIT="startVisit",e.EDITVISIT="editVisit",e.LOADING="loadingVisit"}(fe||(fe={})),function(e){e.NOTSTARTED="notStarted",e.ONGOING="ongoing"}(pe||(pe={}));var ge={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"}},6066:()=>{function e(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}System.register(["@openmrs/esm-state"],(function(t,n){var r={};return{setters:[function(e){r.createGlobalStore=e.createGlobalStore}],execute:function(){t(function(){var t={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},685:function(e){"use strict";e.exports=r}},o={};function i(e){var n=o[e];if(void 0!==n)return n.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.y=n,i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e}();var a={};return(0,i(968).s)(1),function(){"use strict";var t=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")},n=function(e){return e&&e.sensitive?"":"i"},r=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},o=function(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},u=function(t){return n=t.matcher,(null!=(r=RegExp)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):e(n,r))?t.matcher:"string"==typeof t.matcher?h(t.matcher):h(t.path);var n,r},c=function(e){return s([e])},s=function(e){var t=l(),n=e.map((function(e){return{matcher:u(e),settings:e}})),r=o(t).concat(o(n));m.setState(r,!0)},l=function(){return m.getState()},f=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},p=function(e,t){if(e.length>0){var n=y(e,t);if(n){for(var r=[n],o=y(e,n.settings.parent);void 0!==o;)r.push(o),o=y(e,o.settings.parent);return r.reverse()}}return[]},d=function(e){return p(l(),e)};function h(r,o,i){return e(r,RegExp)?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}(r,o):Array.isArray(r)?(c=o,s=i,l=r.map((function(e){return h(e,c,s).source})),new RegExp("(?:"+l.join("|")+")",n(s))):(a=o,function(e,r,o){void 0===o&&(o={});for(var i=o.strict,a=void 0!==i&&i,u=o.start,c=void 0===u||u,s=o.end,l=void 0===s||s,f=o.encode,p=void 0===f?function(e){return e}:f,d="["+t(o.endsWith||"")+"]|$",h="["+t(o.delimiter||"/#?")+"]",m=c?"^":"",y=0,v=e;y<v.length;y++){var g=v[y];if("string"==typeof g)m+=t(p(g));else{var b=t(p(g.prefix)),w=t(p(g.suffix));if(g.pattern)if(r&&r.push(g),b||w)if("+"===g.modifier||"*"===g.modifier){var _="*"===g.modifier?"?":"";m+="(?:"+b+"((?:"+g.pattern+")(?:"+w+b+"(?:"+g.pattern+"))*)"+w+")"+_}else m+="(?:"+b+"("+g.pattern+")"+w+")"+g.modifier;else m+="("+g.pattern+")"+g.modifier;else m+="(?:"+b+w+")"+g.modifier}}if(l)a||(m+=h+"?"),m+=o.endsWith?"(?="+d+")":"$";else{var x=e[e.length-1],S="string"==typeof x?h.indexOf(x[x.length-1])>-1:void 0===x;a||(m+="(?:"+h+"(?="+d+"))?"),S||(m+="(?="+h+"|"+d+")")}return new RegExp(m,n(o))}(function(e,n){void 0===n&&(n={});for(var r=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[u=n+1])throw new TypeError('Pattern cannot start with "?" at '+u);for(;u<e.length;)if("\\"!==e[u]){if(")"===e[u]){if(0==--o){u++;break}}else if("("===e[u]&&(o++,"?"!==e[u+1]))throw new TypeError("Capturing groups are not allowed at "+u);i+=e[u++]}else i+=e[u++]+e[u++];if(o)throw new TypeError("Unbalanced pattern at "+n);if(!i)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:i}),n=u}else{for(var a="",u=n+1;u<e.length;){var c=e.charCodeAt(u);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=e[u++]}if(!a)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=u}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),o=n.prefixes,i=void 0===o?"./":o,a="[^"+t(n.delimiter||"/#?")+"]+?",u=[],c=0,s=0,l="",f=function(e){if(s<r.length&&r[s].type===e)return r[s++].value},p=function(e){var t=f(e);if(void 0!==t)return t;var n=r[s],o=n.type,i=n.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+e)},d=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};s<r.length;){var h=f("CHAR"),m=f("NAME"),y=f("PATTERN");if(m||y){var v=h||"";-1===i.indexOf(v)&&(l+=v,v=""),l&&(u.push(l),l=""),u.push({name:m||c++,prefix:v,suffix:"",pattern:y||a,modifier:f("MODIFIER")||""})}else{var g=h||f("ESCAPED_CHAR");if(g)l+=g;else if(l&&(u.push(l),l=""),f("OPEN")){v=d();var b=f("NAME")||"",w=f("PATTERN")||"",_=d();p("CLOSE"),u.push({name:b||(w?c++:""),pattern:b&&!w?a:w,prefix:v,suffix:_,modifier:f("MODIFIER")||""})}else p("END")}}return u}(r,u=i),a,u));var a,u,c,s,l}i.r(a),i.d(a,{filterBreadcrumbs:function(){return p},getBreadcrumbs:function(){return l},getBreadcrumbsFor:function(){return d},registerBreadcrumb:function(){return c},registerBreadcrumbs:function(){return s}});var m=(0,i(685).createGlobalStore)("breadcrumbs",[]);function y(e,t){if(t)return n=t,(r=e.filter((function(e){return e.matcher.test(n)})),function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),1!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(r)||function(e,t){if(e){if("string"==typeof e)return f(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,1):void 0}}(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0]||function(e,t){for(var n=t.split("/");n.length>1;){n.pop();var r=y(e,n.join("/"));if(r)return r}}(e,t);var n,r}}(),a}())}}}))},9714:()=>{var e=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};System.register(["@openmrs/esm-state","single-spa"],(function(t,n){var r={},o={};return{setters:[function(e){r.createGlobalStore=e.createGlobalStore,r.getGlobalStore=e.getGlobalStore},function(e){o.navigateToUrl=e.navigateToUrl}],execute:function(){t(function(){"use strict";var t={685:function(e){e.exports=r},645:function(e){e.exports=o}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){var t=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]},n=function(e){return function n(r){return 0===arguments.length||t(r)?n:e.apply(this,arguments)}},r=function(e){return function r(o,i){switch(arguments.length){case 0:return r;case 1:return t(o)?r:n((function(t){return e(o,t)}));default:return t(o)&&t(i)?r:t(o)?n((function(t){return e(t,i)})):t(i)?n((function(t){return e(o,t)})):e(o,i)}}},o=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n},u=function(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1},c=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)},s=function(e,t,n,r){var i=o(e);function a(e,t){return ce(e,t,n.slice(),r.slice())}return!u((function(e,t){return!u(a,t,e)}),o(t),i)},l=function(e){return function o(i,a,u){switch(arguments.length){case 0:return o;case 1:return t(i)?o:r((function(t,n){return e(i,t,n)}));case 2:return t(i)&&t(a)?o:t(i)?r((function(t,n){return e(t,a,n)})):t(a)?r((function(t,n){return e(i,t,n)})):n((function(t){return e(i,a,t)}));default:return t(i)&&t(a)&&t(u)?o:t(i)&&t(a)?r((function(t,n){return e(t,n,u)})):t(i)&&t(u)?r((function(t,n){return e(t,a,n)})):t(a)&&t(u)?r((function(t,n){return e(i,t,n)})):t(i)?n((function(t){return e(t,a,u)})):t(a)?n((function(t){return e(i,t,u)})):t(u)?n((function(t){return e(i,a,t)})):e(i,a,u)}}},f=function(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)},p=function(e,t,n,r){return e["@@transducer/result"](n[r](ge(e["@@transducer/step"],e),t))},d=function(e){return"[object Object]"===Object.prototype.toString.call(e)},h=function(e,t){return function(n){if(!e(n))return"function"==typeof t?t(n):t}},m=function(){try{return JSON.parse(localStorage.getItem("openmrs:configAreDevDefaultsOn")||"false")}catch(e){return!1}},y=function(e){return(0,Te.getGlobalStore)("config-module-".concat(e),{config:null,loaded:!1})},v=function(){return(0,Te.getGlobalStore)("config-extension-slots",{slots:{}})},g=function(e){return b(v().getState(),e)},b=function(e,t){var n=e.slots[t];return null!=n?n:{loaded:!1,config:{}}},w=function(){return(0,Te.getGlobalStore)("config-extensions",{configs:{}})},_=function(e,t){return x(w().getState(),e,t)},x=function(e,t,n){var r,o=null===(r=e.configs[t])||void 0===r?void 0:r[n];return null!=o?o:{loaded:!1,config:null}},S=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},E=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},$=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){E(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},O=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},k=function(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},j=function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}},P=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(e.schemas)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=i.value,c=F(u,e,t);y(u).setState({loaded:!0,config:c})}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}},T=function(e,t){var n,r,o=(n=V(z(e,t)),function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=Object.entries(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=O(o.value,2),u=a[0],c=a[1],s=!0,l=!1,f=void 0;try{for(var p,d=Object.entries(c)[Symbol.iterator]();!(s=(p=d.next()).done);s=!0){var h=O(p.value,2),m=h[0];U(h[1],u,m)}}catch(e){l=!0,f=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw f}}}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}(r=Object.keys(n).reduce((function(e,t){var r,o;return(null===(r=n[t])||void 0===r?void 0:r.extensionSlots)&&(e[t]=null===(o=n[t])||void 0===o?void 0:o.extensionSlots),e}),{})),Object.keys(r).reduce((function(e,t){return $({},e,r[t])}),{})),i=Object.fromEntries(Object.entries(o).map((function(e){var t=O(e,2);return[t[0],{loaded:!0,config:t[1]}]}))),a=v(),u=a.getState(),c={slots:$({},u.slots,i)};se(u,c)||a.setState(c)},A=function(e,t){var n=function(e,t){var n=Me(de(e.schemas)),r=k(e.providedConfigs.map((function(e){return[e.config,e.source]}))).concat([[t.config,"temporary config"]]),o=!0,i=!1,a=void 0;try{for(var u,c=r[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=O(u.value,2);n=V([n,Le(s[0],s[1])])}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t);De.setState({config:n})},C=function(e,t,n){var r={},o=!0,i=!1,a=void 0;try{for(var u,c=t.mountedExtensions[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=u.value,l=L(s.slotModuleName,s.extensionModuleName,s.slotName,s.extensionId,e,n);r[s.slotName]=$({},r[s.slotName],E({},s.extensionId,{config:l,loaded:!0}))}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}w().setState({configs:r})},I=function(e,t){Ue(e,t);var n=Ce.getState();Ce.setState({schemas:$({},n.schemas,E({},e,t))})},R=function(e,t){Ue(e,t);var n=Ce.getState();n.schemas[e]&&console.warn("Config schema for extension ".concat(e," already exists. If there are multiple extensions with this same name, one will probably crash.")),Ce.setState({schemas:$({},n.schemas,E({},e,t))})},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided",n=Ce.getState();Ce.setState({providedConfigs:k(n.providedConfigs).concat([{source:t,config:e}])})},D=function(e){return new Promise((function(t){var n=function(e){e.loaded&&e.config&&(t(e.config),o&&o())},r=y(e);n(r.getState());var o=r.subscribe(n)}))},M=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];W(e,t,n);var o=Be(e,t,r);return Fe(e,o,n),o},L=function(e,t,n,r,o,i){var a,u,c,s,l=O(r.split("#"),1)[0],f=o.schemas[l],p=f?l:t,d=z(o,i),h=B(e,d),m=null!==(s=null==h||null===(a=h.extensionSlots)||void 0===a||null===(u=a[n])||void 0===u||null===(c=u.configure)||void 0===c?void 0:c[r])&&void 0!==s?s:{},y=V([B(p,d),m]),v=null!=f?f:o.schemas[t];W(v,y,p);var g=Be(v,y,o.devDefaultsAreOn);return Fe(v,g,p),delete g.extensionSlots,g},U=function(e,t,n){var r="Extension slot config '".concat(t,".extensionSlots.").concat(n),o=Object.keys(e).filter((function(e){return!["add","remove","order","configure"].includes(e)}));o.length&&console.error(r+"' contains invalid keys '".concat(o.join("', '"),"'")),e.add&&(Array.isArray(e.add)&&e.add.every((function(e){return"string"==typeof e}))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),e.remove&&(Array.isArray(e.remove)&&e.remove.every((function(e){return"string"==typeof e}))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),e.order&&(Array.isArray(e.order)&&e.order.every((function(e){return"string"==typeof e}))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),e.configure&&(Z(e.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))},z=function(e,t){return k(e.providedConfigs.map((function(e){return e.config}))).concat([t.config])},F=function(e,t,n){if(!t.schemas.hasOwnProperty(e))throw Error("No config schema has been defined for "+e);var r=t.schemas[e],o=B(e,z(t,n));W(r,o,e);var i=Be(r,o,t.devDefaultsAreOn);return Fe(r,i,e),delete i.extensionSlots,i},B=function(e,t){return V(t.map((function(t){return t[e]})).filter((function(e){return!!e})))},V=function(e){return we(Se)({},e)},W=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,o=!1,i=void 0;try{for(var a,u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value,s=t[c],l=n+"."+c,f=e[c];e.hasOwnProperty(c)?ze(f,s,l):"extensionSlots"===c&&""!==n||console.error("Unknown config key '".concat(l,"' provided. Ignoring."))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}},q=function(e,t,n){t&&K(e,[{Array:Ee,Boolean:$e,ConceptUuid:Pe,Number:Oe,Object:je,String:ke,UUID:Pe,PersonAttributeTypeUuid:Pe,PatientIdentifierTypeUuid:Pe}[t]],n)},K=function(e,t,n){if(t)try{var r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=(0,a.value)(n);"string"==typeof c&&("object"==typeof n?console.error("Invalid configuration for ".concat(e,": ").concat(c)):console.error("Invalid configuration value ".concat(n," for ").concat(e,": ").concat(c)))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}catch(t){console.error('Skipping invalid validator at "'.concat(e,'". Encountered error\n\t').concat(t))}},H=function(e){return!!e&&Object.keys(e).filter((function(e){return!["_default","_validators"].includes(e)})).length>0},Z=function(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e},G=function(e){var t=window.getOpenmrsSpaBase().replace(/\/$/,"");return Q(e,{openmrsBase:window.openmrsBase,openmrsSpaBase:t}).replace(/^\/\//,"/")},Q=function(e,t){return Object.keys(t).reduce((function(e,n){return e.split("${"+n+"}").join(t[n])}),e)},Y=function(e){var t=e.to,n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=G(t);r.startsWith(n)?(0,Ve.navigateToUrl)(r):window.location.assign(r)};i.r(a),i.d(a,{Type:function(){return fe},configExtensionStore:function(){return Ne},configInternalStore:function(){return Ce},defineConfigSchema:function(){return I},defineExtensionConfigSchema:function(){return R},getConfig:function(){return D},getConfigStore:function(){return y},getExtensionConfig:function(){return _},getExtensionConfigFromStore:function(){return x},getExtensionSlotConfig:function(){return g},getExtensionSlotConfigFromStore:function(){return b},getExtensionSlotsConfigStore:function(){return v},getExtensionsConfigStore:function(){return w},implementerToolsConfigStore:function(){return De},inRange:function(){return We},interpolateString:function(){return Q},interpolateUrl:function(){return G},isUrl:function(){return Ke},isUrlWithTemplateParameters:function(){return qe},navigate:function(){return Y},oneOf:function(){return He},processConfig:function(){return M},provide:function(){return N},temporaryConfigStore:function(){return Re},validator:function(){return h},validators:function(){return Ze}});var J="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},X=Object.prototype.toString,ee=function(){return"[object Arguments]"===X.call(arguments)?function(e){return"[object Arguments]"===X.call(e)}:function(e){return c("callee",e)}}(),te=ee,ne=!{toString:null}.propertyIsEnumerable("toString"),re=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],oe=function(){return arguments.propertyIsEnumerable("length")}(),ie=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},ae="function"!=typeof Object.keys||oe?n((function(e){if(Object(e)!==e)return[];var t,n,r=[],o=oe&&te(e);for(t in e)!c(t,e)||o&&"length"===t||(r[r.length]=t);if(ne)for(n=re.length-1;n>=0;)c(t=re[n],e)&&!ie(r,t)&&(r[r.length]=t),n-=1;return r})):n((function(e){return Object(e)!==e?[]:Object.keys(e)})),ue=n((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function ce(t,n,r,o){if(J(t,n))return!0;var i,a,u=ue(t);if(u!==ue(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(i=t.constructor,null==(a=String(i).match(/^function (\w*)/))?"":a[1]))return t===n;break;case"Boolean":case"Number":case"String":if((void 0===t?"undefined":e(t))!=(void 0===n?"undefined":e(n))||!J(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!J(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1}for(var l=r.length-1;l>=0;){if(r[l]===t)return o[l]===n;l-=1}switch(u){case"Map":return t.size===n.size&&s(t.entries(),n.entries(),r.concat([t]),o.concat([n]));case"Set":return t.size===n.size&&s(t.values(),n.values(),r.concat([t]),o.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=ae(t);if(f.length!==ae(n).length)return!1;var p=r.concat([t]),d=o.concat([n]);for(l=f.length-1;l>=0;){var h=f[l];if(!c(h,n)||!ce(n[h],t[h],p,d))return!1;l-=1}return!0}var se=r((function(e,t){return ce(e,t,[],[])}));function le(e,t,n,r){var o,i=function(o){for(var i=t.length,a=0;a<i;){if(e===t[a])return n[a];a+=1}for(var u in t[a+1]=e,n[a+1]=o,e)o[u]=r?le(e[u],t,n,!0):e[u];return o};switch(ue(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return o=e,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return e}}var fe,pe,de=n((function(e){return null!=e&&"function"==typeof e.clone?e.clone():le(e,[],[],!0)})),he=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)},me=n((function(e){return!!he(e)||!!e&&"object"==typeof e&&(t=e,!("[object String]"===Object.prototype.toString.call(t)))&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1));var t})),ye=function(){var e=function(e){this.f=e};return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}(),ve=r((function(e,t){return function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,u){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,u,c){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,u,c,s){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,u,c,s,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(e.length,(function(){return e.apply(t,arguments)}))})),ge=ve,be="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",we=l((function(e,t,n){if("function"==typeof e&&(e=new ye(e)),me(n))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return p(e,t,n,"fantasy-land/reduce");if(null!=n[be])return f(e,t,n[be]());if("function"==typeof n.next)return f(e,t,n);if("function"==typeof n.reduce)return p(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")})),_e=l((function(e,t,n){var r,o={};for(r in t)c(r,t)&&(o[r]=c(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)c(r,n)&&!c(r,o)&&(o[r]=n[r]);return o})),xe=l((function e(t,n,r){return _e((function(n,r,o){return d(r)&&d(o)?e(t,r,o):t(n,r,o)}),n,r)})),Se=r((function(e,t){return xe((function(e,t,n){return n}),e,t)}));(pe=fe||(fe={})).Array="Array",pe.Boolean="Boolean",pe.ConceptUuid="ConceptUuid",pe.Number="Number",pe.Object="Object",pe.String="String",pe.UUID="UUID",pe.PersonAttributeTypeUuid="PersonAttributeTypeUuid",pe.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid";var Ee=h((function(e){return Array.isArray(e)}),"must be an array"),$e=h((function(e){return"boolean"==typeof e}),"must be a boolean"),Oe=h((function(e){return"number"==typeof e}),"must be a number"),ke=h((function(e){return"string"==typeof e}),"must be a string"),je=h((function(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}),"must be an object (not an array or null)"),Pe=h((function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e)}),"must be a valid UUID or a 36-character hexadecimal string"),Te=i(685),Ae={providedConfigs:[],schemas:{},devDefaultsAreOn:m()},Ce=(0,Te.createGlobalStore)("config-internal",Ae),Ie=m();Ce.subscribe((function(e){var t;e.devDefaultsAreOn!=Ie&&(t=e.devDefaultsAreOn,localStorage.setItem("openmrs:configAreDevDefaultsOn",JSON.stringify(t)),Ie=e.devDefaultsAreOn)}));var Re=(0,Te.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});Re.subscribe((function(e){var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))}));var Ne=(0,Te.createGlobalStore)("config-store-of-extension-state",{mountedExtensions:[]}),De=(0,Te.createGlobalStore)("config-implementer-tools",{config:{}});function Me(e){return e.hasOwnProperty("_default")?$({},e,{_value:e._default,_source:"default"}):Z(e)?Object.keys(e).reduce((function(t,n){return t[n]=Me(e[n]),t}),{}):{}}function Le(e,t){return Z(e)?Object.keys(e).reduce((function(n,r){return n[r]=Le(e[r],t),n}),{}):{_value:e,_source:t}}function Ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="Please verify that you are running the latest version and, if so, alert the maintainer.",o=!0,i=!1,a=void 0;try{for(var u,c=function(o,i){var a=i.value,u=n+(n&&".")+a,c=t[a];if(!Z(c))return console.error("".concat(e," has bad config schema definition for key '").concat(u,"'. ").concat(r)),"continue";c.hasOwnProperty("_default")||Ue(e,c,u);var s=c._elements;if(H(s)&&Ue(e,s,u+"._elements"),c._validators){var l=!0,f=!1,p=void 0;try{for(var d,h=c._validators[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var m=d.value;"function"!=typeof m&&console.error("".concat(e," has invalid validator for key '").concat(u,"' ").concat(r,".")+"\n\nIf you're the maintainer: validators must be functions that return either "+"undefined or an error string. Received ".concat(m,"."))}}catch(e){f=!0,p=e}finally{try{l||null==h.return||h.return()}finally{if(f)throw p}}}var y=c._type;y&&!Object.values(fe).includes(y)&&console.error("".concat(e," has invalid type for key '").concat(u,"' ").concat(r,".")+"\n\nIf you're the maintainer: the allowed types are ".concat(Object.values(fe).join(", "),". ")+"Received '".concat(y,"'")),Object.keys(c).every((function(e){return["_description","_validators","_elements","_type"].includes(e)}))&&!n.includes("._elements")&&console.error("".concat(e," has bad config schema definition for key '").concat(u,"'. ").concat(r,".")+"\n\nIf you're the maintainer: all config elements must have a default. "+"Received ".concat(JSON.stringify(c))),s&&y&&![fe.Array,fe.Object].includes(y)&&console.error("".concat(e," has bad config schema definition for key '").concat(u,"'. ").concat(r,".")+"\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. "+"Received ".concat(JSON.stringify(y)))},s=Object.keys(t).filter((function(e){return!e.startsWith("_")}))[Symbol.iterator]();!(o=(u=s.next()).done);o=!0)c(s,u)}catch(e){i=!0,a=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}}function ze(e,t,n){q(n,e._type,t),Z(t)?e._type===fe.Object?function(e,t,n){if(e._elements){var r=!0,o=!1,i=void 0;try{for(var a,u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value,s=t[c];W(e._elements,s,"".concat(n,".").concat(c))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}}(e,t,n):e.hasOwnProperty("_default")||W(e,t,n):e._type===fe.Array&&function(e,t,n){if(H(e._elements))for(var r=0;r<t.length;r++)ze(e._elements,t[r],"".concat(n,"[").concat(r,"]"));for(var o=0;o<t.length;o++){var i;q("".concat(n,"[").concat(o,"]"),null===(i=e._elements)||void 0===i?void 0:i._type,t[o])}}(e,t,n)}function Fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(e)if(t!==e._default&&K(n,e._validators,t),Z(t)){var r=!0,o=!1,i=void 0;try{for(var a,u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value,s=t[c],l=n+"."+c,f=e[c];e._type===fe.Object&&e._elements?Fe(e._elements,s,l):Fe(f,s,l)}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}else if(Array.isArray(t)&&e._elements)for(var p=0;p<t.length;p++)Fe(e._elements,t[p],"".concat(n,"[").concat(p,"]"))}P(Ce.getState(),Re.getState()),Ce.subscribe((function(e){return P(e,Re.getState())})),Re.subscribe((function(e){return P(Ce.getState(),e)})),A(Ce.getState(),Re.getState()),Ce.subscribe((function(e){return A(e,Re.getState())})),Re.subscribe((function(e){return A(Ce.getState(),e)})),T(Ce.getState(),Re.getState()),Ce.subscribe((function(e){return T(e,Re.getState())})),Re.subscribe((function(e){return T(Ce.getState(),e)})),C(Ce.getState(),Ne.getState(),Re.getState()),Ce.subscribe((function(e){C(e,Ne.getState(),Re.getState())})),Ne.subscribe((function(e){C(Ce.getState(),e,Re.getState())})),Re.subscribe((function(e){C(Ce.getState(),Ne.getState(),e)}));var Be=function(e,t,n){var r=de(t);if(!e)return r;var o=!0,i=!1,a=void 0;try{for(var u,c=function(t,o){var i=o.value,a=r[i],u=e[i];if(u&&u.hasOwnProperty("_default")){if(!r.hasOwnProperty(i)){var c=u._devDefault||u._default;r[i]=n?c:u._default}var s=u._elements;if(a&&H(s))if(u._type===fe.Array&&Array.isArray(a)){var l=a.map((function(e){return Be(s,e,n)}));r[i]=l}else if(u._type===fe.Object){var f=!0,p=!1,d=void 0;try{for(var h,m=Object.keys(a)[Symbol.iterator]();!(f=(h=m.next()).done);f=!0){var y=h.value;a[y]=Be(s,a[y],n)}}catch(e){p=!0,d=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw d}}}}else if(Z(u)){var v=r.hasOwnProperty(i)?a:{};Z(v)&&(r[i]=Be(u,v,n))}},s=Object.keys(e)[Symbol.iterator]();!(o=(u=s.next()).done);o=!0)c(0,u)}catch(e){i=!0,a=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}return r},Ve=i(645),We=function(e,t){return h((function(n){return e<=n&&n<=t}),"must be between ".concat(e," and ").concat(t))},qe=function(e){var t=e.concat(["openmrsBase","openmrsSpaBase"]);return h((function(e){if(!e||"string"!=typeof e)return!1;for(var n=/\${(.*?)}/g,r=n.exec(e);r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0}),"Should be a URL or path. The allowed template parameters are "+t.map((function(e){return"${"+e+"}"})).join(", "))},Ke=qe([]),He=function(e){return h((function(t){return e.includes(t)}),"Must be one of the following: '".concat(e.join("', '"),"'."))},Ze={inRange:We,isUrl:Ke,isUrlWithTemplateParameters:qe,oneOf:He}}(),a}())}}}))},3373:(e,t,n)=>{"use strict";n.d(t,{JU:()=>o.ConfigStore,Dy:()=>r,SH:()=>Ee,Tj:()=>$e,iE:()=>ke,pR:()=>le,Z2:()=>l,IT:()=>a,ll:()=>i,CB:()=>p,gZ:()=>f,c4:()=>c,kw:()=>d,JJ:()=>Oe,sC:()=>s,z2:()=>h});var r,o={};function i(e){var t=window.getOpenmrsSpaBase().replace(/\/$/,"");return a(e,{openmrsBase:window.openmrsBase,openmrsSpaBase:t}).replace(/^\/\//,"/")}function a(e,t){return Object.keys(t).reduce((function(e,n){return e.split("${"+n+"}").join(t[n])}),e)}n.r(o),n.d(o,{R2:()=>se,hv:()=>ie,pR:()=>le,Gr:()=>fe,_z:()=>pe,HN:()=>de,DK:()=>ce}),function(e){e.Array="Array",e.Boolean="Boolean",e.ConceptUuid="ConceptUuid",e.Number="Number",e.Object="Object",e.String="String",e.UUID="UUID",e.PersonAttributeTypeUuid="PersonAttributeTypeUuid",e.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid"}(r||(r={}));var u=n(3710);function c(e){var t=e.to,n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=i(t);r.startsWith(n)?(0,u.UO)(r):window.location.assign(r)}function s(e,t){return function(n){if(!e(n))return"function"==typeof t?t(n):t}}var l=function(e,t){return s((function(n){return e<=n&&n<=t}),"must be between ".concat(e," and ").concat(t))},f=function(e){var t=e.concat(["openmrsBase","openmrsSpaBase"]);return s((function(e){if(!e||"string"!=typeof e)return!1;for(var n=/\${(.*?)}/g,r=n.exec(e);r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0}),"Should be a URL or path. The allowed template parameters are "+t.map((function(e){return"${"+e+"}"})).join(", "))},p=f([]),d=function(e){return s((function(t){return e.includes(t)}),"Must be one of the following: '".concat(e.join("', '"),"'."))},h={inRange:l,isUrl:p,isUrlWithTemplateParameters:f,oneOf:d};function m(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function y(e){return function t(n){return 0===arguments.length||m(n)?t:e.apply(this,arguments)}}function v(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return m(n)?t:y((function(t){return e(n,t)}));default:return m(n)&&m(r)?t:m(n)?y((function(t){return e(t,r)})):m(r)?y((function(t){return e(n,t)})):e(n,r)}}}function g(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function b(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1}function w(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const _="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var x=Object.prototype.toString,S=function(){return"[object Arguments]"===x.call(arguments)?function(e){return"[object Arguments]"===x.call(e)}:function(e){return w("callee",e)}}();const E=S;var $=!{toString:null}.propertyIsEnumerable("toString"),O=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),j=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1};const P="function"!=typeof Object.keys||k?y((function(e){if(Object(e)!==e)return[];var t,n,r=[],o=k&&E(e);for(t in e)!w(t,e)||o&&"length"===t||(r[r.length]=t);if($)for(n=O.length-1;n>=0;)w(t=O[n],e)&&!j(r,t)&&(r[r.length]=t),n-=1;return r})):y((function(e){return Object(e)!==e?[]:Object.keys(e)})),T=y((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function A(e,t,n,r){var o=g(e);function i(e,t){return C(e,t,n.slice(),r.slice())}return!b((function(e,t){return!b(i,t,e)}),g(t),o)}function C(e,t,n,r){if(_(e,t))return!0;var o,i,a=T(e);if(a!==T(t))return!1;if(null==e||null==t)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(o=e.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!_(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!_(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var u=n.length-1;u>=0;){if(n[u]===e)return r[u]===t;u-=1}switch(a){case"Map":return e.size===t.size&&A(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&A(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=P(e);if(c.length!==P(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(u=c.length-1;u>=0;){var f=c[u];if(!w(f,t)||!C(t[f],e[f],s,l))return!1;u-=1}return!0}const I=v((function(e,t){return C(e,t,[],[])}));function R(e,t,n,r){var o,i=function(o){for(var i=t.length,a=0;a<i;){if(e===t[a])return n[a];a+=1}for(var u in t[a+1]=e,n[a+1]=o,e)o[u]=r?R(e[u],t,n,!0):e[u];return o};switch(T(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return o=e,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return e}}const N=y((function(e){return null!=e&&"function"==typeof e.clone?e.clone():R(e,[],[],!0)}));function D(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return m(n)?t:v((function(t,r){return e(n,t,r)}));case 2:return m(n)&&m(r)?t:m(n)?v((function(t,n){return e(t,r,n)})):m(r)?v((function(t,r){return e(n,t,r)})):y((function(t){return e(n,r,t)}));default:return m(n)&&m(r)&&m(o)?t:m(n)&&m(r)?v((function(t,n){return e(t,n,o)})):m(n)&&m(o)?v((function(t,n){return e(t,r,n)})):m(r)&&m(o)?v((function(t,r){return e(n,t,r)})):m(n)?y((function(t){return e(t,r,o)})):m(r)?y((function(t){return e(n,t,o)})):m(o)?y((function(t){return e(n,r,t)})):e(n,r,o)}}}const M=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)},L=y((function(e){return!!M(e)||!!e&&"object"==typeof e&&!function(e){return"[object String]"===Object.prototype.toString.call(e)}(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));var U=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}(),z=v((function(e,t){return function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,u){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,u,c){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,u,c,s){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,u,c,s,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(e.length,(function(){return e.apply(t,arguments)}))}));const F=z;function B(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function V(e,t,n,r){return e["@@transducer/result"](n[r](F(e["@@transducer/step"],e),t))}var W="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function q(e,t,n){if("function"==typeof e&&(e=function(e){return new U(e)}(e)),L(n))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return V(e,t,n,"fantasy-land/reduce");if(null!=n[W])return B(e,t,n[W]());if("function"==typeof n.next)return B(e,t,n);if("function"==typeof n.reduce)return V(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}const K=D(q);function H(e){return"[object Object]"===Object.prototype.toString.call(e)}const Z=D((function(e,t,n){var r,o={};for(r in t)w(r,t)&&(o[r]=w(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)w(r,n)&&!w(r,o)&&(o[r]=n[r]);return o})),G=D((function e(t,n,r){return Z((function(n,r,o){return H(r)&&H(o)?e(t,r,o):t(n,r,o)}),n,r)})),Q=v((function(e,t){return G((function(e,t,n){return n}),e,t)}));var Y=s((function(e){return Array.isArray(e)}),"must be an array"),J=s((function(e){return"boolean"==typeof e}),"must be a boolean"),X=s((function(e){return"number"==typeof e}),"must be a number"),ee=s((function(e){return"string"==typeof e}),"must be a string"),te=s((function(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}),"must be an object (not an array or null)"),ne=s((function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e)}),"must be a valid UUID or a 36-character hexadecimal string"),re=n(5385),oe={providedConfigs:[],schemas:{},devDefaultsAreOn:ue()},ie=(0,re.createGlobalStore)("config-internal",oe),ae=ue();function ue(){try{return JSON.parse(localStorage.getItem("openmrs:configAreDevDefaultsOn")||"false")}catch(e){return!1}}ie.subscribe((function(e){var t;e.devDefaultsAreOn!=ae&&(t=e.devDefaultsAreOn,localStorage.setItem("openmrs:configAreDevDefaultsOn",JSON.stringify(t)),ae=e.devDefaultsAreOn)}));var ce=(0,re.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});ce.subscribe((function(e){var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))}));var se=(0,re.createGlobalStore)("config-store-of-extension-state",{mountedExtensions:[]});function le(e){return(0,re.getGlobalStore)("config-module-".concat(e),{config:null,loaded:!1})}function fe(){return(0,re.getGlobalStore)("config-extension-slots",{slots:{}})}function pe(){return(0,re.getGlobalStore)("config-extensions",{configs:{}})}var de=(0,re.createGlobalStore)("config-implementer-tools",{config:{}});function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){me(e,t,n[t])}))}return e}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||be(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||be(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(e,t){if(e){if("string"==typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}function we(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(e.schemas)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=i.value,c=Re(u,e,t);le(u).setState({loaded:!0,config:c})}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}}function _e(e,t){var n,r,o=(n=De(Ce(e,t)),function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=Object.entries(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=ve(o.value,2),u=a[0],c=a[1],s=!0,l=!1,f=void 0;try{for(var p,d=Object.entries(c)[Symbol.iterator]();!(s=(p=d.next()).done);s=!0){var h=ve(p.value,2),m=h[0];Ae(h[1],u,m)}}catch(e){l=!0,f=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw f}}}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}(r=Object.keys(n).reduce((function(e,t){var r,o;return(null===(r=n[t])||void 0===r?void 0:r.extensionSlots)&&(e[t]=null===(o=n[t])||void 0===o?void 0:o.extensionSlots),e}),{})),Object.keys(r).reduce((function(e,t){return ye({},e,r[t])}),{})),i=Object.fromEntries(Object.entries(o).map((function(e){var t=ve(e,2);return[t[0],{loaded:!0,config:t[1]}]}))),a=fe(),u=a.getState(),c={slots:ye({},u.slots,i)};I(u,c)||a.setState(c)}function xe(e,t){var n=function(e,t){var n=Pe(N(e.schemas)),r=ge(e.providedConfigs.map((function(e){return[e.config,e.source]}))).concat([[t.config,"temporary config"]]),o=!0,i=!1,a=void 0;try{for(var u,c=r[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=ve(u.value,2);n=De([n,Te(s[0],s[1])])}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t);de.setState({config:n})}function Se(e,t,n){var r={},o=!0,i=!1,a=void 0;try{for(var u,c=t.mountedExtensions[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=u.value,l=je(s.slotModuleName,s.extensionModuleName,s.slotName,s.extensionId,e,n);r[s.slotName]=ye({},r[s.slotName],me({},s.extensionId,{config:l,loaded:!0}))}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}pe().setState({configs:r})}function Ee(e,t){Ie(e,t);var n=ie.getState();ie.setState({schemas:ye({},n.schemas,me({},e,t))})}function $e(e,t){Ie(e,t);var n=ie.getState();n.schemas[e]&&console.warn("Config schema for extension ".concat(e," already exists. If there are multiple extensions with this same name, one will probably crash.")),ie.setState({schemas:ye({},n.schemas,me({},e,t))})}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided",n=ie.getState();ie.setState({providedConfigs:ge(n.providedConfigs).concat([{source:t,config:e}])})}function ke(e){return new Promise((function(t){var n=function(e){e.loaded&&e.config&&(t(e.config),o&&o())},r=le(e);n(r.getState());var o=r.subscribe(n)}))}function je(e,t,n,r,o,i){var a,u,c,s,l=function(e){return ve(e.split("#"),1)[0]}(r),f=o.schemas[l],p=f?l:t,d=Ce(o,i),h=Ne(e,d),m=null!==(s=null==h||null===(a=h.extensionSlots)||void 0===a||null===(u=a[n])||void 0===u||null===(c=u.configure)||void 0===c?void 0:c[r])&&void 0!==s?s:{},y=De([Ne(p,d),m]),v=null!=f?f:o.schemas[t];Me(v,y,p);var g=Be(v,y,o.devDefaultsAreOn);return Ue(v,g,p),delete g.extensionSlots,g}function Pe(e){return e.hasOwnProperty("_default")?ye({},e,{_value:e._default,_source:"default"}):We(e)?Object.keys(e).reduce((function(t,n){return t[n]=Pe(e[n]),t}),{}):{}}function Te(e,t){return We(e)?Object.keys(e).reduce((function(n,r){return n[r]=Te(e[r],t),n}),{}):{_value:e,_source:t}}function Ae(e,t,n){var r="Extension slot config '".concat(t,".extensionSlots.").concat(n),o=Object.keys(e).filter((function(e){return!["add","remove","order","configure"].includes(e)}));o.length&&console.error(r+"' contains invalid keys '".concat(o.join("', '"),"'")),e.add&&(Array.isArray(e.add)&&e.add.every((function(e){return"string"==typeof e}))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),e.remove&&(Array.isArray(e.remove)&&e.remove.every((function(e){return"string"==typeof e}))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),e.order&&(Array.isArray(e.order)&&e.order.every((function(e){return"string"==typeof e}))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),e.configure&&(We(e.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))}function Ce(e,t){return ge(e.providedConfigs.map((function(e){return e.config}))).concat([t.config])}function Ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="Please verify that you are running the latest version and, if so, alert the maintainer.",i=!0,a=!1,u=void 0;try{for(var c,s=function(i,a){var u=a.value,c=n+(n&&".")+u,s=t[u];if(!We(s))return console.error("".concat(e," has bad config schema definition for key '").concat(c,"'. ").concat(o)),"continue";s.hasOwnProperty("_default")||Ie(e,s,c);var l=s._elements;if(Ve(l)&&Ie(e,l,c+"._elements"),s._validators){var f=!0,p=!1,d=void 0;try{for(var h,m=s._validators[Symbol.iterator]();!(f=(h=m.next()).done);f=!0){var y=h.value;"function"!=typeof y&&console.error("".concat(e," has invalid validator for key '").concat(c,"' ").concat(o,".")+"\n\nIf you're the maintainer: validators must be functions that return either "+"undefined or an error string. Received ".concat(y,"."))}}catch(e){p=!0,d=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw d}}}var v=s._type;v&&!Object.values(r).includes(v)&&console.error("".concat(e," has invalid type for key '").concat(c,"' ").concat(o,".")+"\n\nIf you're the maintainer: the allowed types are ".concat(Object.values(r).join(", "),". ")+"Received '".concat(v,"'")),Object.keys(s).every((function(e){return["_description","_validators","_elements","_type"].includes(e)}))&&!n.includes("._elements")&&console.error("".concat(e," has bad config schema definition for key '").concat(c,"'. ").concat(o,".")+"\n\nIf you're the maintainer: all config elements must have a default. "+"Received ".concat(JSON.stringify(s))),l&&v&&![r.Array,r.Object].includes(v)&&console.error("".concat(e," has bad config schema definition for key '").concat(c,"'. ").concat(o,".")+"\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. "+"Received ".concat(JSON.stringify(v)))},l=Object.keys(t).filter((function(e){return!e.startsWith("_")}))[Symbol.iterator]();!(i=(c=l.next()).done);i=!0)s(l,c)}catch(e){a=!0,u=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw u}}}function Re(e,t,n){if(!t.schemas.hasOwnProperty(e))throw Error("No config schema has been defined for "+e);var r=t.schemas[e],o=Ne(e,Ce(t,n));Me(r,o,e);var i=Be(r,o,t.devDefaultsAreOn);return Ue(r,i,e),delete i.extensionSlots,i}function Ne(e,t){return De(t.map((function(t){return t[e]})).filter((function(e){return!!e})))}function De(e){return K(Q)({},e)}function Me(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,o=!1,i=void 0;try{for(var a,u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value,s=t[c],l=n+"."+c,f=e[c];e.hasOwnProperty(c)?Le(f,s,l):"extensionSlots"===c&&""!==n||console.error("Unknown config key '".concat(l,"' provided. Ignoring."))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}function Le(e,t,n){ze(n,e._type,t),We(t)?e._type===r.Object?function(e,t,n){if(e._elements){var r=!0,o=!1,i=void 0;try{for(var a,u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value,s=t[c];Me(e._elements,s,"".concat(n,".").concat(c))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}}(e,t,n):e.hasOwnProperty("_default")||Me(e,t,n):e._type===r.Array&&function(e,t,n){if(Ve(e._elements))for(var r=0;r<t.length;r++)Le(e._elements,t[r],"".concat(n,"[").concat(r,"]"));for(var o=0;o<t.length;o++){var i;ze("".concat(n,"[").concat(o,"]"),null===(i=e._elements)||void 0===i?void 0:i._type,t[o])}}(e,t,n)}function Ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(e)if(t!==e._default&&Fe(n,e._validators,t),We(t)){var o=!0,i=!1,a=void 0;try{for(var u,c=Object.keys(t)[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=u.value,l=t[s],f=n+"."+s,p=e[s];e._type===r.Object&&e._elements?Ue(e._elements,l,f):Ue(p,l,f)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}}else if(Array.isArray(t)&&e._elements)for(var d=0;d<t.length;d++)Ue(e._elements,t[d],"".concat(n,"[").concat(d,"]"))}function ze(e,t,n){t&&Fe(e,[{Array:Y,Boolean:J,ConceptUuid:ne,Number:X,Object:te,String:ee,UUID:ne,PersonAttributeTypeUuid:ne,PatientIdentifierTypeUuid:ne}[t]],n)}function Fe(e,t,n){if(t)try{var r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=(0,a.value)(n);"string"==typeof c&&("object"==typeof n?console.error("Invalid configuration for ".concat(e,": ").concat(c)):console.error("Invalid configuration value ".concat(n," for ").concat(e,": ").concat(c)))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}catch(t){console.error('Skipping invalid validator at "'.concat(e,'". Encountered error\n\t').concat(t))}}we(ie.getState(),ce.getState()),ie.subscribe((function(e){return we(e,ce.getState())})),ce.subscribe((function(e){return we(ie.getState(),e)})),xe(ie.getState(),ce.getState()),ie.subscribe((function(e){return xe(e,ce.getState())})),ce.subscribe((function(e){return xe(ie.getState(),e)})),_e(ie.getState(),ce.getState()),ie.subscribe((function(e){return _e(e,ce.getState())})),ce.subscribe((function(e){return _e(ie.getState(),e)})),Se(ie.getState(),se.getState(),ce.getState()),ie.subscribe((function(e){Se(e,se.getState(),ce.getState())})),se.subscribe((function(e){Se(ie.getState(),e,ce.getState())})),ce.subscribe((function(e){Se(ie.getState(),se.getState(),e)}));var Be=function(e,t,n){var o=N(t);if(!e)return o;var i=!0,a=!1,u=void 0;try{for(var c,s=function(t,i){var a=i.value,u=o[a],c=e[a];if(c&&c.hasOwnProperty("_default")){if(!o.hasOwnProperty(a)){var s=c._devDefault||c._default;o[a]=n?s:c._default}var l=c._elements;if(u&&Ve(l))if(c._type===r.Array&&Array.isArray(u)){var f=u.map((function(e){return Be(l,e,n)}));o[a]=f}else if(c._type===r.Object){var p=!0,d=!1,h=void 0;try{for(var m,y=Object.keys(u)[Symbol.iterator]();!(p=(m=y.next()).done);p=!0){var v=m.value;u[v]=Be(l,u[v],n)}}catch(e){d=!0,h=e}finally{try{p||null==y.return||y.return()}finally{if(d)throw h}}}}else if(We(c)){var g=o.hasOwnProperty(a)?u:{};We(g)&&(o[a]=Be(c,g,n))}},l=Object.keys(e)[Symbol.iterator]();!(i=(c=l.next()).done);i=!0)s(0,c)}catch(e){a=!0,u=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw u}}return o};function Ve(e){return!!e&&Object.keys(e).filter((function(e){return!["_default","_validators"].includes(e)})).length>0}function We(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}},674:()=>{System.register(["@openmrs/esm-globals"],(function(e,t){var n={};return{setters:[function(e){n.dispatchNotificationShown=e.dispatchNotificationShown}],execute:function(){e(function(){var e={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},728:function(e){"use strict";e.exports=n}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.y=t,o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e}();var i={};return(0,o(968).s)(1),function(){"use strict";var e=function(e){var t=n(e);setTimeout((function(){throw t}))},t=function(){var t=Error();return function(r){n(r).stack+="\nAsync stacktrace:\n".concat(t.stack),e(r)}},n=function(e){var t,n,r,o,i;if(n=e,null!=(r=Error)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):(o=n,null!=(i=r)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](o):o instanceof i))return e;if(null===e)return Error("'null' was thrown as an error");if("object"==typeof e){try{t="Object thrown as error: ".concat(JSON.stringify(e))}catch(n){t="Object thrown as error with the following properties: ".concat(Object.keys(e))}return Error(t)}return void 0===e?Error("'undefined' was thrown as an error"):Error(e.toString())};o.r(i),o.d(i,{createErrorHandler:function(){return t},reportError:function(){return e}});var r=o(728);window.onerror=function(){return(0,r.dispatchNotificationShown)({description:"Oops! An unexpected error occurred."}),!1},window.onunhandledrejection=function(){(0,r.dispatchNotificationShown)({description:"Oops! An unexpected error occurred."})}}(),i}())}}}))},225:(e,t,n)=>{function r(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}e=n.nmd(e);var o=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};System.register(["@openmrs/esm-config","@openmrs/esm-state","single-spa"],(function(i,a){var u={},c={},s={};return{setters:[function(e){u.configExtensionStore=e.configExtensionStore,u.getExtensionConfigFromStore=e.getExtensionConfigFromStore,u.getExtensionSlotConfig=e.getExtensionSlotConfig,u.getExtensionSlotConfigFromStore=e.getExtensionSlotConfigFromStore,u.getExtensionSlotsConfigStore=e.getExtensionSlotsConfigStore,u.getExtensionsConfigStore=e.getExtensionsConfigStore},function(e){c.createGlobalStore=e.createGlobalStore,c.getGlobalStore=e.getGlobalStore},function(e){s.mountRootParcel=e.mountRootParcel}],execute:function(){i(function(){var i={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},824:function(e){"use strict";e.exports=u},685:function(e){"use strict";e.exports=c},645:function(e){"use strict";e.exports=s}},l={};function f(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return i[e](n,n.exports,f),n.exports}f.y=a,f.d=function(e,t){for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;f.g.importScripts&&(e=f.g.location+"");var t=f.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),f.p=e}();var p={};return(0,f(968).s)(1),function(){"use strict";var i=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},a=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},u=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},c=function(e){var t=this.__data__=new q(e);this.size=t.size},s=function(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new xe;++t<n;)this.add(e[t])},l=function(e){var t=Nt.getState(),n=e(t);n!==t&&Nt.setState(n)},d=function(e){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=Object.values(e.extensions)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=i.value,c=!0,s=!1,l=void 0;try{for(var f,p=u.instances[Symbol.iterator]();!(c=(f=p.next()).done);c=!0){var d=f.value;t.push({slotModuleName:d.slotModuleName,extensionModuleName:u.moduleName,slotName:d.slotName,extensionId:d.id})}}catch(e){s=!0,l=e}finally{try{c||null==p.return||p.return()}finally{if(s)throw l}}}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}Ct(It.configExtensionStore.getState().mountedExtensions,t)||It.configExtensionStore.setState({mountedExtensions:t})},h=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},m=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},y=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){m(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},v=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},g=function(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},b=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}},w=function(e,t,n){var r={},o=!0,i=!1,a=void 0;try{for(var u,c=Object.entries(e.slots)[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=v(u.value,2),l=s[0],f=s[1],p=T(l,e,(0,It.getExtensionSlotConfigFromStore)(t,f.name).config,n);r[l]={moduleName:f.moduleName,assignedExtensions:p}}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}Ct(Ut.getState().slots,r)||Ut.setState({slots:r})},_=function(e,t){return{moduleName:t,name:e,attachedIds:[],config:null}},x=function(e){return v(e.split("#"),1)[0]},S=function(e,t){var n=x(t);return e.extensions[n]},E=function(e){return S(Lt.getState(),e)},$=function(e,t){l((function(n){var r=n.slots[e];return y({},n,r?{slots:y({},n.slots,m({},e,y({},r,{attachedIds:g(r.attachedIds).concat([t])})))}:{slots:y({},n.slots,m({},e,y({},_(e),{attachedIds:[t]})))})}))},O=function(e,t){l((function(n){var r=n.slots[e];return r&&r.attachedIds.includes(t)?y({},n,{slots:y({},n.slots,m({},e,y({},r,{attachedIds:r.attachedIds.filter((function(e){return e!==t}))})))}):n}))},k=function(e){l((function(t){var n=t.slots[e];return n?y({},t,{slots:y({},t.slots,m({},e,y({},n,{attachedIds:[]})))}):t}))},j=function(e,t,n,r){var o=t.indexOf(e);if(-1!==o)return o;if(void 0!==n)return 1e3+n;var i=r.indexOf(e);return-1!==i?2e3+i:-1},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null!=t?t:navigator.onLine;return e.filter((function(e){return I(n,e.online,e.offline)}))},T=function(e,t,n,r){var o,i,a,u,c,s,l=(o=n,i=t.slots[e].attachedIds,a=o.add||[],u=o.remove||[],c=o.order||[],s=Lt.getState().extensions,g(i).concat(g(a)).filter((function(e){return!u.includes(e)})).sort((function(e,t){var n,r,o=j(e,c,null===(n=s[x(e)])||void 0===n?void 0:n.order,i),a=j(t,c,null===(r=s[x(t)])||void 0===r?void 0:r.order,i);return-1===a?-1:-1===o?1:o-a}))),f=[],p=!0,d=!1,h=void 0;try{for(var m,y=l[Symbol.iterator]();!(p=(m=y.next()).done);p=!0){var v=m.value,b=(0,It.getExtensionConfigFromStore)(r,e,v).config,w=x(v),_=t.extensions[w];_&&f.push({id:v,name:w,moduleName:_.moduleName,config:b,meta:_.meta,online:_.online,offline:_.offline})}}catch(e){d=!0,h=e}finally{try{p||null==y.return||y.return()}finally{if(d)throw h}}return f},A=function(e){return T(e,Lt.getState(),(0,It.getExtensionSlotConfig)(e).config,Ft.getState())},C=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=navigator.onLine;return I(n,e,t)},I=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Boolean(e?t:n)},R=function(e,t){var n=navigator.onLine?e:t;return"object"==typeof n?n:{}},N=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},D=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},M=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){D(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},L=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},U=function(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},z=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=x(r),u=E(r),c=!0,s=null;if(e){if(!u)throw Error("Couldn't find extension '".concat(a,"' to attach to '").concat(t,"'"));var f=u.load,p=u.online,d=u.offline,h=u.meta,m=u.moduleName;C(p,d)&&(f().then((function(a){var u=a.default,l=L(a,["default"]);c&&(s=(0,qt.mountRootParcel)(o(null!=u?u:l),M({},R(p,d),i,{_meta:h,_extensionContext:{extensionId:r,extensionSlotName:t,extensionSlotModuleName:n,extensionModuleName:m},domElement:e})))})),l((function(o){var i={domElement:e,id:r,slotName:t,slotModuleName:n};return M({},o,{extensions:M({},o.extensions,D({},a,M({},o.extensions[a],{instances:U(o.extensions[a].instances).concat([i])})))})})))}else console.warn("Tried to render ".concat(r," into ").concat(t," but no DOM element was available."));return function(){c=!1,s&&("MOUNTED"!==s.getStatus()?s.mountPromise.then((function(){s&&s.unmount()})):s.unmount())}};f.r(p),f.d(p,{attach:function(){return $},checkStatus:function(){return C},checkStatusFor:function(){return I},detach:function(){return O},detachAll:function(){return k},extensionStore:function(){return Kt},getAssignedExtensions:function(){return A},getConnectedExtensions:function(){return P},getCustomProps:function(){return R},getExtensionInternalStore:function(){return Dt},getExtensionNameFromId:function(){return x},getExtensionRegistration:function(){return E},getExtensionRegistrationFrom:function(){return S},getExtensionStore:function(){return Mt},registerExtension:function(){return Bt},registerExtensionSlot:function(){return Vt},renderExtension:function(){return z},reset:function(){return Wt},updateInternalExtensionStore:function(){return l}});var F=function(e,t){return e===t||e!=e&&t!=t},B=function(e,t){for(var n=e.length;n--;)if(F(e[n][0],t))return n;return-1},V=Array.prototype.splice;i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(e){var t=this.__data__,n=B(t,e);return!(n<0||(n==t.length-1?t.pop():V.call(t,n,1),--this.size,0))},i.prototype.get=function(e){var t=this.__data__,n=B(t,e);return n<0?void 0:t[n][1]},i.prototype.has=function(e){return B(this.__data__,e)>-1},i.prototype.set=function(e,t){var n=this.__data__,r=B(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var W,q=i,K="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,H="object"==typeof self&&self&&self.Object===Object&&self,Z=K||H||Function("return this")(),G=Z.Symbol,Q=Object.prototype,Y=Q.hasOwnProperty,J=Q.toString,X=G?G.toStringTag:void 0,ee=Object.prototype.toString,te=G?G.toStringTag:void 0,ne=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":te&&te in Object(e)?function(e){var t=Y.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=J.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):(t=e,ee.call(t));var t},re=function(e){var t=void 0===e?"undefined":o(e);return null!=e&&("object"==t||"function"==t)},oe=function(e){if(!re(e))return!1;var t=ne(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ie=Z["__core-js_shared__"],ae=(W=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",ue=Function.prototype.toString,ce=function(e){if(null!=e){try{return ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""},se=/^\[object .+?Constructor\]$/,le=Function.prototype,fe=Object.prototype,pe=le.toString,de=fe.hasOwnProperty,he=RegExp("^"+pe.call(de).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=function(e,t){var n,r=null==(n=e)?void 0:n[t];return function(e){return!(!re(e)||(t=e,ae&&ae in t))&&(oe(e)?he:se).test(ce(e));var t}(r)?r:void 0},ye=me(Z,"Map"),ve=me(Object,"create"),ge=Object.prototype.hasOwnProperty,be=Object.prototype.hasOwnProperty;a.prototype.clear=function(){this.__data__=ve?ve(null):{},this.size=0},a.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},a.prototype.get=function(e){var t=this.__data__;if(ve){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ge.call(t,e)?t[e]:void 0},a.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:be.call(t,e)},a.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ve&&void 0===t?"__lodash_hash_undefined__":t,this};var we=a,_e=function(e,t){var n,r,i=e.__data__;return("string"==(r=o(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};u.prototype.clear=function(){this.size=0,this.__data__={hash:new we,map:new(ye||q),string:new we}},u.prototype.delete=function(e){var t=_e(this,e).delete(e);return this.size-=t?1:0,t},u.prototype.get=function(e){return _e(this,e).get(e)},u.prototype.has=function(e){return _e(this,e).has(e)},u.prototype.set=function(e,t){var n=_e(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var xe=u;c.prototype.clear=function(){this.__data__=new q,this.size=0},c.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},c.prototype.get=function(e){return this.__data__.get(e)},c.prototype.has=function(e){return this.__data__.has(e)},c.prototype.set=function(e,t){var n=this.__data__;if(r(n,q)){var o=n.__data__;if(!ye||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new xe(o)}return n.set(e,t),this.size=n.size,this};var Se=c;s.prototype.add=s.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},s.prototype.has=function(e){return this.__data__.has(e)};var Ee=s,$e=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Oe=function(e,t,n,r,o,i){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(e),l=i.get(t);if(s&&l)return s==t&&l==e;var f=-1,p=!0,d=2&n?new Ee:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],m=t[f];if(r)var y=a?r(m,h,f,t,e,i):r(h,m,f,e,t,i);if(void 0!==y){if(y)continue;p=!1;break}if(d){if(!$e(t,(function(e,t){if(a=t,!d.has(a)&&(h===e||o(h,e,n,r,i)))return d.push(t);var a}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p},ke=Z.Uint8Array,je=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Pe=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Te=G?G.prototype:void 0,Ae=Te?Te.valueOf:void 0,Ce=Array.isArray,Ie=Object.prototype.propertyIsEnumerable,Re=Object.getOwnPropertySymbols,Ne=Re?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Re(e),(function(t){return Ie.call(e,t)})))}:function(){return[]},De=function(e){return null!=e&&"object"==typeof e},Me=function(e){return De(e)&&"[object Arguments]"==ne(e)},Le=Object.prototype,Ue=Le.hasOwnProperty,ze=Le.propertyIsEnumerable,Fe=Me(function(){return arguments}())?Me:function(e){return De(e)&&Ue.call(e,"callee")&&!ze.call(e,"callee")},Be=Fe,Ve=t&&!t.nodeType&&t,We=Ve&&e&&!e.nodeType&&e,qe=We&&We.exports===Ve?Z.Buffer:void 0,Ke=(qe?qe.isBuffer:void 0)||function(){return!1},He=/^(?:0|[1-9]\d*)$/,Ze=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ge={};Ge["[object Float32Array]"]=Ge["[object Float64Array]"]=Ge["[object Int8Array]"]=Ge["[object Int16Array]"]=Ge["[object Int32Array]"]=Ge["[object Uint8Array]"]=Ge["[object Uint8ClampedArray]"]=Ge["[object Uint16Array]"]=Ge["[object Uint32Array]"]=!0,Ge["[object Arguments]"]=Ge["[object Array]"]=Ge["[object ArrayBuffer]"]=Ge["[object Boolean]"]=Ge["[object DataView]"]=Ge["[object Date]"]=Ge["[object Error]"]=Ge["[object Function]"]=Ge["[object Map]"]=Ge["[object Number]"]=Ge["[object Object]"]=Ge["[object RegExp]"]=Ge["[object Set]"]=Ge["[object String]"]=Ge["[object WeakMap]"]=!1;var Qe,Ye,Je,Xe=t&&!t.nodeType&&t,et=Xe&&e&&!e.nodeType&&e,tt=et&&et.exports===Xe&&K.process,nt=function(){try{return et&&et.require&&et.require("util").types||tt&&tt.binding&&tt.binding("util")}catch(e){}}(),rt=nt&&nt.isTypedArray,ot=rt?(Qe=rt,function(e){return Qe(e)}):function(e){return De(e)&&Ze(e.length)&&!!Ge[ne(e)]},it=Object.prototype.hasOwnProperty,at=Object.prototype,ut=(Ye=Object.keys,Je=Object,function(e){return Ye(Je(e))}),ct=Object.prototype.hasOwnProperty,st=function(e){return n=Ne,r=function(e){return null!=(t=e)&&Ze(t.length)&&!oe(t)?function(e,t){var n,r,i,a=Ce(e),u=!a&&Be(e),c=!a&&!u&&Ke(e),s=!a&&!u&&!c&&ot(e),l=a||u||c||s,f=l?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],p=f.length;for(var d in e)!it.call(e,d)||l&&("length"==d||c&&("offset"==d||"parent"==d)||s&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(r=p,i=void 0===(n=d)?"undefined":o(n),(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&He.test(n))&&n>-1&&n%1==0&&n<r))||f.push(d);return f}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||at))return ut(e);var t,n,r=[];for(var o in Object(e))ct.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}(t=e),Ce(t)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(t));var t,n,r},lt=Object.prototype.hasOwnProperty,ft=me(Z,"DataView"),pt=me(Z,"Promise"),dt=me(Z,"Set"),ht=me(Z,"WeakMap"),mt="[object Map]",yt="[object Promise]",vt="[object Set]",gt="[object WeakMap]",bt="[object DataView]",wt=ce(ft),_t=ce(ye),xt=ce(pt),St=ce(dt),Et=ce(ht),$t=ne;(ft&&$t(new ft(new ArrayBuffer(1)))!=bt||ye&&$t(new ye)!=mt||pt&&$t(pt.resolve())!=yt||dt&&$t(new dt)!=vt||ht&&$t(new ht)!=gt)&&($t=function(e){var t=ne(e),n="[object Object]"==t?e.constructor:void 0,r=n?ce(n):"";if(r)switch(r){case wt:return bt;case _t:return mt;case xt:return yt;case St:return vt;case Et:return gt}return t});var Ot=$t,kt="[object Arguments]",jt="[object Array]",Pt="[object Object]",Tt=Object.prototype.hasOwnProperty,At=function e(t,n,o,i,a){return t===n||(null==t||null==n||!De(t)&&!De(n)?t!=t&&n!=n:function(e,t,n,o,i,a){var u=Ce(e),c=Ce(t),s=u?jt:Ot(e),l=c?jt:Ot(t),f=(s=s==kt?Pt:s)==Pt,p=(l=l==kt?Pt:l)==Pt,d=s==l;if(d&&Ke(e)){if(!Ke(t))return!1;u=!0,f=!1}if(d&&!f)return a||(a=new Se),u||ot(e)?Oe(e,t,n,o,i,a):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new ke(e),new ke(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return F(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=je;case"[object Set]":var c=1&r;if(u||(u=Pe),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var l=Oe(u(e),u(t),r,o,i,a);return a.delete(e),l;case"[object Symbol]":if(Ae)return Ae.call(e)==Ae.call(t)}return!1}(e,t,s,n,o,i,a);if(!(1&n)){var h=f&&Tt.call(e,"__wrapped__"),m=p&&Tt.call(t,"__wrapped__");if(h||m){var y=h?e.value():e,v=m?t.value():t;return a||(a=new Se),i(y,v,n,o,a)}}return!!d&&(a||(a=new Se),function(e,t,n,o,i,a){var u=1&n,c=st(e),s=c.length;if(s!=st(t).length&&!u)return!1;for(var l=s;l--;){var f=c[l];if(!(u?f in t:lt.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=u;++l<s;){var y=e[f=c[l]],v=t[f];if(o)var g=u?o(v,y,f,t,e,a):o(y,v,f,e,t,a);if(!(void 0===g?y===v||i(y,v,n,o,a):g)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&r(b,b)&&"function"==typeof w&&r(w,w)||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,o,i,a))}(t,n,o,i,e,a))},Ct=function(e,t){return At(e,t)},It=f(824),Rt=f(685),Nt=(0,Rt.createGlobalStore)("extensionsInternal",{slots:{},extensions:{}}),Dt=function(){return(0,Rt.getGlobalStore)("extensionsInternal",{slots:{},extensions:{}})},Mt=function(){return(0,Rt.getGlobalStore)("extensions",{slots:{}})};d(Nt.getState()),Nt.subscribe(d);var Lt=Dt(),Ut=Mt(),zt=(0,It.getExtensionSlotsConfigStore)(),Ft=(0,It.getExtensionsConfigStore)();Lt.subscribe((function(e){w(e,zt.getState(),Ft.getState())})),zt.subscribe((function(e){w(Lt.getState(),e,Ft.getState())})),Ft.subscribe((function(e){w(Lt.getState(),zt.getState(),e)}));var Bt=Lt.action((function(e,t){e.extensions[t.name]=y({},t,{instances:[]})})),Vt=Lt.action((function(e,t,n){var r,o=null===(r=e.slots[n])||void 0===r?void 0:r.moduleName;if(o&&o!=t)return console.warn("An extension slot with the name '".concat(n,'\' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ').concat(o,".")),e;if(o&&o==t)return e;if(e.slots[n])return y({},e,{slots:y({},e.slots,m({},n,y({},e.slots[n],{moduleName:t})))});var i=_(n,t);return y({},e,{slots:y({},e.slots,m({},n,i))})})),Wt=Ut.action((function(){return{slots:{},extensions:{}}})),qt=f(645),Kt=Dt()}(),p}())}}}))},6856:(e,t,n)=>{"use strict";n.d(t,{pv:()=>r.AssignedExtension,x9:()=>o.CancelLoading,uP:()=>r.ConnectedExtension,uu:()=>r.ExtensionMeta,tj:()=>r.ExtensionRegistration,u_:()=>r.ExtensionSlotState,qN:()=>r.ExtensionStore,ub:()=>L,og:()=>U,lW:()=>z,h6:()=>W,Kq:()=>B,EB:()=>N,yw:()=>f,ix:()=>M,Qq:()=>q,H8:()=>x});var r={};n.r(r),n.d(r,{Co:()=>s,yw:()=>f,qO:()=>l});var o={};n.r(o),n.d(o,{H:()=>x});var i=n(9714),a=n(3202),u=n(5385),c=(0,u.createGlobalStore)("extensionsInternal",{slots:{},extensions:{}}),s=function(){return(0,u.getGlobalStore)("extensionsInternal",{slots:{},extensions:{}})};function l(e){var t=c.getState(),n=e(t);n!==t&&c.setState(n)}var f=function(){return(0,u.getGlobalStore)("extensions",{slots:{}})};function p(e){var t=[],n=!0,r=!1,o=void 0;try{for(var u,c=Object.values(e.extensions)[Symbol.iterator]();!(n=(u=c.next()).done);n=!0){var s=u.value,l=!0,f=!1,p=void 0;try{for(var d,h=s.instances[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var m=d.value;t.push({slotModuleName:m.slotModuleName,extensionModuleName:s.moduleName,slotName:m.slotName,extensionId:m.id})}}catch(e){f=!0,p=e}finally{try{l||null==h.return||h.return()}finally{if(f)throw p}}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}(0,a.Z)(i.configExtensionStore.getState().mountedExtensions,t)||i.configExtensionStore.setState({mountedExtensions:t})}function d(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=navigator.onLine;return h(n,e,t)}function h(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Boolean(e?t:n)}function m(e,t){var n=navigator.onLine?e:t;return"object"==typeof n?n:{}}p(c.getState()),c.subscribe(p);var y=n(3710);function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}function w(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=N(r),u=D(r),c=!0,s=null;if(e){if(!u)throw Error("Couldn't find extension '".concat(a,"' to attach to '").concat(t,"'"));var f=u.load,p=u.online,h=u.offline,v=u.meta,x=u.moduleName;d(p,h)&&(f().then((function(a){var u=a.default,l=w(a,["default"]);c&&(s=(0,y.BP)(o(null!=u?u:l),b({},m(p,h),i,{_meta:v,_extensionContext:{extensionId:r,extensionSlotName:t,extensionSlotModuleName:n,extensionModuleName:x},domElement:e})))})),l((function(o){var i={domElement:e,id:r,slotName:t,slotModuleName:n};return b({},o,{extensions:b({},o.extensions,g({},a,b({},o.extensions[a],{instances:_(o.extensions[a].instances).concat([i])})))})})))}else console.warn("Tried to render ".concat(r," into ").concat(t," but no DOM element was available."));return function(){c=!1,s&&("MOUNTED"!==s.getStatus()?s.mountPromise.then((function(){s&&s.unmount()})):s.unmount())}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){E(e,t,n[t])}))}return e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}s();var P=s(),T=f(),A=(0,i.getExtensionSlotsConfigStore)(),C=(0,i.getExtensionsConfigStore)();function I(e,t,n){var r={},o=!0,u=!1,c=void 0;try{for(var s,l=Object.entries(e.slots)[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var f=O(s.value,2),p=f[0],d=f[1],h=V(p,e,(0,i.getExtensionSlotConfigFromStore)(t,d.name).config,n);r[p]={moduleName:d.moduleName,assignedExtensions:h}}}catch(e){u=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(u)throw c}}(0,a.Z)(T.getState().slots,r)||T.setState({slots:r})}function R(e,t){return{moduleName:t,name:e,attachedIds:[],config:null}}function N(e){return O(e.split("#"),1)[0]}function D(e){return function(e,t){var n=N(t);return e.extensions[n]}(P.getState(),e)}P.subscribe((function(e){I(e,A.getState(),C.getState())})),A.subscribe((function(e){I(P.getState(),e,C.getState())})),C.subscribe((function(e){I(P.getState(),A.getState(),e)}));var M=P.action((function(e,t){e.extensions[t.name]=$({},t,{instances:[]})}));function L(e,t){l((function(n){var r=n.slots[e];return $({},n,r?{slots:$({},n.slots,E({},e,$({},r,{attachedIds:k(r.attachedIds).concat([t])})))}:{slots:$({},n.slots,E({},e,$({},R(e),{attachedIds:[t]})))})}))}function U(e,t){l((function(n){var r=n.slots[e];return r&&r.attachedIds.includes(t)?$({},n,{slots:$({},n.slots,E({},e,$({},r,{attachedIds:r.attachedIds.filter((function(e){return e!==t}))})))}):n}))}function z(e){l((function(t){var n=t.slots[e];return n?$({},t,{slots:$({},t.slots,E({},e,$({},n,{attachedIds:[]})))}):t}))}function F(e,t,n,r){var o=t.indexOf(e);if(-1!==o)return o;if(void 0!==n)return 1e3+n;var i=r.indexOf(e);return-1!==i?2e3+i:-1}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null!=t?t:navigator.onLine;return e.filter((function(e){return h(n,e.online,e.offline)}))}function V(e,t,n,r){var o=function(e,t){var n=e.add||[],r=e.remove||[],o=e.order||[],i=P.getState().extensions;return k(t).concat(k(n)).filter((function(e){return!r.includes(e)})).sort((function(e,n){var r,a,u=F(e,o,null===(r=i[N(e)])||void 0===r?void 0:r.order,t),c=F(n,o,null===(a=i[N(n)])||void 0===a?void 0:a.order,t);return-1===c?-1:-1===u?1:u-c}))}(n,t.slots[e].attachedIds),a=[],u=!0,c=!1,s=void 0;try{for(var l,f=o[Symbol.iterator]();!(u=(l=f.next()).done);u=!0){var p=l.value,d=(0,i.getExtensionConfigFromStore)(r,e,p).config,h=N(p),m=t.extensions[h];m&&a.push({id:p,name:h,moduleName:m.moduleName,config:d,meta:m.meta,online:m.online,offline:m.offline})}}catch(e){c=!0,s=e}finally{try{u||null==f.return||f.return()}finally{if(c)throw s}}return a}function W(e){return V(e,P.getState(),(0,i.getExtensionSlotConfig)(e).config,C.getState())}var q=P.action((function(e,t,n){var r,o=null===(r=e.slots[n])||void 0===r?void 0:r.moduleName;if(o&&o!=t)return console.warn("An extension slot with the name '".concat(n,'\' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ').concat(o,".")),e;if(o&&o==t)return e;if(e.slots[n])return $({},e,{slots:$({},e.slots,E({},n,$({},e.slots[n],{moduleName:t})))});var i=R(n,t);return $({},e,{slots:$({},e.slots,E({},n,i))})}));T.action((function(){return{slots:{},extensions:{}}}))},3103:()=>{System.register([],(function(e,t){return{execute:function(){e(function(){var e={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.y=t,r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}();var o={};return(0,r(968).s)(1),function(){"use strict";var e=function(e){window.dispatchEvent(new CustomEvent(p,{detail:{online:e}}))},t=function(e){var t=function(t){return e(t.detail)};return window.addEventListener(p,t),function(){return window.removeEventListener(p,t)}},n=function(e){return e({online:navigator.onLine}),t(e)},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent(d,{detail:e}))},a=function(e){var t=function(t){return e(t.detail)};return window.addEventListener(d,t),function(){return window.removeEventListener(d,t)}},u=function(e){window.dispatchEvent(new CustomEvent(h,{detail:e}))},c=function(e){var t=function(t){return e(t.detail)};return window.addEventListener(h,t),function(){return window.removeEventListener(h,t)}},s=function(e){var t=function(t){return e(t.detail)};return window.addEventListener(m,t),function(){return window.removeEventListener(m,t)}},l=function(e){window.openmrsBase=e.apiUrl,window.spaBase=e.spaPath,window.spaEnv=e.env||"production",window.spaVersion=process.env.BUILD_VERSION,window.getOpenmrsSpaBase=function(){return"".concat(window.spaBase,"/")}},f=function(){window.copyText=function(e){var t=window.getSelection();if(t){var n=document.createRange();n.selectNode(e),t.removeAllRanges(),t.addRange(n),document.execCommand("copy"),t.removeAllRanges()}}};r.r(o),r.d(o,{dispatchConnectivityChanged:function(){return e},dispatchNotificationShown:function(){return u},dispatchPrecacheStaticDependencies:function(){return i},setupPaths:function(){return l},setupUtils:function(){return f},subscribeConnectivity:function(){return n},subscribeConnectivityChanged:function(){return t},subscribeNotificationShown:function(){return c},subscribePrecacheStaticDependencies:function(){return a},subscribeToastShown:function(){return s}});var p="openmrs:connectivity-changed",d="openmrs:precache-static-dependencies",h="openmrs:notification-shown",m="openmrs:toast-shown"}(),o}())}}}))},2034:(e,t,n)=>{"use strict";n.d(t,{ac:()=>r.ConnectivityChangedEvent,hM:()=>r.PrecacheStaticDependenciesEvent,Kj:()=>r.ShowNotificationEvent,P3:()=>r.ShowToastEvent,BW:()=>a,XS:()=>i,NQ:()=>f,dY:()=>c,id:()=>p});var r={};n.r(r),n.d(r,{BW:()=>a,XS:()=>i,NQ:()=>f,dY:()=>c,id:()=>p});var o="openmrs:connectivity-changed";function i(e){var t=function(t){return e(t.detail)};return window.addEventListener(o,t),function(){return window.removeEventListener(o,t)}}function a(e){return e({online:navigator.onLine}),i(e)}var u="openmrs:precache-static-dependencies";function c(e){var t=function(t){return e(t.detail)};return window.addEventListener(u,t),function(){return window.removeEventListener(u,t)}}var s="openmrs:notification-shown",l="openmrs:toast-shown";function f(e){var t=function(t){return e(t.detail)};return window.addEventListener(s,t),function(){return window.removeEventListener(s,t)}}function p(e){var t=function(t){return e(t.detail)};return window.addEventListener(l,t),function(){return window.removeEventListener(l,t)}}},8082:(e,t,n)=>{"use strict";n.d(t,{iC:()=>r.OfflineMode,Vm:()=>r.OfflineModeResult,Cg:()=>o.QueueItemDescriptor,we:()=>o.SyncItem,Ug:()=>o.SyncProcessOptions,jp:()=>zo,Qd:()=>Uo,Gy:()=>Bo,sF:()=>vo,vm:()=>c,xA:()=>gr,H_:()=>wr,Ui:()=>yr,D2:()=>No,WB:()=>Ao,aA:()=>lr,k1:()=>Ur,TI:()=>Mo,Q2:()=>Io,z7:()=>go,gp:()=>no,a7:()=>yo,Rz:()=>uo,QI:()=>io,$9:()=>ao,cV:()=>xr,fR:()=>Er,X2:()=>ko,dt:()=>zr,pO:()=>Or,ME:()=>jr,Xc:()=>vr,Kb:()=>Wo,ps:()=>Tr,mF:()=>Cr,MO:()=>Fr});var r={};n.r(r),n.d(r,{vm:()=>c});var o={};n.r(o),n.d(o,{jp:()=>zo,Qd:()=>Uo,Gy:()=>Bo,D2:()=>No,WB:()=>Ao,TI:()=>Mo,Q2:()=>Io,X2:()=>ko,H_:()=>Wo});var i=n(1602),a=n.n(i),u="unavailable";function c(){return{current:u,notAvailable:!0,active:!1}}var s=n(5385),l=n(7641);const f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,p=Object.keys,d=Array.isArray;function h(e,t){return"object"!=typeof t||p(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||f.Promise||(f.Promise=Promise);const m=Object.getPrototypeOf,y={}.hasOwnProperty;function v(e,t){return y.call(e,t)}function g(e,t){"function"==typeof t&&(t=t(m(e))),("undefined"==typeof Reflect?p:Reflect.ownKeys)(t).forEach((n=>{w(e,n,t[n])}))}const b=Object.defineProperty;function w(e,t,n,r){b(e,t,h(n&&v(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function x(e){return{from:function(t){return e.prototype=Object.create(t.prototype),w(e.prototype,"constructor",e),{extend:g.bind(null,e.prototype)}}}}const S=Object.getOwnPropertyDescriptor;function E(e,t){let n;return S(e,t)||(n=m(e))&&E(n,t)}const $=[].slice;function O(e,t,n){return $.call(e,t,n)}function k(e,t){return t(e)}function j(e){if(!e)throw new Error("Assertion Failed")}function P(e){f.setImmediate?setImmediate(e):setTimeout(e,0)}function T(e,t){return e.reduce(((e,n,r)=>{var o=t(n,r);return o&&(e[o[0]]=o[1]),e}),{})}function A(e,t){if(v(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,o=t.length;r<o;++r){var i=A(e,t[r]);n.push(i)}return n}var a=t.indexOf(".");if(-1!==a){var u=e[t.substr(0,a)];return void 0===u?void 0:A(u,t.substr(a+1))}}function C(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){j("string"!=typeof n&&"length"in n);for(var r=0,o=t.length;r<o;++r)C(e,t[r],n[r])}else{var i=t.indexOf(".");if(-1!==i){var a=t.substr(0,i),u=t.substr(i+1);if(""===u)void 0===n?d(e)&&!isNaN(parseInt(a))?e.splice(a,1):delete e[a]:e[a]=n;else{var c=e[a];c||(c=e[a]={}),C(c,u,n)}}else void 0===n?d(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function I(e){var t={};for(var n in e)v(e,n)&&(t[n]=e[n]);return t}const R=[].concat;function N(e){return R.apply([],e)}const D="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(N([8,16,32,64].map((e=>["Int","Uint","Float"].map((t=>t+e+"Array")))))).filter((e=>f[e])),M=D.map((e=>f[e]));T(D,(e=>[e,!0]));let L=null;function U(e){L="undefined"!=typeof WeakMap&&new WeakMap;const t=z(e);return L=null,t}function z(e){if(!e||"object"!=typeof e)return e;let t=L&&L.get(e);if(t)return t;if(d(e)){t=[],L&&L.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(z(e[n]))}else if(M.indexOf(e.constructor)>=0)t=e;else{const n=m(e);for(var o in t=n===Object.prototype?{}:Object.create(n),L&&L.set(e,t),e)v(e,o)&&(t[o]=z(e[o]))}return t}const{toString:F}={};function B(e){return F.call(e).slice(8,-1)}const V="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",W="symbol"==typeof V?function(e){var t;return null!=e&&(t=e[V])&&t.apply(e)}:function(){return null},q={};function K(e){var t,n,r,o;if(1===arguments.length){if(d(e))return e.slice();if(this===q&&"string"==typeof e)return[e];if(o=W(e)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}const H="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var Z="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function G(e,t){Z=e,Q=t}var Q=()=>!0;const Y=!new Error("").stack;function J(){if(Y)try{throw J.arguments,new Error}catch(e){return e}return new Error}function X(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(Q).map((e=>"\n"+e)).join("")):""}var ee=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],te=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(ee),ne={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function re(e,t){this._e=J(),this.name=e,this.message=t}function oe(e,t){return e+". Errors: "+Object.keys(t).map((e=>t[e].toString())).filter(((e,t,n)=>n.indexOf(e)===t)).join("\n")}function ie(e,t,n,r){this._e=J(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=oe(e,t)}function ae(e,t){this._e=J(),this.name="BulkError",this.failures=Object.keys(t).map((e=>t[e])),this.failuresByPos=t,this.message=oe(e,t)}x(re).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+X(this._e,2))}},toString:function(){return this.name+": "+this.message}}),x(ie).from(re),x(ae).from(re);var ue=te.reduce(((e,t)=>(e[t]=t+"Error",e)),{});const ce=re;var se=te.reduce(((e,t)=>{var n=t+"Error";function r(e,r){this._e=J(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=ne[t]||n,this.inner=null)}return x(r).from(ce),e[t]=r,e}),{});se.Syntax=SyntaxError,se.Type=TypeError,se.Range=RangeError;var le=ee.reduce(((e,t)=>(e[t+"Error"]=se[t],e)),{}),fe=te.reduce(((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=se[t]),e)),{});function pe(){}function de(e){return e}function he(e,t){return null==e||e===de?t:function(n){return t(e(n))}}function me(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ye(e,t){return e===pe?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?me(r,this.onsuccess):r),o&&(this.onerror=this.onerror?me(o,this.onerror):o),void 0!==i?i:n}}function ve(e,t){return e===pe?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?me(n,this.onsuccess):n),r&&(this.onerror=this.onerror?me(r,this.onerror):r)}}function ge(e,t){return e===pe?t:function(n){var r=e.apply(this,arguments);h(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?me(o,this.onsuccess):o),i&&(this.onerror=this.onerror?me(i,this.onerror):i),void 0===r?void 0===a?void 0:a:h(r,a)}}function be(e,t){return e===pe?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function we(e,t){return e===pe?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then((function(){return t.apply(r,i)}))}return t.apply(this,arguments)}}fe.ModifyError=ie,fe.DexieError=re,fe.BulkError=ae;var _e={};const[xe,Se,Ee]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,m(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,m(t),e]})(),$e=Se&&Se.then,Oe=xe&&xe.constructor,ke=!!Ee;var je=!1,Pe=Ee?()=>{Ee.then(Je)}:f.setImmediate?setImmediate.bind(null,Je):f.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver((()=>{Je(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(Je,0)},Te=function(e,t){Ue.push([e,t]),Ce&&(Pe(),Ce=!1)},Ae=!0,Ce=!0,Ie=[],Re=[],Ne=null,De=de,Me={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:xt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((e=>{try{xt(e[0],e[1])}catch(e){}}))}},Le=Me,Ue=[],ze=0,Fe=[];function Be(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=pe,this._lib=!1;var t=this._PSD=Le;if(Z&&(this._stackHolder=J(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==_e)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Ke(this,this._value))}this._state=null,this._value=null,++t.ref,qe(this,e)}const Ve={get:function(){var e=Le,t=ct;function n(n,r){var o=!e.global&&(e!==Le||t!==ct);const i=o&&!pt();var a=new Be(((t,a)=>{Ze(this,new We(wt(n,e,o,i),wt(r,e,o,i),t,a,e))}));return Z&&Ye(a,this),a}return n.prototype=_e,n},set:function(e){w(this,"then",e&&e.prototype===_e?Ve:{get:function(){return e},set:Ve.set})}};function We(e,t,n,r,o){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=o}function qe(e,t){try{t((t=>{if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Xe();t&&"function"==typeof t.then?qe(e,((e,n)=>{t instanceof Be?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,He(e)),n&&et()}}),Ke.bind(null,e))}catch(t){Ke(e,t)}}function Ke(e,t){if(Re.push(t),null===e._state){var n=e._lib&&Xe();t=De(t),e._state=!1,e._value=t,Z&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}((()=>{var n=E(t,"stack");t._promise=e,w(t,"stack",{get:()=>je?n&&(n.get?n.get.apply(t):n.value):e.stack})})),function(e){Ie.some((t=>t._value===e._value))||Ie.push(e)}(e),He(e),n&&et()}}function He(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Ze(e,t[n]);var o=e._PSD;--o.ref||o.finalize(),0===ze&&(++ze,Te((()=>{0==--ze&&tt()}),[]))}function Ze(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++ze,Te(Ge,[n,e,t])}else e._listeners.push(t)}function Ge(e,t,n){try{Ne=t;var r,o=t._value;t._state?r=e(o):(Re.length&&(Re=[]),r=e(o),-1===Re.indexOf(o)&&function(e){for(var t=Ie.length;t;)if(Ie[--t]._value===e._value)return void Ie.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{Ne=null,0==--ze&&tt(),--n.psd.ref||n.psd.finalize()}}function Qe(e,t,n){if(t.length===n)return t;var r="";if(!1===e._state){var o,i,a=e._value;null!=a?(o=a.name||"Error",i=a.message||a,r=X(a,0)):(o=a,i=""),t.push(o+(i?": "+i:"")+r)}return Z&&((r=X(e._stackHolder,2))&&-1===t.indexOf(r)&&t.push(r),e._prev&&Qe(e._prev,t,n)),t}function Ye(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function Je(){Xe()&&et()}function Xe(){var e=Ae;return Ae=!1,Ce=!1,e}function et(){var e,t,n;do{for(;Ue.length>0;)for(e=Ue,Ue=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while(Ue.length>0);Ae=!0,Ce=!0}function tt(){var e=Ie;Ie=[],e.forEach((e=>{e._PSD.onunhandled.call(null,e._value,e)}));for(var t=Fe.slice(0),n=t.length;n;)t[--n]()}function nt(e){return new Be(_e,!1,e)}function rt(e,t){var n=Le;return function(){var r=Xe(),o=Le;try{return yt(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{yt(o,!1),r&&et()}}}g(Be.prototype,{then:Ve,_then:function(e,t){Ze(this,new We(null,null,e,t,Le))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(e=>e instanceof t?n(e):nt(e))):this.then(null,(e=>e&&e.name===t?n(e):nt(e)))},finally:function(e){return this.then((t=>(e(),t)),(t=>(e(),nt(t))))},stack:{get:function(){if(this._stack)return this._stack;try{je=!0;var e=Qe(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{je=!1}}},timeout:function(e,t){return e<1/0?new Be(((n,r)=>{var o=setTimeout((()=>r(new se.Timeout(t))),e);this.then(n,r).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&w(Be.prototype,Symbol.toStringTag,"Dexie.Promise"),Me.env=vt(),g(Be,{all:function(){var e=K.apply(null,arguments).map(dt);return new Be((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(((o,i)=>Be.resolve(o).then((n=>{e[i]=n,--r||t(e)}),n)))}))},resolve:e=>{if(e instanceof Be)return e;if(e&&"function"==typeof e.then)return new Be(((t,n)=>{e.then(t,n)}));var t=new Be(_e,!0,e);return Ye(t,Ne),t},reject:nt,race:function(){var e=K.apply(null,arguments).map(dt);return new Be(((t,n)=>{e.map((e=>Be.resolve(e).then(t,n)))}))},PSD:{get:()=>Le,set:e=>Le=e},totalEchoes:{get:()=>ct},newPSD:lt,usePSD:gt,scheduler:{get:()=>Te,set:e=>{Te=e}},rejectionMapper:{get:()=>De,set:e=>{De=e}},follow:(e,t)=>new Be(((n,r)=>lt(((t,n)=>{var r=Le;r.unhandleds=[],r.onunhandled=n,r.finalize=me((function(){!function(e){Fe.push((function t(){e(),Fe.splice(Fe.indexOf(t),1)})),++ze,Te((()=>{0==--ze&&tt()}),[])}((()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])}))}),r.finalize),e()}),t,n,r)))}),Oe&&(Oe.allSettled&&w(Be,"allSettled",(function(){const e=K.apply(null,arguments).map(dt);return new Be((t=>{0===e.length&&t([]);let n=e.length;const r=new Array(n);e.forEach(((e,o)=>Be.resolve(e).then((e=>r[o]={status:"fulfilled",value:e}),(e=>r[o]={status:"rejected",reason:e})).then((()=>--n||t(r)))))}))})),Oe.any&&"undefined"!=typeof AggregateError&&w(Be,"any",(function(){const e=K.apply(null,arguments).map(dt);return new Be(((t,n)=>{0===e.length&&n(new AggregateError([]));let r=e.length;const o=new Array(r);e.forEach(((e,i)=>Be.resolve(e).then((e=>t(e)),(e=>{o[i]=e,--r||n(new AggregateError(o))}))))}))})));const ot={awaits:0,echoes:0,id:0};var it=0,at=[],ut=0,ct=0,st=0;function lt(e,t,n,r){var o=Le,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++st;var a=Me.env;i.env=ke?{Promise:Be,PromiseProp:{value:Be,configurable:!0,writable:!0},all:Be.all,race:Be.race,allSettled:Be.allSettled,any:Be.any,resolve:Be.resolve,reject:Be.reject,nthen:_t(a.nthen,i),gthen:_t(a.gthen,i)}:{},t&&h(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var u=gt(i,e,n,r);return 0===i.ref&&i.finalize(),u}function ft(){return ot.id||(ot.id=++it),++ot.awaits,ot.echoes+=100,ot.id}function pt(){return!!ot.awaits&&(0==--ot.awaits&&(ot.id=0),ot.echoes=100*ot.awaits,!0)}function dt(e){return ot.echoes&&e&&e.constructor===Oe?(ft(),e.then((e=>(pt(),e)),(e=>(pt(),St(e))))):e}function ht(e){++ct,ot.echoes&&0!=--ot.echoes||(ot.echoes=ot.id=0),at.push(Le),yt(e,!0)}function mt(){var e=at[at.length-1];at.pop(),yt(e,!1)}function yt(e,t){var n=Le;if((t?!ot.echoes||ut++&&e===Le:!ut||--ut&&e===Le)||bt(t?ht.bind(null,e):mt),e!==Le&&(Le=e,n===Me&&(Me.env=vt()),ke)){var r=Me.env.Promise,o=e.env;Se.then=o.nthen,r.prototype.then=o.gthen,(n.global||e.global)&&(Object.defineProperty(f,"Promise",o.PromiseProp),r.all=o.all,r.race=o.race,r.resolve=o.resolve,r.reject=o.reject,o.allSettled&&(r.allSettled=o.allSettled),o.any&&(r.any=o.any))}}function vt(){var e=f.Promise;return ke?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(f,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Se.then,gthen:e.prototype.then}:{}}function gt(e,t,n,r,o){var i=Le;try{return yt(e,!0),t(n,r,o)}finally{yt(i,!1)}}function bt(e){$e.call(xe,e)}function wt(e,t,n,r){return"function"!=typeof e?e:function(){var o=Le;n&&ft(),yt(t,!0);try{return e.apply(this,arguments)}finally{yt(o,!1),r&&bt(pt)}}}function _t(e,t){return function(n,r){return e.call(this,wt(n,t),wt(r,t))}}function xt(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,o={promise:t,reason:e};if(f.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),h(r,o)):f.CustomEvent&&h(r=new CustomEvent("unhandledrejection",{detail:o}),o),r&&f.dispatchEvent&&(dispatchEvent(r),!f.PromiseRejectionEvent&&f.onunhandledrejection))try{f.onunhandledrejection(r)}catch(e){}Z&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}-1===(""+$e).indexOf("[native code]")&&(ft=pt=pe);var St=Be.reject;function Et(e,t,n,r){if(e.idbdb&&(e._state.openComplete||Le.letThrough||e._vip)){var o=e._createTransaction(t,n,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(o){return o.name===ue.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>Et(e,t,n,r)))):St(o)}return o._promise(t,((e,t)=>lt((()=>(Le.trans=o,r(e,t,o)))))).then((e=>o._completion.then((()=>e))))}if(e._state.openComplete)return St(new se.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return St(new se.DatabaseClosed);e.open().catch(pe)}return e._state.dbReadyPromise.then((()=>Et(e,t,n,r)))}const $t=String.fromCharCode(65535),Ot="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",kt=[],jt="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Pt=jt,Tt=jt,At=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function Ct(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const It={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Rt(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=U(t))[e],t)}class Nt{_trans(e,t,n){const r=this._tx||Le.trans,o=this.name;function i(e,n,r){if(!r.schema[o])throw new se.NotFound("Table "+o+" not part of transaction");return t(r.idbtrans,r)}const a=Xe();try{return r&&r.db===this.db?r===Le.trans?r._promise(e,i,n):lt((()=>r._promise(e,i,n)),{trans:r,transless:Le.transless||Le}):Et(this.db,e,[this.name],i)}finally{a&&et()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(t=>this.core.get({trans:t,key:e}).then((e=>this.hook.reading.fire(e))))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(d(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const t=p(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter((e=>e.compound&&t.every((t=>e.keyPath.indexOf(t)>=0))&&e.keyPath.every((e=>t.indexOf(e)>=0))))[0];if(n&&this.db._maxKey!==$t)return this.where(n.name).equals(n.keyPath.map((t=>e[t])));!n&&Z&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);const{idxByName:r}=this.schema,o=this.db._deps.indexedDB;function i(e,t){try{return 0===o.cmp(e,t)}catch(e){return!1}}const[a,u]=t.reduce((([t,n],o)=>{const a=r[o],u=e[o];return[t||a,t||!a?Ct(n,a&&a.multi?e=>{const t=A(e,o);return d(t)&&t.some((e=>i(u,e)))}:e=>i(u,A(e,o))):n]}),[null,null]);return a?this.where(a.name).equals(e[a.keyPath]).filter(u):n?this.filter(u):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,d(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const t=t=>{if(!t)return t;const n=Object.create(e.prototype);for(var r in t)if(v(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass((function(e){h(this,e)}))}add(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let o=e;return r&&n&&(o=Rt(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[o]}))).then((e=>e.numFailures?Be.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{C(e,r,t)}catch(e){}return t}))}update(e,t){if("object"!=typeof e||d(e))return this.where(":id").equals(e).modify(t);{const n=A(e,this.schema.primKey.keyPath);if(void 0===n)return St(new se.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?p(t).forEach((n=>{C(e,n,t[n])})):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let o=e;return r&&n&&(o=Rt(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"put",values:[o],keys:null!=t?[t]:null}))).then((e=>e.numFailures?Be.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{C(e,r,t)}catch(e){}return t}))}delete(e){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:[e]}))).then((e=>e.numFailures?Be.reject(e.failures[0]):void 0))}clear(){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"deleteRange",range:It}))).then((e=>e.numFailures?Be.reject(e.failures[0]):void 0))}bulkGet(e){return this._trans("readonly",(t=>this.core.getMany({keys:e,trans:t}).then((e=>e.map((e=>this.hook.reading.fire(e)))))))}bulkAdd(e,t,n){const r=Array.isArray(t)?t:void 0,o=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new se.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new se.InvalidArgument("Arguments objects and keys must have the same length");const a=e.length;let u=i&&n?e.map(Rt(i)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:u,wantResults:o}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return o?t:n;throw new ae(`${this.name}.bulkAdd(): ${e} of ${a} operations failed`,r)}))}))}bulkPut(e,t,n){const r=Array.isArray(t)?t:void 0,o=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new se.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new se.InvalidArgument("Arguments objects and keys must have the same length");const a=e.length;let u=i&&n?e.map(Rt(i)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:u,wantResults:o}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return o?t:n;throw new ae(`${this.name}.bulkPut(): ${e} of ${a} operations failed`,r)}))}))}bulkDelete(e){const t=e.length;return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:e}))).then((({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new ae(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)}))}}function Dt(e){var t={},n=function(n,r){if(r){for(var o=arguments.length,i=new Array(o-1);--o;)i[o-1]=arguments[o];return t[n].subscribe.apply(null,i),e}if("string"==typeof n)return t[n]};n.addEventType=i;for(var r=1,o=arguments.length;r<o;++r)i(arguments[r]);return n;function i(e,r,o){if("object"==typeof e)return a(e);r||(r=be),o||(o=pe);var i={subscribers:[],fire:o,subscribe:function(e){-1===i.subscribers.indexOf(e)&&(i.subscribers.push(e),i.fire=r(i.fire,e))},unsubscribe:function(e){i.subscribers=i.subscribers.filter((function(t){return t!==e})),i.fire=i.subscribers.reduce(r,o)}};return t[e]=n[e]=i,i}function a(e){p(e).forEach((function(t){var n=e[t];if(d(n))i(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new se.InvalidArgument("Invalid event config");var r=i(t,de,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach((function(e){P((function(){e.apply(null,t)}))}))}))}}))}}function Mt(e,t){return x(t).from({prototype:e}),t}function Lt(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Ut(e,t){e.filter=Ct(e.filter,t)}function zt(e,t,n){var r=e.replayFilter;e.replayFilter=r?()=>Ct(r(),t()):t,e.justLimit=n&&!r}function Ft(e,t){if(e.isPrimKey)return t.primaryKey;const n=t.getIndexByKeyPath(e.index);if(!n)throw new se.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function Bt(e,t,n){const r=Ft(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function Vt(e,t,n,r){const o=e.replayFilter?Ct(e.filter,e.replayFilter()):e.filter;if(e.or){const i={},a=(e,n,r)=>{if(!o||o(n,r,(e=>n.stop(e)),(e=>n.fail(e)))){var a=n.primaryKey,u=""+a;"[object ArrayBuffer]"===u&&(u=""+new Uint8Array(a)),v(i,u)||(i[u]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(a,n),Wt(Bt(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return Wt(Bt(e,r,n),Ct(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function Wt(e,t,n,r){var o=rt(r?(e,t,o)=>n(r(e),t,o):n);return e.then((e=>{if(e)return e.start((()=>{var n=()=>e.continue();t&&!t(e,(e=>n=e),(t=>{e.stop(t),n=pe}),(t=>{e.fail(t),n=pe}))||o(e.value,e,(e=>n=e)),n()}))}))}function qt(e,t){try{const n=Kt(e),r=Kt(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){const n=e.length,r=t.length,o=n<r?n:r;for(let n=0;n<o;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}(Ht(e),Ht(t));case"Array":return function(e,t){const n=e.length,r=t.length,o=n<r?n:r;for(let n=0;n<o;++n){const r=qt(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function Kt(e){const t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";const n=B(e);return"ArrayBuffer"===n?"binary":n}function Ht(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class Zt{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,St.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,St.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=Ct(t.algorithm,e)}_iterate(e,t){return Vt(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&h(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read((n=>Vt(t,e,n,t.table.core)))}count(e){return this._read((e=>{const t=this._ctx,n=t.table.core;if(Lt(t,!0))return n.count({trans:e,query:{index:Ft(t,n.schema),range:t.range}}).then((e=>Math.min(e,t.limit)));var r=0;return Vt(t,(()=>(++r,!1)),e,n).then((()=>r))})).then(e)}sortBy(e,t){const n=e.split(".").reverse(),r=n[0],o=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function u(e,t){var n=i(e,o),r=i(t,o);return n<r?-a:n>r?a:0}return this.toArray((function(e){return e.sort(u)})).then(t)}toArray(e){return this._read((e=>{var t=this._ctx;if("next"===t.dir&&Lt(t,!0)&&t.limit>0){const{valueMapper:n}=t,r=Ft(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then((({result:e})=>n?e.map(n):e))}{const n=[];return Vt(t,(e=>n.push(e)),e,t.table.core).then((()=>n))}}),e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,Lt(t)?zt(t,(()=>{var t=e;return(e,n)=>0===t||(1===t?(--t,!1):(n((()=>{e.advance(t),t=0})),!1))})):zt(t,(()=>{var t=e;return()=>--t<0}))),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),zt(this._ctx,(()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this}until(e,t){return Ut(this._ctx,(function(n,r,o){return!e(n.value)||(r(o),t)})),this}first(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)}last(e){return this.reverse().first(e)}filter(e){var t,n;return Ut(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=Ct(t.isMatch,n),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&Lt(t,!0)&&t.limit>0)return this._read((e=>{var n=Ft(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((({result:e})=>e)).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys((function(e){return e[0]})).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Ut(this._ctx,(function(e){var t=e.primaryKey.toString(),r=v(n,t);return n[t]=!0,!r})),this}modify(e){var t=this._ctx;return this._write((n=>{var r;if("function"==typeof e)r=e;else{var o=p(e),i=o.length;r=function(t){for(var n=!1,r=0;r<i;++r){var a=o[r],u=e[a];A(t,a)!==u&&(C(t,a,u),n=!0)}return n}}const a=t.table.core,{outbound:u,extractKey:c}=a.schema.primaryKey,s=this.db._options.modifyChunkSize||200,l=[];let f=0;const d=[],h=(e,t)=>{const{failures:n,numFailures:r}=t;f+=e-r;for(let e of p(n))l.push(n[e])};return this.clone().primaryKeys().then((o=>{const i=l=>{const f=Math.min(s,o.length-l);return a.getMany({trans:n,keys:o.slice(l,l+f),cache:"immutable"}).then((p=>{const d=[],m=[],y=u?[]:null,v=[];for(let e=0;e<f;++e){const t=p[e],n={value:U(t),primKey:o[l+e]};!1!==r.call(n,n.value,n)&&(null==n.value?v.push(o[l+e]):u||0===qt(c(t),c(n.value))?(m.push(n.value),u&&y.push(o[l+e])):(v.push(o[l+e]),d.push(n.value)))}const g=Lt(t)&&t.limit===1/0&&("function"!=typeof e||e===Gt)&&{index:t.index,range:t.range};return Promise.resolve(d.length>0&&a.mutate({trans:n,type:"add",values:d}).then((e=>{for(let t in e.failures)v.splice(parseInt(t),1);h(d.length,e)}))).then((()=>(m.length>0||g&&"object"==typeof e)&&a.mutate({trans:n,type:"put",keys:y,values:m,criteria:g,changeSpec:"function"!=typeof e&&e}).then((e=>h(m.length,e))))).then((()=>(v.length>0||g&&e===Gt)&&a.mutate({trans:n,type:"delete",keys:v,criteria:g}).then((e=>h(v.length,e))))).then((()=>o.length>l+f&&i(l+s)))}))};return i(0).then((()=>{if(l.length>0)throw new ie("Error modifying one or more objects",l,f,d);return o.length}))}))}))}delete(){var e=this._ctx,t=e.range;return Lt(e)&&(e.isPrimKey&&!Tt||3===t.type)?this._write((n=>{const{primaryKey:r}=e.table.core.schema,o=t;return e.table.core.count({trans:n,query:{index:r,range:o}}).then((t=>e.table.core.mutate({trans:n,type:"deleteRange",range:o}).then((({failures:e,lastResult:n,results:r,numFailures:o})=>{if(o)throw new ie("Could not delete some values",Object.keys(e).map((t=>e[t])),t-o);return t-o}))))})):this.modify(Gt)}}const Gt=(e,t)=>t.value=null;function Qt(e,t){return e<t?-1:e===t?0:1}function Yt(e,t){return e>t?-1:e===t?0:1}function Jt(e,t,n){var r=e instanceof on?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Xt(e){return new e.Collection(e,(()=>rn(""))).limit(0)}function en(e,t,n,r,o,i){for(var a=Math.min(e.length,r.length),u=-1,c=0;c<a;++c){var s=t[c];if(s!==r[c])return o(e[c],n[c])<0?e.substr(0,c)+n[c]+n.substr(c+1):o(e[c],r[c])<0?e.substr(0,c)+r[c]+n.substr(c+1):u>=0?e.substr(0,u)+t[u]+n.substr(u+1):null;o(e[c],s)<0&&(u=c)}return a<r.length&&"next"===i?e+n.substr(e.length):a<e.length&&"prev"===i?e.substr(0,n.length):u<0?null:e.substr(0,u)+r[u]+n.substr(u+1)}function tn(e,t,n,r){var o,i,a,u,c,s,l,f=n.length;if(!n.every((e=>"string"==typeof e)))return Jt(e,"String expected.");function p(e){o=function(e){return"next"===e?e=>e.toUpperCase():e=>e.toLowerCase()}(e),i=function(e){return"next"===e?e=>e.toLowerCase():e=>e.toUpperCase()}(e),a="next"===e?Qt:Yt;var t=n.map((function(e){return{lower:i(e),upper:o(e)}})).sort((function(e,t){return a(e.lower,t.lower)}));u=t.map((function(e){return e.upper})),c=t.map((function(e){return e.lower})),s=e,l="next"===e?"":r}p("next");var d=new e.Collection(e,(()=>nn(u[0],c[f-1]+r)));d._ondirectionchange=function(e){p(e)};var h=0;return d._addAlgorithm((function(e,n,r){var o=e.key;if("string"!=typeof o)return!1;var p=i(o);if(t(p,c,h))return!0;for(var d=null,m=h;m<f;++m){var y=en(o,p,u[m],c[m],a,s);null===y&&null===d?h=m+1:(null===d||a(d,y)>0)&&(d=y)}return n(null!==d?function(){e.continue(d+l)}:r),!1})),d}function nn(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function rn(e){return{type:1,lower:e,upper:e}}class on{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Xt(this):new this.Collection(this,(()=>nn(e,t,!n,!r)))}catch(e){return Jt(this,Ot)}}equals(e){return null==e?Jt(this,Ot):new this.Collection(this,(()=>rn(e)))}above(e){return null==e?Jt(this,Ot):new this.Collection(this,(()=>nn(e,void 0,!0)))}aboveOrEqual(e){return null==e?Jt(this,Ot):new this.Collection(this,(()=>nn(e,void 0,!1)))}below(e){return null==e?Jt(this,Ot):new this.Collection(this,(()=>nn(void 0,e,!1,!0)))}belowOrEqual(e){return null==e?Jt(this,Ot):new this.Collection(this,(()=>nn(void 0,e)))}startsWith(e){return"string"!=typeof e?Jt(this,"String expected."):this.between(e,e+$t,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):tn(this,((e,t)=>0===e.indexOf(t[0])),[e],$t)}equalsIgnoreCase(e){return tn(this,((e,t)=>e===t[0]),[e],"")}anyOfIgnoreCase(){var e=K.apply(q,arguments);return 0===e.length?Xt(this):tn(this,((e,t)=>-1!==t.indexOf(e)),e,"")}startsWithAnyOfIgnoreCase(){var e=K.apply(q,arguments);return 0===e.length?Xt(this):tn(this,((e,t)=>t.some((t=>0===e.indexOf(t)))),e,$t)}anyOf(){const e=K.apply(q,arguments);let t=this._cmp;try{e.sort(t)}catch(e){return Jt(this,Ot)}if(0===e.length)return Xt(this);const n=new this.Collection(this,(()=>nn(e[0],e[e.length-1])));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm(((n,o,i)=>{const a=n.key;for(;t(a,e[r])>0;)if(++r,r===e.length)return o(i),!1;return 0===t(a,e[r])||(o((()=>{n.continue(e[r])})),!1)})),n}notEqual(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=K.apply(q,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return Jt(this,Ot)}const t=e.reduce(((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){const n=this._cmp,r=this._ascending,o=this._descending,i=this._min,a=this._max;if(0===e.length)return Xt(this);if(!e.every((e=>void 0!==e[0]&&void 0!==e[1]&&r(e[0],e[1])<=0)))return Jt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",se.InvalidArgument);const u=!t||!1!==t.includeLowers,c=t&&!0===t.includeUppers;let s,l=r;function f(e,t){return l(e[0],t[0])}try{s=e.reduce((function(e,t){let r=0,o=e.length;for(;r<o;++r){const o=e[r];if(n(t[0],o[1])<0&&n(t[1],o[0])>0){o[0]=i(o[0],t[0]),o[1]=a(o[1],t[1]);break}}return r===o&&e.push(t),e}),[]),s.sort(f)}catch(e){return Jt(this,Ot)}let p=0;const d=c?e=>r(e,s[p][1])>0:e=>r(e,s[p][1])>=0,h=u?e=>o(e,s[p][0])>0:e=>o(e,s[p][0])>=0;let m=d;const y=new this.Collection(this,(()=>nn(s[0][0],s[s.length-1][1],!u,!c)));return y._ondirectionchange=e=>{"next"===e?(m=d,l=r):(m=h,l=o),s.sort(f)},y._addAlgorithm(((e,t,n)=>{for(var o=e.key;m(o);)if(++p,p===s.length)return t(n),!1;return!!function(e){return!d(e)&&!h(e)}(o)||(0===this._cmp(o,s[p][1])||0===this._cmp(o,s[p][0])||t((()=>{l===r?e.continue(s[p][0]):e.continue(s[p][1])})),!1)})),y}startsWithAnyOf(){const e=K.apply(q,arguments);return e.every((e=>"string"==typeof e))?0===e.length?Xt(this):this.inAnyRange(e.map((e=>[e,e+$t]))):Jt(this,"startsWithAnyOf() only works with strings")}}function an(e){return rt((function(t){return un(t),e(t.target.error),!1}))}function un(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const cn=Dt(null,"storagemutated");class sn{_lock(){return j(!Le.global),++this._reculock,1!==this._reculock||Le.global||(Le.lockOwnerFor=this),this}_unlock(){if(j(!Le.global),0==--this._reculock)for(Le.global||(Le.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{gt(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&Le.lockOwnerFor!==this}create(e){if(!this.mode)return this;const t=this.db.idbdb,n=this.db._state.dbOpenError;if(j(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new se.DatabaseClosed(n);case"MissingAPIError":throw new se.MissingAPI(n.message,n);default:throw new se.OpenFailed(n)}if(!this.active)throw new se.TransactionInactive;return j(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=rt((t=>{un(t),this._reject(e.error)})),e.onabort=rt((t=>{un(t),this.active&&this._reject(new se.Abort(e.error)),this.active=!1,this.on("abort").fire(t)})),e.oncomplete=rt((()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&cn.storagemutated.fire(e.mutatedParts)})),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return St(new se.ReadOnly("Transaction is readonly"));if(!this.active)return St(new se.TransactionInactive);if(this._locked())return new Be(((r,o)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,o)},Le])}));if(n)return lt((()=>{var e=new Be(((e,n)=>{this._lock();const r=t(e,n,this);r&&r.then&&r.then(e,n)}));return e.finally((()=>this._unlock())),e._lib=!0,e}));var r=new Be(((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)}));return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();const n=Be.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((()=>n));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var o=t._waitingFor;return new Be(((e,r)=>{n.then((n=>t._waitingQueue.push(rt(e.bind(null,n)))),(e=>t._waitingQueue.push(rt(r.bind(null,e))))).finally((()=>{t._waitingFor===o&&(t._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new se.Abort))}table(e){const t=this._memoizedTables||(this._memoizedTables={});if(v(t,e))return t[e];const n=this.schema[e];if(!n)throw new se.NotFound("Table "+e+" not part of transaction");const r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function ln(e,t,n,r,o,i,a){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+fn(t)}}function fn(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function pn(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:T(n,(e=>[e.name,e]))}}let dn=e=>{try{return e.only([[]]),dn=()=>[[]],[[]]}catch(e){return dn=()=>$t,$t}};function hn(e){return null==e?()=>{}:"string"==typeof e?function(e){return 1===e.split(".").length?t=>t[e]:t=>A(t,e)}(e):t=>A(t,e)}function mn(e){return[].slice.call(e)}let yn=0;function vn(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function gn(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:n,upper:r,lowerOpen:o,upperOpen:i}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!i):void 0===r?t.lowerBound(n,!!o):t.bound(n,r,!!o,!!i)}const{schema:o,hasGetAll:i}=function(e,t){const n=mn(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((e=>t.objectStore(e))).map((e=>{const{keyPath:t,autoIncrement:n}=e,r=d(t),o=null==t,i={},a={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:hn(t)},indexes:mn(e.indexNames).map((t=>e.index(t))).map((e=>{const{name:t,unique:n,multiEntry:r,keyPath:o}=e,a={name:t,compound:d(o),keyPath:o,unique:n,multiEntry:r,extractKey:hn(o)};return i[vn(o)]=a,a})),getIndexByKeyPath:e=>i[vn(e)]};return i[":id"]=a.primaryKey,null!=t&&(i[vn(t)]=a.primaryKey),a}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),a=o.tables.map((e=>function(e){const t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:o,values:i,range:a}){return new Promise(((u,c)=>{u=rt(u);const s=e.objectStore(t),l=null==s.keyPath,f="put"===n||"add"===n;if(!f&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);const{length:p}=o||i||{length:1};if(o&&i&&o.length!==i.length)throw new Error("Given keys array must have same length as given values array.");if(0===p)return u({numFailures:0,failures:{},results:[],lastResult:void 0});let d;const h=[],m=[];let y=0;const v=e=>{++y,un(e)};if("deleteRange"===n){if(4===a.type)return u({numFailures:y,failures:m,results:[],lastResult:void 0});3===a.type?h.push(d=s.clear()):h.push(d=s.delete(r(a)))}else{const[e,t]=f?l?[i,o]:[i,null]:[o,null];if(f)for(let r=0;r<p;++r)h.push(d=t&&void 0!==t[r]?s[n](e[r],t[r]):s[n](e[r])),d.onerror=v;else for(let t=0;t<p;++t)h.push(d=s[n](e[t])),d.onerror=v}const g=e=>{const t=e.target.result;h.forEach(((e,t)=>null!=e.error&&(m[t]=e.error))),u({numFailures:y,failures:m,results:"delete"===n?o:h.map((e=>e.result)),lastResult:t})};d.onerror=e=>{v(e),g(e)},d.onsuccess=g}))},getMany:({trans:e,keys:n})=>new Promise(((r,o)=>{r=rt(r);const i=e.objectStore(t),a=n.length,u=new Array(a);let c,s=0,l=0;const f=e=>{const t=e.target;u[t._pos]=t.result,++l===s&&r(u)},p=an(o);for(let e=0;e<a;++e)null!=n[e]&&(c=i.get(n[e]),c._pos=e,c.onsuccess=f,c.onerror=p,++s);0===s&&r(u)})),get:({trans:e,key:n})=>new Promise(((r,o)=>{r=rt(r);const i=e.objectStore(t).get(n);i.onsuccess=e=>r(e.target.result),i.onerror=an(o)})),query:function(e){return n=>new Promise(((o,i)=>{o=rt(o);const{trans:a,values:u,limit:c,query:s}=n,l=c===1/0?void 0:c,{index:f,range:p}=s,d=a.objectStore(t),h=f.isPrimaryKey?d:d.index(f.name),m=r(p);if(0===c)return o({result:[]});if(e){const e=u?h.getAll(m,l):h.getAllKeys(m,l);e.onsuccess=e=>o({result:e.target.result}),e.onerror=an(i)}else{let e=0;const t=u||!("openKeyCursor"in h)?h.openCursor(m):h.openKeyCursor(m),n=[];t.onsuccess=r=>{const i=t.result;return i?(n.push(u?i.value:i.primaryKey),++e===c?o({result:n}):void i.continue()):o({result:n})},t.onerror=an(i)}}))}(i),openCursor:function({trans:e,values:n,query:o,reverse:i,unique:a}){return new Promise(((u,c)=>{u=rt(u);const{index:s,range:l}=o,f=e.objectStore(t),p=s.isPrimaryKey?f:f.index(s.name),d=i?a?"prevunique":"prev":a?"nextunique":"next",h=n||!("openKeyCursor"in p)?p.openCursor(r(l),d):p.openKeyCursor(r(l),d);h.onerror=an(c),h.onsuccess=rt((t=>{const n=h.result;if(!n)return void u(null);n.___id=++yn,n.done=!1;const r=n.continue.bind(n);let o=n.continuePrimaryKey;o&&(o=o.bind(n));const i=n.advance.bind(n),a=()=>{throw new Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw new Error("Cursor not started")},n.fail=rt(c),n.next=function(){let e=1;return this.start((()=>e--?this.continue():this.stop())).then((()=>this))},n.start=e=>{const t=new Promise(((e,t)=>{e=rt(e),h.onerror=an(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=a,e(t)}})),u=()=>{if(h.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw new Error("Cursor behind last entry")},n.stop()};return h.onsuccess=rt((e=>{h.onsuccess=u,u()})),n.continue=r,n.continuePrimaryKey=o,n.advance=i,u(),t},u(n)}),c)}))},count({query:e,trans:n}){const{index:o,range:i}=e;return new Promise(((e,a)=>{const u=n.objectStore(t),c=o.isPrimaryKey?u:u.index(o.name),s=r(i),l=s?c.count(s):c.count();l.onsuccess=rt((t=>e(t.target.result))),l.onerror=an(a)}))}}}(e))),u={};return a.forEach((e=>u[e.name]=e)),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!u[e])throw new Error(`Table '${e}' not found`);return u[e]},MIN_KEY:-1/0,MAX_KEY:dn(t),schema:o}}function bn({_novip:e},t){const n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},o){const i=function(e,t){return t.reduce(((e,{create:t})=>({...e,...t(e)})),e)}(gn(t,n,o),e.dbcore);return{dbcore:i}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((t=>{const n=t.name;e.core.schema.tables.some((e=>e.name===n))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function wn({_novip:e},t,n,r){n.forEach((n=>{const o=r[n];t.forEach((t=>{const r=E(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?w(t,n,{get(){return this.table(n)},set(e){b(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,o))}))}))}function _n({_novip:e},t){t.forEach((t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]}))}function xn(e,t){return e._cfg.version-t._cfg.version}function Sn(e,t,n,r){const o=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,o);i.create(n),i._completion.catch(r);const a=i._reject.bind(i),u=Le.transless||Le;lt((()=>{Le.trans=i,Le.transless=u,0===t?(p(o).forEach((e=>{$n(n,e,o[e].primKey,o[e].indexes)})),bn(e,n),Be.follow((()=>e.on.populate.fire(i))).catch(a)):function({_novip:e},t,n,r){const o=[],i=e._versions;let a=e._dbSchema=kn(0,e.idbdb,r),u=!1;return i.filter((e=>e._cfg.version>=t)).forEach((i=>{o.push((()=>{const o=a,c=i._cfg.dbschema;jn(e,o,r),jn(e,c,r),a=e._dbSchema=c;const s=En(o,c);s.add.forEach((e=>{$n(r,e[0],e[1].primKey,e[1].indexes)})),s.change.forEach((e=>{if(e.recreate)throw new se.Upgrade("Not yet support for changing primary key");{const t=r.objectStore(e.name);e.add.forEach((e=>On(t,e))),e.change.forEach((e=>{t.deleteIndex(e.name),On(t,e)})),e.del.forEach((e=>t.deleteIndex(e)))}}));const l=i._cfg.contentUpgrade;if(l&&i._cfg.version>t){bn(e,r),n._memoizedTables={},u=!0;let t=I(c);s.del.forEach((e=>{t[e]=o[e]})),_n(e,[e.Transaction.prototype]),wn(e,[e.Transaction.prototype],p(t),t),n.schema=t;const i=H(l);let a;i&&ft();const f=Be.follow((()=>{if(a=l(n),a&&i){var e=pt.bind(null,null);a.then(e,e)}}));return a&&"function"==typeof a.then?Be.resolve(a):f.then((()=>a))}})),o.push((t=>{u&&Pt||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((n=>null==e[n]&&t.db.deleteObjectStore(n)))}(i._cfg.dbschema,t),_n(e,[e.Transaction.prototype]),wn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema}))})),function e(){return o.length?Be.resolve(o.shift()(n.idbtrans)).then(e):Be.resolve()}().then((()=>{var e,t;t=r,p(e=a).forEach((n=>{t.db.objectStoreNames.contains(n)||$n(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,i,n).catch(a)}))}function En(e,t){const n={del:[],add:[],change:[]};let r;for(r in e)t[r]||n.del.push(r);for(r in t){const o=e[r],i=t[r];if(o){const e={name:r,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!jt)e.recreate=!0,n.change.push(e);else{const t=o.idxByName,r=i.idxByName;let a;for(a in t)r[a]||e.del.push(a);for(a in r){const n=t[a],o=r[a];n?n.src!==o.src&&e.change.push(o):e.add.push(o)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}}else n.add.push([r,i])}return n}function $n(e,t,n,r){const o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((e=>On(o,e))),o}function On(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function kn(e,t,n){const r={};return O(t.objectStoreNames,0).forEach((e=>{const t=n.objectStore(e);let o=t.keyPath;const i=ln(fn(o),o||"",!1,!1,!!t.autoIncrement,o&&"string"!=typeof o,!0),a=[];for(let e=0;e<t.indexNames.length;++e){const n=t.index(t.indexNames[e]);o=n.keyPath;var u=ln(n.name,o,!!n.unique,!!n.multiEntry,!1,o&&"string"!=typeof o,!1);a.push(u)}r[e]=pn(e,i,a)})),r}function jn({_novip:e},t,n){const r=n.db.objectStoreNames;for(let o=0;o<r.length;++o){const i=r[o],a=n.objectStore(i);e._hasGetAll="getAll"in a;for(let e=0;e<a.indexNames.length;++e){const n=a.indexNames[e],r=a.index(n).keyPath,o="string"==typeof r?r:"["+O(r).join("+")+"]";if(t[i]){const e=t[i].idxByName[o];e&&(e.name=n,delete t[i].idxByName[o],t[i].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&f.WorkerGlobalScope&&f instanceof f.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class Pn{_parseStoresSpec(e,t){p(e).forEach((n=>{if(null!==e[n]){var r=e[n].split(",").map(((e,t)=>{const n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return ln(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),d(r),0===t)})),o=r.shift();if(o.multi)throw new se.Schema("Primary key cannot be multi-valued");r.forEach((e=>{if(e.auto)throw new se.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new se.Schema("Index must have a name and cannot be an empty string")})),t[n]=pn(n,o,r)}}))}stores(e){const t=this.db;this._cfg.storesSource=this._cfg.storesSource?h(this._cfg.storesSource,e):e;const n=t._versions,r={};let o={};return n.forEach((e=>{h(r,e._cfg.storesSource),o=e._cfg.dbschema={},e._parseStoresSpec(r,o)})),t._dbSchema=o,_n(t,[t._allTables,t,t.Transaction.prototype]),wn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],p(o),o),t._storeNames=p(o),this}upgrade(e){return this._cfg.contentUpgrade=we(this._cfg.contentUpgrade||pe,e),this}}function Tn(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new Yn("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function An(e){return e&&"function"==typeof e.databases}function Cn(e){return lt((function(){return Le.letThrough=!0,e()}))}function In(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function Rn(e){var t=t=>e.next(t),n=o(t),r=o((t=>e.throw(t)));function o(e){return t=>{var o=e(t),i=o.value;return o.done?i:i&&"function"==typeof i.then?i.then(n,r):d(i)?Promise.all(i).then(n,r):n(i)}}return o(t)()}function Nn(e,t,n){var r=arguments.length;if(r<2)throw new se.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];n=o.pop();var i=N(o);return[e,i,n]}function Dn(e,t,n,r,o){return Be.resolve().then((()=>{const i=Le.transless||Le,a=e._createTransaction(t,n,e._dbSchema,r),u={trans:a,transless:i};if(r)a.idbtrans=r.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(r){return r.name===ue.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>Dn(e,t,n,null,o)))):St(r)}const c=H(o);let s;c&&ft();const l=Be.follow((()=>{if(s=o.call(a,a),s)if(c){var e=pt.bind(null,null);s.then(e,e)}else"function"==typeof s.next&&"function"==typeof s.throw&&(s=Rn(s))}),u);return(s&&"function"==typeof s.then?Be.resolve(s).then((e=>a.active?e:St(new se.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):l.then((()=>s))).then((e=>(r&&a._resolve(),a._completion.then((()=>e))))).catch((e=>(a._reject(e),St(e))))}))}function Mn(e,t,n){const r=d(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}const Ln={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const n=e.table(t),{schema:r}=n,o={},i=[];function a(e,t,n){const r=vn(e),u=o[r]=o[r]||[],c=null==e?0:"string"==typeof e?1:e.length,s=t>0,l={...n,isVirtual:s,keyTail:t,keyLength:c,extractKey:hn(e),unique:!s&&n.unique};return u.push(l),l.isPrimaryKey||i.push(l),c>1&&a(2===c?e[0]:e.slice(0,c-1),t+1,n),u.sort(((e,t)=>e.keyTail-t.keyTail)),l}const u=a(r.primaryKey.keyPath,0,r.primaryKey);o[":id"]=[u];for(const e of r.indexes)a(e.keyPath,0,e);function c(t){const n=t.query.index;return n.isVirtual?{...t,query:{index:n,range:(r=t.query.range,o=n.keyTail,{type:1===r.type?2:r.type,lower:Mn(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,o),lowerOpen:!0,upper:Mn(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,o),upperOpen:!0})}}:t;var r,o}const s={...n,schema:{...r,primaryKey:u,indexes:i,getIndexByKeyPath:function(e){const t=o[vn(e)];return t&&t[0]}},count:e=>n.count(c(e)),query:e=>n.query(c(e)),openCursor(t){const{keyTail:r,isVirtual:o,keyLength:i}=t.query.index;return o?n.openCursor(c(t)).then((n=>n&&function(n){const o=Object.create(n,{continue:{value:function(o){null!=o?n.continue(Mn(o,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,i).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,o){n.continuePrimaryKey(Mn(t,e.MAX_KEY,r),o)}},primaryKey:{get:()=>n.primaryKey},key:{get(){const e=n.key;return 1===i?e[0]:e.slice(0,i)}},value:{get:()=>n.value}});return o}(n))):n.openCursor(t)}};return s}}}};function Un(e,t,n,r){return n=n||{},r=r||"",p(e).forEach((o=>{if(v(t,o)){var i=e[o],a=t[o];if("object"==typeof i&&"object"==typeof a&&i&&a){const e=B(i);e!==B(a)?n[r+o]=t[o]:"Object"===e?Un(i,a,n,r+o+"."):i!==a&&(n[r+o]=t[o])}else i!==a&&(n[r+o]=t[o])}else n[r+o]=void 0})),p(t).forEach((o=>{v(e,o)||(n[r+o]=t[o])})),n}const zn={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const n=e.table(t),{primaryKey:r}=n.schema,o={...n,mutate(e){const o=Le.trans,{deleting:i,creating:a,updating:u}=o.table(t).hook;switch(e.type){case"add":if(a.fire===pe)break;return o._promise("readwrite",(()=>c(e)),!0);case"put":if(a.fire===pe&&u.fire===pe)break;return o._promise("readwrite",(()=>c(e)),!0);case"delete":if(i.fire===pe)break;return o._promise("readwrite",(()=>c(e)),!0);case"deleteRange":if(i.fire===pe)break;return o._promise("readwrite",(()=>function(e){return s(e.trans,e.range,1e4)}(e)),!0)}return n.mutate(e);function c(e){const t=Le.trans,o=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(r,e);if(!o)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:o}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,o).then((c=>{const s=o.map(((n,o)=>{const s=c[o],l={onerror:null,onsuccess:null};if("delete"===e.type)i.fire.call(l,n,s,t);else if("add"===e.type||void 0===s){const i=a.fire.call(l,n,e.values[o],t);null==n&&null!=i&&(n=i,e.keys[o]=n,r.outbound||C(e.values[o],r.keyPath,n))}else{const r=Un(s,e.values[o]),i=u.fire.call(l,r,n,s,t);if(i){const t=e.values[o];Object.keys(i).forEach((e=>{v(t,e)?t[e]=i[e]:C(t,e,i[e])}))}}return l}));return n.mutate(e).then((({failures:t,results:n,numFailures:r,lastResult:i})=>{for(let r=0;r<o.length;++r){const i=n?n[r]:o[r],a=s[r];null==i?a.onerror&&a.onerror(t[r]):a.onsuccess&&a.onsuccess("put"===e.type&&c[r]?e.values[r]:i)}return{failures:t,results:n,numFailures:r,lastResult:i}})).catch((e=>(s.forEach((t=>t.onerror&&t.onerror(e))),Promise.reject(e))))}))}function s(e,t,o){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:o}).then((({result:n})=>c({type:"delete",keys:n,trans:e}).then((r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<o?{failures:[],numFailures:0,lastResult:void 0}:s(e,{...t,lower:n[n.length-1],lowerOpen:!0},o)))))}}};return o}})};function Fn(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;const r=[];for(let o=0,i=0;o<t.keys.length&&i<e.length;++o)0===qt(t.keys[o],e[i])&&(r.push(n?U(t.values[o]):t.values[o]),++i);return r.length===e.length?r:null}catch(e){return null}}const Bn={stack:"dbcore",level:-1,create:e=>({table:t=>{const n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);const t=Fn(e.keys,e.trans._cache,"clone"===e.cache);return t?Be.resolve(t):n.getMany(e).then((t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?U(t):t},t)))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function Vn(e){return!("from"in e)}const Wn=function(e,t){if(!this){const t=new Wn;return e&&"d"in e&&h(t,e),t}h(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function qn(e,t,n){const r=qt(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(Vn(e))return h(e,{from:t,to:n,d:1});const o=e.l,i=e.r;if(qt(n,e.from)<0)return o?qn(o,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Zn(e);if(qt(t,e.to)>0)return i?qn(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Zn(e);qt(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),qt(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);const a=!e.r;o&&!e.l&&Kn(e,o),i&&a&&Kn(e,i)}function Kn(e,t){Vn(t)||function e(t,{from:n,to:r,l:o,r:i}){qn(t,n,r),o&&e(t,o),i&&e(t,i)}(e,t)}function Hn(e){let t=Vn(e)?null:{s:0,n:e};return{next(e){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&qt(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||qt(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Zn(e){var t,n;const r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),o=r>1?"r":r<-1?"l":"";if(o){const t="r"===o?"l":"r",n={...e},r=e[o];e.from=r.from,e.to=r.to,e[o]=r[o],n[o]=r[t],e[t]=n,n.d=Gn(n)}e.d=Gn(e)}function Gn({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}g(Wn.prototype,{add(e){return Kn(this,e),this},addKey(e){return qn(this,e,e),this},addKeys(e){return e.forEach((e=>qn(this,e,e))),this},[V](){return Hn(this)}});const Qn={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,n=new Wn(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{const o=e.table(r),{schema:i}=o,{primaryKey:a}=i,{extractKey:u,outbound:c}=a,s={...o,mutate:e=>{const a=e.trans,u=a.mutatedParts||(a.mutatedParts={}),c=e=>{const n=`idb://${t}/${r}/${e}`;return u[n]||(u[n]=new Wn)},s=c(""),l=c(":dels"),{type:f}=e;let[p,h]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[];const m=e.trans._cache;return o.mutate(e).then((e=>{if(d(p)){"delete"!==f&&(p=e.results),s.addKeys(p);const t=Fn(p,m);t||"add"===f||l.addKeys(p),(t||h)&&function(e,t,n,r){t.indexes.forEach((function(t){const o=e(t.name||"");function i(e){return null!=e?t.extractKey(e):null}const a=e=>t.multiEntry&&d(e)?e.forEach((e=>o.addKey(e))):o.addKey(e);(n||r).forEach(((e,t)=>{const o=n&&i(n[t]),u=r&&i(r[t]);0!==qt(o,u)&&(null!=o&&a(o),null!=u&&a(u))}))}))}(c,i,t,h)}else if(p){const e={from:p.lower,to:p.upper};l.add(e),s.add(e)}else s.add(n),l.add(n),i.indexes.forEach((e=>c(e.name).add(n)));return e}))}},l=({query:{index:t,range:n}})=>{var r,o;return[t,new Wn(null!==(r=n.lower)&&void 0!==r?r:e.MIN_KEY,null!==(o=n.upper)&&void 0!==o?o:e.MAX_KEY)]},f={get:e=>[a,new Wn(e.key)],getMany:e=>[a,(new Wn).addKeys(e.keys)],count:l,query:l,openCursor:l};return p(f).forEach((e=>{s[e]=function(i){const{subscr:a}=Le;if(a){const s=e=>{const n=`idb://${t}/${r}/${e}`;return a[n]||(a[n]=new Wn)},l=s(""),p=s(":dels"),[d,h]=f[e](i);if(s(d.name||"").add(h),!d.isPrimaryKey){if("count"!==e){const t="query"===e&&c&&i.values&&o.query({...i,values:!1});return o[e].apply(this,arguments).then((n=>{if("query"===e){if(c&&i.values)return t.then((({result:e})=>(l.addKeys(e),n)));const e=i.values?n.result.map(u):n.result;i.values?l.addKeys(e):p.addKeys(e)}else if("openCursor"===e){const e=n,t=i.values;return e&&Object.create(e,{key:{get:()=>(p.addKey(e.primaryKey),e.key)},primaryKey:{get(){const t=e.primaryKey;return p.addKey(t),t}},value:{get:()=>(t&&l.addKey(e.primaryKey),e.value)}})}return n}))}p.add(n)}}return o[e].apply(this,arguments)}})),s}}}};class Yn{constructor(e,t){this._middlewares={},this.verno=0;const n=Yn.dependencies;this._options=t={addons:Yn.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:r}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const o={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:pe,dbReadyPromise:null,cancelOpen:pe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var i;o.dbReadyPromise=new Be((e=>{o.dbReadyResolve=e})),o.openCanceller=new Be(((e,t)=>{o.cancelOpen=t})),this._state=o,this.name=e,this.on=Dt(this,"populate","blocked","versionchange","close",{ready:[we,pe]}),this.on.ready.subscribe=k(this.on.ready.subscribe,(e=>(t,n)=>{Yn.vip((()=>{const r=this._state;if(r.openComplete)r.dbOpenError||Be.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);const r=this;n||e((function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)}))}}))})),this.Collection=(i=this,Mt(Zt.prototype,(function(e,t){this.db=i;let n=It,r=null;if(t)try{n=t()}catch(e){r=e}const o=e._ctx,a=o.table,u=a.hook.reading.fire;this._ctx={table:a,index:o.index,isPrimKey:!o.index||a.schema.primKey.keyPath&&o.index===a.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:o.or,valueMapper:u!==de?u:null}}))),this.Table=function(e){return Mt(Nt.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Dt(null,{creating:[ye,pe],reading:[he,de],updating:[ge,pe],deleting:[ve,pe]})}))}(this),this.Transaction=function(e){return Mt(sn.prototype,(function(t,n,r,o,i){this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=o,this.idbtrans=null,this.on=Dt(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Be(((e,t)=>{this._resolve=e,this._reject=t})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),St(e)}))}))}(this),this.Version=function(e){return Mt(Pn.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return Mt(on.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};const o=e._deps.indexedDB;if(!o)throw new se.MissingAPI;this._cmp=this._ascending=o.cmp.bind(o),this._descending=(e,t)=>o.cmp(t,e),this._max=(e,t)=>o.cmp(e,t)>0?e:t,this._min=(e,t)=>o.cmp(e,t)<0?e:t,this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()})),this.on("blocked",(e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)})),this._maxKey=dn(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),kt.filter((e=>e.name===this.name&&e!==this&&!e._state.vcFired)).map((t=>t.on("versionchange").fire(e)))},this.use(Ln),this.use(zn),this.use(Qn),this.use(Bn),this.vip=Object.create(this,{_vip:{value:!0}}),r.forEach((e=>e(this)))}version(e){if(isNaN(e)||e<.1)throw new se.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new se.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const t=this._versions;var n=t.filter((t=>t._cfg.version===e))[0];return n||(n=new this.Version(e),t.push(n),t.sort(xn),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||Le.letThrough||this._vip)?e():new Be(((e,t)=>{if(this._state.openComplete)return t(new se.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new se.DatabaseClosed);this.open().catch(pe)}this._state.dbReadyPromise.then(e,t)})).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});const o=this._middlewares[e]||(this._middlewares[e]=[]);return o.push({stack:e,create:t,level:null==n?10:n,name:r}),o.sort(((e,t)=>e.level-t.level)),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((e=>n?e.create!==n:!!t&&e.name!==t))),this}open(){return function(e){const t=e._state,{indexedDB:n}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((()=>t.dbOpenError?St(t.dbOpenError):e));Z&&(t.openCanceller._stackHolder=J()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const r=t.openCanceller;function o(){if(t.openCanceller!==r)throw new se.DatabaseClosed("db.open() was cancelled")}let i=t.dbReadyResolve,a=null,u=!1;return Be.race([r,("undefined"==typeof navigator?Be.resolve():In()).then((()=>new Be(((r,i)=>{if(o(),!n)throw new se.MissingAPI;const c=e.name,s=t.autoSchema?n.open(c):n.open(c,Math.round(10*e.verno));if(!s)throw new se.MissingAPI;s.onerror=an(i),s.onblocked=rt(e._fireOnBlocked),s.onupgradeneeded=rt((r=>{if(a=s.transaction,t.autoSchema&&!e._options.allowEmptyDB){s.onerror=un,a.abort(),s.result.close();const e=n.deleteDatabase(c);e.onsuccess=e.onerror=rt((()=>{i(new se.NoSuchDatabase(`Database ${c} doesnt exist`))}))}else{a.onerror=an(i);var o=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;u=o<1,e._novip.idbdb=s.result,Sn(e,o/10,a,i)}}),i),s.onsuccess=rt((()=>{a=null;const n=e._novip.idbdb=s.result,o=O(n.objectStoreNames);if(o.length>0)try{const r=n.transaction(1===(i=o).length?i[0]:i,"readonly");t.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;const r=e._dbSchema=kn(0,t,n);e._storeNames=O(t.objectStoreNames,0),wn(e,[e._allTables],p(r),r)}(e,n,r):(jn(e,e._dbSchema,r),function(e,t){const n=En(kn(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((e=>e.add.length||e.change.length)))}(e,r)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),bn(e,r)}catch(e){}var i;kt.push(e),n.onversionchange=rt((n=>{t.vcFired=!0,e.on("versionchange").fire(n)})),n.onclose=rt((t=>{e.on("close").fire(t)})),u&&function({indexedDB:e,IDBKeyRange:t},n){!An(e)&&"__dbnames"!==n&&Tn(e,t).put({name:n}).catch(pe)}(e._deps,c),r()}),i)}))))]).then((()=>(o(),t.onReadyBeingFired=[],Be.resolve(Cn((()=>e.on.ready.fire(e.vip)))).then((function n(){if(t.onReadyBeingFired.length>0){let r=t.onReadyBeingFired.reduce(we,pe);return t.onReadyBeingFired=[],Be.resolve(Cn((()=>r(e.vip)))).then(n)}}))))).finally((()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((()=>e)).catch((n=>{t.dbOpenError=n;try{a&&a.abort()}catch(e){}return r===t.openCanceller&&e._close(),St(n)})).finally((()=>{t.openComplete=!0,i()}))}(this)}_close(){const e=this._state,t=kt.indexOf(this);if(t>=0&&kt.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new Be((t=>{e.dbReadyResolve=t})),e.openCanceller=new Be(((t,n)=>{e.cancelOpen=n}))}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new se.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,t=this._state;return new Be(((n,r)=>{const o=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=rt((()=>{!function({indexedDB:e,IDBKeyRange:t},n){!An(e)&&"__dbnames"!==n&&Tn(e,t).delete(n).catch(pe)}(this._deps,this.name),n()})),e.onerror=an(r),e.onblocked=this._fireOnBlocked};if(e)throw new se.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(o):o()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return p(this._allTables).map((e=>this._allTables[e]))}transaction(){const e=Nn.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r=Le.trans;r&&r.db===this&&-1===e.indexOf("!")||(r=null);const o=-1!==e.indexOf("?");let i,a;e=e.replace("!","").replace("?","");try{if(a=t.map((e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||"readonly"===e)i="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new se.InvalidArgument("Invalid transaction mode: "+e);i="readwrite"}if(r){if("readonly"===r.mode&&"readwrite"===i){if(!o)throw new se.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&a.forEach((e=>{if(r&&-1===r.storeNames.indexOf(e)){if(!o)throw new se.SubTransaction("Table "+e+" not included in parent transaction.");r=null}})),o&&r&&!r.active&&(r=null)}}catch(e){return r?r._promise(null,((t,n)=>{n(e)})):St(e)}const u=Dn.bind(null,this,i,a,r,n);return r?r._promise(i,u,"lock"):Le.trans?gt(Le.transless,(()=>this._whenReady(u))):this._whenReady(u)}table(e){if(!v(this._allTables,e))throw new se.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const Jn="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class Xn{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[Jn](){return this}}function er(e,t){return p(t).forEach((n=>{Kn(e[n]||(e[n]=new Wn),t[n])})),e}let tr;try{tr={indexedDB:f.indexedDB||f.mozIndexedDB||f.webkitIndexedDB||f.msIndexedDB,IDBKeyRange:f.IDBKeyRange||f.webkitIDBKeyRange}}catch(f){tr={indexedDB:null,IDBKeyRange:null}}const nr=Yn;function rr(e){let t=or;try{or=!0,cn.storagemutated.fire(e)}finally{or=t}}g(nr,{...fe,delete:e=>new nr(e,{addons:[]}).delete(),exists:e=>new nr(e,{addons:[]}).open().then((e=>(e.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(e){try{return function({indexedDB:e,IDBKeyRange:t}){return An(e)?Promise.resolve(e.databases()).then((e=>e.map((e=>e.name)).filter((e=>"__dbnames"!==e)))):Tn(e,t).toCollection().primaryKeys()}(nr.dependencies).then(e)}catch(e){return St(new se.MissingAPI)}},defineClass:()=>function(e){h(this,e)},ignoreTransaction:e=>Le.trans?gt(Le.transless,e):e(),vip:Cn,async:function(e){return function(){try{var t=Rn(e.apply(this,arguments));return t&&"function"==typeof t.then?t:Be.resolve(t)}catch(e){return St(e)}}},spawn:function(e,t,n){try{var r=Rn(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:Be.resolve(r)}catch(e){return St(e)}},currentTransaction:{get:()=>Le.trans||null},waitFor:function(e,t){const n=Be.resolve("function"==typeof e?nr.ignoreTransaction(e):e).timeout(t||6e4);return Le.trans?Le.trans.waitFor(n):n},Promise:Be,debug:{get:()=>Z,set:e=>{G(e,"dexie"===e?()=>!0:At)}},derive:x,extend:h,props:g,override:k,Events:Dt,on:cn,liveQuery:function(e){return new Xn((t=>{const n=H(e);let r=!1,o={},i={};const a={get closed(){return r},unsubscribe:()=>{r=!0,cn.storagemutated.unsubscribe(l)}};t.start&&t.start(a);let u=!1,c=!1;function s(){return p(i).some((e=>o[e]&&function(e,t){const n=Hn(t);let r=n.next();if(r.done)return!1;let o=r.value;const i=Hn(e);let a=i.next(o.from),u=a.value;for(;!r.done&&!a.done;){if(qt(u.from,o.to)<=0&&qt(u.to,o.from)>=0)return!0;qt(o.from,u.from)<0?o=(r=n.next(u.from)).value:u=(a=i.next(o.from)).value}return!1}(o[e],i[e])))}const l=e=>{er(o,e),s()&&f()},f=()=>{if(u||r)return;o={};const p={},d=function(t){n&&ft();const r=()=>lt(e,{subscr:t,trans:null}),o=Le.trans?gt(Le.transless,r):r();return n&&o.then(pt,pt),o}(p);c||(cn("storagemutated",l),c=!0),u=!0,Promise.resolve(d).then((e=>{u=!1,r||(s()?f():(o={},i=p,t.next&&t.next(e)))}),(e=>{u=!1,t.error&&t.error(e),a.unsubscribe()}))};return f(),a}))},extendObservabilitySet:er,getByKeyPath:A,setByKeyPath:C,delByKeyPath:function(e,t){"string"==typeof t?C(e,t,void 0):"length"in t&&[].map.call(t,(function(t){C(e,t,void 0)}))},shallowClone:I,deepClone:U,getObjectDiff:Un,cmp:qt,asap:P,minKey:-1/0,addons:[],connections:kt,errnames:ue,dependencies:tr,semVer:"3.2.1",version:"3.2.1".split(".").map((e=>parseInt(e))).reduce(((e,t,n)=>e+t/Math.pow(10,2*n)))}),nr.maxKey=dn(nr.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(cn("storagemutated",(e=>{if(!or){let t;jt?(t=document.createEvent("CustomEvent"),t.initCustomEvent("x-storagemutated-1",!0,!0,e)):t=new CustomEvent("x-storagemutated-1",{detail:e}),or=!0,dispatchEvent(t),or=!1}})),addEventListener("x-storagemutated-1",(({detail:e})=>{or||rr(e)})));let or=!1;if("undefined"!=typeof BroadcastChannel){const e=new BroadcastChannel("x-storagemutated-1");cn("storagemutated",(t=>{or||e.postMessage(t)})),e.onmessage=e=>{e.data&&rr(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){cn("storagemutated",(e=>{try{or||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((t=>t.postMessage({type:"x-storagemutated-1",changedParts:e}))))}catch(e){}})),addEventListener("storage",(e=>{if("x-storagemutated-1"===e.key){const t=JSON.parse(e.newValue);t&&rr(t.changedParts)}}));const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",(function({data:e}){e&&"x-storagemutated-1"===e.type&&rr(e.changedParts)}))}function ir(e){return ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ir(e)}function ar(e,t){return!t||"object"!==cr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ur(e,t){return ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ur(e,t)}Be.rejectionMapper=function(e,t){if(!e||e instanceof re||e instanceof TypeError||e instanceof SyntaxError||!e.name||!le[e.name])return e;var n=new le[e.name](t||e.message,e);return"stack"in e&&w(n,"stack",{get:function(){return this.inner.stack}}),n},G(Z,At);var cr=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var sr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ur(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=ir(t);if(n){var o=ir(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return ar(this,e)});function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=r.call(this,"EsmOffline")).version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),e.syncQueue=e.table("syncQueue"),e.dynamicOfflineData=e.table("dynamicOfflineData"),e}return o}(Yn);function lr(){return new sr}function fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pr(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function dr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){pr(i,r,o,a,u,"next",e)}function u(e){pr(i,r,o,a,u,"throw",e)}a(void 0)}))}}function hr(e){return function(e){if(Array.isArray(e))return fr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return fr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var mr={};function yr(){return Object.values(mr)}function vr(e){mr[e.id]&&console.warn('[setupDynamicOfflineDataHandler] Another second handler with the ID "'.concat(e.id,'" was registered. This handler will override the previous one. This could be unintended as the previous handler might run different flows than the newly registered one. If this is the case, ensure that you are setting up the handlers with different IDs.')),mr[e.id]=e}function gr(e){return br.apply(this,arguments)}function br(){return(br=dr(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Rr();case 2:return n=e.sent,e.next=5,wr(n,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wr(e,t){return _r.apply(this,arguments)}function _r(){return _r=dr(a().mark((function e(t,n){var r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n?{type:n,users:t}:{users:t},o=new sr,e.next=4,o.dynamicOfflineData.where(r).toArray().catch(Yn.errnames.DatabaseClosed,(function(){return[]}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)}))),_r.apply(this,arguments)}function xr(e,t){return Sr.apply(this,arguments)}function Sr(){return(Sr=dr(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Rr();case 2:return r=e.sent,e.next=5,Er(r,t,n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Er(e,t,n){return $r.apply(this,arguments)}function $r(){return $r=dr(a().mark((function e(t,n,r){var o,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new sr,e.next=3,o.dynamicOfflineData.get({type:n,identifier:r}).catch(Yn.errnames.DatabaseClosed,(function(){}));case 3:if(i=e.sent){e.next=9;break}return e.next=7,o.dynamicOfflineData.add({users:[t],type:n,identifier:r}).catch(Yn.errnames.DatabaseClosed);case 7:e.next=12;break;case 9:if(i.users.includes(t)){e.next=12;break}return e.next=12,o.dynamicOfflineData.update(i.id,{users:hr(i.users).concat([t])}).catch(Yn.errnames.DatabaseClosed);case 12:case"end":return e.stop()}}),e)}))),$r.apply(this,arguments)}function Or(e,t){return kr.apply(this,arguments)}function kr(){return(kr=dr(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Rr();case 2:return r=e.sent,e.next=5,jr(r,t,n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jr(e,t,n){return Pr.apply(this,arguments)}function Pr(){return Pr=dr(a().mark((function e(t,n,r){var o,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new sr,e.next=3,o.dynamicOfflineData.get({type:n,identifier:r,users:t}).catch(Yn.errnames.DatabaseClosed,(function(){}));case 3:if(!(i=e.sent)){e.next=12;break}if(!(i.users.length>1)){e.next=10;break}return e.next=8,o.dynamicOfflineData.update(i.id,{users:i.users.filter((function(e){return e!==t}))}).catch(Yn.errnames.DatabaseClosed);case 8:e.next=12;break;case 10:return e.next=12,o.dynamicOfflineData.delete(i.id).catch(Yn.errnames.DatabaseClosed);case 12:case"end":return e.stop()}}),e)}))),Pr.apply(this,arguments)}function Tr(e,t){return Ar.apply(this,arguments)}function Ar(){return Ar=dr(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gr(t);case 2:return r=e.sent,e.next=5,Promise.all(r.map(function(){var e=dr(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Cr(t.type,t.identifier,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:case"end":return e.stop()}}),e)}))),Ar.apply(this,arguments)}function Cr(e,t,n){return Ir.apply(this,arguments)}function Ir(){return Ir=dr(a().mark((function e(t,n,r){var o,i,u,c,s,l,f,p,d;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xr(t,n);case 2:return o=new sr,e.next=5,Rr();case 5:return i=e.sent,e.next=8,o.dynamicOfflineData.get({type:t,identifier:n}).catch(Yn.errnames.DatabaseClosed,(function(){}));case 8:if(u=e.sent,c=yr().filter((function(e){return e.type===t})),u){e.next=12;break}return e.abrupt("return");case 12:return e.next=14,Promise.all(c.map(function(){var e=dr(a().mark((function e(t){var o,i,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.sync(n,r),e.abrupt("return",{id:t.id,error:void 0});case 5:return e.prev=5,e.t0=e.catch(0),u=null!==(i=null===(o=e.t0.message)||void 0===o?void 0:o.toString())&&void 0!==i?i:e.t0.toString(),e.abrupt("return",{id:t.id,error:u});case 11:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()));case 14:if(s=e.sent,l=s.filter((function(e){return!e.error})).map((function(e){return e.id})),f=s.filter((function(e){return e.error})).map((function(e){return e.id})),p=s.filter((function(e){return e.error})).map((function(e){return{handlerId:e.id,message:e.error}})),d={syncedOn:new Date,syncedBy:i,succeededHandlers:l,erroredHandlers:f,errors:p},!u.id){e.next=22;break}return e.next=22,o.dynamicOfflineData.update(u.id,{syncState:d}).catch(Yn.errnames.DatabaseClosed);case 22:case"end":return e.stop()}}),e)}))),Ir.apply(this,arguments)}function Rr(){return Nr.apply(this,arguments)}function Nr(){return(Nr=dr(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.getLoggedInUser)();case 2:if(t=e.sent.uuid){e.next=5;break}throw new Error("Using the dynamic offline data API requires a logged in user.");case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dr(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function Mr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Dr(i,r,o,a,u,"next",e)}function u(e){Dr(i,r,o,a,u,"throw",e)}a(void 0)}))}}var Lr=(0,s.createGlobalStore)("offline-patients",{offlinePatientDataSyncState:{},handlers:{}});function Ur(){return Vr(),Lr}function zr(e,t){Vr(),vr({type:"patient",displayName:t.displayName,id:e,isSynced:function(){return Promise.resolve(!0)},sync:function(e,n){return t.onOfflinePatientAdded({patientUuid:e,signal:null!=n?n:(new AbortController).signal})}})}function Fr(e){return Br.apply(this,arguments)}function Br(){return(Br=Mr(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Vr(),e.next=3,Cr("patient",t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vr(){console.warn("The offline patient API has been deprecated and will be removed in a future release. To prevent future crashes, the functions remain available for the moment, but any invocations should be migrated ASAP.")}try{self["workbox:window:6.5.1"]&&_()}catch(d){}function Wr(e,t){return new Promise((function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])}))}function qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}try{self["workbox:core:6.5.1"]&&_()}catch(d){}var Kr=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))};function Hr(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var Zr=function(e,t){this.type=e,Object.assign(this,t)};function Gr(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function Qr(){}var Yr={type:"SKIP_WAITING"};function Jr(e,t){if(!t)return e&&e.then?e.then(Qr):Promise.resolve()}!function(e){var t,n;function r(t,n){var r,o;return void 0===n&&(n={}),(r=e.call(this)||this).nn={},r.tn=0,r.rn=new Kr,r.en=new Kr,r.on=new Kr,r.un=0,r.an=new Set,r.cn=function(){var e=r.fn,t=e.installing;r.tn>0||!Hr(t.scriptURL,r.sn.toString())||performance.now()>r.un+6e4?(r.vn=t,e.removeEventListener("updatefound",r.cn)):(r.hn=t,r.an.add(t),r.rn.resolve(t)),++r.tn,t.addEventListener("statechange",r.ln)},r.ln=function(e){var t=r.fn,n=e.target,o=n.state,i=n===r.vn,a={sw:n,isExternal:i,originalEvent:e};!i&&r.mn&&(a.isUpdate=!0),r.dispatchEvent(new Zr(o,a)),"installed"===o?r.wn=self.setTimeout((function(){"installed"===o&&t.waiting===n&&r.dispatchEvent(new Zr("waiting",a))}),200):"activating"===o&&(clearTimeout(r.wn),i||r.en.resolve(n))},r.dn=function(e){var t=r.hn,n=t!==navigator.serviceWorker.controller;r.dispatchEvent(new Zr("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:r.mn})),n||r.on.resolve(t)},r.gn=(o=function(e){var t=e.data,n=e.ports,o=e.source;return Gr(r.getSW(),(function(){r.an.has(o)&&r.dispatchEvent(new Zr("message",{data:t,originalEvent:e,ports:n,sw:o}))}))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(o.apply(this,e))}catch(e){return Promise.reject(e)}}),r.sn=t,r.nn=n,navigator.serviceWorker.addEventListener("message",r.gn),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o,i=r.prototype;i.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var r=this;return function(e,t){var n=e();return n&&n.then?n.then(t):t()}((function(){if(!n&&"complete"!==document.readyState)return Jr(new Promise((function(e){return window.addEventListener("load",e)})))}),(function(){return r.mn=Boolean(navigator.serviceWorker.controller),r.yn=r.pn(),Gr(r.bn(),(function(e){r.fn=e,r.yn&&(r.hn=r.yn,r.en.resolve(r.yn),r.on.resolve(r.yn),r.yn.addEventListener("statechange",r.ln,{once:!0}));var t=r.fn.waiting;return t&&Hr(t.scriptURL,r.sn.toString())&&(r.hn=t,Promise.resolve().then((function(){r.dispatchEvent(new Zr("waiting",{sw:t,wasWaitingBeforeRegister:!0}))})).then((function(){}))),r.hn&&(r.rn.resolve(r.hn),r.an.add(r.hn)),r.fn.addEventListener("updatefound",r.cn),navigator.serviceWorker.addEventListener("controllerchange",r.dn),r.fn}))}))}catch(e){return Promise.reject(e)}},i.update=function(){try{return this.fn?Jr(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},i.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},i.messageSW=function(e){try{return Gr(this.getSW(),(function(t){return Wr(t,e)}))}catch(e){return Promise.reject(e)}},i.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&Wr(this.fn.waiting,Yr)},i.pn=function(){var e=navigator.serviceWorker.controller;return e&&Hr(e.scriptURL,this.sn.toString())?e:void 0},i.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return Gr(navigator.serviceWorker.register(e.sn,e.nn),(function(t){return e.un=performance.now(),t}))}),(function(e){throw e}))}catch(e){return Promise.reject(e)}},(o=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,o)}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qr(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(this.Sn(e.type));!(t=n()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}());function Xr(){return Promise.resolve(void 0)}function eo(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function to(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){eo(i,r,o,a,u,"next",e)}function u(e){eo(i,r,o,a,u,"throw",e)}a(void 0)}))}}function no(e){return ro.apply(this,arguments)}function ro(){return(ro=to(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xr();case 2:if(!(n=e.sent)){e.next=9;break}return e.next=6,n.messageSW(t);case 6:e.t0=e.sent,e.next=10;break;case 9:e.t0={success:!1,result:void 0,error:"No service worker has been registered. This is typically the case when the application has been built without offline-related features."};case 10:return e.abrupt("return",e.t0);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var oo,io="x-omrs-offline-response-body",ao="x-omrs-offline-response-status",uo="x-omrs-offline-caching-strategy",co=new Uint8Array(16);function so(){if(!oo&&!(oo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oo(co)}const lo=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,fo=function(e){return"string"==typeof e&&lo.test(e)};for(var po=[],ho=0;ho<256;++ho)po.push((ho+256).toString(16).substr(1));const mo=function(e,t,n){var r=(e=e||{}).random||(e.rng||so)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(po[e[t+0]]+po[e[t+1]]+po[e[t+2]]+po[e[t+3]]+"-"+po[e[t+4]]+po[e[t+5]]+"-"+po[e[t+6]]+po[e[t+7]]+"-"+po[e[t+8]]+po[e[t+9]]+"-"+po[e[t+10]]+po[e[t+11]]+po[e[t+12]]+po[e[t+13]]+po[e[t+14]]+po[e[t+15]]).toLowerCase();if(!fo(n))throw TypeError("Stringified UUID is invalid");return n}(r)};var yo="OFFLINE+";function vo(){return yo+mo()}function go(e){return e.startsWith(yo)}function bo(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function wo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){bo(i,r,o,a,u,"next",e)}function u(e){bo(i,r,o,a,u,"throw",e)}a(void 0)}))}}var _o=new sr,xo={};function So(){return Eo.apply(this,arguments)}function Eo(){return(Eo=wo(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.getLoggedInUser)();case 2:return t=e.sent,e.abrupt("return",(null==t?void 0:t.uuid)||"*");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $o(e,t,n,r){return Oo.apply(this,arguments)}function Oo(){return(Oo=wo(a().mark((function e(t,n,r,o){var i,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(i=o&&o.id)){e.next=4;break}return e.next=4,_o.syncQueue.where({type:n,userId:t}).filter((function(e){return(null==e?void 0:e.descriptor.id)===i})).delete().catch(Yn.errnames.DatabaseClosed);case 4:return e.next=6,_o.syncQueue.add({type:n,content:r,userId:t,descriptor:o||{},createdOn:new Date}).catch(Yn.errnames.DatabaseClosed,(function(){return-1}));case 6:return u=e.sent,e.abrupt("return",u);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ko(e,t,n){return jo.apply(this,arguments)}function jo(){return(jo=wo(a().mark((function e(t,n,r){var o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,So();case 2:return o=e.sent,e.next=5,$o(o,t,n,r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Po(e,t){return To.apply(this,arguments)}function To(){return(To=wo(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ao(t,n);case 2:return r=e.sent,e.abrupt("return",r.map((function(e){return e.content})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ao(e,t){return Co.apply(this,arguments)}function Co(){return(Co=wo(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n?{type:n,userId:t}:{userId:t},e.next=3,_o.syncQueue.where(r).toArray().catch(Yn.errnames.DatabaseClosed,(function(){return[]}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Io(e){return Ro.apply(this,arguments)}function Ro(){return(Ro=wo(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,So();case 2:return n=e.sent,e.next=5,Po(n,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function No(e){return Do.apply(this,arguments)}function Do(){return(Do=wo(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,So();case 2:return n=e.sent,e.next=5,Ao(n,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mo(e){return Lo.apply(this,arguments)}function Lo(){return(Lo=wo(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_o.syncQueue.get(t).catch(Yn.errnames.DatabaseClosed,(function(){}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Uo(e){var t;return!!(null===(t=xo[e])||void 0===t?void 0:t.options.onBeginEditSyncItem)}function zo(e){return Fo.apply(this,arguments)}function Fo(){return(Fo=wo(a().mark((function e(t){var n,r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Mo(t);case 3:if(r=e.sent){e.next=6;break}throw new Error("No sync item with the ID ".concat(t," exists."));case 6:if(o=null===(n=xo[r.type])||void 0===n?void 0:n.options.onBeginEditSyncItem){e.next=9;break}throw new Error("A sync item with the ID ".concat(t,' exists, but the associated handler (if one exists) doesn\'t support editing the item. You can avoid this error by either verifying that sync items of this type can be edited via the "canEditSynchronizationItemsOfType(type: string)" function or alternatively ensure that the synchronizaton handler for sync items of type "').concat(r.type,'" supports editing items.'));case 9:o(r);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bo(e){return Vo.apply(this,arguments)}function Vo(){return(Vo=wo(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_o.syncQueue.delete(t).catch(Yn.errnames.DatabaseClosed);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};xo[e]={type:e,dependsOn:t,process:n,options:r}}(0,s.createGlobalStore)("offline-synchronization",{})},4077:(e,t,n)=>{function r(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}e=n.nmd(e);var o=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};System.register(["react","@openmrs/esm-config","@openmrs/esm-extensions","@openmrs/esm-globals","react-dom","i18next","react-i18next","@openmrs/esm-api","dayjs"],(function(i,a){var u={},c={},s={},l={},f={},p={},d={},h={},m={};return{setters:[function(e){u.createContext=e.createContext,u.createElement=e.createElement,u.default=e.default,u.useCallback=e.useCallback,u.useContext=e.useContext,u.useDebugValue=e.useDebugValue,u.useEffect=e.useEffect,u.useLayoutEffect=e.useLayoutEffect,u.useMemo=e.useMemo,u.useReducer=e.useReducer,u.useRef=e.useRef,u.useState=e.useState},function(e){c.getConfigStore=e.getConfigStore,c.getExtensionConfigFromStore=e.getExtensionConfigFromStore,c.getExtensionsConfigStore=e.getExtensionsConfigStore,c.interpolateUrl=e.interpolateUrl,c.navigate=e.navigate},function(e){s.getConnectedExtensions=e.getConnectedExtensions,s.getExtensionInternalStore=e.getExtensionInternalStore,s.getExtensionStore=e.getExtensionStore,s.registerExtensionSlot=e.registerExtensionSlot,s.renderExtension=e.renderExtension},function(e){l.subscribeConnectivityChanged=e.subscribeConnectivityChanged},function(e){f.default=e.default},function(e){p.default=e.default},function(e){d.I18nextProvider=e.I18nextProvider},function(e){h.defaultVisitCustomRepresentation=e.defaultVisitCustomRepresentation,h.fetchCurrentPatient=e.fetchCurrentPatient,h.getCurrentUser=e.getCurrentUser,h.getLocations=e.getLocations,h.getSessionStore=e.getSessionStore,h.getVisitTypes=e.getVisitTypes,h.openmrsFetch=e.openmrsFetch,h.userHasAccess=e.userHasAccess},function(e){m.default=e.default}],execute:function(){i(function(){var i={332:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}}()},891:function(e,t,n){var i;e=n.nmd(e),function(){var a,u=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},c=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r},s=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},l=function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e},f=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},p=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i},d=function(e,t){return!(null==e||!e.length)&&x(e,t,0)>-1},h=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1},m=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},y=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},v=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n},g=function(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n},b=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},w=function(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r},_=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1},x=function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):_(e,E,n)},S=function(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1},E=function(e){return e!=e},$=function(e,t){var n=null==e?0:e.length;return n?P(e,t)/n:ee},O=function(e){return function(t){return null==t?a:t[e]}},k=function(e){return function(t){return null==e?a:e[t]}},j=function(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n},P=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==a&&(n=n===a?i:n+i)}return n},T=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},A=function(e){return e?e.slice(0,K(e)+1).replace(qe,""):e},C=function(e){return function(t){return e(t)}},I=function(e,t){return m(t,(function(t){return e[t]}))},R=function(e,t){return e.has(t)},N=function(e,t){for(var n=-1,r=e.length;++n<r&&x(t,e[n],0)>-1;);return n},D=function(e,t){for(var n=e.length;n--&&x(t,e[n],0)>-1;);return n},M=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r},L=function(e){return"\\"+Bt[e]},U=function(e){return Dt.test(e)},z=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},F=function(e,t){return function(n){return e(t(n))}},B=function(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==G||(e[n]=G,i[o++]=n)}return i},V=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},W=function(e){return U(e)?function(e){for(var t=Rt.lastIndex=0;Rt.test(e);)++t;return t}(e):an(e)},q=function(e){return U(e)?e.match(Rt)||[]:e.split("")},K=function(e){for(var t=e.length;t--&&Ke.test(e.charAt(t)););return t},H="Expected a function",Z="__lodash_hash_undefined__",G="__lodash_placeholder__",Q=32,Y=128,J=1/0,X=9007199254740991,ee=NaN,te=4294967295,ne=[["ary",Y],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",Q],["partialRight",64],["rearg",256]],re="[object Arguments]",oe="[object Array]",ie="[object Boolean]",ae="[object Date]",ue="[object Error]",ce="[object Function]",se="[object GeneratorFunction]",le="[object Map]",fe="[object Number]",pe="[object Object]",de="[object Promise]",he="[object RegExp]",me="[object Set]",ye="[object String]",ve="[object Symbol]",ge="[object WeakMap]",be="[object ArrayBuffer]",we="[object DataView]",_e="[object Float32Array]",xe="[object Float64Array]",Se="[object Int8Array]",Ee="[object Int16Array]",$e="[object Int32Array]",Oe="[object Uint8Array]",ke="[object Uint8ClampedArray]",je="[object Uint16Array]",Pe="[object Uint32Array]",Te=/\b__p \+= '';/g,Ae=/\b(__p \+=) '' \+/g,Ce=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ie=/&(?:amp|lt|gt|quot|#39);/g,Re=/[&<>"']/g,Ne=RegExp(Ie.source),De=RegExp(Re.source),Me=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,Ue=/<%=([\s\S]+?)%>/g,ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fe=/^\w*$/,Be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ve=/[\\^$.*+?()[\]{}|]/g,We=RegExp(Ve.source),qe=/^\s+/,Ke=/\s/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Ge=/,? & /,Qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ye=/[()=,{}\[\]\/\s]/,Je=/\\(\\)?/g,Xe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,et=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^\[object .+?Constructor\]$/,ot=/^0o[0-7]+$/i,it=/^(?:0|[1-9]\d*)$/,at=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ut=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,st="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",lt="a-z\\xdf-\\xf6\\xf8-\\xff",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dt="["+pt+"]",ht="["+st+"]",mt="\\d+",yt="["+lt+"]",vt="[^\ud800-\udfff"+pt+mt+"\\u2700-\\u27bf"+lt+ft+"]",gt="\ud83c[\udffb-\udfff]",bt="[^\ud800-\udfff]",wt="(?:\ud83c[\udde6-\uddff]){2}",_t="[\ud800-\udbff][\udc00-\udfff]",xt="["+ft+"]",St="(?:"+yt+"|"+vt+")",Et="(?:"+xt+"|"+vt+")",$t="(?:['’](?:d|ll|m|re|s|t|ve))?",Ot="(?:['’](?:D|LL|M|RE|S|T|VE))?",kt="(?:"+ht+"|"+gt+")?",jt="[\\ufe0e\\ufe0f]?",Pt=jt+kt+"(?:\\u200d(?:"+[bt,wt,_t].join("|")+")"+jt+kt+")*",Tt="(?:"+["[\\u2700-\\u27bf]",wt,_t].join("|")+")"+Pt,At="(?:"+[bt+ht+"?",ht,wt,_t,"[\ud800-\udfff]"].join("|")+")",Ct=RegExp("['’]","g"),It=RegExp(ht,"g"),Rt=RegExp(gt+"(?="+gt+")|"+At+Pt,"g"),Nt=RegExp([xt+"?"+yt+"+"+$t+"(?="+[dt,xt,"$"].join("|")+")",Et+"+"+Ot+"(?="+[dt,xt+St,"$"].join("|")+")",xt+"?"+St+"+"+$t,xt+"+"+Ot,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mt,Tt].join("|"),"g"),Dt=RegExp("[\\u200d\ud800-\udfff"+st+"\\ufe0e\\ufe0f]"),Mt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ut=-1,zt={};zt[_e]=zt[xe]=zt[Se]=zt[Ee]=zt[$e]=zt[Oe]=zt[ke]=zt[je]=zt[Pe]=!0,zt[re]=zt[oe]=zt[be]=zt[ie]=zt[we]=zt[ae]=zt[ue]=zt[ce]=zt[le]=zt[fe]=zt[pe]=zt[he]=zt[me]=zt[ye]=zt[ge]=!1;var Ft={};Ft[re]=Ft[oe]=Ft[be]=Ft[we]=Ft[ie]=Ft[ae]=Ft[_e]=Ft[xe]=Ft[Se]=Ft[Ee]=Ft[$e]=Ft[le]=Ft[fe]=Ft[pe]=Ft[he]=Ft[me]=Ft[ye]=Ft[ve]=Ft[Oe]=Ft[ke]=Ft[je]=Ft[Pe]=!0,Ft[ue]=Ft[ce]=Ft[ge]=!1;var Bt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vt=parseFloat,Wt=parseInt,qt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Kt="object"==typeof self&&self&&self.Object===Object&&self,Ht=qt||Kt||Function("return this")(),Zt=t&&!t.nodeType&&t,Gt=Zt&&e&&!e.nodeType&&e,Qt=Gt&&Gt.exports===Zt,Yt=Qt&&qt.process,Jt=function(){try{return Gt&&Gt.require&&Gt.require("util").types||Yt&&Yt.binding&&Yt.binding("util")}catch(e){}}(),Xt=Jt&&Jt.isArrayBuffer,en=Jt&&Jt.isDate,tn=Jt&&Jt.isMap,nn=Jt&&Jt.isRegExp,rn=Jt&&Jt.isSet,on=Jt&&Jt.isTypedArray,an=O("length"),un=k({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),cn=k({"&":"&","<":"<",">":">",'"':""","'":"'"}),sn=k({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ln=function e(t){var n,i,k=function(e){if(To(e)&&!Tu(e)&&!r(e,lt)){if(r(e,st))return e;if(bi.call(e,"__wrapped__"))return no(e)}return new st(e)},Ke=function(){},st=function(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a},lt=function(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]},ft=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},pt=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},dt=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},ht=function(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new dt;++t<n;)this.add(e[t])},mt=function(e){var t=this.__data__=new pt(e);this.size=t.size},yt=function(e,t){var n=Tu(e),r=!n&&Pu(e),o=!n&&!r&&Cu(e),i=!n&&!r&&!o&&Mu(e),a=n||r||o||i,u=a?T(e.length,pi):[],c=u.length;for(var s in e)!t&&!bi.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||zr(s,c))||u.push(s);return u},vt=function(e){var t=e.length;return t?e[jn(0,t-1)]:a},gt=function(e,t){return Xr(or(e),kt(t,0,e.length))},bt=function(e){return Xr(or(e))},wt=function(e,t,n){(n!==a&&!xo(e[t],n)||n===a&&!(t in e))&&$t(e,t,n)},_t=function(e,t,n){var r=e[t];bi.call(e,t)&&xo(r,n)&&(n!==a||t in e)||$t(e,t,n)},xt=function(e,t){for(var n=e.length;n--;)if(xo(e[n][0],t))return n;return-1},St=function(e,t,n,r){return ga(e,(function(e,o,i){t(r,e,n(e),i)})),r},Et=function(e,t){return e&&ir(t,Wo(t),e)},$t=function(e,t,n){"__proto__"==t&&Mi?Mi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Ot=function(e,t){for(var n=-1,r=t.length,o=ii(r),i=null==e;++n<r;)o[n]=i?a:Bo(e,t[n]);return o},kt=function(e,t,n){return e==e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e},jt=function(e,t,n){var r=n.length;if(null==e)return!r;for(e=li(e);r--;){var o=n[r],i=t[o],u=e[o];if(u===a&&!(o in e)||!i(u))return!1}return!0},Pt=function(e,t,n){if("function"!=typeof e)throw new di(H);return Fa((function(){e.apply(a,n)}),t)},Tt=function(e,t,n,r){var o=-1,i=d,a=!0,u=e.length,c=[],s=t.length;if(!u)return c;n&&(t=m(t,C(n))),r?(i=h,a=!1):t.length>=200&&(i=R,a=!1,t=new ht(t));e:for(;++o<u;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=s;p--;)if(t[p]===f)continue e;c.push(l)}else i(t,f,r)||c.push(l)}return c},At=function(e,t){var n=!0;return ga(e,(function(e,r,o){return n=!!t(e,r,o)})),n},Rt=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],u=t(i);if(null!=u&&(c===a?u==u&&!Ro(u):n(u,c)))var c=u,s=i}return s},Dt=function(e,t){var n=[];return ga(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n},Bt=function(e,t){return e&&_a(e,t,Wo)},qt=function(e,t){return e&&xa(e,t,Wo)},Kt=function(e,t){return p(t,(function(t){return Oo(e[t])}))},Zt=function(e,t){for(var n=0,r=(t=Qn(t,e)).length;null!=e&&n<r;)e=e[eo(t[n++])];return n&&n==r?e:a},Gt=function(e,t,n){var r=t(e);return Tu(e)?r:y(r,n(e))},Yt=function(e){return null==e?e===a?"[object Undefined]":"[object Null]":Di&&Di in li(e)?function(e){var t=bi.call(e,Di),n=e[Di];try{e[Di]=a;var r=!0}catch(e){}var o=xi.call(e);return r&&(t?e[Di]=n:delete e[Di]),o}(e):(t=e,xi.call(t));var t},Jt=function(e,t){return e>t},an=function(e,t){return null!=e&&bi.call(e,t)},fn=function(e,t){return null!=e&&t in li(e)},pn=function(e,t,n){for(var r=n?h:d,o=e[0].length,i=e.length,u=i,c=ii(i),s=1/0,l=[];u--;){var f=e[u];u&&t&&(f=m(f,C(t))),s=Gi(f.length,s),c[u]=!n&&(t||o>=120&&f.length>=120)?new ht(u&&f):a}f=e[0];var p=-1,y=c[0];e:for(;++p<o&&l.length<s;){var v=f[p],g=t?t(v):v;if(v=n||0!==v?v:0,!(y?R(y,g):r(l,g,n))){for(u=i;--u;){var b=c[u];if(!(b?R(b,g):r(e[u],g,n)))continue e}y&&y.push(g),l.push(v)}}return l},dn=function(e,t,n){var r=null==(e=Zr(e,t=Qn(t,e)))?e:e[eo(uo(t))];return null==r?a:u(r,e,n)},hn=function(e){return To(e)&&Yt(e)==re},mn=function(e,t,n,r){var o=n.length,i=o,u=!r;if(null==e)return!i;for(e=li(e);o--;){var c=n[o];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<i;){var s=(c=n[o])[0],l=e[s],f=c[1];if(u&&c[2]){if(l===a&&!(s in e))return!1}else{var p=new mt;if(r)var d=r(l,f,s,e,t,p);if(!(d===a?Sa(f,l,3,r,p):d))return!1}}return!0},yn=function(e){return!(!Po(e)||(t=e,_i&&_i in t))&&(Oo(e)?$i:rt).test(to(e));var t},vn=function(e){return"function"==typeof e?e:null==e?Jo:"object"==typeof e?Tu(e)?xn(e[0],e[1]):_n(e):ni(e)},gn=function(e){if(!Wr(e))return Hi(e);var t=[];for(var n in li(e))bi.call(e,n)&&"constructor"!=n&&t.push(n);return t},bn=function(e,t){return e<t},wn=function(e,t){var n=-1,r=So(e)?ii(e.length):[];return ga(e,(function(e,o,i){r[++n]=t(e,o,i)})),r},_n=function(e){var t=Nr(e);return 1==t.length&&t[0][2]?Kr(t[0][0],t[0][1]):function(n){return n===e||mn(n,e,t)}},xn=function(e,t){return Br(e)&&qr(t)?Kr(eo(e),t):function(n){var r=Bo(n,e);return r===a&&r===t?Vo(n,e):Sa(t,r,3)}},Sn=function(e,t){var n=e.length;if(n)return zr(t+=t<0?n:0,n)?e[t]:a},En=function(e,t,n){t=t.length?m(t,(function(e){return Tu(e)?function(t){return Zt(t,1===e.length?e[0]:e)}:e})):[Jo];var r=-1;return t=m(t,C(Ir())),function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var c=tr(o[r],i[r]);if(c)return r>=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(wn(e,(function(e,n,o){return{criteria:m(t,(function(t){return t(e)})),index:++r,value:e}})))},$n=function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=Zt(e,a);n(u,a)&&In(i,Qn(a,e),u)}return i},On=function(e,t,n,r){var o=r?S:x,i=-1,a=t.length,u=e;for(e===t&&(t=or(t)),n&&(u=m(e,C(n)));++i<a;)for(var c=0,s=t[i],l=n?n(s):s;(c=o(u,l,c,r))>-1;)u!==e&&Ii.call(u,c,1),Ii.call(e,c,1);return e},kn=function(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;zr(o)?Ii.call(e,o,1):Bn(e,o)}}return e},jn=function(e,t){return e+Bi(Ji()*(t-e+1))},Pn=function(e,t){var n="";if(!e||t<1||t>X)return n;do{t%2&&(n+=e),(t=Bi(t/2))&&(e+=e)}while(t);return n},Tn=function(e,t){return Ba(Hr(e,t,Jo),e+"")},An=function(e){return vt(Ho(e))},Cn=function(e,t){var n=Ho(e);return Xr(n,kt(t,0,n.length))},In=function(e,t,n,r){if(!Po(e))return e;for(var o=-1,i=(t=Qn(t,e)).length,u=i-1,c=e;null!=c&&++o<i;){var s=eo(t[o]),l=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(o!=u){var f=c[s];(l=r?r(f,s,c):a)===a&&(l=Po(f)?f:zr(t[o+1])?[]:{})}_t(c,s,l),c=c[s]}return e},Rn=function(e){return Xr(Ho(e))},Nn=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=ii(o);++r<o;)i[r]=e[r+t];return i},Dn=function(e,t){var n;return ga(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},Mn=function(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Ro(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Ln(e,t,Jo,n)},Ln=function(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var u=(t=n(t))!=t,c=null===t,s=Ro(t),l=t===a;o<i;){var f=Bi((o+i)/2),p=n(e[f]),d=p!==a,h=null===p,m=p==p,y=Ro(p);if(u)var v=r||m;else v=l?m&&(r||d):c?m&&d&&(r||!h):s?m&&d&&!h&&(r||!y):!h&&!y&&(r?p<=t:p<t);v?o=f+1:i=f}return Gi(i,4294967294)},Un=function(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!xo(u,c)){var c=u;i[o++]=0===a?0:a}}return i},zn=function(e){return"number"==typeof e?e:Ro(e)?ee:+e},Fn=function(e,t,n){var r=-1,o=d,i=e.length,a=!0,u=[],c=u;if(n)a=!1,o=h;else if(i>=200){var s=t?null:Aa(e);if(s)return V(s);a=!1,o=R,c=new ht}else c=t?[]:u;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=c.length;p--;)if(c[p]===f)continue e;t&&c.push(f),u.push(l)}else o(c,f,n)||(c!==u&&c.push(f),u.push(l))}return u},Bn=function(e,t){return null==(e=Zr(e,t=Qn(t,e)))||delete e[eo(uo(t))]},Vn=function(e,t,n,r){return In(e,t,n(Zt(e,t)),r)},Wn=function(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Nn(e,r?0:i,r?i+1:o):Nn(e,r?i+1:0,r?o:i)},qn=function(e,t){var n=e;return r(n,lt)&&(n=n.value()),v(t,(function(e,t){return t.func.apply(t.thisArg,y([e],t.args))}),n)},Kn=function(e,t,n){var r=e.length;if(r<2)return r?Fn(e[0]):[];for(var o=-1,i=ii(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=Tt(i[o]||a,e[u],t,n));return Fn(wa(i,1),t,n)},Hn=function(e,t,n){for(var r=-1,o=e.length,i=t.length,u={};++r<o;){var c=r<i?t[r]:a;n(u,e[r],c)}return u},Zn=function(e){return Eo(e)?e:[]},Gn=function(e){return"function"==typeof e?e:Jo},Qn=function(e,t){return Tu(e)?e:Br(e,t)?[e]:Va(Fo(e))},Yn=function(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:Nn(e,t,n)},Jn=function(e,t){if(t)return e.slice();var n=e.length,r=Pi?Pi(n):new e.constructor(n);return e.copy(r),r},Xn=function(e){var t=new e.constructor(e.byteLength);return new ji(t).set(new ji(e)),t},er=function(e,t){var n=t?Xn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},tr=function(e,t){if(e!==t){var n=e!==a,r=null===e,o=e==e,i=Ro(e),u=t!==a,c=null===t,s=t==t,l=Ro(t);if(!c&&!l&&!i&&e>t||i&&u&&s&&!c&&!l||r&&u&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||c&&n&&o||!u&&o||!s)return-1}return 0},nr=function(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,c=t.length,s=Zi(i-a,0),l=ii(c+s),f=!r;++u<c;)l[u]=t[u];for(;++o<a;)(f||o<i)&&(l[n[o]]=e[o]);for(;s--;)l[u++]=e[o++];return l},rr=function(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,c=-1,s=t.length,l=Zi(i-u,0),f=ii(l+s),p=!r;++o<l;)f[o]=e[o];for(var d=o;++c<s;)f[d+c]=t[c];for(;++a<u;)(p||o<i)&&(f[d+n[a]]=e[o++]);return f},or=function(e,t){var n=-1,r=e.length;for(t||(t=ii(r));++n<r;)t[n]=e[n];return t},ir=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,u=t.length;++i<u;){var c=t[i],s=r?r(n[c],e[c],c,n,e):a;s===a&&(s=e[c]),o?$t(n,c,s):_t(n,c,s)}return n},ar=function(e,t){return function(n,r){var o=Tu(n)?c:St,i=t?t():{};return o(n,e,Ir(r,2),i)}},ur=function(e){return Tn((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:a,u=o>2?n[2]:a;for(i=e.length>3&&"function"==typeof i?(o--,i):a,u&&Fr(n[0],n[1],u)&&(i=o<3?a:i,o=1),t=li(t);++r<o;){var c=n[r];c&&e(t,c,r,i)}return t}))},cr=function(e,t){return function(n,r){if(null==n)return n;if(!So(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=li(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}},sr=function(e){return function(t,n,r){for(var o=-1,i=li(t),a=r(t),u=a.length;u--;){var c=a[e?u:++o];if(!1===n(i[c],c,i))break}return t}},lr=function(e){return function(t){var n=U(t=Fo(t))?q(t):a,r=n?n[0]:t.charAt(0),o=n?Yn(n,1).join(""):t.slice(1);return r[e]()+o}},fr=function(e){return function(t){return v(Qo(Go(t).replace(Ct,"")),e,"")}},pr=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ya(e.prototype),r=e.apply(n,t);return Po(r)?r:n}},dr=function(e){return function(t,n,r){var o=li(t);if(!So(t)){var i=Ir(n,3);t=Wo(t),n=function(e){return i(o[e],e,o)}}var u=e(t,n,r);return u>-1?o[i?t[u]:u]:a}},hr=function(e){return jr((function(t){var n=t.length,r=n,o=st.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new di(H);if(o&&!u&&"wrapper"==Ar(i))var u=new st([],!0)}for(r=u?r:n;++r<n;){var c=Ar(i=t[r]),s="wrapper"==c?Ia(i):a;u=s&&Vr(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?u[Ar(s[0])].apply(u,s[3]):1==i.length&&Vr(i)?u[c]():u.thru(i)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Tu(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))},mr=function(e,t){return function(n,r){return o=n,i=e,a=t(r),u={},Bt(o,(function(e,t,n){i(u,a(e),t,n)})),u;var o,i,a,u}},yr=function(e,t){return function(n,r){var o;if(n===a&&r===a)return t;if(n!==a&&(o=n),r!==a){if(o===a)return r;"string"==typeof n||"string"==typeof r?(n=ka(n),r=ka(r)):(n=zn(n),r=zn(r)),o=e(n,r)}return o}},vr=function(e){return jr((function(t){return t=m(t,C(Ir())),Tn((function(n){var r=this;return e(t,(function(e){return u(e,r,n)}))}))}))},gr=function(e,t){var n=(t=t===a?" ":ka(t)).length;if(n<2)return n?Pn(t,e):t;var r=Pn(t,Fi(e/W(t)));return U(t)?Yn(q(r),0,e).join(""):r.slice(0,e)},br=function(e){return function(t,n,r){return r&&"number"!=typeof r&&Fr(t,n,r)&&(n=r=a),t=Do(t),n===a?(n=t,t=0):n=Do(n),function(e,t,n,r){for(var o=-1,i=Zi(Fi((t-e)/(n||1)),0),a=ii(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=r===a?t<n?1:-1:Do(r),e)}},wr=function(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Uo(t),n=Uo(n)),e(t,n)}},_r=function(e,t,n,r,o,i,u,c,s,l){var f=8&t;t|=f?Q:64,4&(t&=~(f?64:Q))||(t&=-4);var p=[e,t,o,f?i:a,f?u:a,f?a:i,f?a:u,c,s,l],d=n.apply(a,p);return Vr(e)&&za(d,p),d.placeholder=r,Yr(d,e,t)},xr=function(e){var t=si[e];return function(e,n){if(e=Uo(e),(n=null==n?0:Gi(Mo(n),292))&&qi(e)){var r=(Fo(e)+"e").split("e");return+((r=(Fo(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}},Sr=function(e){return function(t){var n,r,o=Da(t);return o==le?z(t):o==me?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):(n=t,r=e(t),m(r,(function(e){return[e,n[e]]})))}},Er=function(e,t,n,o,i,c,s,l){var f=2&t;if(!f&&"function"!=typeof e)throw new di(H);var p=o?o.length:0;if(p||(t&=-97,o=i=a),s=s===a?s:Zi(Mo(s),0),l=l===a?l:Mo(l),p-=i?i.length:0,64&t){var d=o,h=i;o=i=a}var m,y,v,g,b=f?a:Ia(e),w=[e,t,n,o,i,d,h,c,s,l];if(b&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==Y&&8==n||r==Y&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?nr(c,u,t[4]):u,e[4]=c?B(e[3],G):t[4]}(u=t[5])&&(c=e[5],e[5]=c?rr(c,u,t[6]):u,e[6]=c?B(e[5],G):t[6]),(u=t[7])&&(e[7]=u),r&Y&&(e[8]=null==e[8]?t[8]:Gi(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(w,b),e=w[0],t=w[1],n=w[2],o=w[3],i=w[4],!(l=w[9]=w[9]===a?f?0:e.length:Zi(w[9]-p,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?(y=t,v=l,g=pr(m=e),function e(){for(var t=arguments.length,n=ii(t),o=t,i=Cr(e);o--;)n[o]=arguments[o];var c=t<3&&n[0]!==i&&n[t-1]!==i?[]:B(n,i);return(t-=c.length)<v?_r(m,y,Ta,e.placeholder,a,n,c,a,a,v-t):u(this&&this!==Ht&&r(this,e)?g:m,this,n)}):t!=Q&&33!=t||i.length?Ta.apply(a,w):function(e,t,n,o){var i=1&t,a=pr(e);return function t(){for(var c=-1,s=arguments.length,l=-1,f=o.length,p=ii(f+s),d=this&&this!==Ht&&r(this,t)?a:e;++l<f;)p[l]=o[l];for(;s--;)p[l++]=arguments[++c];return u(d,i?n:this,p)}}(e,t,n,o);else var _=function(e,t,n){var o=1&t,i=pr(e);return function t(){return(this&&this!==Ht&&r(this,t)?i:e).apply(o?n:this,arguments)}}(e,t,n);return Yr((b?$a:za)(_,w),e,t)},$r=function(e,t,n,r){return e===a||xo(e,yi[n])&&!bi.call(r,n)?t:e},Or=function(e){return Co(e)?a:e},kr=function(e,t,n,r,o,i){var u=1&n,c=e.length,s=t.length;if(c!=s&&!(u&&s>c))return!1;var l=i.get(e),f=i.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new ht:a;for(i.set(e,t),i.set(t,e);++p<c;){var m=e[p],y=t[p];if(r)var v=u?r(y,m,p,t,e,i):r(m,y,p,e,t,i);if(v!==a){if(v)continue;d=!1;break}if(h){if(!b(t,(function(e,t){if(!R(h,t)&&(m===e||o(m,e,n,r,i)))return h.push(t)}))){d=!1;break}}else if(m!==y&&!o(m,y,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d},jr=function(e){return Ba(Hr(e,a,io),e+"")},Pr=function(e){return Gt(e,Wo,Ra)},Tr=function(e){return Gt(e,qo,Na)},Ar=function(e){for(var t=e.name+"",n=ua[t],r=bi.call(ua,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t},Cr=function(e){return(bi.call(k,"placeholder")?k:e).placeholder},Ir=function(){var e=k.iteratee||Xo;return e=e===Xo?vn:e,arguments.length?e(arguments[0],arguments[1]):e},Rr=function(e,t){var n,r,i=e.__data__;return("string"==(r=o(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map},Nr=function(e){for(var t=Wo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,qr(o)]}return t},Dr=function(e,t){var n,r=null==(n=e)?a:n[t];return yn(r)?r:a},Mr=function(e,t,n){for(var r=-1,o=(t=Qn(t,e)).length,i=!1;++r<o;){var a=eo(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&jo(o)&&zr(a,o)&&(Tu(e)||Pu(e))},Lr=function(e){return"function"!=typeof e.constructor||Wr(e)?{}:ya(Ti(e))},Ur=function(e){return Tu(e)||Pu(e)||!!(Ri&&e&&e[Ri])},zr=function(e,t){var n=void 0===e?"undefined":o(e);return!!(t=null==t?X:t)&&("number"==n||"symbol"!=n&&it.test(e))&&e>-1&&e%1==0&&e<t},Fr=function(e,t,n){if(!Po(n))return!1;var r=void 0===t?"undefined":o(t);return!!("number"==r?So(n)&&zr(t,n.length):"string"==r&&t in n)&&xo(n[t],e)},Br=function(e,t){if(Tu(e))return!1;var n=void 0===e?"undefined":o(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ro(e))||Fe.test(e)||!ze.test(e)||null!=t&&e in li(t)},Vr=function(e){var t=Ar(e),n=k[t];if("function"!=typeof n||!(t in lt.prototype))return!1;if(e===n)return!0;var r=Ia(n);return!!r&&e===r[0]},Wr=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||yi)},qr=function(e){return e==e&&!Po(e)},Kr=function(e,t){return function(n){return null!=n&&n[e]===t&&(t!==a||e in li(n))}},Hr=function(e,t,n){return t=Zi(t===a?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Zi(r.length-t,0),a=ii(i);++o<i;)a[o]=r[t+o];o=-1;for(var c=ii(t+1);++o<t;)c[o]=r[o];return c[t]=n(a),u(e,this,c)}},Zr=function(e,t){return t.length<2?e:Zt(e,Nn(t,0,-1))},Gr=function(e,t){for(var n=e.length,r=Gi(t.length,n),o=or(e);r--;){var i=t[r];e[r]=zr(i,n)?o[i]:a}return e},Qr=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Yr=function(e,t,n){var r,o,i,a=t+"";return Ba(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(He,"{\n/* [wrapped with "+t+"] */\n")}(a,(o=(r=a.match(Ze))?r[1].split(Ge):[],i=n,s(ne,(function(e){var t="_."+e[0];i&e[1]&&!d(o,t)&&o.push(t)})),o.sort())))},Jr=function(e){var t=0,n=0;return function(){var r=Qi(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}},Xr=function(e,t){var n=-1,r=e.length,o=r-1;for(t=t===a?r:t;++n<t;){var i=jn(n,o),u=e[i];e[i]=e[n],e[n]=u}return e.length=t,e},eo=function(e){if("string"==typeof e||Ro(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},to=function(e){if(null!=e){try{return gi.call(e)}catch(e){}try{return e+""}catch(e){}}return""},no=function(e){if(r(e,lt))return e.clone();var t=new st(e.__wrapped__,e.__chain__);return t.__actions__=or(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},ro=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Mo(n);return o<0&&(o=Zi(r+o,0)),_(e,Ir(t,3),o)},oo=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==a&&(o=Mo(n),o=n<0?Zi(r+o,0):Gi(o,r-1)),_(e,Ir(t,3),o,!0)},io=function(e){return null!=e&&e.length?wa(e,1):[]},ao=function(e){return e&&e.length?e[0]:a},uo=function(e){var t=null==e?0:e.length;return t?e[t-1]:a},co=function(e,t){return e&&e.length&&t&&t.length?On(e,t):e},so=function(e){return null==e?e:Xi.call(e)},lo=function(e){if(!e||!e.length)return[];var t=0;return e=p(e,(function(e){if(Eo(e))return t=Zi(e.length,t),!0})),T(t,(function(t){return m(e,O(t))}))},fo=function(e,t){if(!e||!e.length)return[];var n=lo(e);return null==t?n:m(n,(function(e){return u(t,a,e)}))},po=function(e){var t=k(e);return t.__chain__=!0,t},ho=function(e,t){return t(e)},mo=function(e,t){return(Tu(e)?s:ga)(e,Ir(t,3))},yo=function(e,t){return(Tu(e)?l:ba)(e,Ir(t,3))},vo=function(e,t){return(Tu(e)?m:wn)(e,Ir(t,3))},go=function(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Er(e,Y,a,a,a,a,t)},bo=function(e,t){var n;if("function"!=typeof t)throw new di(H);return e=Mo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}},wo=function(e,t,n){var r,o,i,u,c,s,l=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new di(H);function h(t){var n=r,i=o;return r=o=a,l=t,u=e.apply(i,n)}function m(e){return l=e,c=Fa(v,t),f?h(e):u}function y(e){var n=e-s;return s===a||n>=t||n<0||p&&e-l>=i}function v(){var e,n,r=yu();if(y(r))return g(r);c=Fa(v,(n=t-((e=r)-s),p?Gi(n,i-(e-l)):n))}function g(e){return c=a,d&&r?h(e):(r=o=a,u)}function b(){var e=yu(),n=y(e);if(r=arguments,o=this,s=e,n){if(c===a)return m(s);if(p)return Pa(c),c=Fa(v,t),h(s)}return c===a&&(c=Fa(v,t)),u}return t=Uo(t)||0,Po(n)&&(f=!!n.leading,i=(p="maxWait"in n)?Zi(Uo(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),b.cancel=function(){c!==a&&Pa(c),l=0,r=s=o=c=a},b.flush=function(){return c===a?u:g(yu())},b},_o=function(e){if("function"!=typeof e)throw new di(H);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},xo=function(e,t){return e===t||e!=e&&t!=t},So=function(e){return null!=e&&jo(e.length)&&!Oo(e)},Eo=function(e){return To(e)&&So(e)},$o=function(e){if(!To(e))return!1;var t=Yt(e);return t==ue||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Co(e)},Oo=function(e){if(!Po(e))return!1;var t=Yt(e);return t==ce||t==se||"[object AsyncFunction]"==t||"[object Proxy]"==t},ko=function(e){return"number"==typeof e&&e==Mo(e)},jo=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=X},Po=function(e){var t=void 0===e?"undefined":o(e);return null!=e&&("object"==t||"function"==t)},To=function(e){return null!=e&&"object"==typeof e},Ao=function(e){return"number"==typeof e||To(e)&&Yt(e)==fe},Co=function(e){if(!To(e)||Yt(e)!=pe)return!1;var t=Ti(e);if(null===t)return!0;var n=bi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&r(n,n)&&gi.call(n)==Si},Io=function(e){return"string"==typeof e||!Tu(e)&&To(e)&&Yt(e)==ye},Ro=function(e){return"symbol"==(void 0===e?"undefined":o(e))||To(e)&&Yt(e)==ve},No=function(e){if(!e)return[];if(So(e))return Io(e)?q(e):or(e);if(Ni&&e[Ni])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ni]());var t=Da(e);return(t==le?z:t==me?V:Ho)(e)},Do=function(e){return e?(e=Uo(e))===J||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},Mo=function(e){var t=Do(e),n=t%1;return t==t?n?t-n:t:0},Lo=function(e){return e?kt(Mo(e),0,te):0},Uo=function(e){if("number"==typeof e)return e;if(Ro(e))return ee;if(Po(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Po(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=A(e);var n=nt.test(e);return n||ot.test(e)?Wt(e.slice(2),n?2:8):tt.test(e)?ee:+e},zo=function(e){return ir(e,qo(e))},Fo=function(e){return null==e?"":ka(e)},Bo=function(e,t,n){var r=null==e?a:Zt(e,t);return r===a?n:r},Vo=function(e,t){return null!=e&&Mr(e,t,fn)},Wo=function(e){return So(e)?yt(e):gn(e)},qo=function(e){return So(e)?yt(e,!0):function(e){if(!Po(e))return function(e){var t=[];if(null!=e)for(var n in li(e))t.push(n);return t}(e);var t=Wr(e),n=[];for(var r in e)("constructor"!=r||!t&&bi.call(e,r))&&n.push(r);return n}(e)},Ko=function(e,t){if(null==e)return{};var n=m(Tr(e),(function(e){return[e]}));return t=Ir(t),$n(e,n,(function(e,n){return t(e,n[0])}))},Ho=function(e){return null==e?[]:I(e,Wo(e))},Zo=function(e){return sc(Fo(e).toLowerCase())},Go=function(e){return(e=Fo(e))&&e.replace(at,un).replace(It,"")},Qo=function(e,t,n){return e=Fo(e),(t=n?a:t)===a?(r=e,Mt.test(r)?function(e){return e.match(Nt)||[]}(e):function(e){return e.match(Qe)||[]}(e)):e.match(t)||[];var r},Yo=function(e){return function(){return e}},Jo=function(e){return e},Xo=function(e){return vn("function"==typeof e?e:va(e,1))},ei=function(e,t,n){var r=Wo(t),o=Kt(t,r);null!=n||Po(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Kt(t,Wo(t)));var i=!(Po(n)&&"chain"in n&&!n.chain),a=Oo(e);return s(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=or(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,y([this.value()],arguments))})})),e},ti=function(){},ni=function(e){return Br(e)?O(eo(e)):(t=e,function(e){return Zt(e,t)});var t},ri=function(){return[]},oi=function(){return!1},ii=(t=null==t?Ht:ln.defaults(Ht.Object(),t,ln.pick(Ht,Lt))).Array,ai=t.Date,ui=t.Error,ci=t.Function,si=t.Math,li=t.Object,fi=t.RegExp,pi=t.String,di=t.TypeError,hi=ii.prototype,mi=ci.prototype,yi=li.prototype,vi=t["__core-js_shared__"],gi=mi.toString,bi=yi.hasOwnProperty,wi=0,_i=(n=/[^.]+$/.exec(vi&&vi.keys&&vi.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",xi=yi.toString,Si=gi.call(li),Ei=Ht._,$i=fi("^"+gi.call(bi).replace(Ve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oi=Qt?t.Buffer:a,ki=t.Symbol,ji=t.Uint8Array,Pi=Oi?Oi.allocUnsafe:a,Ti=F(li.getPrototypeOf,li),Ai=li.create,Ci=yi.propertyIsEnumerable,Ii=hi.splice,Ri=ki?ki.isConcatSpreadable:a,Ni=ki?ki.iterator:a,Di=ki?ki.toStringTag:a,Mi=function(){try{var e=Dr(li,"defineProperty");return e({},"",{}),e}catch(e){}}(),Li=t.clearTimeout!==Ht.clearTimeout&&t.clearTimeout,Ui=ai&&ai.now!==Ht.Date.now&&ai.now,zi=t.setTimeout!==Ht.setTimeout&&t.setTimeout,Fi=si.ceil,Bi=si.floor,Vi=li.getOwnPropertySymbols,Wi=Oi?Oi.isBuffer:a,qi=t.isFinite,Ki=hi.join,Hi=F(li.keys,li),Zi=si.max,Gi=si.min,Qi=ai.now,Yi=t.parseInt,Ji=si.random,Xi=hi.reverse,ea=Dr(t,"DataView"),ta=Dr(t,"Map"),na=Dr(t,"Promise"),ra=Dr(t,"Set"),oa=Dr(t,"WeakMap"),ia=Dr(li,"create"),aa=oa&&new oa,ua={},ca=to(ea),sa=to(ta),la=to(na),fa=to(ra),pa=to(oa),da=ki?ki.prototype:a,ha=da?da.valueOf:a,ma=da?da.toString:a,ya=(i=function(){},function(e){if(!Po(e))return{};if(Ai)return Ai(e);i.prototype=e;var t=new i;return i.prototype=a,t});function va(e,t,n,r,o,i){var u,c=1&t,l=2&t,f=4&t;if(n&&(u=o?n(e,r,o,i):n(e)),u!==a)return u;if(!Po(e))return e;var p,d,h,m=Tu(e);if(m){if(d=(p=e).length,h=new p.constructor(d),d&&"string"==typeof p[0]&&bi.call(p,"index")&&(h.index=p.index,h.input=p.input),u=h,!c)return or(e,u)}else{var y=Da(e),v=y==ce||y==se;if(Cu(e))return Jn(e,c);if(y==pe||y==re||v&&!o){if(u=l||v?{}:Lr(e),!c)return l?function(e,t){return ir(e,Na(e),t)}(e,function(e,t){return e&&ir(t,qo(t),e)}(u,e)):function(e,t){return ir(e,Ra(e),t)}(e,Et(u,e))}else{if(!Ft[y])return o?e:{};u=function(e,t,n){var r,o=e.constructor;switch(t){case be:return Xn(e);case ie:case ae:return new o(+e);case we:return function(e,t){var n=t?Xn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case _e:case xe:case Se:case Ee:case $e:case Oe:case ke:case je:case Pe:return er(e,n);case le:return new o;case fe:case ye:return new o(e);case he:return function(e){var t=new e.constructor(e.source,et.exec(e));return t.lastIndex=e.lastIndex,t}(e);case me:return new o;case ve:return r=e,ha?li(ha.call(r)):{}}}(e,y,c)}}i||(i=new mt);var g=i.get(e);if(g)return g;i.set(e,u),Du(e)?e.forEach((function(r){u.add(va(r,t,n,r,e,i))})):Ru(e)&&e.forEach((function(r,o){u.set(o,va(r,t,n,o,e,i))}));var b=m?a:(f?l?Tr:Pr:l?qo:Wo)(e);return s(b||e,(function(r,o){b&&(r=e[o=r]),_t(u,o,va(r,t,n,o,e,i))})),u}k.templateSettings={escape:Me,evaluate:Le,interpolate:Ue,variable:"",imports:{_:k}},(k.prototype=Ke.prototype).constructor=k,st.prototype=ya(Ke.prototype),st.prototype.constructor=st,lt.prototype=ya(Ke.prototype),lt.prototype.constructor=lt,ft.prototype.clear=function(){this.__data__=ia?ia(null):{},this.size=0},ft.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ft.prototype.get=function(e){var t=this.__data__;if(ia){var n=t[e];return n===Z?a:n}return bi.call(t,e)?t[e]:a},ft.prototype.has=function(e){var t=this.__data__;return ia?t[e]!==a:bi.call(t,e)},ft.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ia&&t===a?Z:t,this},pt.prototype.clear=function(){this.__data__=[],this.size=0},pt.prototype.delete=function(e){var t=this.__data__,n=xt(t,e);return!(n<0||(n==t.length-1?t.pop():Ii.call(t,n,1),--this.size,0))},pt.prototype.get=function(e){var t=this.__data__,n=xt(t,e);return n<0?a:t[n][1]},pt.prototype.has=function(e){return xt(this.__data__,e)>-1},pt.prototype.set=function(e,t){var n=this.__data__,r=xt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},dt.prototype.clear=function(){this.size=0,this.__data__={hash:new ft,map:new(ta||pt),string:new ft}},dt.prototype.delete=function(e){var t=Rr(this,e).delete(e);return this.size-=t?1:0,t},dt.prototype.get=function(e){return Rr(this,e).get(e)},dt.prototype.has=function(e){return Rr(this,e).has(e)},dt.prototype.set=function(e,t){var n=Rr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ht.prototype.add=ht.prototype.push=function(e){return this.__data__.set(e,Z),this},ht.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.clear=function(){this.__data__=new pt,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var n=this.__data__;if(r(n,pt)){var o=n.__data__;if(!ta||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new dt(o)}return n.set(e,t),this.size=n.size,this};var ga=cr(Bt),ba=cr(qt,!0);function wa(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Ur),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?wa(u,t-1,n,r,o):y(o,u):r||(o[o.length]=u)}return o}var _a=sr(),xa=sr(!0);function Sa(e,t,n,o,i){return e===t||(null==e||null==t||!To(e)&&!To(t)?e!=e&&t!=t:function(e,t,n,o,i,u){var c=Tu(e),s=Tu(t),l=c?oe:Da(e),f=s?oe:Da(t),p=(l=l==re?pe:l)==pe,d=(f=f==re?pe:f)==pe,h=l==f;if(h&&Cu(e)){if(!Cu(t))return!1;c=!0,p=!1}if(h&&!p)return u||(u=new mt),c||Mu(e)?kr(e,t,n,o,i,u):function(e,t,n,r,o,i,a){switch(n){case we:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case be:return!(e.byteLength!=t.byteLength||!i(new ji(e),new ji(t)));case ie:case ae:case fe:return xo(+e,+t);case ue:return e.name==t.name&&e.message==t.message;case he:case ye:return e==t+"";case le:var u=z;case me:var c=1&r;if(u||(u=V),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var l=kr(u(e),u(t),r,o,i,a);return a.delete(e),l;case ve:if(ha)return ha.call(e)==ha.call(t)}return!1}(e,t,l,n,o,i,u);if(!(1&n)){var m=p&&bi.call(e,"__wrapped__"),y=d&&bi.call(t,"__wrapped__");if(m||y){var v=m?e.value():e,g=y?t.value():t;return u||(u=new mt),i(v,g,n,o,u)}}return!!h&&(u||(u=new mt),function(e,t,n,o,i,u){var c=1&n,s=Pr(e),l=s.length;if(l!=Pr(t).length&&!c)return!1;for(var f=l;f--;){var p=s[f];if(!(c?p in t:bi.call(t,p)))return!1}var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var m=!0;u.set(e,t),u.set(t,e);for(var y=c;++f<l;){var v=e[p=s[f]],g=t[p];if(o)var b=c?o(g,v,p,t,e,u):o(v,g,p,e,t,u);if(!(b===a?v===g||i(v,g,n,o,u):b)){m=!1;break}y||(y="constructor"==p)}if(m&&!y){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&r(w,w)&&"function"==typeof _&&r(_,_)||(m=!1)}return u.delete(e),u.delete(t),m}(e,t,n,o,i,u))}(e,t,n,o,Sa,i))}function Ea(e,t,n,r,o){e!==t&&_a(t,(function(i,u){if(o||(o=new mt),Po(i))!function(e,t,n,r,o,i,u){var c=Qr(e,n),s=Qr(t,n),l=u.get(s);if(l)wt(e,n,l);else{var f=i?i(c,s,n+"",e,t,u):a,p=f===a;if(p){var d=Tu(s),h=!d&&Cu(s),m=!d&&!h&&Mu(s);f=s,d||h||m?Tu(c)?f=c:Eo(c)?f=or(c):h?(p=!1,f=Jn(s,!0)):m?(p=!1,f=er(s,!0)):f=[]:Co(s)||Pu(s)?(f=c,Pu(c)?f=zo(c):Po(c)&&!Oo(c)||(f=Lr(s))):p=!1}p&&(u.set(s,f),o(f,s,r,i,u),u.delete(s)),wt(e,n,f)}}(e,t,u,n,Ea,r,o);else{var c=r?r(Qr(e,u),i,u+"",e,t,o):a;c===a&&(c=i),wt(e,u,c)}}),qo)}var $a=aa?function(e,t){return aa.set(e,t),e}:Jo,Oa=Mi?function(e,t){return Mi(e,"toString",{configurable:!0,enumerable:!1,value:Yo(t),writable:!0})}:Jo;function ka(e){if("string"==typeof e)return e;if(Tu(e))return m(e,ka)+"";if(Ro(e))return ma?ma.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var ja=Tn,Pa=Li||function(e){return Ht.clearTimeout(e)};function Ta(e,t,n,o,i,u,c,s,l,f){var p=t&Y,d=1&t,h=2&t,m=24&t,y=512&t,v=h?a:pr(e);return function a(){for(var g=arguments.length,b=ii(g),w=g;w--;)b[w]=arguments[w];if(m)var _=Cr(a),x=M(b,_);if(o&&(b=nr(b,o,i,m)),u&&(b=rr(b,u,c,m)),g-=x,m&&g<f){var S=B(b,_);return _r(e,t,Ta,a.placeholder,n,b,S,s,l,f-g)}var E=d?n:this,$=h?E[e]:e;return g=b.length,s?b=Gr(b,s):y&&g>1&&b.reverse(),p&&l<g&&(b.length=l),this&&this!==Ht&&r(this,a)&&($=v||pr($)),$.apply(E,b)}}var Aa=ra&&1/V(new ra([,-0]))[1]==J?function(e){return new ra(e)}:ti;function Ca(e,t,n,r,o,i){return Po(e)&&Po(t)&&(i.set(t,e),Ea(e,t,a,Ca,i),i.delete(t)),e}var Ia=aa?function(e){return aa.get(e)}:ti,Ra=Vi?function(e){return null==e?[]:(e=li(e),p(Vi(e),(function(t){return Ci.call(e,t)})))}:ri,Na=Vi?function(e){for(var t=[];e;)y(t,Ra(e)),e=Ti(e);return t}:ri,Da=Yt;(ea&&Da(new ea(new ArrayBuffer(1)))!=we||ta&&Da(new ta)!=le||na&&Da(na.resolve())!=de||ra&&Da(new ra)!=me||oa&&Da(new oa)!=ge)&&(Da=function(e){var t=Yt(e),n=t==pe?e.constructor:a,r=n?to(n):"";if(r)switch(r){case ca:return we;case sa:return le;case la:return de;case fa:return me;case pa:return ge}return t});var Ma,La,Ua=vi?Oo:oi,za=Jr($a),Fa=zi||function(e,t){return Ht.setTimeout(e,t)},Ba=Jr(Oa),Va=(Ma=_u((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Be,(function(e,n,r,o){t.push(r?o.replace(Je,"$1"):n||e)})),t}),(function(e){return 500===La.size&&La.clear(),e})),La=Ma.cache,Ma),Wa=Tn((function(e,t){return Eo(e)?Tt(e,wa(t,1,Eo,!0)):[]})),qa=Tn((function(e,t){var n=uo(t);return Eo(n)&&(n=a),Eo(e)?Tt(e,wa(t,1,Eo,!0),Ir(n,2)):[]})),Ka=Tn((function(e,t){var n=uo(t);return Eo(n)&&(n=a),Eo(e)?Tt(e,wa(t,1,Eo,!0),a,n):[]})),Ha=Tn((function(e){var t=m(e,Zn);return t.length&&t[0]===e[0]?pn(t):[]})),Za=Tn((function(e){var t=uo(e),n=m(e,Zn);return t===uo(n)?t=a:n.pop(),n.length&&n[0]===e[0]?pn(n,Ir(t,2)):[]})),Ga=Tn((function(e){var t=uo(e),n=m(e,Zn);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?pn(n,a,t):[]})),Qa=Tn(co),Ya=jr((function(e,t){var n=null==e?0:e.length,r=Ot(e,t);return kn(e,m(t,(function(e){return zr(e,n)?+e:e})).sort(tr)),r})),Ja=Tn((function(e){return Fn(wa(e,1,Eo,!0))})),Xa=Tn((function(e){var t=uo(e);return Eo(t)&&(t=a),Fn(wa(e,1,Eo,!0),Ir(t,2))})),eu=Tn((function(e){var t=uo(e);return t="function"==typeof t?t:a,Fn(wa(e,1,Eo,!0),a,t)})),tu=Tn((function(e,t){return Eo(e)?Tt(e,t):[]})),nu=Tn((function(e){return Kn(p(e,Eo))})),ru=Tn((function(e){var t=uo(e);return Eo(t)&&(t=a),Kn(p(e,Eo),Ir(t,2))})),ou=Tn((function(e){var t=uo(e);return t="function"==typeof t?t:a,Kn(p(e,Eo),a,t)})),iu=Tn(lo),au=Tn((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,fo(e,n)})),uu=jr((function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,i=function(t){return Ot(t,e)};return t>1||this.__actions__.length||!r(o,lt)||!zr(n)?this.thru(i):((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:a}),new st(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e})))})),cu=ar((function(e,t,n){bi.call(e,n)?++e[n]:$t(e,n,1)})),su=dr(ro),lu=dr(oo),fu=ar((function(e,t,n){bi.call(e,n)?e[n].push(t):$t(e,n,[t])})),pu=Tn((function(e,t,n){var r=-1,o="function"==typeof t,i=So(e)?ii(e.length):[];return ga(e,(function(e){i[++r]=o?u(t,e,n):dn(e,t,n)})),i})),du=ar((function(e,t,n){$t(e,n,t)})),hu=ar((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),mu=Tn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Fr(e,t[0],t[1])?t=[]:n>2&&Fr(t[0],t[1],t[2])&&(t=[t[0]]),En(e,wa(t,1),[])})),yu=Ui||function(){return Ht.Date.now()},vu=Tn((function(e,t,n){var r=1;if(n.length){var o=B(n,Cr(vu));r|=Q}return Er(e,r,t,n,o)})),gu=Tn((function(e,t,n){var r=3;if(n.length){var o=B(n,Cr(gu));r|=Q}return Er(t,r,e,n,o)})),bu=Tn((function(e,t){return Pt(e,1,t)})),wu=Tn((function(e,t,n){return Pt(e,Uo(t)||0,n)}));function _u(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new di(H);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(_u.Cache||dt),n}_u.Cache=dt;var xu,Su=ja((function(e,t){var n=(t=1==t.length&&Tu(t[0])?m(t[0],C(Ir())):m(wa(t,1),C(Ir()))).length;return Tn((function(r){for(var o=-1,i=Gi(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return u(e,this,r)}))})),Eu=Tn((function(e,t){var n=B(t,Cr(Eu));return Er(e,Q,a,t,n)})),$u=Tn((function(e,t){var n=B(t,Cr($u));return Er(e,64,a,t,n)})),Ou=jr((function(e,t){return Er(e,256,a,a,a,t)})),ku=wr(Jt),ju=wr((function(e,t){return e>=t})),Pu=hn(function(){return arguments}())?hn:function(e){return To(e)&&bi.call(e,"callee")&&!Ci.call(e,"callee")},Tu=ii.isArray,Au=Xt?C(Xt):function(e){return To(e)&&Yt(e)==be},Cu=Wi||oi,Iu=en?C(en):function(e){return To(e)&&Yt(e)==ae},Ru=tn?C(tn):function(e){return To(e)&&Da(e)==le},Nu=nn?C(nn):function(e){return To(e)&&Yt(e)==he},Du=rn?C(rn):function(e){return To(e)&&Da(e)==me},Mu=on?C(on):function(e){return To(e)&&jo(e.length)&&!!zt[Yt(e)]},Lu=wr(bn),Uu=wr((function(e,t){return e<=t})),zu=ur((function(e,t){if(Wr(t)||So(t))ir(t,Wo(t),e);else for(var n in t)bi.call(t,n)&&_t(e,n,t[n])})),Fu=ur((function(e,t){ir(t,qo(t),e)})),Bu=ur((function(e,t,n,r){ir(t,qo(t),e,r)})),Vu=ur((function(e,t,n,r){ir(t,Wo(t),e,r)})),Wu=jr(Ot),qu=Tn((function(e,t){e=li(e);var n=-1,r=t.length,o=r>2?t[2]:a;for(o&&Fr(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],u=qo(i),c=-1,s=u.length;++c<s;){var l=u[c],f=e[l];(f===a||xo(f,yi[l])&&!bi.call(e,l))&&(e[l]=i[l])}return e})),Ku=Tn((function(e){return e.push(a,Ca),u(Yu,a,e)})),Hu=mr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=xi.call(t)),e[t]=n}),Yo(Jo)),Zu=mr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=xi.call(t)),bi.call(e,t)?e[t].push(n):e[t]=[n]}),Ir),Gu=Tn(dn),Qu=ur((function(e,t,n){Ea(e,t,n)})),Yu=ur((function(e,t,n,r){Ea(e,t,n,r)})),Ju=jr((function(e,t){var n={};if(null==e)return n;var r=!1;t=m(t,(function(t){return t=Qn(t,e),r||(r=t.length>1),t})),ir(e,Tr(e),n),r&&(n=va(n,7,Or));for(var o=t.length;o--;)Bn(n,t[o]);return n})),Xu=jr((function(e,t){return null==e?{}:$n(n=e,t,(function(e,t){return Vo(n,t)}));var n})),ec=Sr(Wo),tc=Sr(qo),nc=fr((function(e,t,n){return t=t.toLowerCase(),e+(n?Zo(t):t)})),rc=fr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),oc=fr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ic=lr("toLowerCase"),ac=fr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),uc=fr((function(e,t,n){return e+(n?" ":"")+sc(t)})),cc=fr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),sc=lr("toUpperCase"),lc=Tn((function(e,t){try{return u(e,a,t)}catch(e){return $o(e)?e:new ui(e)}})),fc=jr((function(e,t){return s(t,(function(t){t=eo(t),$t(e,t,vu(e[t],e))})),e})),pc=hr(),dc=hr(!0),hc=Tn((function(e,t){return function(n){return dn(n,e,t)}})),mc=Tn((function(e,t){return function(n){return dn(e,n,t)}})),yc=vr(m),vc=vr(f),gc=vr(b),bc=br(),wc=br(!0),_c=yr((function(e,t){return e+t}),0),xc=xr("ceil"),Sc=yr((function(e,t){return e/t}),1),Ec=xr("floor"),$c=yr((function(e,t){return e*t}),1),Oc=xr("round"),kc=yr((function(e,t){return e-t}),0);return k.after=function(e,t){if("function"!=typeof t)throw new di(H);return e=Mo(e),function(){if(--e<1)return t.apply(this,arguments)}},k.ary=go,k.assign=zu,k.assignIn=Fu,k.assignInWith=Bu,k.assignWith=Vu,k.at=Wu,k.before=bo,k.bind=vu,k.bindAll=fc,k.bindKey=gu,k.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Tu(e)?e:[e]},k.chain=po,k.chunk=function(e,t,n){t=(n?Fr(e,t,n):t===a)?1:Zi(Mo(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,u=ii(Fi(r/t));o<r;)u[i++]=Nn(e,o,o+=t);return u},k.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},k.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ii(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return y(Tu(n)?or(n):[n],wa(t,1))},k.cond=function(e){var t=null==e?0:e.length,n=Ir();return e=t?m(e,(function(e){if("function"!=typeof e[1])throw new di(H);return[n(e[0]),e[1]]})):[],Tn((function(n){for(var r=-1;++r<t;){var o=e[r];if(u(o[0],this,n))return u(o[1],this,n)}}))},k.conforms=function(e){return t=va(e,1),n=Wo(t),function(e){return jt(e,t,n)};var t,n},k.constant=Yo,k.countBy=cu,k.create=function(e,t){var n=ya(e);return null==t?n:Et(n,t)},k.curry=function e(t,n,r){var o=Er(t,8,a,a,a,a,a,n=r?a:n);return o.placeholder=e.placeholder,o},k.curryRight=function e(t,n,r){var o=Er(t,16,a,a,a,a,a,n=r?a:n);return o.placeholder=e.placeholder,o},k.debounce=wo,k.defaults=qu,k.defaultsDeep=Ku,k.defer=bu,k.delay=wu,k.difference=Wa,k.differenceBy=qa,k.differenceWith=Ka,k.drop=function(e,t,n){var r=null==e?0:e.length;return r?Nn(e,(t=n||t===a?1:Mo(t))<0?0:t,r):[]},k.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Nn(e,0,(t=r-(t=n||t===a?1:Mo(t)))<0?0:t):[]},k.dropRightWhile=function(e,t){return e&&e.length?Wn(e,Ir(t,3),!0,!0):[]},k.dropWhile=function(e,t){return e&&e.length?Wn(e,Ir(t,3),!0):[]},k.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Fr(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Mo(n))<0&&(n=-n>o?0:o+n),(r=r===a||r>o?o:Mo(r))<0&&(r+=o),r=n>r?0:Lo(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},k.filter=function(e,t){return(Tu(e)?p:Dt)(e,Ir(t,3))},k.flatMap=function(e,t){return wa(vo(e,t),1)},k.flatMapDeep=function(e,t){return wa(vo(e,t),J)},k.flatMapDepth=function(e,t,n){return n=n===a?1:Mo(n),wa(vo(e,t),n)},k.flatten=io,k.flattenDeep=function(e){return null!=e&&e.length?wa(e,J):[]},k.flattenDepth=function(e,t){return null!=e&&e.length?wa(e,t=t===a?1:Mo(t)):[]},k.flip=function(e){return Er(e,512)},k.flow=pc,k.flowRight=dc,k.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},k.functions=function(e){return null==e?[]:Kt(e,Wo(e))},k.functionsIn=function(e){return null==e?[]:Kt(e,qo(e))},k.groupBy=fu,k.initial=function(e){return null!=e&&e.length?Nn(e,0,-1):[]},k.intersection=Ha,k.intersectionBy=Za,k.intersectionWith=Ga,k.invert=Hu,k.invertBy=Zu,k.invokeMap=pu,k.iteratee=Xo,k.keyBy=du,k.keys=Wo,k.keysIn=qo,k.map=vo,k.mapKeys=function(e,t){var n={};return t=Ir(t,3),Bt(e,(function(e,r,o){$t(n,t(e,r,o),e)})),n},k.mapValues=function(e,t){var n={};return t=Ir(t,3),Bt(e,(function(e,r,o){$t(n,r,t(e,r,o))})),n},k.matches=function(e){return _n(va(e,1))},k.matchesProperty=function(e,t){return xn(e,va(t,1))},k.memoize=_u,k.merge=Qu,k.mergeWith=Yu,k.method=hc,k.methodOf=mc,k.mixin=ei,k.negate=_o,k.nthArg=function(e){return e=Mo(e),Tn((function(t){return Sn(t,e)}))},k.omit=Ju,k.omitBy=function(e,t){return Ko(e,_o(Ir(t)))},k.once=function(e){return bo(2,e)},k.orderBy=function(e,t,n,r){return null==e?[]:(Tu(t)||(t=null==t?[]:[t]),Tu(n=r?a:n)||(n=null==n?[]:[n]),En(e,t,n))},k.over=yc,k.overArgs=Su,k.overEvery=vc,k.overSome=gc,k.partial=Eu,k.partialRight=$u,k.partition=hu,k.pick=Xu,k.pickBy=Ko,k.property=ni,k.propertyOf=function(e){return function(t){return null==e?a:Zt(e,t)}},k.pull=Qa,k.pullAll=co,k.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?On(e,t,Ir(n,2)):e},k.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?On(e,t,a,n):e},k.pullAt=Ya,k.range=bc,k.rangeRight=wc,k.rearg=Ou,k.reject=function(e,t){return(Tu(e)?p:Dt)(e,_o(Ir(t,3)))},k.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Ir(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return kn(e,o),n},k.rest=function(e,t){if("function"!=typeof e)throw new di(H);return Tn(e,t=t===a?t:Mo(t))},k.reverse=so,k.sampleSize=function(e,t,n){return t=(n?Fr(e,t,n):t===a)?1:Mo(t),(Tu(e)?gt:Cn)(e,t)},k.set=function(e,t,n){return null==e?e:In(e,t,n)},k.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:In(e,t,n,r)},k.shuffle=function(e){return(Tu(e)?bt:Rn)(e)},k.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Fr(e,t,n)?(t=0,n=r):(t=null==t?0:Mo(t),n=n===a?r:Mo(n)),Nn(e,t,n)):[]},k.sortBy=mu,k.sortedUniq=function(e){return e&&e.length?Un(e):[]},k.sortedUniqBy=function(e,t){return e&&e.length?Un(e,Ir(t,2)):[]},k.split=function(e,t,n){return n&&"number"!=typeof n&&Fr(e,t,n)&&(t=n=a),(n=n===a?te:n>>>0)?(e=Fo(e))&&("string"==typeof t||null!=t&&!Nu(t))&&!(t=ka(t))&&U(e)?Yn(q(e),0,n):e.split(t,n):[]},k.spread=function(e,t){if("function"!=typeof e)throw new di(H);return t=null==t?0:Zi(Mo(t),0),Tn((function(n){var r=n[t],o=Yn(n,0,t);return r&&y(o,r),u(e,this,o)}))},k.tail=function(e){var t=null==e?0:e.length;return t?Nn(e,1,t):[]},k.take=function(e,t,n){return e&&e.length?Nn(e,0,(t=n||t===a?1:Mo(t))<0?0:t):[]},k.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Nn(e,(t=r-(t=n||t===a?1:Mo(t)))<0?0:t,r):[]},k.takeRightWhile=function(e,t){return e&&e.length?Wn(e,Ir(t,3),!1,!0):[]},k.takeWhile=function(e,t){return e&&e.length?Wn(e,Ir(t,3)):[]},k.tap=function(e,t){return t(e),e},k.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new di(H);return Po(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),wo(e,t,{leading:r,maxWait:t,trailing:o})},k.thru=ho,k.toArray=No,k.toPairs=ec,k.toPairsIn=tc,k.toPath=function(e){return Tu(e)?m(e,eo):Ro(e)?[e]:or(Va(Fo(e)))},k.toPlainObject=zo,k.transform=function(e,t,n){var r=Tu(e),o=r||Cu(e)||Mu(e);if(t=Ir(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Po(e)&&Oo(i)?ya(Ti(e)):{}}return(o?s:Bt)(e,(function(e,r,o){return t(n,e,r,o)})),n},k.unary=function(e){return go(e,1)},k.union=Ja,k.unionBy=Xa,k.unionWith=eu,k.uniq=function(e){return e&&e.length?Fn(e):[]},k.uniqBy=function(e,t){return e&&e.length?Fn(e,Ir(t,2)):[]},k.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?Fn(e,a,t):[]},k.unset=function(e,t){return null==e||Bn(e,t)},k.unzip=lo,k.unzipWith=fo,k.update=function(e,t,n){return null==e?e:Vn(e,t,Gn(n))},k.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Vn(e,t,Gn(n),r)},k.values=Ho,k.valuesIn=function(e){return null==e?[]:I(e,qo(e))},k.without=tu,k.words=Qo,k.wrap=function(e,t){return Eu(Gn(t),e)},k.xor=nu,k.xorBy=ru,k.xorWith=ou,k.zip=iu,k.zipObject=function(e,t){return Hn(e||[],t||[],_t)},k.zipObjectDeep=function(e,t){return Hn(e||[],t||[],In)},k.zipWith=au,k.entries=ec,k.entriesIn=tc,k.extend=Fu,k.extendWith=Bu,ei(k,k),k.add=_c,k.attempt=lc,k.camelCase=nc,k.capitalize=Zo,k.ceil=xc,k.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=Uo(n))==n?n:0),t!==a&&(t=(t=Uo(t))==t?t:0),kt(Uo(e),t,n)},k.clone=function(e){return va(e,4)},k.cloneDeep=function(e){return va(e,5)},k.cloneDeepWith=function(e,t){return va(e,5,t="function"==typeof t?t:a)},k.cloneWith=function(e,t){return va(e,4,t="function"==typeof t?t:a)},k.conformsTo=function(e,t){return null==t||jt(e,t,Wo(t))},k.deburr=Go,k.defaultTo=function(e,t){return null==e||e!=e?t:e},k.divide=Sc,k.endsWith=function(e,t,n){e=Fo(e),t=ka(t);var r=e.length,o=n=n===a?r:kt(Mo(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},k.eq=xo,k.escape=function(e){return(e=Fo(e))&&De.test(e)?e.replace(Re,cn):e},k.escapeRegExp=function(e){return(e=Fo(e))&&We.test(e)?e.replace(Ve,"\\$&"):e},k.every=function(e,t,n){var r=Tu(e)?f:At;return n&&Fr(e,t,n)&&(t=a),r(e,Ir(t,3))},k.find=su,k.findIndex=ro,k.findKey=function(e,t){return w(e,Ir(t,3),Bt)},k.findLast=lu,k.findLastIndex=oo,k.findLastKey=function(e,t){return w(e,Ir(t,3),qt)},k.floor=Ec,k.forEach=mo,k.forEachRight=yo,k.forIn=function(e,t){return null==e?e:_a(e,Ir(t,3),qo)},k.forInRight=function(e,t){return null==e?e:xa(e,Ir(t,3),qo)},k.forOwn=function(e,t){return e&&Bt(e,Ir(t,3))},k.forOwnRight=function(e,t){return e&&qt(e,Ir(t,3))},k.get=Bo,k.gt=ku,k.gte=ju,k.has=function(e,t){return null!=e&&Mr(e,t,an)},k.hasIn=Vo,k.head=ao,k.identity=Jo,k.includes=function(e,t,n,r){e=So(e)?e:Ho(e),n=n&&!r?Mo(n):0;var o=e.length;return n<0&&(n=Zi(o+n,0)),Io(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&x(e,t,n)>-1},k.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Mo(n);return o<0&&(o=Zi(r+o,0)),x(e,t,o)},k.inRange=function(e,t,n){return t=Do(t),n===a?(n=t,t=0):n=Do(n),(r=e=Uo(e))>=Gi(o=t,i=n)&&r<Zi(o,i);var r,o,i},k.invoke=Gu,k.isArguments=Pu,k.isArray=Tu,k.isArrayBuffer=Au,k.isArrayLike=So,k.isArrayLikeObject=Eo,k.isBoolean=function(e){return!0===e||!1===e||To(e)&&Yt(e)==ie},k.isBuffer=Cu,k.isDate=Iu,k.isElement=function(e){return To(e)&&1===e.nodeType&&!Co(e)},k.isEmpty=function(e){if(null==e)return!0;if(So(e)&&(Tu(e)||"string"==typeof e||"function"==typeof e.splice||Cu(e)||Mu(e)||Pu(e)))return!e.length;var t=Da(e);if(t==le||t==me)return!e.size;if(Wr(e))return!gn(e).length;for(var n in e)if(bi.call(e,n))return!1;return!0},k.isEqual=function(e,t){return Sa(e,t)},k.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Sa(e,t,a,n):!!r},k.isError=$o,k.isFinite=function(e){return"number"==typeof e&&qi(e)},k.isFunction=Oo,k.isInteger=ko,k.isLength=jo,k.isMap=Ru,k.isMatch=function(e,t){return e===t||mn(e,t,Nr(t))},k.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,mn(e,t,Nr(t),n)},k.isNaN=function(e){return Ao(e)&&e!=+e},k.isNative=function(e){if(Ua(e))throw new ui("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return yn(e)},k.isNil=function(e){return null==e},k.isNull=function(e){return null===e},k.isNumber=Ao,k.isObject=Po,k.isObjectLike=To,k.isPlainObject=Co,k.isRegExp=Nu,k.isSafeInteger=function(e){return ko(e)&&e>=-9007199254740991&&e<=X},k.isSet=Du,k.isString=Io,k.isSymbol=Ro,k.isTypedArray=Mu,k.isUndefined=function(e){return e===a},k.isWeakMap=function(e){return To(e)&&Da(e)==ge},k.isWeakSet=function(e){return To(e)&&"[object WeakSet]"==Yt(e)},k.join=function(e,t){return null==e?"":Ki.call(e,t)},k.kebabCase=rc,k.last=uo,k.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==a&&(o=(o=Mo(n))<0?Zi(r+o,0):Gi(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):_(e,E,o,!0)},k.lowerCase=oc,k.lowerFirst=ic,k.lt=Lu,k.lte=Uu,k.max=function(e){return e&&e.length?Rt(e,Jo,Jt):a},k.maxBy=function(e,t){return e&&e.length?Rt(e,Ir(t,2),Jt):a},k.mean=function(e){return $(e,Jo)},k.meanBy=function(e,t){return $(e,Ir(t,2))},k.min=function(e){return e&&e.length?Rt(e,Jo,bn):a},k.minBy=function(e,t){return e&&e.length?Rt(e,Ir(t,2),bn):a},k.stubArray=ri,k.stubFalse=oi,k.stubObject=function(){return{}},k.stubString=function(){return""},k.stubTrue=function(){return!0},k.multiply=$c,k.nth=function(e,t){return e&&e.length?Sn(e,Mo(t)):a},k.noConflict=function(){return Ht._===this&&(Ht._=Ei),this},k.noop=ti,k.now=yu,k.pad=function(e,t,n){e=Fo(e);var r=(t=Mo(t))?W(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return gr(Bi(o),n)+e+gr(Fi(o),n)},k.padEnd=function(e,t,n){e=Fo(e);var r=(t=Mo(t))?W(e):0;return t&&r<t?e+gr(t-r,n):e},k.padStart=function(e,t,n){e=Fo(e);var r=(t=Mo(t))?W(e):0;return t&&r<t?gr(t-r,n)+e:e},k.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Yi(Fo(e).replace(qe,""),t||0)},k.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Fr(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=Do(e),t===a?(t=e,e=0):t=Do(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Ji();return Gi(e+o*(t-e+Vt("1e-"+((o+"").length-1))),t)}return jn(e,t)},k.reduce=function(e,t,n){var r=Tu(e)?v:j,o=arguments.length<3;return r(e,Ir(t,4),n,o,ga)},k.reduceRight=function(e,t,n){var r=Tu(e)?g:j,o=arguments.length<3;return r(e,Ir(t,4),n,o,ba)},k.repeat=function(e,t,n){return t=(n?Fr(e,t,n):t===a)?1:Mo(t),Pn(Fo(e),t)},k.replace=function(){var e=arguments,t=Fo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},k.result=function(e,t,n){var r=-1,o=(t=Qn(t,e)).length;for(o||(o=1,e=a);++r<o;){var i=null==e?a:e[eo(t[r])];i===a&&(r=o,i=n),e=Oo(i)?i.call(e):i}return e},k.round=Oc,k.runInContext=e,k.sample=function(e){return(Tu(e)?vt:An)(e)},k.size=function(e){if(null==e)return 0;if(So(e))return Io(e)?W(e):e.length;var t=Da(e);return t==le||t==me?e.size:gn(e).length},k.snakeCase=ac,k.some=function(e,t,n){var r=Tu(e)?b:Dn;return n&&Fr(e,t,n)&&(t=a),r(e,Ir(t,3))},k.sortedIndex=function(e,t){return Mn(e,t)},k.sortedIndexBy=function(e,t,n){return Ln(e,t,Ir(n,2))},k.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Mn(e,t);if(r<n&&xo(e[r],t))return r}return-1},k.sortedLastIndex=function(e,t){return Mn(e,t,!0)},k.sortedLastIndexBy=function(e,t,n){return Ln(e,t,Ir(n,2),!0)},k.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Mn(e,t,!0)-1;if(xo(e[n],t))return n}return-1},k.startCase=uc,k.startsWith=function(e,t,n){return e=Fo(e),n=null==n?0:kt(Mo(n),0,e.length),t=ka(t),e.slice(n,n+t.length)==t},k.subtract=kc,k.sum=function(e){return e&&e.length?P(e,Jo):0},k.sumBy=function(e,t){return e&&e.length?P(e,Ir(t,2)):0},k.template=function(e,t,n){var r=k.templateSettings;n&&Fr(e,t,n)&&(t=a),e=Fo(e),t=Bu({},t,r,$r);var o,i,u=Bu({},t.imports,r.imports,$r),c=Wo(u),s=I(u,c),l=0,f=t.interpolate||ut,p="__p += '",d=fi((t.escape||ut).source+"|"+f.source+"|"+(f===Ue?Xe:ut).source+"|"+(t.evaluate||ut).source+"|$","g"),h="//# sourceURL="+(bi.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ut+"]")+"\n";e.replace(d,(function(t,n,r,a,u,c){return r||(r=a),p+=e.slice(l,c).replace(ct,L),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),u&&(i=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),p+="';\n";var m=bi.call(t,"variable")&&t.variable;if(m){if(Ye.test(m))throw new ui("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(i?p.replace(Te,""):p).replace(Ae,"$1").replace(Ce,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=lc((function(){return ci(c,h+"return "+p).apply(a,s)}));if(y.source=p,$o(y))throw y;return y},k.times=function(e,t){if((e=Mo(e))<1||e>X)return[];var n=te,r=Gi(e,te);t=Ir(t),e-=te;for(var o=T(r,t);++n<e;)t(n);return o},k.toFinite=Do,k.toInteger=Mo,k.toLength=Lo,k.toLower=function(e){return Fo(e).toLowerCase()},k.toNumber=Uo,k.toSafeInteger=function(e){return e?kt(Mo(e),-9007199254740991,X):0===e?e:0},k.toString=Fo,k.toUpper=function(e){return Fo(e).toUpperCase()},k.trim=function(e,t,n){if((e=Fo(e))&&(n||t===a))return A(e);if(!e||!(t=ka(t)))return e;var r=q(e),o=q(t);return Yn(r,N(r,o),D(r,o)+1).join("")},k.trimEnd=function(e,t,n){if((e=Fo(e))&&(n||t===a))return e.slice(0,K(e)+1);if(!e||!(t=ka(t)))return e;var r=q(e);return Yn(r,0,D(r,q(t))+1).join("")},k.trimStart=function(e,t,n){if((e=Fo(e))&&(n||t===a))return e.replace(qe,"");if(!e||!(t=ka(t)))return e;var r=q(e);return Yn(r,N(r,q(t))).join("")},k.truncate=function(e,t){var n=30,r="...";if(Po(t)){var o="separator"in t?t.separator:o;n="length"in t?Mo(t.length):n,r="omission"in t?ka(t.omission):r}var i=(e=Fo(e)).length;if(U(e)){var u=q(e);i=u.length}if(n>=i)return e;var c=n-W(r);if(c<1)return r;var s=u?Yn(u,0,c).join(""):e.slice(0,c);if(o===a)return s+r;if(u&&(c+=s.length-c),Nu(o)){if(e.slice(c).search(o)){var l,f=s;for(o.global||(o=fi(o.source,Fo(et.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;s=s.slice(0,p===a?c:p)}}else if(e.indexOf(ka(o),c)!=c){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},k.unescape=function(e){return(e=Fo(e))&&Ne.test(e)?e.replace(Ie,sn):e},k.uniqueId=function(e){var t=++wi;return Fo(e)+t},k.upperCase=cc,k.upperFirst=sc,k.each=mo,k.eachRight=yo,k.first=ao,ei(k,(xu={},Bt(k,(function(e,t){bi.call(k.prototype,t)||(xu[t]=e)})),xu),{chain:!1}),k.VERSION="4.17.21",s(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){k[e].placeholder=k})),s(["drop","take"],(function(e,t){lt.prototype[e]=function(n){n=n===a?1:Zi(Mo(n),0);var r=this.__filtered__&&!t?new lt(this):this.clone();return r.__filtered__?r.__takeCount__=Gi(n,r.__takeCount__):r.__views__.push({size:Gi(n,te),type:e+(r.__dir__<0?"Right":"")}),r},lt.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),s(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;lt.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ir(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),s(["head","last"],(function(e,t){var n="take"+(t?"Right":"");lt.prototype[e]=function(){return this[n](1).value()[0]}})),s(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");lt.prototype[e]=function(){return this.__filtered__?new lt(this):this[n](1)}})),lt.prototype.compact=function(){return this.filter(Jo)},lt.prototype.find=function(e){return this.filter(e).head()},lt.prototype.findLast=function(e){return this.reverse().find(e)},lt.prototype.invokeMap=Tn((function(e,t){return"function"==typeof e?new lt(this):this.map((function(n){return dn(n,e,t)}))})),lt.prototype.reject=function(e){return this.filter(_o(Ir(e)))},lt.prototype.slice=function(e,t){e=Mo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new lt(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=Mo(t))<0?n.dropRight(-t):n.take(t-e)),n)},lt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},lt.prototype.toArray=function(){return this.take(te)},Bt(lt.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=k[o?"take"+("last"==t?"Right":""):t],u=o||/^find/.test(t);i&&(k.prototype[t]=function(){var t=this.__wrapped__,c=o?[1]:arguments,s=r(t,lt),l=c[0],f=s||Tu(t),p=function(e){var t=i.apply(k,y([e],c));return o&&d?t[0]:t};f&&n&&"function"==typeof l&&1!=l.length&&(s=f=!1);var d=this.__chain__,h=!!this.__actions__.length,m=u&&!d,v=s&&!h;if(!u&&f){t=v?t:new lt(this);var g=e.apply(t,c);return g.__actions__.push({func:ho,args:[p],thisArg:a}),new st(g,d)}return m&&v?e.apply(this,c):(g=this.thru(p),m?o?g.value()[0]:g.value():g)})})),s(["pop","push","shift","sort","splice","unshift"],(function(e){var t=hi[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);k.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Tu(o)?o:[],e)}return this[n]((function(n){return t.apply(Tu(n)?n:[],e)}))}})),Bt(lt.prototype,(function(e,t){var n=k[t];if(n){var r=n.name+"";bi.call(ua,r)||(ua[r]=[]),ua[r].push({name:t,func:n})}})),ua[Ta(a,2).name]=[{name:"wrapper",func:a}],lt.prototype.clone=function(){var e=new lt(this.__wrapped__);return e.__actions__=or(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=or(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=or(this.__views__),e},lt.prototype.reverse=function(){if(this.__filtered__){var e=new lt(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},lt.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Tu(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Gi(t,e+a);break;case"takeRight":e=Zi(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,c=u-a,s=r?u:a-1,l=this.__iteratees__,f=l.length,p=0,d=Gi(c,this.__takeCount__);if(!n||!r&&o==c&&d==c)return qn(e,this.__actions__);var h=[];e:for(;c--&&p<d;){for(var m=-1,y=e[s+=t];++m<f;){var v=l[m],g=v.iteratee,b=v.type,w=g(y);if(2==b)y=w;else if(!w){if(1==b)continue e;break e}}h[p++]=y}return h},k.prototype.at=uu,k.prototype.chain=function(){return po(this)},k.prototype.commit=function(){return new st(this.value(),this.__chain__)},k.prototype.next=function(){this.__values__===a&&(this.__values__=No(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},k.prototype.plant=function(e){for(var t,n=this;r(n,Ke);){var o=no(n);o.__index__=0,o.__values__=a,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},k.prototype.reverse=function(){var e=this.__wrapped__;if(r(e,lt)){var t=e;return this.__actions__.length&&(t=new lt(this)),(t=t.reverse()).__actions__.push({func:ho,args:[so],thisArg:a}),new st(t,this.__chain__)}return this.thru(so)},k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=function(){return qn(this.__wrapped__,this.__actions__)},k.prototype.first=k.prototype.head,Ni&&(k.prototype[Ni]=function(){return this}),k}();Ht._=ln,(i=function(){return ln}.call(t,n,t,e))===a||(e.exports=i)}.call(this)},385:function(){System.register([],(function(e,t){return{execute:function(){e(function(){var e={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.y=t,r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}();var o={};return(0,r(968).s)(1),function(){"use strict";var e=function(e,t){for(var n in t)e[n]=t[n];return e},t=function(t){var n=function(e){for(var t=[],n=0;n<o.length;n++)o[n]===e?e=null:t.push(o[n]);o=t},r=function(n,r,i){t=r?n:e(e({},t),n);for(var a=o,u=0;u<a.length;u++)a[u](t,i)},o=[];return t=t||{},{action:function(e){var n=function(t){r(t,!1,e)};return function(){for(var r=arguments,o=[t],i=0;i<arguments.length;i++)o.push(r[i]);var a=e.apply(this,o);if(null!=a)return a.then?a.then(n):n(a)}},setState:r,subscribe:function(e){return o.push(e),function(){n(e)}},unsubscribe:n,getState:function(){return t}}},n=function(e,n){var r=s[e];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=t(n);return s[e]={value:o,active:!0},o},i=function(e,n){var r=s[e];if(!r){var o=t(n);return s[e]={value:o,active:!1},o}return r.value},a=function(e){return n("app",e)},u=function(){return i("app",{})},c=function(e,t,n){var r=t(e.getState());return e.subscribe((function(e){var o=t(e);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return a},createGlobalStore:function(){return n},getAppState:function(){return u},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},766:function(e){"use strict";e.exports=h},824:function(e){"use strict";e.exports=c},45:function(e){"use strict";e.exports=s},728:function(e){"use strict";e.exports=l},688:function(e){"use strict";e.exports=m},64:function(e){"use strict";e.exports=p},954:function(e){"use strict";e.exports=u},493:function(e){"use strict";e.exports=f},281:function(e){"use strict";e.exports=d}},y={};function v(e){var t=y[e];if(void 0!==t)return t.exports;var n=y[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,v),n.loaded=!0,n.exports}v.y=a,v.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return v.d(t,{a:t}),t},v.d=function(e,t){for(var n in t)v.o(t,n)&&!v.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;v.g.importScripts&&(e=v.g.location+"");var t=v.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),v.p=e}();var g={};return(0,v(968).s)(1),function(){"use strict";var i=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},a=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},u=function(e){return function(t){var n,r=function(e){if(Array.isArray(e))return e}(n=(0,Ie.useState)(e.getState()))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n)||function(e,t){if(e){if("string"==typeof e)return i(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,2):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0],u=r[1];(0,Ie.useEffect)((function(){return e.subscribe((function(e){return u(e)}))}),[]);var c={};return t&&(c=(0,Ie.useMemo)((function(){return function(e,t){"function"==typeof t&&(t=t(e));var n={};for(var r in t)n[r]=e.action(t[r]);return n}(e,t)}),[e,t])),function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){a(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e}({},o,c)}},c=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},s=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},l=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,Ie.useState)(window.navigator.onLine))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return(0,Ie.useEffect)((function(){return(0,ze.subscribeConnectivityChanged)((function(e){var t=e.online;return r(t)}))}),[]),n},f=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},p=function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=(0,Ie.useState)([]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return f(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Ie.useEffect)((function(){var t=function(t){var n,i,a=null!==(i=null===(n=t.slots[e])||void 0===n?void 0:n.assignedExtensions)&&void 0!==i?i:[];(0,Fe.isEqual)(a,r)||o(a)};return t((0,Le.getExtensionStore)().getState()),(0,Le.getExtensionStore)().subscribe(t)}),[e,r]),r},d=function(e){var t=l(),n=p(e);return(0,Ie.useMemo)((function(){return(0,Le.getConnectedExtensions)(n,t)}),[n,t])},h=function(e){var t=(0,Ie.useContext)(Re).moduleName;if(!t)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,Ie.useEffect)((function(){(0,Le.registerExtensionSlot)(t,e)}),[]),{extensions:d(e),extensionSlotName:e,extensionSlotModuleName:t}},m=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},y=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){m(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},b=function(e){return e},w=function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n},_=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{};n%2?w(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))},r=1;r<arguments.length;r++)n(r);return e},x=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=function(e,t){var n;if("function"!=typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(Ke(n)));return function(){var e=n(t);if(!r(e,HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(Ke(e)));return e}},E=function(e){if("object"!==qe(e))throw new Error("single-spa-react requires a configuration object");var t=_(_({},Ze),e);if(!t.React)throw new Error("single-spa-react must be passed opts.React");if(!t.ReactDOM)throw new Error("single-spa-react must be passed opts.ReactDOM");if(!t.rootComponent&&!t.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(t.errorBoundary&&"function"!=typeof t.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!He&&t.React.createContext&&(He=t.React.createContext()),t.SingleSpaRoot=function(e){function t(e){t.displayName="SingleSpaRoot(".concat(e.name,")")}return t.prototype=Object.create(e.React.Component.prototype),t.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},t.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},t.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},t}(t);var n={bootstrap:$.bind(null,t),mount:O.bind(null,t),unmount:k.bind(null,t)};return t.parcelCanUpdate&&(n.update=j.bind(null,t)),n},$=function(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then((function(t){e.rootComponent=t}))},O=function(e,t){return new Promise((function(n,r){e.suppressComponentDidCatchWarning||!function(e){if(!(e&&"string"==typeof e.version&&e.version.indexOf(".")>=0))return!1;var t=e.version.slice(0,e.version.indexOf("."));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=P(e,t,(function(){n(this)})),i=S(e,t)(),a=function(e){var t=e.opts,n=e.elementToRender,r=e.domElement,o="function"==typeof t.renderType?t.renderType():t.renderType;if(["createRoot","unstable_createRoot","createBlockingRoot","unstable_createBlockingRoot"].indexOf(o)>=0){var i=t.ReactDOM[o](r);return i.render(n),i}return"hydrate"===o?t.ReactDOM.hydrate(n,r):t.ReactDOM.render(n,r),null}({elementToRender:o,domElement:i,opts:e});e.domElements[t.name]=i,e.renderResults[t.name]=a}))},k=function(e,t){return new Promise((function(n){e.unmountFinished=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():e.ReactDOM.unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]}))},j=function(e,t){return new Promise((function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=P(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=S(e,t)();e.ReactDOM.render(r,i)}}))},P=function(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=He?e.React.createElement(He.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(e,t){function n(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(t.name,")")}return n.prototype=Object.create(e.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},n}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),e.React.createElement(e.SingleSpaRoot,_(_({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach((function(e){return e()})),delete e.updateResolves[t.name])},unmountFinished:function(){setTimeout(e.unmountFinished)}}),o)},T=function(e,t){return!t||"object"!==et(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t},A=function(e){if("object"!=typeof e||"string"!=typeof e.featureName||"string"!=typeof e.moduleName)throw new Error("Invalid options");var t=Object.assign({},nt,e);return function(e){var n;return(n=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xe(e,t)}(u,n);var o,i,a=(o=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Je(o);if(i){var n=Je(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return T(this,e)});function u(e){var n;return function(e,t){if(!r(e,t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,e)).state={caughtError:null,caughtErrorInfo:null,config:{moduleName:t.moduleName,extension:e._extensionContext}},n}var c=u.prototype;return c.componentDidCatch=function(e,n){n&&n.componentStack&&(e.extra=Object.assign(e.extra||{},{componentStack:n.componentStack})),t.throwErrorsToConsole&&setTimeout((function(){throw e})),this.setState({caughtError:e,caughtErrorInfo:n})},c.render=function(){if(this.state.caughtError)return Ie.default.createElement("div",null,"An error has occurred. Please try reloading the page.");var n=this,r=Ie.default.createElement(Re.Provider,{value:this.state.config},Ie.default.createElement(Ie.default.Suspense,{fallback:null},t.disableTranslations?Ie.default.createElement(e,Ye({},this.props)):Ie.default.createElement(rt,{ns:t.moduleName,forceUpdate:function(){return n.forceUpdate()}},Ie.default.createElement(Qe.I18nextProvider,{i18n:tt,defaultNS:t.moduleName},Ie.default.createElement(e,Ye({},this.props))))));return t.strictMode||!Ie.default.StrictMode?r:Ie.default.createElement(Ie.default.StrictMode,null,r)},u}(Ie.default.Component)).displayName="OpenmrsReactComponent(".concat(t.featureName,")"),n}},C=function(e,t){return E({React:Ie.default,ReactDOM:We.default,rootComponent:A(t)(e)})},I=function(e,t){return function(){return e().then((function(e){return C(e.default,t)}))}},R=function(e,t){return function(){return Promise.resolve(C(e,t))}},N=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},D=function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=(0,Ie.useState)([]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return N(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Ie.useEffect)((function(){return(0,Le.getExtensionStore)().subscribe((function(t){var n,i,a=null!==(i=null===(n=t.slots[e])||void 0===n?void 0:n.assignedExtensions.map((function(e){return e.id})))&&void 0!==i?i:[];(0,Fe.isEqual)(a,r)||o(a)}))}),[]),r},M=function(e){(0,Ie.useEffect)((function(){if(e){var t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=t}}}),[e])},L=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},U=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},z=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},F=function(e){var t=this.__data__=new st(e);this.size=t.size},B=function(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new zt;++t<n;)this.add(e[t])},V=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},W=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},q=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},K=function(){var e=(0,Ie.useContext)(Re),t=e.moduleName,n=e.extension;if(!t&&!n)throw Error('No ComponentContext has been provided. This should come from "openmrsComponentDecorator".\nUsually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".');var r=function(e){var t,n,r,o,i,a,u=(0,Ie.useMemo)((function(){return(0,Ne.getConfigStore)(e)}),[e]),c=e,s=(t=u,o=(r=q((0,Ie.useState)((n=t,function(){var e=n.getState();return e.loaded&&e.config?e.config:null})),2))[0],i=r[1],(0,Ie.useEffect)((function(){return null==t?void 0:t.subscribe((function(e){e.loaded&&e.config&&i(e.config)}))}),[t]),o);if(!s)throw er[c]||(er[c]=(a=u,new Promise((function(e){var t=a.subscribe((function(n){n.loaded&&n.config&&(e(n.config),t())}))})))),er[c];return s}(t),o=function(e){var t,n,r=(0,Ie.useMemo)(Ne.getExtensionsConfigStore,[]),o=function(e,t){var n,r,o=q((0,Ie.useState)((n=e,(r=t)?function(){var e=n.getState(),t=(0,Ne.getExtensionConfigFromStore)(e,r.extensionSlotName,r.extensionId);if(t.loaded&&t.config)return t.config}:null)),2),i=o[0],a=o[1];return(0,Ie.useEffect)((function(){if(t)return e.subscribe((function(e){var n=(0,Ne.getExtensionConfigFromStore)(e,t.extensionSlotName,t.extensionId);n.loaded&&n.config&&!Xn(n.config,i)&&a(n.config)}))}),[e,t,i]),i}(r,e);if(!o&&e){var i="".concat(e.extensionSlotName,"-").concat(e.extensionId);throw!er[i]&&r&&(er[i]=(t=r,n=e,new Promise((function(e){var r=t.subscribe((function(t){var o=(0,Ne.getExtensionConfigFromStore)(t,n.extensionSlotName,n.extensionId);o.loaded&&o.config&&(e(o.config),r())}))})))),er[i]}return o||{}}(n),i=(0,Ie.useMemo)((function(){return function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){W(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e}({},r,o)}),[r,o]);return i},H=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},Z=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},G=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){Z(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},Q=function(){var e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]},Y=function(e,t){switch(t.type){case Kn.loadPatient:return G({},e,{patientUuid:t.patientUuid,patient:null,isPendingUuid:!1,isLoadingPatient:!0,err:null});case Kn.newPatient:return G({},e,{patient:t.patient,isPendingUuid:!1,isLoadingPatient:!1,err:null});case Kn.loadError:return G({},e,{patient:null,isPendingUuid:!1,isLoadingPatient:!1,err:t.err});default:return e}},J=function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=(0,Ie.useReducer)(Y,G({},rr,{patientUuid:null!=e?e:null,isPendingUuid:!e,isLoadingPatient:!!e})))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return H(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Ie.useEffect)((function(){if(r.isPendingUuid){var e=Q();o(e?{type:Kn.loadPatient,patientUuid:e}:{type:Kn.newPatient,patient:null})}var t=!0;return r.isLoadingPatient&&r.patientUuid&&(0,tr.fetchCurrentPatient)(r.patientUuid).then((function(e){return t&&o({patient:e.data,type:Kn.newPatient})}),(function(e){return t&&o({err:e,type:Kn.loadError})})),function(){t=!1}}),[r.isPendingUuid,r.isLoadingPatient,r.patientUuid]),(0,Ie.useEffect)((function(){var e=function(e){var t=Q();t!=r.patientUuid&&o({type:Kn.loadPatient,patientUuid:t})};return window.addEventListener("single-spa:routing-event",e),function(){return window.removeEventListener("single-spa:routing-event",e)}}),[r.patientUuid]),{isLoading:r.isPendingUuid||r.isLoadingPatient,patient:r.patient,patientUuid:null!=e?e:r.patientUuid,error:r.err}},X=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},ee=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},te=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){ee(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},ne=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},re=function(){var e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]},oe=function(e,t){switch(t.type){case nr.loadPatient:return te({},e,{patient:null,isLoadingPatient:!0,err:null});case nr.newPatient:return te({},e,{patient:t.patient,isLoadingPatient:!1,err:null});case nr.loadError:return te({},e,{patient:null,isLoadingPatient:!1,err:t.err});default:return e}},ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),t=ne((0,Ie.useReducer)(oe,ur),2),n=t[0],r=t[1];return(0,Ie.useEffect)((function(){var t=!0;return e?((0,tr.fetchCurrentPatient)(e).then((function(e){return t&&r({patient:e.data,type:nr.newPatient})}),(function(e){return t&&r({err:e,type:nr.loadError})})),r({type:nr.loadPatient})):r({type:nr.newPatient,patient:null}),function(){t=!1}}),[e]),[n.isLoadingPatient,n.patient,e,n.err]},ae=function(e){var t=d(e);return(0,Ie.useMemo)((function(){return Object.fromEntries(t.map((function(e){return[e.name,e.meta]})))}),[t])},ue=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},ce=function(){var e,t=(e=(0,Ie.useState)(0),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return ue(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return(0,Ie.useCallback)((function(){t((function(e){return e+1}))}),[])},se=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},le=function(){var e="tablet";return document.body.classList.forEach((function(t){switch(t){case"omrs-breakpoint-lt-tablet":e="phone";break;case"omrs-breakpoint-gt-tablet":e="desktop"}})),e},fe=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,Ie.useState)(le))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return se(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return(0,Ie.useEffect)((function(){var e=function(){r(le())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),n},pe=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},de=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,Ie.useState)([]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return pe(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return(0,Ie.useEffect)((function(){var e=(0,tr.getLocations)().subscribe((function(e){r(e)}),(function(e){console.error(e)}));return function(){return e.unsubscribe()}}),[]),n},he=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,Ie.useRef)(null);return(0,Ie.useEffect)((function(){if(t){var r=function(t){var r;(null==n||null===(r=n.current)||void 0===r?void 0:r.contains(t.target))||e(t)};return window.addEventListener("click",r),function(){return window.removeEventListener("click",r)}}}),[e,t]),n},me=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},ye=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},ve=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,Ie.useState)(null))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return ye(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1],o=null;if(!n){if(or){var i=(0,tr.getSessionStore)().getState();i.loaded&&(o=i.session)}else or=new Promise((function(e){var t=function(t){var n=t.loaded,r=t.session;n&&(e(r),o=r,ir&&ir(),ir=void 0)};t((0,tr.getSessionStore)().getState()),o||(ir=(0,tr.getSessionStore)().subscribe(t))}));if(!o)throw or;r(o)}(0,Ie.useEffect)((function(){return ir||(ir=(0,tr.getSessionStore)().subscribe((function(e){var t=e.loaded,n=e.session;t&&(o=n,r(n))}))),function(){ir&&ir(),ir=void 0}}),[]);var a=n||o;if(!a)throw or?(console.warn("useSessionUser is in an unexpected state. Attempting to recover."),or):Error("useSessionUser is in an invalid state.");return a},ge=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},be=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},we=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){be(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},_e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},xe=function(e,t){"function"==typeof t&&(t=t(e));var n={};for(var r in t)n[r]=e.action(t[r]);return n},Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pr,n=arguments.length>2?arguments[2]:void 0,r=_e((0,Ie.useState)((function(){return t(e.getState())})),2),o=r[0],i=r[1];(0,Ie.useEffect)((function(){return(0,fr.subscribeTo)(e,t,i)}),[e,t]);var a={};return n&&(a=(0,Ie.useMemo)((function(){return xe(e,n)}),[e,n])),we({},o,a)},Ee=function(e,t){return Se(e,pr,t)},$e=function(e,t,n,o){return new(n||(n=Promise))((function(i,a){function u(e){try{s(o.next(e))}catch(e){a(e)}}function c(e){try{s(o.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,r(t,n)?t:new n((function(e){e(t)}))).then(u,c)}s((o=o.apply(e,t||[])).next())}))},Oe=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},ke=function(e){var t,n=to(e?"/ws/rest/v1/visit?patient=".concat(e,"&v=").concat(tr.defaultVisitCustomRepresentation,"&includeInactive=false"):null,tr.openmrsFetch),r=n.data;return{error:n.error,mutate:n.mutate,isValidating:n.isValidating,currentVisit:null!==(t=null==r?void 0:r.data.results.find((function(e){return null===e.stopDatetime&&(0,no.default)(e.startDatetime).isToday()})))&&void 0!==t?t:null}},je=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},Pe=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,Ie.useState)([]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return je(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return(0,Ie.useEffect)((function(){var e=(0,tr.getVisitTypes)().subscribe((function(e){r(e)}),(function(e){return console.error(e)}));return function(){return e.unsubscribe()}}),[]),n},Te=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},Ae=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=Ae((0,Ie.useState)(1),2),r=n[0],o=n[1],i=(0,Ie.useMemo)((function(){return Math.max(1,Math.ceil(e.length/t))}),[e.length,t]),a=(0,Ie.useMemo)((function(){var n=(r-1)*t,o=(r+0)*t;return e.slice(n,o)}),[e,r,t]);return{results:a,totalPages:i,currentPage:r,paginated:e.length>t,showNextButton:r<i,showPreviousButton:r>1,goTo:function(e){o(Math.max(1,Math.min(i,e)))},goToNext:function(){r<i&&o(r+1)},goToPrevious:function(){r>1&&o(r-1)}}};v.r(g),v.d(g,{ComponentContext:function(){return Re},ConfigurableLink:function(){return Me},Extension:function(){return Ue},ExtensionSlot:function(){return Ve},UserHasAccess:function(){return lr},createUseStore:function(){return u},getAsyncExtensionLifecycle:function(){return ot},getAsyncLifecycle:function(){return I},getLifecycle:function(){return C},getSyncLifecycle:function(){return R},openmrsComponentDecorator:function(){return A},useAssignedExtensionIds:function(){return D},useAssignedExtensions:function(){return p},useBodyScrollLock:function(){return M},useConfig:function(){return K},useConnectedExtensions:function(){return d},useConnectivity:function(){return l},useCurrentPatient:function(){return ie},useExtensionInternalStore:function(){return cr},useExtensionSlot:function(){return h},useExtensionSlotMeta:function(){return ae},useExtensionStore:function(){return sr},useForceUpdate:function(){return ce},useLayoutType:function(){return fe},useLocations:function(){return de},useOnClickOutside:function(){return he},usePagination:function(){return Ce},usePatient:function(){return J},useSession:function(){return ve},useStore:function(){return Se},useStoreWithActions:function(){return Ee},useVisit:function(){return ke},useVisitTypes:function(){return Pe}});var Ie=v(954),Re=Ie.default.createContext({moduleName:""}),Ne=v(824);function De(){return De=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},De.apply(this,arguments)}var Me=function(e){var t=e.to,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["to","children"]);return Ie.default.createElement("a",De({onClick:function(e){return r=t,void((n=e).metaKey||n.ctrlKey||n.shiftKey||0!=n.button||(n.preventDefault(),(0,Ne.navigate)({to:r})));var n,r},href:(0,Ne.interpolateUrl)(t)},r),n)},Le=v(45),Ue=function(e){var t,n=e.state,r=e.wrap,o=function(e){if(Array.isArray(e))return e}(t=(0,Ie.useState)())||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1],u=(0,Ie.useContext)(Re).extension,s=(0,Ie.useCallback)((function(e){a(e)}),[]);(0,Ie.useEffect)((function(){if(null!=i&&u)return(0,Le.renderExtension)(i,u.extensionSlotName,u.extensionSlotModuleName,u.extensionId,void 0,n)}),[null==u?void 0:u.extensionSlotName,null==u?void 0:u.extensionId,null==u?void 0:u.extensionSlotModuleName,n,i]);var l=Ie.default.createElement("div",{ref:s,"data-extension-id":null==u?void 0:u.extensionId,style:{position:"relative"}});return u&&r?r(l,u):l},ze=v(728),Fe=v(891);function Be(){return Be=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},Be.apply(this,arguments)}var Ve=function(e){var t=e.extensionSlotName,n=e.select,r=void 0===n?b:n,o=e.children,i=e.state,a=e.style,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["extensionSlotName","select","children","state","style"]),c=(0,Ie.useRef)(null),s=h(t),l=s.extensions,f=s.extensionSlotModuleName,p=(0,Ie.useRef)(i);(function(e,t){if(e===t)return!0;if(!e&&t)return!1;if(e&&!t)return!1;if("object"!=typeof e||"object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!(i in t)||t[i]!==e[i])return!1}return!0})(p.current,i)||(p.current=i);var d=(0,Ie.useMemo)((function(){return t&&r(l).map((function(e){return Ie.default.createElement(Re.Provider,{key:e.id,value:{moduleName:f,extension:{extensionId:e.id,extensionSlotName:t,extensionSlotModuleName:f}}},null!=o?o:Ie.default.createElement(Ue,{state:p.current}))}))}),[r,l,t,p.current]);return Ie.default.createElement("div",Be({ref:c,"data-extension-slot-name":t,"data-extension-slot-module-name":f,style:y({},a,{position:"relative"})},u),d)},We=v(493);function qe(e){return(qe="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":o(e)})(e)}function Ke(e){return(Ke="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":o(e)})(e)}var He=null;try{He=n(2735).createContext()}catch(e){}var Ze={React:null,ReactDOM:null,rootComponent:null,loadRootComponent:null,renderType:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{}},Ge=v(64),Qe=v(281);function Ye(){return Ye=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},Ye.apply(this,arguments)}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xe(e,t){return(Xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var et=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":void 0===e?"undefined":o(e)},tt=Ge.default.default||Ge.default,nt={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},rt=function(e){(0,Ie.useEffect)((function(){return tt.on("languageChanged",e.forceUpdate),function(){return tt.off("languageChanged",e.forceUpdate)}}),[e.forceUpdate]);var t=(0,Ie.useRef)(null);if(t.current)throw t.current;if(!tt.hasLoadedNamespace(e.ns)){var n=setTimeout((function(){console.warn("openmrsComponentDecorator: the React suspense promise for i18next.loadNamespaces(['".concat(e.ns,"']) did not resolve nor reject after three seconds. This could mean you have multiple versions of i18next and haven't made i18next a webpack external in all projects."))}),3e3);throw tt.loadNamespaces([e.ns]).then((function(){return clearTimeout(n)})).catch((function(e){clearTimeout(n),t.current=e}))}return Ie.default.createElement(Ie.default.Fragment,null,e.children)},ot=I,it=function(e,t){return e===t||e!=e&&t!=t},at=function(e,t){for(var n=e.length;n--;)if(it(e[n][0],t))return n;return-1},ut=Array.prototype.splice;L.prototype.clear=function(){this.__data__=[],this.size=0},L.prototype.delete=function(e){var t=this.__data__,n=at(t,e);return!(n<0||(n==t.length-1?t.pop():ut.call(t,n,1),--this.size,0))},L.prototype.get=function(e){var t=this.__data__,n=at(t,e);return n<0?void 0:t[n][1]},L.prototype.has=function(e){return at(this.__data__,e)>-1},L.prototype.set=function(e,t){var n=this.__data__,r=at(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var ct,st=L,lt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,pt=lt||ft||Function("return this")(),dt=pt.Symbol,ht=Object.prototype,mt=ht.hasOwnProperty,yt=ht.toString,vt=dt?dt.toStringTag:void 0,gt=Object.prototype.toString,bt=dt?dt.toStringTag:void 0,wt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bt&&bt in Object(e)?function(e){var t=mt.call(e,vt),n=e[vt];try{e[vt]=void 0;var r=!0}catch(e){}var o=yt.call(e);return r&&(t?e[vt]=n:delete e[vt]),o}(e):(t=e,gt.call(t));var t},_t=function(e){var t=void 0===e?"undefined":o(e);return null!=e&&("object"==t||"function"==t)},xt=function(e){if(!_t(e))return!1;var t=wt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},St=pt["__core-js_shared__"],Et=(ct=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||""))?"Symbol(src)_1."+ct:"",$t=Function.prototype.toString,Ot=function(e){if(null!=e){try{return $t.call(e)}catch(e){}try{return e+""}catch(e){}}return""},kt=/^\[object .+?Constructor\]$/,jt=Function.prototype,Pt=Object.prototype,Tt=jt.toString,At=Pt.hasOwnProperty,Ct=RegExp("^"+Tt.call(At).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),It=function(e,t){var n,r=null==(n=e)?void 0:n[t];return function(e){return!(!_t(e)||(t=e,Et&&Et in t))&&(xt(e)?Ct:kt).test(Ot(e));var t}(r)?r:void 0},Rt=It(pt,"Map"),Nt=It(Object,"create"),Dt=Object.prototype.hasOwnProperty,Mt=Object.prototype.hasOwnProperty;U.prototype.clear=function(){this.__data__=Nt?Nt(null):{},this.size=0},U.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},U.prototype.get=function(e){var t=this.__data__;if(Nt){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Dt.call(t,e)?t[e]:void 0},U.prototype.has=function(e){var t=this.__data__;return Nt?void 0!==t[e]:Mt.call(t,e)},U.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nt&&void 0===t?"__lodash_hash_undefined__":t,this};var Lt=U,Ut=function(e,t){var n,r,i=e.__data__;return("string"==(r=o(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};z.prototype.clear=function(){this.size=0,this.__data__={hash:new Lt,map:new(Rt||st),string:new Lt}},z.prototype.delete=function(e){var t=Ut(this,e).delete(e);return this.size-=t?1:0,t},z.prototype.get=function(e){return Ut(this,e).get(e)},z.prototype.has=function(e){return Ut(this,e).has(e)},z.prototype.set=function(e,t){var n=Ut(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var zt=z;F.prototype.clear=function(){this.__data__=new st,this.size=0},F.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},F.prototype.get=function(e){return this.__data__.get(e)},F.prototype.has=function(e){return this.__data__.has(e)},F.prototype.set=function(e,t){var n=this.__data__;if(r(n,st)){var o=n.__data__;if(!Rt||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new zt(o)}return n.set(e,t),this.size=n.size,this};var Ft=F;B.prototype.add=B.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},B.prototype.has=function(e){return this.__data__.has(e)};var Bt=B,Vt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Wt=function(e,t){return e.has(t)},qt=function(e,t,n,r,o,i){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(e),l=i.get(t);if(s&&l)return s==t&&l==e;var f=-1,p=!0,d=2&n?new Bt:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],m=t[f];if(r)var y=a?r(m,h,f,t,e,i):r(h,m,f,e,t,i);if(void 0!==y){if(y)continue;p=!1;break}if(d){if(!Vt(t,(function(e,t){if(!Wt(d,t)&&(h===e||o(h,e,n,r,i)))return d.push(t)}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p},Kt=pt.Uint8Array,Ht=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Zt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Gt=dt?dt.prototype:void 0,Qt=Gt?Gt.valueOf:void 0,Yt=Array.isArray,Jt=Object.prototype.propertyIsEnumerable,Xt=Object.getOwnPropertySymbols,en=Xt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Xt(e),(function(t){return Jt.call(e,t)})))}:function(){return[]},tn=function(e){return null!=e&&"object"==typeof e},nn=function(e){return tn(e)&&"[object Arguments]"==wt(e)},rn=Object.prototype,on=rn.hasOwnProperty,an=rn.propertyIsEnumerable,un=nn(function(){return arguments}())?nn:function(e){return tn(e)&&on.call(e,"callee")&&!an.call(e,"callee")},cn=un,sn=t&&!t.nodeType&&t,ln=sn&&e&&!e.nodeType&&e,fn=ln&&ln.exports===sn?pt.Buffer:void 0,pn=(fn?fn.isBuffer:void 0)||function(){return!1},dn=/^(?:0|[1-9]\d*)$/,hn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},mn={};mn["[object Float32Array]"]=mn["[object Float64Array]"]=mn["[object Int8Array]"]=mn["[object Int16Array]"]=mn["[object Int32Array]"]=mn["[object Uint8Array]"]=mn["[object Uint8ClampedArray]"]=mn["[object Uint16Array]"]=mn["[object Uint32Array]"]=!0,mn["[object Arguments]"]=mn["[object Array]"]=mn["[object ArrayBuffer]"]=mn["[object Boolean]"]=mn["[object DataView]"]=mn["[object Date]"]=mn["[object Error]"]=mn["[object Function]"]=mn["[object Map]"]=mn["[object Number]"]=mn["[object Object]"]=mn["[object RegExp]"]=mn["[object Set]"]=mn["[object String]"]=mn["[object WeakMap]"]=!1;var yn,vn,gn,bn=t&&!t.nodeType&&t,wn=bn&&e&&!e.nodeType&&e,_n=wn&&wn.exports===bn&<.process,xn=function(){try{return wn&&wn.require&&wn.require("util").types||_n&&_n.binding&&_n.binding("util")}catch(e){}}(),Sn=xn&&xn.isTypedArray,En=Sn?(yn=Sn,function(e){return yn(e)}):function(e){return tn(e)&&hn(e.length)&&!!mn[wt(e)]},$n=Object.prototype.hasOwnProperty,On=Object.prototype,kn=(vn=Object.keys,gn=Object,function(e){return vn(gn(e))}),jn=Object.prototype.hasOwnProperty,Pn=function(e){return n=en,r=function(e){return null!=(t=e)&&hn(t.length)&&!xt(t)?function(e,t){var n,r,i,a=Yt(e),u=!a&&cn(e),c=!a&&!u&&pn(e),s=!a&&!u&&!c&&En(e),l=a||u||c||s,f=l?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],p=f.length;for(var d in e)!$n.call(e,d)||l&&("length"==d||c&&("offset"==d||"parent"==d)||s&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(r=p,i=void 0===(n=d)?"undefined":o(n),(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&dn.test(n))&&n>-1&&n%1==0&&n<r))||f.push(d);return f}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||On))return kn(e);var t,n,r=[];for(var o in Object(e))jn.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}(t=e),Yt(t)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(t));var t,n,r},Tn=Object.prototype.hasOwnProperty,An=It(pt,"DataView"),Cn=It(pt,"Promise"),In=It(pt,"Set"),Rn=It(pt,"WeakMap"),Nn="[object Map]",Dn="[object Promise]",Mn="[object Set]",Ln="[object WeakMap]",Un="[object DataView]",zn=Ot(An),Fn=Ot(Rt),Bn=Ot(Cn),Vn=Ot(In),Wn=Ot(Rn),qn=wt;(An&&qn(new An(new ArrayBuffer(1)))!=Un||Rt&&qn(new Rt)!=Nn||Cn&&qn(Cn.resolve())!=Dn||In&&qn(new In)!=Mn||Rn&&qn(new Rn)!=Ln)&&(qn=function(e){var t=wt(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ot(n):"";if(r)switch(r){case zn:return Un;case Fn:return Nn;case Bn:return Dn;case Vn:return Mn;case Wn:return Ln}return t});var Kn,Hn=qn,Zn="[object Arguments]",Gn="[object Array]",Qn="[object Object]",Yn=Object.prototype.hasOwnProperty,Jn=function e(t,n,o,i,a){return t===n||(null==t||null==n||!tn(t)&&!tn(n)?t!=t&&n!=n:function(e,t,n,o,i,a){var u=Yt(e),c=Yt(t),s=u?Gn:Hn(e),l=c?Gn:Hn(t),f=(s=s==Zn?Qn:s)==Qn,p=(l=l==Zn?Qn:l)==Qn,d=s==l;if(d&&pn(e)){if(!pn(t))return!1;u=!0,f=!1}if(d&&!f)return a||(a=new Ft),u||En(e)?qt(e,t,n,o,i,a):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Kt(e),new Kt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return it(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=Ht;case"[object Set]":var c=1&r;if(u||(u=Zt),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var l=qt(u(e),u(t),r,o,i,a);return a.delete(e),l;case"[object Symbol]":if(Qt)return Qt.call(e)==Qt.call(t)}return!1}(e,t,s,n,o,i,a);if(!(1&n)){var h=f&&Yn.call(e,"__wrapped__"),m=p&&Yn.call(t,"__wrapped__");if(h||m){var y=h?e.value():e,v=m?t.value():t;return a||(a=new Ft),i(y,v,n,o,a)}}return!!d&&(a||(a=new Ft),function(e,t,n,o,i,a){var u=1&n,c=Pn(e),s=c.length;if(s!=Pn(t).length&&!u)return!1;for(var l=s;l--;){var f=c[l];if(!(u?f in t:Tn.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=u;++l<s;){var y=e[f=c[l]],v=t[f];if(o)var g=u?o(v,y,f,t,e,a):o(y,v,f,e,t,a);if(!(void 0===g?y===v||i(y,v,n,o,a):g)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&r(b,b)&&"function"==typeof w&&r(w,w)||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,o,i,a))}(t,n,o,i,e,a))},Xn=function(e,t){return Jn(e,t)},er={},tr=v(766);!function(e){e.loadPatient="loadPatient",e.newPatient="newPatient",e.loadError="patientLoadError"}(Kn||(Kn={}));var nr,rr={patientUuid:null,patient:null,isPendingUuid:!0,isLoadingPatient:!1,err:null};!function(e){e.loadPatient="loadPatient",e.newPatient="newPatient",e.loadError="patientLloadErroroadError"}(nr||(nr={}));var or,ir,ar,ur={patient:null,isLoadingPatient:!0,err:null},cr=u((0,Le.getExtensionInternalStore)()),sr=u((0,Le.getExtensionStore)()),lr=function(e){var t,n=e.privilege,r=e.children,o=function(e){if(Array.isArray(e))return e}(t=(0,Ie.useState)(null))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return me(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return(0,Ie.useEffect)((function(){var e=(0,tr.getCurrentUser)({includeAuthStatus:!1}).subscribe(a);return function(){return e.unsubscribe()}}),[]),i&&(0,tr.userHasAccess)(n,i)?Ie.default.createElement(Ie.default.Fragment,null,r):null},fr=v(385),pr=function(e){return e},dr=function(){},hr=void 0,mr=Object,yr=function(e){return e===hr},vr=function(e){return"function"==typeof e},gr=function(e,t){return mr.assign({},e,t)},br="undefined",wr=function(){return("undefined"==typeof window?"undefined":o(window))!=br},_r=new WeakMap,xr=0,Sr=function(e){var t,n,r=void 0===e?"undefined":o(e),i=e&&e.constructor,a=i==Date;if(mr(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=_r.get(e))return t;if(t=++xr+"~",_r.set(e,t),i==Array){for(t="@",n=0;n<e.length;n++)t+=Sr(e[n])+",";_r.set(e,t)}if(i==mr){t="#";for(var u=mr.keys(e).sort();!yr(n=u.pop());)yr(e[n])||(t+=n+":"+Sr(e[n])+",");_r.set(e,t)}}return t},Er=!0,$r=wr(),Or=("undefined"==typeof document?"undefined":o(document))!=br,kr=$r&&window.addEventListener?window.addEventListener.bind(window):dr,jr=Or?document.addEventListener.bind(document):dr,Pr=$r&&window.removeEventListener?window.removeEventListener.bind(window):dr,Tr=Or?document.removeEventListener.bind(document):dr,Ar={isOnline:function(){return Er},isVisible:function(){var e=Or&&document.visibilityState;return yr(e)||"hidden"!==e}},Cr={initFocus:function(e){return jr("visibilitychange",e),kr("focus",e),function(){Tr("visibilitychange",e),Pr("focus",e)}},initReconnect:function(e){var t=function(){Er=!0,e()},n=function(){Er=!1};return kr("online",t),kr("offline",n),function(){Pr("online",t),Pr("offline",n)}}},Ir=!wr()||"Deno"in window,Rr=Ir?Ie.useEffect:Ie.useLayoutEffect,Nr="undefined"!=typeof navigator&&navigator.connection,Dr=!Ir&&Nr&&(["slow-2g","2g"].includes(Nr.effectiveType)||Nr.saveData),Mr=function(e){if(vr(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Sr(e):"",t,e?"$swr$"+e:""]},Lr=new WeakMap,Ur=function(e,t,n,r,o,i,a){void 0===a&&(a=!0);var u=Lr.get(e),c=u[0],s=u[1],l=u[3],f=c[t],p=s[t];if(a&&p)for(var d=0;d<p.length;++d)p[d](n,r,o);return i&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},zr=0,Fr=function(){return++zr},Br=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $e(void 0,void 0,void 0,(function(){var t,n,r,o,i,a,u,c,s,l,f,p,d,h,m,y,v,g,b,w;return Oe(this,(function(_){switch(_.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],a=!!yr((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,u=!1!==i.revalidate,c=!1!==i.rollbackOnError,s=i.optimisticData,l=Mr(n),f=l[0],p=l[2],!f)return[2];if(d=Lr.get(t),h=d[2],e.length<3)return[2,Ur(t,f,t.get(f),hr,hr,u,!0)];if(m=r,v=Fr(),h[f]=[v,0],g=!yr(s),b=t.get(f),g&&(t.set(f,s),Ur(t,f,s)),vr(m))try{m=m(t.get(f))}catch(e){y=e}return m&&vr(m.then)?[4,m.catch((function(e){y=e}))]:[3,2];case 1:if(m=_.sent(),v!==h[f][0]){if(y)throw y;return[2,m]}y&&g&&c&&(a=!0,m=b,t.set(f,b)),_.label=2;case 2:return a&&(y||(vr(a)&&(m=a(m,b)),t.set(f,m)),t.set(p,gr(t.get(p),{error:y}))),h[f][1]=Fr(),[4,Ur(t,f,m,y,hr,u,!!a)];case 3:if(w=_.sent(),y)throw y;return[2,a?w:m]}}))}))},Vr=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},Wr=function(e,t){if(!Lr.has(e)){var n=gr(Cr,t),r={},o=Br.bind(hr,e),i=dr;if(Lr.set(e,[r,{},{},{},o]),!Ir){var a=n.initFocus(setTimeout.bind(hr,Vr.bind(hr,r,0))),u=n.initReconnect(setTimeout.bind(hr,Vr.bind(hr,r,1)));i=function(){a&&a(),u&&u(),Lr.delete(e)}}return[e,o,i]}return[e,Lr.get(e)[4]]},qr=Wr(new Map),Kr=qr[0],Hr=qr[1],Zr=gr({onLoadingSlow:dr,onSuccess:dr,onError:dr,onErrorRetry:function(e,t,n,r,o){var i=n.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!yr(i)&&a>i||setTimeout(r,u,o)},onDiscarded:dr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Dr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Dr?5e3:3e3,compare:function(e,t){return Sr(e)==Sr(t)},isPaused:function(){return!1},cache:Kr,mutate:Hr,fallback:{}},Ar),Gr=function(e,t){var n=gr(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=gr(o,a))}return n},Qr=(0,Ie.createContext)({}),Yr=function(e){return vr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Jr=function(){return gr(Zr,(0,Ie.useContext)(Qr))},Xr=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},eo={dedupe:!0},to=(mr.defineProperty((function(e){var t=e.value,n=Gr((0,Ie.useContext)(Qr),t),r=t&&t.provider,o=(0,Ie.useState)((function(){return r?Wr(r(n.cache||Kr),t):hr}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),Rr((function(){return o?o[2]:hr}),[]),(0,Ie.createElement)(Qr.Provider,gr(e,{value:n}))}),"default",{value:Zr}),ar=function(e,t,n){var r=n.cache,i=n.compare,a=n.fallbackData,u=n.suspense,c=n.revalidateOnMount,s=n.refreshInterval,l=n.refreshWhenHidden,f=n.refreshWhenOffline,p=Lr.get(r),d=p[0],h=p[1],m=p[2],y=p[3],v=Mr(e),g=v[0],b=v[1],w=v[2],_=(0,Ie.useRef)(!1),x=(0,Ie.useRef)(!1),S=(0,Ie.useRef)(g),E=(0,Ie.useRef)(t),$=(0,Ie.useRef)(n),O=function(){return $.current},k=function(){return O().isVisible()&&O().isOnline()},j=function(e){return r.set(w,gr(r.get(w),e))},P=r.get(g),T=yr(a)?n.fallback[g]:a,A=yr(P)?T:P,C=r.get(w)||{},I=C.error,R=!_.current,N=function(){return R&&!yr(c)?c:!O().isPaused()&&(u?!yr(A):yr(A)||n.revalidateIfStale)},D=!(!g||!t)&&(!!C.isValidating||R&&N()),M=function(e,t){var n=(0,Ie.useState)({})[1],r=(0,Ie.useRef)(e),o=(0,Ie.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,Ie.useCallback)((function(e){var i=!1,a=r.current;for(var u in e){var c=u;a[c]!==e[c]&&(a[c]=e[c],o.current[c]&&(i=!0))}i&&!t.current&&n({})}),[]);return Rr((function(){r.current=e})),[r,o.current,i]}({data:A,error:I,isValidating:D},x),L=M[0],U=M[1],z=M[2],F=(0,Ie.useCallback)((function(e){return $e(void 0,void 0,void 0,(function(){var t,o,a,u,c,s,l,f,p,d,h,v,w;return Oe(this,(function($){switch($.label){case 0:if(t=E.current,!g||!t||x.current||O().isPaused())return[2,!1];u=!0,c=e||{},s=!y[g]||!c.dedupe,l=function(){return!x.current&&g===S.current&&_.current},f=function(){var e=y[g];e&&e[1]===a&&delete y[g]},p={isValidating:!1},d=function(){j({isValidating:!1}),l()&&z(p)},j({isValidating:!0}),z({isValidating:!0}),$.label=1;case 1:return $.trys.push([1,3,,4]),s&&(Ur(r,g,L.current.data,L.current.error,!0),n.loadingTimeout&&!r.get(g)&&setTimeout((function(){u&&l()&&O().onLoadingSlow(g,n)}),n.loadingTimeout),y[g]=[t.apply(void 0,b),Fr()]),w=y[g],o=w[0],a=w[1],[4,o];case 2:return o=$.sent(),s&&setTimeout(f,n.dedupingInterval),y[g]&&y[g][1]===a?(j({error:hr}),p.error=hr,h=m[g],!yr(h)&&(a<=h[0]||a<=h[1]||0===h[1])?(d(),s&&l()&&O().onDiscarded(g),[2,!1]):(i(L.current.data,o)?p.data=L.current.data:p.data=o,i(r.get(g),o)||r.set(g,o),s&&l()&&O().onSuccess(o,g,n),[3,4])):(s&&l()&&O().onDiscarded(g),[2,!1]);case 3:return v=$.sent(),f(),O().isPaused()||(j({error:v}),p.error=v,s&&l()&&(O().onError(v,g,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||vr(n.shouldRetryOnError)&&n.shouldRetryOnError(v))&&k()&&O().onErrorRetry(v,g,n,F,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,d(),l()&&s&&Ur(r,g,p.data,p.error,!1),[2,!0]}}))}))}),[g]),B=(0,Ie.useCallback)(Br.bind(hr,r,(function(){return S.current})),[]);if(Rr((function(){E.current=t,$.current=n})),Rr((function(){if(g){var e=g!==S.current,t=F.bind(hr,eo),n=0,r=Xr(g,h,(function(e,t,n){z(gr({error:t,isValidating:n},i(L.current.data,e)?hr:{data:e}))})),a=Xr(g,d,(function(e){if(0==e){var r=Date.now();O().revalidateOnFocus&&r>n&&k()&&(n=r+O().focusThrottleInterval,t())}else if(1==e)O().revalidateOnReconnect&&k()&&t();else if(2==e)return F()}));return x.current=!1,S.current=g,_.current=!0,e&&z({data:A,error:I,isValidating:D}),N()&&(yr(A)||Ir?t():(u=t,wr()&&o(window.requestAnimationFrame)!=br?window.requestAnimationFrame(u):setTimeout(u,1))),function(){x.current=!0,r(),a()}}var u}),[g,F]),Rr((function(){var e,t=function(){var t=vr(s)?s(A):s;t&&-1!==e&&(e=setTimeout(n,t))},n=function(){L.current.error||!l&&!O().isVisible()||!f&&!O().isOnline()?t():F(eo).then(t)};return t(),function(){e&&(clearTimeout(e),e=-1)}}),[s,l,f,F]),(0,Ie.useDebugValue)(A),u&&yr(A)&&g)throw E.current=t,$.current=n,x.current=!1,yr(I)?F(eo):I;return{mutate:B,get data(){return U.data=!0,A},get error(){return U.error=!0,I},get isValidating(){return U.isValidating=!0,D}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Jr(),r=Yr(e),o=r[0],i=r[1],a=r[2],u=Gr(n,a),c=ar,s=u.use;if(s)for(var l=s.length;l-- >0;)c=s[l](c);return c(o,i||u.fetcher,u)}),no=v(688),ro=v(332),oo=v.n(ro);no.default.extend(oo())}(),g}())}}}))},5197:(e,t,n)=>{"use strict";n.d(t,{w:()=>c,hj:()=>Hn,g:()=>r.ExtensionData,dT:()=>$,Vz:()=>At,NV:()=>f,D$:()=>qe,Ae:()=>Ve,tl:()=>Be,a$:()=>We,YV:()=>He,P3:()=>g,yn:()=>Ze,ZR:()=>tt,BL:()=>b,Y9:()=>m,Yq:()=>bt,p8:()=>w,qd:()=>wt,jf:()=>_t,mr:()=>Et,Z_:()=>Ot,t$:()=>kt,h0:()=>qn,lm:()=>ft,kP:()=>It,oR:()=>Ft,xQ:()=>Bt,JF:()=>zn,NN:()=>Bn});var r={};n.r(r),n.d(r,{s:()=>i});var o=n(2735),i=o.createContext({moduleName:""}),a=n(9714);function u(){return u=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},u.apply(this,arguments)}var c=function(e){var t=e.to,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["to","children"]);return o.createElement("a",u({onClick:function(e){return function(e,t){e.metaKey||e.ctrlKey||e.shiftKey||0!=e.button||(e.preventDefault(),(0,a.navigate)({to:t}))}(e,t)},href:(0,a.interpolateUrl)(t)},r),n)};function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(e.getState()),2),r=n[0],i=n[1];(0,o.useEffect)((function(){return e.subscribe((function(e){return i(e)}))}),[]);var a={};return t&&(a=(0,o.useMemo)((function(){return function(e,t){"function"==typeof t&&(t=t(e));var n={};for(var r in t)n[r]=e.action(t[r]);return n}(e,t)}),[e,t])),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}({},r,a)}}var p=n(225),d=n(3103);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(window.navigator.onLine),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){return(0,d.subscribeConnectivityChanged)((function(e){var t=e.online;return n(t)}))}),[]),t}var y=n(2891);function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)([]),2),n=t[0],r=t[1];return(0,o.useEffect)((function(){var t=function(t){var o,i,a=null!==(i=null===(o=t.slots[e])||void 0===o?void 0:o.assignedExtensions)&&void 0!==i?i:[];(0,y.isEqual)(a,n)||r(a)};return t((0,p.getExtensionStore)().getState()),(0,p.getExtensionStore)().subscribe(t)}),[e,n]),n}function b(e){var t=m(),n=g(e);return(0,o.useMemo)((function(){return(0,p.getConnectedExtensions)(n,t)}),[n,t])}function w(e){var t=(0,o.useContext)(i).moduleName;if(!t)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,o.useEffect)((function(){(0,p.registerExtensionSlot)(t,e)}),[]),{extensions:b(e),extensionSlotName:e,extensionSlotModuleName:t}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(){return x=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},x.apply(this,arguments)}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_(e,t,n[t])}))}return e}function E(e){return e}var $=function(e){var t=e.extensionSlotName,n=e.select,r=void 0===n?E:n,a=e.children,u=e.state,c=e.style,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["extensionSlotName","select","children","state","style"]),l=(0,o.useRef)(null),f=w(t),p=f.extensions,d=f.extensionSlotModuleName,h=(0,o.useRef)(u);(function(e,t){if(e===t)return!0;if(!e&&t)return!1;if(e&&!t)return!1;if("object"!=typeof e||"object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!(i in t)||t[i]!==e[i])return!1}return!0})(h.current,u)||(h.current=u);var m=(0,o.useMemo)((function(){return t&&r(p).map((function(e){return o.createElement(i.Provider,{key:e.id,value:{moduleName:d,extension:{extensionId:e.id,extensionSlotName:t,extensionSlotModuleName:d}}},null!=a?a:o.createElement(Hn,{state:h.current}))}))}),[r,p,t,h.current]);return o.createElement("div",x({ref:l,"data-extension-slot-name":t,"data-extension-slot-module-name":d,style:S({},c,{position:"relative"})},s),m)},O=n(2788);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){var n;if("function"!=typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(A(n)));return function(){var e=n(t);if(!(e instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(A(e)));return e}}var I=null;try{I=require("react").createContext()}catch(k){}var R={React:null,ReactDOM:null,rootComponent:null,loadRootComponent:null,renderType:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{}};function N(e){if("object"!==P(e))throw new Error("single-spa-react requires a configuration object");var t=j(j({},R),e);if(!t.React)throw new Error("single-spa-react must be passed opts.React");if(!t.ReactDOM)throw new Error("single-spa-react must be passed opts.ReactDOM");if(!t.rootComponent&&!t.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(t.errorBoundary&&"function"!=typeof t.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!I&&t.React.createContext&&(I=t.React.createContext()),t.SingleSpaRoot=function(e){function t(e){t.displayName="SingleSpaRoot(".concat(e.name,")")}return t.prototype=Object.create(e.React.Component.prototype),t.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},t.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},t.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},t}(t);var n={bootstrap:D.bind(null,t),mount:M.bind(null,t),unmount:L.bind(null,t)};return t.parcelCanUpdate&&(n.update=U.bind(null,t)),n}function D(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then((function(t){e.rootComponent=t}))}function M(e,t){return new Promise((function(n,r){e.suppressComponentDidCatchWarning||!function(e){if(!(e&&"string"==typeof e.version&&e.version.indexOf(".")>=0))return!1;var t=e.version.slice(0,e.version.indexOf("."));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=z(e,t,(function(){n(this)})),i=C(e,t)(),a=function(e){var t=e.opts,n=e.elementToRender,r=e.domElement,o="function"==typeof t.renderType?t.renderType():t.renderType;if(["createRoot","unstable_createRoot","createBlockingRoot","unstable_createBlockingRoot"].indexOf(o)>=0){var i=t.ReactDOM[o](r);return i.render(n),i}return"hydrate"===o?t.ReactDOM.hydrate(n,r):t.ReactDOM.render(n,r),null}({elementToRender:o,domElement:i,opts:e});e.domElements[t.name]=i,e.renderResults[t.name]=a}))}function L(e,t){return new Promise((function(n){e.unmountFinished=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():e.ReactDOM.unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]}))}function U(e,t){return new Promise((function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=z(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=C(e,t)();e.ReactDOM.render(r,i)}}))}function z(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=I?e.React.createElement(I.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(e,t){function n(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(t.name,")")}return n.prototype=Object.create(e.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},n}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),e.React.createElement(e.SingleSpaRoot,j(j({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach((function(e){return e()})),delete e.updateResolves[t.name])},unmountFinished:function(){setTimeout(e.unmountFinished)}}),o)}function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){B(e,t,n[t])}))}return e}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(e,t,n){return t&&q(e.prototype,t),n&&q(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return H(e)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function Q(e,t){return Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Q(e,t)}function Y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}var J={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},X=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,e),this.init(t,n)}return K(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||J,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,V({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),ee=new X,te=function(){function e(){W(this,e),this.observers={}}return K(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function ne(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function re(e){return null==e?"":""+e}function oe(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function ie(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function ae(e,t,n){var r=ie(e,t,Object);r.obj[r.k]=n}function ue(e,t){var n=ie(e,t),r=n.obj,o=n.k;if(r)return r[o]}function ce(e,t,n){var r=ue(e,n);return void 0!==r?r:ue(t,n)}function se(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):se(e[r],t[r],n):e[r]=t[r]);return e}function le(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var fe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function pe(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return fe[e]})):e}var de="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,he=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return W(this,t),n=Z(this,G(t).call(this)),de&&te.call(H(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return Y(t,e),K(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),ue(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),ae(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=ue(this.data,a)||{};r?se(u,n,o):u=V({},u,n),ae(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?V({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(te),me={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},ye={},ve=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return W(this,t),n=Z(this,G(t).call(this)),de&&te.call(H(n)),oe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,H(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=ee.create("translator"),n}return Y(t,e),K(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==F(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,c=a.namespaces,s=c[c.length-1],l=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(f){var p=n.nsSeparator||this.options.nsSeparator;return s+p+u}return u}var d=this.resolve(e,n),h=d&&d.res,m=d&&d.usedKey||u,y=d&&d.exactUsedKey||u,v=Object.prototype.toString.apply(h),g=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,_="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&_&&g.indexOf(v)<0&&("string"!=typeof b||"[object Array]"!==v)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var x="[object Array]"===v,S=x?[]:{},E=x?y:m;for(var $ in h)if(Object.prototype.hasOwnProperty.call(h,$)){var O="".concat(E).concat(i).concat($);S[$]=this.translate(O,V({},n,{joinArrays:!1,ns:c})),S[$]===O&&(S[$]=h[$])}h=S}}else if(w&&"string"==typeof b&&"[object Array]"===v)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var k=!1,j=!1,P=void 0!==n.count&&"string"!=typeof n.count,T=t.hasDefaultValue(n),A=P?this.pluralResolver.getSuffix(l,n.count):"",C=n["defaultValue".concat(A)]||n.defaultValue;!this.isValidLookup(h)&&T&&(k=!0,h=C),this.isValidLookup(h)||(j=!0,h=u);var I=T&&C!==h&&this.options.updateMissing;if(j||k||I){if(this.logger.log(I?"updateKey":"missingKey",l,s,u,I?C:h),i){var R=this.resolve(u,V({},n,{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&D&&D[0])for(var M=0;M<D.length;M++)N.push(D[M]);else"all"===this.options.saveMissingTo?N=this.languageUtils.toResolveHierarchy(n.lng||this.language):N.push(n.lng||this.language);var L=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,s,t,I?r:h,I,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,s,t,I?r:h,I,n),o.emit("missingKey",e,s,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?N.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){L([e],u+t,n["defaultValue".concat(t)]||C)}))})):L(N,u,C))}h=this.extendTranslation(h,e,n,d,r),j&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(s,":").concat(u)),j&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(V({},n,{interpolation:V({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var c=e.match(this.interpolator.nestingRegexp);a=c&&c.length}var s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s=V({},this.options.interpolation.defaultVariables,s)),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),u){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,p="string"==typeof f?[f]:f;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=me.handle(p,e,t,this.options&&this.options.postProcessPassResolved?V({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,u),s=c.key;n=s;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,p=void 0!==u.context&&"string"==typeof u.context&&""!==u.context,d=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!ye["".concat(d[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(ye["".concat(d[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,c,l=s,d=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(d,s,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&p&&d.push(l+i),p&&d.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&d.push(l+=i));c=d.pop();)a.isValidLookup(t)||(r=c,t=a.getResource(n,e,c,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(te);function ge(e){return e.charAt(0).toUpperCase()+e.slice(1)}var be=function(){function e(t){W(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ee.create("languageUtils")}return K(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ge(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ge(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ge(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),we=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_e={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function xe(){var e={};return we.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:_e[t.fc]}}))})),e}var Se=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,e),this.languageUtils=t,this.options=n,this.logger=ee.create("pluralResolver"),this.rules=xe()}return K(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Ee=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};W(this,e),this.logger=ee.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return K(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:pe,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?le(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?le(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?le(t.nestingPrefix):t.nestingPrefixEscaped||le("$t("),this.nestingSuffix=t.nestingSuffix?le(t.nestingSuffix):t.nestingSuffixEscaped||le(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=ce(t,c,e);return u.alwaysFormat?u.format(o,void 0,n):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),s=i.join(u.formatSeparator).trim();return u.format(ce(t,c,a),s,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return s(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?s(u.escape(e)):s(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(p){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=re(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=V({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=V({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],s=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),c=l,s=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=re(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),s&&(r=c.reduce((function(e,t){return o.format(e,t,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),$e=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return W(this,t),o=Z(this,G(t).call(this)),de&&te.call(H(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=ee.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return Y(t,e),K(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),c.indexOf(t)<0&&c.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,u,c,s,l;r=n.loaded,u=i,(s=(c=ie(r,[o],Object)).obj)[l=c.k]=s[l]||[],s[l].push(u),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,c){u&&c&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,V({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(te);function Oe(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===F(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===F(e[2])||"object"===F(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function ke(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function je(){}var Pe=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(W(this,t),e=Z(this,G(t).call(this)),de&&te.call(H(e)),e.options=ke(n),e.services={},e.logger=ee,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),Z(e,H(e));setTimeout((function(){e.init(n,r)}),0)}return e}return Y(t,e),K(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=V({},Oe(),this.options,ke(t)),this.format=this.options.interpolation.format,n||(n=je),!this.options.isClone){this.modules.logger?ee.init(r(this.modules.logger),this.options):ee.init(null,this.options);var o=new be(this.options);this.store=new he(this.options.resources,this.options);var i=this.services;i.logger=ee,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new Se(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Ee(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new $e(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new ve(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=ne(),l=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=ne();return e||(e=this.languages),t||(t=this.options.ns),n||(n=je),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&me.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=ne();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==F(r)){for(var i=arguments.length,a=new Array(i>2?i-2:0),u=2;u<i;u++)a[u-2]=arguments[u];o=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else o=V({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=ne();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=ne();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je,o=V({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=V({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new ve(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(te);const Te=new Pe;var Ae=o.createContext();function Ce(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=(0,o.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,o.createElement)(Ae.Provider,{value:i},r)}function Ie(){return Ie=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},Ie.apply(this,arguments)}function Re(e){return Re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Re(e)}function Ne(e,t){return!t||"object"!==Me(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function De(e,t){return De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},De(e,t)}K((function e(){W(this,e),this.usedNamespaces={}}),[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]);var Me=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var Le=Te.default||Te,Ue={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},ze=function(e){(0,o.useEffect)((function(){return Le.on("languageChanged",e.forceUpdate),function(){return Le.off("languageChanged",e.forceUpdate)}}),[e.forceUpdate]);var t=(0,o.useRef)(null);if(t.current)throw t.current;if(!Le.hasLoadedNamespace(e.ns)){var n=setTimeout((function(){console.warn("openmrsComponentDecorator: the React suspense promise for i18next.loadNamespaces(['".concat(e.ns,"']) did not resolve nor reject after three seconds. This could mean you have multiple versions of i18next and haven't made i18next a webpack external in all projects."))}),3e3);throw Le.loadNamespaces([e.ns]).then((function(){return clearTimeout(n)})).catch((function(e){clearTimeout(n),t.current=e}))}return o.createElement(o.Fragment,null,e.children)};function Fe(e){if("object"!=typeof e||"string"!=typeof e.featureName||"string"!=typeof e.moduleName)throw new Error("Invalid options");var t=Object.assign({},Ue,e);return function(e){var n;return(n=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&De(e,t)}(c,n);var r,a,u=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Re(r);if(a){var n=Re(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ne(this,e)});function c(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=u.call(this,e)).state={caughtError:null,caughtErrorInfo:null,config:{moduleName:t.moduleName,extension:e._extensionContext}},n}var s=c.prototype;return s.componentDidCatch=function(e,n){n&&n.componentStack&&(e.extra=Object.assign(e.extra||{},{componentStack:n.componentStack})),t.throwErrorsToConsole&&setTimeout((function(){throw e})),this.setState({caughtError:e,caughtErrorInfo:n})},s.render=function(){if(this.state.caughtError)return o.createElement("div",null,"An error has occurred. Please try reloading the page.");var n=this,r=o.createElement(i.Provider,{value:this.state.config},o.createElement(o.Suspense,{fallback:null},t.disableTranslations?o.createElement(e,Ie({},this.props)):o.createElement(ze,{ns:t.moduleName,forceUpdate:function(){return n.forceUpdate()}},o.createElement(Ce,{i18n:Le,defaultNS:t.moduleName},o.createElement(e,Ie({},this.props))))));return t.strictMode||!o.StrictMode?r:o.createElement(o.StrictMode,null,r)},c}(o.Component)).displayName="OpenmrsReactComponent(".concat(t.featureName,")"),n}}function Be(e,t){return N({React:o,ReactDOM:O,rootComponent:Fe(t)(e)})}function Ve(e,t){return function(){return e().then((function(e){return Be(e.default,t)}))}}function We(e,t){return function(){return Promise.resolve(Be(e,t))}}var qe=Ve;function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function He(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ke(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)([]),2),n=t[0],r=t[1];return(0,o.useEffect)((function(){return(0,p.getExtensionStore)().subscribe((function(t){var o,i,a=null!==(i=null===(o=t.slots[e])||void 0===o?void 0:o.assignedExtensions.map((function(e){return e.id})))&&void 0!==i?i:[];(0,y.isEqual)(a,n)||r(a)}))}),[]),n}function Ze(e){(0,o.useEffect)((function(){if(e){var t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=t}}}),[e])}var Ge=n(3202);function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Xe={};function et(e){var t=(0,o.useMemo)(a.getExtensionsConfigStore,[]),n=function(e,t){var n=Je((0,o.useState)(function(e,t){return t?function(){var n=e.getState(),r=(0,a.getExtensionConfigFromStore)(n,t.extensionSlotName,t.extensionId);if(r.loaded&&r.config)return r.config}:null}(e,t)),2),r=n[0],i=n[1];return(0,o.useEffect)((function(){if(t)return e.subscribe((function(e){var n=(0,a.getExtensionConfigFromStore)(e,t.extensionSlotName,t.extensionId);n.loaded&&n.config&&!(0,Ge.Z)(n.config,r)&&i(n.config)}))}),[e,t,r]),r}(t,e);if(!n&&e){var r="".concat(e.extensionSlotName,"-").concat(e.extensionId);throw!Xe[r]&&t&&(Xe[r]=function(e,t){return new Promise((function(n){var r=e.subscribe((function(e){var o=(0,a.getExtensionConfigFromStore)(e,t.extensionSlotName,t.extensionId);o.loaded&&o.config&&(n(o.config),r())}))}))}(t,e)),Xe[r]}return n||{}}function tt(){var e=(0,o.useContext)(i),t=e.moduleName,n=e.extension;if(!t&&!n)throw Error('No ComponentContext has been provided. This should come from "openmrsComponentDecorator".\nUsually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".');var r=function(e){var t=(0,o.useMemo)((function(){return(0,a.getConfigStore)(e)}),[e]),n=e,r=function(e){var t=Je((0,o.useState)(function(e){return function(){var t=e.getState();return t.loaded&&t.config?t.config:null}}(e)),2),n=t[0],r=t[1];return(0,o.useEffect)((function(){return null==e?void 0:e.subscribe((function(e){e.loaded&&e.config&&r(e.config)}))}),[e]),n}(t);if(!r)throw Xe[n]||(Xe[n]=function(e){return new Promise((function(t){var n=e.subscribe((function(e){e.loaded&&e.config&&(t(e.config),n())}))}))}(t)),Xe[n];return r}(t),u=et(n),c=(0,o.useMemo)((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ye(e,t,n[t])}))}return e}({},r,u)}),[r,u]);return c}var nt,rt=n(7641);function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){it(e,t,n[t])}))}return e}!function(e){e.loadPatient="loadPatient",e.newPatient="newPatient",e.loadError="patientLoadError"}(nt||(nt={}));var ut,ct={patientUuid:null,patient:null,isPendingUuid:!0,isLoadingPatient:!1,err:null};function st(){var e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]}function lt(e,t){switch(t.type){case nt.loadPatient:return at({},e,{patientUuid:t.patientUuid,patient:null,isPendingUuid:!1,isLoadingPatient:!0,err:null});case nt.newPatient:return at({},e,{patient:t.patient,isPendingUuid:!1,isLoadingPatient:!1,err:null});case nt.loadError:return at({},e,{patient:null,isPendingUuid:!1,isLoadingPatient:!1,err:t.err});default:return e}}function ft(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useReducer)(lt,at({},ct,{patientUuid:null!=e?e:null,isPendingUuid:!e,isLoadingPatient:!!e})),2),n=t[0],r=t[1];return(0,o.useEffect)((function(){if(n.isPendingUuid){var e=st();r(e?{type:nt.loadPatient,patientUuid:e}:{type:nt.newPatient,patient:null})}var t=!0;return n.isLoadingPatient&&n.patientUuid&&(0,rt.fetchCurrentPatient)(n.patientUuid).then((function(e){return t&&r({patient:e.data,type:nt.newPatient})}),(function(e){return t&&r({err:e,type:nt.loadError})})),function(){t=!1}}),[n.isPendingUuid,n.isLoadingPatient,n.patientUuid]),(0,o.useEffect)((function(){var e=function(e){var t=st();t!=n.patientUuid&&r({type:nt.loadPatient,patientUuid:t})};return window.addEventListener("single-spa:routing-event",e),function(){return window.removeEventListener("single-spa:routing-event",e)}}),[n.patientUuid]),{isLoading:n.isPendingUuid||n.isLoadingPatient,patient:n.patient,patientUuid:null!=e?e:n.patientUuid,error:n.err}}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dt(e,t,n[t])}))}return e}function mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(e){e.loadPatient="loadPatient",e.newPatient="newPatient",e.loadError="patientLloadErroroadError"}(ut||(ut={}));var yt={patient:null,isLoadingPatient:!0,err:null};function vt(){var e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]}function gt(e,t){switch(t.type){case ut.loadPatient:return ht({},e,{patient:null,isLoadingPatient:!0,err:null});case ut.newPatient:return ht({},e,{patient:t.patient,isLoadingPatient:!1,err:null});case ut.loadError:return ht({},e,{patient:null,isLoadingPatient:!1,err:t.err});default:return e}}function bt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vt(),t=mt((0,o.useReducer)(gt,yt),2),n=t[0],r=t[1];return(0,o.useEffect)((function(){var t=!0;return e?((0,rt.fetchCurrentPatient)(e).then((function(e){return t&&r({patient:e.data,type:ut.newPatient})}),(function(e){return t&&r({err:e,type:ut.loadError})})),r({type:ut.loadPatient})):r({type:ut.newPatient,patient:null}),function(){t=!1}}),[e]),[n.isLoadingPatient,n.patient,e,n.err]}function wt(e){var t=b(e);return(0,o.useMemo)((function(){return Object.fromEntries(t.map((function(e){return[e.name,e.meta]})))}),[t])}f((0,p.getExtensionInternalStore)());var _t=f((0,p.getExtensionStore)());function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function St(){var e="tablet";return document.body.classList.forEach((function(t){switch(t){case"omrs-breakpoint-lt-tablet":e="phone";break;case"omrs-breakpoint-gt-tablet":e="desktop"}})),e}function Et(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(St),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=function(){n(St())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),t}function $t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ot(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)([]),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=(0,rt.getLocations)().subscribe((function(e){n(e)}),(function(e){console.error(e)}));return function(){return e.unsubscribe()}}),[]),t}function kt(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,o.useRef)(null);return(0,o.useEffect)((function(){if(t){var r=function(t){var r;(null==n||null===(r=n.current)||void 0===r?void 0:r.contains(t.target))||e(t)};return window.addEventListener("click",r),function(){return window.removeEventListener("click",r)}}}),[e,t]),n}function jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pt,Tt,At=function(e){var t=e.privilege,n=e.children,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(null),2),i=r[0],a=r[1];return(0,o.useEffect)((function(){var e=(0,rt.getCurrentUser)({includeAuthStatus:!1}).subscribe(a);return function(){return e.unsubscribe()}}),[]),i&&(0,rt.userHasAccess)(t,i)?o.createElement(o.Fragment,null,n):null};function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function It(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(null),2),t=e[0],n=e[1],r=null;if(!t){if(Pt){var i=(0,rt.getSessionStore)().getState();i.loaded&&(r=i.session)}else Pt=new Promise((function(e){var t=function(t){var n=t.loaded,o=t.session;n&&(e(o),r=o,Tt&&Tt(),Tt=void 0)};t((0,rt.getSessionStore)().getState()),r||(Tt=(0,rt.getSessionStore)().subscribe(t))}));if(!r)throw Pt;n(r)}(0,o.useEffect)((function(){return Tt||(Tt=(0,rt.getSessionStore)().subscribe((function(e){var t=e.loaded,o=e.session;t&&(r=o,n(o))}))),function(){Tt&&Tt(),Tt=void 0}}),[]);var a=t||r;if(!a)throw Pt?(console.warn("useSessionUser is in an unexpected state. Attempting to recover."),Pt):Error("useSessionUser is in an invalid state.");return a}var Rt=n(5385);function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Dt(e,t,n[t])}))}return e}function Lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){"function"==typeof t&&(t=t(e));var n={};for(var r in t)n[r]=e.action(t[r]);return n}var zt=function(e){return e};function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zt,n=arguments.length>2?arguments[2]:void 0,r=Lt((0,o.useState)((function(){return t(e.getState())})),2),i=r[0],a=r[1];(0,o.useEffect)((function(){return(0,Rt.subscribeTo)(e,t,a)}),[e,t]);var u={};return n&&(u=(0,o.useMemo)((function(){return Ut(e,n)}),[e,n])),Mt({},i,u)}function Bt(e,t){return Ft(e,zt,t)}function Vt(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))}function Wt(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var qt,Kt=function(){},Ht=Kt(),Zt=Object,Gt=function(e){return e===Ht},Qt=function(e){return"function"==typeof e},Yt=function(e,t){return Zt.assign({},e,t)},Jt="undefined",Xt=function(){return typeof window!=Jt},en=new WeakMap,tn=0,nn=function(e){var t,n,r=typeof e,o=e&&e.constructor,i=o==Date;if(Zt(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=en.get(e))return t;if(t=++tn+"~",en.set(e,t),o==Array){for(t="@",n=0;n<e.length;n++)t+=nn(e[n])+",";en.set(e,t)}if(o==Zt){t="#";for(var a=Zt.keys(e).sort();!Gt(n=a.pop());)Gt(e[n])||(t+=n+":"+nn(e[n])+",");en.set(e,t)}}return t},rn=!0,on=Xt(),an=typeof document!=Jt,un=on&&window.addEventListener?window.addEventListener.bind(window):Kt,cn=an?document.addEventListener.bind(document):Kt,sn=on&&window.removeEventListener?window.removeEventListener.bind(window):Kt,ln=an?document.removeEventListener.bind(document):Kt,fn={isOnline:function(){return rn},isVisible:function(){var e=an&&document.visibilityState;return Gt(e)||"hidden"!==e}},pn={initFocus:function(e){return cn("visibilitychange",e),un("focus",e),function(){ln("visibilitychange",e),sn("focus",e)}},initReconnect:function(e){var t=function(){rn=!0,e()},n=function(){rn=!1};return un("online",t),un("offline",n),function(){sn("online",t),sn("offline",n)}}},dn=!Xt()||"Deno"in window,hn=dn?o.useEffect:o.useLayoutEffect,mn="undefined"!=typeof navigator&&navigator.connection,yn=!dn&&mn&&(["slow-2g","2g"].includes(mn.effectiveType)||mn.saveData),vn=function(e){if(Qt(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?nn(e):"",t,e?"$swr$"+e:""]},gn=new WeakMap,bn=function(e,t,n,r,o,i,a){void 0===a&&(a=!0);var u=gn.get(e),c=u[0],s=u[1],l=u[3],f=c[t],p=s[t];if(a&&p)for(var d=0;d<p.length;++d)p[d](n,r,o);return i&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},wn=0,_n=function(){return++wn},xn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Vt(void 0,void 0,void 0,(function(){var t,n,r,o,i,a,u,c,s,l,f,p,d,h,m,y,v,g,b,w;return Wt(this,(function(_){switch(_.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],a=!!Gt((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,u=!1!==i.revalidate,c=!1!==i.rollbackOnError,s=i.optimisticData,l=vn(n),f=l[0],p=l[2],!f)return[2];if(d=gn.get(t),h=d[2],e.length<3)return[2,bn(t,f,t.get(f),Ht,Ht,u,!0)];if(m=r,v=_n(),h[f]=[v,0],g=!Gt(s),b=t.get(f),g&&(t.set(f,s),bn(t,f,s)),Qt(m))try{m=m(t.get(f))}catch(e){y=e}return m&&Qt(m.then)?[4,m.catch((function(e){y=e}))]:[3,2];case 1:if(m=_.sent(),v!==h[f][0]){if(y)throw y;return[2,m]}y&&g&&c&&(a=!0,m=b,t.set(f,b)),_.label=2;case 2:return a&&(y||(Qt(a)&&(m=a(m,b)),t.set(f,m)),t.set(p,Yt(t.get(p),{error:y}))),h[f][1]=_n(),[4,bn(t,f,m,y,Ht,u,!!a)];case 3:if(w=_.sent(),y)throw y;return[2,a?w:m]}}))}))},Sn=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},En=function(e,t){if(!gn.has(e)){var n=Yt(pn,t),r={},o=xn.bind(Ht,e),i=Kt;if(gn.set(e,[r,{},{},{},o]),!dn){var a=n.initFocus(setTimeout.bind(Ht,Sn.bind(Ht,r,0))),u=n.initReconnect(setTimeout.bind(Ht,Sn.bind(Ht,r,1)));i=function(){a&&a(),u&&u(),gn.delete(e)}}return[e,o,i]}return[e,gn.get(e)[4]]},$n=En(new Map),On=$n[0],kn=$n[1],jn=Yt({onLoadingSlow:Kt,onSuccess:Kt,onError:Kt,onErrorRetry:function(e,t,n,r,o){var i=n.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Gt(i)&&a>i||setTimeout(r,u,o)},onDiscarded:Kt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:yn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:yn?5e3:3e3,compare:function(e,t){return nn(e)==nn(t)},isPaused:function(){return!1},cache:On,mutate:kn,fallback:{}},fn),Pn=function(e,t){var n=Yt(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=Yt(o,a))}return n},Tn=(0,o.createContext)({}),An=function(e){return Qt(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Cn=function(){return Yt(jn,(0,o.useContext)(Tn))},In=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Rn={dedupe:!0},Nn=(Zt.defineProperty((function(e){var t=e.value,n=Pn((0,o.useContext)(Tn),t),r=t&&t.provider,i=(0,o.useState)((function(){return r?En(r(n.cache||On),t):Ht}))[0];return i&&(n.cache=i[0],n.mutate=i[1]),hn((function(){return i?i[2]:Ht}),[]),(0,o.createElement)(Tn.Provider,Yt(e,{value:n}))}),"default",{value:jn}),qt=function(e,t,n){var r=n.cache,i=n.compare,a=n.fallbackData,u=n.suspense,c=n.revalidateOnMount,s=n.refreshInterval,l=n.refreshWhenHidden,f=n.refreshWhenOffline,p=gn.get(r),d=p[0],h=p[1],m=p[2],y=p[3],v=vn(e),g=v[0],b=v[1],w=v[2],_=(0,o.useRef)(!1),x=(0,o.useRef)(!1),S=(0,o.useRef)(g),E=(0,o.useRef)(t),$=(0,o.useRef)(n),O=function(){return $.current},k=function(){return O().isVisible()&&O().isOnline()},j=function(e){return r.set(w,Yt(r.get(w),e))},P=r.get(g),T=Gt(a)?n.fallback[g]:a,A=Gt(P)?T:P,C=r.get(w)||{},I=C.error,R=!_.current,N=function(){return R&&!Gt(c)?c:!O().isPaused()&&(u?!Gt(A):Gt(A)||n.revalidateIfStale)},D=!(!g||!t)&&(!!C.isValidating||R&&N()),M=function(e,t){var n=(0,o.useState)({})[1],r=(0,o.useRef)(e),i=(0,o.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,o.useCallback)((function(e){var o=!1,a=r.current;for(var u in e){var c=u;a[c]!==e[c]&&(a[c]=e[c],i.current[c]&&(o=!0))}o&&!t.current&&n({})}),[]);return hn((function(){r.current=e})),[r,i.current,a]}({data:A,error:I,isValidating:D},x),L=M[0],U=M[1],z=M[2],F=(0,o.useCallback)((function(e){return Vt(void 0,void 0,void 0,(function(){var t,o,a,u,c,s,l,f,p,d,h,v,w;return Wt(this,(function($){switch($.label){case 0:if(t=E.current,!g||!t||x.current||O().isPaused())return[2,!1];u=!0,c=e||{},s=!y[g]||!c.dedupe,l=function(){return!x.current&&g===S.current&&_.current},f=function(){var e=y[g];e&&e[1]===a&&delete y[g]},p={isValidating:!1},d=function(){j({isValidating:!1}),l()&&z(p)},j({isValidating:!0}),z({isValidating:!0}),$.label=1;case 1:return $.trys.push([1,3,,4]),s&&(bn(r,g,L.current.data,L.current.error,!0),n.loadingTimeout&&!r.get(g)&&setTimeout((function(){u&&l()&&O().onLoadingSlow(g,n)}),n.loadingTimeout),y[g]=[t.apply(void 0,b),_n()]),w=y[g],o=w[0],a=w[1],[4,o];case 2:return o=$.sent(),s&&setTimeout(f,n.dedupingInterval),y[g]&&y[g][1]===a?(j({error:Ht}),p.error=Ht,h=m[g],!Gt(h)&&(a<=h[0]||a<=h[1]||0===h[1])?(d(),s&&l()&&O().onDiscarded(g),[2,!1]):(i(L.current.data,o)?p.data=L.current.data:p.data=o,i(r.get(g),o)||r.set(g,o),s&&l()&&O().onSuccess(o,g,n),[3,4])):(s&&l()&&O().onDiscarded(g),[2,!1]);case 3:return v=$.sent(),f(),O().isPaused()||(j({error:v}),p.error=v,s&&l()&&(O().onError(v,g,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||Qt(n.shouldRetryOnError)&&n.shouldRetryOnError(v))&&k()&&O().onErrorRetry(v,g,n,F,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,d(),l()&&s&&bn(r,g,p.data,p.error,!1),[2,!0]}}))}))}),[g]),B=(0,o.useCallback)(xn.bind(Ht,r,(function(){return S.current})),[]);if(hn((function(){E.current=t,$.current=n})),hn((function(){if(g){var e=g!==S.current,t=F.bind(Ht,Rn),n=0,r=In(g,h,(function(e,t,n){z(Yt({error:t,isValidating:n},i(L.current.data,e)?Ht:{data:e}))})),o=In(g,d,(function(e){if(0==e){var r=Date.now();O().revalidateOnFocus&&r>n&&k()&&(n=r+O().focusThrottleInterval,t())}else if(1==e)O().revalidateOnReconnect&&k()&&t();else if(2==e)return F()}));return x.current=!1,S.current=g,_.current=!0,e&&z({data:A,error:I,isValidating:D}),N()&&(Gt(A)||dn?t():(a=t,Xt()&&typeof window.requestAnimationFrame!=Jt?window.requestAnimationFrame(a):setTimeout(a,1))),function(){x.current=!0,r(),o()}}var a}),[g,F]),hn((function(){var e;function t(){var t=Qt(s)?s(A):s;t&&-1!==e&&(e=setTimeout(n,t))}function n(){L.current.error||!l&&!O().isVisible()||!f&&!O().isOnline()?t():F(Rn).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[s,l,f,F]),(0,o.useDebugValue)(A),u&&Gt(A)&&g)throw E.current=t,$.current=n,x.current=!1,Gt(I)?F(Rn):I;return{mutate:B,get data(){return U.data=!0,A},get error(){return U.error=!0,I},get isValidating(){return U.isValidating=!0,D}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Cn(),r=An(e),o=r[0],i=r[1],a=r[2],u=Pn(n,a),c=qt,s=u.use;if(s)for(var l=s.length;l-- >0;)c=s[l](c);return c(o,i||u.fetcher,u)}),Dn=n(7530),Mn=n.n(Dn),Ln=n(4332),Un=n.n(Ln);function zn(e){var t,n=Nn(e?"/ws/rest/v1/visit?patient=".concat(e,"&v=").concat(rt.defaultVisitCustomRepresentation,"&includeInactive=false"):null,rt.openmrsFetch),r=n.data;return{error:n.error,mutate:n.mutate,isValidating:n.isValidating,currentVisit:null!==(t=null==r?void 0:r.data.results.find((function(e){return null===e.stopDatetime&&Mn()(e.startDatetime).isToday()})))&&void 0!==t?t:null}}function Fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bn(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)([]),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=(0,rt.getVisitTypes)().subscribe((function(e){n(e)}),(function(e){return console.error(e)}));return function(){return e.unsubscribe()}}),[]),t}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=Wn((0,o.useState)(1),2),r=n[0],i=n[1],a=(0,o.useMemo)((function(){return Math.max(1,Math.ceil(e.length/t))}),[e.length,t]),u=(0,o.useMemo)((function(){var n=(r-1)*t,o=(r+0)*t;return e.slice(n,o)}),[e,r,t]);return{results:u,totalPages:a,currentPage:r,paginated:e.length>t,showNextButton:r<a,showPreviousButton:r>1,goTo:function(e){i(Math.max(1,Math.min(a,e)))},goToNext:function(){r<a&&i(r+1)},goToPrevious:function(){r>1&&i(r-1)}}}function Kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Mn().extend(Un());var Hn=function(e){var t=e.state,n=e.wrap,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(),2),a=r[0],u=r[1],c=(0,o.useContext)(i).extension,s=(0,o.useCallback)((function(e){u(e)}),[]);(0,o.useEffect)((function(){if(null!=a&&c)return(0,p.renderExtension)(a,c.extensionSlotName,c.extensionSlotModuleName,c.extensionId,void 0,t)}),[null==c?void 0:c.extensionSlotName,null==c?void 0:c.extensionId,null==c?void 0:c.extensionSlotModuleName,t,a]);var l=o.createElement("div",{ref:s,"data-extension-id":null==c?void 0:c.extensionId,style:{position:"relative"}});return c&&n?n(l,c):l}},5385:()=>{System.register([],(function(e,t){return{execute:function(){e(function(){var e={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.y=t,r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}();var o={};return(0,r(968).s)(1),function(){"use strict";var e=function(e,t){for(var n in t)e[n]=t[n];return e},t=function(t){var n=[];function r(e){for(var t=[],r=0;r<n.length;r++)n[r]===e?e=null:t.push(n[r]);n=t}function o(r,o,i){t=o?r:e(e({},t),r);for(var a=n,u=0;u<a.length;u++)a[u](t,i)}return t=t||{},{action:function(e){function n(t){o(t,!1,e)}return function(){for(var r=arguments,o=[t],i=0;i<arguments.length;i++)o.push(r[i]);var a=e.apply(this,o);if(null!=a)return a.then?a.then(n):n(a)}},setState:o,subscribe:function(e){return n.push(e),function(){r(e)}},unsubscribe:r,getState:function(){return t}}},n=function(e,n){var r=s[e];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=t(n);return s[e]={value:o,active:!0},o},i=function(e,n){var r=s[e];if(!r){var o=t(n);return s[e]={value:o,active:!1},o}return r.value},a=function(e){return n("app",e)},u=function(){return i("app",{})},c=function(e,t,n){var r=t(e.getState());return e.subscribe((function(e){var o=t(e);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return a},createGlobalStore:function(){return n},getAppState:function(){return u},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},1645:(e,t,n)=>{"use strict";n.d(t,{aB:()=>r.AppState,jk:()=>u,W5:()=>s,zJ:()=>c,se:()=>l});var r={};function o(e,t){for(var n in t)e[n]=t[n];return e}function i(e){var t=[];function n(e){for(var n=[],r=0;r<t.length;r++)t[r]===e?e=null:n.push(t[r]);t=n}function r(n,r,i){e=r?n:o(o({},e),n);for(var a=t,u=0;u<a.length;u++)a[u](e,i)}return e=e||{},{action:function(t){function n(e){r(e,!1,t)}return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var a=t.apply(this,o);if(null!=a)return a.then?a.then(n):n(a)}},setState:r,subscribe:function(e){return t.push(e),function(){n(e)}},unsubscribe:n,getState:function(){return e}}}n.r(r),n.d(r,{jk:()=>u,W5:()=>s,zJ:()=>c,se:()=>l});var a={};function u(e,t){var n=a[e];if(n)return n.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):n.value.setState(t,!0),n.active=!0,n.value;var r=i(t);return a[e]={value:r,active:!0},r}function c(e,t){var n=a[e];if(!n){var r=i(t);return a[e]={value:r,active:!1},r}return n.value}function s(){return c("app",{})}function l(e,t,n){var r=t(e.getState());return e.subscribe((function(e){var o=t(e);o!==r&&(r=o,n(o))}))}},5098:(e,t,n)=>{"use strict";n.d(t,{iW:()=>r.InlineNotificationType,cW:()=>ge,MK:()=>r.NotificationDescriptor,fU:()=>o.ToastDescriptor,yQ:()=>o.ToastNotificationMeta,pC:()=>o.ToastType,VM:()=>ye,K4:()=>I,c0:()=>w,CF:()=>E,$d:()=>ve});var r={};n.r(r);var o={};n.r(o);var i=n(2735),a=(n(2788),n(7860)),u=n(9295),c=n(606),s=n(175),l=n(6575),f=n(6905),p=n(7840),d=n(9494),h=n(8396),m=Object.prototype.hasOwnProperty;const y=function(e){if(null==e)return!0;if((0,f.Z)(e)&&((0,l.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,p.Z)(e)||(0,h.Z)(e)||(0,s.Z)(e)))return!e.length;var t=(0,c.Z)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,d.Z)(e))return!(0,u.Z)(e).length;for(var n in e)if(m.call(e,n))return!1;return!0};function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=new a.xQ,b=0;function w(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&!y(t))?setTimeout((function(){g.next(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}({},e,{id:b++}))}),0):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=new a.xQ,S=0;function E(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&!y(t))?setTimeout((function(){x.next(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_(e,t,n[t])}))}return e}({},e,{id:S++}))}),0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}n(225);var $=n(5385);function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}function P(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var T=(0,$.createGlobalStore)("globalModalState",{modalContainer:null,modalStack:[]});function A(e){var t=T.getState(),n=[e].concat(P(t.modalStack));T.setState(j({},t,{modalStack:n}))}function C(e){var t=T.getState(),n=t.modalStack.map((function(t){return t===e?j({},t,{state:"TO_BE_DELETED"}):t}));T.setState(j({},t,{modalStack:n}))}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=function(){var e=T.getState().modalStack.find((function(e){return e.onClose===n}));e&&C(e)};return A({state:"NEW",onClose:n,extensionId:e,props:j({extensionId:e,close:r},t)}),r}window.getComputedStyle(document.body).overflow;var R=n(4077);var N=n(841),D=n.n(N),M=n(216),L=n.n(M);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B,V=(B={"aria-label":L().string,"aria-labelledby":L().string},Object.keys(B).reduce((function(e,t){return z(z({},e),{},F({},t,(n=B[t],function(e,t,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return n.apply(void 0,[e,t,r].concat(i))})));var n}),{}));function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(){return K=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},K.apply(this,arguments)}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Q="bx",Y=i.forwardRef((function(e,t){var n,r,o=e.expanded,a=e.defaultExpanded,u=e.isChildOfHeader,c=e["aria-label"],s=e["aria-labelledby"],l=e.children,f=e.onToggle,p=e.className,d=e.isFixedNav,h=e.isRail,m=e.isPersistent,y=e.addFocusListeners,v=e.addMouseListeners,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["expanded","defaultExpanded","isChildOfHeader","aria-label","aria-labelledby","children","onToggle","className","isFixedNav","isRail","isPersistent","addFocusListeners","addMouseListeners"]),b=(0,i.useRef)(void 0!==o).current,w=Z((0,i.useState)(a),2),_=w[0],x=w[1],S=Z((0,i.useState)(a),2),E=S[0],$=S[1],O=b?o:_,k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!O;b||x(t),f&&f(e,t),(b||h)&&$(t)},j={"aria-label":c,"aria-labelledby":s},P=D()((H(n={},"".concat(Q,"--side-nav"),!0),H(n,"".concat(Q,"--side-nav--expanded"),O||E),H(n,"".concat(Q,"--side-nav--collapsed"),!O&&d),H(n,"".concat(Q,"--side-nav--rail"),h),H(n,p,!!p),H(n,"".concat(Q,"--side-nav--ux"),u),H(n,"".concat(Q,"--side-nav--hidden"),!m),n)),T=D()((H(r={},"".concat(Q,"--side-nav__overlay"),!0),H(r,"".concat(Q,"--side-nav__overlay-active"),O||E),r)),A=l;h&&(A=i.Children.map(l,(function(e){var t=b&&E||O;return i.cloneElement(e,{isSideNavExpanded:t})})));var C={};return y&&(C.onFocus=function(e){e.currentTarget.contains(e.relatedTarget)||k(e,!0)},C.onBlur=function(e){e.currentTarget.contains(e.relatedTarget)||k(e,!1)}),v&&h&&(C.onMouseEnter=function(){return k(!0,!0)},C.onMouseLeave=function(){return k(!1,!1)}),i.createElement(i.Fragment,null,d?null:i.createElement("div",{className:T}),i.createElement("nav",K({"aria-hidden":!O,ref:t,className:"".concat(Q,"--side-nav__navigation ").concat(P)},j,C,g),A))}));Y.defaultProps={defaultExpanded:!1,isChildOfHeader:!0,isFixedNav:!1,isPersistent:!0,addFocusListeners:!0,addMouseListeners:!0},Y.propTypes=q(q({},V),{},{addFocusListeners:L().bool,addMouseListeners:L().bool,className:L().string,defaultExpanded:L().bool,expanded:L().bool,isChildOfHeader:L().bool,isFixedNav:L().bool,isPersistent:L().bool,isRail:L().bool,onToggle:L().func,translateById:L().func});const J=Y;var X=n(487),ee=n.n(X),te=n(631),ne=n.n(te),re=n(2052),oe=n.n(re),ie=n(4010),ae=n.n(ie),ue=n(1469),ce=n.n(ue),se=n(9329),le=n.n(se),fe=n(6618),pe={};pe.styleTagTransform=le(),pe.setAttributes=ae(),pe.insert=oe().bind(null,"head"),pe.domAPI=ne(),pe.insertStyleElement=ce(),ee()(fe.Z,pe);const de=fe.Z&&fe.Z.locals?fe.Z.locals:void 0;function he(){return he=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},he.apply(this,arguments)}var me=(0,$.createGlobalStore)("left-nav",{slotName:null,basePath:window.spaBase});function ye(e){var t=e.name,n=e.basePath;me.setState({slotName:t,basePath:n})}function ve(e){me.getState().slotName==e&&me.setState({slotName:null})}var ge=i.forwardRef((function(e,t){var n=(0,R.useStore)(me),r=n.slotName,o=n.basePath;return i.createElement(J,he({ref:t,expanded:!0,"aria-label":"Left navigation",className:de.link},e),i.createElement(R.ExtensionSlot,{extensionSlotName:"global-nav-menu-slot"}),r?i.createElement(R.ExtensionSlot,{extensionSlotName:r,state:{basePath:o}}):null)}))},7968:(e,t,n)=>{const r=n(1577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},1577:(e,t,n)=>{t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a};Number.isInteger},6763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(682),o=n(658);const i=(0,r.Z)(o.Z,"Map")},7851:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(658).Z.Symbol},963:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7851),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r.Z?r.Z.toStringTag:void 0;var c=Object.prototype.toString;var s=r.Z?r.Z.toStringTag:void 0;const l=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}(e):function(e){return c.call(e)}(e)}},9295:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9494);const o=(0,n(6899).Z)(Object.keys,Object);var i=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,r.Z)(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},5852:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},682:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(3200);const o=n(658).Z["__core-js_shared__"];var i,a=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";var u=n(7275),c=n(9441),s=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,p=l.toString,d=f.hasOwnProperty,h=RegExp("^"+p.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const m=function(e){return!(!(0,u.Z)(e)||(t=e,a&&a in t))&&((0,r.Z)(e)?h:s).test((0,c.Z)(e));var t},y=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return m(n)?n:void 0}},606:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(682),o=n(658);const i=(0,r.Z)(o.Z,"DataView");var a=n(6763);const u=(0,r.Z)(o.Z,"Promise"),c=(0,r.Z)(o.Z,"Set"),s=(0,r.Z)(o.Z,"WeakMap");var l=n(963),f=n(9441),p="[object Map]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",y="[object DataView]",v=(0,f.Z)(i),g=(0,f.Z)(a.Z),b=(0,f.Z)(u),w=(0,f.Z)(c),_=(0,f.Z)(s),x=l.Z;(i&&x(new i(new ArrayBuffer(1)))!=y||a.Z&&x(new a.Z)!=p||u&&x(u.resolve())!=d||c&&x(new c)!=h||s&&x(new s)!=m)&&(x=function(e){var t=(0,l.Z)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,f.Z)(n):"";if(r)switch(r){case v:return y;case g:return p;case b:return d;case w:return h;case _:return m}return t});const S=x},9494:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Object.prototype;const o=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},6899:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return function(n){return e(t(n))}}},658:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5852),o="object"==typeof self&&self&&self.Object===Object&&self;const i=r.Z||o||Function("return this")()},9441:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Function.prototype.toString;const o=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},175:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(963),o=n(4897);const i=function(e){return(0,o.Z)(e)&&"[object Arguments]"==(0,r.Z)(e)};var a=Object.prototype,u=a.hasOwnProperty,c=a.propertyIsEnumerable,s=i(function(){return arguments}())?i:function(e){return(0,o.Z)(e)&&u.call(e,"callee")&&!c.call(e,"callee")};const l=s},6575:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=Array.isArray},6905:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3200),o=n(3492);const i=function(e){return null!=e&&(0,o.Z)(e.length)&&!(0,r.Z)(e)}},7840:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(658);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o?r.Z.Buffer:void 0;const u=(a?a.isBuffer:void 0)||function(){return!1}},3202:(e,t,n)=>{"use strict";n.d(t,{Z:()=>X});const r=function(e,t){return e===t||e!=e&&t!=t},o=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1};var i=Array.prototype.splice;function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(e){var t=this.__data__,n=o(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))},a.prototype.get=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]},a.prototype.has=function(e){return o(this.__data__,e)>-1},a.prototype.set=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const u=a;var c=n(6763);const s=(0,n(682).Z)(Object,"create");var l=Object.prototype.hasOwnProperty;var f=Object.prototype.hasOwnProperty;function p(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}p.prototype.clear=function(){this.__data__=s?s(null):{},this.size=0},p.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},p.prototype.get=function(e){var t=this.__data__;if(s){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return l.call(t,e)?t[e]:void 0},p.prototype.has=function(e){var t=this.__data__;return s?void 0!==t[e]:f.call(t,e)},p.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this};const d=p,h=function(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map};function m(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}m.prototype.clear=function(){this.size=0,this.__data__={hash:new d,map:new(c.Z||u),string:new d}},m.prototype.delete=function(e){var t=h(this,e).delete(e);return this.size-=t?1:0,t},m.prototype.get=function(e){return h(this,e).get(e)},m.prototype.has=function(e){return h(this,e).has(e)},m.prototype.set=function(e,t){var n=h(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const y=m;function v(e){var t=this.__data__=new u(e);this.size=t.size}v.prototype.clear=function(){this.__data__=new u,this.size=0},v.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},v.prototype.get=function(e){return this.__data__.get(e)},v.prototype.has=function(e){return this.__data__.has(e)},v.prototype.set=function(e,t){var n=this.__data__;if(n instanceof u){var r=n.__data__;if(!c.Z||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new y(r)}return n.set(e,t),this.size=n.size,this};const g=v;function b(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new y;++t<n;)this.add(e[t])}b.prototype.add=b.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},b.prototype.has=function(e){return this.__data__.has(e)};const w=b,_=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},x=function(e,t,n,r,o,i){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(e),l=i.get(t);if(s&&l)return s==t&&l==e;var f=-1,p=!0,d=2&n?new w:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],m=t[f];if(r)var y=a?r(m,h,f,t,e,i):r(h,m,f,e,t,i);if(void 0!==y){if(y)continue;p=!1;break}if(d){if(!_(t,(function(e,t){if(a=t,!d.has(a)&&(h===e||o(h,e,n,r,i)))return d.push(t);var a}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p};var S=n(7851);const E=n(658).Z.Uint8Array,$=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},O=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var k=S.Z?S.Z.prototype:void 0,j=k?k.valueOf:void 0;var P=n(6575);var T=Object.prototype.propertyIsEnumerable,A=Object.getOwnPropertySymbols;const C=A?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(A(e),(function(t){return T.call(e,t)})))}:function(){return[]};var I=n(175),R=n(7840),N=/^(?:0|[1-9]\d*)$/;const D=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&N.test(e))&&e>-1&&e%1==0&&e<t};var M=n(8396),L=Object.prototype.hasOwnProperty;const U=function(e,t){var n=(0,P.Z)(e),r=!n&&(0,I.Z)(e),o=!n&&!r&&(0,R.Z)(e),i=!n&&!r&&!o&&(0,M.Z)(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=u.length;for(var s in e)!t&&!L.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||D(s,c))||u.push(s);return u};var z=n(9295),F=n(6905);const B=function(e){return(0,F.Z)(e)?U(e):(0,z.Z)(e)},V=function(e){return function(e,t,n){var r=t(e);return(0,P.Z)(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,B,C)};var W=Object.prototype.hasOwnProperty;var q=n(606),K="[object Arguments]",H="[object Array]",Z="[object Object]",G=Object.prototype.hasOwnProperty;const Q=function(e,t,n,o,i,a){var u=(0,P.Z)(e),c=(0,P.Z)(t),s=u?H:(0,q.Z)(e),l=c?H:(0,q.Z)(t),f=(s=s==K?Z:s)==Z,p=(l=l==K?Z:l)==Z,d=s==l;if(d&&(0,R.Z)(e)){if(!(0,R.Z)(t))return!1;u=!0,f=!1}if(d&&!f)return a||(a=new g),u||(0,M.Z)(e)?x(e,t,n,o,i,a):function(e,t,n,o,i,a,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new E(e),new E(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=$;case"[object Set]":var s=1&o;if(c||(c=O),e.size!=t.size&&!s)return!1;var l=u.get(e);if(l)return l==t;o|=2,u.set(e,t);var f=x(c(e),c(t),o,i,a,u);return u.delete(e),f;case"[object Symbol]":if(j)return j.call(e)==j.call(t)}return!1}(e,t,s,n,o,i,a);if(!(1&n)){var h=f&&G.call(e,"__wrapped__"),m=p&&G.call(t,"__wrapped__");if(h||m){var y=h?e.value():e,v=m?t.value():t;return a||(a=new g),i(y,v,n,o,a)}}return!!d&&(a||(a=new g),function(e,t,n,r,o,i){var a=1&n,u=V(e),c=u.length;if(c!=V(t).length&&!a)return!1;for(var s=c;s--;){var l=u[s];if(!(a?l in t:W.call(t,l)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var d=!0;i.set(e,t),i.set(t,e);for(var h=a;++s<c;){var m=e[l=u[s]],y=t[l];if(r)var v=a?r(y,m,l,t,e,i):r(m,y,l,e,t,i);if(!(void 0===v?m===y||o(m,y,n,r,i):v)){d=!1;break}h||(h="constructor"==l)}if(d&&!h){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,o,i,a))};var Y=n(4897);const J=function e(t,n,r,o,i){return t===n||(null==t||null==n||!(0,Y.Z)(t)&&!(0,Y.Z)(n)?t!=t&&n!=n:Q(t,n,r,o,e,i))},X=function(e,t){return J(e,t)}},3200:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(963),o=n(7275);const i=function(e){if(!(0,o.Z)(e))return!1;var t=(0,r.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3492:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7275:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},4897:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},8396:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(963),o=n(3492),i=n(4897),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var u=n(5852),c="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=c&&"object"==typeof module&&module&&!module.nodeType&&module,l=s&&s.exports===c&&u.Z.process,f=function(){try{return s&&s.require&&s.require("util").types||l&&l.binding&&l.binding("util")}catch(e){}}(),p=f&&f.isTypedArray;const d=p?(h=p,function(e){return h(e)}):function(e){return(0,i.Z)(e)&&(0,o.Z)(e.length)&&!!a[(0,r.Z)(e)]};var h}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.y=t,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var o={};return(0,r(7968).s)(1),(()=>{"use strict";r.r(o),r.d(o,{AppState:()=>f.aB,AssignedExtension:()=>u.pv,CancelLoading:()=>u.x9,ConfigStore:()=>i.JU,ConfigurableLink:()=>l.w,ConnectedExtension:()=>u.uP,ConnectivityChangedEvent:()=>c.ac,Extension:()=>l.hj,ExtensionData:()=>l.g,ExtensionMeta:()=>u.uu,ExtensionRegistration:()=>u.tj,ExtensionSlot:()=>l.dT,ExtensionSlotState:()=>u.u_,ExtensionStore:()=>u.qN,InlineNotificationType:()=>p.iW,LeftNavMenu:()=>p.cW,NotificationDescriptor:()=>p.MK,OfflineMode:()=>s.iC,OfflineModeResult:()=>s.Vm,OpenmrsFetchError:()=>e.nF,PrecacheStaticDependenciesEvent:()=>c.hM,QueueItemDescriptor:()=>s.Cg,ShowNotificationEvent:()=>c.Kj,ShowToastEvent:()=>c.P3,SyncItem:()=>s.we,SyncProcessOptions:()=>s.Ug,ToastDescriptor:()=>p.fU,ToastNotificationMeta:()=>p.yQ,ToastType:()=>p.pC,Type:()=>i.Dy,UserHasAccess:()=>l.Vz,VisitMode:()=>e.u4,VisitStatus:()=>e.Rx,attach:()=>u.ub,backendDependencies:()=>e.Wf,beginEditSynchronizationItem:()=>s.jp,canBeginEditSynchronizationItemsOfType:()=>s.Qd,clearCurrentUser:()=>e.Ze,createGlobalStore:()=>f.jk,createUseStore:()=>l.NV,defaultVisitCustomRepresentation:()=>e.I$,defineConfigSchema:()=>i.SH,defineExtensionConfigSchema:()=>i.Tj,deleteSynchronizationItem:()=>s.Gy,detach:()=>u.og,detachAll:()=>u.lW,fetchCurrentPatient:()=>e.Vy,fhir:()=>e.N$,fhirBaseUrl:()=>e.DN,generateOfflineUuid:()=>s.sF,getAppState:()=>f.W5,getAssignedExtensions:()=>u.h6,getAsyncExtensionLifecycle:()=>l.D$,getAsyncLifecycle:()=>l.Ae,getConfig:()=>i.iE,getConfigStore:()=>i.pR,getConnectedExtensions:()=>u.Kq,getCurrentOfflineMode:()=>s.vm,getCurrentUser:()=>e.ts,getDynamicOfflineDataEntries:()=>s.xA,getDynamicOfflineDataEntriesFor:()=>s.H_,getDynamicOfflineDataHandlers:()=>s.Ui,getExtensionNameFromId:()=>u.EB,getExtensionStore:()=>u.yw,getFullSynchronizationItems:()=>s.D2,getFullSynchronizationItemsFor:()=>s.WB,getGlobalStore:()=>f.zJ,getLifecycle:()=>l.tl,getLocations:()=>e.JC,getLoggedInUser:()=>e.r,getOfflineDb:()=>s.aA,getOfflinePatientDataStore:()=>s.k1,getSessionLocation:()=>e.WK,getSessionStore:()=>e.KJ,getStartedVisit:()=>e.$X,getSyncLifecycle:()=>l.a$,getSynchronizationItem:()=>s.TI,getSynchronizationItems:()=>s.Q2,getVisitTypes:()=>e.P9,getVisitsForPatient:()=>e.nx,inRange:()=>i.Z2,interpolateString:()=>i.IT,interpolateUrl:()=>i.ll,isOfflineUuid:()=>s.z7,isUrl:()=>i.CB,isUrlWithTemplateParameters:()=>i.gZ,makeUrl:()=>e.bf,messageOmrsServiceWorker:()=>s.gp,navigate:()=>i.c4,offlineUuidPrefix:()=>s.a7,omrsOfflineCachingStrategyHttpHeaderName:()=>s.Rz,omrsOfflineResponseBodyHttpHeaderName:()=>s.QI,omrsOfflineResponseStatusHttpHeaderName:()=>s.$9,oneOf:()=>i.kw,openmrsFetch:()=>e.vb,openmrsObservableFetch:()=>e.uj,provide:()=>i.JJ,putDynamicOfflineData:()=>s.cV,putDynamicOfflineDataFor:()=>s.fR,queueSynchronizationItem:()=>s.X2,refetchCurrentUser:()=>e.VJ,registerExtension:()=>u.ix,registerExtensionSlot:()=>u.Qq,registerOfflinePatientHandler:()=>s.dt,removeDynamicOfflineData:()=>s.pO,removeDynamicOfflineDataFor:()=>s.ME,renderExtension:()=>u.H8,saveVisit:()=>e.bX,sessionEndpoint:()=>e.z$,setLeftNav:()=>p.VM,setSessionLocation:()=>e.jK,setupDynamicOfflineDataHandler:()=>s.Xc,setupOfflineSync:()=>s.Kb,showModal:()=>p.K4,showNotification:()=>p.c0,showToast:()=>p.CF,subscribeConnectivity:()=>c.BW,subscribeConnectivityChanged:()=>c.XS,subscribeNotificationShown:()=>c.NQ,subscribePrecacheStaticDependencies:()=>c.dY,subscribeTo:()=>f.se,subscribeToastShown:()=>c.id,syncAllDynamicOfflineData:()=>s.ps,syncDynamicOfflineData:()=>s.mF,syncOfflinePatientData:()=>s.MO,toLocationObject:()=>e.Lq,toVisitTypeObject:()=>e.VF,unsetLeftNav:()=>p.$d,updateVisit:()=>e.ym,useAssignedExtensionIds:()=>l.YV,useAssignedExtensions:()=>l.P3,useBodyScrollLock:()=>l.yn,useConfig:()=>l.ZR,useConnectedExtensions:()=>l.BL,useConnectivity:()=>l.Y9,useCurrentPatient:()=>l.Yq,useExtensionSlot:()=>l.p8,useExtensionSlotMeta:()=>l.qd,useExtensionStore:()=>l.jf,useLayoutType:()=>l.mr,useLocations:()=>l.Z_,useOnClickOutside:()=>l.t$,usePagination:()=>l.h0,usePatient:()=>l.lm,useSession:()=>l.kP,useStore:()=>l.oR,useStoreWithActions:()=>l.xQ,useVisit:()=>l.JF,useVisitTypes:()=>l.NN,userHasAccess:()=>e.y9,validator:()=>i.sC,validators:()=>i.z2});var e=r(8461),t=r(6066),n={};for(const e in t)["default","OpenmrsFetchError","VisitMode","VisitStatus","backendDependencies","clearCurrentUser","defaultVisitCustomRepresentation","fetchCurrentPatient","fhir","fhirBaseUrl","getCurrentUser","getLocations","getLoggedInUser","getSessionLocation","getSessionStore","getStartedVisit","getVisitTypes","getVisitsForPatient","makeUrl","openmrsFetch","openmrsObservableFetch","refetchCurrentUser","saveVisit","sessionEndpoint","setSessionLocation","toLocationObject","toVisitTypeObject","updateVisit","userHasAccess"].indexOf(e)<0&&(n[e]=()=>t[e]);r.d(o,n);var i=r(3373),a=r(674);n={};for(const e in a)["default","OpenmrsFetchError","VisitMode","VisitStatus","backendDependencies","clearCurrentUser","defaultVisitCustomRepresentation","fetchCurrentPatient","fhir","fhirBaseUrl","getCurrentUser","getLocations","getLoggedInUser","getSessionLocation","getSessionStore","getStartedVisit","getVisitTypes","getVisitsForPatient","makeUrl","openmrsFetch","openmrsObservableFetch","refetchCurrentUser","saveVisit","sessionEndpoint","setSessionLocation","toLocationObject","toVisitTypeObject","updateVisit","userHasAccess","ConfigStore","Type","defineConfigSchema","defineExtensionConfigSchema","getConfig","getConfigStore","inRange","interpolateString","interpolateUrl","isUrl","isUrlWithTemplateParameters","navigate","oneOf","provide","validator","validators"].indexOf(e)<0&&(n[e]=()=>a[e]);r.d(o,n);var u=r(6856),c=r(2034),s=r(8082),l=r(5197),f=r(1645),p=r(5098)})(),o})())}}}));
|
|
2
|
+
System.register([],(function(e,t){return{execute:function(){e((()=>{var e={9672:(e,t)=>{!function(){var e=t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function r(e){this.message=e}r.prototype=new Error,r.prototype.name="InvalidCharacterError",e.btoa||(e.btoa=function(e){for(var t,o,i=String(e),a=0,u=n,c="";i.charAt(0|a)||(u="=",a%1);c+=u.charAt(63&t>>8-a%1*8)){if((o=i.charCodeAt(a+=3/4))>255)throw new r("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|o}return c}),e.atob||(e.atob=function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,a=0,u=0,c="";i=t.charAt(u++);~i&&(o=a%4?64*o+i:i,a++%4)?c+=String.fromCharCode(255&o>>(-2*a&6)):0)i=n.indexOf(i);return c})}()},841:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===i)for(var u in n)r.call(n,u)&&n[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6618:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(9233),o=n.n(r),i=n(361),a=n.n(i)()(o());a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.eeld8KBrQxmCmipzUrEP6A\\=\\=>div a:nth-child(1){height:3rem;padding:1.5rem 0 1.5rem 1.2rem;color:#8d8d8d;border-left:.25rem solid transparent;font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.omrs-breakpoint-gt-tablet .eeld8KBrQxmCmipzUrEP6A\\=\\=>div{padding-top:1rem}.omrs-breakpoint-gt-tablet .eeld8KBrQxmCmipzUrEP6A\\=\\=>div a:nth-child(1){height:2rem;color:#8d8d8d;padding:0 0 0 1rem}.eeld8KBrQxmCmipzUrEP6A\\=\\=>div a:nth-child(1):hover{background-color:#e0e0e0;color:#161616;border-left:var(--brand-01)}.eeld8KBrQxmCmipzUrEP6A\\=\\=>div a:nth-child(1):focus{background-color:#e0e0e0;outline:none;color:#161616;border-left:var(--brand-01)}","",{version:3,sources:["webpack://./../esm-styleguide/src/_vars.scss","webpack://./../esm-styleguide/src/left-nav/left-nav.module.scss","webpack://./../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/themes/generated/_mixins.scss","webpack://./../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,+CACE,WAAA,CACA,8BAAA,CACA,aCyCQ,CDxCR,oCAAA,CEugBE,iBAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CArLtB,oBAqLsB,CFxrB1B,2DACE,gBAAA,CAGF,0EACE,WAAA,CACA,aC8BQ,CD7BR,kBAAA,CAGF,qDACE,wBCwBQ,CDvBR,aCyBQ,CDxBR,2BAAA,CAGF,qDACE,wBCkBQ,CDjBR,YAAA,CACA,aCkBQ,CDjBR,2BAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1200px;\n$breakpoint-desktop-min: 1201px;\n$breakpoint-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n",'@import "../vars";\n@import "carbon-components/scss/globals/scss/typography.scss";\n@import "~carbon-components/scss/globals/scss/_spacing.scss";\n\n.link > div a:nth-child(1) {\n height: 3rem;\n padding: 1.5rem 0 1.5rem 1.2rem;\n color: $ui-04;\n border-left: 0.25rem solid transparent;\n @include carbon--type-style("productive-heading-01");\n}\n\n:global(.omrs-breakpoint-gt-tablet) .link > div {\n padding-top: 1rem;\n}\n\n:global(.omrs-breakpoint-gt-tablet) .link > div a:nth-child(1) {\n height: 2rem;\n color: $ui-04;\n padding: 0 0 0 1rem;\n}\n\n.link > div a:nth-child(1):hover {\n background-color: $ui-03;\n color: $ui-05;\n border-left: var(--brand-01);\n}\n\n.link > div a:nth-child(1):focus {\n background-color: $ui-03;\n outline: none;\n color: $ui-05;\n border-left: var(--brand-01);\n}\n',"// Code generated by @carbon/themes. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2019\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import './themes';\n\n/// Define theme variables from a map of tokens\n/// @access public\n/// @param {Map} $theme [$carbon--theme] - Map of theme tokens\n/// @param {Bool} $emit-custom-properties [false] - Output CSS Custom Properties for theme tokens\n/// @content Pass in your custom declaration blocks to be used after the token maps set theming variables.\n///\n/// @example scss\n/// // Default usage\n/// @include carbon--theme();\n///\n/// // Alternate styling (not white theme)\n/// @include carbon--theme($carbon--theme--g90) {\n/// // declarations...\n/// }\n///\n/// // Inline styling\n/// @include carbon--theme($carbon--theme--g90) {\n/// .my-dark-theme {\n/// // declarations...\n/// }\n/// }\n///\n/// @group @carbon/themes\n@mixin carbon--theme(\n $theme: $carbon--theme,\n $emit-custom-properties: false,\n $emit-difference: false\n) {\n $parent-carbon-theme: $carbon--theme;\n $carbon--theme: $theme !global;\n $interactive-01: map-get($theme, 'interactive-01') !global;\n $interactive-02: map-get($theme, 'interactive-02') !global;\n $interactive-03: map-get($theme, 'interactive-03') !global;\n $interactive-04: map-get($theme, 'interactive-04') !global;\n $ui-background: map-get($theme, 'ui-background') !global;\n $ui-01: map-get($theme, 'ui-01') !global;\n $ui-02: map-get($theme, 'ui-02') !global;\n $ui-03: map-get($theme, 'ui-03') !global;\n $ui-04: map-get($theme, 'ui-04') !global;\n $ui-05: map-get($theme, 'ui-05') !global;\n $text-01: map-get($theme, 'text-01') !global;\n $text-02: map-get($theme, 'text-02') !global;\n $text-03: map-get($theme, 'text-03') !global;\n $text-04: map-get($theme, 'text-04') !global;\n $text-05: map-get($theme, 'text-05') !global;\n $text-error: map-get($theme, 'text-error') !global;\n $icon-01: map-get($theme, 'icon-01') !global;\n $icon-02: map-get($theme, 'icon-02') !global;\n $icon-03: map-get($theme, 'icon-03') !global;\n $link-01: map-get($theme, 'link-01') !global;\n $link-02: map-get($theme, 'link-02') !global;\n $inverse-link: map-get($theme, 'inverse-link') !global;\n $field-01: map-get($theme, 'field-01') !global;\n $field-02: map-get($theme, 'field-02') !global;\n $inverse-01: map-get($theme, 'inverse-01') !global;\n $inverse-02: map-get($theme, 'inverse-02') !global;\n $support-01: map-get($theme, 'support-01') !global;\n $support-02: map-get($theme, 'support-02') !global;\n $support-03: map-get($theme, 'support-03') !global;\n $support-04: map-get($theme, 'support-04') !global;\n $inverse-support-01: map-get($theme, 'inverse-support-01') !global;\n $inverse-support-02: map-get($theme, 'inverse-support-02') !global;\n $inverse-support-03: map-get($theme, 'inverse-support-03') !global;\n $inverse-support-04: map-get($theme, 'inverse-support-04') !global;\n $overlay-01: map-get($theme, 'overlay-01') !global;\n $danger-01: map-get($theme, 'danger-01') !global;\n $danger-02: map-get($theme, 'danger-02') !global;\n $focus: map-get($theme, 'focus') !global;\n $inverse-focus-ui: map-get($theme, 'inverse-focus-ui') !global;\n $hover-primary: map-get($theme, 'hover-primary') !global;\n $active-primary: map-get($theme, 'active-primary') !global;\n $hover-primary-text: map-get($theme, 'hover-primary-text') !global;\n $hover-secondary: map-get($theme, 'hover-secondary') !global;\n $active-secondary: map-get($theme, 'active-secondary') !global;\n $hover-tertiary: map-get($theme, 'hover-tertiary') !global;\n $active-tertiary: map-get($theme, 'active-tertiary') !global;\n $hover-ui: map-get($theme, 'hover-ui') !global;\n $hover-light-ui: map-get($theme, 'hover-light-ui') !global;\n $hover-selected-ui: map-get($theme, 'hover-selected-ui') !global;\n $active-ui: map-get($theme, 'active-ui') !global;\n $active-light-ui: map-get($theme, 'active-light-ui') !global;\n $selected-ui: map-get($theme, 'selected-ui') !global;\n $selected-light-ui: map-get($theme, 'selected-light-ui') !global;\n $inverse-hover-ui: map-get($theme, 'inverse-hover-ui') !global;\n $hover-danger: map-get($theme, 'hover-danger') !global;\n $active-danger: map-get($theme, 'active-danger') !global;\n $hover-row: map-get($theme, 'hover-row') !global;\n $visited-link: map-get($theme, 'visited-link') !global;\n $disabled-01: map-get($theme, 'disabled-01') !global;\n $disabled-02: map-get($theme, 'disabled-02') !global;\n $disabled-03: map-get($theme, 'disabled-03') !global;\n $highlight: map-get($theme, 'highlight') !global;\n $decorative-01: map-get($theme, 'decorative-01') !global;\n $button-separator: map-get($theme, 'button-separator') !global;\n $skeleton-01: map-get($theme, 'skeleton-01') !global;\n $skeleton-02: map-get($theme, 'skeleton-02') !global;\n $brand-01: map-get($theme, 'brand-01') !global;\n $brand-02: map-get($theme, 'brand-02') !global;\n $brand-03: map-get($theme, 'brand-03') !global;\n $active-01: map-get($theme, 'active-01') !global;\n $hover-field: map-get($theme, 'hover-field') !global;\n $danger: map-get($theme, 'danger') !global;\n $caption-01: map-get($theme, 'caption-01') !global;\n $label-01: map-get($theme, 'label-01') !global;\n $helper-text-01: map-get($theme, 'helper-text-01') !global;\n $body-short-01: map-get($theme, 'body-short-01') !global;\n $body-long-01: map-get($theme, 'body-long-01') !global;\n $body-short-02: map-get($theme, 'body-short-02') !global;\n $body-long-02: map-get($theme, 'body-long-02') !global;\n $code-01: map-get($theme, 'code-01') !global;\n $code-02: map-get($theme, 'code-02') !global;\n $heading-01: map-get($theme, 'heading-01') !global;\n $productive-heading-01: map-get($theme, 'productive-heading-01') !global;\n $heading-02: map-get($theme, 'heading-02') !global;\n $productive-heading-02: map-get($theme, 'productive-heading-02') !global;\n $productive-heading-03: map-get($theme, 'productive-heading-03') !global;\n $productive-heading-04: map-get($theme, 'productive-heading-04') !global;\n $productive-heading-05: map-get($theme, 'productive-heading-05') !global;\n $productive-heading-06: map-get($theme, 'productive-heading-06') !global;\n $productive-heading-07: map-get($theme, 'productive-heading-07') !global;\n $expressive-heading-01: map-get($theme, 'expressive-heading-01') !global;\n $expressive-heading-02: map-get($theme, 'expressive-heading-02') !global;\n $expressive-heading-03: map-get($theme, 'expressive-heading-03') !global;\n $expressive-heading-04: map-get($theme, 'expressive-heading-04') !global;\n $expressive-heading-05: map-get($theme, 'expressive-heading-05') !global;\n $expressive-heading-06: map-get($theme, 'expressive-heading-06') !global;\n $expressive-paragraph-01: map-get($theme, 'expressive-paragraph-01') !global;\n $quotation-01: map-get($theme, 'quotation-01') !global;\n $quotation-02: map-get($theme, 'quotation-02') !global;\n $display-01: map-get($theme, 'display-01') !global;\n $display-02: map-get($theme, 'display-02') !global;\n $display-03: map-get($theme, 'display-03') !global;\n $display-04: map-get($theme, 'display-04') !global;\n $spacing-01: map-get($theme, 'spacing-01') !global;\n $spacing-02: map-get($theme, 'spacing-02') !global;\n $spacing-03: map-get($theme, 'spacing-03') !global;\n $spacing-04: map-get($theme, 'spacing-04') !global;\n $spacing-05: map-get($theme, 'spacing-05') !global;\n $spacing-06: map-get($theme, 'spacing-06') !global;\n $spacing-07: map-get($theme, 'spacing-07') !global;\n $spacing-08: map-get($theme, 'spacing-08') !global;\n $spacing-09: map-get($theme, 'spacing-09') !global;\n $spacing-10: map-get($theme, 'spacing-10') !global;\n $spacing-11: map-get($theme, 'spacing-11') !global;\n $spacing-12: map-get($theme, 'spacing-12') !global;\n $fluid-spacing-01: map-get($theme, 'fluid-spacing-01') !global;\n $fluid-spacing-02: map-get($theme, 'fluid-spacing-02') !global;\n $fluid-spacing-03: map-get($theme, 'fluid-spacing-03') !global;\n $fluid-spacing-04: map-get($theme, 'fluid-spacing-04') !global;\n $layout-01: map-get($theme, 'layout-01') !global;\n $layout-02: map-get($theme, 'layout-02') !global;\n $layout-03: map-get($theme, 'layout-03') !global;\n $layout-04: map-get($theme, 'layout-04') !global;\n $layout-05: map-get($theme, 'layout-05') !global;\n $layout-06: map-get($theme, 'layout-06') !global;\n $layout-07: map-get($theme, 'layout-07') !global;\n $container-01: map-get($theme, 'container-01') !global;\n $container-02: map-get($theme, 'container-02') !global;\n $container-03: map-get($theme, 'container-03') !global;\n $container-04: map-get($theme, 'container-04') !global;\n $container-05: map-get($theme, 'container-05') !global;\n $icon-size-01: map-get($theme, 'icon-size-01') !global;\n $icon-size-02: map-get($theme, 'icon-size-02') !global;\n\n @if global-variable-exists('feature-flags') and\n map-get($feature-flags, 'enable-css-custom-properties')\n {\n $interactive-01: var(\n --#{$custom-property-prefix}-interactive-01,\n map-get($theme, 'interactive-01')\n ) !global;\n $interactive-02: var(\n --#{$custom-property-prefix}-interactive-02,\n map-get($theme, 'interactive-02')\n ) !global;\n $interactive-03: var(\n --#{$custom-property-prefix}-interactive-03,\n map-get($theme, 'interactive-03')\n ) !global;\n $interactive-04: var(\n --#{$custom-property-prefix}-interactive-04,\n map-get($theme, 'interactive-04')\n ) !global;\n $ui-background: var(\n --#{$custom-property-prefix}-ui-background,\n map-get($theme, 'ui-background')\n ) !global;\n $ui-01: var(\n --#{$custom-property-prefix}-ui-01,\n map-get($theme, 'ui-01')\n ) !global;\n $ui-02: var(\n --#{$custom-property-prefix}-ui-02,\n map-get($theme, 'ui-02')\n ) !global;\n $ui-03: var(\n --#{$custom-property-prefix}-ui-03,\n map-get($theme, 'ui-03')\n ) !global;\n $ui-04: var(\n --#{$custom-property-prefix}-ui-04,\n map-get($theme, 'ui-04')\n ) !global;\n $ui-05: var(\n --#{$custom-property-prefix}-ui-05,\n map-get($theme, 'ui-05')\n ) !global;\n $text-01: var(\n --#{$custom-property-prefix}-text-01,\n map-get($theme, 'text-01')\n ) !global;\n $text-02: var(\n --#{$custom-property-prefix}-text-02,\n map-get($theme, 'text-02')\n ) !global;\n $text-03: var(\n --#{$custom-property-prefix}-text-03,\n map-get($theme, 'text-03')\n ) !global;\n $text-04: var(\n --#{$custom-property-prefix}-text-04,\n map-get($theme, 'text-04')\n ) !global;\n $text-05: var(\n --#{$custom-property-prefix}-text-05,\n map-get($theme, 'text-05')\n ) !global;\n $text-error: var(\n --#{$custom-property-prefix}-text-error,\n map-get($theme, 'text-error')\n ) !global;\n $icon-01: var(\n --#{$custom-property-prefix}-icon-01,\n map-get($theme, 'icon-01')\n ) !global;\n $icon-02: var(\n --#{$custom-property-prefix}-icon-02,\n map-get($theme, 'icon-02')\n ) !global;\n $icon-03: var(\n --#{$custom-property-prefix}-icon-03,\n map-get($theme, 'icon-03')\n ) !global;\n $link-01: var(\n --#{$custom-property-prefix}-link-01,\n map-get($theme, 'link-01')\n ) !global;\n $link-02: var(\n --#{$custom-property-prefix}-link-02,\n map-get($theme, 'link-02')\n ) !global;\n $inverse-link: var(\n --#{$custom-property-prefix}-inverse-link,\n map-get($theme, 'inverse-link')\n ) !global;\n $field-01: var(\n --#{$custom-property-prefix}-field-01,\n map-get($theme, 'field-01')\n ) !global;\n $field-02: var(\n --#{$custom-property-prefix}-field-02,\n map-get($theme, 'field-02')\n ) !global;\n $inverse-01: var(\n --#{$custom-property-prefix}-inverse-01,\n map-get($theme, 'inverse-01')\n ) !global;\n $inverse-02: var(\n --#{$custom-property-prefix}-inverse-02,\n map-get($theme, 'inverse-02')\n ) !global;\n $support-01: var(\n --#{$custom-property-prefix}-support-01,\n map-get($theme, 'support-01')\n ) !global;\n $support-02: var(\n --#{$custom-property-prefix}-support-02,\n map-get($theme, 'support-02')\n ) !global;\n $support-03: var(\n --#{$custom-property-prefix}-support-03,\n map-get($theme, 'support-03')\n ) !global;\n $support-04: var(\n --#{$custom-property-prefix}-support-04,\n map-get($theme, 'support-04')\n ) !global;\n $inverse-support-01: var(\n --#{$custom-property-prefix}-inverse-support-01,\n map-get($theme, 'inverse-support-01')\n ) !global;\n $inverse-support-02: var(\n --#{$custom-property-prefix}-inverse-support-02,\n map-get($theme, 'inverse-support-02')\n ) !global;\n $inverse-support-03: var(\n --#{$custom-property-prefix}-inverse-support-03,\n map-get($theme, 'inverse-support-03')\n ) !global;\n $inverse-support-04: var(\n --#{$custom-property-prefix}-inverse-support-04,\n map-get($theme, 'inverse-support-04')\n ) !global;\n $overlay-01: var(\n --#{$custom-property-prefix}-overlay-01,\n map-get($theme, 'overlay-01')\n ) !global;\n $danger-01: var(\n --#{$custom-property-prefix}-danger-01,\n map-get($theme, 'danger-01')\n ) !global;\n $danger-02: var(\n --#{$custom-property-prefix}-danger-02,\n map-get($theme, 'danger-02')\n ) !global;\n $focus: var(\n --#{$custom-property-prefix}-focus,\n map-get($theme, 'focus')\n ) !global;\n $inverse-focus-ui: var(\n --#{$custom-property-prefix}-inverse-focus-ui,\n map-get($theme, 'inverse-focus-ui')\n ) !global;\n $hover-primary: var(\n --#{$custom-property-prefix}-hover-primary,\n map-get($theme, 'hover-primary')\n ) !global;\n $active-primary: var(\n --#{$custom-property-prefix}-active-primary,\n map-get($theme, 'active-primary')\n ) !global;\n $hover-primary-text: var(\n --#{$custom-property-prefix}-hover-primary-text,\n map-get($theme, 'hover-primary-text')\n ) !global;\n $hover-secondary: var(\n --#{$custom-property-prefix}-hover-secondary,\n map-get($theme, 'hover-secondary')\n ) !global;\n $active-secondary: var(\n --#{$custom-property-prefix}-active-secondary,\n map-get($theme, 'active-secondary')\n ) !global;\n $hover-tertiary: var(\n --#{$custom-property-prefix}-hover-tertiary,\n map-get($theme, 'hover-tertiary')\n ) !global;\n $active-tertiary: var(\n --#{$custom-property-prefix}-active-tertiary,\n map-get($theme, 'active-tertiary')\n ) !global;\n $hover-ui: var(\n --#{$custom-property-prefix}-hover-ui,\n map-get($theme, 'hover-ui')\n ) !global;\n $hover-light-ui: var(\n --#{$custom-property-prefix}-hover-light-ui,\n map-get($theme, 'hover-light-ui')\n ) !global;\n $hover-selected-ui: var(\n --#{$custom-property-prefix}-hover-selected-ui,\n map-get($theme, 'hover-selected-ui')\n ) !global;\n $active-ui: var(\n --#{$custom-property-prefix}-active-ui,\n map-get($theme, 'active-ui')\n ) !global;\n $active-light-ui: var(\n --#{$custom-property-prefix}-active-light-ui,\n map-get($theme, 'active-light-ui')\n ) !global;\n $selected-ui: var(\n --#{$custom-property-prefix}-selected-ui,\n map-get($theme, 'selected-ui')\n ) !global;\n $selected-light-ui: var(\n --#{$custom-property-prefix}-selected-light-ui,\n map-get($theme, 'selected-light-ui')\n ) !global;\n $inverse-hover-ui: var(\n --#{$custom-property-prefix}-inverse-hover-ui,\n map-get($theme, 'inverse-hover-ui')\n ) !global;\n $hover-danger: var(\n --#{$custom-property-prefix}-hover-danger,\n map-get($theme, 'hover-danger')\n ) !global;\n $active-danger: var(\n --#{$custom-property-prefix}-active-danger,\n map-get($theme, 'active-danger')\n ) !global;\n $hover-row: var(\n --#{$custom-property-prefix}-hover-row,\n map-get($theme, 'hover-row')\n ) !global;\n $visited-link: var(\n --#{$custom-property-prefix}-visited-link,\n map-get($theme, 'visited-link')\n ) !global;\n $disabled-01: var(\n --#{$custom-property-prefix}-disabled-01,\n map-get($theme, 'disabled-01')\n ) !global;\n $disabled-02: var(\n --#{$custom-property-prefix}-disabled-02,\n map-get($theme, 'disabled-02')\n ) !global;\n $disabled-03: var(\n --#{$custom-property-prefix}-disabled-03,\n map-get($theme, 'disabled-03')\n ) !global;\n $highlight: var(\n --#{$custom-property-prefix}-highlight,\n map-get($theme, 'highlight')\n ) !global;\n $decorative-01: var(\n --#{$custom-property-prefix}-decorative-01,\n map-get($theme, 'decorative-01')\n ) !global;\n $button-separator: var(\n --#{$custom-property-prefix}-button-separator,\n map-get($theme, 'button-separator')\n ) !global;\n $skeleton-01: var(\n --#{$custom-property-prefix}-skeleton-01,\n map-get($theme, 'skeleton-01')\n ) !global;\n $skeleton-02: var(\n --#{$custom-property-prefix}-skeleton-02,\n map-get($theme, 'skeleton-02')\n ) !global;\n $brand-01: var(\n --#{$custom-property-prefix}-brand-01,\n map-get($theme, 'brand-01')\n ) !global;\n $brand-02: var(\n --#{$custom-property-prefix}-brand-02,\n map-get($theme, 'brand-02')\n ) !global;\n $brand-03: var(\n --#{$custom-property-prefix}-brand-03,\n map-get($theme, 'brand-03')\n ) !global;\n $active-01: var(\n --#{$custom-property-prefix}-active-01,\n map-get($theme, 'active-01')\n ) !global;\n $hover-field: var(\n --#{$custom-property-prefix}-hover-field,\n map-get($theme, 'hover-field')\n ) !global;\n $danger: var(\n --#{$custom-property-prefix}-danger,\n map-get($theme, 'danger')\n ) !global;\n $spacing-01: var(\n --#{$custom-property-prefix}-spacing-01,\n map-get($theme, 'spacing-01')\n ) !global;\n $spacing-02: var(\n --#{$custom-property-prefix}-spacing-02,\n map-get($theme, 'spacing-02')\n ) !global;\n $spacing-03: var(\n --#{$custom-property-prefix}-spacing-03,\n map-get($theme, 'spacing-03')\n ) !global;\n $spacing-04: var(\n --#{$custom-property-prefix}-spacing-04,\n map-get($theme, 'spacing-04')\n ) !global;\n $spacing-05: var(\n --#{$custom-property-prefix}-spacing-05,\n map-get($theme, 'spacing-05')\n ) !global;\n $spacing-06: var(\n --#{$custom-property-prefix}-spacing-06,\n map-get($theme, 'spacing-06')\n ) !global;\n $spacing-07: var(\n --#{$custom-property-prefix}-spacing-07,\n map-get($theme, 'spacing-07')\n ) !global;\n $spacing-08: var(\n --#{$custom-property-prefix}-spacing-08,\n map-get($theme, 'spacing-08')\n ) !global;\n $spacing-09: var(\n --#{$custom-property-prefix}-spacing-09,\n map-get($theme, 'spacing-09')\n ) !global;\n $spacing-10: var(\n --#{$custom-property-prefix}-spacing-10,\n map-get($theme, 'spacing-10')\n ) !global;\n $spacing-11: var(\n --#{$custom-property-prefix}-spacing-11,\n map-get($theme, 'spacing-11')\n ) !global;\n $spacing-12: var(\n --#{$custom-property-prefix}-spacing-12,\n map-get($theme, 'spacing-12')\n ) !global;\n $fluid-spacing-01: var(\n --#{$custom-property-prefix}-fluid-spacing-01,\n map-get($theme, 'fluid-spacing-01')\n ) !global;\n $fluid-spacing-02: var(\n --#{$custom-property-prefix}-fluid-spacing-02,\n map-get($theme, 'fluid-spacing-02')\n ) !global;\n $fluid-spacing-03: var(\n --#{$custom-property-prefix}-fluid-spacing-03,\n map-get($theme, 'fluid-spacing-03')\n ) !global;\n $fluid-spacing-04: var(\n --#{$custom-property-prefix}-fluid-spacing-04,\n map-get($theme, 'fluid-spacing-04')\n ) !global;\n $layout-01: var(\n --#{$custom-property-prefix}-layout-01,\n map-get($theme, 'layout-01')\n ) !global;\n $layout-02: var(\n --#{$custom-property-prefix}-layout-02,\n map-get($theme, 'layout-02')\n ) !global;\n $layout-03: var(\n --#{$custom-property-prefix}-layout-03,\n map-get($theme, 'layout-03')\n ) !global;\n $layout-04: var(\n --#{$custom-property-prefix}-layout-04,\n map-get($theme, 'layout-04')\n ) !global;\n $layout-05: var(\n --#{$custom-property-prefix}-layout-05,\n map-get($theme, 'layout-05')\n ) !global;\n $layout-06: var(\n --#{$custom-property-prefix}-layout-06,\n map-get($theme, 'layout-06')\n ) !global;\n $layout-07: var(\n --#{$custom-property-prefix}-layout-07,\n map-get($theme, 'layout-07')\n ) !global;\n $container-01: var(\n --#{$custom-property-prefix}-container-01,\n map-get($theme, 'container-01')\n ) !global;\n $container-02: var(\n --#{$custom-property-prefix}-container-02,\n map-get($theme, 'container-02')\n ) !global;\n $container-03: var(\n --#{$custom-property-prefix}-container-03,\n map-get($theme, 'container-03')\n ) !global;\n $container-04: var(\n --#{$custom-property-prefix}-container-04,\n map-get($theme, 'container-04')\n ) !global;\n $container-05: var(\n --#{$custom-property-prefix}-container-05,\n map-get($theme, 'container-05')\n ) !global;\n $icon-size-01: var(\n --#{$custom-property-prefix}-icon-size-01,\n map-get($theme, 'icon-size-01')\n ) !global;\n $icon-size-02: var(\n --#{$custom-property-prefix}-icon-size-02,\n map-get($theme, 'icon-size-02')\n ) !global;\n }\n @if $emit-custom-properties == true {\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'interactive-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'interactive-01',\n map-get($theme, 'interactive-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'interactive-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'interactive-02',\n map-get($theme, 'interactive-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'interactive-03',\n $emit-difference\n )\n {\n @include custom-property(\n 'interactive-03',\n map-get($theme, 'interactive-03')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'interactive-04',\n $emit-difference\n )\n {\n @include custom-property(\n 'interactive-04',\n map-get($theme, 'interactive-04')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'ui-background',\n $emit-difference\n )\n {\n @include custom-property(\n 'ui-background',\n map-get($theme, 'ui-background')\n );\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'ui-01', $emit-difference) {\n @include custom-property('ui-01', map-get($theme, 'ui-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'ui-02', $emit-difference) {\n @include custom-property('ui-02', map-get($theme, 'ui-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'ui-03', $emit-difference) {\n @include custom-property('ui-03', map-get($theme, 'ui-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'ui-04', $emit-difference) {\n @include custom-property('ui-04', map-get($theme, 'ui-04'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'ui-05', $emit-difference) {\n @include custom-property('ui-05', map-get($theme, 'ui-05'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'text-01', $emit-difference) {\n @include custom-property('text-01', map-get($theme, 'text-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'text-02', $emit-difference) {\n @include custom-property('text-02', map-get($theme, 'text-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'text-03', $emit-difference) {\n @include custom-property('text-03', map-get($theme, 'text-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'text-04', $emit-difference) {\n @include custom-property('text-04', map-get($theme, 'text-04'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'text-05', $emit-difference) {\n @include custom-property('text-05', map-get($theme, 'text-05'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'text-error',\n $emit-difference\n )\n {\n @include custom-property('text-error', map-get($theme, 'text-error'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'icon-01', $emit-difference) {\n @include custom-property('icon-01', map-get($theme, 'icon-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'icon-02', $emit-difference) {\n @include custom-property('icon-02', map-get($theme, 'icon-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'icon-03', $emit-difference) {\n @include custom-property('icon-03', map-get($theme, 'icon-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'link-01', $emit-difference) {\n @include custom-property('link-01', map-get($theme, 'link-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'link-02', $emit-difference) {\n @include custom-property('link-02', map-get($theme, 'link-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-link',\n $emit-difference\n )\n {\n @include custom-property('inverse-link', map-get($theme, 'inverse-link'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'field-01', $emit-difference)\n {\n @include custom-property('field-01', map-get($theme, 'field-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'field-02', $emit-difference)\n {\n @include custom-property('field-02', map-get($theme, 'field-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-01',\n $emit-difference\n )\n {\n @include custom-property('inverse-01', map-get($theme, 'inverse-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-02',\n $emit-difference\n )\n {\n @include custom-property('inverse-02', map-get($theme, 'inverse-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'support-01',\n $emit-difference\n )\n {\n @include custom-property('support-01', map-get($theme, 'support-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'support-02',\n $emit-difference\n )\n {\n @include custom-property('support-02', map-get($theme, 'support-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'support-03',\n $emit-difference\n )\n {\n @include custom-property('support-03', map-get($theme, 'support-03'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'support-04',\n $emit-difference\n )\n {\n @include custom-property('support-04', map-get($theme, 'support-04'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-support-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-support-01',\n map-get($theme, 'inverse-support-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-support-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-support-02',\n map-get($theme, 'inverse-support-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-support-03',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-support-03',\n map-get($theme, 'inverse-support-03')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-support-04',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-support-04',\n map-get($theme, 'inverse-support-04')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'overlay-01',\n $emit-difference\n )\n {\n @include custom-property('overlay-01', map-get($theme, 'overlay-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'danger-01', $emit-difference)\n {\n @include custom-property('danger-01', map-get($theme, 'danger-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'danger-02', $emit-difference)\n {\n @include custom-property('danger-02', map-get($theme, 'danger-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'focus', $emit-difference) {\n @include custom-property('focus', map-get($theme, 'focus'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-focus-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-focus-ui',\n map-get($theme, 'inverse-focus-ui')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-primary',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-primary',\n map-get($theme, 'hover-primary')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'active-primary',\n $emit-difference\n )\n {\n @include custom-property(\n 'active-primary',\n map-get($theme, 'active-primary')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-primary-text',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-primary-text',\n map-get($theme, 'hover-primary-text')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-secondary',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-secondary',\n map-get($theme, 'hover-secondary')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'active-secondary',\n $emit-difference\n )\n {\n @include custom-property(\n 'active-secondary',\n map-get($theme, 'active-secondary')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-tertiary',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-tertiary',\n map-get($theme, 'hover-tertiary')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'active-tertiary',\n $emit-difference\n )\n {\n @include custom-property(\n 'active-tertiary',\n map-get($theme, 'active-tertiary')\n );\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'hover-ui', $emit-difference)\n {\n @include custom-property('hover-ui', map-get($theme, 'hover-ui'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-light-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-light-ui',\n map-get($theme, 'hover-light-ui')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-selected-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'hover-selected-ui',\n map-get($theme, 'hover-selected-ui')\n );\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'active-ui', $emit-difference)\n {\n @include custom-property('active-ui', map-get($theme, 'active-ui'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'active-light-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'active-light-ui',\n map-get($theme, 'active-light-ui')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'selected-ui',\n $emit-difference\n )\n {\n @include custom-property('selected-ui', map-get($theme, 'selected-ui'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'selected-light-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'selected-light-ui',\n map-get($theme, 'selected-light-ui')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'inverse-hover-ui',\n $emit-difference\n )\n {\n @include custom-property(\n 'inverse-hover-ui',\n map-get($theme, 'inverse-hover-ui')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-danger',\n $emit-difference\n )\n {\n @include custom-property('hover-danger', map-get($theme, 'hover-danger'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'active-danger',\n $emit-difference\n )\n {\n @include custom-property(\n 'active-danger',\n map-get($theme, 'active-danger')\n );\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'hover-row', $emit-difference)\n {\n @include custom-property('hover-row', map-get($theme, 'hover-row'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'visited-link',\n $emit-difference\n )\n {\n @include custom-property('visited-link', map-get($theme, 'visited-link'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'disabled-01',\n $emit-difference\n )\n {\n @include custom-property('disabled-01', map-get($theme, 'disabled-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'disabled-02',\n $emit-difference\n )\n {\n @include custom-property('disabled-02', map-get($theme, 'disabled-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'disabled-03',\n $emit-difference\n )\n {\n @include custom-property('disabled-03', map-get($theme, 'disabled-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'highlight', $emit-difference)\n {\n @include custom-property('highlight', map-get($theme, 'highlight'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'decorative-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'decorative-01',\n map-get($theme, 'decorative-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'button-separator',\n $emit-difference\n )\n {\n @include custom-property(\n 'button-separator',\n map-get($theme, 'button-separator')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'skeleton-01',\n $emit-difference\n )\n {\n @include custom-property('skeleton-01', map-get($theme, 'skeleton-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'skeleton-02',\n $emit-difference\n )\n {\n @include custom-property('skeleton-02', map-get($theme, 'skeleton-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'brand-01', $emit-difference)\n {\n @include custom-property('brand-01', map-get($theme, 'brand-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'brand-02', $emit-difference)\n {\n @include custom-property('brand-02', map-get($theme, 'brand-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'brand-03', $emit-difference)\n {\n @include custom-property('brand-03', map-get($theme, 'brand-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'active-01', $emit-difference)\n {\n @include custom-property('active-01', map-get($theme, 'active-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'hover-field',\n $emit-difference\n )\n {\n @include custom-property('hover-field', map-get($theme, 'hover-field'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'danger', $emit-difference) {\n @include custom-property('danger', map-get($theme, 'danger'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'caption-01',\n $emit-difference\n )\n {\n @include custom-property('caption-01', map-get($theme, 'caption-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'label-01', $emit-difference)\n {\n @include custom-property('label-01', map-get($theme, 'label-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'helper-text-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'helper-text-01',\n map-get($theme, 'helper-text-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'body-short-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'body-short-01',\n map-get($theme, 'body-short-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'body-long-01',\n $emit-difference\n )\n {\n @include custom-property('body-long-01', map-get($theme, 'body-long-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'body-short-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'body-short-02',\n map-get($theme, 'body-short-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'body-long-02',\n $emit-difference\n )\n {\n @include custom-property('body-long-02', map-get($theme, 'body-long-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'code-01', $emit-difference) {\n @include custom-property('code-01', map-get($theme, 'code-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'code-02', $emit-difference) {\n @include custom-property('code-02', map-get($theme, 'code-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'heading-01',\n $emit-difference\n )\n {\n @include custom-property('heading-01', map-get($theme, 'heading-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-01',\n map-get($theme, 'productive-heading-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'heading-02',\n $emit-difference\n )\n {\n @include custom-property('heading-02', map-get($theme, 'heading-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-02',\n map-get($theme, 'productive-heading-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-03',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-03',\n map-get($theme, 'productive-heading-03')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-04',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-04',\n map-get($theme, 'productive-heading-04')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-05',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-05',\n map-get($theme, 'productive-heading-05')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-06',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-06',\n map-get($theme, 'productive-heading-06')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'productive-heading-07',\n $emit-difference\n )\n {\n @include custom-property(\n 'productive-heading-07',\n map-get($theme, 'productive-heading-07')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-01',\n map-get($theme, 'expressive-heading-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-02',\n map-get($theme, 'expressive-heading-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-03',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-03',\n map-get($theme, 'expressive-heading-03')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-04',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-04',\n map-get($theme, 'expressive-heading-04')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-05',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-05',\n map-get($theme, 'expressive-heading-05')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-heading-06',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-heading-06',\n map-get($theme, 'expressive-heading-06')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'expressive-paragraph-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'expressive-paragraph-01',\n map-get($theme, 'expressive-paragraph-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'quotation-01',\n $emit-difference\n )\n {\n @include custom-property('quotation-01', map-get($theme, 'quotation-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'quotation-02',\n $emit-difference\n )\n {\n @include custom-property('quotation-02', map-get($theme, 'quotation-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'display-01',\n $emit-difference\n )\n {\n @include custom-property('display-01', map-get($theme, 'display-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'display-02',\n $emit-difference\n )\n {\n @include custom-property('display-02', map-get($theme, 'display-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'display-03',\n $emit-difference\n )\n {\n @include custom-property('display-03', map-get($theme, 'display-03'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'display-04',\n $emit-difference\n )\n {\n @include custom-property('display-04', map-get($theme, 'display-04'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-01',\n $emit-difference\n )\n {\n @include custom-property('spacing-01', map-get($theme, 'spacing-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-02',\n $emit-difference\n )\n {\n @include custom-property('spacing-02', map-get($theme, 'spacing-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-03',\n $emit-difference\n )\n {\n @include custom-property('spacing-03', map-get($theme, 'spacing-03'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-04',\n $emit-difference\n )\n {\n @include custom-property('spacing-04', map-get($theme, 'spacing-04'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-05',\n $emit-difference\n )\n {\n @include custom-property('spacing-05', map-get($theme, 'spacing-05'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-06',\n $emit-difference\n )\n {\n @include custom-property('spacing-06', map-get($theme, 'spacing-06'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-07',\n $emit-difference\n )\n {\n @include custom-property('spacing-07', map-get($theme, 'spacing-07'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-08',\n $emit-difference\n )\n {\n @include custom-property('spacing-08', map-get($theme, 'spacing-08'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-09',\n $emit-difference\n )\n {\n @include custom-property('spacing-09', map-get($theme, 'spacing-09'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-10',\n $emit-difference\n )\n {\n @include custom-property('spacing-10', map-get($theme, 'spacing-10'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-11',\n $emit-difference\n )\n {\n @include custom-property('spacing-11', map-get($theme, 'spacing-11'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'spacing-12',\n $emit-difference\n )\n {\n @include custom-property('spacing-12', map-get($theme, 'spacing-12'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'fluid-spacing-01',\n $emit-difference\n )\n {\n @include custom-property(\n 'fluid-spacing-01',\n map-get($theme, 'fluid-spacing-01')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'fluid-spacing-02',\n $emit-difference\n )\n {\n @include custom-property(\n 'fluid-spacing-02',\n map-get($theme, 'fluid-spacing-02')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'fluid-spacing-03',\n $emit-difference\n )\n {\n @include custom-property(\n 'fluid-spacing-03',\n map-get($theme, 'fluid-spacing-03')\n );\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'fluid-spacing-04',\n $emit-difference\n )\n {\n @include custom-property(\n 'fluid-spacing-04',\n map-get($theme, 'fluid-spacing-04')\n );\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-01', $emit-difference)\n {\n @include custom-property('layout-01', map-get($theme, 'layout-01'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-02', $emit-difference)\n {\n @include custom-property('layout-02', map-get($theme, 'layout-02'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-03', $emit-difference)\n {\n @include custom-property('layout-03', map-get($theme, 'layout-03'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-04', $emit-difference)\n {\n @include custom-property('layout-04', map-get($theme, 'layout-04'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-05', $emit-difference)\n {\n @include custom-property('layout-05', map-get($theme, 'layout-05'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-06', $emit-difference)\n {\n @include custom-property('layout-06', map-get($theme, 'layout-06'));\n }\n\n @if should-emit($theme, $parent-carbon-theme, 'layout-07', $emit-difference)\n {\n @include custom-property('layout-07', map-get($theme, 'layout-07'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'container-01',\n $emit-difference\n )\n {\n @include custom-property('container-01', map-get($theme, 'container-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'container-02',\n $emit-difference\n )\n {\n @include custom-property('container-02', map-get($theme, 'container-02'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'container-03',\n $emit-difference\n )\n {\n @include custom-property('container-03', map-get($theme, 'container-03'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'container-04',\n $emit-difference\n )\n {\n @include custom-property('container-04', map-get($theme, 'container-04'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'container-05',\n $emit-difference\n )\n {\n @include custom-property('container-05', map-get($theme, 'container-05'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'icon-size-01',\n $emit-difference\n )\n {\n @include custom-property('icon-size-01', map-get($theme, 'icon-size-01'));\n }\n\n @if should-emit(\n $theme,\n $parent-carbon-theme,\n 'icon-size-02',\n $emit-difference\n )\n {\n @include custom-property('icon-size-02', map-get($theme, 'icon-size-02'));\n }\n }\n\n @content;\n\n // Reset to default theme after apply in content\n @if $carbon--theme != $parent-carbon-theme {\n $carbon--theme: $parent-carbon-theme !global;\n\n @include carbon--theme();\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import '../layout/breakpoint';\n@import 'font-family';\n@import 'scale';\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$caption-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$helper-text-01: (\n font-size: carbon--type-scale(1),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: map-merge(\n $heading-01,\n (\n line-height: 1.25,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: map-merge(\n $heading-02,\n (\n line-height: 1.5,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(5),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(8),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n font-weight: carbon--font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: carbon--type-scale(6),\n font-weight: carbon--font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(5),\n ),\n lg: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n label-01: $label-01,\n helper-text-01: $helper-text-01,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n);\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return $value / ($value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: $carbon--grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map-remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map-get($type-styles, breakpoints) {\n @include carbon--breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: $carbon--grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map-get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map-get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map-remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map-get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map-get($type-styles, font-size);\n $min-font-size: map-get($type-styles, font-size);\n @if map-has-key($fluid-breakpoint, font-size) {\n $min-font-size: map-get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map-get($breakpoint, width);\n $min-vw: map-get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: carbon--breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map-has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: carbon--breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map-get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map-get(\n map-get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map-get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n$custom-property-prefix: 'cds' !default;\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin carbon--type-style(\n $name,\n $fluid: false,\n $breakpoints: $carbon--grid-breakpoints\n) {\n @if not map-has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map-get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map-has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @if global-variable-exists('feature-flags') and\n map-get($feature-flags, 'enable-css-custom-properties')\n {\n @include custom-properties($name, $token);\n } @else {\n // Otherwise, we just include all the property declarations directly on the\n // selector\n @include properties(map-remove($token, 'breakpoints'));\n }\n }\n}\n"],sourceRoot:""}]),a.locals={link:"eeld8KBrQxmCmipzUrEP6A=="};const u=a},361:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},9233:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n,r,o=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[1],a=o[3];if(!a)return i;if("function"==typeof btoa){var u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),s="/*# ".concat(c," */"),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(l).concat([s]).join("\n")}return[i].join("\n")}},7530:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",u="week",c="month",s="quarter",l="year",f="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:l,w:u,d:a,D:f,h:i,m:o,s:r,ms:n,Q:s}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},g="en",b={};b[g]=m;var w=function(e){return e instanceof E},_=function e(t,n,r){var o;if(!t)return g;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;b[u]=t,o=u}return!r&&o&&(g=o),o||!r&&g},x=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},S=v;S.l=_,S.i=w,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=_(e.locale,null,!0),this.parse(e)}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return x(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<x(e)},y.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,s=!!S.u(t)||t,p=S.p(e),d=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return s?r:r.endOf(a)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,y=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(p){case l:return s?d(1,0):d(31,11);case c:return s?d(1,y):d(0,y+1);case u:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return d(s?v-w:v+(6-w),y);case a:case f:return h(g+"Hours",0);case i:return h(g+"Minutes",1);case o:return h(g+"Seconds",2);case r:return h(g+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var u,s=S.p(e),p="set"+(this.$u?"UTC":""),d=(u={},u[a]=p+"Date",u[f]=p+"Date",u[c]=p+"Month",u[l]=p+"FullYear",u[i]=p+"Hours",u[o]=p+"Minutes",u[r]=p+"Seconds",u[n]=p+"Milliseconds",u)[s],h=s===a?this.$D+(t-this.$W):t;if(s===c||s===l){var m=this.clone().set(f,1);m.$d[d](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[S.p(e)]()},y.add=function(n,s){var f,p=this;n=Number(n);var d=S.p(s),h=function(e){var t=x(p);return S.w(t.date(t.date()+Math.round(e*n)),p)};if(d===c)return this.set(c,this.$M+n);if(d===l)return this.set(l,this.$y+n);if(d===a)return h(1);if(d===u)return h(7);var m=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[d]||1,y=this.$d.getTime()+n*m;return S.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=S.z(this),i=this.$H,a=this.$m,u=this.$M,c=n.weekdays,s=n.months,l=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].substr(0,i)},f=function(e){return S.s(i%12||12,e,"0")},d=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:S.s(u+1,2,"0"),MMM:l(n.monthsShort,u,s,3),MMMM:l(s,u),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(i),HH:S.s(i,2,"0"),h:f(1),hh:f(2),a:d(i,a,!0),A:d(i,a,!1),m:String(a),mm:S.s(a,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:o};return r.replace(h,(function(e,t){return t||m[e]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,p){var d,h=S.p(f),m=x(n),y=(m.utcOffset()-this.utcOffset())*e,v=this-m,g=S.m(this,m);return g=(d={},d[l]=g/12,d[c]=g,d[s]=g/3,d[u]=(v-y)/6048e5,d[a]=(v-y)/864e5,d[i]=v/t,d[o]=v/e,d[r]=v/1e3,d)[h]||v,p?g:S.a(g)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return b[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),$=E.prototype;return x.prototype=$,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",c],["$y",l],["$D",f]].forEach((function(e){$[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),x.extend=function(e,t){return e.$i||(e(t,E,x),e.$i=!0),x},x.locale=_,x.isDayjs=w,x.unix=function(e){return x(1e3*e)},x.en=b[g],x.Ls=b,x.p={},x}()},4332:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}}()},4525:function(e){(function(){var t,n;function r(e,o){var i,a=e.data.entry||[],u=[];for(i=0;i<a.length;i++)u.push(a[i].resource);o(u);var c=n.defer();return t.nextPage({bundle:e.data}).then((function(e){r(e,o).then((function(e){c.resolve()}))}),(function(e){c.resolve()})),c.promise}function o(e,o,i,a){n.defer(),t.search(e).then((function(e){r(e,o).then((function(){i()}),(function(e){a(e)}))}),(function(e){a(e)}))}function i(e){var t=n.defer(),r=[];return o(e,(function(e){e.forEach((function(e){r.push(e)}))}),(function(){t.resolve(r)}),(function(e){t.reject(e)})),t.promise}function a(e,r){var o=n.defer();return t.search(e).then((function(e){var n={},i=[function(){o.resolve(e,n)}];function a(){i.pop()()}var u=e.data;u.entry&&u.entry.forEach((function(e){var o=e.resource,c=o.resourceType;r&&r.forEach((function(e){var r=e.split("."),s=r[0],l=r[1],f=o[l];if(c===s&&f){var p=f.reference;n[p]||function(e,r,o){i.push((function(){!function(e,r,o){var i=o.reference;t.resolve({bundle:e,resource:r,reference:o}).then((function(e){var t=e.data||e.content;n[i]=t,a()}))}(e,r,o)}))}(u,o,f)}}))})),a()}),(function(){o.reject("Could not fetch search results")})),o.promise}e.exports=function(e,r){return t=e,n=r,e.drain=o,e.fetchAll=i,e.fetchAllWithReferences=a,e}}).call(this)},1256:function(e,t,n){(function(){n(5454);var t=n(4801),r=n(7921),o=n(8294),i=n(8821),a=n(442),u=n(856),c=n(7719),s=n(3029),l=n(2723),f=n(4249),p=n(4525);e.exports=function(e,n){var d=t.Middleware,h=t.$$Attr,m=function(e){return h("method",e)},y=function(e,t){return h("headers."+e,t)},v=d(a),g=d(u(e,n)).and(v).and(o.$Basic).and(o.$Bearer).and(o.$Credentials).and(i.$JsonData).and(y("Accept",e.headers&&e.headers.Accept?e.headers.Accept:"application/json")).and(y("Content-Type",e.headers&&e.headers["Content-Type"]?e.headers["Content-Type"]:"application/json")),b=g.and(m("GET")),w=g.and(m("POST")),_=g.and(m("PUT")),x=g.and(m("DELETE")),S=g.and(m("PATCH")),E=i.Http(e,n),$=f.Path,O=$(e.baseUrl),k=O.slash(":type || :resource.resourceType"),j=k.slash("_history"),P=k.slash(":id || :resource.id"),T=P.slash("_history"),A=P.slash(":versionId || :resource.meta.versionId"),C=O.slash(":target.resourceType || :target.type").slash(":target.id").slash(":target.versionId"),I=y("Prefer","return=representation"),R=d(r.$Paging);return p({conformance:b.and(O.slash("metadata")).end(E),document:w.and(O.slash("Document")).end(E),profile:b.and(O.slash("Profile").slash(":type")).end(E),transaction:w.and(O).end(E),history:b.and(O.slash("_history")).and(R).end(E),typeHistory:b.and(j).and(R).end(E),resourceHistory:b.and(T).and(R).end(E),read:b.and(s.$WithPatient).and(P).end(E),vread:b.and(A).end(E),delete:x.and(P).and(I).end(E),create:w.and(k).and(I).end(E),validate:w.and(k.slash("_validate")).end(E),meta:{add:w.and(C.slash("$meta-add")).end(E),delete:w.and(C.slash("$meta-delete")).end(E),read:b.and(C.slash("$meta")).end(E)},search:b.and(k).and(s.$WithPatient).and(r.$SearchParams).and(R).end(E),update:_.and(P).and(I).end(E),conditionalUpdate:_.and(k).and(r.$SearchParams).and(I).end(E),conditionalDelete:x.and(k).and(r.$SearchParams).and(I).end(E),nextPage:b.and(c.$$BundleLinkUrl("next")).end(E),prevPage:b.and(c.$$BundleLinkUrl("previous")).and(c.$$BundleLinkUrl("prev")).end(E),getBundleByUrl:b.and($(":url")).end(E),resolve:b.and(l.resolve).end(E),patch:S.and(P).and(y("Content-Type","application/json-patch+json")).end(E)},n)}}).call(this)},8294:function(e,t,n){(function(){var e,r=n(4801),o=n(9672).btoa;t.$Basic=r.$$Attr("headers.Authorization",(function(e){if(e.auth&&e.auth.user&&e.auth.pass)return"Basic "+o(e.auth.user+":"+e.auth.pass)})),t.$Bearer=r.$$Attr("headers.Authorization",(function(e){if(e.auth&&e.auth.bearer)return"Bearer "+e.auth.bearer})),t.$Credentials=r.Middleware(r.$$Attr("credentials",(function(t){return e=t.credentials,""}))).and(r.$$Attr("credentials",(function(t){if(["same-origin","include"].indexOf(e)>-1)return e})))}).call(this)},7719:(e,t)=>{t.$$BundleLinkUrl=function(e){return function(t){return function(n){var r=n.bundle&&(n.bundle.link||[]).filter((function(t){return t.relation&&t.relation===e}))[0];return r&&r.url&&(n.url=r.url,n.data=null),t(n)}}}},856:function(e){(function(){var t=function(e,t,n){var r=e[n];return r&&!t[n]&&(t[n]=r),e};e.exports=function(e,n){return function(r){return function(o){return t(e,o,"baseUrl"),t(e,o,"cache"),t(e,o,"auth"),t(e,o,"patient"),t(e,o,"debug"),t(e,o,"credentials"),t(e,o,"headers"),t(e,o,"agentOptions"),t(n,o,"defer"),t(n,o,"http"),r(o)}}}}).call(this)},4801:function(e,t,n){(function(){var e=n(5454),r=function(e){return e.and=function(t){return r((n=e,o=t,function(e){return n(o(e))}));var n,o},e.end=function(t){return e(t)},e};t.$$Simple=function(e){return function(t){return function(n){return t(e(n))}}},t.$$Attr=function(t,n){return r((function(r){return function(o){var i;return i="function"==e.type(n)?n(o):n,r(null==i&&null==i?o:function(e,t,n){for(var r=t.split("."),o=e,i=0;i<r.length-1;i++){var a=r[i];(o=e[a])||(o={},e[a]=o)}return o[r[r.length-1]]=n,e}(o,t,i))}}))};var o=function(e,t){return r((function(n){return function(r){return r[e]=t(r),n(r)}}))};t.Middleware=r,t.Attribute=o,t.Method=function(e){return o("method",(t=e,function(){return t}));var t}}).call(this)},442:e=>{e.exports=function(e){return function(t){try{return e(t)}catch(e){if(t.debug&&(console.log("\nDEBUG: (ERROR in middleware)"),console.log(e.message),console.log(e.stack)),!t.defer)throw console.log("\nDEBUG: (ERROR in middleware)"),console.log(e.message),console.log(e.stack),new Error("I need adapter.defer");var n=t.defer();return n.reject(e),n.promise}}}},8821:function(e,t,n){(function(){var e=n(5454);t.Http=function(e,t){return function(n){n.debug&&console.log("\nDEBUG (request):",n.method,n.url,n);var r=(n.http||t.http||e.http)(n);return n.debug&&r&&r.then&&r.then((function(e){console.log("\nDEBUG: (responce)",e)})),r}},t.$JsonData=function(t){return function(n){var r,o=n.bundle||n.data||n.resource;return o&&(n.data=(r=o,"object"==e.type(r)||"array"==e.type(r)?JSON.stringify(r):r)),t(n)}}}).call(this)},3029:function(e,t,n){(function(){var e=n(4801),r=["Account","AllergyIntolerance","BodySite","CarePlan","Claim","ClinicalImpression","Communication","CommunicationRequest","Composition","Condition","Contract","DetectedIssue","Device","DeviceUseRequest","DeviceUseStatement","DiagnosticOrder","DiagnosticReport","DocumentManifest","DocumentReference","Encounter","EnrollmentRequest","EpisodeOfCare","FamilyMemberHistory","Flag","Goal","ImagingObjectSelection","ImagingStudy","Immunization","ImmunizationRecommendation","List","Media","MedicationAdministration","MedicationDispense","MedicationOrder","MedicationStatement","NutritionOrder","Observation","Order","Procedure","ProcedureRequest","QuestionnaireResponse","ReferralRequest","RelatedPerson","RiskAssessment","Specimen","SupplyDelivery","SupplyRequest","VisionPrescription"];t.$WithPatient=e.$$Simple((function(e){var t=e.type;return e.patient&&("Patient"===t?(e.query=e.query||{},e.query._id=e.patient,e.id=e.patient):r.indexOf(t)>=0&&(e.query=e.query||{},e.query.patient=e.patient)),e}))}).call(this)},2723:function(e,t,n){(function(){var t=n(5454),r=/^#(.*)/,o=function(e){var n=e.cache,o=e.reference,i=e.bundle,a=o;if(!a.reference)return null;if(a.reference.match(r))return function(e,t){var n=e.match(r)[1],o=(t.contained||[]).filter((function(e){return(e.id||e._id)==n}))[0];return o&&{content:o}||null}(a.reference,e.resource);var u=t.absoluteUrl(e.baseUrl,a.reference);return(i&&i.entry||[]).filter((function(e){return e.id===u}))[0]||(null!=n?n[u]:void 0)||null};e.exports.sync=o,e.exports.resolve=function(e){return function(n){var i=o(n),a=n.reference,u=n.defer();if(i){if(!n.defer)throw new Error("I need promise constructor 'adapter.defer' in adapter");return u.resolve(i),u.promise}if(!a)throw new Error("No reference found");if(a&&a.reference.match(r))throw new Error("Contained resource not found");return n.url=t.absoluteUrl(n.baseUrl,a.reference),n.data=null,e(n)}}}).call(this)},7921:function(e,t,n){(function(){var e=n(5454),r=e.type,o=e.assertArray,i=(e.assertObject,e.reduceMap),a=e.identity,u={$gt:"gt",$lt:"lt",$lte:"lte",$gte:"gte",$ge:"ge",$le:"le"},c={$asc:":asc",$desc:":desc",$exact:":exact",$missing:":missing",$null:":missing",$text:":text"},s=function(e,t){if("$sort"===e)return function(e){var t,n,i,a;for(o(e),i=[],t=0,n=e.length;t<n;t++)switch(a=e[t],r(a)){case"array":i.push({param:"_sort",value:a[0],modifier:":"+a[1]});break;case"string":i.push({param:"_sort",value:a});break;default:i.push(void 0)}return i}(t);if("$has"===e)return i(t,(function(e,t){var n,o;return n=t[0],o=t[1],e.concat(function(){switch(r(o)){case"array":return o.map((function(e){return{param:"_has",value:n+"="+e}}));case"string":return[{param:"_has",value:n+"="+o}]}}())}));if("$include"===e||"$revInclude"===e)return n=e,i(t,(function(e,t){var o,i;return o=t[0],i=t[1],e.concat(function(){switch(r(i)){case"array":return i.map((function(e){return{param:"$include"===n?"_include":"_revinclude",value:o+":"+e}}));case"string":return[{param:"$include"===n?"_include":"_revinclude",value:o+":"+i}]}}())}));var n;switch(r(t)){case"object":return function(e,t){return i(t,(function(n,i){var a,l,f,p;return a=i[0],p=i[1],n.concat("$and"===a?o(p).reduce((function(t,n){return t.concat(s(e,n))}),[]):"$type"===a?[]:function(e){return 0===e.indexOf("$")}(a)?(l={param:e},"$or"===a?l.value=p:(u[a]&&(l.operator=u[a]),c[a]&&(l.modifier=c[a]),"object"===r(p)&&p.$or?l.value=p.$or:l.value=[p]),[l]):(t.$type&&(f=":"+t.$type),s(""+e+(f||"")+"."+a,p)))}))}(e,t);case"string":case"number":return[{param:e,value:[t]}];case"array":return[{param:e,value:[t.join("|")]}];default:throw"could not linearizeParams "+r(t)}},l=function(e){return i(e,(function(e,t){var n,r;return n=t[0],r=t[1],e.concat(s(n,r))}))},f=function(e){var t,n,r=["_include","_revinclude","_has"];return function(){var o,i,u,c;for(c=[],o=0,i=(u=l(e)).length;o<i;o++)t=u[o],n=-1===r.indexOf(t.param)?encodeURIComponent(t.value):t.value,c.push([t.param,t.modifier,"_has"==t.param?":":"=",t.operator,n].filter(a).join(""));return c}().join("&")};t._query=l,t.query=f;var p=n(4801);t.$SearchParams=p.$$Attr("url",(function(e){var t=e.url;return e.query?t+"?"+f(e.query):t})),t.$Paging=function(e){return function(t){var n=t.params||{};return t.since&&(n._since=t.since),t.count&&(n._count=t.count),t.params=n,e(t)}}}).call(this)},4249:function(e,t,n){(function(){n(5454);var e=n(4801),r=function(t,n){var o=function(e){return n&&t.includes("target.versionId")&&!e.target.versionId?n(e):(n&&n(e)+"/"||"")+function(e,t){var n=function(e,t){return 0==e.indexOf(":")?function(e,t){for(var n,r=e.split("||").map((function(e){return e.trim().substring(1)})),o=0;o<r.length;o++){var i=(n=t,r[o].split(".").reduce((function(e,t){return"versionId"===t&&e[t]?"_history/"+e[t]:null==e||null==e?null:e[t]}),n));if(i)return i}return null}(e,t):e}(e.trim(),t);if((null==n||void 0===n)&&0==e.includes("target.versionId"))throw new Error("Parameter "+e+" is required: "+JSON.stringify(t));return n}(t,e)},i=e.Attribute("url",o);return i.slash=function(e){return r(e,o)},i};t.Path=r}).call(this)},5454:function(e,t,n){(function(){var e=n(651),r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;t.trim=function(e){return e?e.toString().replace(r,""):""};var o=function(e){return null==e&&void 0===e?String(e):{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"}[Object.prototype.toString.call(e)]};t.type=o,t.assertArray=function(e){if("array"!==o(e))throw"not array";return e};var i=function(e){if("object"!==o(e))throw"not object";return e};t.assertObject=i;var a=function(e,t,n){var r,o;return n||(n=[]),i(e),function(){var t;for(r in t=[],e)o=e[r],t.push([r,o]);return t}().reduce(t,n)};t.reduceMap=a,t.identity=function(e){return e};var u=function(){return Array.prototype.slice.call(arguments)};t.argsArray=u,t.mergeLists=function(){var t;return t=function(t,n){var r,o,i;for(r in o=e(!0,t),n)i=n[r],o[r]=(o[r]||[]).concat(i);return o},u.apply(null,arguments).reduce(t,{})},t.absoluteUrl=function(e,t){return t.match(/https?:\/\/./)?t:e+"/"+t},t.relativeUrl=function(e,t){return t.slice(t,e.length+1)===e+"/"?t.slice(e.length+1):t},t.resourceIdToUrl=function(e,t,n){return t=t.replace(/\/$/,""),(e=e.replace(/^\//,"")).indexOf("/")<0?t+"/"+n+"/"+e:0!==e.indexOf(t)?t+"/"+e:e};var c=function(e,t,n,r){var i;switch(o(n)){case"array":return t(n.map((function(t){return e(t,[n,r])})),r);case"object":return i=function(t,o){var i,a;return i=o[0],a=o[1],t[i]=e(a,[n].concat(r)),t},t(a(n,i,{}),r);default:return t(n,r)}};t.walk=c;var s=function(e,t,n){return t?c(s(e),e,t,n):function(t,n){return s(e,t,n)}};t.postwalk=s}).call(this)},2891:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",c=32,s=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],m="[object Arguments]",y="[object Array]",v="[object Boolean]",g="[object Date]",b="[object Error]",w="[object Function]",_="[object GeneratorFunction]",x="[object Map]",S="[object Number]",E="[object Object]",$="[object Promise]",O="[object RegExp]",k="[object Set]",j="[object String]",P="[object Symbol]",T="[object WeakMap]",A="[object ArrayBuffer]",C="[object DataView]",I="[object Float32Array]",R="[object Float64Array]",N="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",L="[object Uint8Array]",U="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",B=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,H=RegExp(q.source),Z=RegExp(K.source),G=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$e="["+Ee+"]",Oe="["+_e+"]",ke="\\d+",je="["+xe+"]",Pe="[^\\ud800-\\udfff"+Ee+ke+"\\u2700-\\u27bf"+xe+Se+"]",Te="\\ud83c[\\udffb-\\udfff]",Ae="[^\\ud800-\\udfff]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",Ie="[\\ud800-\\udbff][\\udc00-\\udfff]",Re="["+Se+"]",Ne="(?:"+je+"|"+Pe+")",De="(?:"+Re+"|"+Pe+")",Me="(?:['’](?:d|ll|m|re|s|t|ve))?",Le="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Oe+"|"+Te+")?",ze="[\\ufe0e\\ufe0f]?",Fe=ze+Ue+"(?:\\u200d(?:"+[Ae,Ce,Ie].join("|")+")"+ze+Ue+")*",Be="(?:"+["[\\u2700-\\u27bf]",Ce,Ie].join("|")+")"+Fe,Ve="(?:"+[Ae+Oe+"?",Oe,Ce,Ie,"[\\ud800-\\udfff]"].join("|")+")",We=RegExp("['’]","g"),qe=RegExp(Oe,"g"),Ke=RegExp(Te+"(?="+Te+")|"+Ve+Fe,"g"),He=RegExp([Re+"?"+je+"+"+Me+"(?="+[$e,Re,"$"].join("|")+")",De+"+"+Le+"(?="+[$e,Re+Ne,"$"].join("|")+")",Re+"?"+Ne+"+"+Me,Re+"+"+Le,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Be].join("|"),"g"),Ze=RegExp("[\\u200d\\ud800-\\udfff"+_e+"\\ufe0e\\ufe0f]"),Ge=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ye=-1,Je={};Je[I]=Je[R]=Je[N]=Je[D]=Je[M]=Je[L]=Je[U]=Je[z]=Je[F]=!0,Je[m]=Je[y]=Je[A]=Je[v]=Je[C]=Je[g]=Je[b]=Je[w]=Je[x]=Je[S]=Je[E]=Je[O]=Je[k]=Je[j]=Je[T]=!1;var Xe={};Xe[m]=Xe[y]=Xe[A]=Xe[C]=Xe[v]=Xe[g]=Xe[I]=Xe[R]=Xe[N]=Xe[D]=Xe[M]=Xe[x]=Xe[S]=Xe[E]=Xe[O]=Xe[k]=Xe[j]=Xe[P]=Xe[L]=Xe[U]=Xe[z]=Xe[F]=!0,Xe[b]=Xe[w]=Xe[T]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,ut=at&&e&&!e.nodeType&&e,ct=ut&&ut.exports===at,st=ct&&rt.process,lt=function(){try{return ut&&ut.require&&ut.require("util").types||st&&st.binding&&st.binding("util")}catch(e){}}(),ft=lt&<.isArrayBuffer,pt=lt&<.isDate,dt=lt&<.isMap,ht=lt&<.isRegExp,mt=lt&<.isSet,yt=lt&<.isTypedArray;function vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function gt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function xt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function St(e,t){return!(null==e||!e.length)&&It(e,t,0)>-1}function Et(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function $t(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ot(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function kt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function jt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Tt=Mt("length");function At(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ct(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function It(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ct(e,Nt,n)}function Rt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Nt(e){return e!=e}function Dt(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:p}function Mt(e){return function(t){return null==t?o:t[e]}}function Lt(e){return function(t){return null==e?o:e[t]}}function Ut(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function zt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Ft(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Bt(e){return e?e.slice(0,un(e)+1).replace(re,""):e}function Vt(e){return function(t){return e(t)}}function Wt(e,t){return $t(t,(function(t){return e[t]}))}function qt(e,t){return e.has(t)}function Kt(e,t){for(var n=-1,r=e.length;++n<r&&It(t,e[n],0)>-1;);return n}function Ht(e,t){for(var n=e.length;n--&&It(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Gt=Lt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Qt=Lt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Yt(e){return"\\"+et[e]}function Jt(e){return Ze.test(e)}function Xt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==u||(e[n]=u,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Jt(e)?function(e){for(var t=Ke.lastIndex=0;Ke.test(e);)++t;return t}(e):Tt(e)}function an(e){return Jt(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.split("")}(e)}function un(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var cn=Lt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),sn=function e(t){var n,r=(t=null==t?it:sn.defaults(it.Object(),t,sn.pick(it,Qe))).Array,oe=t.Date,_e=t.Error,xe=t.Function,Se=t.Math,Ee=t.Object,$e=t.RegExp,Oe=t.String,ke=t.TypeError,je=r.prototype,Pe=xe.prototype,Te=Ee.prototype,Ae=t["__core-js_shared__"],Ce=Pe.toString,Ie=Te.hasOwnProperty,Re=0,Ne=(n=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Te.toString,Me=Ce.call(Ee),Le=it._,Ue=$e("^"+Ce.call(Ie).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=ct?t.Buffer:o,Fe=t.Symbol,Be=t.Uint8Array,Ve=ze?ze.allocUnsafe:o,Ke=en(Ee.getPrototypeOf,Ee),Ze=Ee.create,et=Te.propertyIsEnumerable,rt=je.splice,ot=Fe?Fe.isConcatSpreadable:o,at=Fe?Fe.iterator:o,ut=Fe?Fe.toStringTag:o,st=function(){try{var e=li(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,Tt=oe&&oe.now!==it.Date.now&&oe.now,Lt=t.setTimeout!==it.setTimeout&&t.setTimeout,ln=Se.ceil,fn=Se.floor,pn=Ee.getOwnPropertySymbols,dn=ze?ze.isBuffer:o,hn=t.isFinite,mn=je.join,yn=en(Ee.keys,Ee),vn=Se.max,gn=Se.min,bn=oe.now,wn=t.parseInt,_n=Se.random,xn=je.reverse,Sn=li(t,"DataView"),En=li(t,"Map"),$n=li(t,"Promise"),On=li(t,"Set"),kn=li(t,"WeakMap"),jn=li(Ee,"create"),Pn=kn&&new kn,Tn={},An=Ui(Sn),Cn=Ui(En),In=Ui($n),Rn=Ui(On),Nn=Ui(kn),Dn=Fe?Fe.prototype:o,Mn=Dn?Dn.valueOf:o,Ln=Dn?Dn.toString:o;function Un(e){if(nu(e)&&!qa(e)&&!(e instanceof Vn)){if(e instanceof Bn)return e;if(Ie.call(e,"__wrapped__"))return zi(e)}return new Bn(e)}var zn=function(){function e(){}return function(t){if(!tu(t))return{};if(Ze)return Ze(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Fn(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Zn(e){var t=this.__data__=new qn(e);this.size=t.size}function Gn(e,t){var n=qa(e),r=!n&&Wa(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&lu(e),a=n||r||o||i,u=a?Ft(e.length,Oe):[],c=u.length;for(var s in e)!t&&!Ie.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||vi(s,c))||u.push(s);return u}function Qn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Yn(e,t){return Ri(jo(e),ar(t,0,e.length))}function Jn(e){return Ri(jo(e))}function Xn(e,t,n){(n!==o&&!Fa(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];Ie.call(e,t)&&Fa(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Fa(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&Po(t,Cu(t),e)}function or(e,t,n){"__proto__"==t&&st?st(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),u=null==e;++n<i;)a[n]=u?o:ku(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ur(e,t,n,r,i,a){var u,c=1&t,s=2&t,l=4&t;if(n&&(u=i?n(e,r,i,a):n(e)),u!==o)return u;if(!tu(e))return e;var f=qa(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return jo(e,u)}else{var p=di(e),d=p==w||p==_;if(Ga(e))return xo(e,c);if(p==E||p==m||d&&!i){if(u=s||d?{}:mi(e),!c)return s?function(e,t){return Po(e,pi(e),t)}(e,function(e,t){return e&&Po(t,Iu(t),e)}(u,e)):function(e,t){return Po(e,fi(e),t)}(e,rr(u,e))}else{if(!Xe[p])return i?e:{};u=function(e,t,n){var r,o=e.constructor;switch(t){case A:return So(e);case v:case g:return new o(+e);case C:return function(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case R:case N:case D:case M:case L:case U:case z:case F:return Eo(e,n);case x:return new o;case S:case j:return new o(e);case O:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case P:return r=e,Mn?Ee(Mn.call(r)):{}}}(e,p,c)}}a||(a=new Zn);var h=a.get(e);if(h)return h;a.set(e,u),uu(e)?e.forEach((function(r){u.add(ur(r,t,n,r,e,a))})):ru(e)&&e.forEach((function(r,o){u.set(o,ur(r,t,n,o,e,a))}));var y=f?o:(l?s?ri:ni:s?Iu:Cu)(e);return bt(y||e,(function(r,o){y&&(r=e[o=r]),er(u,o,ur(r,t,n,o,e,a))})),u}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var i=n[r],a=t[i],u=e[i];if(u===o&&!(i in e)||!a(u))return!1}return!0}function sr(e,t,n){if("function"!=typeof e)throw new ke(i);return Ti((function(){e.apply(o,n)}),t)}function lr(e,t,n,r){var o=-1,i=St,a=!0,u=e.length,c=[],s=t.length;if(!u)return c;n&&(t=$t(t,Vt(n))),r?(i=Et,a=!1):t.length>=200&&(i=qt,a=!1,t=new Hn(t));e:for(;++o<u;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=s;p--;)if(t[p]===f)continue e;c.push(l)}else i(t,f,r)||c.push(l)}return c}Un.templateSettings={escape:G,evaluate:Q,interpolate:Y,variable:"",imports:{_:Un}},Un.prototype=Fn.prototype,Un.prototype.constructor=Un,Bn.prototype=zn(Fn.prototype),Bn.prototype.constructor=Bn,Vn.prototype=zn(Fn.prototype),Vn.prototype.constructor=Vn,Wn.prototype.clear=function(){this.__data__=jn?jn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(jn){var n=t[e];return n===a?o:n}return Ie.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return jn?t[e]!==o:Ie.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jn&&t===o?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},qn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return tr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(En||qn),string:new Wn}},Kn.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return ci(this,e).get(e)},Kn.prototype.has=function(e){return ci(this,e).has(e)},Kn.prototype.set=function(e,t){var n=ci(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(e){return this.__data__.set(e,a),this},Hn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new qn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var fr=Co(br),pr=Co(wr,!0);function dr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],u=t(a);if(null!=u&&(c===o?u==u&&!su(u):n(u,c)))var c=u,s=a}return s}function mr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?yr(u,t-1,n,r,o):Ot(o,u):r||(o[o.length]=u)}return o}var vr=Io(),gr=Io(!0);function br(e,t){return e&&vr(e,t,Cu)}function wr(e,t){return e&&gr(e,t,Cu)}function _r(e,t){return xt(t,(function(t){return Ja(e[t])}))}function xr(e,t){for(var n=0,r=(t=go(t,e)).length;null!=e&&n<r;)e=e[Li(t[n++])];return n&&n==r?e:o}function Sr(e,t,n){var r=t(e);return qa(e)?r:Ot(r,n(e))}function Er(e){return null==e?e===o?"[object Undefined]":"[object Null]":ut&&ut in Ee(e)?function(e){var t=Ie.call(e,ut),n=e[ut];try{e[ut]=o;var r=!0}catch(e){}var i=De.call(e);return r&&(t?e[ut]=n:delete e[ut]),i}(e):function(e){return De.call(e)}(e)}function $r(e,t){return e>t}function Or(e,t){return null!=e&&Ie.call(e,t)}function kr(e,t){return null!=e&&t in Ee(e)}function jr(e,t,n){for(var i=n?Et:St,a=e[0].length,u=e.length,c=u,s=r(u),l=1/0,f=[];c--;){var p=e[c];c&&t&&(p=$t(p,Vt(t))),l=gn(p.length,l),s[c]=!n&&(t||a>=120&&p.length>=120)?new Hn(c&&p):o}p=e[0];var d=-1,h=s[0];e:for(;++d<a&&f.length<l;){var m=p[d],y=t?t(m):m;if(m=n||0!==m?m:0,!(h?qt(h,y):i(f,y,n))){for(c=u;--c;){var v=s[c];if(!(v?qt(v,y):i(e[c],y,n)))continue e}h&&h.push(y),f.push(m)}}return f}function Pr(e,t,n){var r=null==(e=Oi(e,t=go(t,e)))?e:e[Li(Yi(t))];return null==r?o:vt(r,e,n)}function Tr(e){return nu(e)&&Er(e)==m}function Ar(e,t,n,r,i){return e===t||(null==e||null==t||!nu(e)&&!nu(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var u=qa(e),c=qa(t),s=u?y:di(e),l=c?y:di(t),f=(s=s==m?E:s)==E,p=(l=l==m?E:l)==E,d=s==l;if(d&&Ga(e)){if(!Ga(t))return!1;u=!0,f=!1}if(d&&!f)return a||(a=new Zn),u||lu(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case v:case g:case S:return Fa(+e,+t);case b:return e.name==t.name&&e.message==t.message;case O:case j:return e==t+"";case x:var u=Xt;case k:var c=1&r;if(u||(u=nn),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var l=ei(u(e),u(t),r,o,i,a);return a.delete(e),l;case P:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,s,n,r,i,a);if(!(1&n)){var h=f&&Ie.call(e,"__wrapped__"),w=p&&Ie.call(t,"__wrapped__");if(h||w){var _=h?e.value():e,$=w?t.value():t;return a||(a=new Zn),i(_,$,n,r,a)}}return!!d&&(a||(a=new Zn),function(e,t,n,r,i,a){var u=1&n,c=ni(e),s=c.length;if(s!=ni(t).length&&!u)return!1;for(var l=s;l--;){var f=c[l];if(!(u?f in t:Ie.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=u;++l<s;){var y=e[f=c[l]],v=t[f];if(r)var g=u?r(v,y,f,t,e,a):r(y,v,f,e,t,a);if(!(g===o?y===v||i(y,v,n,r,a):g)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Ar,i))}function Cr(e,t,n,r){var i=n.length,a=i,u=!r;if(null==e)return!a;for(e=Ee(e);i--;){var c=n[i];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var s=(c=n[i])[0],l=e[s],f=c[1];if(u&&c[2]){if(l===o&&!(s in e))return!1}else{var p=new Zn;if(r)var d=r(l,f,s,e,t,p);if(!(d===o?Ar(f,l,3,r,p):d))return!1}}return!0}function Ir(e){return!(!tu(e)||(t=e,Ne&&Ne in t))&&(Ja(e)?Ue:me).test(Ui(e));var t}function Rr(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?qa(e)?Ur(e[0],e[1]):Lr(e):dc(e)}function Nr(e){if(!xi(e))return yn(e);var t=[];for(var n in Ee(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e,t){return e<t}function Mr(e,t){var n=-1,o=Ha(e)?r(e.length):[];return fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Lr(e){var t=si(e);return 1==t.length&&t[0][2]?Ei(t[0][0],t[0][1]):function(n){return n===e||Cr(n,e,t)}}function Ur(e,t){return bi(e)&&Si(t)?Ei(Li(e),t):function(n){var r=ku(n,e);return r===o&&r===t?ju(n,e):Ar(t,r,3)}}function zr(e,t,n,r,i){e!==t&&vr(t,(function(a,u){if(i||(i=new Zn),tu(a))!function(e,t,n,r,i,a,u){var c=ji(e,n),s=ji(t,n),l=u.get(s);if(l)Xn(e,n,l);else{var f=a?a(c,s,n+"",e,t,u):o,p=f===o;if(p){var d=qa(s),h=!d&&Ga(s),m=!d&&!h&&lu(s);f=s,d||h||m?qa(c)?f=c:Za(c)?f=jo(c):h?(p=!1,f=xo(s,!0)):m?(p=!1,f=Eo(s,!0)):f=[]:iu(s)||Wa(s)?(f=c,Wa(c)?f=gu(c):tu(c)&&!Ja(c)||(f=mi(s))):p=!1}p&&(u.set(s,f),i(f,s,r,a,u),u.delete(s)),Xn(e,n,f)}}(e,t,u,n,zr,r,i);else{var c=r?r(ji(e,u),a,u+"",e,t,i):o;c===o&&(c=a),Xn(e,u,c)}}),Iu)}function Fr(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function Br(e,t,n){t=t.length?$t(t,(function(e){return qa(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[oc];var r=-1;t=$t(t,Vt(ui()));var o=Mr(e,(function(e,n,o){var i=$t(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var c=$o(o[r],i[r]);if(c)return r>=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=xr(e,a);n(u,a)&&Yr(i,go(a,e),u)}return i}function Wr(e,t,n,r){var o=r?Rt:It,i=-1,a=t.length,u=e;for(e===t&&(t=jo(t)),n&&(u=$t(e,Vt(n)));++i<a;)for(var c=0,s=t[i],l=n?n(s):s;(c=o(u,l,c,r))>-1;)u!==e&&rt.call(u,c,1),rt.call(e,c,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?rt.call(e,o,1):so(e,o)}}return e}function Kr(e,t){return e+fn(_n()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Ai($i(e,t,oc),e+"")}function Gr(e){return Qn(Fu(e))}function Qr(e,t){var n=Fu(e);return Ri(n,ar(t,0,n.length))}function Yr(e,t,n,r){if(!tu(e))return e;for(var i=-1,a=(t=go(t,e)).length,u=a-1,c=e;null!=c&&++i<a;){var s=Li(t[i]),l=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=u){var f=c[s];(l=r?r(f,s,c):o)===o&&(l=tu(f)?f:vi(t[i+1])?[]:{})}er(c,s,l),c=c[s]}return e}var Jr=Pn?function(e,t){return Pn.set(e,t),e}:oc,Xr=st?function(e,t){return st(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:oc;function eo(e){return Ri(Fu(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!su(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,oc,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var u=(t=n(t))!=t,c=null===t,s=su(t),l=t===o;i<a;){var f=fn((i+a)/2),p=n(e[f]),d=p!==o,h=null===p,m=p==p,y=su(p);if(u)var v=r||m;else v=l?m&&(r||d):c?m&&d&&(r||!h):s?m&&d&&!h&&(r||!y):!h&&!y&&(r?p<=t:p<t);v?i=f+1:a=f}return gn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!Fa(u,c)){var c=u;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:su(e)?p:+e}function uo(e){if("string"==typeof e)return e;if(qa(e))return $t(e,uo)+"";if(su(e))return Ln?Ln.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,n){var r=-1,o=St,i=e.length,a=!0,u=[],c=u;if(n)a=!1,o=Et;else if(i>=200){var s=t?null:Zo(e);if(s)return nn(s);a=!1,o=qt,c=new Hn}else c=t?[]:u;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=c.length;p--;)if(c[p]===f)continue e;t&&c.push(f),u.push(l)}else o(c,f,n)||(c!==u&&c.push(f),u.push(l))}return u}function so(e,t){return null==(e=Oi(e,t=go(t,e)))||delete e[Li(Yi(t))]}function lo(e,t,n,r){return Yr(e,t,n(xr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Vn&&(n=n.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function ho(e,t,n){var o=e.length;if(o<2)return o?co(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var u=e[i],c=-1;++c<o;)c!=i&&(a[i]=lr(a[i]||u,e[c],t,n));return co(yr(a,1),t,n)}function mo(e,t,n){for(var r=-1,i=e.length,a=t.length,u={};++r<i;){var c=r<a?t[r]:o;n(u,e[r],c)}return u}function yo(e){return Za(e)?e:[]}function vo(e){return"function"==typeof e?e:oc}function go(e,t){return qa(e)?e:bi(e,t)?[e]:Mi(bu(e))}var bo=Zr;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var _o=lt||function(e){return it.clearTimeout(e)};function xo(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function So(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function Eo(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function $o(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=su(e),u=t!==o,c=null===t,s=t==t,l=su(t);if(!c&&!l&&!a&&e>t||a&&u&&s&&!c&&!l||r&&u&&s||!n&&s||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||c&&n&&i||!u&&i||!s)return-1}return 0}function Oo(e,t,n,o){for(var i=-1,a=e.length,u=n.length,c=-1,s=t.length,l=vn(a-u,0),f=r(s+l),p=!o;++c<s;)f[c]=t[c];for(;++i<u;)(p||i<a)&&(f[n[i]]=e[i]);for(;l--;)f[c++]=e[i++];return f}function ko(e,t,n,o){for(var i=-1,a=e.length,u=-1,c=n.length,s=-1,l=t.length,f=vn(a-c,0),p=r(f+l),d=!o;++i<f;)p[i]=e[i];for(var h=i;++s<l;)p[h+s]=t[s];for(;++u<c;)(d||i<a)&&(p[h+n[u]]=e[i++]);return p}function jo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Po(e,t,n,r){var i=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var c=t[a],s=r?r(n[c],e[c],c,n,e):o;s===o&&(s=e[c]),i?or(n,c,s):er(n,c,s)}return n}function To(e,t){return function(n,r){var o=qa(n)?gt:nr,i=t?t():{};return o(n,e,ui(r,2),i)}}function Ao(e){return Zr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,u=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,u&&gi(n[0],n[1],u)&&(a=i<3?o:a,i=1),t=Ee(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t}))}function Co(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ee(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Io(e){return function(t,n,r){for(var o=-1,i=Ee(t),a=r(t),u=a.length;u--;){var c=a[e?u:++o];if(!1===n(i[c],c,i))break}return t}}function Ro(e){return function(t){var n=Jt(t=bu(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function No(e){return function(t){return kt(Ju(Wu(t).replace(We,"")),e,"")}}function Do(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return tu(r)?r:n}}function Mo(e){return function(t,n,r){var i=Ee(t);if(!Ha(t)){var a=ui(n,3);t=Cu(t),n=function(e){return a(i[e],e,i)}}var u=e(t,n,r);return u>-1?i[a?t[u]:u]:o}}function Lo(e){return ti((function(t){var n=t.length,r=n,a=Bn.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new ke(i);if(a&&!c&&"wrapper"==ii(u))var c=new Bn([],!0)}for(r=c?r:n;++r<n;){var s=ii(u=t[r]),l="wrapper"==s?oi(u):o;c=l&&wi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ii(l[0])].apply(c,l[3]):1==u.length&&wi(u)?c[s]():c.thru(u)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&qa(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Uo(e,t,n,i,a,u,c,l,f,p){var d=t&s,h=1&t,m=2&t,y=24&t,v=512&t,g=m?o:Do(e);return function o(){for(var s=arguments.length,b=r(s),w=s;w--;)b[w]=arguments[w];if(y)var _=ai(o),x=Zt(b,_);if(i&&(b=Oo(b,i,a,y)),u&&(b=ko(b,u,c,y)),s-=x,y&&s<p){var S=tn(b,_);return Ko(e,t,Uo,o.placeholder,n,b,S,l,f,p-s)}var E=h?n:this,$=m?E[e]:e;return s=b.length,l?b=ki(b,l):v&&s>1&&b.reverse(),d&&f<s&&(b.length=f),this&&this!==it&&this instanceof o&&($=g||Do($)),$.apply(E,b)}}function zo(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Fo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Bo(e){return ti((function(t){return t=$t(t,Vt(ui())),Zr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Vo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Hr(t,e):t;var r=Hr(t,ln(e/on(t)));return Jt(t)?wo(an(r),0,e).join(""):r.slice(0,e)}function Wo(e){return function(t,n,i){return i&&"number"!=typeof i&&gi(t,n,i)&&(n=i=o),t=hu(t),n===o?(n=t,t=0):n=hu(n),function(e,t,n,o){for(var i=-1,a=vn(ln((t-e)/(n||1)),0),u=r(a);a--;)u[o?a:++i]=e,e+=n;return u}(t,n,i=i===o?t<n?1:-1:hu(i),e)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vu(t),n=vu(n)),e(t,n)}}function Ko(e,t,n,r,i,a,u,s,l,f){var p=8&t;t|=p?c:64,4&(t&=~(p?64:c))||(t&=-4);var d=[e,t,i,p?a:o,p?u:o,p?o:a,p?o:u,s,l,f],h=n.apply(o,d);return wi(e)&&Pi(h,d),h.placeholder=r,Ci(h,e,t)}function Ho(e){var t=Se[e];return function(e,n){if(e=vu(e),(n=null==n?0:gn(mu(n),292))&&hn(e)){var r=(bu(e)+"e").split("e");return+((r=(bu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Zo=On&&1/nn(new On([,-0]))[1]==l?function(e){return new On(e)}:sc;function Go(e){return function(t){var n=di(t);return n==x?Xt(t):n==k?rn(t):function(e,t){return $t(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qo(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(i);var m=a?a.length:0;if(m||(t&=-97,a=l=o),p=p===o?p:vn(mu(p),0),d=d===o?d:mu(d),m-=l?l.length:0,64&t){var y=a,v=l;a=l=o}var g=h?o:oi(e),b=[e,t,n,a,l,y,v,f,p,d];if(g&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==s&&8==n||r==s&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?Oo(l,c,t[4]):c,e[4]=l?tn(e[3],u):t[4]}(c=t[5])&&(l=e[5],e[5]=l?ko(l,c,t[6]):c,e[6]=l?tn(e[5],u):t[6]),(c=t[7])&&(e[7]=c),r&s&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,g),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(d=b[9]=b[9]===o?h?0:e.length:vn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=Do(e);return function a(){for(var u=arguments.length,c=r(u),s=u,l=ai(a);s--;)c[s]=arguments[s];var f=u<3&&c[0]!==l&&c[u-1]!==l?[]:tn(c,l);return(u-=f.length)<n?Ko(e,t,Uo,a.placeholder,o,c,f,o,o,n-u):vt(this&&this!==it&&this instanceof a?i:e,this,c)}}(e,t,d):t!=c&&33!=t||l.length?Uo.apply(o,b):function(e,t,n,o){var i=1&t,a=Do(e);return function t(){for(var u=-1,c=arguments.length,s=-1,l=o.length,f=r(l+c),p=this&&this!==it&&this instanceof t?a:e;++s<l;)f[s]=o[s];for(;c--;)f[s++]=arguments[++u];return vt(p,i?n:this,f)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=Do(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ci((g?Jr:Pi)(w,b),e,t)}function Yo(e,t,n,r){return e===o||Fa(e,Te[n])&&!Ie.call(r,n)?t:e}function Jo(e,t,n,r,i,a){return tu(e)&&tu(t)&&(a.set(t,e),zr(e,t,o,Jo,a),a.delete(t)),e}function Xo(e){return iu(e)?o:e}function ei(e,t,n,r,i,a){var u=1&n,c=e.length,s=t.length;if(c!=s&&!(u&&s>c))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Hn:o;for(a.set(e,t),a.set(t,e);++p<c;){var m=e[p],y=t[p];if(r)var v=u?r(y,m,p,t,e,a):r(m,y,p,e,t,a);if(v!==o){if(v)continue;d=!1;break}if(h){if(!Pt(t,(function(e,t){if(!qt(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(m!==y&&!i(m,y,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ti(e){return Ai($i(e,o,Ki),e+"")}function ni(e){return Sr(e,Cu,fi)}function ri(e){return Sr(e,Iu,pi)}var oi=Pn?function(e){return Pn.get(e)}:sc;function ii(e){for(var t=e.name+"",n=Tn[t],r=Ie.call(Tn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Ie.call(Un,"placeholder")?Un:e).placeholder}function ui(){var e=Un.iteratee||ic;return e=e===ic?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function si(e){for(var t=Cu(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Si(o)]}return t}function li(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Ir(n)?n:o}var fi=pn?function(e){return null==e?[]:(e=Ee(e),xt(pn(e),(function(t){return et.call(e,t)})))}:yc,pi=pn?function(e){for(var t=[];e;)Ot(t,fi(e)),e=Ke(e);return t}:yc,di=Er;function hi(e,t,n){for(var r=-1,o=(t=go(t,e)).length,i=!1;++r<o;){var a=Li(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&eu(o)&&vi(a,o)&&(qa(e)||Wa(e))}function mi(e){return"function"!=typeof e.constructor||xi(e)?{}:zn(Ke(e))}function yi(e){return qa(e)||Wa(e)||!!(ot&&e&&e[ot])}function vi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function gi(e,t,n){if(!tu(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&vi(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function bi(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!su(e))||X.test(e)||!J.test(e)||null!=t&&e in Ee(t)}function wi(e){var t=ii(e),n=Un[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(Sn&&di(new Sn(new ArrayBuffer(1)))!=C||En&&di(new En)!=x||$n&&di($n.resolve())!=$||On&&di(new On)!=k||kn&&di(new kn)!=T)&&(di=function(e){var t=Er(e),n=t==E?e.constructor:o,r=n?Ui(n):"";if(r)switch(r){case An:return C;case Cn:return x;case In:return $;case Rn:return k;case Nn:return T}return t});var _i=Ae?Ja:vc;function xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)}function Si(e){return e==e&&!tu(e)}function Ei(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ee(n))}}function $i(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),u=r(a);++i<a;)u[i]=o[t+i];i=-1;for(var c=r(t+1);++i<t;)c[i]=o[i];return c[t]=n(u),vt(e,this,c)}}function Oi(e,t){return t.length<2?e:xr(e,to(t,0,-1))}function ki(e,t){for(var n=e.length,r=gn(t.length,n),i=jo(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}function ji(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pi=Ii(Jr),Ti=Lt||function(e,t){return it.setTimeout(e,t)},Ai=Ii(Xr);function Ci(e,t,n){var r=t+"";return Ai(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(h,(function(n){var r="_."+n[0];t&n[1]&&!St(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(ue):[]}(r),n)))}function Ii(e){var t=0,n=0;return function(){var r=bn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ri(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),u=e[a];e[a]=e[n],e[n]=u}return e.length=t,e}var Ni,Di,Mi=(Ni=Na((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Di.size&&Di.clear(),e})),Di=Ni.cache,Ni);function Li(e){if("string"==typeof e||su(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ui(e){if(null!=e){try{return Ce.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function zi(e){if(e instanceof Vn)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=jo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Zr((function(e,t){return Za(e)?lr(e,yr(t,1,Za,!0)):[]})),Bi=Zr((function(e,t){var n=Yi(t);return Za(n)&&(n=o),Za(e)?lr(e,yr(t,1,Za,!0),ui(n,2)):[]})),Vi=Zr((function(e,t){var n=Yi(t);return Za(n)&&(n=o),Za(e)?lr(e,yr(t,1,Za,!0),o,n):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:mu(n);return o<0&&(o=vn(r+o,0)),Ct(e,ui(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=mu(n),i=n<0?vn(r+i,0):gn(i,r-1)),Ct(e,ui(t,3),i,!0)}function Ki(e){return null!=e&&e.length?yr(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var Zi=Zr((function(e){var t=$t(e,yo);return t.length&&t[0]===e[0]?jr(t):[]})),Gi=Zr((function(e){var t=Yi(e),n=$t(e,yo);return t===Yi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?jr(n,ui(t,2)):[]})),Qi=Zr((function(e){var t=Yi(e),n=$t(e,yo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?jr(n,o,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ji=Zr(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return qr(e,$t(t,(function(e){return vi(e,n)?+e:e})).sort($o)),r}));function ta(e){return null==e?e:xn.call(e)}var na=Zr((function(e){return co(yr(e,1,Za,!0))})),ra=Zr((function(e){var t=Yi(e);return Za(t)&&(t=o),co(yr(e,1,Za,!0),ui(t,2))})),oa=Zr((function(e){var t=Yi(e);return t="function"==typeof t?t:o,co(yr(e,1,Za,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if(Za(e))return t=vn(e.length,t),!0})),Ft(t,(function(t){return $t(e,Mt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:$t(n,(function(e){return vt(t,o,e)}))}var ua=Zr((function(e,t){return Za(e)?lr(e,t):[]})),ca=Zr((function(e){return ho(xt(e,Za))})),sa=Zr((function(e){var t=Yi(e);return Za(t)&&(t=o),ho(xt(e,Za),ui(t,2))})),la=Zr((function(e){var t=Yi(e);return t="function"==typeof t?t:o,ho(xt(e,Za),o,t)})),fa=Zr(ia),pa=Zr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function da(e){var t=Un(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Bn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ya=To((function(e,t,n){Ie.call(e,n)?++e[n]:or(e,n,1)})),va=Mo(Wi),ga=Mo(qi);function ba(e,t){return(qa(e)?bt:fr)(e,ui(t,3))}function wa(e,t){return(qa(e)?wt:pr)(e,ui(t,3))}var _a=To((function(e,t,n){Ie.call(e,n)?e[n].push(t):or(e,n,[t])})),xa=Zr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ha(e)?r(e.length):[];return fr(e,(function(e){a[++o]=i?vt(t,e,n):Pr(e,t,n)})),a})),Sa=To((function(e,t,n){or(e,n,t)}));function Ea(e,t){return(qa(e)?$t:Mr)(e,ui(t,3))}var $a=To((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Oa=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&gi(e,t[0],t[1])?t=[]:n>2&&gi(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,yr(t,1),[])})),ka=Tt||function(){return it.Date.now()};function ja(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,s,o,o,o,o,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new ke(i);return e=mu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ta=Zr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(Ta));r|=c}return Qo(e,r,t,n,o)})),Aa=Zr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Aa));r|=c}return Qo(t,r,e,n,o)}));function Ca(e,t,n){var r,a,u,c,s,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new ke(i);function m(t){var n=r,i=a;return r=a=o,f=t,c=e.apply(i,n)}function y(e){return f=e,s=Ti(g,t),p?m(e):c}function v(e){var n=e-l;return l===o||n>=t||n<0||d&&e-f>=u}function g(){var e=ka();if(v(e))return b(e);s=Ti(g,function(e){var n=t-(e-l);return d?gn(n,u-(e-f)):n}(e))}function b(e){return s=o,h&&r?m(e):(r=a=o,c)}function w(){var e=ka(),n=v(e);if(r=arguments,a=this,l=e,n){if(s===o)return y(l);if(d)return _o(s),s=Ti(g,t),m(l)}return s===o&&(s=Ti(g,t)),c}return t=vu(t)||0,tu(n)&&(p=!!n.leading,u=(d="maxWait"in n)?vn(vu(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),w.cancel=function(){s!==o&&_o(s),f=0,r=l=a=s=o},w.flush=function(){return s===o?c:b(ka())},w}var Ia=Zr((function(e,t){return sr(e,1,t)})),Ra=Zr((function(e,t,n){return sr(e,vu(t)||0,n)}));function Na(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Na.Cache||Kn),n}function Da(e){if("function"!=typeof e)throw new ke(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Na.Cache=Kn;var Ma=bo((function(e,t){var n=(t=1==t.length&&qa(t[0])?$t(t[0],Vt(ui())):$t(yr(t,1),Vt(ui()))).length;return Zr((function(r){for(var o=-1,i=gn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return vt(e,this,r)}))})),La=Zr((function(e,t){var n=tn(t,ai(La));return Qo(e,c,o,t,n)})),Ua=Zr((function(e,t){var n=tn(t,ai(Ua));return Qo(e,64,o,t,n)})),za=ti((function(e,t){return Qo(e,256,o,o,o,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var Ba=qo($r),Va=qo((function(e,t){return e>=t})),Wa=Tr(function(){return arguments}())?Tr:function(e){return nu(e)&&Ie.call(e,"callee")&&!et.call(e,"callee")},qa=r.isArray,Ka=ft?Vt(ft):function(e){return nu(e)&&Er(e)==A};function Ha(e){return null!=e&&eu(e.length)&&!Ja(e)}function Za(e){return nu(e)&&Ha(e)}var Ga=dn||vc,Qa=pt?Vt(pt):function(e){return nu(e)&&Er(e)==g};function Ya(e){if(!nu(e))return!1;var t=Er(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!iu(e)}function Ja(e){if(!tu(e))return!1;var t=Er(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xa(e){return"number"==typeof e&&e==mu(e)}function eu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function tu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function nu(e){return null!=e&&"object"==typeof e}var ru=dt?Vt(dt):function(e){return nu(e)&&di(e)==x};function ou(e){return"number"==typeof e||nu(e)&&Er(e)==S}function iu(e){if(!nu(e)||Er(e)!=E)return!1;var t=Ke(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ce.call(n)==Me}var au=ht?Vt(ht):function(e){return nu(e)&&Er(e)==O},uu=mt?Vt(mt):function(e){return nu(e)&&di(e)==k};function cu(e){return"string"==typeof e||!qa(e)&&nu(e)&&Er(e)==j}function su(e){return"symbol"==typeof e||nu(e)&&Er(e)==P}var lu=yt?Vt(yt):function(e){return nu(e)&&eu(e.length)&&!!Je[Er(e)]},fu=qo(Dr),pu=qo((function(e,t){return e<=t}));function du(e){if(!e)return[];if(Ha(e))return cu(e)?an(e):jo(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=di(e);return(t==x?Xt:t==k?nn:Fu)(e)}function hu(e){return e?(e=vu(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function mu(e){var t=hu(e),n=t%1;return t==t?n?t-n:t:0}function yu(e){return e?ar(mu(e),0,d):0}function vu(e){if("number"==typeof e)return e;if(su(e))return p;if(tu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Bt(e);var n=he.test(e);return n||ye.test(e)?nt(e.slice(2),n?2:8):de.test(e)?p:+e}function gu(e){return Po(e,Iu(e))}function bu(e){return null==e?"":uo(e)}var wu=Ao((function(e,t){if(xi(t)||Ha(t))Po(t,Cu(t),e);else for(var n in t)Ie.call(t,n)&&er(e,n,t[n])})),_u=Ao((function(e,t){Po(t,Iu(t),e)})),xu=Ao((function(e,t,n,r){Po(t,Iu(t),e,r)})),Su=Ao((function(e,t,n,r){Po(t,Cu(t),e,r)})),Eu=ti(ir),$u=Zr((function(e,t){e=Ee(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&gi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],u=Iu(a),c=-1,s=u.length;++c<s;){var l=u[c],f=e[l];(f===o||Fa(f,Te[l])&&!Ie.call(e,l))&&(e[l]=a[l])}return e})),Ou=Zr((function(e){return e.push(o,Jo),vt(Nu,o,e)}));function ku(e,t,n){var r=null==e?o:xr(e,t);return r===o?n:r}function ju(e,t){return null!=e&&hi(e,t,kr)}var Pu=zo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),tc(oc)),Tu=zo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Au=Zr(Pr);function Cu(e){return Ha(e)?Gn(e):Nr(e)}function Iu(e){return Ha(e)?Gn(e,!0):function(e){if(!tu(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=xi(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}(e)}var Ru=Ao((function(e,t,n){zr(e,t,n)})),Nu=Ao((function(e,t,n,r){zr(e,t,n,r)})),Du=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=$t(t,(function(t){return t=go(t,e),r||(r=t.length>1),t})),Po(e,ri(e),n),r&&(n=ur(n,7,Xo));for(var o=t.length;o--;)so(n,t[o]);return n})),Mu=ti((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return ju(e,n)}))}(e,t)}));function Lu(e,t){if(null==e)return{};var n=$t(ri(e),(function(e){return[e]}));return t=ui(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Uu=Go(Cu),zu=Go(Iu);function Fu(e){return null==e?[]:Wt(e,Cu(e))}var Bu=No((function(e,t,n){return t=t.toLowerCase(),e+(n?Vu(t):t)}));function Vu(e){return Yu(bu(e).toLowerCase())}function Wu(e){return(e=bu(e))&&e.replace(ge,Gt).replace(qe,"")}var qu=No((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ku=No((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hu=Ro("toLowerCase"),Zu=No((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gu=No((function(e,t,n){return e+(n?" ":"")+Yu(t)})),Qu=No((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Yu=Ro("toUpperCase");function Ju(e,t,n){return e=bu(e),(t=n?o:t)===o?function(e){return Ge.test(e)}(e)?function(e){return e.match(He)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Xu=Zr((function(e,t){try{return vt(e,o,t)}catch(e){return Ya(e)?e:new _e(e)}})),ec=ti((function(e,t){return bt(t,(function(t){t=Li(t),or(e,t,Ta(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Lo(),rc=Lo(!0);function oc(e){return e}function ic(e){return Rr("function"==typeof e?e:ur(e,1))}var ac=Zr((function(e,t){return function(n){return Pr(n,e,t)}})),uc=Zr((function(e,t){return function(n){return Pr(e,n,t)}}));function cc(e,t,n){var r=Cu(t),o=_r(t,r);null!=n||tu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Cu(t)));var i=!(tu(n)&&"chain"in n&&!n.chain),a=Ja(e);return bt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=jo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function sc(){}var lc=Bo($t),fc=Bo(_t),pc=Bo(Pt);function dc(e){return bi(e)?Mt(Li(e)):function(e){return function(t){return xr(t,e)}}(e)}var hc=Wo(),mc=Wo(!0);function yc(){return[]}function vc(){return!1}var gc,bc=Fo((function(e,t){return e+t}),0),wc=Ho("ceil"),_c=Fo((function(e,t){return e/t}),1),xc=Ho("floor"),Sc=Fo((function(e,t){return e*t}),1),Ec=Ho("round"),$c=Fo((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new ke(i);return e=mu(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=ja,Un.assign=wu,Un.assignIn=_u,Un.assignInWith=xu,Un.assignWith=Su,Un.at=Eu,Un.before=Pa,Un.bind=Ta,Un.bindAll=ec,Un.bindKey=Aa,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Un.chain=da,Un.chunk=function(e,t,n){t=(n?gi(e,t,n):t===o)?1:vn(mu(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,u=0,c=r(ln(i/t));a<i;)c[u++]=to(e,a,a+=t);return c},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ot(qa(n)?jo(n):[n],yr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?$t(e,(function(e){if("function"!=typeof e[1])throw new ke(i);return[n(e[0]),e[1]]})):[],Zr((function(n){for(var r=-1;++r<t;){var o=e[r];if(vt(o[0],this,n))return vt(o[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Cu(e);return function(n){return cr(n,e,t)}}(ur(e,1))},Un.constant=tc,Un.countBy=ya,Un.create=function(e,t){var n=zn(e);return null==t?n:rr(n,t)},Un.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.curryRight=function e(t,n,r){var i=Qo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.debounce=Ca,Un.defaults=$u,Un.defaultsDeep=Ou,Un.defer=Ia,Un.delay=Ra,Un.difference=Fi,Un.differenceBy=Bi,Un.differenceWith=Vi,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:mu(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:mu(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?fo(e,ui(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?fo(e,ui(t,3),!0):[]},Un.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&gi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=mu(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:mu(r))<0&&(r+=i),r=n>r?0:yu(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(qa(e)?xt:mr)(e,ui(t,3))},Un.flatMap=function(e,t){return yr(Ea(e,t),1)},Un.flatMapDeep=function(e,t){return yr(Ea(e,t),l)},Un.flatMapDepth=function(e,t,n){return n=n===o?1:mu(n),yr(Ea(e,t),n)},Un.flatten=Ki,Un.flattenDeep=function(e){return null!=e&&e.length?yr(e,l):[]},Un.flattenDepth=function(e,t){return null!=e&&e.length?yr(e,t=t===o?1:mu(t)):[]},Un.flip=function(e){return Qo(e,512)},Un.flow=nc,Un.flowRight=rc,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Un.functions=function(e){return null==e?[]:_r(e,Cu(e))},Un.functionsIn=function(e){return null==e?[]:_r(e,Iu(e))},Un.groupBy=_a,Un.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Un.intersection=Zi,Un.intersectionBy=Gi,Un.intersectionWith=Qi,Un.invert=Pu,Un.invertBy=Tu,Un.invokeMap=xa,Un.iteratee=ic,Un.keyBy=Sa,Un.keys=Cu,Un.keysIn=Iu,Un.map=Ea,Un.mapKeys=function(e,t){var n={};return t=ui(t,3),br(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Un.mapValues=function(e,t){var n={};return t=ui(t,3),br(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Un.matches=function(e){return Lr(ur(e,1))},Un.matchesProperty=function(e,t){return Ur(e,ur(t,1))},Un.memoize=Na,Un.merge=Ru,Un.mergeWith=Nu,Un.method=ac,Un.methodOf=uc,Un.mixin=cc,Un.negate=Da,Un.nthArg=function(e){return e=mu(e),Zr((function(t){return Fr(t,e)}))},Un.omit=Du,Un.omitBy=function(e,t){return Lu(e,Da(ui(t)))},Un.once=function(e){return Pa(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?o:n)||(n=null==n?[]:[n]),Br(e,t,n))},Un.over=lc,Un.overArgs=Ma,Un.overEvery=fc,Un.overSome=pc,Un.partial=La,Un.partialRight=Ua,Un.partition=$a,Un.pick=Mu,Un.pickBy=Lu,Un.property=dc,Un.propertyOf=function(e){return function(t){return null==e?o:xr(e,t)}},Un.pull=Ji,Un.pullAll=Xi,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,ui(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,o,n):e},Un.pullAt=ea,Un.range=hc,Un.rangeRight=mc,Un.rearg=za,Un.reject=function(e,t){return(qa(e)?xt:mr)(e,Da(ui(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return qr(e,o),n},Un.rest=function(e,t){if("function"!=typeof e)throw new ke(i);return Zr(e,t=t===o?t:mu(t))},Un.reverse=ta,Un.sampleSize=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:mu(t),(qa(e)?Yn:Qr)(e,t)},Un.set=function(e,t,n){return null==e?e:Yr(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Yr(e,t,n,r)},Un.shuffle=function(e){return(qa(e)?Jn:eo)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&gi(e,t,n)?(t=0,n=r):(t=null==t?0:mu(t),n=n===o?r:mu(n)),to(e,t,n)):[]},Un.sortBy=Oa,Un.sortedUniq=function(e){return e&&e.length?io(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?io(e,ui(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&gi(e,t,n)&&(t=n=o),(n=n===o?d:n>>>0)?(e=bu(e))&&("string"==typeof t||null!=t&&!au(t))&&!(t=uo(t))&&Jt(e)?wo(an(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new ke(i);return t=null==t?0:vn(mu(t),0),Zr((function(n){var r=n[t],o=wo(n,0,t);return r&&Ot(o,r),vt(e,this,o)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:mu(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:mu(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?fo(e,ui(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?fo(e,ui(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ke(i);return tu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ca(e,t,{leading:r,maxWait:t,trailing:o})},Un.thru=ha,Un.toArray=du,Un.toPairs=Uu,Un.toPairsIn=zu,Un.toPath=function(e){return qa(e)?$t(e,Li):su(e)?[e]:jo(Mi(bu(e)))},Un.toPlainObject=gu,Un.transform=function(e,t,n){var r=qa(e),o=r||Ga(e)||lu(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:tu(e)&&Ja(i)?zn(Ke(e)):{}}return(o?bt:br)(e,(function(e,r,o){return t(n,e,r,o)})),n},Un.unary=function(e){return ja(e,1)},Un.union=na,Un.unionBy=ra,Un.unionWith=oa,Un.uniq=function(e){return e&&e.length?co(e):[]},Un.uniqBy=function(e,t){return e&&e.length?co(e,ui(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?co(e,o,t):[]},Un.unset=function(e,t){return null==e||so(e,t)},Un.unzip=ia,Un.unzipWith=aa,Un.update=function(e,t,n){return null==e?e:lo(e,t,vo(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,vo(n),r)},Un.values=Fu,Un.valuesIn=function(e){return null==e?[]:Wt(e,Iu(e))},Un.without=ua,Un.words=Ju,Un.wrap=function(e,t){return La(vo(t),e)},Un.xor=ca,Un.xorBy=sa,Un.xorWith=la,Un.zip=fa,Un.zipObject=function(e,t){return mo(e||[],t||[],er)},Un.zipObjectDeep=function(e,t){return mo(e||[],t||[],Yr)},Un.zipWith=pa,Un.entries=Uu,Un.entriesIn=zu,Un.extend=_u,Un.extendWith=xu,cc(Un,Un),Un.add=bc,Un.attempt=Xu,Un.camelCase=Bu,Un.capitalize=Vu,Un.ceil=wc,Un.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vu(n))==n?n:0),t!==o&&(t=(t=vu(t))==t?t:0),ar(vu(e),t,n)},Un.clone=function(e){return ur(e,4)},Un.cloneDeep=function(e){return ur(e,5)},Un.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:o)},Un.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:o)},Un.conformsTo=function(e,t){return null==t||cr(e,t,Cu(t))},Un.deburr=Wu,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=_c,Un.endsWith=function(e,t,n){e=bu(e),t=uo(t);var r=e.length,i=n=n===o?r:ar(mu(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=Fa,Un.escape=function(e){return(e=bu(e))&&Z.test(e)?e.replace(K,Qt):e},Un.escapeRegExp=function(e){return(e=bu(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=qa(e)?_t:dr;return n&&gi(e,t,n)&&(t=o),r(e,ui(t,3))},Un.find=va,Un.findIndex=Wi,Un.findKey=function(e,t){return At(e,ui(t,3),br)},Un.findLast=ga,Un.findLastIndex=qi,Un.findLastKey=function(e,t){return At(e,ui(t,3),wr)},Un.floor=xc,Un.forEach=ba,Un.forEachRight=wa,Un.forIn=function(e,t){return null==e?e:vr(e,ui(t,3),Iu)},Un.forInRight=function(e,t){return null==e?e:gr(e,ui(t,3),Iu)},Un.forOwn=function(e,t){return e&&br(e,ui(t,3))},Un.forOwnRight=function(e,t){return e&&wr(e,ui(t,3))},Un.get=ku,Un.gt=Ba,Un.gte=Va,Un.has=function(e,t){return null!=e&&hi(e,t,Or)},Un.hasIn=ju,Un.head=Hi,Un.identity=oc,Un.includes=function(e,t,n,r){e=Ha(e)?e:Fu(e),n=n&&!r?mu(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),cu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&It(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:mu(n);return o<0&&(o=vn(r+o,0)),It(e,t,o)},Un.inRange=function(e,t,n){return t=hu(t),n===o?(n=t,t=0):n=hu(n),function(e,t,n){return e>=gn(t,n)&&e<vn(t,n)}(e=vu(e),t,n)},Un.invoke=Au,Un.isArguments=Wa,Un.isArray=qa,Un.isArrayBuffer=Ka,Un.isArrayLike=Ha,Un.isArrayLikeObject=Za,Un.isBoolean=function(e){return!0===e||!1===e||nu(e)&&Er(e)==v},Un.isBuffer=Ga,Un.isDate=Qa,Un.isElement=function(e){return nu(e)&&1===e.nodeType&&!iu(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||lu(e)||Wa(e)))return!e.length;var t=di(e);if(t==x||t==k)return!e.size;if(xi(e))return!Nr(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Ar(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Ar(e,t,o,n):!!r},Un.isError=Ya,Un.isFinite=function(e){return"number"==typeof e&&hn(e)},Un.isFunction=Ja,Un.isInteger=Xa,Un.isLength=eu,Un.isMap=ru,Un.isMatch=function(e,t){return e===t||Cr(e,t,si(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Cr(e,t,si(t),n)},Un.isNaN=function(e){return ou(e)&&e!=+e},Un.isNative=function(e){if(_i(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ir(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=ou,Un.isObject=tu,Un.isObjectLike=nu,Un.isPlainObject=iu,Un.isRegExp=au,Un.isSafeInteger=function(e){return Xa(e)&&e>=-9007199254740991&&e<=f},Un.isSet=uu,Un.isString=cu,Un.isSymbol=su,Un.isTypedArray=lu,Un.isUndefined=function(e){return e===o},Un.isWeakMap=function(e){return nu(e)&&di(e)==T},Un.isWeakSet=function(e){return nu(e)&&"[object WeakSet]"==Er(e)},Un.join=function(e,t){return null==e?"":mn.call(e,t)},Un.kebabCase=qu,Un.last=Yi,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=mu(n))<0?vn(r+i,0):gn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ct(e,Nt,i,!0)},Un.lowerCase=Ku,Un.lowerFirst=Hu,Un.lt=fu,Un.lte=pu,Un.max=function(e){return e&&e.length?hr(e,oc,$r):o},Un.maxBy=function(e,t){return e&&e.length?hr(e,ui(t,2),$r):o},Un.mean=function(e){return Dt(e,oc)},Un.meanBy=function(e,t){return Dt(e,ui(t,2))},Un.min=function(e){return e&&e.length?hr(e,oc,Dr):o},Un.minBy=function(e,t){return e&&e.length?hr(e,ui(t,2),Dr):o},Un.stubArray=yc,Un.stubFalse=vc,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Sc,Un.nth=function(e,t){return e&&e.length?Fr(e,mu(t)):o},Un.noConflict=function(){return it._===this&&(it._=Le),this},Un.noop=sc,Un.now=ka,Un.pad=function(e,t,n){e=bu(e);var r=(t=mu(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(fn(o),n)+e+Vo(ln(o),n)},Un.padEnd=function(e,t,n){e=bu(e);var r=(t=mu(t))?on(e):0;return t&&r<t?e+Vo(t-r,n):e},Un.padStart=function(e,t,n){e=bu(e);var r=(t=mu(t))?on(e):0;return t&&r<t?Vo(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(bu(e).replace(re,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&gi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hu(e),t===o?(t=e,e=0):t=hu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return gn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Un.reduce=function(e,t,n){var r=qa(e)?kt:Ut,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},Un.reduceRight=function(e,t,n){var r=qa(e)?jt:Ut,o=arguments.length<3;return r(e,ui(t,4),n,o,pr)},Un.repeat=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:mu(t),Hr(bu(e),t)},Un.replace=function(){var e=arguments,t=bu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=go(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Li(t[r])];a===o&&(r=i,a=n),e=Ja(a)?a.call(e):a}return e},Un.round=Ec,Un.runInContext=e,Un.sample=function(e){return(qa(e)?Qn:Gr)(e)},Un.size=function(e){if(null==e)return 0;if(Ha(e))return cu(e)?on(e):e.length;var t=di(e);return t==x||t==k?e.size:Nr(e).length},Un.snakeCase=Zu,Un.some=function(e,t,n){var r=qa(e)?Pt:no;return n&&gi(e,t,n)&&(t=o),r(e,ui(t,3))},Un.sortedIndex=function(e,t){return ro(e,t)},Un.sortedIndexBy=function(e,t,n){return oo(e,t,ui(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return ro(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return oo(e,t,ui(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Un.startCase=Gu,Un.startsWith=function(e,t,n){return e=bu(e),n=null==n?0:ar(mu(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Un.subtract=$c,Un.sum=function(e){return e&&e.length?zt(e,oc):0},Un.sumBy=function(e,t){return e&&e.length?zt(e,ui(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&gi(e,t,n)&&(t=o),e=bu(e),t=xu({},t,r,Yo);var i,a,u=xu({},t.imports,r.imports,Yo),c=Cu(u),s=Wt(u,c),l=0,f=t.interpolate||be,p="__p += '",d=$e((t.escape||be).source+"|"+f.source+"|"+(f===Y?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ye+"]")+"\n";e.replace(d,(function(t,n,r,o,u,c){return r||(r=o),p+=e.slice(l,c).replace(we,Yt),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),u&&(a=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),p+="';\n";var m=Ie.call(t,"variable")&&t.variable;if(m){if(se.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(B,""):p).replace(V,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Xu((function(){return xe(c,h+"return "+p).apply(o,s)}));if(y.source=p,Ya(y))throw y;return y},Un.times=function(e,t){if((e=mu(e))<1||e>f)return[];var n=d,r=gn(e,d);t=ui(t),e-=d;for(var o=Ft(r,t);++n<e;)t(n);return o},Un.toFinite=hu,Un.toInteger=mu,Un.toLength=yu,Un.toLower=function(e){return bu(e).toLowerCase()},Un.toNumber=vu,Un.toSafeInteger=function(e){return e?ar(mu(e),-9007199254740991,f):0===e?e:0},Un.toString=bu,Un.toUpper=function(e){return bu(e).toUpperCase()},Un.trim=function(e,t,n){if((e=bu(e))&&(n||t===o))return Bt(e);if(!e||!(t=uo(t)))return e;var r=an(e),i=an(t);return wo(r,Kt(r,i),Ht(r,i)+1).join("")},Un.trimEnd=function(e,t,n){if((e=bu(e))&&(n||t===o))return e.slice(0,un(e)+1);if(!e||!(t=uo(t)))return e;var r=an(e);return wo(r,0,Ht(r,an(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=bu(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=uo(t)))return e;var r=an(e);return wo(r,Kt(r,an(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(tu(t)){var i="separator"in t?t.separator:i;n="length"in t?mu(t.length):n,r="omission"in t?uo(t.omission):r}var a=(e=bu(e)).length;if(Jt(e)){var u=an(e);a=u.length}if(n>=a)return e;var c=n-on(r);if(c<1)return r;var s=u?wo(u,0,c).join(""):e.slice(0,c);if(i===o)return s+r;if(u&&(c+=s.length-c),au(i)){if(e.slice(c).search(i)){var l,f=s;for(i.global||(i=$e(i.source,bu(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;s=s.slice(0,p===o?c:p)}}else if(e.indexOf(uo(i),c)!=c){var d=s.lastIndexOf(i);d>-1&&(s=s.slice(0,d))}return s+r},Un.unescape=function(e){return(e=bu(e))&&H.test(e)?e.replace(q,cn):e},Un.uniqueId=function(e){var t=++Re;return bu(e)+t},Un.upperCase=Qu,Un.upperFirst=Yu,Un.each=ba,Un.eachRight=wa,Un.first=Hi,cc(Un,(gc={},br(Un,(function(e,t){Ie.call(Un.prototype,t)||(gc[t]=e)})),gc),{chain:!1}),Un.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),bt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===o?1:vn(mu(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(oc)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Pr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Da(ui(e)))},Vn.prototype.slice=function(e,t){e=mu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=mu(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(d)},br(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,c=t instanceof Vn,s=u[0],l=c||qa(t),f=function(e){var t=i.apply(Un,Ot([e],u));return r&&p?t[0]:t};l&&n&&"function"==typeof s&&1!=s.length&&(c=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,m=c&&!d;if(!a&&l){t=m?t:new Vn(this);var y=e.apply(t,u);return y.__actions__.push({func:ha,args:[f],thisArg:o}),new Bn(y,p)}return h&&m?e.apply(this,u):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),br(Vn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Ie.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Uo(o,2).name]=[{name:"wrapper",func:o}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=jo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=jo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=jo(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,c=u-a,s=r?u:a-1,l=this.__iteratees__,f=l.length,p=0,d=gn(c,this.__takeCount__);if(!n||!r&&o==c&&d==c)return po(e,this.__actions__);var h=[];e:for(;c--&&p<d;){for(var m=-1,y=e[s+=t];++m<f;){var v=l[m],g=v.iteratee,b=v.type,w=g(y);if(2==b)y=w;else if(!w){if(1==b)continue e;break e}}h[p++]=y}return h},Un.prototype.at=ma,Un.prototype.chain=function(){return da(this)},Un.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===o&&(this.__values__=du(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Fn;){var r=zi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new Bn(t,this.__chain__)}return this.thru(ta)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,at&&(Un.prototype[at]=function(){return this}),Un}();it._=sn,(r=function(){return sn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},651:(e,t,n)=>{!function(t){var n=function(e){return o(!0===e,!1,arguments)};function r(e,t){if("object"!==i(e))return t;for(var n in t)"object"===i(e[n])&&"object"===i(t[n])?e[n]=r(e[n],t[n]):e[n]=t[n];return e}function o(e,t,o){var a=o[0],u=o.length;(e||"object"!==i(a))&&(a={});for(var c=0;c<u;++c){var s=o[c];if("object"===i(s))for(var l in s)if("__proto__"!==l){var f=e?n.clone(s[l]):s[l];a[l]=t?r(a[l],f):f}}return a}function i(e){return{}.toString.call(e).slice(8,-1).toLowerCase()}n.recursive=function(e){return o(!0===e,!0,arguments)},n.clone=function(e){var t,r,o=e,a=i(e);if("array"===a)for(o=[],r=e.length,t=0;t<r;++t)o[t]=n.clone(e[t]);else if("object"===a)for(t in o={},e)o[t]=n.clone(e[t]);return o},t?e.exports=n:window.merge=n}((e=n.nmd(e))&&"object"==typeof e.exports&&e.exports)},4516:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,u,c=o(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))n.call(a,l)&&(c[l]=a[l]);if(t){u=t(a);for(var f=0;f<u.length;f++)r.call(a,u[f])&&(c[u[f]]=a[u[f]])}}return c}},459:(e,t,n)=>{"use strict";var r=n(5704);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=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 u.name="Invariant Violation",u}}function t(){return e}e.isRequired=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:i,resetWarningCache:o};return n.PropTypes=n,n}},216:(e,t,n)=>{e.exports=n(459)()},5704:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3975:(e,t,n)=>{"use strict";var r=n(2735),o=n(4516),i=n(9146);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function u(e,t,n,r,o,i,a,u,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var c=!1,s=null,l=!1,f=null,p={onError:function(e){c=!0,s=e}};function d(e,t,n,r,o,i,a,l,f){c=!1,s=null,u.apply(p,arguments)}var h=null,m=null,y=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=y(n),function(e,t,n,r,o,i,u,p,h){if(d.apply(this,arguments),c){if(!c)throw Error(a(198));var m=s;c=!1,s=null,l||(l=!0,f=m)}}(r,t,void 0,e),e.currentTarget=null}var g=null,b={};function w(){if(g)for(var e in b){var t=b[e],n=g.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!x[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in x[n]=t,n=t.eventTypes){var o=void 0,i=n[r],u=t,c=r;if(S.hasOwnProperty(c))throw Error(a(99,c));S[c]=i;var s=i.phasedRegistrationNames;if(s){for(o in s)s.hasOwnProperty(o)&&_(s[o],u,c);o=!0}else i.registrationName?(_(i.registrationName,u,c),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function _(e,t,n){if(E[e])throw Error(a(100,e));E[e]=t,$[e]=t.eventTypes[n].dependencies}var x=[],S={},E={},$={};function O(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var k=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),j=null,P=null,T=null;function A(e){if(e=m(e)){if("function"!=typeof j)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),j(e.stateNode,e.type,t))}}function C(e){P?T?T.push(e):T=[e]:P=e}function I(){if(P){var e=P,t=T;if(T=P=null,A(e),t)for(e=0;e<t.length;e++)A(t[e])}}function R(e,t){return e(t)}function N(e,t,n,r,o){return e(t,n,r,o)}function D(){}var M=R,L=!1,U=!1;function z(){null===P&&null===T||(D(),I())}function F(e,t,n){if(U)return e(t,n);U=!0;try{return M(e,t,n)}finally{U=!1,z()}}var B=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,V=Object.prototype.hasOwnProperty,W={},q={};function K(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var H={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){H[e]=new K(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];H[t]=new K(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){H[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){H[e]=new K(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){H[e]=new K(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){H[e]=new K(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){H[e]=new K(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){H[e]=new K(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){H[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var Z=/[\-:]([a-z])/g;function G(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Z,G);H[t]=new K(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Z,G);H[t]=new K(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Z,G);H[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){H[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),H.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){H[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));var Q=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(e,t,n,r){var o=H.hasOwnProperty(t)?H[t]:null;(null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!V.call(q,e)||!V.call(W,e)&&(B.test(e)?q[e]=!0:(W[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,X="function"==typeof Symbol&&Symbol.for,ee=X?Symbol.for("react.element"):60103,te=X?Symbol.for("react.portal"):60106,ne=X?Symbol.for("react.fragment"):60107,re=X?Symbol.for("react.strict_mode"):60108,oe=X?Symbol.for("react.profiler"):60114,ie=X?Symbol.for("react.provider"):60109,ae=X?Symbol.for("react.context"):60110,ue=X?Symbol.for("react.concurrent_mode"):60111,ce=X?Symbol.for("react.forward_ref"):60112,se=X?Symbol.for("react.suspense"):60113,le=X?Symbol.for("react.suspense_list"):60120,fe=X?Symbol.for("react.memo"):60115,pe=X?Symbol.for("react.lazy"):60116,de=X?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ye(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case se:return"Suspense";case le:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case ce:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ye(e.type);case de:return ye(e.render);case pe:if(e=1===e._status?e._result:null)return ye(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=ye(e.type);n=null,r&&(n=ye(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(J,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Se(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&Y(e,"checked",t,!1)}function $e(e,t){Ee(e,t);var n=ge(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ke(e,t.type,n):t.hasOwnProperty("defaultValue")&&ke(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ke(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function je(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Pe(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ge(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function Ce(e,t){var n=ge(t.value),r=ge(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Re(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ne(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var De,Me,Le=(Me=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((De=De||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=De.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Me(e,t)}))}:Me);function Ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function ze(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fe={animationend:ze("Animation","AnimationEnd"),animationiteration:ze("Animation","AnimationIteration"),animationstart:ze("Animation","AnimationStart"),transitionend:ze("Transition","TransitionEnd")},Be={},Ve={};function We(e){if(Be[e])return Be[e];if(!Fe[e])return e;var t,n=Fe[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ve)return Be[e]=n[t];return e}k&&(Ve=document.createElement("div").style,"AnimationEvent"in window||(delete Fe.animationend.animation,delete Fe.animationiteration.animation,delete Fe.animationstart.animation),"TransitionEvent"in window||delete Fe.transitionend.transition);var qe=We("animationend"),Ke=We("animationiteration"),He=We("animationstart"),Ze=We("transitionend"),Ge="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qe=new("function"==typeof WeakMap?WeakMap:Map);function Ye(e){var t=Qe.get(e);return void 0===t&&(t=new Map,Qe.set(e,t)),t}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function et(e){if(Je(e)!==e)throw Error(a(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return et(o),e;if(i===r)return et(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var u=!1,c=o.child;c;){if(c===n){u=!0,n=o,r=i;break}if(c===r){u=!0,r=o,n=i;break}c=c.sibling}if(!u){for(c=i.child;c;){if(c===n){u=!0,n=i,r=o;break}if(c===r){u=!0,r=i,n=o;break}c=c.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function nt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function it(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function at(e){if(null!==e&&(ot=nt(ot,e)),e=ot,ot=null,e){if(rt(e,it),ot)throw Error(a(95));if(l)throw e=f,l=!1,f=null,e}}function ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!k)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var st=[];function lt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>st.length&&st.push(e)}function ft(e,t,n,r){if(st.length){var o=st.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Pn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=ut(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var u=null,c=0;c<x.length;c++){var s=x[c];s&&(s=s.extractEvents(r,t,i,o,a))&&(u=nt(u,s))}at(u)}}function dt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Ht(t,"scroll",!0);break;case"focus":case"blur":Ht(t,"focus",!0),Ht(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Ht(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ge.indexOf(e)&&Kt(e,t)}n.set(e,null)}}var ht,mt,yt,vt=!1,gt=[],bt=null,wt=null,_t=null,xt=new Map,St=new Map,Et=[],$t="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ot="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function kt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function jt(e,t){switch(e){case"focus":case"blur":bt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Pt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=kt(t,n,r,o,i),null!==t&&null!==(t=Tn(t))&&mt(t),e):(e.eventSystemFlags|=r,e)}function Tt(e){var t=Pn(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Tn(t);return null!==n&&mt(n),e.blockedOn=t,!1}return!0}function Ct(e,t,n){At(e)&&n.delete(t)}function It(){for(vt=!1;0<gt.length;){var e=gt[0];if(null!==e.blockedOn){null!==(e=Tn(e.blockedOn))&&ht(e);break}var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:gt.shift()}null!==bt&&At(bt)&&(bt=null),null!==wt&&At(wt)&&(wt=null),null!==_t&&At(_t)&&(_t=null),xt.forEach(Ct),St.forEach(Ct)}function Rt(e,t){e.blockedOn===t&&(e.blockedOn=null,vt||(vt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,It)))}function Nt(e){function t(t){return Rt(t,e)}if(0<gt.length){Rt(gt[0],e);for(var n=1;n<gt.length;n++){var r=gt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==bt&&Rt(bt,e),null!==wt&&Rt(wt,e),null!==_t&&Rt(_t,e),xt.forEach(t),St.forEach(t),n=0;n<Et.length;n++)(r=Et[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Et.length&&null===(n=Et[0]).blockedOn;)Tt(n),null===n.blockedOn&&Et.shift()}var Dt={},Mt=new Map,Lt=new Map,Ut=["abort","abort",qe,"animationEnd",Ke,"animationIteration",He,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ze,"transitionEnd","waiting","waiting"];function zt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Lt.set(r,t),Mt.set(r,i),Dt[o]=i}}zt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),zt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),zt(Ut,2);for(var Ft="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Bt=0;Bt<Ft.length;Bt++)Lt.set(Ft[Bt],0);var Vt=i.unstable_UserBlockingPriority,Wt=i.unstable_runWithPriority,qt=!0;function Kt(e,t){Ht(t,e,!1)}function Ht(e,t,n){var r=Lt.get(t);switch(void 0===r?2:r){case 0:r=Zt.bind(null,t,1,e);break;case 1:r=Gt.bind(null,t,1,e);break;default:r=Qt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Zt(e,t,n,r){L||D();var o=Qt,i=L;L=!0;try{N(o,e,t,n,r)}finally{(L=i)||z()}}function Gt(e,t,n,r){Wt(Vt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){if(qt)if(0<gt.length&&-1<$t.indexOf(e))e=kt(null,e,t,n,r),gt.push(e);else{var o=Yt(e,t,n,r);if(null===o)jt(e,r);else if(-1<$t.indexOf(e))e=kt(o,e,t,n,r),gt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return bt=Pt(bt,e,t,n,r,o),!0;case"dragenter":return wt=Pt(wt,e,t,n,r,o),!0;case"mouseover":return _t=Pt(_t,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return xt.set(i,Pt(xt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,St.set(i,Pt(St.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){jt(e,r),e=ft(e,r,null,t);try{F(pt,e)}finally{lt(e)}}}}function Yt(e,t,n,r){if(null!==(n=Pn(n=ut(r)))){var o=Je(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=Xe(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=ft(e,r,n,t);try{F(pt,e)}finally{lt(e)}return null}var Jt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xt=["Webkit","ms","Moz","O"];function en(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Jt.hasOwnProperty(e)&&Jt[e]?(""+t).trim():t+"px"}function tn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=en(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Jt).forEach((function(e){Xt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jt[t]=Jt[e]}))}));var nn=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rn(e,t){if(t){if(nn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function on(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var an="http://www.w3.org/1999/xhtml";function un(e,t){var n=Ye(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=$[t];for(var r=0;r<t.length;r++)dt(t[r],e,n)}function cn(){}function sn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ln(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fn(e,t){var n,r=ln(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ln(r)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dn(){for(var e=window,t=sn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=sn((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn="$?",yn="$!",vn=null,gn=null;function bn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function wn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var _n="function"==typeof setTimeout?setTimeout:void 0,xn="function"==typeof clearTimeout?clearTimeout:void 0;function Sn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function En(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===yn||n===mn){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var $n=Math.random().toString(36).slice(2),On="__reactInternalInstance$"+$n,kn="__reactEventHandlers$"+$n,jn="__reactContainere$"+$n;function Pn(e){var t=e[On];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jn]||n[On]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=En(e);null!==e;){if(n=e[On])return n;e=En(e)}return t}n=(e=n).parentNode}return null}function Tn(e){return!(e=e[On]||e[jn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function An(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Cn(e){return e[kn]||null}function In(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Rn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Nn(e,t,n){(t=Rn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Dn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=In(t);for(t=n.length;0<t--;)Nn(n[t],"captured",e);for(t=0;t<n.length;t++)Nn(n[t],"bubbled",e)}}function Mn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Rn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Ln(e){e&&e.dispatchConfig.registrationName&&Mn(e._targetInst,null,e)}function Un(e){rt(e,Dn)}var zn=null,Fn=null,Bn=null;function Vn(){if(Bn)return Bn;var e,t,n=Fn,r=n.length,o="value"in zn?zn.value:zn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Bn=o.slice(e,1<t?1-t:void 0)}function Wn(){return!0}function qn(){return!1}function Kn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Wn:qn,this.isPropagationStopped=qn,this}function Hn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Zn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Hn,e.release=Zn}o(Kn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Wn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wn)},persist:function(){this.isPersistent=Wn},isPersistent:qn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qn,this._dispatchInstances=this._dispatchListeners=null}}),Kn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Kn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Gn(n),n},Gn(Kn);var Qn=Kn.extend({data:null}),Yn=Kn.extend({data:null}),Jn=[9,13,27,32],Xn=k&&"CompositionEvent"in window,er=null;k&&"documentMode"in document&&(er=document.documentMode);var tr=k&&"TextEvent"in window&&!er,nr=k&&(!Xn||er&&8<er&&11>=er),rr=String.fromCharCode(32),or={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ir=!1;function ar(e,t){switch(e){case"keyup":return-1!==Jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ur(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var cr=!1,sr={eventTypes:or,extractEvents:function(e,t,n,r){var o;if(Xn)e:{switch(e){case"compositionstart":var i=or.compositionStart;break e;case"compositionend":i=or.compositionEnd;break e;case"compositionupdate":i=or.compositionUpdate;break e}i=void 0}else cr?ar(e,n)&&(i=or.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=or.compositionStart);return i?(nr&&"ko"!==n.locale&&(cr||i!==or.compositionStart?i===or.compositionEnd&&cr&&(o=Vn()):(Fn="value"in(zn=r)?zn.value:zn.textContent,cr=!0)),i=Qn.getPooled(i,t,n,r),(o||null!==(o=ur(n)))&&(i.data=o),Un(i),o=i):o=null,(e=tr?function(e,t){switch(e){case"compositionend":return ur(t);case"keypress":return 32!==t.which?null:(ir=!0,rr);case"textInput":return(e=t.data)===rr&&ir?null:e;default:return null}}(e,n):function(e,t){if(cr)return"compositionend"===e||!Xn&&ar(e,t)?(e=Vn(),Bn=Fn=zn=null,cr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nr&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Yn.getPooled(or.beforeInput,t,n,r)).data=e,Un(t)):t=null,null===o?t:null===t?o:[o,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var pr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function dr(e,t,n){return(e=Kn.getPooled(pr.change,e,t,n)).type="change",C(n),Un(e),e}var hr=null,mr=null;function yr(e){at(e)}function vr(e){if(_e(An(e)))return e}function gr(e,t){if("change"===e)return t}var br=!1;function wr(){hr&&(hr.detachEvent("onpropertychange",_r),mr=hr=null)}function _r(e){if("value"===e.propertyName&&vr(mr))if(e=dr(mr,e,ut(e)),L)at(e);else{L=!0;try{R(yr,e)}finally{L=!1,z()}}}function xr(e,t,n){"focus"===e?(wr(),mr=n,(hr=t).attachEvent("onpropertychange",_r)):"blur"===e&&wr()}function Sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vr(mr)}function Er(e,t){if("click"===e)return vr(t)}function $r(e,t){if("input"===e||"change"===e)return vr(t)}k&&(br=ct("input")&&(!document.documentMode||9<document.documentMode));var Or={eventTypes:pr,_isInputEventSupported:br,extractEvents:function(e,t,n,r){var o=t?An(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=gr;else if(fr(o))if(br)a=$r;else{a=Sr;var u=xr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Er);if(a&&(a=a(e,t)))return dr(a,n,r);u&&u(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&ke(o,"number",o.value)}},kr=Kn.extend({view:null,detail:null}),jr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=jr[e])&&!!t[e]}function Tr(){return Pr}var Ar=0,Cr=0,Ir=!1,Rr=!1,Nr=kr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Tr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ar;return Ar=e.screenX,Ir?"mousemove"===e.type?e.screenX-t:0:(Ir=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Cr;return Cr=e.screenY,Rr?"mousemove"===e.type?e.screenY-t:0:(Rr=!0,0)}}),Dr=Nr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Mr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Lr={eventTypes:Mr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Pn(t):null)&&(t!==Je(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var u=Nr,c=Mr.mouseLeave,s=Mr.mouseEnter,l="mouse";else"pointerout"!==e&&"pointerover"!==e||(u=Dr,c=Mr.pointerLeave,s=Mr.pointerEnter,l="pointer");if(e=null==a?i:An(a),i=null==t?i:An(t),(c=u.getPooled(c,a,n,r)).type=l+"leave",c.target=e,c.relatedTarget=i,(n=u.getPooled(s,t,n,r)).type=l+"enter",n.target=i,n.relatedTarget=e,l=t,(r=a)&&l)e:{for(s=l,a=0,e=u=r;e;e=In(e))a++;for(e=0,t=s;t;t=In(t))e++;for(;0<a-e;)u=In(u),a--;for(;0<e-a;)s=In(s),e--;for(;a--;){if(u===s||u===s.alternate)break e;u=In(u),s=In(s)}u=null}else u=null;for(s=u,u=[];r&&r!==s&&(null===(a=r.alternate)||a!==s);)u.push(r),r=In(r);for(r=[];l&&l!==s&&(null===(a=l.alternate)||a!==s);)r.push(l),l=In(l);for(l=0;l<u.length;l++)Mn(u[l],"bubbled",c);for(l=r.length;0<l--;)Mn(r[l],"captured",n);return 0==(64&o)?[c]:[c,n]}},Ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},zr=Object.prototype.hasOwnProperty;function Fr(e,t){if(Ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!zr.call(t,n[r])||!Ur(e[n[r]],t[n[r]]))return!1;return!0}var Br=k&&"documentMode"in document&&11>=document.documentMode,Vr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wr=null,qr=null,Kr=null,Hr=!1;function Zr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Hr||null==Wr||Wr!==sn(n)?null:(n="selectionStart"in(n=Wr)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Kr&&Fr(Kr,n)?null:(Kr=n,(e=Kn.getPooled(Vr.select,qr,e,t)).type="select",e.target=Wr,Un(e),e))}var Gr={eventTypes:Vr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Ye(o),i=$.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?An(t):window,e){case"focus":(fr(o)||"true"===o.contentEditable)&&(Wr=o,qr=t,Kr=null);break;case"blur":Kr=qr=Wr=null;break;case"mousedown":Hr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Hr=!1,Zr(n,r);case"selectionchange":if(Br)break;case"keydown":case"keyup":return Zr(n,r)}return null}},Qr=Kn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Yr=Kn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jr=kr.extend({relatedTarget:null});function Xr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var eo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},to={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},no=kr.extend({key:function(e){if(e.key){var t=eo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?to[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Tr,charCode:function(e){return"keypress"===e.type?Xr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ro=Nr.extend({dataTransfer:null}),oo=kr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Tr}),io=Kn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ao=Nr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),uo={eventTypes:Dt,extractEvents:function(e,t,n,r){var o=Mt.get(e);if(!o)return null;switch(e){case"keypress":if(0===Xr(n))return null;case"keydown":case"keyup":e=no;break;case"blur":case"focus":e=Jr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Nr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ro;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=oo;break;case qe:case Ke:case He:e=Qr;break;case Ze:e=io;break;case"scroll":e=kr;break;case"wheel":e=ao;break;case"copy":case"cut":case"paste":e=Yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Dr;break;default:e=Kn}return Un(t=e.getPooled(o,t,n,r)),t}};if(g)throw Error(a(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Cn,m=Tn,y=An,O({SimpleEventPlugin:uo,EnterLeaveEventPlugin:Lr,ChangeEventPlugin:Or,SelectEventPlugin:Gr,BeforeInputEventPlugin:sr});var co=[],so=-1;function lo(e){0>so||(e.current=co[so],co[so]=null,so--)}function fo(e,t){so++,co[so]=e.current,e.current=t}var po={},ho={current:po},mo={current:!1},yo=po;function vo(e,t){var n=e.type.contextTypes;if(!n)return po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function go(e){return null!=e.childContextTypes}function bo(){lo(mo),lo(ho)}function wo(e,t,n){if(ho.current!==po)throw Error(a(168));fo(ho,t),fo(mo,n)}function _o(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,ye(t)||"Unknown",i));return o({},n,{},r)}function xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,yo=ho.current,fo(ho,e),fo(mo,mo.current),!0}function So(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=_o(e,t,yo),r.__reactInternalMemoizedMergedChildContext=e,lo(mo),lo(ho),fo(ho,e)):lo(mo),fo(mo,n)}var Eo=i.unstable_runWithPriority,$o=i.unstable_scheduleCallback,Oo=i.unstable_cancelCallback,ko=i.unstable_requestPaint,jo=i.unstable_now,Po=i.unstable_getCurrentPriorityLevel,To=i.unstable_ImmediatePriority,Ao=i.unstable_UserBlockingPriority,Co=i.unstable_NormalPriority,Io=i.unstable_LowPriority,Ro=i.unstable_IdlePriority,No={},Do=i.unstable_shouldYield,Mo=void 0!==ko?ko:function(){},Lo=null,Uo=null,zo=!1,Fo=jo(),Bo=1e4>Fo?jo:function(){return jo()-Fo};function Vo(){switch(Po()){case To:return 99;case Ao:return 98;case Co:return 97;case Io:return 96;case Ro:return 95;default:throw Error(a(332))}}function Wo(e){switch(e){case 99:return To;case 98:return Ao;case 97:return Co;case 96:return Io;case 95:return Ro;default:throw Error(a(332))}}function qo(e,t){return e=Wo(e),Eo(e,t)}function Ko(e,t,n){return e=Wo(e),$o(e,t,n)}function Ho(e){return null===Lo?(Lo=[e],Uo=$o(To,Go)):Lo.push(e),No}function Zo(){if(null!==Uo){var e=Uo;Uo=null,Oo(e)}Go()}function Go(){if(!zo&&null!==Lo){zo=!0;var e=0;try{var t=Lo;qo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Lo=null}catch(t){throw null!==Lo&&(Lo=Lo.slice(e+1)),$o(To,Zo),t}finally{zo=!1}}}function Qo(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Yo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Jo={current:null},Xo=null,ei=null,ti=null;function ni(){ti=ei=Xo=null}function ri(e){var t=Jo.current;lo(Jo),e.type._context._currentValue=t}function oi(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ii(e,t){Xo=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ca=!0),e.firstContext=null)}function ai(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===Xo)throw Error(a(308));ei=t,Xo.dependencies={expirationTime:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var ui=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function li(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function fi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function pi(e,t){var n=e.alternate;null!==n&&si(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function di(e,t,n,r){var i=e.updateQueue;ui=!1;var a=i.baseQueue,u=i.shared.pending;if(null!==u){if(null!==a){var c=a.next;a.next=u.next,u.next=c}a=u,i.shared.pending=null,null!==(c=e.alternate)&&null!==(c=c.updateQueue)&&(c.baseQueue=u)}if(null!==a){c=a.next;var s=i.baseState,l=0,f=null,p=null,d=null;if(null!==c)for(var h=c;;){if((u=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===d?(p=d=m,f=s):d=d.next=m,u>l&&(l=u)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),sc(u,h.suspenseConfig);e:{var y=e,v=h;switch(u=t,m=n,v.tag){case 1:if("function"==typeof(y=v.payload)){s=y.call(m,s,u);break e}s=y;break e;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null==(u="function"==typeof(y=v.payload)?y.call(m,s,u):y))break e;s=o({},s,u);break e;case 2:ui=!0}}null!==h.callback&&(e.effectTag|=32,null===(u=i.effects)?i.effects=[h]:u.push(h))}if(null===(h=h.next)||h===c){if(null===(u=i.shared.pending))break;h=a.next=u.next,u.next=c,i.baseQueue=a=u,i.shared.pending=null}}null===d?f=s:d.next=p,i.baseState=f,i.baseQueue=d,lc(l),e.expirationTime=l,e.memoizedState=s}}function hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var mi=Q.ReactCurrentBatchConfig,yi=(new r.Component).refs;function vi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var gi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Qu(),o=mi.suspense;(o=li(r=Yu(r,e,o),o)).payload=t,null!=n&&(o.callback=n),fi(e,o),Ju(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Qu(),o=mi.suspense;(o=li(r=Yu(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),fi(e,o),Ju(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Qu(),r=mi.suspense;(r=li(n=Yu(n,e,r),r)).tag=2,null!=t&&(r.callback=t),fi(e,r),Ju(e,n)}};function bi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&Fr(n,r)&&Fr(o,i))}function wi(e,t,n){var r=!1,o=po,i=t.contextType;return"object"==typeof i&&null!==i?i=ai(i):(o=go(t)?yo:ho.current,i=(r=null!=(r=t.contextTypes))?vo(e,o):po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=gi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function _i(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&gi.enqueueReplaceState(t,t.state,null)}function xi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=yi,ci(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ai(i):(i=go(t)?yo:ho.current,o.context=vo(e,i)),di(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&gi.enqueueReplaceState(o,o.state,null),di(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Si=Array.isArray;function Ei(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===yi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function $i(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Oi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Tc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Ic(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ei(e,t,n),r.return=e,r):((r=Ac(n.type,n.key,n.props,null,e.mode,r)).ref=Ei(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Rc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Cc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ic(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=Ei(e,null,t),n.return=e,n;case te:return(t=Rc(t,e.mode,n)).return=e,t}if(Si(t)||me(t))return(t=Cc(t,e.mode,n,null)).return=e,t;$i(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case te:return n.key===o?l(e,t,n,r):null}if(Si(n)||me(n))return null!==o?null:f(e,t,n,r,null);$i(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case te:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Si(r)||me(r))return f(t,e=e.get(n)||null,r,o,null);$i(t,r)}return null}function m(o,a,u,c){for(var s=null,l=null,f=a,m=a=0,y=null;null!==f&&m<u.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=d(o,f,u[m],c);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(o,f),a=i(v,a,m),null===l?s=v:l.sibling=v,l=v,f=y}if(m===u.length)return n(o,f),s;if(null===f){for(;m<u.length;m++)null!==(f=p(o,u[m],c))&&(a=i(f,a,m),null===l?s=f:l.sibling=f,l=f);return s}for(f=r(o,f);m<u.length;m++)null!==(y=h(f,o,m,u[m],c))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),a=i(y,a,m),null===l?s=y:l.sibling=y,l=y);return e&&f.forEach((function(e){return t(o,e)})),s}function y(o,u,c,s){var l=me(c);if("function"!=typeof l)throw Error(a(150));if(null==(c=l.call(c)))throw Error(a(151));for(var f=l=null,m=u,y=u=0,v=null,g=c.next();null!==m&&!g.done;y++,g=c.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=d(o,m,g.value,s);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),u=i(b,u,y),null===f?l=b:f.sibling=b,f=b,m=v}if(g.done)return n(o,m),l;if(null===m){for(;!g.done;y++,g=c.next())null!==(g=p(o,g.value,s))&&(u=i(g,u,y),null===f?l=g:f.sibling=g,f=g);return l}for(m=r(o,m);!g.done;y++,g=c.next())null!==(g=h(m,o,y,g.value,s))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),u=i(g,u,y),null===f?l=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),l}return function(e,r,i,c){var s="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;s&&(i=i.props.children);var l="object"==typeof i&&null!==i;if(l)switch(i.$$typeof){case ee:e:{for(l=i.key,s=r;null!==s;){if(s.key===l){if(7===s.tag){if(i.type===ne){n(e,s.sibling),(r=o(s,i.props.children)).return=e,e=r;break e}}else if(s.elementType===i.type){n(e,s.sibling),(r=o(s,i.props)).ref=Ei(e,s,i),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}i.type===ne?((r=Cc(i.props.children,e.mode,c,i.key)).return=e,e=r):((c=Ac(i.type,i.key,i.props,null,e.mode,c)).ref=Ei(e,r,i),c.return=e,e=c)}return u(e);case te:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Rc(i,e.mode,c)).return=e,e=r}return u(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Ic(i,e.mode,c)).return=e,e=r),u(e);if(Si(i))return m(e,r,i,c);if(me(i))return y(e,r,i,c);if(l&&$i(e,i),void 0===i&&!s)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var ki=Oi(!0),ji=Oi(!1),Pi={},Ti={current:Pi},Ai={current:Pi},Ci={current:Pi};function Ii(e){if(e===Pi)throw Error(a(174));return e}function Ri(e,t){switch(fo(Ci,t),fo(Ai,e),fo(Ti,Pi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ne(null,"");break;default:t=Ne(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(Ti),fo(Ti,t)}function Ni(){lo(Ti),lo(Ai),lo(Ci)}function Di(e){Ii(Ci.current);var t=Ii(Ti.current),n=Ne(t,e.type);t!==n&&(fo(Ai,e),fo(Ti,n))}function Mi(e){Ai.current===e&&(lo(Ti),lo(Ai))}var Li={current:0};function Ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===mn||n.data===yn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function zi(e,t){return{responder:e,props:t}}var Fi=Q.ReactCurrentDispatcher,Bi=Q.ReactCurrentBatchConfig,Vi=0,Wi=null,qi=null,Ki=null,Hi=!1;function Zi(){throw Error(a(321))}function Gi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ur(e[n],t[n]))return!1;return!0}function Qi(e,t,n,r,o,i){if(Vi=i,Wi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Fi.current=null===e||null===e.memoizedState?ba:wa,e=n(r,o),t.expirationTime===Vi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Ki=qi=null,t.updateQueue=null,Fi.current=_a,e=n(r,o)}while(t.expirationTime===Vi)}if(Fi.current=ga,t=null!==qi&&null!==qi.next,Vi=0,Ki=qi=Wi=null,Hi=!1,t)throw Error(a(300));return e}function Yi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Wi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function Ji(){if(null===qi){var e=Wi.alternate;e=null!==e?e.memoizedState:null}else e=qi.next;var t=null===Ki?Wi.memoizedState:Ki.next;if(null!==t)Ki=t,qi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(qi=e).memoizedState,baseState:qi.baseState,baseQueue:qi.baseQueue,queue:qi.queue,next:null},null===Ki?Wi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function Xi(e,t){return"function"==typeof t?t(e):t}function ea(e){var t=Ji(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=qi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var u=o.next;o.next=i.next,i.next=u}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var c=u=i=null,s=o;do{var l=s.expirationTime;if(l<Vi){var f={expirationTime:s.expirationTime,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===c?(u=c=f,i=r):c=c.next=f,l>Wi.expirationTime&&(Wi.expirationTime=l,lc(l))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),sc(l,s.suspenseConfig),r=s.eagerReducer===e?s.eagerState:e(r,s.action);s=s.next}while(null!==s&&s!==o);null===c?i=r:c.next=u,Ur(r,t.memoizedState)||(Ca=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ta(e){var t=Ji(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{i=e(i,u.action),u=u.next}while(u!==o);Ur(i,t.memoizedState)||(Ca=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function na(e){var t=Yi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e}).dispatch=va.bind(null,Wi,e),[t.memoizedState,e]}function ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Wi.updateQueue)?(t={lastEffect:null},Wi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function oa(){return Ji().memoizedState}function ia(e,t,n,r){var o=Yi();Wi.effectTag|=e,o.memoizedState=ra(1|t,n,void 0,void 0===r?null:r)}function aa(e,t,n,r){var o=Ji();r=void 0===r?null:r;var i=void 0;if(null!==qi){var a=qi.memoizedState;if(i=a.destroy,null!==r&&Gi(r,a.deps))return void ra(t,n,i,r)}Wi.effectTag|=e,o.memoizedState=ra(1|t,n,i,r)}function ua(e,t){return ia(516,4,e,t)}function ca(e,t){return aa(516,4,e,t)}function sa(e,t){return aa(4,2,e,t)}function la(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function fa(e,t,n){return n=null!=n?n.concat([e]):null,aa(4,2,la.bind(null,t,e),n)}function pa(){}function da(e,t){return Yi().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Gi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ma(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Gi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ya(e,t,n){var r=Vo();qo(98>r?98:r,(function(){e(!0)})),qo(97<r?97:r,(function(){var r=Bi.suspense;Bi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Bi.suspense=r}}))}function va(e,t,n){var r=Qu(),o=mi.suspense;o={expirationTime:r=Yu(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Wi||null!==i&&i===Wi)Hi=!0,o.expirationTime=Vi,Wi.expirationTime=Vi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=i(a,n);if(o.eagerReducer=i,o.eagerState=u,Ur(u,a))return}catch(e){}Ju(e,r)}}var ga={readContext:ai,useCallback:Zi,useContext:Zi,useEffect:Zi,useImperativeHandle:Zi,useLayoutEffect:Zi,useMemo:Zi,useReducer:Zi,useRef:Zi,useState:Zi,useDebugValue:Zi,useResponder:Zi,useDeferredValue:Zi,useTransition:Zi},ba={readContext:ai,useCallback:da,useContext:ai,useEffect:ua,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ia(4,2,la.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ia(4,2,e,t)},useMemo:function(e,t){var n=Yi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=va.bind(null,Wi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Yi().memoizedState=e},useState:na,useDebugValue:pa,useResponder:zi,useDeferredValue:function(e,t){var n=na(e),r=n[0],o=n[1];return ua((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=na(!1),n=t[0];return t=t[1],[da(ya.bind(null,t,e),[t,e]),n]}},wa={readContext:ai,useCallback:ha,useContext:ai,useEffect:ca,useImperativeHandle:fa,useLayoutEffect:sa,useMemo:ma,useReducer:ea,useRef:oa,useState:function(){return ea(Xi)},useDebugValue:pa,useResponder:zi,useDeferredValue:function(e,t){var n=ea(Xi),r=n[0],o=n[1];return ca((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(Xi),n=t[0];return t=t[1],[ha(ya.bind(null,t,e),[t,e]),n]}},_a={readContext:ai,useCallback:ha,useContext:ai,useEffect:ca,useImperativeHandle:fa,useLayoutEffect:sa,useMemo:ma,useReducer:ta,useRef:oa,useState:function(){return ta(Xi)},useDebugValue:pa,useResponder:zi,useDeferredValue:function(e,t){var n=ta(Xi),r=n[0],o=n[1];return ca((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ta(Xi),n=t[0];return t=t[1],[ha(ya.bind(null,t,e),[t,e]),n]}},xa=null,Sa=null,Ea=!1;function $a(e,t){var n=jc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Oa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function ka(e){if(Ea){var t=Sa;if(t){var n=t;if(!Oa(e,t)){if(!(t=Sn(n.nextSibling))||!Oa(e,t))return e.effectTag=-1025&e.effectTag|2,Ea=!1,void(xa=e);$a(xa,n)}xa=e,Sa=Sn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ea=!1,xa=e}}function ja(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xa=e}function Pa(e){if(e!==xa)return!1;if(!Ea)return ja(e),Ea=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!wn(t,e.memoizedProps))for(t=Sa;t;)$a(e,t),t=Sn(t.nextSibling);if(ja(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Sa=Sn(e.nextSibling);break e}t--}else"$"!==n&&n!==yn&&n!==mn||t++}e=e.nextSibling}Sa=null}}else Sa=xa?Sn(e.stateNode.nextSibling):null;return!0}function Ta(){Sa=xa=null,Ea=!1}var Aa=Q.ReactCurrentOwner,Ca=!1;function Ia(e,t,n,r){t.child=null===e?ji(t,null,n,r):ki(t,e.child,n,r)}function Ra(e,t,n,r,o){n=n.render;var i=t.ref;return ii(t,o),r=Qi(e,t,n,r,i,o),null===e||Ca?(t.effectTag|=1,Ia(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Qa(e,t,o))}function Na(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Pc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ac(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Da(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Fr)(o,r)&&e.ref===t.ref)?Qa(e,t,i):(t.effectTag|=1,(e=Tc(a,r)).ref=t.ref,e.return=t,t.child=e)}function Da(e,t,n,r,o,i){return null!==e&&Fr(e.memoizedProps,r)&&e.ref===t.ref&&(Ca=!1,o<i)?(t.expirationTime=e.expirationTime,Qa(e,t,i)):La(e,t,n,r,i)}function Ma(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function La(e,t,n,r,o){var i=go(n)?yo:ho.current;return i=vo(t,i),ii(t,o),n=Qi(e,t,n,r,i,o),null===e||Ca?(t.effectTag|=1,Ia(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Qa(e,t,o))}function Ua(e,t,n,r,o){if(go(n)){var i=!0;xo(t)}else i=!1;if(ii(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),wi(t,n,r),xi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var c=a.context,s=n.contextType;s="object"==typeof s&&null!==s?ai(s):vo(t,s=go(n)?yo:ho.current);var l=n.getDerivedStateFromProps,f="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||c!==s)&&_i(t,a,r,s),ui=!1;var p=t.memoizedState;a.state=p,di(t,r,a,o),c=t.memoizedState,u!==r||p!==c||mo.current||ui?("function"==typeof l&&(vi(t,n,l,r),c=t.memoizedState),(u=ui||bi(t,n,u,r,p,c,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=s,r=u):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,si(e,t),u=t.memoizedProps,a.props=t.type===t.elementType?u:Yo(t.type,u),c=a.context,s="object"==typeof(s=n.contextType)&&null!==s?ai(s):vo(t,s=go(n)?yo:ho.current),(f="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||c!==s)&&_i(t,a,r,s),ui=!1,c=t.memoizedState,a.state=c,di(t,r,a,o),p=t.memoizedState,u!==r||c!==p||mo.current||ui?("function"==typeof l&&(vi(t,n,l,r),p=t.memoizedState),(l=ui||bi(t,n,u,r,c,p,s))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=s,r=l):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return za(e,t,n,r,i,o)}function za(e,t,n,r,o,i){Ma(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&So(t,n,!1),Qa(e,t,i);r=t.stateNode,Aa.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=ki(t,e.child,null,i),t.child=ki(t,null,u,i)):Ia(e,t,u,i),t.memoizedState=r.state,o&&So(t,n,!0),t.child}function Fa(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Ri(e,t.containerInfo)}var Ba,Va,Wa,qa={dehydrated:null,retryTime:0};function Ka(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Li.current,u=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(u=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),fo(Li,1&a),null===e){if(void 0!==i.fallback&&ka(t),u){if(u=i.fallback,(i=Cc(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Cc(u,o,n,null)).return=t,i.sibling=n,t.memoizedState=qa,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=ji(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,u){if(i=i.fallback,(n=Tc(e,e.pendingProps)).return=t,0==(2&t.mode)&&(u=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=u;null!==u;)u.return=n,u=u.sibling;return(o=Tc(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=qa,t.child=n,o}return n=ki(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,u){if(u=i.fallback,(i=Cc(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Cc(u,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=qa,t.child=i,n}return t.memoizedState=null,t.child=ki(t,e,i.children,n)}function Ha(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),oi(e.return,t)}function Za(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Ga(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ia(e,t,r.children,n),0!=(2&(r=Li.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ha(e,n);else if(19===e.tag)Ha(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fo(Li,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ui(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Za(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ui(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Za(t,!0,n,null,i,t.lastEffect);break;case"together":Za(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&lc(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Tc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ya(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ja(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return go(t.type)&&bo(),null;case 3:return Ni(),lo(mo),lo(ho),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Pa(t)||(t.effectTag|=4),null;case 5:Mi(t),n=Ii(Ci.current);var i=t.type;if(null!==e&&null!=t.stateNode)Va(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ii(Ti.current),Pa(t)){r=t.stateNode,i=t.type;var u=t.memoizedProps;switch(r[On]=t,r[kn]=u,i){case"iframe":case"object":case"embed":Kt("load",r);break;case"video":case"audio":for(e=0;e<Ge.length;e++)Kt(Ge[e],r);break;case"source":Kt("error",r);break;case"img":case"image":case"link":Kt("error",r),Kt("load",r);break;case"form":Kt("reset",r),Kt("submit",r);break;case"details":Kt("toggle",r);break;case"input":Se(r,u),Kt("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Kt("invalid",r),un(n,"onChange");break;case"textarea":Ae(r,u),Kt("invalid",r),un(n,"onChange")}for(var c in rn(i,u),e=null,u)if(u.hasOwnProperty(c)){var s=u[c];"children"===c?"string"==typeof s?r.textContent!==s&&(e=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(e=["children",""+s]):E.hasOwnProperty(c)&&null!=s&&un(n,c)}switch(i){case"input":we(r),Oe(r,u,!0);break;case"textarea":we(r),Ie(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,e===an&&(e=Re(i)),e===an?"script"===i?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(i,{is:r.is}):(e=c.createElement(i),"select"===i&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,i),e[On]=t,e[kn]=r,Ba(e,t),t.stateNode=e,c=on(i,r),i){case"iframe":case"object":case"embed":Kt("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ge.length;s++)Kt(Ge[s],e);s=r;break;case"source":Kt("error",e),s=r;break;case"img":case"image":case"link":Kt("error",e),Kt("load",e),s=r;break;case"form":Kt("reset",e),Kt("submit",e),s=r;break;case"details":Kt("toggle",e),s=r;break;case"input":Se(e,r),s=xe(e,r),Kt("invalid",e),un(n,"onChange");break;case"option":s=je(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=o({},r,{value:void 0}),Kt("invalid",e),un(n,"onChange");break;case"textarea":Ae(e,r),s=Te(e,r),Kt("invalid",e),un(n,"onChange");break;default:s=r}rn(i,s);var l=s;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];"style"===u?tn(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&Le(e,f):"children"===u?"string"==typeof f?("textarea"!==i||""!==f)&&Ue(e,f):"number"==typeof f&&Ue(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(E.hasOwnProperty(u)?null!=f&&un(n,u):null!=f&&Y(e,u,f,c))}switch(i){case"input":we(e),Oe(e,r,!1);break;case"textarea":we(e),Ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ge(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Pe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Pe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof s.onClick&&(e.onclick=cn)}bn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Wa(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ii(Ci.current),Ii(Ti.current),Pa(t)?(n=t.stateNode,r=t.memoizedProps,n[On]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[On]=t,t.stateNode=n)}return null;case 13:return lo(Li),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Pa(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=i,i.nextEffect=u):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Li.current)?Au===Eu&&(Au=$u):(Au!==Eu&&Au!==$u||(Au=Ou),0!==Du&&null!==ju&&(Mc(ju,Tu),Lc(ju,Du)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ni(),null;case 10:return ri(t),null;case 19:if(lo(Li),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(u=r.rendering)){if(i)Ya(r,!1);else if(Au!==Eu||null!==e&&0!=(64&e.effectTag))for(u=t.child;null!==u;){if(null!==(e=Ui(u))){for(t.effectTag|=64,Ya(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)u=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=u,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,u=e.dependencies,i.dependencies=null===u?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),r=r.sibling;return fo(Li,1&Li.current|2),t.child}u=u.sibling}}else{if(!i)if(null!==(e=Ui(u))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ya(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Ya(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Bo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bo(),n.sibling=null,t=Li.current,fo(Li,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Xa(e){switch(e.tag){case 1:go(e.type)&&bo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ni(),lo(mo),lo(ho),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Mi(e),null;case 13:return lo(Li),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return lo(Li),null;case 4:return Ni(),null;case 10:return ri(e),null;default:return null}}function eu(e,t){return{value:e,source:t,stack:ve(t)}}Ba=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var u,c,s=t.stateNode;switch(Ii(Ti.current),e=null,n){case"input":a=xe(s,a),r=xe(s,r),e=[];break;case"option":a=je(s,a),r=je(s,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Te(s,a),r=Te(s,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=cn)}for(u in rn(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u)for(c in s=a[u])s.hasOwnProperty(c)&&(n||(n={}),n[c]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(E.hasOwnProperty(u)?e||(e=[]):(e=e||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(c in s)!s.hasOwnProperty(c)||l&&l.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in l)l.hasOwnProperty(c)&&s[c]!==l[c]&&(n||(n={}),n[c]=l[c])}else n||(e||(e=[]),e.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(e=e||[]).push(u,l)):"children"===u?s===l||"string"!=typeof l&&"number"!=typeof l||(e=e||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(E.hasOwnProperty(u)?(null!=l&&un(i,u),e||s===l||(e=[])):(e=e||[]).push(u,l))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Wa=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var tu="function"==typeof WeakSet?WeakSet:Set;function nu(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&ye(n.type),t=t.value,null!==e&&1===e.tag&&ye(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ru(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){xc(e,t)}else t.current=null}function ou(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function iu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function au(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function uu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void au(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Yo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&hi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}hi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Nt(n)))))}throw Error(a(163))}function cu(e,t,n){switch("function"==typeof Oc&&Oc(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;qo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){xc(o,e)}}e=e.next}while(e!==r)}))}break;case 1:ru(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){xc(e,t)}}(t,n);break;case 5:ru(t);break;case 4:hu(e,t,n)}}function su(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&su(t)}function lu(e){return 5===e.tag||3===e.tag||4===e.tag}function fu(e){e:{for(var t=e.return;null!==t;){if(lu(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||lu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?pu(e,n,t):du(e,n,t)}function pu(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=cn));else if(4!==r&&null!==(e=e.child))for(pu(e,t,n),e=e.sibling;null!==e;)pu(e,t,n),e=e.sibling}function du(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(du(e,t,n),e=e.sibling;null!==e;)du(e,t,n),e=e.sibling}function hu(e,t,n){for(var r,o,i=t,u=!1;;){if(!u){u=i.return;e:for(;;){if(null===u)throw Error(a(160));switch(r=u.stateNode,u.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}u=u.return}u=!0}if(5===i.tag||6===i.tag){e:for(var c=e,s=i,l=n,f=s;;)if(cu(c,f,l),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===s)break e;for(;null===f.sibling;){if(null===f.return||f.return===s)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?(c=r,s=i.stateNode,8===c.nodeType?c.parentNode.removeChild(s):c.removeChild(s)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(cu(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(u=!1)}i.sibling.return=i.return,i=i.sibling}}function mu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void iu(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[kn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),on(e,o),t=on(e,r),o=0;o<i.length;o+=2){var u=i[o],c=i[o+1];"style"===u?tn(n,c):"dangerouslySetInnerHTML"===u?Le(n,c):"children"===u?Ue(n,c):Y(n,u,c,t)}switch(e){case"input":$e(n,r);break;case"textarea":Ce(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Pe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Pe(n,!!r.multiple,r.defaultValue,!0):Pe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Nt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Lu=Bo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=en("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void yu(t);case 19:return void yu(t)}throw Error(a(163))}function yu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new tu),t.forEach((function(t){var r=Ec.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var vu="function"==typeof WeakMap?WeakMap:Map;function gu(e,t,n){(n=li(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zu||(zu=!0,Fu=r),nu(e,t)},n}function bu(e,t,n){(n=li(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return nu(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Bu?Bu=new Set([this]):Bu.add(this),nu(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var wu,_u=Math.ceil,xu=Q.ReactCurrentDispatcher,Su=Q.ReactCurrentOwner,Eu=0,$u=3,Ou=4,ku=0,ju=null,Pu=null,Tu=0,Au=Eu,Cu=null,Iu=1073741823,Ru=1073741823,Nu=null,Du=0,Mu=!1,Lu=0,Uu=null,zu=!1,Fu=null,Bu=null,Vu=!1,Wu=null,qu=90,Ku=null,Hu=0,Zu=null,Gu=0;function Qu(){return 0!=(48&ku)?1073741821-(Bo()/10|0):0!==Gu?Gu:Gu=1073741821-(Bo()/10|0)}function Yu(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Vo();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&ku))return Tu;if(null!==n)e=Qo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Qo(e,150,100);break;case 97:case 96:e=Qo(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==ju&&e===Tu&&--e,e}function Ju(e,t){if(50<Hu)throw Hu=0,Zu=null,Error(a(185));if(null!==(e=Xu(e,t))){var n=Vo();1073741823===t?0!=(8&ku)&&0==(48&ku)?rc(e):(tc(e),0===ku&&Zo()):tc(e),0==(4&ku)||98!==n&&99!==n||(null===Ku?Ku=new Map([[e,t]]):(void 0===(n=Ku.get(e))||n>t)&&Ku.set(e,t))}}function Xu(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(ju===o&&(lc(t),Au===Ou&&Mc(o,Tu)),Lc(o,t)),o}function ec(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Dc(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function tc(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ho(rc.bind(null,e));else{var t=ec(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Qu();if(r=1073741823===t?99:1===t||2===t?95:0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==No&&Oo(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Ho(rc.bind(null,e)):Ko(r,nc.bind(null,e),{timeout:10*(1073741821-t)-Bo()}),e.callbackNode=t}}}function nc(e,t){if(Gu=0,t)return Uc(e,t=Qu()),tc(e),null;var n=ec(e);if(0!==n){if(t=e.callbackNode,0!=(48&ku))throw Error(a(327));if(bc(),e===ju&&n===Tu||ac(e,n),null!==Pu){var r=ku;ku|=16;for(var o=cc();;)try{pc();break}catch(t){uc(e,t)}if(ni(),ku=r,xu.current=o,1===Au)throw t=Cu,ac(e,n),Mc(e,n),tc(e),t;if(null===Pu)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Au,ju=null,r){case Eu:case 1:throw Error(a(345));case 2:Uc(e,2<n?2:n);break;case $u:if(Mc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=mc(o)),1073741823===Iu&&10<(o=Lu+500-Bo())){if(Mu){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,ac(e,n);break}}if(0!==(i=ec(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=_n(yc.bind(null,e),o);break}yc(e);break;case Ou:if(Mc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=mc(o)),Mu&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,ac(e,n);break}if(0!==(o=ec(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ru?r=10*(1073741821-Ru)-Bo():1073741823===Iu?r=0:(r=10*(1073741821-Iu)-5e3,0>(r=(o=Bo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_u(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=_n(yc.bind(null,e),r);break}yc(e);break;case 5:if(1073741823!==Iu&&null!==Nu){i=Iu;var u=Nu;if(0>=(r=0|u.busyMinDurationMs)?r=0:(o=0|u.busyDelayMs,r=(i=Bo()-(10*(1073741821-i)-(0|u.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Mc(e,n),e.timeoutHandle=_n(yc.bind(null,e),r);break}}yc(e);break;default:throw Error(a(329))}if(tc(e),e.callbackNode===t)return nc.bind(null,e)}}return null}function rc(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&ku))throw Error(a(327));if(bc(),e===ju&&t===Tu||ac(e,t),null!==Pu){var n=ku;ku|=16;for(var r=cc();;)try{fc();break}catch(t){uc(e,t)}if(ni(),ku=n,xu.current=r,1===Au)throw n=Cu,ac(e,t),Mc(e,t),tc(e),n;if(null!==Pu)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,ju=null,yc(e),tc(e)}return null}function oc(e,t){var n=ku;ku|=1;try{return e(t)}finally{0===(ku=n)&&Zo()}}function ic(e,t){var n=ku;ku&=-2,ku|=8;try{return e(t)}finally{0===(ku=n)&&Zo()}}function ac(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xn(n)),null!==Pu)for(n=Pu.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&bo();break;case 3:Ni(),lo(mo),lo(ho);break;case 5:Mi(r);break;case 4:Ni();break;case 13:case 19:lo(Li);break;case 10:ri(r)}n=n.return}ju=e,Pu=Tc(e.current,null),Tu=t,Au=Eu,Cu=null,Ru=Iu=1073741823,Nu=null,Du=0,Mu=!1}function uc(e,t){for(;;){try{if(ni(),Fi.current=ga,Hi)for(var n=Wi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Vi=0,Ki=qi=Wi=null,Hi=!1,null===Pu||null===Pu.return)return Au=1,Cu=t,Pu=null;e:{var o=e,i=Pu.return,a=Pu,u=t;if(t=Tu,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u;if(0==(2&a.mode)){var s=a.alternate;s?(a.updateQueue=s.updateQueue,a.memoizedState=s.memoizedState,a.expirationTime=s.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var l=0!=(1&Li.current),f=i;do{var p;if(p=13===f.tag){var d=f.memoizedState;if(null!==d)p=null!==d.dehydrated;else{var h=f.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!l)}}if(p){var m=f.updateQueue;if(null===m){var y=new Set;y.add(c),f.updateQueue=y}else m.add(c);if(0==(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=li(1073741823,null);v.tag=2,fi(a,v)}a.expirationTime=1073741823;break e}u=void 0,a=t;var g=o.pingCache;if(null===g?(g=o.pingCache=new vu,u=new Set,g.set(c,u)):void 0===(u=g.get(c))&&(u=new Set,g.set(c,u)),!u.has(a)){u.add(a);var b=Sc.bind(null,o,c,a);c.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);u=Error((ye(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==Au&&(Au=2),u=eu(u,a),f=i;do{switch(f.tag){case 3:c=u,f.effectTag|=4096,f.expirationTime=t,pi(f,gu(f,c,t));break e;case 1:c=u;var w=f.type,_=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===Bu||!Bu.has(_)))){f.effectTag|=4096,f.expirationTime=t,pi(f,bu(f,c,t));break e}}f=f.return}while(null!==f)}Pu=hc(Pu)}catch(e){t=e;continue}break}}function cc(){var e=xu.current;return xu.current=ga,null===e?ga:e}function sc(e,t){e<Iu&&2<e&&(Iu=e),null!==t&&e<Ru&&2<e&&(Ru=e,Nu=t)}function lc(e){e>Du&&(Du=e)}function fc(){for(;null!==Pu;)Pu=dc(Pu)}function pc(){for(;null!==Pu&&!Do();)Pu=dc(Pu)}function dc(e){var t=wu(e.alternate,e,Tu);return e.memoizedProps=e.pendingProps,null===t&&(t=hc(e)),Su.current=null,t}function hc(e){Pu=e;do{var t=Pu.alternate;if(e=Pu.return,0==(2048&Pu.effectTag)){if(t=Ja(t,Pu,Tu),1===Tu||1!==Pu.childExpirationTime){for(var n=0,r=Pu.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Pu.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Pu.firstEffect),null!==Pu.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Pu.firstEffect),e.lastEffect=Pu.lastEffect),1<Pu.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Pu:e.firstEffect=Pu,e.lastEffect=Pu))}else{if(null!==(t=Xa(Pu)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Pu.sibling))return t;Pu=e}while(null!==Pu);return Au===Eu&&(Au=5),null}function mc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function yc(e){var t=Vo();return qo(99,vc.bind(null,e,t)),null}function vc(e,t){do{bc()}while(null!==Wu);if(0!=(48&ku))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=mc(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ju&&(Pu=ju=null,Tu=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=ku;ku|=32,Su.current=null,vn=qt;var u=dn();if(hn(u)){if("selectionStart"in u)var c={start:u.selectionStart,end:u.selectionEnd};else e:{var s=(c=(c=u.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(s&&0!==s.rangeCount){c=s.anchorNode;var l=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{c.nodeType,f.nodeType}catch(e){c=null;break e}var p=0,d=-1,h=-1,m=0,y=0,v=u,g=null;t:for(;;){for(var b;v!==c||0!==l&&3!==v.nodeType||(d=p+l),v!==f||0!==s&&3!==v.nodeType||(h=p+s),3===v.nodeType&&(p+=v.nodeValue.length),null!==(b=v.firstChild);)g=v,v=b;for(;;){if(v===u)break t;if(g===c&&++m===l&&(d=p),g===f&&++y===s&&(h=p),null!==(b=v.nextSibling))break;g=(v=g).parentNode}v=b}c=-1===d||-1===h?null:{start:d,end:h}}else c=null}c=c||{start:0,end:0}}else c=null;gn={activeElementDetached:null,focusedElem:u,selectionRange:c},qt=!1,Uu=o;do{try{gc()}catch(e){if(null===Uu)throw Error(a(330));xc(Uu,e),Uu=Uu.nextEffect}}while(null!==Uu);Uu=o;do{try{for(u=e,c=t;null!==Uu;){var w=Uu.effectTag;if(16&w&&Ue(Uu.stateNode,""),128&w){var _=Uu.alternate;if(null!==_){var x=_.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&w){case 2:fu(Uu),Uu.effectTag&=-3;break;case 6:fu(Uu),Uu.effectTag&=-3,mu(Uu.alternate,Uu);break;case 1024:Uu.effectTag&=-1025;break;case 1028:Uu.effectTag&=-1025,mu(Uu.alternate,Uu);break;case 4:mu(Uu.alternate,Uu);break;case 8:hu(u,l=Uu,c),su(l)}Uu=Uu.nextEffect}}catch(e){if(null===Uu)throw Error(a(330));xc(Uu,e),Uu=Uu.nextEffect}}while(null!==Uu);if(x=gn,_=dn(),w=x.focusedElem,c=x.selectionRange,_!==w&&w&&w.ownerDocument&&pn(w.ownerDocument.documentElement,w)){null!==c&&hn(w)&&(_=c.start,void 0===(x=c.end)&&(x=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(x,w.value.length)):(x=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(x=x.getSelection(),l=w.textContent.length,u=Math.min(c.start,l),c=void 0===c.end?u:Math.min(c.end,l),!x.extend&&u>c&&(l=c,c=u,u=l),l=fn(w,u),f=fn(w,c),l&&f&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((_=_.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),u>c?(x.addRange(_),x.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),x.addRange(_))))),_=[];for(x=w;x=x.parentNode;)1===x.nodeType&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(x=_[w]).element.scrollLeft=x.left,x.element.scrollTop=x.top}qt=!!vn,gn=vn=null,e.current=n,Uu=o;do{try{for(w=e;null!==Uu;){var S=Uu.effectTag;if(36&S&&uu(w,Uu.alternate,Uu),128&S){_=void 0;var E=Uu.ref;if(null!==E){var $=Uu.stateNode;Uu.tag,_=$,"function"==typeof E?E(_):E.current=_}}Uu=Uu.nextEffect}}catch(e){if(null===Uu)throw Error(a(330));xc(Uu,e),Uu=Uu.nextEffect}}while(null!==Uu);Uu=null,Mo(),ku=i}else e.current=n;if(Vu)Vu=!1,Wu=e,qu=t;else for(Uu=o;null!==Uu;)t=Uu.nextEffect,Uu.nextEffect=null,Uu=t;if(0===(t=e.firstPendingTime)&&(Bu=null),1073741823===t?e===Zu?Hu++:(Hu=0,Zu=e):Hu=0,"function"==typeof $c&&$c(n.stateNode,r),tc(e),zu)throw zu=!1,e=Fu,Fu=null,e;return 0!=(8&ku)||Zo(),null}function gc(){for(;null!==Uu;){var e=Uu.effectTag;0!=(256&e)&&ou(Uu.alternate,Uu),0==(512&e)||Vu||(Vu=!0,Ko(97,(function(){return bc(),null}))),Uu=Uu.nextEffect}}function bc(){if(90!==qu){var e=97<qu?97:qu;return qu=90,qo(e,wc)}}function wc(){if(null===Wu)return!1;var e=Wu;if(Wu=null,0!=(48&ku))throw Error(a(331));var t=ku;for(ku|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:iu(5,n),au(5,n)}}catch(t){if(null===e)throw Error(a(330));xc(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return ku=t,Zo(),!0}function _c(e,t,n){fi(e,t=gu(e,t=eu(n,t),1073741823)),null!==(e=Xu(e,1073741823))&&tc(e)}function xc(e,t){if(3===e.tag)_c(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){_c(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Bu||!Bu.has(r))){fi(n,e=bu(n,e=eu(t,e),1073741823)),null!==(n=Xu(n,1073741823))&&tc(n);break}}n=n.return}}function Sc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),ju===e&&Tu===n?Au===Ou||Au===$u&&1073741823===Iu&&Bo()-Lu<500?ac(e,Tu):Mu=!0:Dc(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,tc(e)))}function Ec(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=Yu(t=Qu(),e,null)),null!==(e=Xu(e,t))&&tc(e)}wu=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||mo.current)Ca=!0;else{if(r<n){switch(Ca=!1,t.tag){case 3:Fa(t),Ta();break;case 5:if(Di(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:go(t.type)&&xo(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,fo(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ka(e,t,n):(fo(Li,1&Li.current),null!==(t=Qa(e,t,n))?t.sibling:null);fo(Li,1&Li.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ga(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),fo(Li,Li.current),!r)return null}return Qa(e,t,n)}Ca=!1}}else Ca=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=vo(t,ho.current),ii(t,n),o=Qi(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,go(r)){var i=!0;xo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ci(t);var u=r.getDerivedStateFromProps;"function"==typeof u&&vi(t,r,u,e),o.updater=gi,t.stateNode=o,o._reactInternalFiber=t,xi(t,r,e,n),t=za(null,t,r,!0,i,n)}else t.tag=0,Ia(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return Pc(e)?1:0;if(null!=e){if((e=e.$$typeof)===ce)return 11;if(e===fe)return 14}return 2}(o),e=Yo(o,e),i){case 0:t=La(null,t,o,e,n);break e;case 1:t=Ua(null,t,o,e,n);break e;case 11:t=Ra(null,t,o,e,n);break e;case 14:t=Na(null,t,o,Yo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,La(e,t,r,o=t.elementType===r?o:Yo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Yo(r,o),n);case 3:if(Fa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,si(e,t),di(t,r,null,n),(r=t.memoizedState.element)===o)Ta(),t=Qa(e,t,n);else{if((o=t.stateNode.hydrate)&&(Sa=Sn(t.stateNode.containerInfo.firstChild),xa=t,o=Ea=!0),o)for(n=ji(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ia(e,t,r,n),Ta();t=t.child}return t;case 5:return Di(t),null===e&&ka(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,u=o.children,wn(r,o)?u=null:null!==i&&wn(r,i)&&(t.effectTag|=16),Ma(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ia(e,t,u,n),t=t.child),t;case 6:return null===e&&ka(t),null;case 13:return Ka(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ki(t,null,r,n):Ia(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ra(e,t,r,o=t.elementType===r?o:Yo(r,o),n);case 7:return Ia(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ia(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,u=t.memoizedProps,i=o.value;var c=t.type._context;if(fo(Jo,c._currentValue),c._currentValue=i,null!==u)if(c=u.value,0==(i=Ur(c,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,i):1073741823))){if(u.children===o.children&&!mo.current){t=Qa(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var s=c.dependencies;if(null!==s){u=c.child;for(var l=s.firstContext;null!==l;){if(l.context===r&&0!=(l.observedBits&i)){1===c.tag&&((l=li(n,null)).tag=2,fi(c,l)),c.expirationTime<n&&(c.expirationTime=n),null!==(l=c.alternate)&&l.expirationTime<n&&(l.expirationTime=n),oi(c.return,n),s.expirationTime<n&&(s.expirationTime=n);break}l=l.next}}else u=10===c.tag&&c.type===t.type?null:c.child;if(null!==u)u.return=c;else for(u=c;null!==u;){if(u===t){u=null;break}if(null!==(c=u.sibling)){c.return=u.return,u=c;break}u=u.return}c=u}Ia(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ii(t,n),r=r(o=ai(o,i.unstable_observedBits)),t.effectTag|=1,Ia(e,t,r,n),t.child;case 14:return i=Yo(o=t.type,t.pendingProps),Na(e,t,o,i=Yo(o.type,i),r,n);case 15:return Da(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,go(r)?(e=!0,xo(t)):e=!1,ii(t,n),wi(t,r,o),xi(t,r,o,n),za(null,t,r,!0,e,n);case 19:return Ga(e,t,n)}throw Error(a(156,t.tag))};var $c=null,Oc=null;function kc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function jc(e,t,n,r){return new kc(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tc(e,t){var n=e.alternate;return null===n?((n=jc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ac(e,t,n,r,o,i){var u=2;if(r=e,"function"==typeof e)Pc(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case ne:return Cc(n.children,o,i,t);case ue:u=8,o|=7;break;case re:u=8,o|=1;break;case oe:return(e=jc(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case se:return(e=jc(13,n,t,o)).type=se,e.elementType=se,e.expirationTime=i,e;case le:return(e=jc(19,n,t,o)).elementType=le,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:u=10;break e;case ae:u=9;break e;case ce:u=11;break e;case fe:u=14;break e;case pe:u=16,r=null;break e;case de:u=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=jc(u,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Cc(e,t,n,r){return(e=jc(7,e,r,t)).expirationTime=n,e}function Ic(e,t,n){return(e=jc(6,e,null,t)).expirationTime=n,e}function Rc(e,t,n){return(t=jc(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nc(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Dc(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Mc(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Lc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Uc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function zc(e,t,n,r){var o=t.current,i=Qu(),u=mi.suspense;i=Yu(i,o,u);e:if(n){t:{if(Je(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(go(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var s=n.type;if(go(s)){n=_o(n,s,c);break e}}n=c}else n=po;return null===t.context?t.context=n:t.pendingContext=n,(t=li(i,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fi(o,t),Ju(o,i),i}function Fc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Bc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Vc(e,t){Bc(e,t),(e=e.alternate)&&Bc(e,t)}function Wc(e,t,n){var r=new Nc(e,t,n=null!=n&&!0===n.hydrate),o=jc(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ci(o),e[jn]=r.current,n&&0!==t&&function(e,t){var n=Ye(t);$t.forEach((function(e){dt(e,t,n)})),Ot.forEach((function(e){dt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Kc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var u=o;o=function(){var e=Fc(a);u.call(e)}}zc(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Wc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var c=o;o=function(){var e=Fc(a);c.call(e)}}ic((function(){zc(t,a,e,o)}))}return Fc(a)}function Hc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Zc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qc(t))throw Error(a(200));return Hc(e,t,null,n)}Wc.prototype.render=function(e){zc(e,this._internalRoot,null,null)},Wc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;zc(null,e,null,(function(){t[jn]=null}))},ht=function(e){if(13===e.tag){var t=Qo(Qu(),150,100);Ju(e,t),Vc(e,t)}},mt=function(e){13===e.tag&&(Ju(e,3),Vc(e,3))},yt=function(e){if(13===e.tag){var t=Qu();Ju(e,t=Yu(t,e,null)),Vc(e,t)}},j=function(e,t,n){switch(t){case"input":if($e(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Cn(r);if(!o)throw Error(a(90));_e(r),$e(r,o)}}}break;case"textarea":Ce(e,n);break;case"select":null!=(t=n.value)&&Pe(e,!!n.multiple,t,!1)}},R=oc,N=function(e,t,n,r,o){var i=ku;ku|=4;try{return qo(98,e.bind(null,t,n,r,o))}finally{0===(ku=i)&&Zo()}},D=function(){0==(49&ku)&&(function(){if(null!==Ku){var e=Ku;Ku=null,e.forEach((function(e,t){Uc(t,e),tc(t)})),Zo()}}(),bc())},M=function(e,t){var n=ku;ku|=2;try{return e(t)}finally{0===(ku=n)&&Zo()}};var Gc={Events:[Tn,An,Cn,O,S,Un,function(e){rt(e,Ln)},C,I,Qt,at,bc,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);$c=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Oc=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Pn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gc,t.createPortal=Zc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&ku))throw Error(a(187));var n=ku;ku|=1;try{return qo(99,e.bind(null,t))}finally{ku=n,Zo()}},t.hydrate=function(e,t,n){if(!qc(t))throw Error(a(200));return Kc(null,e,t,!0,n)},t.render=function(e,t,n){if(!qc(t))throw Error(a(200));return Kc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!qc(e))throw Error(a(40));return!!e._reactRootContainer&&(ic((function(){Kc(null,null,e,!1,(function(){e._reactRootContainer=null,e[jn]=null}))})),!0)},t.unstable_batchedUpdates=oc,t.unstable_createPortal=function(e,t){return Zc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qc(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Kc(e,t,n,!1,r)},t.version="16.14.0"},2788:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(3975)},8447:(e,t,n)=>{"use strict";var r=n(4516),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}function _(){}function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var S=x.prototype=new _;S.constructor=x,r(S,w.prototype),S.isPureReactComponent=!0;var E={current:null},$=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r,o={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)$.call(t,r)&&!O.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===o[r]&&(o[r]=c[r]);return{$$typeof:i,type:e,key:a,ref:u,props:o,_owner:E.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g,T=[];function A(e,t,n,r){if(T.length){var o=T.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function C(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>T.length&&T.push(e)}function I(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var u=!1;if(null===e)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return n(r,e,""===t?"."+N(e,0):t),1;if(u=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c<e.length;c++){var s=t+N(o=e[c],c);u+=I(o,s,n,r)}else if("function"==typeof(s=null===e||"object"!=typeof e?null:"function"==typeof(s=y&&e[y]||e["@@iterator"])?s:null))for(e=s.call(e),c=0;!(o=e.next()).done;)u+=I(o=o.value,s=t+N(o,c++),n,r);else if("object"===o)throw n=""+e,Error(v(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return u}function R(e,t,n){return null==e?0:I(e,"",t,n)}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function D(e,t){e.func.call(e.context,t,e.count++)}function M(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,(function(e){return e})):null!=e&&(j(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),R(e,M,t=A(t,i,r,o)),C(t)}var U={current:null};function z(){var e=U.current;if(null===e)throw Error(v(321));return e}var F={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,D,t=A(null,null,t,n)),C(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!j(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=u,t.Profiler=s,t.PureComponent=x,t.StrictMode=c,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var o=r({},e.props),a=e.key,u=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,c=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)$.call(t,l)&&!O.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){s=Array(l);for(var f=0;f<l;f++)s[f]=arguments[f+2];o.children=s}return{$$typeof:i,type:e.type,key:a,ref:u,props:o,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return z().useCallback(e,t)},t.useContext=function(e,t){return z().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return z().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return z().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return z().useLayoutEffect(e,t)},t.useMemo=function(e,t){return z().useMemo(e,t)},t.useReducer=function(e,t,n){return z().useReducer(e,t,n)},t.useRef=function(e){return z().useRef(e)},t.useState=function(e){return z().useState(e)},t.version="16.14.0"},2735:(e,t,n)=>{"use strict";e.exports=n(8447)},1602:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new j(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=$(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(P([])));_&&_!==n&&r.call(_,i)&&(b=_);var x=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,u){var c=l(e[o],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function $(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,$(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return v.prototype=g,c(x,"constructor",g),c(g,"constructor",v),v.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},S(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(x),c(x,u,"Generator"),c(x,i,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},1720:(e,t,n)=>{"use strict";n.d(t,{y:()=>l});var r=n(7811),o=n(9573),i=n(2412),a=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function u(e){return e}function c(e){return 0===e.length?u:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var s=n(5769),l=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var a=this.operator,u=function(e,t,n){if(e){if(e instanceof r.L)return e;if(e[o.b])return e[o.b]()}return e||t||n?new r.L(e,t,n):new r.L(i.c)}(e,t,n);if(a?u.add(a.call(u,this.source)):u.add(this.source||s.v.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),s.v.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){s.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&o instanceof r.L?o:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=f(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:c(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function f(e){if(e||(e=s.v.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},2412:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(5769),o=n(1450),i={closed:!0,next:function(e){},error:function(e){if(r.v.useDeprecatedSynchronousErrorHandling)throw e;(0,o.z)(e)},complete:function(){}}},7860:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>f});var r=n(7080),o=n(1720),i=n(7811),a=n(6462),u=n(7043),c=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.ZT(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(a.w),s=n(9573),l=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.ZT(t,e),t}(i.L),f=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.ZT(t,e),t.prototype[s.b]=function(){return new l(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new u.N;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new u.N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new u.N;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new u.N;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new u.N;return this.hasError?(e.error(this.thrownError),a.w.EMPTY):this.isStopped?(e.complete(),a.w.EMPTY):(this.observers.push(e),new c(this,e))},t.prototype.asObservable=function(){var e=new o.y;return e.source=this,e},t.create=function(e,t){return new p(e,t)},t}(o.y),p=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return r.ZT(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.w.EMPTY},t}(f)},7811:(e,t,n)=>{"use strict";n.d(t,{L:()=>l});var r=n(7080),o=n(9147),i=n(2412),a=n(6462),u=n(9573),c=n(5769),s=n(1450),l=function(e){function t(n,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.c;break;case 1:if(!n){a.destination=i.c;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,n,r,o)}return a}return r.ZT(t,e),t.prototype[u.b]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.w),f=function(e){function t(t,n,r,a){var u,c=e.call(this)||this;c._parentSubscriber=t;var s=c;return(0,o.m)(n)?u=n:n&&(u=n.next,r=n.error,a=n.complete,n!==i.c&&(s=Object.create(n),(0,o.m)(s.unsubscribe)&&c.add(s.unsubscribe.bind(s)),s.unsubscribe=c.unsubscribe.bind(c))),c._context=s,c._next=u,c._error=r,c._complete=a,c}return r.ZT(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;c.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=c.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):(0,s.z)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;(0,s.z)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};c.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),c.v.useDeprecatedSynchronousErrorHandling)throw e;(0,s.z)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!c.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return c.v.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):((0,s.z)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},6462:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var r=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}(),o=n(9147),i=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),a=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n,a=this,c=a._parentOrParents,s=a._ctorUnsubscribe,l=a._unsubscribe,f=a._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,c instanceof e)c.remove(this);else if(null!==c)for(var p=0;p<c.length;++p)c[p].remove(this);if((0,o.m)(l)){s&&(this._unsubscribe=void 0);try{l.call(this)}catch(e){t=e instanceof i?u(e.errors):[e]}}if(r(f)){p=-1;for(var d=f.length;++p<d;){var h=f[p];if(null!==(n=h)&&"object"==typeof n)try{h.unsubscribe()}catch(e){t=t||[],e instanceof i?t=t.concat(u(e.errors)):t.push(e)}}}if(t)throw new i(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function u(e){return e.reduce((function(e,t){return e.concat(t instanceof i?t.errors:t)}),[])}},5769:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},9573:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},7043:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},1450:(e,t,n)=>{"use strict";function r(e){setTimeout((function(){throw e}),0)}n.d(t,{z:()=>r})},9147:(e,t,n)=>{"use strict";function r(e){return"function"==typeof e}n.d(t,{m:()=>r})},7080:(e,t,n)=>{"use strict";n.d(t,{ZT:()=>o});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},9666:(e,t)=>{"use strict";var n,r,o,i,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,s=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(s,0),e}},l=Date.now();t.unstable_now=function(){return Date.now()-l},n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(s,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,p=window.Date,d=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var y=p.now();t.unstable_now=function(){return p.now()-y}}var v=!1,g=null,b=-1,w=5,_=0;i=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,S=x.port2;x.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+w;try{g(!0,e)?S.postMessage(null):(v=!1,g=null)}catch(e){throw S.postMessage(null),e}}else v=!1},n=function(e){g=e,v||(v=!0,S.postMessage(null))},r=function(e,n){b=d((function(){e(t.unstable_now())}),n)},o=function(){h(b),b=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<k(o,t)))break e;e[r]=t,e[n]=o,n=r}}function $(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],u=i+1,c=e[u];if(void 0!==a&&0>k(a,n))void 0!==c&&0>k(c,a)?(e[r]=c,e[u]=n,r=u):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>k(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var j=[],P=[],T=1,A=null,C=3,I=!1,R=!1,N=!1;function D(e){for(var t=$(P);null!==t;){if(null===t.callback)O(P);else{if(!(t.startTime<=e))break;O(P),t.sortIndex=t.expirationTime,E(j,t)}t=$(P)}}function M(e){if(N=!1,D(e),!R)if(null!==$(j))R=!0,n(L);else{var t=$(P);null!==t&&r(M,t.startTime-e)}}function L(e,n){R=!1,N&&(N=!1,o()),I=!0;var a=C;try{for(D(n),A=$(j);null!==A&&(!(A.expirationTime>n)||e&&!i());){var u=A.callback;if(null!==u){A.callback=null,C=A.priorityLevel;var c=u(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?A.callback=c:A===$(j)&&O(j),D(n)}else O(j);A=$(j)}if(null!==A)var s=!0;else{var l=$(P);null!==l&&r(M,l.startTime-n),s=!1}return s}finally{A=null,C=a,I=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||I||(R=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_getFirstCallbackNode=function(){return $(j)},t.unstable_next=function(e){switch(C){case 1:case 2:case 3:var t=3;break;default:t=C}var n=C;C=t;try{return e()}finally{C=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=C;C=e;try{return t()}finally{C=n}},t.unstable_scheduleCallback=function(e,i,a){var u=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?u+c:u,a="number"==typeof a.timeout?a.timeout:U(e)}else a=U(e),c=u;return e={id:T++,callback:i,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>u?(e.sortIndex=c,E(P,e),null===$(j)&&e===$(P)&&(N?o():N=!0,r(M,c-u))):(e.sortIndex=a,E(j,e),R||I||(R=!0,n(L))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();D(e);var n=$(j);return n!==A&&null!==A&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<A.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=C;return function(){var n=C;C=t;try{return e.apply(this,arguments)}finally{C=n}}}},9146:(e,t,n)=>{"use strict";e.exports=n(9666)},3710:(e,t,n)=>{"use strict";n.d(t,{BP:()=>B,UO:()=>oe});var r=Object.freeze({__proto__:null,get start(){return Ue},get ensureJQuerySupport(){return de},get setBootstrapMaxTime(){return H},get setMountMaxTime(){return Z},get setUnmountMaxTime(){return G},get setUnloadMaxTime(){return Q},get registerApplication(){return $e},get unregisterApplication(){return ke},get getMountedApps(){return xe},get getAppStatus(){return Ee},get unloadApplication(){return je},get checkActivityFunctions(){return Oe},get getAppNames(){return Se},get pathToActiveWhen(){return Ae},get navigateToUrl(){return oe},get triggerAppChange(){return Ne},get addErrorHandler(){return l},get removeErrorHandler(){return f},get mountRootParcel(){return B},get NOT_LOADED(){return h},get LOADING_SOURCE_CODE(){return m},get NOT_BOOTSTRAPPED(){return y},get BOOTSTRAPPING(){return v},get NOT_MOUNTED(){return g},get MOUNTING(){return b},get UPDATING(){return _},get LOAD_ERROR(){return S},get MOUNTED(){return w},get UNMOUNTING(){return x},get SKIP_BECAUSE_BROKEN(){return E}});function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).CustomEvent,u=function(){try{var e=new a("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?a:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},c=[];function s(e,t,n){var r=d(e,t,n);c.length?c.forEach((function(e){return e(r)})):setTimeout((function(){throw r}))}function l(e){if("function"!=typeof e)throw Error(p(28,!1));c.push(e)}function f(e){if("function"!=typeof e)throw Error(p(29,!1));var t=!1;return c=c.filter((function(n){var r=n===e;return t=t||r,!r})),t}function p(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(e,": ").concat(t?t+" ":"","See https://single-spa.js.org/error/?code=").concat(e).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function d(e,t,n){var r,o="".concat(P(t)," '").concat(k(t),"' died in status ").concat(t.status,": ");if(e instanceof Error){try{e.message=o+e.message}catch(e){}r=e}else{console.warn(p(30,!1,t.status,k(t)));try{r=Error(o+JSON.stringify(e))}catch(t){r=e}}return r.appOrParcelName=k(t),t.status=n,r}var h="NOT_LOADED",m="LOADING_SOURCE_CODE",y="NOT_BOOTSTRAPPED",v="BOOTSTRAPPING",g="NOT_MOUNTED",b="MOUNTING",w="MOUNTED",_="UPDATING",x="UNMOUNTING",S="LOAD_ERROR",E="SKIP_BECAUSE_BROKEN";function $(e){return e.status===w}function O(e){try{return e.activeWhen(window.location)}catch(t){return s(t,e,E),!1}}function k(e){return e.name}function j(e){return Boolean(e.unmountThisParcel)}function P(e){return j(e)?"parcel":"application"}function T(){for(var e=arguments.length-1;e>0;e--)for(var t in arguments[e])"__proto__"!==t&&(arguments[e-1][t]=arguments[e][t]);return arguments[0]}function A(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}function C(e){return e&&("function"==typeof e||(t=e,Array.isArray(t)&&!A(t,(function(e){return"function"!=typeof e}))));var t}function I(e,t){var n=e[t]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=P(e),o=k(e);return function(e){return n.reduce((function(n,i,a){return n.then((function(){var n=i(e);return R(n)?n:Promise.reject(p(15,!1,r,o,t,a))}))}),Promise.resolve())}}function R(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}function N(e,t){return Promise.resolve().then((function(){return e.status!==y?e:(e.status=v,e.bootstrap?Y(e,"bootstrap").then(n).catch((function(n){if(t)throw d(n,e,E);return s(n,e,E),e})):Promise.resolve().then(n))}));function n(){return e.status=g,e}}function D(e,t){return Promise.resolve().then((function(){if(e.status!==w)return e;e.status=x;var n=Object.keys(e.parcels).map((function(t){return e.parcels[t].unmountThisParcel()}));return Promise.all(n).then(r,(function(n){return r().then((function(){var r=Error(n.message);if(t)throw d(r,e,E);s(r,e,E)}))})).then((function(){return e}));function r(){return Y(e,"unmount").then((function(){e.status=g})).catch((function(n){if(t)throw d(n,e,E);s(n,e,E)}))}}))}var M=!1,L=!1;function U(e,t){return Promise.resolve().then((function(){return e.status!==g?e:(M||(window.dispatchEvent(new u("single-spa:before-first-mount")),M=!0),Y(e,"mount").then((function(){return e.status=w,L||(window.dispatchEvent(new u("single-spa:first-mount")),L=!0),e})).catch((function(n){return e.status=w,D(e,!0).then(r,r);function r(){if(t)throw d(n,e,E);return s(n,e,E),e}})))}))}var z=0,F={parcels:{}};function B(){return V.apply(F,arguments)}function V(e,t){var n=this;if(!e||"object"!==o(e)&&"function"!=typeof e)throw Error(p(2,!1));if(e.name&&"string"!=typeof e.name)throw Error(p(3,!1,o(e.name)));if("object"!==o(t))throw Error(p(4,!1,name,o(t)));if(!t.domElement)throw Error(p(5,!1,name));var r,i=z++,a="function"==typeof e,u=a?e:function(){return Promise.resolve(e)},c={id:i,parcels:{},status:a?m:y,customProps:t,parentName:k(n),unmountThisParcel:function(){return v.then((function(){if(c.status!==w)throw Error(p(6,!1,name,c.status));return D(c,!0)})).then((function(e){return c.parentName&&delete n.parcels[c.id],e})).then((function(e){return l(e),e})).catch((function(e){throw c.status=E,f(e),e}))}};n.parcels[i]=c;var s=u();if(!s||"function"!=typeof s.then)throw Error(p(7,!1));var l,f,h=(s=s.then((function(e){if(!e)throw Error(p(8,!1));var t=e.name||"parcel-".concat(i);if(Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!C(e.bootstrap))throw Error(p(9,!1,t));if(!C(e.mount))throw Error(p(10,!1,t));if(!C(e.unmount))throw Error(p(11,!1,t));if(e.update&&!C(e.update))throw Error(p(12,!1,t));var n=I(e,"bootstrap"),o=I(e,"mount"),a=I(e,"unmount");c.status=y,c.name=t,c.bootstrap=n,c.mount=o,c.unmount=a,c.timeouts=J(e.timeouts),e.update&&(c.update=I(e,"update"),r.update=function(e){return c.customProps=e,W(function(e){return Promise.resolve().then((function(){if(e.status!==w)throw Error(p(32,!1,k(e)));return e.status=_,Y(e,"update").then((function(){return e.status=w,e})).catch((function(t){throw d(t,e,E)}))}))}(c))})}))).then((function(){return N(c,!0)})),v=h.then((function(){return U(c,!0)})),b=new Promise((function(e,t){l=e,f=t}));return r={mount:function(){return W(Promise.resolve().then((function(){if(c.status!==g)throw Error(p(13,!1,name,c.status));return n.parcels[i]=c,U(c)})))},unmount:function(){return W(c.unmountThisParcel())},getStatus:function(){return c.status},loadPromise:W(s),bootstrapPromise:W(h),mountPromise:W(v),unmountPromise:W(b)}}function W(e){return e.then((function(){return null}))}function q(e){var t=k(e),n="function"==typeof e.customProps?e.customProps(t,window.location):e.customProps;("object"!==o(n)||null===n||Array.isArray(n))&&(n={},console.warn(p(40,!1),t,n));var i=T({},n,{name:t,mountParcel:V.bind(e),singleSpa:r});return j(e)&&(i.unmountSelf=e.unmountThisParcel),i}var K={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function H(e,t,n){if("number"!=typeof e||e<=0)throw Error(p(16,!1));K.bootstrap={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Z(e,t,n){if("number"!=typeof e||e<=0)throw Error(p(17,!1));K.mount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function G(e,t,n){if("number"!=typeof e||e<=0)throw Error(p(18,!1));K.unmount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Q(e,t,n){if("number"!=typeof e||e<=0)throw Error(p(19,!1));K.unload={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Y(e,t){var n=e.timeouts[t],r=n.warningMillis,o=P(e);return new Promise((function(i,a){var u=!1,c=!1;e[t](q(e)).then((function(e){u=!0,i(e)})).catch((function(e){u=!0,a(e)})),setTimeout((function(){return l(1)}),r),setTimeout((function(){return l(!0)}),n.millis);var s=p(31,!1,t,o,k(e),n.millis);function l(e){if(!u)if(!0===e)c=!0,n.dieOnTimeout?a(Error(s)):console.error(s);else if(!c){var t=e,o=t*r;console.warn(s),o+r<n.millis&&setTimeout((function(){return l(t+1)}),r)}}}))}function J(e){var t={};for(var n in K)t[n]=T({},K[n],e&&e[n]||{});return t}function X(e){return Promise.resolve().then((function(){return e.loadPromise?e.loadPromise:e.status!==h&&e.status!==S?e:(e.status=m,e.loadPromise=Promise.resolve().then((function(){var r=e.loadApp(q(e));if(!R(r))throw n=!0,Error(p(33,!1,k(e)));return r.then((function(n){var r;e.loadErrorTime=null,"object"!==o(t=n)&&(r=34),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!C(t.bootstrap)&&(r=35),C(t.mount)||(r=36),C(t.unmount)||(r=37);var i=P(t);if(r){var a;try{a=JSON.stringify(t)}catch(e){}return console.error(p(r,!1,i,k(e),a),t),s(void 0,e,E),e}return t.devtools&&t.devtools.overlays&&(e.devtools.overlays=T({},e.devtools.overlays,t.devtools.overlays)),e.status=y,e.bootstrap=I(t,"bootstrap"),e.mount=I(t,"mount"),e.unmount=I(t,"unmount"),e.unload=I(t,"unload"),e.timeouts=J(t.timeouts),delete e.loadPromise,e}))})).catch((function(t){var r;return delete e.loadPromise,n?r=E:(r=S,e.loadErrorTime=(new Date).getTime()),s(t,e,r),e})));var t,n}))}var ee,te="undefined"!=typeof window,ne={hashchange:[],popstate:[]},re=["hashchange","popstate"];function oe(e){var t;if("string"==typeof e)t=e;else if(this&&this.href)t=this.href;else{if(!(e&&e.currentTarget&&e.currentTarget.href&&e.preventDefault))throw Error(p(14,!1));t=e.currentTarget.href,e.preventDefault()}var n=fe(window.location.href),r=fe(t);0===t.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=t:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,t)}function ie(e){var t=this;if(e){var n=e[0].type;re.indexOf(n)>=0&&ne[n].forEach((function(n){try{n.apply(t,e)}catch(e){setTimeout((function(){throw e}))}}))}}function ae(){De([],arguments)}function ue(e,t){return function(){var n=window.location.href,r=e.apply(this,arguments),o=window.location.href;return ee&&n===o||(ze()?window.dispatchEvent(ce(window.history.state,t)):De([])),r}}function ce(e,t){var n;try{n=new PopStateEvent("popstate",{state:e})}catch(t){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,e)}return n.singleSpa=!0,n.singleSpaTrigger=t,n}if(te){window.addEventListener("hashchange",ae),window.addEventListener("popstate",ae);var se=window.addEventListener,le=window.removeEventListener;window.addEventListener=function(e,t){if(!("function"==typeof t&&re.indexOf(e)>=0)||A(ne[e],(function(e){return e===t})))return se.apply(this,arguments);ne[e].push(t)},window.removeEventListener=function(e,t){if(!("function"==typeof t&&re.indexOf(e)>=0))return le.apply(this,arguments);ne[e]=ne[e].filter((function(e){return e!==t}))},window.history.pushState=ue(window.history.pushState,"pushState"),window.history.replaceState=ue(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(p(41,!1)):window.singleSpaNavigate=oe}function fe(e){var t=document.createElement("a");return t.href=e,t}var pe=!1;function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(e||window.$&&window.$.fn&&window.$.fn.jquery&&(e=window.$),e&&!pe){var t=e.fn.on,n=e.fn.off;e.fn.on=function(e,n){return he.call(this,t,window.addEventListener,e,n,arguments)},e.fn.off=function(e,t){return he.call(this,n,window.removeEventListener,e,t,arguments)},pe=!0}}function he(e,t,n,r,o){return"string"!=typeof n?e.apply(this,o):(n.split(/\s+/).forEach((function(e){re.indexOf(e)>=0&&(t(e,r),n=n.replace(e,""))})),""===n.trim()?this:e.apply(this,o))}var me={};function ye(e){return Promise.resolve().then((function(){var t=me[k(e)];if(!t)return e;if(e.status===h)return ve(e,t),e;if("UNLOADING"===e.status)return t.promise.then((function(){return e}));if(e.status!==g&&e.status!==S)return e;var n=e.status===S?Promise.resolve():Y(e,"unload");return e.status="UNLOADING",n.then((function(){return ve(e,t),e})).catch((function(n){return function(e,t,n){delete me[k(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,s(n,e,E),t.reject(n)}(e,t,n),e}))}))}function ve(e,t){delete me[k(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,e.status=h,t.resolve()}function ge(e,t,n,r){me[k(e)]={app:e,resolve:n,reject:r},Object.defineProperty(me[k(e)],"promise",{get:t})}function be(e){return me[e]}var we=[];function _e(){var e=[],t=[],n=[],r=[],o=(new Date).getTime();return we.forEach((function(i){var a=i.status!==E&&O(i);switch(i.status){case S:a&&o-i.loadErrorTime>=200&&n.push(i);break;case h:case m:a&&n.push(i);break;case y:case g:!a&&be(k(i))?e.push(i):a&&r.push(i);break;case w:a||t.push(i)}})),{appsToUnload:e,appsToUnmount:t,appsToLoad:n,appsToMount:r}}function xe(){return we.filter($).map(k)}function Se(){return we.map(k)}function Ee(e){var t=A(we,(function(t){return k(t)===e}));return t?t.status:null}function $e(e,t,n,r){var i=function(e,t,n,r){var i,a={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===o(e)?(function(e){if(Array.isArray(e)||null===e)throw Error(p(39,!1));var t=["name","app","activeWhen","customProps"],n=Object.keys(e).reduce((function(e,n){return t.indexOf(n)>=0?e:e.concat(n)}),[]);if(0!==n.length)throw Error(p(38,!1,t.join(", "),n.join(", ")));if("string"!=typeof e.name||0===e.name.length)throw Error(p(20,!1));if("object"!==o(e.app)&&"function"!=typeof e.app)throw Error(p(20,!1));var r=function(e){return"string"==typeof e||"function"==typeof e};if(!(r(e.activeWhen)||Array.isArray(e.activeWhen)&&e.activeWhen.every(r)))throw Error(p(24,!1));if(!Te(e.customProps))throw Error(p(22,!1))}(e),a.name=e.name,a.loadApp=e.app,a.activeWhen=e.activeWhen,a.customProps=e.customProps):(function(e,t,n,r){if("string"!=typeof e||0===e.length)throw Error(p(20,!1));if(!t)throw Error(p(23,!1));if("function"!=typeof n)throw Error(p(24,!1));if(!Te(r))throw Error(p(22,!1))}(e,t,n,r),a.name=e,a.loadApp=t,a.activeWhen=n,a.customProps=r),a.loadApp="function"!=typeof(i=a.loadApp)?function(){return Promise.resolve(i)}:i,a.customProps=function(e){return e||{}}(a.customProps),a.activeWhen=function(e){var t=Array.isArray(e)?e:[e];return t=t.map((function(e){return"function"==typeof e?e:Ae(e)})),function(e){return t.some((function(t){return t(e)}))}}(a.activeWhen),a}(e,t,n,r);if(-1!==Se().indexOf(i.name))throw Error(p(21,!1,i.name));we.push(T({loadErrorTime:null,status:h,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},i)),te&&(de(),De())}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return we.filter((function(t){return t.activeWhen(e)})).map(k)}function ke(e){if(0===we.filter((function(t){return k(t)===e})).length)throw Error(p(25,!1,e));return je(e).then((function(){var t=we.map(k).indexOf(e);we.splice(t,1)}))}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof e)throw Error(p(26,!1));var n=A(we,(function(t){return k(t)===e}));if(!n)throw Error(p(27,!1,e));var r,o=be(k(n));if(t&&t.waitForUnmount){if(o)return o.promise;var i=new Promise((function(e,t){ge(n,(function(){return i}),e,t)}));return i}return o?(r=o.promise,Pe(n,o.resolve,o.reject)):r=new Promise((function(e,t){ge(n,(function(){return r}),e,t),Pe(n,e,t)})),r}function Pe(e,t,n){D(e).then(ye).then((function(){t(),setTimeout((function(){De()}))})).catch(n)}function Te(e){return!e||"function"==typeof e||"object"===o(e)&&null!==e&&!Array.isArray(e)}function Ae(e,t){var n=function(e,t){var n=0,r=!1,o="^";"/"!==e[0]&&(e="/"+e);for(var i=0;i<e.length;i++){var a=e[i];(!r&&":"===a||r&&"/"===a)&&u(i)}return u(e.length),new RegExp(o,"i");function u(i){var a=e.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===e.length)if(r)t&&(o+="$");else{var u=t?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}r=!r,n=i}}(e,t);return function(e){var t=e.origin;t||(t="".concat(e.protocol,"//").concat(e.host));var r=e.href.replace(t,"").replace(e.search,"").split("?")[0];return n.test(r)}}var Ce=!1,Ie=[],Re=te&&window.location.href;function Ne(){return De()}function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(Ce)return new Promise((function(e,n){Ie.push({resolve:e,reject:n,eventArguments:t})}));var n,r=_e(),o=r.appsToUnload,a=r.appsToUnmount,c=r.appsToLoad,s=r.appsToMount,l=!1,f=Re,p=Re=window.location.href;return ze()?(Ce=!0,n=o.concat(c,a,s),y()):(n=c,m());function d(){l=!0}function m(){return Promise.resolve().then((function(){var e=c.map(X);return Promise.all(e).then(b).then((function(){return[]})).catch((function(e){throw b(),e}))}))}function y(){return Promise.resolve().then((function(){if(window.dispatchEvent(new u(0===n.length?"single-spa:before-no-app-change":"single-spa:before-app-change",_(!0))),window.dispatchEvent(new u("single-spa:before-routing-event",_(!0,{cancelNavigation:d}))),l)return window.dispatchEvent(new u("single-spa:before-mount-routing-event",_(!0))),v(),void oe(f);var t=o.map(ye),r=a.map(D).map((function(e){return e.then(ye)})).concat(t),i=Promise.all(r);i.then((function(){window.dispatchEvent(new u("single-spa:before-mount-routing-event",_(!0)))}));var p=c.map((function(e){return X(e).then((function(e){return Me(e,i)}))})),h=s.filter((function(e){return c.indexOf(e)<0})).map((function(e){return Me(e,i)}));return i.catch((function(e){throw b(),e})).then((function(){return b(),Promise.all(p.concat(h)).catch((function(t){throw e.forEach((function(e){return e.reject(t)})),t})).then(v)}))}))}function v(){var t=xe();e.forEach((function(e){return e.resolve(t)}));try{var r=0===n.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new u(r,_())),window.dispatchEvent(new u("single-spa:routing-event",_()))}catch(e){setTimeout((function(){throw e}))}if(Ce=!1,Ie.length>0){var o=Ie;Ie=[],De(o)}return t}function b(){e.forEach((function(e){ie(e.eventArguments)})),ie(t)}function _(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],u=arguments.length>1?arguments[1]:void 0,d={},m=(i(e={},w,[]),i(e,g,[]),i(e,h,[]),i(e,E,[]),e);r?(c.concat(s).forEach((function(e,t){v(e,w)})),o.forEach((function(e){v(e,h)})),a.forEach((function(e){v(e,g)}))):n.forEach((function(e){v(e)}));var y={detail:{newAppStatuses:d,appsByNewStatus:m,totalAppChanges:n.length,originalEvent:null==t?void 0:t[0],oldUrl:f,newUrl:p,navigationIsCanceled:l}};return u&&T(y.detail,u),y;function v(e,t){var n=k(e);t=t||Ee(n),d[n]=t,(m[t]=m[t]||[]).push(n)}}}function Me(e,t){return O(e)?N(e).then((function(e){return t.then((function(){return O(e)?U(e):e}))})):t.then((function(){return e}))}var Le=!1;function Ue(e){var t;Le=!0,e&&e.urlRerouteOnly&&(t=e.urlRerouteOnly,ee=t),te&&De()}function ze(){return Le}te&&setTimeout((function(){Le||console.warn(p(1,!1))}),5e3);var Fe={getRawAppData:function(){return[].concat(we)},reroute:De,NOT_LOADED:h,toLoadPromise:X,toBootstrapPromise:N,unregisterApplication:ke};te&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=Fe)},487:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],u=0;u<e.length;u++){var c=e[u],s=r.base?c[0]+r.base:c[0],l=i[s]||0,f="".concat(s," ").concat(l);i[s]=l+1;var p=n(f),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var h=o(d,r);r.byIndex=u,t.splice(u,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var u=n(i[a]);t[u].references--}for(var c=r(e,o),s=0;s<i.length;s++){var l=n(i[s]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=c}}},2052:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},1469:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},4010:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},631:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9329:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},7641:(e,t,n)=>{function r(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var o=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};System.register(["@openmrs/esm-config","@openmrs/esm-error-handling"],(function(e,t){var i={},a={};return{setters:[function(e){i.Type=e.Type,i.defineConfigSchema=e.defineConfigSchema,i.getConfig=e.getConfig,i.navigate=e.navigate,i.validators=e.validators},function(e){a.reportError=e.reportError}],execute:function(){e(function(){var e={672:function(e,t){var n,r,o;r=t,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",((n=function(e){this.message=e}).prototype=new Error).name="InvalidCharacterError",r.btoa||(r.btoa=function(e){for(var t,r,i=String(e),a=0,u=o,c="";i.charAt(0|a)||(u="=",a%1);c+=u.charAt(63&t>>8-a%1*8)){if((r=i.charCodeAt(a+=3/4))>255)throw new n("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|r}return c}),r.atob||(r.atob=function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,a=0,u=0,c="";i=t.charAt(u++);~i&&(r=a%4?64*r+i:i,a++%4)?c+=String.fromCharCode(255&r>>(-2*a&6)):0)i=o.indexOf(i);return c})},525:function(e){(function(){var t,n,r=function(e,r,o,i){n.defer(),t.search(e).then((function(e){a(e,r).then((function(){o()}),(function(e){i(e)}))}),(function(e){i(e)}))},o=function(e){var t=n.defer(),o=[];return r(e,(function(e){e.forEach((function(e){o.push(e)}))}),(function(){t.resolve(o)}),(function(e){t.reject(e)})),t.promise},i=function(e,r){var o=n.defer();return t.search(e).then((function(e){var n={},i=[function(){o.resolve(e,n)}];function a(){i.pop()()}var u=e.data;u.entry&&u.entry.forEach((function(e){var o=e.resource,c=o.resourceType;r&&r.forEach((function(e){var r,s,l,f=e.split("."),p=f[0],d=f[1],h=o[d];if(c===p&&h){var m=h.reference;n[m]||(r=u,s=o,l=h,i.push((function(){!function(e,r,o){var i=o.reference;t.resolve({bundle:e,resource:r,reference:o}).then((function(e){var t=e.data||e.content;n[i]=t,a()}))}(r,s,l)})))}}))})),a()}),(function(){o.reject("Could not fetch search results")})),o.promise};function a(e,r){var o,i=e.data.entry||[],u=[];for(o=0;o<i.length;o++)u.push(i[o].resource);r(u);var c=n.defer();return t.nextPage({bundle:e.data}).then((function(e){a(e,r).then((function(e){c.resolve()}))}),(function(e){c.resolve()})),c.promise}e.exports=function(e,a){return t=e,n=a,e.drain=r,e.fetchAll=o,e.fetchAllWithReferences=i,e}}).call(this)},256:function(e,t,n){(function(){n(454);var t=n(801),r=n(921),o=n(294),i=n(821),a=n(442),u=n(856),c=n(719),s=n(29),l=n(723),f=n(249),p=n(525);e.exports=function(e,n){var d=t.Middleware,h=t.$$Attr,m=function(e){return h("method",e)},y=function(e,t){return h("headers."+e,t)},v=d(a),g=d(u(e,n)).and(v).and(o.$Basic).and(o.$Bearer).and(o.$Credentials).and(i.$JsonData).and(y("Accept",e.headers&&e.headers.Accept?e.headers.Accept:"application/json")).and(y("Content-Type",e.headers&&e.headers["Content-Type"]?e.headers["Content-Type"]:"application/json")),b=g.and(m("GET")),w=g.and(m("POST")),_=g.and(m("PUT")),x=g.and(m("DELETE")),S=g.and(m("PATCH")),E=i.Http(e,n),$=f.Path,O=$(e.baseUrl),k=O.slash(":type || :resource.resourceType"),j=k.slash("_history"),P=k.slash(":id || :resource.id"),T=P.slash("_history"),A=P.slash(":versionId || :resource.meta.versionId"),C=O.slash(":target.resourceType || :target.type").slash(":target.id").slash(":target.versionId"),I=y("Prefer","return=representation"),R=d(r.$Paging);return p({conformance:b.and(O.slash("metadata")).end(E),document:w.and(O.slash("Document")).end(E),profile:b.and(O.slash("Profile").slash(":type")).end(E),transaction:w.and(O).end(E),history:b.and(O.slash("_history")).and(R).end(E),typeHistory:b.and(j).and(R).end(E),resourceHistory:b.and(T).and(R).end(E),read:b.and(s.$WithPatient).and(P).end(E),vread:b.and(A).end(E),delete:x.and(P).and(I).end(E),create:w.and(k).and(I).end(E),validate:w.and(k.slash("_validate")).end(E),meta:{add:w.and(C.slash("$meta-add")).end(E),delete:w.and(C.slash("$meta-delete")).end(E),read:b.and(C.slash("$meta")).end(E)},search:b.and(k).and(s.$WithPatient).and(r.$SearchParams).and(R).end(E),update:_.and(P).and(I).end(E),conditionalUpdate:_.and(k).and(r.$SearchParams).and(I).end(E),conditionalDelete:x.and(k).and(r.$SearchParams).and(I).end(E),nextPage:b.and(c.$$BundleLinkUrl("next")).end(E),prevPage:b.and(c.$$BundleLinkUrl("previous")).and(c.$$BundleLinkUrl("prev")).end(E),getBundleByUrl:b.and($(":url")).end(E),resolve:b.and(l.resolve).end(E),patch:S.and(P).and(y("Content-Type","application/json-patch+json")).end(E)},n)}}).call(this)},294:function(e,t,n){(function(){var e,r=n(801),o=n(672).btoa;t.$Basic=r.$$Attr("headers.Authorization",(function(e){if(e.auth&&e.auth.user&&e.auth.pass)return"Basic "+o(e.auth.user+":"+e.auth.pass)})),t.$Bearer=r.$$Attr("headers.Authorization",(function(e){if(e.auth&&e.auth.bearer)return"Bearer "+e.auth.bearer})),t.$Credentials=r.Middleware(r.$$Attr("credentials",(function(t){return e=t.credentials,""}))).and(r.$$Attr("credentials",(function(t){if(["same-origin","include"].indexOf(e)>-1)return e})))}).call(this)},719:function(e,t){t.$$BundleLinkUrl=function(e){return function(t){return function(n){var r=n.bundle&&(n.bundle.link||[]).filter((function(t){return t.relation&&t.relation===e}))[0];return r&&r.url&&(n.url=r.url,n.data=null),t(n)}}}},856:function(e){(function(){var t=function(e,t,n){var r=e[n];return r&&!t[n]&&(t[n]=r),e};e.exports=function(e,n){return function(r){return function(o){return t(e,o,"baseUrl"),t(e,o,"cache"),t(e,o,"auth"),t(e,o,"patient"),t(e,o,"debug"),t(e,o,"credentials"),t(e,o,"headers"),t(e,o,"agentOptions"),t(n,o,"defer"),t(n,o,"http"),r(o)}}}}).call(this)},801:function(e,t,n){(function(){var e=n(454),r=function(e){return e.and=function(t){return r((n=e,o=t,function(e){return n(o(e))}));var n,o},e.end=function(t){return e(t)},e};t.$$Simple=function(e){return function(t){return function(n){return t(e(n))}}},t.$$Attr=function(t,n){return r((function(r){return function(o){var i;return i="function"==e.type(n)?n(o):n,r(null==i&&null==i?o:function(e,t,n){for(var r=t.split("."),o=e,i=0;i<r.length-1;i++){var a=r[i];(o=e[a])||(o={},e[a]=o)}return o[r[r.length-1]]=n,e}(o,t,i))}}))};var o=function(e,t){return r((function(n){return function(r){return r[e]=t(r),n(r)}}))};t.Middleware=r,t.Attribute=o,t.Method=function(e){return o("method",(t=e,function(){return t}));var t}}).call(this)},442:function(e){e.exports=function(e){return function(t){try{return e(t)}catch(e){if(t.debug&&(console.log("\nDEBUG: (ERROR in middleware)"),console.log(e.message),console.log(e.stack)),!t.defer)throw console.log("\nDEBUG: (ERROR in middleware)"),console.log(e.message),console.log(e.stack),new Error("I need adapter.defer");var n=t.defer();return n.reject(e),n.promise}}}},821:function(e,t,n){(function(){var e=n(454);t.Http=function(e,t){return function(n){n.debug&&console.log("\nDEBUG (request):",n.method,n.url,n);var r=(n.http||t.http||e.http)(n);return n.debug&&r&&r.then&&r.then((function(e){console.log("\nDEBUG: (responce)",e)})),r}},t.$JsonData=function(t){return function(n){var r,o=n.bundle||n.data||n.resource;return o&&(n.data=(r=o,"object"==e.type(r)||"array"==e.type(r)?JSON.stringify(r):r)),t(n)}}}).call(this)},29:function(e,t,n){(function(){var e=n(801),r=["Account","AllergyIntolerance","BodySite","CarePlan","Claim","ClinicalImpression","Communication","CommunicationRequest","Composition","Condition","Contract","DetectedIssue","Device","DeviceUseRequest","DeviceUseStatement","DiagnosticOrder","DiagnosticReport","DocumentManifest","DocumentReference","Encounter","EnrollmentRequest","EpisodeOfCare","FamilyMemberHistory","Flag","Goal","ImagingObjectSelection","ImagingStudy","Immunization","ImmunizationRecommendation","List","Media","MedicationAdministration","MedicationDispense","MedicationOrder","MedicationStatement","NutritionOrder","Observation","Order","Procedure","ProcedureRequest","QuestionnaireResponse","ReferralRequest","RelatedPerson","RiskAssessment","Specimen","SupplyDelivery","SupplyRequest","VisionPrescription"];t.$WithPatient=e.$$Simple((function(e){var t=e.type;return e.patient&&("Patient"===t?(e.query=e.query||{},e.query._id=e.patient,e.id=e.patient):r.indexOf(t)>=0&&(e.query=e.query||{},e.query.patient=e.patient)),e}))}).call(this)},723:function(e,t,n){(function(){var t=n(454),r=/^#(.*)/,o=function(e){var n,o,i,a,u=e.cache,c=e.reference,s=e.bundle,l=c;if(!l.reference)return null;if(l.reference.match(r))return n=l.reference,o=e.resource,i=n.match(r)[1],(a=(o.contained||[]).filter((function(e){return(e.id||e._id)==i}))[0])&&{content:a}||null;var f=t.absoluteUrl(e.baseUrl,l.reference);return(s&&s.entry||[]).filter((function(e){return e.id===f}))[0]||(null!=u?u[f]:void 0)||null};e.exports.sync=o,e.exports.resolve=function(e){return function(n){var i=o(n),a=n.reference,u=n.defer();if(i){if(!n.defer)throw new Error("I need promise constructor 'adapter.defer' in adapter");return u.resolve(i),u.promise}if(!a)throw new Error("No reference found");if(a&&a.reference.match(r))throw new Error("Contained resource not found");return n.url=t.absoluteUrl(n.baseUrl,a.reference),n.data=null,e(n)}}}).call(this)},921:function(e,t,n){(function(){var e=n(454),r=e.type,o=e.assertArray,i=(e.assertObject,e.reduceMap),a=e.identity,u={$gt:"gt",$lt:"lt",$lte:"lte",$gte:"gte",$ge:"ge",$le:"le"},c={$asc:":asc",$desc:":desc",$exact:":exact",$missing:":missing",$null:":missing",$text:":text"},s=function(e,t){if("$sort"===e)return function(e){var t,n,i,a;for(o(e),i=[],t=0,n=e.length;t<n;t++)switch(a=e[t],r(a)){case"array":i.push({param:"_sort",value:a[0],modifier:":"+a[1]});break;case"string":i.push({param:"_sort",value:a});break;default:i.push(void 0)}return i}(t);if("$has"===e)return i(t,(function(e,t){var n,o;return n=t[0],o=t[1],e.concat(function(){switch(r(o)){case"array":return o.map((function(e){return{param:"_has",value:n+"="+e}}));case"string":return[{param:"_has",value:n+"="+o}]}}())}));if("$include"===e||"$revInclude"===e)return n=e,i(t,(function(e,t){var o,i;return o=t[0],i=t[1],e.concat(function(){switch(r(i)){case"array":return i.map((function(e){return{param:"$include"===n?"_include":"_revinclude",value:o+":"+e}}));case"string":return[{param:"$include"===n?"_include":"_revinclude",value:o+":"+i}]}}())}));var n,a,l;switch(r(t)){case"object":return a=e,i(l=t,(function(e,t){var n,i,f,p;return n=t[0],p=t[1],e.concat("$and"===n?o(p).reduce((function(e,t){return e.concat(s(a,t))}),[]):"$type"===n?[]:0===n.indexOf("$")?(i={param:a},"$or"===n?i.value=p:(u[n]&&(i.operator=u[n]),c[n]&&(i.modifier=c[n]),"object"===r(p)&&p.$or?i.value=p.$or:i.value=[p]),[i]):(l.$type&&(f=":"+l.$type),s(""+a+(f||"")+"."+n,p)))}));case"string":case"number":return[{param:e,value:[t]}];case"array":return[{param:e,value:[t.join("|")]}];default:throw"could not linearizeParams "+r(t)}},l=function(e){return i(e,(function(e,t){var n,r;return n=t[0],r=t[1],e.concat(s(n,r))}))},f=function(e){var t,n,r=["_include","_revinclude","_has"];return function(){var o,i,u,c;for(c=[],o=0,i=(u=l(e)).length;o<i;o++)t=u[o],n=-1===r.indexOf(t.param)?encodeURIComponent(t.value):t.value,c.push([t.param,t.modifier,"_has"==t.param?":":"=",t.operator,n].filter(a).join(""));return c}().join("&")};t._query=l,t.query=f;var p=n(801);t.$SearchParams=p.$$Attr("url",(function(e){var t=e.url;return e.query?t+"?"+f(e.query):t})),t.$Paging=function(e){return function(t){var n=t.params||{};return t.since&&(n._since=t.since),t.count&&(n._count=t.count),t.params=n,e(t)}}}).call(this)},249:function(e,t,n){(function(){n(454);var e=n(801),r=function(t,n){var o=function(e){return n&&t.includes("target.versionId")&&!e.target.versionId?n(e):(n&&n(e)+"/"||"")+function(e,t){var n,r,o=(r=t,0==(n=e.trim()).indexOf(":")?function(e,t){for(var n,r=e.split("||").map((function(e){return e.trim().substring(1)})),o=0;o<r.length;o++){var i=(n=t,r[o].split(".").reduce((function(e,t){return"versionId"===t&&e[t]?"_history/"+e[t]:null==e||null==e?null:e[t]}),n));if(i)return i}return null}(n,r):n);if((null==o||void 0===o)&&0==e.includes("target.versionId"))throw new Error("Parameter "+e+" is required: "+JSON.stringify(t));return o}(t,e)},i=e.Attribute("url",o);return i.slash=function(e){return r(e,o)},i};t.Path=r}).call(this)},454:function(e,t,n){(function(){var e=n(651),r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;t.trim=function(e){return e?e.toString().replace(r,""):""};var o=function(e){return null==e&&void 0===e?String(e):{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"}[Object.prototype.toString.call(e)]};t.type=o,t.assertArray=function(e){if("array"!==o(e))throw"not array";return e};var i=function(e){if("object"!==o(e))throw"not object";return e};t.assertObject=i;var a=function(e,t,n){var r,o;return n||(n=[]),i(e),function(){var t;for(r in t=[],e)o=e[r],t.push([r,o]);return t}().reduce(t,n)};t.reduceMap=a,t.identity=function(e){return e};var u=function(){return Array.prototype.slice.call(arguments)};t.argsArray=u,t.mergeLists=function(){var t;return t=function(t,n){var r,o,i;for(r in o=e(!0,t),n)i=n[r],o[r]=(o[r]||[]).concat(i);return o},u.apply(null,arguments).reduce(t,{})},t.absoluteUrl=function(e,t){return t.match(/https?:\/\/./)?t:e+"/"+t},t.relativeUrl=function(e,t){return t.slice(t,e.length+1)===e+"/"?t.slice(e.length+1):t},t.resourceIdToUrl=function(e,t,n){return t=t.replace(/\/$/,""),(e=e.replace(/^\//,"")).indexOf("/")<0?t+"/"+n+"/"+e:0!==e.indexOf(t)?t+"/"+e:e};var c=function(e,t,n,r){var i;switch(o(n)){case"array":return t(n.map((function(t){return e(t,[n,r])})),r);case"object":return i=function(t,o){var i,a;return i=o[0],a=o[1],t[i]=e(a,[n].concat(r)),t},t(a(n,i,{}),r);default:return t(n,r)}};t.walk=c;var s=function(e,t,n){return t?c(s(e),e,t,n):function(t,n){return s(e,t,n)}};t.postwalk=s}).call(this)},651:function(e,t,n){!function(t){var n=function(e,t,n){var a=n[0],u=n.length;(e||"object"!==r(a))&&(a={});for(var c=0;c<u;++c){var s=n[c];if("object"===r(s))for(var l in s)if("__proto__"!==l){var f=e?o.clone(s[l]):s[l];a[l]=t?i(a[l],f):f}}return a},r=function(e){return{}.toString.call(e).slice(8,-1).toLowerCase()},o=function(e){return n(!0===e,!1,arguments)};function i(e,t){if("object"!==r(e))return t;for(var n in t)"object"===r(e[n])&&"object"===r(t[n])?e[n]=i(e[n],t[n]):e[n]=t[n];return e}o.recursive=function(e){return n(!0===e,!0,arguments)},o.clone=function(e){var t,n,i=e,a=r(e);if("array"===a)for(i=[],n=e.length,t=0;t<n;++t)i[t]=o.clone(e[t]);else if("object"===a)for(t in i={},e)i[t]=o.clone(e[t]);return i},t?e.exports=o:window.merge=o}((e=n.nmd(e))&&"object"==typeof e.exports&&e.exports)},602:function(e){var t=function(e){"use strict";var t,n=function(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]},o=function(e,t,n,o){var u,c,s,l,f=t&&r(t.prototype,a)?t:a,p=Object.create(f.prototype),h=new d(o||[]);return p._invoke=(u=e,c=n,s=h,l=x,function(e,t){if(l===E)throw new Error("Generator is already running");if(l===$){if("throw"===e)throw t;return m()}for(s.method=e,s.arg=t;;){var n=s.delegate;if(n){var r=A(n,s);if(r){if(r===O)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===x)throw l=$,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=E;var o=i(u,c,s);if("normal"===o.type){if(l=s.done?$:S,o.arg===O)continue;return{value:o.arg,done:s.done}}"throw"===o.type&&(l=$,s.method="throw",s.arg=o.arg)}}),p},i=function(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}},a=function(){},u=function(){},c=function(){},s=function(e){["next","throw","return"].forEach((function(t){n(e,t,(function(e){return this._invoke(t,e)}))}))},l=function(e,t){function n(r,o,a,u){var c=i(e[r],e,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&v.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var r;this._invoke=function(e,o){function i(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(i,i):i()}},f=function(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)},p=function(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t},d=function(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)},h=function(e){if(e){var n=e[b];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(v.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:m}},m=function(){return{value:t,done:!0}},y=Object.prototype,v=y.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},b=g.iterator||"@@iterator",w=g.asyncIterator||"@@asyncIterator",_=g.toStringTag||"@@toStringTag";try{n({},"")}catch(e){n=function(e,t,n){return e[t]=n}}e.wrap=o;var x="suspendedStart",S="suspendedYield",E="executing",$="completed",O={},k={};n(k,b,(function(){return this}));var j=Object.getPrototypeOf,P=j&&j(j(h([])));P&&P!==y&&v.call(P,b)&&(k=P);var T=c.prototype=a.prototype=Object.create(k);function A(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method))return O;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var o=i(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,O;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,O):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,O)}return u.prototype=c,n(T,"constructor",c),n(c,"constructor",u),u.displayName=n(c,_,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===u||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,n(e,_,"GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},s(l.prototype),n(l.prototype,w,(function(){return this})),e.AsyncIterator=l,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var u=new l(o(t,n,r,i),a);return e.isGeneratorFunction(n)?u:u.next().then((function(e){return e.done?e.value:u.next()}))},s(T),n(T,_,"Generator"),n(T,b,(function(){return this})),n(T,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=h,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(p),!e)for(var n in this)"t"===n.charAt(0)&&v.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){var n=function(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o};if(this.done)throw e;for(var r=this,o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=v.call(i,"catchLoc"),c=v.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,O):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),O},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),O}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:h(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),O}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},385:function(){System.register([],(function(e,t){return{execute:function(){e(function(){var e={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.y=t,r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}();var o={};return(0,r(968).s)(1),function(){"use strict";var e=function(e,t){for(var n in t)e[n]=t[n];return e},t=function(t){var n=function(e){for(var t=[],n=0;n<o.length;n++)o[n]===e?e=null:t.push(o[n]);o=t},r=function(n,r,i){t=r?n:e(e({},t),n);for(var a=o,u=0;u<a.length;u++)a[u](t,i)},o=[];return t=t||{},{action:function(e){var n=function(t){r(t,!1,e)};return function(){for(var r=arguments,o=[t],i=0;i<arguments.length;i++)o.push(r[i]);var a=e.apply(this,o);if(null!=a)return a.then?a.then(n):n(a)}},setState:r,subscribe:function(e){return o.push(e),function(){n(e)}},unsubscribe:n,getState:function(){return t}}},n=function(e,n){var r=s[e];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=t(n);return s[e]={value:o,active:!0},o},i=function(e,n){var r=s[e];if(!r){var o=t(n);return s[e]={value:o,active:!1},o}return r.value},a=function(e){return n("app",e)},u=function(){return i("app",{})},c=function(e,t,n){var r=t(e.getState());return e.subscribe((function(e){var o=t(e);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return a},createGlobalStore:function(){return n},getAppState:function(){return u},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},824:function(e){"use strict";e.exports=i},254:function(e){"use strict";e.exports=a}},u={};function c(t){var n=u[t];if(void 0!==n)return n.exports;var r=u[t]={id:t,loaded:!1,exports:{}};return e[t].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}c.y=t,c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},c.d=function(e,t){for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;c.g.importScripts&&(e=c.g.location+"");var t=c.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=e}();var s={};return(0,c(968).s)(1),function(){"use strict";var e=function(e,t){function n(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(e){return"function"==typeof e},i=function(e){setTimeout((function(){throw e}),0)},a=function(e){return e.reduce((function(e,t){return e.concat(r(t,X)?t.errors:t)}),[])},u=function(e){return e},l=function(e){return 0===e.length?u:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}},f=function(e){if(e||(e=Q.Promise||Promise),!e)throw new Error("no Promise impl found");return e},p=function(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)},d=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,u,"next",e)}function u(e){p(i,r,o,a,u,"throw",e)}a(void 0)}))}},h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}},m=function(e,t){return!t||"object"!==Oe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t},y=function(e){return window.openmrsBase+e},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof t)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");var n=y(e);t.headers||(t.headers={}),_e(t.body)&&(t.body=JSON.stringify(t.body)),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),null===t.headers.Accept&&delete t.headers.Accept;var r,o=Error();return window.fetch(n,t).then((r=d(H().mark((function e(t){var r,i;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=t).ok){e.next=10;break}if(204!==r.status){e.next=7;break}return r.data=null,e.abrupt("return",r);case 7:return e.abrupt("return",r.text().then((function(e){try{e&&(r.data=JSON.parse(e))}catch(e){}return r})));case 8:e.next=19;break;case 10:return e.next=12,(0,xe.getConfig)("@openmrs/esm-api");case 12:if(i=e.sent.redirectAuthFailure,!(n===y(je)&&403===r.status||i.enabled&&i.errors.includes(r.status))){e.next=18;break}return(0,xe.navigate)({to:i.url}),e.abrupt("return",i.resolvePromise?Promise.resolve():new Promise((function(){})));case 18:return e.abrupt("return",r.text().then((function(e){var t=e;try{t=JSON.parse(e)}catch(e){}throw new Pe(n,r,t,o)}),(function(e){throw new Pe(n,r,null,o)})));case 19:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)}))},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!=typeof t)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");var n=new AbortController;return t.signal=n.signal,new ie((function(r){var o=!1;return v(e,t).then((function(e){o=!0,r.next(e),r.complete()}),(function(e){o=!0,r.error(e)})),function(){o||n.abort()}}))},b=function(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)},w=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){b(i,r,o,a,u,"next",e)}function u(e){b(i,r,o,a,u,"throw",e)}a(void 0)}))}},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeAuthStatus:!0};return(Re<Date.now()-6e4||!Ie.getState().loaded)&&S(),new ie((function(t){var n=function(n){var r;n.loaded&&(e.includeAuthStatus?t.next(n.session):t.next(null===(r=n.session)||void 0===r?void 0:r.user))};return n(Ie.getState()),Ie.subscribe(n)}))},x=function(){return(Re<Date.now()-6e4||!Ie.getState().loaded)&&S(),Ie},S=function(){return new Promise((function(e,t){Re=Date.now(),v(je).then((function(n){if("object"!=typeof(null==n?void 0:n.data))return t(),Promise.reject();var r,o,i,a,u;(u=null!==(a=null==(r=n.data)||null===(o=r.user)||void 0===o||null===(i=o.userProperties)||void 0===i?void 0:i.defaultLocale)&&void 0!==a?a:r.locale)!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",u),e(n.data),Ie.setState({loaded:!0,session:n.data})})).catch((function(e){return(0,Ce.reportError)("Failed to fetch new session information: ".concat(e)),t(e),{sessionId:"",authenticated:!1}}))}))},E=function(){Ie.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})},$=function(e,t){return n=e,t.privileges.find((function(e){return n===e.display}))||t.roles.find((function(e){return"System Developer"===e.display}));var n},O=function(){var e,t;return new Promise((function(n,r){var o=function(r){r.loaded&&r.session.user&&(e=r.session.user,n(r.session.user),t&&t())};o(Ie.getState()),e||(t=Ie.subscribe(o))}))},k=function(){return new Promise((function(e,t){var n=_().subscribe((function(t){e(t.sessionLocation),n.unsubscribe()}),t)}))},j=function(e,t){return Ne.apply(this,arguments)},P=function(){(0,xe.defineConfigSchema)("@openmrs/esm-api",{redirectAuthFailure:{enabled:{_type:xe.Type.Boolean,_default:!0,_description:"Whether to redirect logged-out users to `redirectAuthFailure.url`"},url:{_type:xe.Type.String,_default:"${openmrsSpaBase}/login",_validators:[xe.validators.isUrl]},errors:{_type:xe.Type.Array,_default:[401],_elements:{_type:xe.Type.Number,_validators:[xe.validators.inRange(100,600)]},_description:"The HTTP error codes for which users will be redirected"},resolvePromise:{_type:xe.Type.Boolean,_default:!1,_description:"Changes how requests that fail authentication are handled. Try messing with this if redirects to the login page aren't working correctly."}}}),S()},T=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},A=function(e,t){return e?Ae.read(function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){T(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e}({type:"Patient",patient:e},t)):Promise.resolve(null)},C=function(e){return function(t){return 0===e?Ke:t.lift(new He(e))}},I=function(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Ge(e,t))}},R=function(e,t,n){var r=null!=n?n:Ye;return g("/ws/rest/v1/visit?patient=".concat(e,"&v=").concat(r),{signal:t.signal,method:"GET",headers:{"Content-type":"application/json"}}).pipe(C(1)).pipe(I((function(e){return e})))},N=function(e,t){return g("/ws/rest/v1/visit",{signal:t.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})},D=function(e,t,n){return g("/ws/rest/v1/visit/".concat(e),{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})},M=function(e){return{uuid:e.uuid,display:e.display,name:e.name}},L=function(){return g("/ws/rest/v1/visittype").pipe(I((function(e){return e.data.results.map(M)}))).pipe(C(1))},U=function(e){return{uuid:e.uuid,display:e.display}},z=function(){return g("/ws/rest/v1/location").pipe(I((function(e){return e.data.results.map(U)}))).pipe(C(1))};c.r(s),c.d(s,{OpenmrsFetchError:function(){return Pe},VisitMode:function(){return De},VisitStatus:function(){return Me},backendDependencies:function(){return Xe},clearCurrentUser:function(){return E},defaultVisitCustomRepresentation:function(){return Ye},fetchCurrentPatient:function(){return A},fhir:function(){return Ae},fhirBaseUrl:function(){return Te},getCurrentUser:function(){return _},getLocations:function(){return z},getLoggedInUser:function(){return O},getSessionLocation:function(){return k},getSessionStore:function(){return x},getStartedVisit:function(){return Je},getVisitTypes:function(){return L},getVisitsForPatient:function(){return R},makeUrl:function(){return y},openmrsFetch:function(){return v},openmrsObservableFetch:function(){return g},refetchCurrentUser:function(){return S},saveVisit:function(){return N},sessionEndpoint:function(){return je},setSessionLocation:function(){return j},setupApiModule:function(){return P},toLocationObject:function(){return U},toVisitTypeObject:function(){return M},updateVisit:function(){return D},userHasAccess:function(){return $}});var F,B,V,W,q,K=c(602),H=c.n(K),Z=function(e,t){return(Z=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},G=!1,Q={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,G=e},get useDeprecatedSynchronousErrorHandling(){return G}},Y={closed:!0,next:function(e){},error:function(e){if(Q.useDeprecatedSynchronousErrorHandling)throw e;i(e)},complete:function(){}},J=Array.isArray||function(e){return e&&"number"==typeof e.length},X=(F=function(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this},F.prototype=Object.create(Error.prototype),F),ee=function(){var e,n=function(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)};return n.prototype.unsubscribe=function(){var e;if(!this.closed){var o,i=this,u=i._parentOrParents,c=i._ctorUnsubscribe,s=i._unsubscribe,l=i._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r(u,n))u.remove(this);else if(null!==u)for(var f=0;f<u.length;++f)u[f].remove(this);if(t(s)){c&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=r(t,X)?a(t.errors):[t]}}if(J(l)){f=-1;for(var p=l.length;++f<p;){var d=l[f];if(null!==(o=d)&&"object"==typeof o)try{d.unsubscribe()}catch(t){e=e||[],r(t,X)?e=e.concat(a(t.errors)):e.push(t)}}}if(e)throw new X(e)}},n.prototype.add=function(e){var t=e;if(!e)return n.EMPTY;switch(void 0===e?"undefined":o(e)){case"function":t=new n(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!r(t,n)){var i=t;(t=new n)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var a=t._parentOrParents;if(null===a)t._parentOrParents=this;else if(r(a,n)){if(a===this)return t;t._parentOrParents=[a,this]}else{if(-1!==a.indexOf(this))return t;a.push(this)}var u=this._subscriptions;return null===u?this._subscriptions=[t]:u.push(t),t},n.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},n.EMPTY=((e=new n).closed=!0,e),n}(),te="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),ne=function(t){function n(e,o,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=Y;break;case 1:if(!e){a.destination=Y;break}if("object"==typeof e){r(e,n)?(a.syncErrorThrowable=e.syncErrorThrowable,a.destination=e,e.add(a)):(a.syncErrorThrowable=!0,a.destination=new re(a,e));break}default:a.syncErrorThrowable=!0,a.destination=new re(a,e,o,i)}return a}return e(n,t),n.prototype[te]=function(){return this},n.create=function(e,t,r){var o=new n(e,t,r);return o.syncErrorThrowable=!1,o},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},n}(ee),re=(V=function(e,n,r,o){var i,a=B.call(this)||this;a._parentSubscriber=e;var u=a;return t(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==Y&&(t((u=Object.create(n)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=i,a._error=r,a._complete=o,a},e(V,B=ne),V.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;Q.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},V.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=Q.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):i(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;i(e)}}},V.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};Q.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},V.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),Q.useDeprecatedSynchronousErrorHandling)throw e;i(e)}},V.prototype.__tryOrSetError=function(e,t,n){if(!Q.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return Q.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(i(t),!0)}return!1},V.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},V),oe="function"==typeof Symbol&&Symbol.observable||"@@observable",ie=function(){var e=function(e){this._isScalar=!1,e&&(this._subscribe=e)};return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o=this.operator,i=function(e,t,n){if(e){if(r(e,ne))return e;if(e[te])return e[te]()}return e||t||n?new ne(e,t,n):new ne(Y)}(e,t,n);if(o?i.add(o.call(i,this.source)):i.add(this.source||Q.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Q.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){Q.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&r(o,ne)?o:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=f(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[oe]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:l(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}(),ae="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ue="object"==typeof self&&self&&self.Object===Object&&self,ce=(ae||ue||Function("return this")()).Symbol,se=Object.prototype,le=se.hasOwnProperty,fe=se.toString,pe=ce?ce.toStringTag:void 0,de=Object.prototype.toString,he=ce?ce.toStringTag:void 0,me=(W=Object.getPrototypeOf,q=Object,function(e){return W(q(e))}),ye=Function.prototype,ve=Object.prototype,ge=ye.toString,be=ve.hasOwnProperty,we=ge.call(Object),_e=function(e){if(null==(t=e)||"object"!=typeof t||"[object Object]"!=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":he&&he in Object(e)?function(e){var t=le.call(e,pe),n=e[pe];try{e[pe]=void 0;var r=!0}catch(e){}var o=fe.call(e);return r&&(t?e[pe]=n:delete e[pe]),o}(e):(t=e,de.call(t));var t}(e))return!1;var t,n=me(e);if(null===n)return!0;var o=be.call(n,"constructor")&&n.constructor;return"function"==typeof o&&r(o,o)&&ge.call(o)==we},xe=c(824);function Se(e,t,n){return Se=h()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&$e(o,n.prototype),o},Se.apply(null,arguments)}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $e(e,t){return($e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Oe=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":void 0===e?"undefined":o(e)};function ke(e){var t="function"==typeof Map?new Map:void 0;return ke=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Se(e,arguments,Ee(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$e(r,e)},ke(e)}var je="/ws/rest/v1/session",Pe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$e(e,t)}(i,e);var t,n,o=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Ee(t);if(n){var o=Ee(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return m(this,e)});function i(e,t,n,a){var u;return function(e,t){if(!r(e,t))throw new TypeError("Cannot call a class as a function")}(this,i),(u=o.call(this)).message="Server responded with ".concat(t.status," (").concat(t.statusText,") for url ").concat(e,". Check err.responseBody or network tab in dev tools for more info"),a.message=u.message,u.responseBody=n,u.response=t,u.stack="Stacktrace for outgoing request:\n".concat(a.stack,"\nStacktrace for incoming response:\n").concat(u.stack),u}return i}(ke(Error)),Te="/ws/fhir2/R4",Ae=c(256)({baseUrl:Te},{http:function(e){return v(e.url,{method:e.method,headers:e.headers}).then((function(t){return{status:t.status,headers:t.headers,data:t.data,config:e}}),(function(t){return{status:t.response.status,headers:t.response.headers,data:t.responseBody,config:e}}))}}),Ce=c(254),Ie=(0,c(385).createGlobalStore)("session",{loaded:!1,session:null}),Re=0;function Ne(){return(Ne=w(H().mark((function e(t,n){return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(je,{method:"POST",body:{sessionLocation:t},headers:{"Content-Type":"application/json"},signal:n.signal});case 2:S();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var De,Me,Le,Ue=function(){var e=function(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this};return e.prototype=Object.create(Error.prototype),e}(),ze=function(t){var n=function(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r};return e(n,t),n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},n}(ee),Fe=function(t){var n=function(e){var n=t.call(this,e)||this;return n.destination=e,n};return e(n,t),n}(ne),Be=function(t){var n=function(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e};return e(n,t),n.prototype[te]=function(){return new Fe(this)},n.prototype.lift=function(e){var t=new Ve(this,this);return t.operator=e,t},n.prototype.next=function(e){if(this.closed)throw new Ue;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},n.prototype.error=function(e){if(this.closed)throw new Ue;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},n.prototype.complete=function(){if(this.closed)throw new Ue;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},n.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},n.prototype._trySubscribe=function(e){if(this.closed)throw new Ue;return t.prototype._trySubscribe.call(this,e)},n.prototype._subscribe=function(e){if(this.closed)throw new Ue;return this.hasError?(e.error(this.thrownError),ee.EMPTY):this.isStopped?(e.complete(),ee.EMPTY):(this.observers.push(e),new ze(this,e))},n.prototype.asObservable=function(){var e=new ie;return e.source=this,e},n.create=function(e,t){return new Ve(e,t)},n}(ie),Ve=function(t){var n=function(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r};return e(n,t),n.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},n.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},n.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},n.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):ee.EMPTY},n}(Be),We=function(t){var n=function(e){var n=t.call(this)||this;return n._value=e,n};return e(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ue;return this._value},n.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},n}(Be),qe=function(){var e=function(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this};return e.prototype=Object.create(Error.prototype),e}(),Ke=new ie((function(e){return e.complete()})),He=function(){var e=function(e){if(this.total=e,this.total<0)throw new qe};return e.prototype.call=function(e,t){return t.subscribe(new Ze(e,this.total))},e}(),Ze=function(t){var n=function(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r};return e(n,t),n.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},n}(ne),Ge=function(){var e=function(e,t){this.project=e,this.thisArg=t};return e.prototype.call=function(e,t){return t.subscribe(new Qe(e,this.project,this.thisArg))},e}(),Qe=function(t){var n=function(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o};return e(n,t),n.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},n}(ne),Ye="custom:(uuid,encounters:(uuid,encounterDatetime,form:(uuid,name),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display))),patient:(uuid,uuid),visitType:(uuid,name,display),attributes:(uuid,display,value),location:(uuid,name,display),startDatetime,stopDatetime)",Je=new We(null);(Le=De||(De={})).NEWVISIT="startVisit",Le.EDITVISIT="editVisit",Le.LOADING="loadingVisit",function(e){e.NOTSTARTED="notStarted",e.ONGOING="ongoing"}(Me||(Me={}));var Xe={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"}}(),s}())}}}))},8461:(e,t,n)=>{"use strict";n.d(t,{nF:()=>P,u4:()=>fe,Rx:()=>pe,Wf:()=>ge,Ze:()=>z,I$:()=>ue,Vy:()=>H,N$:()=>A,DN:()=>T,ts:()=>M,JC:()=>ve,r:()=>B,WK:()=>V,KJ:()=>L,$X:()=>de,P9:()=>me,nx:()=>ce,bf:()=>O,vb:()=>k,uj:()=>j,VJ:()=>U,bX:()=>se,z$:()=>$,jK:()=>W,Lq:()=>ye,VF:()=>he,ym:()=>le,y9:()=>F});var r=n(1602),o=n.n(r),i=n(1720),a=n(963);const u=(0,n(6899).Z)(Object.getPrototypeOf,Object);var c=n(4897),s=Function.prototype,l=Object.prototype,f=s.toString,p=l.hasOwnProperty,d=f.call(Object);const h=function(e){if(!(0,c.Z)(e)||"[object Object]"!=(0,a.Z)(e))return!1;var t=u(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&f.call(n)==d};var m=n(9714);function y(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){y(i,r,o,a,u,"next",e)}function u(e){y(i,r,o,a,u,"throw",e)}a(void 0)}))}}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function b(e,t,n){return b=g()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&x(o,n.prototype),o},b.apply(null,arguments)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function _(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}var S=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function E(e){var t="function"==typeof Map?new Map:void 0;return E=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return b(e,arguments,w(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),x(r,e)},E(e)}var $="/ws/rest/v1/session";function O(e){return window.openmrsBase+e}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof t)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");var n=O(e);t.headers||(t.headers={}),h(t.body)&&(t.body=JSON.stringify(t.body)),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),null===t.headers.Accept&&delete t.headers.Accept;var r,i=Error();return window.fetch(n,t).then((r=v(o().mark((function e(t){var r,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=t).ok){e.next=10;break}if(204!==r.status){e.next=7;break}return r.data=null,e.abrupt("return",r);case 7:return e.abrupt("return",r.text().then((function(e){try{e&&(r.data=JSON.parse(e))}catch(e){}return r})));case 8:e.next=19;break;case 10:return e.next=12,(0,m.getConfig)("@openmrs/esm-api");case 12:if(a=e.sent.redirectAuthFailure,!(n===O($)&&403===r.status||a.enabled&&a.errors.includes(r.status))){e.next=18;break}return(0,m.navigate)({to:a.url}),e.abrupt("return",a.resolvePromise?Promise.resolve():new Promise((function(){})));case 18:return e.abrupt("return",r.text().then((function(e){var t=e;try{t=JSON.parse(e)}catch(e){}throw new P(n,r,t,i)}),(function(e){throw new P(n,r,null,i)})));case 19:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)}))}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!=typeof t)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");var n=new AbortController;return t.signal=n.signal,new i.y((function(r){var o=!1;return k(e,t).then((function(e){o=!0,r.next(e),r.complete()}),(function(e){o=!0,r.error(e)})),function(){o||n.abort()}}))}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=w(t);if(n){var o=w(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return _(this,e)});function o(e,t,n,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(a=r.call(this)).message="Server responded with ".concat(t.status," (").concat(t.statusText,") for url ").concat(e,". Check err.responseBody or network tab in dev tools for more info"),i.message=a.message,a.responseBody=n,a.response=t,a.stack="Stacktrace for outgoing request:\n".concat(i.stack,"\nStacktrace for incoming response:\n").concat(a.stack),a}return o}(E(Error)),T="/ws/fhir2/R4",A=n(1256)({baseUrl:T},{http:function(e){return k(e.url,{method:e.method,headers:e.headers}).then((function(t){return{status:t.status,headers:t.headers,data:t.data,config:e}}),(function(t){return{status:t.response.status,headers:t.response.headers,data:t.responseBody,config:e}}))}}),C=n(674);function I(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function R(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){I(i,r,o,a,u,"next",e)}function u(e){I(i,r,o,a,u,"throw",e)}a(void 0)}))}}var N=(0,n(5385).createGlobalStore)("session",{loaded:!1,session:null}),D=0;function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeAuthStatus:!0};return(D<Date.now()-6e4||!N.getState().loaded)&&U(),new i.y((function(t){var n=function(n){var r;n.loaded&&(e.includeAuthStatus?t.next(n.session):t.next(null===(r=n.session)||void 0===r?void 0:r.user))};return n(N.getState()),N.subscribe(n)}))}function L(){return(D<Date.now()-6e4||!N.getState().loaded)&&U(),N}function U(){return new Promise((function(e,t){D=Date.now(),k($).then((function(n){if("object"!=typeof(null==n?void 0:n.data))return t(),Promise.reject();var r,o,i,a,u;(u=null!==(a=null==(r=n.data)||null===(o=r.user)||void 0===o||null===(i=o.userProperties)||void 0===i?void 0:i.defaultLocale)&&void 0!==a?a:r.locale)!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",u),e(n.data),N.setState({loaded:!0,session:n.data})})).catch((function(e){return(0,C.reportError)("Failed to fetch new session information: ".concat(e)),t(e),{sessionId:"",authenticated:!1}}))}))}function z(){N.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})}function F(e,t){return function(e,t){return t.privileges.find((function(t){return e===t.display}))}(e,t)||function(e){return e.roles.find((function(e){return"System Developer"===e.display}))}(t)}function B(){var e,t;return new Promise((function(n,r){var o=function(r){r.loaded&&r.session.user&&(e=r.session.user,n(r.session.user),t&&t())};o(N.getState()),e||(t=N.subscribe(o))}))}function V(){return new Promise((function(e,t){var n=M().subscribe((function(t){e(t.sessionLocation),n.unsubscribe()}),t)}))}function W(e,t){return q.apply(this,arguments)}function q(){return(q=R(o().mark((function e(t,n){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k($,{method:"POST",body:{sessionLocation:t},headers:{"Content-Type":"application/json"},signal:n.signal});case 2:U();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){return e?A.read(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){K(e,t,n[t])}))}return e}({type:"Patient",patient:e},t)):Promise.resolve(null)}var Z=n(7080),G=n(7860),Q=n(7043),Y=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return Z.ZT(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Q.N;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(G.xQ),J=n(7811),X=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),ee=new i.y((function(e){return e.complete()}));function te(e){return function(t){return 0===e?n?function(e){return new i.y((function(t){return e.schedule((function(){return t.complete()}))}))}(n):ee:t.lift(new ne(e));var n}}var ne=function(){function e(e){if(this.total=e,this.total<0)throw new X}return e.prototype.call=function(e,t){return t.subscribe(new re(e,this.total))},e}(),re=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return Z.ZT(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(J.L);function oe(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new ie(e,t))}}var ie=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new ae(e,this.project,this.thisArg))},e}(),ae=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return Z.ZT(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(J.L),ue="custom:(uuid,encounters:(uuid,encounterDatetime,form:(uuid,name),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display))),patient:(uuid,uuid),visitType:(uuid,name,display),attributes:(uuid,display,value),location:(uuid,name,display),startDatetime,stopDatetime)";function ce(e,t,n){var r=null!=n?n:ue;return j("/ws/rest/v1/visit?patient=".concat(e,"&v=").concat(r),{signal:t.signal,method:"GET",headers:{"Content-type":"application/json"}}).pipe(te(1)).pipe(oe((function(e){return e})))}function se(e,t){return j("/ws/rest/v1/visit",{signal:t.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})}function le(e,t,n){return j("/ws/rest/v1/visit/".concat(e),{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})}var fe,pe,de=new Y(null);function he(e){return{uuid:e.uuid,display:e.display,name:e.name}}function me(){return j("/ws/rest/v1/visittype").pipe(oe((function(e){return e.data.results.map(he)}))).pipe(te(1))}function ye(e){return{uuid:e.uuid,display:e.display}}function ve(){return j("/ws/rest/v1/location").pipe(oe((function(e){return e.data.results.map(ye)}))).pipe(te(1))}!function(e){e.NEWVISIT="startVisit",e.EDITVISIT="editVisit",e.LOADING="loadingVisit"}(fe||(fe={})),function(e){e.NOTSTARTED="notStarted",e.ONGOING="ongoing"}(pe||(pe={}));var ge={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"}},6066:()=>{function e(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}System.register(["@openmrs/esm-state"],(function(t,n){var r={};return{setters:[function(e){r.createGlobalStore=e.createGlobalStore}],execute:function(){t(function(){var t={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},685:function(e){"use strict";e.exports=r}},o={};function i(e){var n=o[e];if(void 0!==n)return n.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.y=n,i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e}();var a={};return(0,i(968).s)(1),function(){"use strict";var t=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")},n=function(e){return e&&e.sensitive?"":"i"},r=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},o=function(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},u=function(t){return n=t.matcher,(null!=(r=RegExp)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):e(n,r))?t.matcher:"string"==typeof t.matcher?h(t.matcher):h(t.path);var n,r},c=function(e){return s([e])},s=function(e){var t=l(),n=e.map((function(e){return{matcher:u(e),settings:e}})),r=o(t).concat(o(n));m.setState(r,!0)},l=function(){return m.getState()},f=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},p=function(e,t){if(e.length>0){var n=y(e,t);if(n){for(var r=[n],o=y(e,n.settings.parent);void 0!==o;)r.push(o),o=y(e,o.settings.parent);return r.reverse()}}return[]},d=function(e){return p(l(),e)};function h(r,o,i){return e(r,RegExp)?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}(r,o):Array.isArray(r)?(c=o,s=i,l=r.map((function(e){return h(e,c,s).source})),new RegExp("(?:"+l.join("|")+")",n(s))):(a=o,function(e,r,o){void 0===o&&(o={});for(var i=o.strict,a=void 0!==i&&i,u=o.start,c=void 0===u||u,s=o.end,l=void 0===s||s,f=o.encode,p=void 0===f?function(e){return e}:f,d="["+t(o.endsWith||"")+"]|$",h="["+t(o.delimiter||"/#?")+"]",m=c?"^":"",y=0,v=e;y<v.length;y++){var g=v[y];if("string"==typeof g)m+=t(p(g));else{var b=t(p(g.prefix)),w=t(p(g.suffix));if(g.pattern)if(r&&r.push(g),b||w)if("+"===g.modifier||"*"===g.modifier){var _="*"===g.modifier?"?":"";m+="(?:"+b+"((?:"+g.pattern+")(?:"+w+b+"(?:"+g.pattern+"))*)"+w+")"+_}else m+="(?:"+b+"("+g.pattern+")"+w+")"+g.modifier;else m+="("+g.pattern+")"+g.modifier;else m+="(?:"+b+w+")"+g.modifier}}if(l)a||(m+=h+"?"),m+=o.endsWith?"(?="+d+")":"$";else{var x=e[e.length-1],S="string"==typeof x?h.indexOf(x[x.length-1])>-1:void 0===x;a||(m+="(?:"+h+"(?="+d+"))?"),S||(m+="(?="+h+"|"+d+")")}return new RegExp(m,n(o))}(function(e,n){void 0===n&&(n={});for(var r=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[u=n+1])throw new TypeError('Pattern cannot start with "?" at '+u);for(;u<e.length;)if("\\"!==e[u]){if(")"===e[u]){if(0==--o){u++;break}}else if("("===e[u]&&(o++,"?"!==e[u+1]))throw new TypeError("Capturing groups are not allowed at "+u);i+=e[u++]}else i+=e[u++]+e[u++];if(o)throw new TypeError("Unbalanced pattern at "+n);if(!i)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:i}),n=u}else{for(var a="",u=n+1;u<e.length;){var c=e.charCodeAt(u);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=e[u++]}if(!a)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=u}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),o=n.prefixes,i=void 0===o?"./":o,a="[^"+t(n.delimiter||"/#?")+"]+?",u=[],c=0,s=0,l="",f=function(e){if(s<r.length&&r[s].type===e)return r[s++].value},p=function(e){var t=f(e);if(void 0!==t)return t;var n=r[s],o=n.type,i=n.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+e)},d=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};s<r.length;){var h=f("CHAR"),m=f("NAME"),y=f("PATTERN");if(m||y){var v=h||"";-1===i.indexOf(v)&&(l+=v,v=""),l&&(u.push(l),l=""),u.push({name:m||c++,prefix:v,suffix:"",pattern:y||a,modifier:f("MODIFIER")||""})}else{var g=h||f("ESCAPED_CHAR");if(g)l+=g;else if(l&&(u.push(l),l=""),f("OPEN")){v=d();var b=f("NAME")||"",w=f("PATTERN")||"",_=d();p("CLOSE"),u.push({name:b||(w?c++:""),pattern:b&&!w?a:w,prefix:v,suffix:_,modifier:f("MODIFIER")||""})}else p("END")}}return u}(r,u=i),a,u));var a,u,c,s,l}i.r(a),i.d(a,{filterBreadcrumbs:function(){return p},getBreadcrumbs:function(){return l},getBreadcrumbsFor:function(){return d},registerBreadcrumb:function(){return c},registerBreadcrumbs:function(){return s}});var m=(0,i(685).createGlobalStore)("breadcrumbs",[]);function y(e,t){if(t)return n=t,(r=e.filter((function(e){return e.matcher.test(n)})),function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),1!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(r)||function(e,t){if(e){if("string"==typeof e)return f(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,1):void 0}}(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0]||function(e,t){for(var n=t.split("/");n.length>1;){n.pop();var r=y(e,n.join("/"));if(r)return r}}(e,t);var n,r}}(),a}())}}}))},9714:()=>{var e=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};System.register(["@openmrs/esm-state","single-spa"],(function(t,n){var r={},o={};return{setters:[function(e){r.createGlobalStore=e.createGlobalStore,r.getGlobalStore=e.getGlobalStore},function(e){o.navigateToUrl=e.navigateToUrl}],execute:function(){t(function(){"use strict";var t={685:function(e){e.exports=r},645:function(e){e.exports=o}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){var t=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]},n=function(e){return function n(r){return 0===arguments.length||t(r)?n:e.apply(this,arguments)}},r=function(e){return function r(o,i){switch(arguments.length){case 0:return r;case 1:return t(o)?r:n((function(t){return e(o,t)}));default:return t(o)&&t(i)?r:t(o)?n((function(t){return e(t,i)})):t(i)?n((function(t){return e(o,t)})):e(o,i)}}},o=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n},u=function(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1},c=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)},s=function(e,t,n,r){var i=o(e);function a(e,t){return ce(e,t,n.slice(),r.slice())}return!u((function(e,t){return!u(a,t,e)}),o(t),i)},l=function(e){return function o(i,a,u){switch(arguments.length){case 0:return o;case 1:return t(i)?o:r((function(t,n){return e(i,t,n)}));case 2:return t(i)&&t(a)?o:t(i)?r((function(t,n){return e(t,a,n)})):t(a)?r((function(t,n){return e(i,t,n)})):n((function(t){return e(i,a,t)}));default:return t(i)&&t(a)&&t(u)?o:t(i)&&t(a)?r((function(t,n){return e(t,n,u)})):t(i)&&t(u)?r((function(t,n){return e(t,a,n)})):t(a)&&t(u)?r((function(t,n){return e(i,t,n)})):t(i)?n((function(t){return e(t,a,u)})):t(a)?n((function(t){return e(i,t,u)})):t(u)?n((function(t){return e(i,a,t)})):e(i,a,u)}}},f=function(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)},p=function(e,t,n,r){return e["@@transducer/result"](n[r](ge(e["@@transducer/step"],e),t))},d=function(e){return"[object Object]"===Object.prototype.toString.call(e)},h=function(e,t){return function(n){if(!e(n))return"function"==typeof t?t(n):t}},m=function(){try{return JSON.parse(localStorage.getItem("openmrs:configAreDevDefaultsOn")||"false")}catch(e){return!1}},y=function(e){return(0,Te.getGlobalStore)("config-module-".concat(e),{config:null,loaded:!1})},v=function(){return(0,Te.getGlobalStore)("config-extension-slots",{slots:{}})},g=function(e){return b(v().getState(),e)},b=function(e,t){var n=e.slots[t];return null!=n?n:{loaded:!1,config:{}}},w=function(){return(0,Te.getGlobalStore)("config-extensions",{configs:{}})},_=function(e,t){return x(w().getState(),e,t)},x=function(e,t,n){var r,o=null===(r=e.configs[t])||void 0===r?void 0:r[n];return null!=o?o:{loaded:!1,config:null}},S=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},E=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},$=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){E(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},O=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},k=function(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},j=function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}},P=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(e.schemas)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=i.value,c=F(u,e,t);y(u).setState({loaded:!0,config:c})}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}},T=function(e,t){var n,r,o=(n=V(z(e,t)),function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=Object.entries(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=O(o.value,2),u=a[0],c=a[1],s=!0,l=!1,f=void 0;try{for(var p,d=Object.entries(c)[Symbol.iterator]();!(s=(p=d.next()).done);s=!0){var h=O(p.value,2),m=h[0];U(h[1],u,m)}}catch(e){l=!0,f=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw f}}}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}(r=Object.keys(n).reduce((function(e,t){var r,o;return(null===(r=n[t])||void 0===r?void 0:r.extensionSlots)&&(e[t]=null===(o=n[t])||void 0===o?void 0:o.extensionSlots),e}),{})),Object.keys(r).reduce((function(e,t){return $({},e,r[t])}),{})),i=Object.fromEntries(Object.entries(o).map((function(e){var t=O(e,2);return[t[0],{loaded:!0,config:t[1]}]}))),a=v(),u=a.getState(),c={slots:$({},u.slots,i)};se(u,c)||a.setState(c)},A=function(e,t){var n=function(e,t){var n=Me(de(e.schemas)),r=k(e.providedConfigs.map((function(e){return[e.config,e.source]}))).concat([[t.config,"temporary config"]]),o=!0,i=!1,a=void 0;try{for(var u,c=r[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=O(u.value,2);n=V([n,Le(s[0],s[1])])}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t);De.setState({config:n})},C=function(e,t,n){var r={},o=!0,i=!1,a=void 0;try{for(var u,c=t.mountedExtensions[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=u.value,l=L(s.slotModuleName,s.extensionModuleName,s.slotName,s.extensionId,e,n);r[s.slotName]=$({},r[s.slotName],E({},s.extensionId,{config:l,loaded:!0}))}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}w().setState({configs:r})},I=function(e,t){Ue(e,t);var n=Ce.getState();Ce.setState({schemas:$({},n.schemas,E({},e,t))})},R=function(e,t){Ue(e,t);var n=Ce.getState();n.schemas[e]&&console.warn("Config schema for extension ".concat(e," already exists. If there are multiple extensions with this same name, one will probably crash.")),Ce.setState({schemas:$({},n.schemas,E({},e,t))})},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided",n=Ce.getState();Ce.setState({providedConfigs:k(n.providedConfigs).concat([{source:t,config:e}])})},D=function(e){return new Promise((function(t){var n=function(e){e.loaded&&e.config&&(t(e.config),o&&o())},r=y(e);n(r.getState());var o=r.subscribe(n)}))},M=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];W(e,t,n);var o=Be(e,t,r);return Fe(e,o,n),o},L=function(e,t,n,r,o,i){var a,u,c,s,l=O(r.split("#"),1)[0],f=o.schemas[l],p=f?l:t,d=z(o,i),h=B(e,d),m=null!==(s=null==h||null===(a=h.extensionSlots)||void 0===a||null===(u=a[n])||void 0===u||null===(c=u.configure)||void 0===c?void 0:c[r])&&void 0!==s?s:{},y=V([B(p,d),m]),v=null!=f?f:o.schemas[t];W(v,y,p);var g=Be(v,y,o.devDefaultsAreOn);return Fe(v,g,p),delete g.extensionSlots,g},U=function(e,t,n){var r="Extension slot config '".concat(t,".extensionSlots.").concat(n),o=Object.keys(e).filter((function(e){return!["add","remove","order","configure"].includes(e)}));o.length&&console.error(r+"' contains invalid keys '".concat(o.join("', '"),"'")),e.add&&(Array.isArray(e.add)&&e.add.every((function(e){return"string"==typeof e}))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),e.remove&&(Array.isArray(e.remove)&&e.remove.every((function(e){return"string"==typeof e}))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),e.order&&(Array.isArray(e.order)&&e.order.every((function(e){return"string"==typeof e}))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),e.configure&&(Z(e.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))},z=function(e,t){return k(e.providedConfigs.map((function(e){return e.config}))).concat([t.config])},F=function(e,t,n){if(!t.schemas.hasOwnProperty(e))throw Error("No config schema has been defined for "+e);var r=t.schemas[e],o=B(e,z(t,n));W(r,o,e);var i=Be(r,o,t.devDefaultsAreOn);return Fe(r,i,e),delete i.extensionSlots,i},B=function(e,t){return V(t.map((function(t){return t[e]})).filter((function(e){return!!e})))},V=function(e){return we(Se)({},e)},W=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,o=!1,i=void 0;try{for(var a,u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value,s=t[c],l=n+"."+c,f=e[c];e.hasOwnProperty(c)?ze(f,s,l):"extensionSlots"===c&&""!==n||console.error("Unknown config key '".concat(l,"' provided. Ignoring."))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}},q=function(e,t,n){t&&K(e,[{Array:Ee,Boolean:$e,ConceptUuid:Pe,Number:Oe,Object:je,String:ke,UUID:Pe,PersonAttributeTypeUuid:Pe,PatientIdentifierTypeUuid:Pe}[t]],n)},K=function(e,t,n){if(t)try{var r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=(0,a.value)(n);"string"==typeof c&&("object"==typeof n?console.error("Invalid configuration for ".concat(e,": ").concat(c)):console.error("Invalid configuration value ".concat(n," for ").concat(e,": ").concat(c)))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}catch(t){console.error('Skipping invalid validator at "'.concat(e,'". Encountered error\n\t').concat(t))}},H=function(e){return!!e&&Object.keys(e).filter((function(e){return!["_default","_validators"].includes(e)})).length>0},Z=function(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e},G=function(e){var t=window.getOpenmrsSpaBase().replace(/\/$/,"");return Q(e,{openmrsBase:window.openmrsBase,openmrsSpaBase:t}).replace(/^\/\//,"/")},Q=function(e,t){return Object.keys(t).reduce((function(e,n){return e.split("${"+n+"}").join(t[n])}),e)},Y=function(e){var t=e.to,n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=G(t);r.startsWith(n)?(0,Ve.navigateToUrl)(r):window.location.assign(r)};i.r(a),i.d(a,{Type:function(){return fe},configExtensionStore:function(){return Ne},configInternalStore:function(){return Ce},defineConfigSchema:function(){return I},defineExtensionConfigSchema:function(){return R},getConfig:function(){return D},getConfigStore:function(){return y},getExtensionConfig:function(){return _},getExtensionConfigFromStore:function(){return x},getExtensionSlotConfig:function(){return g},getExtensionSlotConfigFromStore:function(){return b},getExtensionSlotsConfigStore:function(){return v},getExtensionsConfigStore:function(){return w},implementerToolsConfigStore:function(){return De},inRange:function(){return We},interpolateString:function(){return Q},interpolateUrl:function(){return G},isUrl:function(){return Ke},isUrlWithTemplateParameters:function(){return qe},navigate:function(){return Y},oneOf:function(){return He},processConfig:function(){return M},provide:function(){return N},temporaryConfigStore:function(){return Re},validator:function(){return h},validators:function(){return Ze}});var J="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},X=Object.prototype.toString,ee=function(){return"[object Arguments]"===X.call(arguments)?function(e){return"[object Arguments]"===X.call(e)}:function(e){return c("callee",e)}}(),te=ee,ne=!{toString:null}.propertyIsEnumerable("toString"),re=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],oe=function(){return arguments.propertyIsEnumerable("length")}(),ie=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},ae="function"!=typeof Object.keys||oe?n((function(e){if(Object(e)!==e)return[];var t,n,r=[],o=oe&&te(e);for(t in e)!c(t,e)||o&&"length"===t||(r[r.length]=t);if(ne)for(n=re.length-1;n>=0;)c(t=re[n],e)&&!ie(r,t)&&(r[r.length]=t),n-=1;return r})):n((function(e){return Object(e)!==e?[]:Object.keys(e)})),ue=n((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function ce(t,n,r,o){if(J(t,n))return!0;var i,a,u=ue(t);if(u!==ue(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(i=t.constructor,null==(a=String(i).match(/^function (\w*)/))?"":a[1]))return t===n;break;case"Boolean":case"Number":case"String":if((void 0===t?"undefined":e(t))!=(void 0===n?"undefined":e(n))||!J(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!J(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1}for(var l=r.length-1;l>=0;){if(r[l]===t)return o[l]===n;l-=1}switch(u){case"Map":return t.size===n.size&&s(t.entries(),n.entries(),r.concat([t]),o.concat([n]));case"Set":return t.size===n.size&&s(t.values(),n.values(),r.concat([t]),o.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=ae(t);if(f.length!==ae(n).length)return!1;var p=r.concat([t]),d=o.concat([n]);for(l=f.length-1;l>=0;){var h=f[l];if(!c(h,n)||!ce(n[h],t[h],p,d))return!1;l-=1}return!0}var se=r((function(e,t){return ce(e,t,[],[])}));function le(e,t,n,r){var o,i=function(o){for(var i=t.length,a=0;a<i;){if(e===t[a])return n[a];a+=1}for(var u in t[a+1]=e,n[a+1]=o,e)o[u]=r?le(e[u],t,n,!0):e[u];return o};switch(ue(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return o=e,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return e}}var fe,pe,de=n((function(e){return null!=e&&"function"==typeof e.clone?e.clone():le(e,[],[],!0)})),he=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)},me=n((function(e){return!!he(e)||!!e&&"object"==typeof e&&(t=e,!("[object String]"===Object.prototype.toString.call(t)))&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1));var t})),ye=function(){var e=function(e){this.f=e};return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}(),ve=r((function(e,t){return function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,u){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,u,c){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,u,c,s){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,u,c,s,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(e.length,(function(){return e.apply(t,arguments)}))})),ge=ve,be="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",we=l((function(e,t,n){if("function"==typeof e&&(e=new ye(e)),me(n))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return p(e,t,n,"fantasy-land/reduce");if(null!=n[be])return f(e,t,n[be]());if("function"==typeof n.next)return f(e,t,n);if("function"==typeof n.reduce)return p(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")})),_e=l((function(e,t,n){var r,o={};for(r in t)c(r,t)&&(o[r]=c(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)c(r,n)&&!c(r,o)&&(o[r]=n[r]);return o})),xe=l((function e(t,n,r){return _e((function(n,r,o){return d(r)&&d(o)?e(t,r,o):t(n,r,o)}),n,r)})),Se=r((function(e,t){return xe((function(e,t,n){return n}),e,t)}));(pe=fe||(fe={})).Array="Array",pe.Boolean="Boolean",pe.ConceptUuid="ConceptUuid",pe.Number="Number",pe.Object="Object",pe.String="String",pe.UUID="UUID",pe.PersonAttributeTypeUuid="PersonAttributeTypeUuid",pe.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid";var Ee=h((function(e){return Array.isArray(e)}),"must be an array"),$e=h((function(e){return"boolean"==typeof e}),"must be a boolean"),Oe=h((function(e){return"number"==typeof e}),"must be a number"),ke=h((function(e){return"string"==typeof e}),"must be a string"),je=h((function(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}),"must be an object (not an array or null)"),Pe=h((function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e)}),"must be a valid UUID or a 36-character hexadecimal string"),Te=i(685),Ae={providedConfigs:[],schemas:{},devDefaultsAreOn:m()},Ce=(0,Te.createGlobalStore)("config-internal",Ae),Ie=m();Ce.subscribe((function(e){var t;e.devDefaultsAreOn!=Ie&&(t=e.devDefaultsAreOn,localStorage.setItem("openmrs:configAreDevDefaultsOn",JSON.stringify(t)),Ie=e.devDefaultsAreOn)}));var Re=(0,Te.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});Re.subscribe((function(e){var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))}));var Ne=(0,Te.createGlobalStore)("config-store-of-extension-state",{mountedExtensions:[]}),De=(0,Te.createGlobalStore)("config-implementer-tools",{config:{}});function Me(e){return e.hasOwnProperty("_default")?$({},e,{_value:e._default,_source:"default"}):Z(e)?Object.keys(e).reduce((function(t,n){return t[n]=Me(e[n]),t}),{}):{}}function Le(e,t){return Z(e)?Object.keys(e).reduce((function(n,r){return n[r]=Le(e[r],t),n}),{}):{_value:e,_source:t}}function Ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="Please verify that you are running the latest version and, if so, alert the maintainer.",o=!0,i=!1,a=void 0;try{for(var u,c=function(o,i){var a=i.value,u=n+(n&&".")+a,c=t[a];if(!Z(c))return console.error("".concat(e," has bad config schema definition for key '").concat(u,"'. ").concat(r)),"continue";c.hasOwnProperty("_default")||Ue(e,c,u);var s=c._elements;if(H(s)&&Ue(e,s,u+"._elements"),c._validators){var l=!0,f=!1,p=void 0;try{for(var d,h=c._validators[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var m=d.value;"function"!=typeof m&&console.error("".concat(e," has invalid validator for key '").concat(u,"' ").concat(r,".")+"\n\nIf you're the maintainer: validators must be functions that return either "+"undefined or an error string. Received ".concat(m,"."))}}catch(e){f=!0,p=e}finally{try{l||null==h.return||h.return()}finally{if(f)throw p}}}var y=c._type;y&&!Object.values(fe).includes(y)&&console.error("".concat(e," has invalid type for key '").concat(u,"' ").concat(r,".")+"\n\nIf you're the maintainer: the allowed types are ".concat(Object.values(fe).join(", "),". ")+"Received '".concat(y,"'")),Object.keys(c).every((function(e){return["_description","_validators","_elements","_type"].includes(e)}))&&!n.includes("._elements")&&console.error("".concat(e," has bad config schema definition for key '").concat(u,"'. ").concat(r,".")+"\n\nIf you're the maintainer: all config elements must have a default. "+"Received ".concat(JSON.stringify(c))),s&&y&&![fe.Array,fe.Object].includes(y)&&console.error("".concat(e," has bad config schema definition for key '").concat(u,"'. ").concat(r,".")+"\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. "+"Received ".concat(JSON.stringify(y)))},s=Object.keys(t).filter((function(e){return!e.startsWith("_")}))[Symbol.iterator]();!(o=(u=s.next()).done);o=!0)c(s,u)}catch(e){i=!0,a=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}}function ze(e,t,n){q(n,e._type,t),Z(t)?e._type===fe.Object?function(e,t,n){if(e._elements){var r=!0,o=!1,i=void 0;try{for(var a,u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value,s=t[c];W(e._elements,s,"".concat(n,".").concat(c))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}}(e,t,n):e.hasOwnProperty("_default")||W(e,t,n):e._type===fe.Array&&function(e,t,n){if(H(e._elements))for(var r=0;r<t.length;r++)ze(e._elements,t[r],"".concat(n,"[").concat(r,"]"));for(var o=0;o<t.length;o++){var i;q("".concat(n,"[").concat(o,"]"),null===(i=e._elements)||void 0===i?void 0:i._type,t[o])}}(e,t,n)}function Fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(e)if(t!==e._default&&K(n,e._validators,t),Z(t)){var r=!0,o=!1,i=void 0;try{for(var a,u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value,s=t[c],l=n+"."+c,f=e[c];e._type===fe.Object&&e._elements?Fe(e._elements,s,l):Fe(f,s,l)}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}else if(Array.isArray(t)&&e._elements)for(var p=0;p<t.length;p++)Fe(e._elements,t[p],"".concat(n,"[").concat(p,"]"))}P(Ce.getState(),Re.getState()),Ce.subscribe((function(e){return P(e,Re.getState())})),Re.subscribe((function(e){return P(Ce.getState(),e)})),A(Ce.getState(),Re.getState()),Ce.subscribe((function(e){return A(e,Re.getState())})),Re.subscribe((function(e){return A(Ce.getState(),e)})),T(Ce.getState(),Re.getState()),Ce.subscribe((function(e){return T(e,Re.getState())})),Re.subscribe((function(e){return T(Ce.getState(),e)})),C(Ce.getState(),Ne.getState(),Re.getState()),Ce.subscribe((function(e){C(e,Ne.getState(),Re.getState())})),Ne.subscribe((function(e){C(Ce.getState(),e,Re.getState())})),Re.subscribe((function(e){C(Ce.getState(),Ne.getState(),e)}));var Be=function(e,t,n){var r=de(t);if(!e)return r;var o=!0,i=!1,a=void 0;try{for(var u,c=function(t,o){var i=o.value,a=r[i],u=e[i];if(u&&u.hasOwnProperty("_default")){if(!r.hasOwnProperty(i)){var c=u._devDefault||u._default;r[i]=n?c:u._default}var s=u._elements;if(a&&H(s))if(u._type===fe.Array&&Array.isArray(a)){var l=a.map((function(e){return Be(s,e,n)}));r[i]=l}else if(u._type===fe.Object){var f=!0,p=!1,d=void 0;try{for(var h,m=Object.keys(a)[Symbol.iterator]();!(f=(h=m.next()).done);f=!0){var y=h.value;a[y]=Be(s,a[y],n)}}catch(e){p=!0,d=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw d}}}}else if(Z(u)){var v=r.hasOwnProperty(i)?a:{};Z(v)&&(r[i]=Be(u,v,n))}},s=Object.keys(e)[Symbol.iterator]();!(o=(u=s.next()).done);o=!0)c(0,u)}catch(e){i=!0,a=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}return r},Ve=i(645),We=function(e,t){return h((function(n){return e<=n&&n<=t}),"must be between ".concat(e," and ").concat(t))},qe=function(e){var t=e.concat(["openmrsBase","openmrsSpaBase"]);return h((function(e){if(!e||"string"!=typeof e)return!1;for(var n=/\${(.*?)}/g,r=n.exec(e);r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0}),"Should be a URL or path. The allowed template parameters are "+t.map((function(e){return"${"+e+"}"})).join(", "))},Ke=qe([]),He=function(e){return h((function(t){return e.includes(t)}),"Must be one of the following: '".concat(e.join("', '"),"'."))},Ze={inRange:We,isUrl:Ke,isUrlWithTemplateParameters:qe,oneOf:He}}(),a}())}}}))},3373:(e,t,n)=>{"use strict";n.d(t,{JU:()=>o.ConfigStore,Dy:()=>r,SH:()=>Ee,Tj:()=>$e,iE:()=>ke,pR:()=>le,Z2:()=>l,IT:()=>a,ll:()=>i,CB:()=>p,gZ:()=>f,c4:()=>c,kw:()=>d,JJ:()=>Oe,sC:()=>s,z2:()=>h});var r,o={};function i(e){var t=window.getOpenmrsSpaBase().replace(/\/$/,"");return a(e,{openmrsBase:window.openmrsBase,openmrsSpaBase:t}).replace(/^\/\//,"/")}function a(e,t){return Object.keys(t).reduce((function(e,n){return e.split("${"+n+"}").join(t[n])}),e)}n.r(o),n.d(o,{R2:()=>se,hv:()=>ie,pR:()=>le,Gr:()=>fe,_z:()=>pe,HN:()=>de,DK:()=>ce}),function(e){e.Array="Array",e.Boolean="Boolean",e.ConceptUuid="ConceptUuid",e.Number="Number",e.Object="Object",e.String="String",e.UUID="UUID",e.PersonAttributeTypeUuid="PersonAttributeTypeUuid",e.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid"}(r||(r={}));var u=n(3710);function c(e){var t=e.to,n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=i(t);r.startsWith(n)?(0,u.UO)(r):window.location.assign(r)}function s(e,t){return function(n){if(!e(n))return"function"==typeof t?t(n):t}}var l=function(e,t){return s((function(n){return e<=n&&n<=t}),"must be between ".concat(e," and ").concat(t))},f=function(e){var t=e.concat(["openmrsBase","openmrsSpaBase"]);return s((function(e){if(!e||"string"!=typeof e)return!1;for(var n=/\${(.*?)}/g,r=n.exec(e);r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0}),"Should be a URL or path. The allowed template parameters are "+t.map((function(e){return"${"+e+"}"})).join(", "))},p=f([]),d=function(e){return s((function(t){return e.includes(t)}),"Must be one of the following: '".concat(e.join("', '"),"'."))},h={inRange:l,isUrl:p,isUrlWithTemplateParameters:f,oneOf:d};function m(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function y(e){return function t(n){return 0===arguments.length||m(n)?t:e.apply(this,arguments)}}function v(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return m(n)?t:y((function(t){return e(n,t)}));default:return m(n)&&m(r)?t:m(n)?y((function(t){return e(t,r)})):m(r)?y((function(t){return e(n,t)})):e(n,r)}}}function g(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function b(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1}function w(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const _="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var x=Object.prototype.toString,S=function(){return"[object Arguments]"===x.call(arguments)?function(e){return"[object Arguments]"===x.call(e)}:function(e){return w("callee",e)}}();const E=S;var $=!{toString:null}.propertyIsEnumerable("toString"),O=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),j=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1};const P="function"!=typeof Object.keys||k?y((function(e){if(Object(e)!==e)return[];var t,n,r=[],o=k&&E(e);for(t in e)!w(t,e)||o&&"length"===t||(r[r.length]=t);if($)for(n=O.length-1;n>=0;)w(t=O[n],e)&&!j(r,t)&&(r[r.length]=t),n-=1;return r})):y((function(e){return Object(e)!==e?[]:Object.keys(e)})),T=y((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function A(e,t,n,r){var o=g(e);function i(e,t){return C(e,t,n.slice(),r.slice())}return!b((function(e,t){return!b(i,t,e)}),g(t),o)}function C(e,t,n,r){if(_(e,t))return!0;var o,i,a=T(e);if(a!==T(t))return!1;if(null==e||null==t)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(o=e.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!_(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!_(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var u=n.length-1;u>=0;){if(n[u]===e)return r[u]===t;u-=1}switch(a){case"Map":return e.size===t.size&&A(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&A(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=P(e);if(c.length!==P(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(u=c.length-1;u>=0;){var f=c[u];if(!w(f,t)||!C(t[f],e[f],s,l))return!1;u-=1}return!0}const I=v((function(e,t){return C(e,t,[],[])}));function R(e,t,n,r){var o,i=function(o){for(var i=t.length,a=0;a<i;){if(e===t[a])return n[a];a+=1}for(var u in t[a+1]=e,n[a+1]=o,e)o[u]=r?R(e[u],t,n,!0):e[u];return o};switch(T(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return o=e,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return e}}const N=y((function(e){return null!=e&&"function"==typeof e.clone?e.clone():R(e,[],[],!0)}));function D(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return m(n)?t:v((function(t,r){return e(n,t,r)}));case 2:return m(n)&&m(r)?t:m(n)?v((function(t,n){return e(t,r,n)})):m(r)?v((function(t,r){return e(n,t,r)})):y((function(t){return e(n,r,t)}));default:return m(n)&&m(r)&&m(o)?t:m(n)&&m(r)?v((function(t,n){return e(t,n,o)})):m(n)&&m(o)?v((function(t,n){return e(t,r,n)})):m(r)&&m(o)?v((function(t,r){return e(n,t,r)})):m(n)?y((function(t){return e(t,r,o)})):m(r)?y((function(t){return e(n,t,o)})):m(o)?y((function(t){return e(n,r,t)})):e(n,r,o)}}}const M=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)},L=y((function(e){return!!M(e)||!!e&&"object"==typeof e&&!function(e){return"[object String]"===Object.prototype.toString.call(e)}(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));var U=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}(),z=v((function(e,t){return function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,u){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,u,c){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,u,c,s){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,u,c,s,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(e.length,(function(){return e.apply(t,arguments)}))}));const F=z;function B(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function V(e,t,n,r){return e["@@transducer/result"](n[r](F(e["@@transducer/step"],e),t))}var W="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function q(e,t,n){if("function"==typeof e&&(e=function(e){return new U(e)}(e)),L(n))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return V(e,t,n,"fantasy-land/reduce");if(null!=n[W])return B(e,t,n[W]());if("function"==typeof n.next)return B(e,t,n);if("function"==typeof n.reduce)return V(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}const K=D(q);function H(e){return"[object Object]"===Object.prototype.toString.call(e)}const Z=D((function(e,t,n){var r,o={};for(r in t)w(r,t)&&(o[r]=w(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)w(r,n)&&!w(r,o)&&(o[r]=n[r]);return o})),G=D((function e(t,n,r){return Z((function(n,r,o){return H(r)&&H(o)?e(t,r,o):t(n,r,o)}),n,r)})),Q=v((function(e,t){return G((function(e,t,n){return n}),e,t)}));var Y=s((function(e){return Array.isArray(e)}),"must be an array"),J=s((function(e){return"boolean"==typeof e}),"must be a boolean"),X=s((function(e){return"number"==typeof e}),"must be a number"),ee=s((function(e){return"string"==typeof e}),"must be a string"),te=s((function(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}),"must be an object (not an array or null)"),ne=s((function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e)}),"must be a valid UUID or a 36-character hexadecimal string"),re=n(5385),oe={providedConfigs:[],schemas:{},devDefaultsAreOn:ue()},ie=(0,re.createGlobalStore)("config-internal",oe),ae=ue();function ue(){try{return JSON.parse(localStorage.getItem("openmrs:configAreDevDefaultsOn")||"false")}catch(e){return!1}}ie.subscribe((function(e){var t;e.devDefaultsAreOn!=ae&&(t=e.devDefaultsAreOn,localStorage.setItem("openmrs:configAreDevDefaultsOn",JSON.stringify(t)),ae=e.devDefaultsAreOn)}));var ce=(0,re.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});ce.subscribe((function(e){var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))}));var se=(0,re.createGlobalStore)("config-store-of-extension-state",{mountedExtensions:[]});function le(e){return(0,re.getGlobalStore)("config-module-".concat(e),{config:null,loaded:!1})}function fe(){return(0,re.getGlobalStore)("config-extension-slots",{slots:{}})}function pe(){return(0,re.getGlobalStore)("config-extensions",{configs:{}})}var de=(0,re.createGlobalStore)("config-implementer-tools",{config:{}});function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){me(e,t,n[t])}))}return e}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||be(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||be(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(e,t){if(e){if("string"==typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}function we(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(e.schemas)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=i.value,c=Re(u,e,t);le(u).setState({loaded:!0,config:c})}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}}function _e(e,t){var n,r,o=(n=De(Ce(e,t)),function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=Object.entries(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=ve(o.value,2),u=a[0],c=a[1],s=!0,l=!1,f=void 0;try{for(var p,d=Object.entries(c)[Symbol.iterator]();!(s=(p=d.next()).done);s=!0){var h=ve(p.value,2),m=h[0];Ae(h[1],u,m)}}catch(e){l=!0,f=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw f}}}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}(r=Object.keys(n).reduce((function(e,t){var r,o;return(null===(r=n[t])||void 0===r?void 0:r.extensionSlots)&&(e[t]=null===(o=n[t])||void 0===o?void 0:o.extensionSlots),e}),{})),Object.keys(r).reduce((function(e,t){return ye({},e,r[t])}),{})),i=Object.fromEntries(Object.entries(o).map((function(e){var t=ve(e,2);return[t[0],{loaded:!0,config:t[1]}]}))),a=fe(),u=a.getState(),c={slots:ye({},u.slots,i)};I(u,c)||a.setState(c)}function xe(e,t){var n=function(e,t){var n=Pe(N(e.schemas)),r=ge(e.providedConfigs.map((function(e){return[e.config,e.source]}))).concat([[t.config,"temporary config"]]),o=!0,i=!1,a=void 0;try{for(var u,c=r[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=ve(u.value,2);n=De([n,Te(s[0],s[1])])}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t);de.setState({config:n})}function Se(e,t,n){var r={},o=!0,i=!1,a=void 0;try{for(var u,c=t.mountedExtensions[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=u.value,l=je(s.slotModuleName,s.extensionModuleName,s.slotName,s.extensionId,e,n);r[s.slotName]=ye({},r[s.slotName],me({},s.extensionId,{config:l,loaded:!0}))}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}pe().setState({configs:r})}function Ee(e,t){Ie(e,t);var n=ie.getState();ie.setState({schemas:ye({},n.schemas,me({},e,t))})}function $e(e,t){Ie(e,t);var n=ie.getState();n.schemas[e]&&console.warn("Config schema for extension ".concat(e," already exists. If there are multiple extensions with this same name, one will probably crash.")),ie.setState({schemas:ye({},n.schemas,me({},e,t))})}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided",n=ie.getState();ie.setState({providedConfigs:ge(n.providedConfigs).concat([{source:t,config:e}])})}function ke(e){return new Promise((function(t){var n=function(e){e.loaded&&e.config&&(t(e.config),o&&o())},r=le(e);n(r.getState());var o=r.subscribe(n)}))}function je(e,t,n,r,o,i){var a,u,c,s,l=function(e){return ve(e.split("#"),1)[0]}(r),f=o.schemas[l],p=f?l:t,d=Ce(o,i),h=Ne(e,d),m=null!==(s=null==h||null===(a=h.extensionSlots)||void 0===a||null===(u=a[n])||void 0===u||null===(c=u.configure)||void 0===c?void 0:c[r])&&void 0!==s?s:{},y=De([Ne(p,d),m]),v=null!=f?f:o.schemas[t];Me(v,y,p);var g=Be(v,y,o.devDefaultsAreOn);return Ue(v,g,p),delete g.extensionSlots,g}function Pe(e){return e.hasOwnProperty("_default")?ye({},e,{_value:e._default,_source:"default"}):We(e)?Object.keys(e).reduce((function(t,n){return t[n]=Pe(e[n]),t}),{}):{}}function Te(e,t){return We(e)?Object.keys(e).reduce((function(n,r){return n[r]=Te(e[r],t),n}),{}):{_value:e,_source:t}}function Ae(e,t,n){var r="Extension slot config '".concat(t,".extensionSlots.").concat(n),o=Object.keys(e).filter((function(e){return!["add","remove","order","configure"].includes(e)}));o.length&&console.error(r+"' contains invalid keys '".concat(o.join("', '"),"'")),e.add&&(Array.isArray(e.add)&&e.add.every((function(e){return"string"==typeof e}))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),e.remove&&(Array.isArray(e.remove)&&e.remove.every((function(e){return"string"==typeof e}))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),e.order&&(Array.isArray(e.order)&&e.order.every((function(e){return"string"==typeof e}))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),e.configure&&(We(e.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))}function Ce(e,t){return ge(e.providedConfigs.map((function(e){return e.config}))).concat([t.config])}function Ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="Please verify that you are running the latest version and, if so, alert the maintainer.",i=!0,a=!1,u=void 0;try{for(var c,s=function(i,a){var u=a.value,c=n+(n&&".")+u,s=t[u];if(!We(s))return console.error("".concat(e," has bad config schema definition for key '").concat(c,"'. ").concat(o)),"continue";s.hasOwnProperty("_default")||Ie(e,s,c);var l=s._elements;if(Ve(l)&&Ie(e,l,c+"._elements"),s._validators){var f=!0,p=!1,d=void 0;try{for(var h,m=s._validators[Symbol.iterator]();!(f=(h=m.next()).done);f=!0){var y=h.value;"function"!=typeof y&&console.error("".concat(e," has invalid validator for key '").concat(c,"' ").concat(o,".")+"\n\nIf you're the maintainer: validators must be functions that return either "+"undefined or an error string. Received ".concat(y,"."))}}catch(e){p=!0,d=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw d}}}var v=s._type;v&&!Object.values(r).includes(v)&&console.error("".concat(e," has invalid type for key '").concat(c,"' ").concat(o,".")+"\n\nIf you're the maintainer: the allowed types are ".concat(Object.values(r).join(", "),". ")+"Received '".concat(v,"'")),Object.keys(s).every((function(e){return["_description","_validators","_elements","_type"].includes(e)}))&&!n.includes("._elements")&&console.error("".concat(e," has bad config schema definition for key '").concat(c,"'. ").concat(o,".")+"\n\nIf you're the maintainer: all config elements must have a default. "+"Received ".concat(JSON.stringify(s))),l&&v&&![r.Array,r.Object].includes(v)&&console.error("".concat(e," has bad config schema definition for key '").concat(c,"'. ").concat(o,".")+"\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. "+"Received ".concat(JSON.stringify(v)))},l=Object.keys(t).filter((function(e){return!e.startsWith("_")}))[Symbol.iterator]();!(i=(c=l.next()).done);i=!0)s(l,c)}catch(e){a=!0,u=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw u}}}function Re(e,t,n){if(!t.schemas.hasOwnProperty(e))throw Error("No config schema has been defined for "+e);var r=t.schemas[e],o=Ne(e,Ce(t,n));Me(r,o,e);var i=Be(r,o,t.devDefaultsAreOn);return Ue(r,i,e),delete i.extensionSlots,i}function Ne(e,t){return De(t.map((function(t){return t[e]})).filter((function(e){return!!e})))}function De(e){return K(Q)({},e)}function Me(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,o=!1,i=void 0;try{for(var a,u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value,s=t[c],l=n+"."+c,f=e[c];e.hasOwnProperty(c)?Le(f,s,l):"extensionSlots"===c&&""!==n||console.error("Unknown config key '".concat(l,"' provided. Ignoring."))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}function Le(e,t,n){ze(n,e._type,t),We(t)?e._type===r.Object?function(e,t,n){if(e._elements){var r=!0,o=!1,i=void 0;try{for(var a,u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value,s=t[c];Me(e._elements,s,"".concat(n,".").concat(c))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}}(e,t,n):e.hasOwnProperty("_default")||Me(e,t,n):e._type===r.Array&&function(e,t,n){if(Ve(e._elements))for(var r=0;r<t.length;r++)Le(e._elements,t[r],"".concat(n,"[").concat(r,"]"));for(var o=0;o<t.length;o++){var i;ze("".concat(n,"[").concat(o,"]"),null===(i=e._elements)||void 0===i?void 0:i._type,t[o])}}(e,t,n)}function Ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(e)if(t!==e._default&&Fe(n,e._validators,t),We(t)){var o=!0,i=!1,a=void 0;try{for(var u,c=Object.keys(t)[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=u.value,l=t[s],f=n+"."+s,p=e[s];e._type===r.Object&&e._elements?Ue(e._elements,l,f):Ue(p,l,f)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}}else if(Array.isArray(t)&&e._elements)for(var d=0;d<t.length;d++)Ue(e._elements,t[d],"".concat(n,"[").concat(d,"]"))}function ze(e,t,n){t&&Fe(e,[{Array:Y,Boolean:J,ConceptUuid:ne,Number:X,Object:te,String:ee,UUID:ne,PersonAttributeTypeUuid:ne,PatientIdentifierTypeUuid:ne}[t]],n)}function Fe(e,t,n){if(t)try{var r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=(0,a.value)(n);"string"==typeof c&&("object"==typeof n?console.error("Invalid configuration for ".concat(e,": ").concat(c)):console.error("Invalid configuration value ".concat(n," for ").concat(e,": ").concat(c)))}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}catch(t){console.error('Skipping invalid validator at "'.concat(e,'". Encountered error\n\t').concat(t))}}we(ie.getState(),ce.getState()),ie.subscribe((function(e){return we(e,ce.getState())})),ce.subscribe((function(e){return we(ie.getState(),e)})),xe(ie.getState(),ce.getState()),ie.subscribe((function(e){return xe(e,ce.getState())})),ce.subscribe((function(e){return xe(ie.getState(),e)})),_e(ie.getState(),ce.getState()),ie.subscribe((function(e){return _e(e,ce.getState())})),ce.subscribe((function(e){return _e(ie.getState(),e)})),Se(ie.getState(),se.getState(),ce.getState()),ie.subscribe((function(e){Se(e,se.getState(),ce.getState())})),se.subscribe((function(e){Se(ie.getState(),e,ce.getState())})),ce.subscribe((function(e){Se(ie.getState(),se.getState(),e)}));var Be=function(e,t,n){var o=N(t);if(!e)return o;var i=!0,a=!1,u=void 0;try{for(var c,s=function(t,i){var a=i.value,u=o[a],c=e[a];if(c&&c.hasOwnProperty("_default")){if(!o.hasOwnProperty(a)){var s=c._devDefault||c._default;o[a]=n?s:c._default}var l=c._elements;if(u&&Ve(l))if(c._type===r.Array&&Array.isArray(u)){var f=u.map((function(e){return Be(l,e,n)}));o[a]=f}else if(c._type===r.Object){var p=!0,d=!1,h=void 0;try{for(var m,y=Object.keys(u)[Symbol.iterator]();!(p=(m=y.next()).done);p=!0){var v=m.value;u[v]=Be(l,u[v],n)}}catch(e){d=!0,h=e}finally{try{p||null==y.return||y.return()}finally{if(d)throw h}}}}else if(We(c)){var g=o.hasOwnProperty(a)?u:{};We(g)&&(o[a]=Be(c,g,n))}},l=Object.keys(e)[Symbol.iterator]();!(i=(c=l.next()).done);i=!0)s(0,c)}catch(e){a=!0,u=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw u}}return o};function Ve(e){return!!e&&Object.keys(e).filter((function(e){return!["_default","_validators"].includes(e)})).length>0}function We(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}},674:()=>{System.register(["@openmrs/esm-globals"],(function(e,t){var n={};return{setters:[function(e){n.dispatchNotificationShown=e.dispatchNotificationShown}],execute:function(){e(function(){var e={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},728:function(e){"use strict";e.exports=n}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.y=t,o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e}();var i={};return(0,o(968).s)(1),function(){"use strict";var e=function(e){var t=n(e);setTimeout((function(){throw t}))},t=function(){var t=Error();return function(r){n(r).stack+="\nAsync stacktrace:\n".concat(t.stack),e(r)}},n=function(e){var t,n,r,o,i;if(n=e,null!=(r=Error)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):(o=n,null!=(i=r)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](o):o instanceof i))return e;if(null===e)return Error("'null' was thrown as an error");if("object"==typeof e){try{t="Object thrown as error: ".concat(JSON.stringify(e))}catch(n){t="Object thrown as error with the following properties: ".concat(Object.keys(e))}return Error(t)}return void 0===e?Error("'undefined' was thrown as an error"):Error(e.toString())};o.r(i),o.d(i,{createErrorHandler:function(){return t},reportError:function(){return e}});var r=o(728);window.onerror=function(){return(0,r.dispatchNotificationShown)({description:"Oops! An unexpected error occurred."}),!1},window.onunhandledrejection=function(){(0,r.dispatchNotificationShown)({description:"Oops! An unexpected error occurred."})}}(),i}())}}}))},225:(e,t,n)=>{function r(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}e=n.nmd(e);var o=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};System.register(["@openmrs/esm-config","@openmrs/esm-state","single-spa"],(function(i,a){var u={},c={},s={};return{setters:[function(e){u.configExtensionStore=e.configExtensionStore,u.getExtensionConfigFromStore=e.getExtensionConfigFromStore,u.getExtensionSlotConfig=e.getExtensionSlotConfig,u.getExtensionSlotConfigFromStore=e.getExtensionSlotConfigFromStore,u.getExtensionSlotsConfigStore=e.getExtensionSlotsConfigStore,u.getExtensionsConfigStore=e.getExtensionsConfigStore},function(e){c.createGlobalStore=e.createGlobalStore,c.getGlobalStore=e.getGlobalStore},function(e){s.mountRootParcel=e.mountRootParcel}],execute:function(){i(function(){var i={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},824:function(e){"use strict";e.exports=u},685:function(e){"use strict";e.exports=c},645:function(e){"use strict";e.exports=s}},l={};function f(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return i[e](n,n.exports,f),n.exports}f.y=a,f.d=function(e,t){for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;f.g.importScripts&&(e=f.g.location+"");var t=f.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),f.p=e}();var p={};return(0,f(968).s)(1),function(){"use strict";var i=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},a=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},u=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},c=function(e){var t=this.__data__=new q(e);this.size=t.size},s=function(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new xe;++t<n;)this.add(e[t])},l=function(e){var t=Nt.getState(),n=e(t);n!==t&&Nt.setState(n)},d=function(e){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=Object.values(e.extensions)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=i.value,c=!0,s=!1,l=void 0;try{for(var f,p=u.instances[Symbol.iterator]();!(c=(f=p.next()).done);c=!0){var d=f.value;t.push({slotModuleName:d.slotModuleName,extensionModuleName:u.moduleName,slotName:d.slotName,extensionId:d.id})}}catch(e){s=!0,l=e}finally{try{c||null==p.return||p.return()}finally{if(s)throw l}}}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}Ct(It.configExtensionStore.getState().mountedExtensions,t)||It.configExtensionStore.setState({mountedExtensions:t})},h=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},m=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},y=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){m(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},v=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},g=function(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},b=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}},w=function(e,t,n){var r={},o=!0,i=!1,a=void 0;try{for(var u,c=Object.entries(e.slots)[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var s=v(u.value,2),l=s[0],f=s[1],p=T(l,e,(0,It.getExtensionSlotConfigFromStore)(t,f.name).config,n);r[l]={moduleName:f.moduleName,assignedExtensions:p}}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}Ct(Ut.getState().slots,r)||Ut.setState({slots:r})},_=function(e,t){return{moduleName:t,name:e,attachedIds:[],config:null}},x=function(e){return v(e.split("#"),1)[0]},S=function(e,t){var n=x(t);return e.extensions[n]},E=function(e){return S(Lt.getState(),e)},$=function(e,t){l((function(n){var r=n.slots[e];return y({},n,r?{slots:y({},n.slots,m({},e,y({},r,{attachedIds:g(r.attachedIds).concat([t])})))}:{slots:y({},n.slots,m({},e,y({},_(e),{attachedIds:[t]})))})}))},O=function(e,t){l((function(n){var r=n.slots[e];return r&&r.attachedIds.includes(t)?y({},n,{slots:y({},n.slots,m({},e,y({},r,{attachedIds:r.attachedIds.filter((function(e){return e!==t}))})))}):n}))},k=function(e){l((function(t){var n=t.slots[e];return n?y({},t,{slots:y({},t.slots,m({},e,y({},n,{attachedIds:[]})))}):t}))},j=function(e,t,n,r){var o=t.indexOf(e);if(-1!==o)return o;if(void 0!==n)return 1e3+n;var i=r.indexOf(e);return-1!==i?2e3+i:-1},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null!=t?t:navigator.onLine;return e.filter((function(e){return I(n,e.online,e.offline)}))},T=function(e,t,n,r){var o,i,a,u,c,s,l=(o=n,i=t.slots[e].attachedIds,a=o.add||[],u=o.remove||[],c=o.order||[],s=Lt.getState().extensions,g(i).concat(g(a)).filter((function(e){return!u.includes(e)})).sort((function(e,t){var n,r,o=j(e,c,null===(n=s[x(e)])||void 0===n?void 0:n.order,i),a=j(t,c,null===(r=s[x(t)])||void 0===r?void 0:r.order,i);return-1===a?-1:-1===o?1:o-a}))),f=[],p=!0,d=!1,h=void 0;try{for(var m,y=l[Symbol.iterator]();!(p=(m=y.next()).done);p=!0){var v=m.value,b=(0,It.getExtensionConfigFromStore)(r,e,v).config,w=x(v),_=t.extensions[w];_&&f.push({id:v,name:w,moduleName:_.moduleName,config:b,meta:_.meta,online:_.online,offline:_.offline})}}catch(e){d=!0,h=e}finally{try{p||null==y.return||y.return()}finally{if(d)throw h}}return f},A=function(e){return T(e,Lt.getState(),(0,It.getExtensionSlotConfig)(e).config,Ft.getState())},C=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=navigator.onLine;return I(n,e,t)},I=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Boolean(e?t:n)},R=function(e,t){var n=navigator.onLine?e:t;return"object"==typeof n?n:{}},N=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},D=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},M=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){D(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},L=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},U=function(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},z=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=x(r),u=E(r),c=!0,s=null;if(e){if(!u)throw Error("Couldn't find extension '".concat(a,"' to attach to '").concat(t,"'"));var f=u.load,p=u.online,d=u.offline,h=u.meta,m=u.moduleName;C(p,d)&&(f().then((function(a){var u=a.default,l=L(a,["default"]);c&&(s=(0,qt.mountRootParcel)(o(null!=u?u:l),M({},R(p,d),i,{_meta:h,_extensionContext:{extensionId:r,extensionSlotName:t,extensionSlotModuleName:n,extensionModuleName:m},domElement:e})))})),l((function(o){var i={domElement:e,id:r,slotName:t,slotModuleName:n};return M({},o,{extensions:M({},o.extensions,D({},a,M({},o.extensions[a],{instances:U(o.extensions[a].instances).concat([i])})))})})))}else console.warn("Tried to render ".concat(r," into ").concat(t," but no DOM element was available."));return function(){c=!1,s&&("MOUNTED"!==s.getStatus()?s.mountPromise.then((function(){s&&s.unmount()})):s.unmount())}};f.r(p),f.d(p,{attach:function(){return $},checkStatus:function(){return C},checkStatusFor:function(){return I},detach:function(){return O},detachAll:function(){return k},extensionStore:function(){return Kt},getAssignedExtensions:function(){return A},getConnectedExtensions:function(){return P},getCustomProps:function(){return R},getExtensionInternalStore:function(){return Dt},getExtensionNameFromId:function(){return x},getExtensionRegistration:function(){return E},getExtensionRegistrationFrom:function(){return S},getExtensionStore:function(){return Mt},registerExtension:function(){return Bt},registerExtensionSlot:function(){return Vt},renderExtension:function(){return z},reset:function(){return Wt},updateInternalExtensionStore:function(){return l}});var F=function(e,t){return e===t||e!=e&&t!=t},B=function(e,t){for(var n=e.length;n--;)if(F(e[n][0],t))return n;return-1},V=Array.prototype.splice;i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(e){var t=this.__data__,n=B(t,e);return!(n<0||(n==t.length-1?t.pop():V.call(t,n,1),--this.size,0))},i.prototype.get=function(e){var t=this.__data__,n=B(t,e);return n<0?void 0:t[n][1]},i.prototype.has=function(e){return B(this.__data__,e)>-1},i.prototype.set=function(e,t){var n=this.__data__,r=B(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var W,q=i,K="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,H="object"==typeof self&&self&&self.Object===Object&&self,Z=K||H||Function("return this")(),G=Z.Symbol,Q=Object.prototype,Y=Q.hasOwnProperty,J=Q.toString,X=G?G.toStringTag:void 0,ee=Object.prototype.toString,te=G?G.toStringTag:void 0,ne=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":te&&te in Object(e)?function(e){var t=Y.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=J.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):(t=e,ee.call(t));var t},re=function(e){var t=void 0===e?"undefined":o(e);return null!=e&&("object"==t||"function"==t)},oe=function(e){if(!re(e))return!1;var t=ne(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ie=Z["__core-js_shared__"],ae=(W=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",ue=Function.prototype.toString,ce=function(e){if(null!=e){try{return ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""},se=/^\[object .+?Constructor\]$/,le=Function.prototype,fe=Object.prototype,pe=le.toString,de=fe.hasOwnProperty,he=RegExp("^"+pe.call(de).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=function(e,t){var n,r=null==(n=e)?void 0:n[t];return function(e){return!(!re(e)||(t=e,ae&&ae in t))&&(oe(e)?he:se).test(ce(e));var t}(r)?r:void 0},ye=me(Z,"Map"),ve=me(Object,"create"),ge=Object.prototype.hasOwnProperty,be=Object.prototype.hasOwnProperty;a.prototype.clear=function(){this.__data__=ve?ve(null):{},this.size=0},a.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},a.prototype.get=function(e){var t=this.__data__;if(ve){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ge.call(t,e)?t[e]:void 0},a.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:be.call(t,e)},a.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ve&&void 0===t?"__lodash_hash_undefined__":t,this};var we=a,_e=function(e,t){var n,r,i=e.__data__;return("string"==(r=o(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};u.prototype.clear=function(){this.size=0,this.__data__={hash:new we,map:new(ye||q),string:new we}},u.prototype.delete=function(e){var t=_e(this,e).delete(e);return this.size-=t?1:0,t},u.prototype.get=function(e){return _e(this,e).get(e)},u.prototype.has=function(e){return _e(this,e).has(e)},u.prototype.set=function(e,t){var n=_e(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var xe=u;c.prototype.clear=function(){this.__data__=new q,this.size=0},c.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},c.prototype.get=function(e){return this.__data__.get(e)},c.prototype.has=function(e){return this.__data__.has(e)},c.prototype.set=function(e,t){var n=this.__data__;if(r(n,q)){var o=n.__data__;if(!ye||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new xe(o)}return n.set(e,t),this.size=n.size,this};var Se=c;s.prototype.add=s.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},s.prototype.has=function(e){return this.__data__.has(e)};var Ee=s,$e=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Oe=function(e,t,n,r,o,i){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(e),l=i.get(t);if(s&&l)return s==t&&l==e;var f=-1,p=!0,d=2&n?new Ee:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],m=t[f];if(r)var y=a?r(m,h,f,t,e,i):r(h,m,f,e,t,i);if(void 0!==y){if(y)continue;p=!1;break}if(d){if(!$e(t,(function(e,t){if(a=t,!d.has(a)&&(h===e||o(h,e,n,r,i)))return d.push(t);var a}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p},ke=Z.Uint8Array,je=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Pe=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Te=G?G.prototype:void 0,Ae=Te?Te.valueOf:void 0,Ce=Array.isArray,Ie=Object.prototype.propertyIsEnumerable,Re=Object.getOwnPropertySymbols,Ne=Re?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Re(e),(function(t){return Ie.call(e,t)})))}:function(){return[]},De=function(e){return null!=e&&"object"==typeof e},Me=function(e){return De(e)&&"[object Arguments]"==ne(e)},Le=Object.prototype,Ue=Le.hasOwnProperty,ze=Le.propertyIsEnumerable,Fe=Me(function(){return arguments}())?Me:function(e){return De(e)&&Ue.call(e,"callee")&&!ze.call(e,"callee")},Be=Fe,Ve=t&&!t.nodeType&&t,We=Ve&&e&&!e.nodeType&&e,qe=We&&We.exports===Ve?Z.Buffer:void 0,Ke=(qe?qe.isBuffer:void 0)||function(){return!1},He=/^(?:0|[1-9]\d*)$/,Ze=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ge={};Ge["[object Float32Array]"]=Ge["[object Float64Array]"]=Ge["[object Int8Array]"]=Ge["[object Int16Array]"]=Ge["[object Int32Array]"]=Ge["[object Uint8Array]"]=Ge["[object Uint8ClampedArray]"]=Ge["[object Uint16Array]"]=Ge["[object Uint32Array]"]=!0,Ge["[object Arguments]"]=Ge["[object Array]"]=Ge["[object ArrayBuffer]"]=Ge["[object Boolean]"]=Ge["[object DataView]"]=Ge["[object Date]"]=Ge["[object Error]"]=Ge["[object Function]"]=Ge["[object Map]"]=Ge["[object Number]"]=Ge["[object Object]"]=Ge["[object RegExp]"]=Ge["[object Set]"]=Ge["[object String]"]=Ge["[object WeakMap]"]=!1;var Qe,Ye,Je,Xe=t&&!t.nodeType&&t,et=Xe&&e&&!e.nodeType&&e,tt=et&&et.exports===Xe&&K.process,nt=function(){try{return et&&et.require&&et.require("util").types||tt&&tt.binding&&tt.binding("util")}catch(e){}}(),rt=nt&&nt.isTypedArray,ot=rt?(Qe=rt,function(e){return Qe(e)}):function(e){return De(e)&&Ze(e.length)&&!!Ge[ne(e)]},it=Object.prototype.hasOwnProperty,at=Object.prototype,ut=(Ye=Object.keys,Je=Object,function(e){return Ye(Je(e))}),ct=Object.prototype.hasOwnProperty,st=function(e){return n=Ne,r=function(e){return null!=(t=e)&&Ze(t.length)&&!oe(t)?function(e,t){var n,r,i,a=Ce(e),u=!a&&Be(e),c=!a&&!u&&Ke(e),s=!a&&!u&&!c&&ot(e),l=a||u||c||s,f=l?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],p=f.length;for(var d in e)!it.call(e,d)||l&&("length"==d||c&&("offset"==d||"parent"==d)||s&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(r=p,i=void 0===(n=d)?"undefined":o(n),(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&He.test(n))&&n>-1&&n%1==0&&n<r))||f.push(d);return f}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||at))return ut(e);var t,n,r=[];for(var o in Object(e))ct.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}(t=e),Ce(t)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(t));var t,n,r},lt=Object.prototype.hasOwnProperty,ft=me(Z,"DataView"),pt=me(Z,"Promise"),dt=me(Z,"Set"),ht=me(Z,"WeakMap"),mt="[object Map]",yt="[object Promise]",vt="[object Set]",gt="[object WeakMap]",bt="[object DataView]",wt=ce(ft),_t=ce(ye),xt=ce(pt),St=ce(dt),Et=ce(ht),$t=ne;(ft&&$t(new ft(new ArrayBuffer(1)))!=bt||ye&&$t(new ye)!=mt||pt&&$t(pt.resolve())!=yt||dt&&$t(new dt)!=vt||ht&&$t(new ht)!=gt)&&($t=function(e){var t=ne(e),n="[object Object]"==t?e.constructor:void 0,r=n?ce(n):"";if(r)switch(r){case wt:return bt;case _t:return mt;case xt:return yt;case St:return vt;case Et:return gt}return t});var Ot=$t,kt="[object Arguments]",jt="[object Array]",Pt="[object Object]",Tt=Object.prototype.hasOwnProperty,At=function e(t,n,o,i,a){return t===n||(null==t||null==n||!De(t)&&!De(n)?t!=t&&n!=n:function(e,t,n,o,i,a){var u=Ce(e),c=Ce(t),s=u?jt:Ot(e),l=c?jt:Ot(t),f=(s=s==kt?Pt:s)==Pt,p=(l=l==kt?Pt:l)==Pt,d=s==l;if(d&&Ke(e)){if(!Ke(t))return!1;u=!0,f=!1}if(d&&!f)return a||(a=new Se),u||ot(e)?Oe(e,t,n,o,i,a):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new ke(e),new ke(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return F(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=je;case"[object Set]":var c=1&r;if(u||(u=Pe),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var l=Oe(u(e),u(t),r,o,i,a);return a.delete(e),l;case"[object Symbol]":if(Ae)return Ae.call(e)==Ae.call(t)}return!1}(e,t,s,n,o,i,a);if(!(1&n)){var h=f&&Tt.call(e,"__wrapped__"),m=p&&Tt.call(t,"__wrapped__");if(h||m){var y=h?e.value():e,v=m?t.value():t;return a||(a=new Se),i(y,v,n,o,a)}}return!!d&&(a||(a=new Se),function(e,t,n,o,i,a){var u=1&n,c=st(e),s=c.length;if(s!=st(t).length&&!u)return!1;for(var l=s;l--;){var f=c[l];if(!(u?f in t:lt.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=u;++l<s;){var y=e[f=c[l]],v=t[f];if(o)var g=u?o(v,y,f,t,e,a):o(y,v,f,e,t,a);if(!(void 0===g?y===v||i(y,v,n,o,a):g)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&r(b,b)&&"function"==typeof w&&r(w,w)||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,o,i,a))}(t,n,o,i,e,a))},Ct=function(e,t){return At(e,t)},It=f(824),Rt=f(685),Nt=(0,Rt.createGlobalStore)("extensionsInternal",{slots:{},extensions:{}}),Dt=function(){return(0,Rt.getGlobalStore)("extensionsInternal",{slots:{},extensions:{}})},Mt=function(){return(0,Rt.getGlobalStore)("extensions",{slots:{}})};d(Nt.getState()),Nt.subscribe(d);var Lt=Dt(),Ut=Mt(),zt=(0,It.getExtensionSlotsConfigStore)(),Ft=(0,It.getExtensionsConfigStore)();Lt.subscribe((function(e){w(e,zt.getState(),Ft.getState())})),zt.subscribe((function(e){w(Lt.getState(),e,Ft.getState())})),Ft.subscribe((function(e){w(Lt.getState(),zt.getState(),e)}));var Bt=Lt.action((function(e,t){e.extensions[t.name]=y({},t,{instances:[]})})),Vt=Lt.action((function(e,t,n){var r,o=null===(r=e.slots[n])||void 0===r?void 0:r.moduleName;if(o&&o!=t)return console.warn("An extension slot with the name '".concat(n,'\' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ').concat(o,".")),e;if(o&&o==t)return e;if(e.slots[n])return y({},e,{slots:y({},e.slots,m({},n,y({},e.slots[n],{moduleName:t})))});var i=_(n,t);return y({},e,{slots:y({},e.slots,m({},n,i))})})),Wt=Ut.action((function(){return{slots:{},extensions:{}}})),qt=f(645),Kt=Dt()}(),p}())}}}))},6856:(e,t,n)=>{"use strict";n.d(t,{pv:()=>r.AssignedExtension,x9:()=>o.CancelLoading,uP:()=>r.ConnectedExtension,uu:()=>r.ExtensionMeta,tj:()=>r.ExtensionRegistration,u_:()=>r.ExtensionSlotState,qN:()=>r.ExtensionStore,ub:()=>L,og:()=>U,lW:()=>z,h6:()=>W,Kq:()=>B,EB:()=>N,yw:()=>f,ix:()=>M,Qq:()=>q,H8:()=>x});var r={};n.r(r),n.d(r,{Co:()=>s,yw:()=>f,qO:()=>l});var o={};n.r(o),n.d(o,{H:()=>x});var i=n(9714),a=n(3202),u=n(5385),c=(0,u.createGlobalStore)("extensionsInternal",{slots:{},extensions:{}}),s=function(){return(0,u.getGlobalStore)("extensionsInternal",{slots:{},extensions:{}})};function l(e){var t=c.getState(),n=e(t);n!==t&&c.setState(n)}var f=function(){return(0,u.getGlobalStore)("extensions",{slots:{}})};function p(e){var t=[],n=!0,r=!1,o=void 0;try{for(var u,c=Object.values(e.extensions)[Symbol.iterator]();!(n=(u=c.next()).done);n=!0){var s=u.value,l=!0,f=!1,p=void 0;try{for(var d,h=s.instances[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var m=d.value;t.push({slotModuleName:m.slotModuleName,extensionModuleName:s.moduleName,slotName:m.slotName,extensionId:m.id})}}catch(e){f=!0,p=e}finally{try{l||null==h.return||h.return()}finally{if(f)throw p}}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}(0,a.Z)(i.configExtensionStore.getState().mountedExtensions,t)||i.configExtensionStore.setState({mountedExtensions:t})}function d(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=navigator.onLine;return h(n,e,t)}function h(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Boolean(e?t:n)}function m(e,t){var n=navigator.onLine?e:t;return"object"==typeof n?n:{}}p(c.getState()),c.subscribe(p);var y=n(3710);function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}function w(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=N(r),u=D(r),c=!0,s=null;if(e){if(!u)throw Error("Couldn't find extension '".concat(a,"' to attach to '").concat(t,"'"));var f=u.load,p=u.online,h=u.offline,v=u.meta,x=u.moduleName;d(p,h)&&(f().then((function(a){var u=a.default,l=w(a,["default"]);c&&(s=(0,y.BP)(o(null!=u?u:l),b({},m(p,h),i,{_meta:v,_extensionContext:{extensionId:r,extensionSlotName:t,extensionSlotModuleName:n,extensionModuleName:x},domElement:e})))})),l((function(o){var i={domElement:e,id:r,slotName:t,slotModuleName:n};return b({},o,{extensions:b({},o.extensions,g({},a,b({},o.extensions[a],{instances:_(o.extensions[a].instances).concat([i])})))})})))}else console.warn("Tried to render ".concat(r," into ").concat(t," but no DOM element was available."));return function(){c=!1,s&&("MOUNTED"!==s.getStatus()?s.mountPromise.then((function(){s&&s.unmount()})):s.unmount())}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){E(e,t,n[t])}))}return e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}s();var P=s(),T=f(),A=(0,i.getExtensionSlotsConfigStore)(),C=(0,i.getExtensionsConfigStore)();function I(e,t,n){var r={},o=!0,u=!1,c=void 0;try{for(var s,l=Object.entries(e.slots)[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var f=O(s.value,2),p=f[0],d=f[1],h=V(p,e,(0,i.getExtensionSlotConfigFromStore)(t,d.name).config,n);r[p]={moduleName:d.moduleName,assignedExtensions:h}}}catch(e){u=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(u)throw c}}(0,a.Z)(T.getState().slots,r)||T.setState({slots:r})}function R(e,t){return{moduleName:t,name:e,attachedIds:[],config:null}}function N(e){return O(e.split("#"),1)[0]}function D(e){return function(e,t){var n=N(t);return e.extensions[n]}(P.getState(),e)}P.subscribe((function(e){I(e,A.getState(),C.getState())})),A.subscribe((function(e){I(P.getState(),e,C.getState())})),C.subscribe((function(e){I(P.getState(),A.getState(),e)}));var M=P.action((function(e,t){e.extensions[t.name]=$({},t,{instances:[]})}));function L(e,t){l((function(n){var r=n.slots[e];return $({},n,r?{slots:$({},n.slots,E({},e,$({},r,{attachedIds:k(r.attachedIds).concat([t])})))}:{slots:$({},n.slots,E({},e,$({},R(e),{attachedIds:[t]})))})}))}function U(e,t){l((function(n){var r=n.slots[e];return r&&r.attachedIds.includes(t)?$({},n,{slots:$({},n.slots,E({},e,$({},r,{attachedIds:r.attachedIds.filter((function(e){return e!==t}))})))}):n}))}function z(e){l((function(t){var n=t.slots[e];return n?$({},t,{slots:$({},t.slots,E({},e,$({},n,{attachedIds:[]})))}):t}))}function F(e,t,n,r){var o=t.indexOf(e);if(-1!==o)return o;if(void 0!==n)return 1e3+n;var i=r.indexOf(e);return-1!==i?2e3+i:-1}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null!=t?t:navigator.onLine;return e.filter((function(e){return h(n,e.online,e.offline)}))}function V(e,t,n,r){var o=function(e,t){var n=e.add||[],r=e.remove||[],o=e.order||[],i=P.getState().extensions;return k(t).concat(k(n)).filter((function(e){return!r.includes(e)})).sort((function(e,n){var r,a,u=F(e,o,null===(r=i[N(e)])||void 0===r?void 0:r.order,t),c=F(n,o,null===(a=i[N(n)])||void 0===a?void 0:a.order,t);return-1===c?-1:-1===u?1:u-c}))}(n,t.slots[e].attachedIds),a=[],u=!0,c=!1,s=void 0;try{for(var l,f=o[Symbol.iterator]();!(u=(l=f.next()).done);u=!0){var p=l.value,d=(0,i.getExtensionConfigFromStore)(r,e,p).config,h=N(p),m=t.extensions[h];m&&a.push({id:p,name:h,moduleName:m.moduleName,config:d,meta:m.meta,online:m.online,offline:m.offline})}}catch(e){c=!0,s=e}finally{try{u||null==f.return||f.return()}finally{if(c)throw s}}return a}function W(e){return V(e,P.getState(),(0,i.getExtensionSlotConfig)(e).config,C.getState())}var q=P.action((function(e,t,n){var r,o=null===(r=e.slots[n])||void 0===r?void 0:r.moduleName;if(o&&o!=t)return console.warn("An extension slot with the name '".concat(n,'\' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ').concat(o,".")),e;if(o&&o==t)return e;if(e.slots[n])return $({},e,{slots:$({},e.slots,E({},n,$({},e.slots[n],{moduleName:t})))});var i=R(n,t);return $({},e,{slots:$({},e.slots,E({},n,i))})}));T.action((function(){return{slots:{},extensions:{}}}))},3103:()=>{System.register([],(function(e,t){return{execute:function(){e(function(){var e={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.y=t,r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}();var o={};return(0,r(968).s)(1),function(){"use strict";var e=function(e){window.dispatchEvent(new CustomEvent(p,{detail:{online:e}}))},t=function(e){var t=function(t){return e(t.detail)};return window.addEventListener(p,t),function(){return window.removeEventListener(p,t)}},n=function(e){return e({online:navigator.onLine}),t(e)},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent(d,{detail:e}))},a=function(e){var t=function(t){return e(t.detail)};return window.addEventListener(d,t),function(){return window.removeEventListener(d,t)}},u=function(e){window.dispatchEvent(new CustomEvent(h,{detail:e}))},c=function(e){var t=function(t){return e(t.detail)};return window.addEventListener(h,t),function(){return window.removeEventListener(h,t)}},s=function(e){var t=function(t){return e(t.detail)};return window.addEventListener(m,t),function(){return window.removeEventListener(m,t)}},l=function(e){window.openmrsBase=e.apiUrl,window.spaBase=e.spaPath,window.spaEnv=e.env||"production",window.spaVersion=process.env.BUILD_VERSION,window.getOpenmrsSpaBase=function(){return"".concat(window.spaBase,"/")}},f=function(){window.copyText=function(e){var t=window.getSelection();if(t){var n=document.createRange();n.selectNode(e),t.removeAllRanges(),t.addRange(n),document.execCommand("copy"),t.removeAllRanges()}}};r.r(o),r.d(o,{dispatchConnectivityChanged:function(){return e},dispatchNotificationShown:function(){return u},dispatchPrecacheStaticDependencies:function(){return i},setupPaths:function(){return l},setupUtils:function(){return f},subscribeConnectivity:function(){return n},subscribeConnectivityChanged:function(){return t},subscribeNotificationShown:function(){return c},subscribePrecacheStaticDependencies:function(){return a},subscribeToastShown:function(){return s}});var p="openmrs:connectivity-changed",d="openmrs:precache-static-dependencies",h="openmrs:notification-shown",m="openmrs:toast-shown"}(),o}())}}}))},2034:(e,t,n)=>{"use strict";n.d(t,{ac:()=>r.ConnectivityChangedEvent,hM:()=>r.PrecacheStaticDependenciesEvent,Kj:()=>r.ShowNotificationEvent,P3:()=>r.ShowToastEvent,BW:()=>a,XS:()=>i,NQ:()=>f,dY:()=>c,id:()=>p});var r={};n.r(r),n.d(r,{BW:()=>a,XS:()=>i,NQ:()=>f,dY:()=>c,id:()=>p});var o="openmrs:connectivity-changed";function i(e){var t=function(t){return e(t.detail)};return window.addEventListener(o,t),function(){return window.removeEventListener(o,t)}}function a(e){return e({online:navigator.onLine}),i(e)}var u="openmrs:precache-static-dependencies";function c(e){var t=function(t){return e(t.detail)};return window.addEventListener(u,t),function(){return window.removeEventListener(u,t)}}var s="openmrs:notification-shown",l="openmrs:toast-shown";function f(e){var t=function(t){return e(t.detail)};return window.addEventListener(s,t),function(){return window.removeEventListener(s,t)}}function p(e){var t=function(t){return e(t.detail)};return window.addEventListener(l,t),function(){return window.removeEventListener(l,t)}}},8082:(e,t,n)=>{"use strict";n.d(t,{iC:()=>r.OfflineMode,Vm:()=>r.OfflineModeResult,Cg:()=>o.QueueItemDescriptor,we:()=>o.SyncItem,Ug:()=>o.SyncProcessOptions,jp:()=>zo,Qd:()=>Uo,Gy:()=>Bo,sF:()=>vo,vm:()=>c,xA:()=>gr,H_:()=>wr,Ui:()=>yr,D2:()=>No,WB:()=>Ao,aA:()=>lr,k1:()=>Ur,TI:()=>Mo,Q2:()=>Io,z7:()=>go,gp:()=>no,a7:()=>yo,Rz:()=>uo,QI:()=>io,$9:()=>ao,cV:()=>xr,fR:()=>Er,X2:()=>ko,dt:()=>zr,pO:()=>Or,ME:()=>jr,Xc:()=>vr,Kb:()=>Wo,ps:()=>Tr,mF:()=>Cr,MO:()=>Fr});var r={};n.r(r),n.d(r,{vm:()=>c});var o={};n.r(o),n.d(o,{jp:()=>zo,Qd:()=>Uo,Gy:()=>Bo,D2:()=>No,WB:()=>Ao,TI:()=>Mo,Q2:()=>Io,X2:()=>ko,H_:()=>Wo});var i=n(1602),a=n.n(i),u="unavailable";function c(){return{current:u,notAvailable:!0,active:!1}}var s=n(5385),l=n(7641);const f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,p=Object.keys,d=Array.isArray;function h(e,t){return"object"!=typeof t||p(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||f.Promise||(f.Promise=Promise);const m=Object.getPrototypeOf,y={}.hasOwnProperty;function v(e,t){return y.call(e,t)}function g(e,t){"function"==typeof t&&(t=t(m(e))),("undefined"==typeof Reflect?p:Reflect.ownKeys)(t).forEach((n=>{w(e,n,t[n])}))}const b=Object.defineProperty;function w(e,t,n,r){b(e,t,h(n&&v(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function x(e){return{from:function(t){return e.prototype=Object.create(t.prototype),w(e.prototype,"constructor",e),{extend:g.bind(null,e.prototype)}}}}const S=Object.getOwnPropertyDescriptor;function E(e,t){let n;return S(e,t)||(n=m(e))&&E(n,t)}const $=[].slice;function O(e,t,n){return $.call(e,t,n)}function k(e,t){return t(e)}function j(e){if(!e)throw new Error("Assertion Failed")}function P(e){f.setImmediate?setImmediate(e):setTimeout(e,0)}function T(e,t){return e.reduce(((e,n,r)=>{var o=t(n,r);return o&&(e[o[0]]=o[1]),e}),{})}function A(e,t){if(v(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,o=t.length;r<o;++r){var i=A(e,t[r]);n.push(i)}return n}var a=t.indexOf(".");if(-1!==a){var u=e[t.substr(0,a)];return void 0===u?void 0:A(u,t.substr(a+1))}}function C(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){j("string"!=typeof n&&"length"in n);for(var r=0,o=t.length;r<o;++r)C(e,t[r],n[r])}else{var i=t.indexOf(".");if(-1!==i){var a=t.substr(0,i),u=t.substr(i+1);if(""===u)void 0===n?d(e)&&!isNaN(parseInt(a))?e.splice(a,1):delete e[a]:e[a]=n;else{var c=e[a];c||(c=e[a]={}),C(c,u,n)}}else void 0===n?d(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function I(e){var t={};for(var n in e)v(e,n)&&(t[n]=e[n]);return t}const R=[].concat;function N(e){return R.apply([],e)}const D="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(N([8,16,32,64].map((e=>["Int","Uint","Float"].map((t=>t+e+"Array")))))).filter((e=>f[e])),M=D.map((e=>f[e]));T(D,(e=>[e,!0]));let L=null;function U(e){L="undefined"!=typeof WeakMap&&new WeakMap;const t=z(e);return L=null,t}function z(e){if(!e||"object"!=typeof e)return e;let t=L&&L.get(e);if(t)return t;if(d(e)){t=[],L&&L.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(z(e[n]))}else if(M.indexOf(e.constructor)>=0)t=e;else{const n=m(e);for(var o in t=n===Object.prototype?{}:Object.create(n),L&&L.set(e,t),e)v(e,o)&&(t[o]=z(e[o]))}return t}const{toString:F}={};function B(e){return F.call(e).slice(8,-1)}const V="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",W="symbol"==typeof V?function(e){var t;return null!=e&&(t=e[V])&&t.apply(e)}:function(){return null},q={};function K(e){var t,n,r,o;if(1===arguments.length){if(d(e))return e.slice();if(this===q&&"string"==typeof e)return[e];if(o=W(e)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}const H="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var Z="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function G(e,t){Z=e,Q=t}var Q=()=>!0;const Y=!new Error("").stack;function J(){if(Y)try{throw J.arguments,new Error}catch(e){return e}return new Error}function X(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(Q).map((e=>"\n"+e)).join("")):""}var ee=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],te=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(ee),ne={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function re(e,t){this._e=J(),this.name=e,this.message=t}function oe(e,t){return e+". Errors: "+Object.keys(t).map((e=>t[e].toString())).filter(((e,t,n)=>n.indexOf(e)===t)).join("\n")}function ie(e,t,n,r){this._e=J(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=oe(e,t)}function ae(e,t){this._e=J(),this.name="BulkError",this.failures=Object.keys(t).map((e=>t[e])),this.failuresByPos=t,this.message=oe(e,t)}x(re).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+X(this._e,2))}},toString:function(){return this.name+": "+this.message}}),x(ie).from(re),x(ae).from(re);var ue=te.reduce(((e,t)=>(e[t]=t+"Error",e)),{});const ce=re;var se=te.reduce(((e,t)=>{var n=t+"Error";function r(e,r){this._e=J(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=ne[t]||n,this.inner=null)}return x(r).from(ce),e[t]=r,e}),{});se.Syntax=SyntaxError,se.Type=TypeError,se.Range=RangeError;var le=ee.reduce(((e,t)=>(e[t+"Error"]=se[t],e)),{}),fe=te.reduce(((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=se[t]),e)),{});function pe(){}function de(e){return e}function he(e,t){return null==e||e===de?t:function(n){return t(e(n))}}function me(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ye(e,t){return e===pe?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?me(r,this.onsuccess):r),o&&(this.onerror=this.onerror?me(o,this.onerror):o),void 0!==i?i:n}}function ve(e,t){return e===pe?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?me(n,this.onsuccess):n),r&&(this.onerror=this.onerror?me(r,this.onerror):r)}}function ge(e,t){return e===pe?t:function(n){var r=e.apply(this,arguments);h(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?me(o,this.onsuccess):o),i&&(this.onerror=this.onerror?me(i,this.onerror):i),void 0===r?void 0===a?void 0:a:h(r,a)}}function be(e,t){return e===pe?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function we(e,t){return e===pe?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then((function(){return t.apply(r,i)}))}return t.apply(this,arguments)}}fe.ModifyError=ie,fe.DexieError=re,fe.BulkError=ae;var _e={};const[xe,Se,Ee]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,m(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,m(t),e]})(),$e=Se&&Se.then,Oe=xe&&xe.constructor,ke=!!Ee;var je=!1,Pe=Ee?()=>{Ee.then(Je)}:f.setImmediate?setImmediate.bind(null,Je):f.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver((()=>{Je(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(Je,0)},Te=function(e,t){Ue.push([e,t]),Ce&&(Pe(),Ce=!1)},Ae=!0,Ce=!0,Ie=[],Re=[],Ne=null,De=de,Me={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:xt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((e=>{try{xt(e[0],e[1])}catch(e){}}))}},Le=Me,Ue=[],ze=0,Fe=[];function Be(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=pe,this._lib=!1;var t=this._PSD=Le;if(Z&&(this._stackHolder=J(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==_e)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Ke(this,this._value))}this._state=null,this._value=null,++t.ref,qe(this,e)}const Ve={get:function(){var e=Le,t=ct;function n(n,r){var o=!e.global&&(e!==Le||t!==ct);const i=o&&!pt();var a=new Be(((t,a)=>{Ze(this,new We(wt(n,e,o,i),wt(r,e,o,i),t,a,e))}));return Z&&Ye(a,this),a}return n.prototype=_e,n},set:function(e){w(this,"then",e&&e.prototype===_e?Ve:{get:function(){return e},set:Ve.set})}};function We(e,t,n,r,o){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=o}function qe(e,t){try{t((t=>{if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Xe();t&&"function"==typeof t.then?qe(e,((e,n)=>{t instanceof Be?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,He(e)),n&&et()}}),Ke.bind(null,e))}catch(t){Ke(e,t)}}function Ke(e,t){if(Re.push(t),null===e._state){var n=e._lib&&Xe();t=De(t),e._state=!1,e._value=t,Z&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}((()=>{var n=E(t,"stack");t._promise=e,w(t,"stack",{get:()=>je?n&&(n.get?n.get.apply(t):n.value):e.stack})})),function(e){Ie.some((t=>t._value===e._value))||Ie.push(e)}(e),He(e),n&&et()}}function He(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Ze(e,t[n]);var o=e._PSD;--o.ref||o.finalize(),0===ze&&(++ze,Te((()=>{0==--ze&&tt()}),[]))}function Ze(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++ze,Te(Ge,[n,e,t])}else e._listeners.push(t)}function Ge(e,t,n){try{Ne=t;var r,o=t._value;t._state?r=e(o):(Re.length&&(Re=[]),r=e(o),-1===Re.indexOf(o)&&function(e){for(var t=Ie.length;t;)if(Ie[--t]._value===e._value)return void Ie.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{Ne=null,0==--ze&&tt(),--n.psd.ref||n.psd.finalize()}}function Qe(e,t,n){if(t.length===n)return t;var r="";if(!1===e._state){var o,i,a=e._value;null!=a?(o=a.name||"Error",i=a.message||a,r=X(a,0)):(o=a,i=""),t.push(o+(i?": "+i:"")+r)}return Z&&((r=X(e._stackHolder,2))&&-1===t.indexOf(r)&&t.push(r),e._prev&&Qe(e._prev,t,n)),t}function Ye(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function Je(){Xe()&&et()}function Xe(){var e=Ae;return Ae=!1,Ce=!1,e}function et(){var e,t,n;do{for(;Ue.length>0;)for(e=Ue,Ue=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while(Ue.length>0);Ae=!0,Ce=!0}function tt(){var e=Ie;Ie=[],e.forEach((e=>{e._PSD.onunhandled.call(null,e._value,e)}));for(var t=Fe.slice(0),n=t.length;n;)t[--n]()}function nt(e){return new Be(_e,!1,e)}function rt(e,t){var n=Le;return function(){var r=Xe(),o=Le;try{return yt(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{yt(o,!1),r&&et()}}}g(Be.prototype,{then:Ve,_then:function(e,t){Ze(this,new We(null,null,e,t,Le))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(e=>e instanceof t?n(e):nt(e))):this.then(null,(e=>e&&e.name===t?n(e):nt(e)))},finally:function(e){return this.then((t=>(e(),t)),(t=>(e(),nt(t))))},stack:{get:function(){if(this._stack)return this._stack;try{je=!0;var e=Qe(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{je=!1}}},timeout:function(e,t){return e<1/0?new Be(((n,r)=>{var o=setTimeout((()=>r(new se.Timeout(t))),e);this.then(n,r).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&w(Be.prototype,Symbol.toStringTag,"Dexie.Promise"),Me.env=vt(),g(Be,{all:function(){var e=K.apply(null,arguments).map(dt);return new Be((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(((o,i)=>Be.resolve(o).then((n=>{e[i]=n,--r||t(e)}),n)))}))},resolve:e=>{if(e instanceof Be)return e;if(e&&"function"==typeof e.then)return new Be(((t,n)=>{e.then(t,n)}));var t=new Be(_e,!0,e);return Ye(t,Ne),t},reject:nt,race:function(){var e=K.apply(null,arguments).map(dt);return new Be(((t,n)=>{e.map((e=>Be.resolve(e).then(t,n)))}))},PSD:{get:()=>Le,set:e=>Le=e},totalEchoes:{get:()=>ct},newPSD:lt,usePSD:gt,scheduler:{get:()=>Te,set:e=>{Te=e}},rejectionMapper:{get:()=>De,set:e=>{De=e}},follow:(e,t)=>new Be(((n,r)=>lt(((t,n)=>{var r=Le;r.unhandleds=[],r.onunhandled=n,r.finalize=me((function(){!function(e){Fe.push((function t(){e(),Fe.splice(Fe.indexOf(t),1)})),++ze,Te((()=>{0==--ze&&tt()}),[])}((()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])}))}),r.finalize),e()}),t,n,r)))}),Oe&&(Oe.allSettled&&w(Be,"allSettled",(function(){const e=K.apply(null,arguments).map(dt);return new Be((t=>{0===e.length&&t([]);let n=e.length;const r=new Array(n);e.forEach(((e,o)=>Be.resolve(e).then((e=>r[o]={status:"fulfilled",value:e}),(e=>r[o]={status:"rejected",reason:e})).then((()=>--n||t(r)))))}))})),Oe.any&&"undefined"!=typeof AggregateError&&w(Be,"any",(function(){const e=K.apply(null,arguments).map(dt);return new Be(((t,n)=>{0===e.length&&n(new AggregateError([]));let r=e.length;const o=new Array(r);e.forEach(((e,i)=>Be.resolve(e).then((e=>t(e)),(e=>{o[i]=e,--r||n(new AggregateError(o))}))))}))})));const ot={awaits:0,echoes:0,id:0};var it=0,at=[],ut=0,ct=0,st=0;function lt(e,t,n,r){var o=Le,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++st;var a=Me.env;i.env=ke?{Promise:Be,PromiseProp:{value:Be,configurable:!0,writable:!0},all:Be.all,race:Be.race,allSettled:Be.allSettled,any:Be.any,resolve:Be.resolve,reject:Be.reject,nthen:_t(a.nthen,i),gthen:_t(a.gthen,i)}:{},t&&h(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var u=gt(i,e,n,r);return 0===i.ref&&i.finalize(),u}function ft(){return ot.id||(ot.id=++it),++ot.awaits,ot.echoes+=100,ot.id}function pt(){return!!ot.awaits&&(0==--ot.awaits&&(ot.id=0),ot.echoes=100*ot.awaits,!0)}function dt(e){return ot.echoes&&e&&e.constructor===Oe?(ft(),e.then((e=>(pt(),e)),(e=>(pt(),St(e))))):e}function ht(e){++ct,ot.echoes&&0!=--ot.echoes||(ot.echoes=ot.id=0),at.push(Le),yt(e,!0)}function mt(){var e=at[at.length-1];at.pop(),yt(e,!1)}function yt(e,t){var n=Le;if((t?!ot.echoes||ut++&&e===Le:!ut||--ut&&e===Le)||bt(t?ht.bind(null,e):mt),e!==Le&&(Le=e,n===Me&&(Me.env=vt()),ke)){var r=Me.env.Promise,o=e.env;Se.then=o.nthen,r.prototype.then=o.gthen,(n.global||e.global)&&(Object.defineProperty(f,"Promise",o.PromiseProp),r.all=o.all,r.race=o.race,r.resolve=o.resolve,r.reject=o.reject,o.allSettled&&(r.allSettled=o.allSettled),o.any&&(r.any=o.any))}}function vt(){var e=f.Promise;return ke?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(f,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Se.then,gthen:e.prototype.then}:{}}function gt(e,t,n,r,o){var i=Le;try{return yt(e,!0),t(n,r,o)}finally{yt(i,!1)}}function bt(e){$e.call(xe,e)}function wt(e,t,n,r){return"function"!=typeof e?e:function(){var o=Le;n&&ft(),yt(t,!0);try{return e.apply(this,arguments)}finally{yt(o,!1),r&&bt(pt)}}}function _t(e,t){return function(n,r){return e.call(this,wt(n,t),wt(r,t))}}function xt(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,o={promise:t,reason:e};if(f.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),h(r,o)):f.CustomEvent&&h(r=new CustomEvent("unhandledrejection",{detail:o}),o),r&&f.dispatchEvent&&(dispatchEvent(r),!f.PromiseRejectionEvent&&f.onunhandledrejection))try{f.onunhandledrejection(r)}catch(e){}Z&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}-1===(""+$e).indexOf("[native code]")&&(ft=pt=pe);var St=Be.reject;function Et(e,t,n,r){if(e.idbdb&&(e._state.openComplete||Le.letThrough||e._vip)){var o=e._createTransaction(t,n,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(o){return o.name===ue.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>Et(e,t,n,r)))):St(o)}return o._promise(t,((e,t)=>lt((()=>(Le.trans=o,r(e,t,o)))))).then((e=>o._completion.then((()=>e))))}if(e._state.openComplete)return St(new se.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return St(new se.DatabaseClosed);e.open().catch(pe)}return e._state.dbReadyPromise.then((()=>Et(e,t,n,r)))}const $t=String.fromCharCode(65535),Ot="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",kt=[],jt="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Pt=jt,Tt=jt,At=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function Ct(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const It={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Rt(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=U(t))[e],t)}class Nt{_trans(e,t,n){const r=this._tx||Le.trans,o=this.name;function i(e,n,r){if(!r.schema[o])throw new se.NotFound("Table "+o+" not part of transaction");return t(r.idbtrans,r)}const a=Xe();try{return r&&r.db===this.db?r===Le.trans?r._promise(e,i,n):lt((()=>r._promise(e,i,n)),{trans:r,transless:Le.transless||Le}):Et(this.db,e,[this.name],i)}finally{a&&et()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(t=>this.core.get({trans:t,key:e}).then((e=>this.hook.reading.fire(e))))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(d(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const t=p(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter((e=>e.compound&&t.every((t=>e.keyPath.indexOf(t)>=0))&&e.keyPath.every((e=>t.indexOf(e)>=0))))[0];if(n&&this.db._maxKey!==$t)return this.where(n.name).equals(n.keyPath.map((t=>e[t])));!n&&Z&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);const{idxByName:r}=this.schema,o=this.db._deps.indexedDB;function i(e,t){try{return 0===o.cmp(e,t)}catch(e){return!1}}const[a,u]=t.reduce((([t,n],o)=>{const a=r[o],u=e[o];return[t||a,t||!a?Ct(n,a&&a.multi?e=>{const t=A(e,o);return d(t)&&t.some((e=>i(u,e)))}:e=>i(u,A(e,o))):n]}),[null,null]);return a?this.where(a.name).equals(e[a.keyPath]).filter(u):n?this.filter(u):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,d(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const t=t=>{if(!t)return t;const n=Object.create(e.prototype);for(var r in t)if(v(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass((function(e){h(this,e)}))}add(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let o=e;return r&&n&&(o=Rt(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[o]}))).then((e=>e.numFailures?Be.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{C(e,r,t)}catch(e){}return t}))}update(e,t){if("object"!=typeof e||d(e))return this.where(":id").equals(e).modify(t);{const n=A(e,this.schema.primKey.keyPath);if(void 0===n)return St(new se.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?p(t).forEach((n=>{C(e,n,t[n])})):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let o=e;return r&&n&&(o=Rt(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"put",values:[o],keys:null!=t?[t]:null}))).then((e=>e.numFailures?Be.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{C(e,r,t)}catch(e){}return t}))}delete(e){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:[e]}))).then((e=>e.numFailures?Be.reject(e.failures[0]):void 0))}clear(){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"deleteRange",range:It}))).then((e=>e.numFailures?Be.reject(e.failures[0]):void 0))}bulkGet(e){return this._trans("readonly",(t=>this.core.getMany({keys:e,trans:t}).then((e=>e.map((e=>this.hook.reading.fire(e)))))))}bulkAdd(e,t,n){const r=Array.isArray(t)?t:void 0,o=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new se.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new se.InvalidArgument("Arguments objects and keys must have the same length");const a=e.length;let u=i&&n?e.map(Rt(i)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:u,wantResults:o}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return o?t:n;throw new ae(`${this.name}.bulkAdd(): ${e} of ${a} operations failed`,r)}))}))}bulkPut(e,t,n){const r=Array.isArray(t)?t:void 0,o=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new se.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new se.InvalidArgument("Arguments objects and keys must have the same length");const a=e.length;let u=i&&n?e.map(Rt(i)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:u,wantResults:o}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return o?t:n;throw new ae(`${this.name}.bulkPut(): ${e} of ${a} operations failed`,r)}))}))}bulkDelete(e){const t=e.length;return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:e}))).then((({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new ae(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)}))}}function Dt(e){var t={},n=function(n,r){if(r){for(var o=arguments.length,i=new Array(o-1);--o;)i[o-1]=arguments[o];return t[n].subscribe.apply(null,i),e}if("string"==typeof n)return t[n]};n.addEventType=i;for(var r=1,o=arguments.length;r<o;++r)i(arguments[r]);return n;function i(e,r,o){if("object"==typeof e)return a(e);r||(r=be),o||(o=pe);var i={subscribers:[],fire:o,subscribe:function(e){-1===i.subscribers.indexOf(e)&&(i.subscribers.push(e),i.fire=r(i.fire,e))},unsubscribe:function(e){i.subscribers=i.subscribers.filter((function(t){return t!==e})),i.fire=i.subscribers.reduce(r,o)}};return t[e]=n[e]=i,i}function a(e){p(e).forEach((function(t){var n=e[t];if(d(n))i(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new se.InvalidArgument("Invalid event config");var r=i(t,de,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach((function(e){P((function(){e.apply(null,t)}))}))}))}}))}}function Mt(e,t){return x(t).from({prototype:e}),t}function Lt(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Ut(e,t){e.filter=Ct(e.filter,t)}function zt(e,t,n){var r=e.replayFilter;e.replayFilter=r?()=>Ct(r(),t()):t,e.justLimit=n&&!r}function Ft(e,t){if(e.isPrimKey)return t.primaryKey;const n=t.getIndexByKeyPath(e.index);if(!n)throw new se.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function Bt(e,t,n){const r=Ft(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function Vt(e,t,n,r){const o=e.replayFilter?Ct(e.filter,e.replayFilter()):e.filter;if(e.or){const i={},a=(e,n,r)=>{if(!o||o(n,r,(e=>n.stop(e)),(e=>n.fail(e)))){var a=n.primaryKey,u=""+a;"[object ArrayBuffer]"===u&&(u=""+new Uint8Array(a)),v(i,u)||(i[u]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(a,n),Wt(Bt(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return Wt(Bt(e,r,n),Ct(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function Wt(e,t,n,r){var o=rt(r?(e,t,o)=>n(r(e),t,o):n);return e.then((e=>{if(e)return e.start((()=>{var n=()=>e.continue();t&&!t(e,(e=>n=e),(t=>{e.stop(t),n=pe}),(t=>{e.fail(t),n=pe}))||o(e.value,e,(e=>n=e)),n()}))}))}function qt(e,t){try{const n=Kt(e),r=Kt(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){const n=e.length,r=t.length,o=n<r?n:r;for(let n=0;n<o;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}(Ht(e),Ht(t));case"Array":return function(e,t){const n=e.length,r=t.length,o=n<r?n:r;for(let n=0;n<o;++n){const r=qt(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function Kt(e){const t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";const n=B(e);return"ArrayBuffer"===n?"binary":n}function Ht(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class Zt{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,St.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,St.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=Ct(t.algorithm,e)}_iterate(e,t){return Vt(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&h(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read((n=>Vt(t,e,n,t.table.core)))}count(e){return this._read((e=>{const t=this._ctx,n=t.table.core;if(Lt(t,!0))return n.count({trans:e,query:{index:Ft(t,n.schema),range:t.range}}).then((e=>Math.min(e,t.limit)));var r=0;return Vt(t,(()=>(++r,!1)),e,n).then((()=>r))})).then(e)}sortBy(e,t){const n=e.split(".").reverse(),r=n[0],o=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function u(e,t){var n=i(e,o),r=i(t,o);return n<r?-a:n>r?a:0}return this.toArray((function(e){return e.sort(u)})).then(t)}toArray(e){return this._read((e=>{var t=this._ctx;if("next"===t.dir&&Lt(t,!0)&&t.limit>0){const{valueMapper:n}=t,r=Ft(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then((({result:e})=>n?e.map(n):e))}{const n=[];return Vt(t,(e=>n.push(e)),e,t.table.core).then((()=>n))}}),e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,Lt(t)?zt(t,(()=>{var t=e;return(e,n)=>0===t||(1===t?(--t,!1):(n((()=>{e.advance(t),t=0})),!1))})):zt(t,(()=>{var t=e;return()=>--t<0}))),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),zt(this._ctx,(()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this}until(e,t){return Ut(this._ctx,(function(n,r,o){return!e(n.value)||(r(o),t)})),this}first(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)}last(e){return this.reverse().first(e)}filter(e){var t,n;return Ut(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=Ct(t.isMatch,n),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&Lt(t,!0)&&t.limit>0)return this._read((e=>{var n=Ft(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((({result:e})=>e)).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys((function(e){return e[0]})).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Ut(this._ctx,(function(e){var t=e.primaryKey.toString(),r=v(n,t);return n[t]=!0,!r})),this}modify(e){var t=this._ctx;return this._write((n=>{var r;if("function"==typeof e)r=e;else{var o=p(e),i=o.length;r=function(t){for(var n=!1,r=0;r<i;++r){var a=o[r],u=e[a];A(t,a)!==u&&(C(t,a,u),n=!0)}return n}}const a=t.table.core,{outbound:u,extractKey:c}=a.schema.primaryKey,s=this.db._options.modifyChunkSize||200,l=[];let f=0;const d=[],h=(e,t)=>{const{failures:n,numFailures:r}=t;f+=e-r;for(let e of p(n))l.push(n[e])};return this.clone().primaryKeys().then((o=>{const i=l=>{const f=Math.min(s,o.length-l);return a.getMany({trans:n,keys:o.slice(l,l+f),cache:"immutable"}).then((p=>{const d=[],m=[],y=u?[]:null,v=[];for(let e=0;e<f;++e){const t=p[e],n={value:U(t),primKey:o[l+e]};!1!==r.call(n,n.value,n)&&(null==n.value?v.push(o[l+e]):u||0===qt(c(t),c(n.value))?(m.push(n.value),u&&y.push(o[l+e])):(v.push(o[l+e]),d.push(n.value)))}const g=Lt(t)&&t.limit===1/0&&("function"!=typeof e||e===Gt)&&{index:t.index,range:t.range};return Promise.resolve(d.length>0&&a.mutate({trans:n,type:"add",values:d}).then((e=>{for(let t in e.failures)v.splice(parseInt(t),1);h(d.length,e)}))).then((()=>(m.length>0||g&&"object"==typeof e)&&a.mutate({trans:n,type:"put",keys:y,values:m,criteria:g,changeSpec:"function"!=typeof e&&e}).then((e=>h(m.length,e))))).then((()=>(v.length>0||g&&e===Gt)&&a.mutate({trans:n,type:"delete",keys:v,criteria:g}).then((e=>h(v.length,e))))).then((()=>o.length>l+f&&i(l+s)))}))};return i(0).then((()=>{if(l.length>0)throw new ie("Error modifying one or more objects",l,f,d);return o.length}))}))}))}delete(){var e=this._ctx,t=e.range;return Lt(e)&&(e.isPrimKey&&!Tt||3===t.type)?this._write((n=>{const{primaryKey:r}=e.table.core.schema,o=t;return e.table.core.count({trans:n,query:{index:r,range:o}}).then((t=>e.table.core.mutate({trans:n,type:"deleteRange",range:o}).then((({failures:e,lastResult:n,results:r,numFailures:o})=>{if(o)throw new ie("Could not delete some values",Object.keys(e).map((t=>e[t])),t-o);return t-o}))))})):this.modify(Gt)}}const Gt=(e,t)=>t.value=null;function Qt(e,t){return e<t?-1:e===t?0:1}function Yt(e,t){return e>t?-1:e===t?0:1}function Jt(e,t,n){var r=e instanceof on?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Xt(e){return new e.Collection(e,(()=>rn(""))).limit(0)}function en(e,t,n,r,o,i){for(var a=Math.min(e.length,r.length),u=-1,c=0;c<a;++c){var s=t[c];if(s!==r[c])return o(e[c],n[c])<0?e.substr(0,c)+n[c]+n.substr(c+1):o(e[c],r[c])<0?e.substr(0,c)+r[c]+n.substr(c+1):u>=0?e.substr(0,u)+t[u]+n.substr(u+1):null;o(e[c],s)<0&&(u=c)}return a<r.length&&"next"===i?e+n.substr(e.length):a<e.length&&"prev"===i?e.substr(0,n.length):u<0?null:e.substr(0,u)+r[u]+n.substr(u+1)}function tn(e,t,n,r){var o,i,a,u,c,s,l,f=n.length;if(!n.every((e=>"string"==typeof e)))return Jt(e,"String expected.");function p(e){o=function(e){return"next"===e?e=>e.toUpperCase():e=>e.toLowerCase()}(e),i=function(e){return"next"===e?e=>e.toLowerCase():e=>e.toUpperCase()}(e),a="next"===e?Qt:Yt;var t=n.map((function(e){return{lower:i(e),upper:o(e)}})).sort((function(e,t){return a(e.lower,t.lower)}));u=t.map((function(e){return e.upper})),c=t.map((function(e){return e.lower})),s=e,l="next"===e?"":r}p("next");var d=new e.Collection(e,(()=>nn(u[0],c[f-1]+r)));d._ondirectionchange=function(e){p(e)};var h=0;return d._addAlgorithm((function(e,n,r){var o=e.key;if("string"!=typeof o)return!1;var p=i(o);if(t(p,c,h))return!0;for(var d=null,m=h;m<f;++m){var y=en(o,p,u[m],c[m],a,s);null===y&&null===d?h=m+1:(null===d||a(d,y)>0)&&(d=y)}return n(null!==d?function(){e.continue(d+l)}:r),!1})),d}function nn(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function rn(e){return{type:1,lower:e,upper:e}}class on{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Xt(this):new this.Collection(this,(()=>nn(e,t,!n,!r)))}catch(e){return Jt(this,Ot)}}equals(e){return null==e?Jt(this,Ot):new this.Collection(this,(()=>rn(e)))}above(e){return null==e?Jt(this,Ot):new this.Collection(this,(()=>nn(e,void 0,!0)))}aboveOrEqual(e){return null==e?Jt(this,Ot):new this.Collection(this,(()=>nn(e,void 0,!1)))}below(e){return null==e?Jt(this,Ot):new this.Collection(this,(()=>nn(void 0,e,!1,!0)))}belowOrEqual(e){return null==e?Jt(this,Ot):new this.Collection(this,(()=>nn(void 0,e)))}startsWith(e){return"string"!=typeof e?Jt(this,"String expected."):this.between(e,e+$t,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):tn(this,((e,t)=>0===e.indexOf(t[0])),[e],$t)}equalsIgnoreCase(e){return tn(this,((e,t)=>e===t[0]),[e],"")}anyOfIgnoreCase(){var e=K.apply(q,arguments);return 0===e.length?Xt(this):tn(this,((e,t)=>-1!==t.indexOf(e)),e,"")}startsWithAnyOfIgnoreCase(){var e=K.apply(q,arguments);return 0===e.length?Xt(this):tn(this,((e,t)=>t.some((t=>0===e.indexOf(t)))),e,$t)}anyOf(){const e=K.apply(q,arguments);let t=this._cmp;try{e.sort(t)}catch(e){return Jt(this,Ot)}if(0===e.length)return Xt(this);const n=new this.Collection(this,(()=>nn(e[0],e[e.length-1])));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm(((n,o,i)=>{const a=n.key;for(;t(a,e[r])>0;)if(++r,r===e.length)return o(i),!1;return 0===t(a,e[r])||(o((()=>{n.continue(e[r])})),!1)})),n}notEqual(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=K.apply(q,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return Jt(this,Ot)}const t=e.reduce(((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){const n=this._cmp,r=this._ascending,o=this._descending,i=this._min,a=this._max;if(0===e.length)return Xt(this);if(!e.every((e=>void 0!==e[0]&&void 0!==e[1]&&r(e[0],e[1])<=0)))return Jt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",se.InvalidArgument);const u=!t||!1!==t.includeLowers,c=t&&!0===t.includeUppers;let s,l=r;function f(e,t){return l(e[0],t[0])}try{s=e.reduce((function(e,t){let r=0,o=e.length;for(;r<o;++r){const o=e[r];if(n(t[0],o[1])<0&&n(t[1],o[0])>0){o[0]=i(o[0],t[0]),o[1]=a(o[1],t[1]);break}}return r===o&&e.push(t),e}),[]),s.sort(f)}catch(e){return Jt(this,Ot)}let p=0;const d=c?e=>r(e,s[p][1])>0:e=>r(e,s[p][1])>=0,h=u?e=>o(e,s[p][0])>0:e=>o(e,s[p][0])>=0;let m=d;const y=new this.Collection(this,(()=>nn(s[0][0],s[s.length-1][1],!u,!c)));return y._ondirectionchange=e=>{"next"===e?(m=d,l=r):(m=h,l=o),s.sort(f)},y._addAlgorithm(((e,t,n)=>{for(var o=e.key;m(o);)if(++p,p===s.length)return t(n),!1;return!!function(e){return!d(e)&&!h(e)}(o)||(0===this._cmp(o,s[p][1])||0===this._cmp(o,s[p][0])||t((()=>{l===r?e.continue(s[p][0]):e.continue(s[p][1])})),!1)})),y}startsWithAnyOf(){const e=K.apply(q,arguments);return e.every((e=>"string"==typeof e))?0===e.length?Xt(this):this.inAnyRange(e.map((e=>[e,e+$t]))):Jt(this,"startsWithAnyOf() only works with strings")}}function an(e){return rt((function(t){return un(t),e(t.target.error),!1}))}function un(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const cn=Dt(null,"storagemutated");class sn{_lock(){return j(!Le.global),++this._reculock,1!==this._reculock||Le.global||(Le.lockOwnerFor=this),this}_unlock(){if(j(!Le.global),0==--this._reculock)for(Le.global||(Le.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{gt(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&Le.lockOwnerFor!==this}create(e){if(!this.mode)return this;const t=this.db.idbdb,n=this.db._state.dbOpenError;if(j(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new se.DatabaseClosed(n);case"MissingAPIError":throw new se.MissingAPI(n.message,n);default:throw new se.OpenFailed(n)}if(!this.active)throw new se.TransactionInactive;return j(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=rt((t=>{un(t),this._reject(e.error)})),e.onabort=rt((t=>{un(t),this.active&&this._reject(new se.Abort(e.error)),this.active=!1,this.on("abort").fire(t)})),e.oncomplete=rt((()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&cn.storagemutated.fire(e.mutatedParts)})),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return St(new se.ReadOnly("Transaction is readonly"));if(!this.active)return St(new se.TransactionInactive);if(this._locked())return new Be(((r,o)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,o)},Le])}));if(n)return lt((()=>{var e=new Be(((e,n)=>{this._lock();const r=t(e,n,this);r&&r.then&&r.then(e,n)}));return e.finally((()=>this._unlock())),e._lib=!0,e}));var r=new Be(((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)}));return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();const n=Be.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((()=>n));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var o=t._waitingFor;return new Be(((e,r)=>{n.then((n=>t._waitingQueue.push(rt(e.bind(null,n)))),(e=>t._waitingQueue.push(rt(r.bind(null,e))))).finally((()=>{t._waitingFor===o&&(t._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new se.Abort))}table(e){const t=this._memoizedTables||(this._memoizedTables={});if(v(t,e))return t[e];const n=this.schema[e];if(!n)throw new se.NotFound("Table "+e+" not part of transaction");const r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function ln(e,t,n,r,o,i,a){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+fn(t)}}function fn(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function pn(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:T(n,(e=>[e.name,e]))}}let dn=e=>{try{return e.only([[]]),dn=()=>[[]],[[]]}catch(e){return dn=()=>$t,$t}};function hn(e){return null==e?()=>{}:"string"==typeof e?function(e){return 1===e.split(".").length?t=>t[e]:t=>A(t,e)}(e):t=>A(t,e)}function mn(e){return[].slice.call(e)}let yn=0;function vn(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function gn(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:n,upper:r,lowerOpen:o,upperOpen:i}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!i):void 0===r?t.lowerBound(n,!!o):t.bound(n,r,!!o,!!i)}const{schema:o,hasGetAll:i}=function(e,t){const n=mn(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((e=>t.objectStore(e))).map((e=>{const{keyPath:t,autoIncrement:n}=e,r=d(t),o=null==t,i={},a={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:hn(t)},indexes:mn(e.indexNames).map((t=>e.index(t))).map((e=>{const{name:t,unique:n,multiEntry:r,keyPath:o}=e,a={name:t,compound:d(o),keyPath:o,unique:n,multiEntry:r,extractKey:hn(o)};return i[vn(o)]=a,a})),getIndexByKeyPath:e=>i[vn(e)]};return i[":id"]=a.primaryKey,null!=t&&(i[vn(t)]=a.primaryKey),a}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),a=o.tables.map((e=>function(e){const t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:o,values:i,range:a}){return new Promise(((u,c)=>{u=rt(u);const s=e.objectStore(t),l=null==s.keyPath,f="put"===n||"add"===n;if(!f&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);const{length:p}=o||i||{length:1};if(o&&i&&o.length!==i.length)throw new Error("Given keys array must have same length as given values array.");if(0===p)return u({numFailures:0,failures:{},results:[],lastResult:void 0});let d;const h=[],m=[];let y=0;const v=e=>{++y,un(e)};if("deleteRange"===n){if(4===a.type)return u({numFailures:y,failures:m,results:[],lastResult:void 0});3===a.type?h.push(d=s.clear()):h.push(d=s.delete(r(a)))}else{const[e,t]=f?l?[i,o]:[i,null]:[o,null];if(f)for(let r=0;r<p;++r)h.push(d=t&&void 0!==t[r]?s[n](e[r],t[r]):s[n](e[r])),d.onerror=v;else for(let t=0;t<p;++t)h.push(d=s[n](e[t])),d.onerror=v}const g=e=>{const t=e.target.result;h.forEach(((e,t)=>null!=e.error&&(m[t]=e.error))),u({numFailures:y,failures:m,results:"delete"===n?o:h.map((e=>e.result)),lastResult:t})};d.onerror=e=>{v(e),g(e)},d.onsuccess=g}))},getMany:({trans:e,keys:n})=>new Promise(((r,o)=>{r=rt(r);const i=e.objectStore(t),a=n.length,u=new Array(a);let c,s=0,l=0;const f=e=>{const t=e.target;u[t._pos]=t.result,++l===s&&r(u)},p=an(o);for(let e=0;e<a;++e)null!=n[e]&&(c=i.get(n[e]),c._pos=e,c.onsuccess=f,c.onerror=p,++s);0===s&&r(u)})),get:({trans:e,key:n})=>new Promise(((r,o)=>{r=rt(r);const i=e.objectStore(t).get(n);i.onsuccess=e=>r(e.target.result),i.onerror=an(o)})),query:function(e){return n=>new Promise(((o,i)=>{o=rt(o);const{trans:a,values:u,limit:c,query:s}=n,l=c===1/0?void 0:c,{index:f,range:p}=s,d=a.objectStore(t),h=f.isPrimaryKey?d:d.index(f.name),m=r(p);if(0===c)return o({result:[]});if(e){const e=u?h.getAll(m,l):h.getAllKeys(m,l);e.onsuccess=e=>o({result:e.target.result}),e.onerror=an(i)}else{let e=0;const t=u||!("openKeyCursor"in h)?h.openCursor(m):h.openKeyCursor(m),n=[];t.onsuccess=r=>{const i=t.result;return i?(n.push(u?i.value:i.primaryKey),++e===c?o({result:n}):void i.continue()):o({result:n})},t.onerror=an(i)}}))}(i),openCursor:function({trans:e,values:n,query:o,reverse:i,unique:a}){return new Promise(((u,c)=>{u=rt(u);const{index:s,range:l}=o,f=e.objectStore(t),p=s.isPrimaryKey?f:f.index(s.name),d=i?a?"prevunique":"prev":a?"nextunique":"next",h=n||!("openKeyCursor"in p)?p.openCursor(r(l),d):p.openKeyCursor(r(l),d);h.onerror=an(c),h.onsuccess=rt((t=>{const n=h.result;if(!n)return void u(null);n.___id=++yn,n.done=!1;const r=n.continue.bind(n);let o=n.continuePrimaryKey;o&&(o=o.bind(n));const i=n.advance.bind(n),a=()=>{throw new Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw new Error("Cursor not started")},n.fail=rt(c),n.next=function(){let e=1;return this.start((()=>e--?this.continue():this.stop())).then((()=>this))},n.start=e=>{const t=new Promise(((e,t)=>{e=rt(e),h.onerror=an(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=a,e(t)}})),u=()=>{if(h.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw new Error("Cursor behind last entry")},n.stop()};return h.onsuccess=rt((e=>{h.onsuccess=u,u()})),n.continue=r,n.continuePrimaryKey=o,n.advance=i,u(),t},u(n)}),c)}))},count({query:e,trans:n}){const{index:o,range:i}=e;return new Promise(((e,a)=>{const u=n.objectStore(t),c=o.isPrimaryKey?u:u.index(o.name),s=r(i),l=s?c.count(s):c.count();l.onsuccess=rt((t=>e(t.target.result))),l.onerror=an(a)}))}}}(e))),u={};return a.forEach((e=>u[e.name]=e)),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!u[e])throw new Error(`Table '${e}' not found`);return u[e]},MIN_KEY:-1/0,MAX_KEY:dn(t),schema:o}}function bn({_novip:e},t){const n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},o){const i=function(e,t){return t.reduce(((e,{create:t})=>({...e,...t(e)})),e)}(gn(t,n,o),e.dbcore);return{dbcore:i}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((t=>{const n=t.name;e.core.schema.tables.some((e=>e.name===n))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function wn({_novip:e},t,n,r){n.forEach((n=>{const o=r[n];t.forEach((t=>{const r=E(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?w(t,n,{get(){return this.table(n)},set(e){b(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,o))}))}))}function _n({_novip:e},t){t.forEach((t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]}))}function xn(e,t){return e._cfg.version-t._cfg.version}function Sn(e,t,n,r){const o=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,o);i.create(n),i._completion.catch(r);const a=i._reject.bind(i),u=Le.transless||Le;lt((()=>{Le.trans=i,Le.transless=u,0===t?(p(o).forEach((e=>{$n(n,e,o[e].primKey,o[e].indexes)})),bn(e,n),Be.follow((()=>e.on.populate.fire(i))).catch(a)):function({_novip:e},t,n,r){const o=[],i=e._versions;let a=e._dbSchema=kn(0,e.idbdb,r),u=!1;return i.filter((e=>e._cfg.version>=t)).forEach((i=>{o.push((()=>{const o=a,c=i._cfg.dbschema;jn(e,o,r),jn(e,c,r),a=e._dbSchema=c;const s=En(o,c);s.add.forEach((e=>{$n(r,e[0],e[1].primKey,e[1].indexes)})),s.change.forEach((e=>{if(e.recreate)throw new se.Upgrade("Not yet support for changing primary key");{const t=r.objectStore(e.name);e.add.forEach((e=>On(t,e))),e.change.forEach((e=>{t.deleteIndex(e.name),On(t,e)})),e.del.forEach((e=>t.deleteIndex(e)))}}));const l=i._cfg.contentUpgrade;if(l&&i._cfg.version>t){bn(e,r),n._memoizedTables={},u=!0;let t=I(c);s.del.forEach((e=>{t[e]=o[e]})),_n(e,[e.Transaction.prototype]),wn(e,[e.Transaction.prototype],p(t),t),n.schema=t;const i=H(l);let a;i&&ft();const f=Be.follow((()=>{if(a=l(n),a&&i){var e=pt.bind(null,null);a.then(e,e)}}));return a&&"function"==typeof a.then?Be.resolve(a):f.then((()=>a))}})),o.push((t=>{u&&Pt||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((n=>null==e[n]&&t.db.deleteObjectStore(n)))}(i._cfg.dbschema,t),_n(e,[e.Transaction.prototype]),wn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema}))})),function e(){return o.length?Be.resolve(o.shift()(n.idbtrans)).then(e):Be.resolve()}().then((()=>{var e,t;t=r,p(e=a).forEach((n=>{t.db.objectStoreNames.contains(n)||$n(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,i,n).catch(a)}))}function En(e,t){const n={del:[],add:[],change:[]};let r;for(r in e)t[r]||n.del.push(r);for(r in t){const o=e[r],i=t[r];if(o){const e={name:r,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!jt)e.recreate=!0,n.change.push(e);else{const t=o.idxByName,r=i.idxByName;let a;for(a in t)r[a]||e.del.push(a);for(a in r){const n=t[a],o=r[a];n?n.src!==o.src&&e.change.push(o):e.add.push(o)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}}else n.add.push([r,i])}return n}function $n(e,t,n,r){const o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((e=>On(o,e))),o}function On(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function kn(e,t,n){const r={};return O(t.objectStoreNames,0).forEach((e=>{const t=n.objectStore(e);let o=t.keyPath;const i=ln(fn(o),o||"",!1,!1,!!t.autoIncrement,o&&"string"!=typeof o,!0),a=[];for(let e=0;e<t.indexNames.length;++e){const n=t.index(t.indexNames[e]);o=n.keyPath;var u=ln(n.name,o,!!n.unique,!!n.multiEntry,!1,o&&"string"!=typeof o,!1);a.push(u)}r[e]=pn(e,i,a)})),r}function jn({_novip:e},t,n){const r=n.db.objectStoreNames;for(let o=0;o<r.length;++o){const i=r[o],a=n.objectStore(i);e._hasGetAll="getAll"in a;for(let e=0;e<a.indexNames.length;++e){const n=a.indexNames[e],r=a.index(n).keyPath,o="string"==typeof r?r:"["+O(r).join("+")+"]";if(t[i]){const e=t[i].idxByName[o];e&&(e.name=n,delete t[i].idxByName[o],t[i].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&f.WorkerGlobalScope&&f instanceof f.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class Pn{_parseStoresSpec(e,t){p(e).forEach((n=>{if(null!==e[n]){var r=e[n].split(",").map(((e,t)=>{const n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return ln(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),d(r),0===t)})),o=r.shift();if(o.multi)throw new se.Schema("Primary key cannot be multi-valued");r.forEach((e=>{if(e.auto)throw new se.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new se.Schema("Index must have a name and cannot be an empty string")})),t[n]=pn(n,o,r)}}))}stores(e){const t=this.db;this._cfg.storesSource=this._cfg.storesSource?h(this._cfg.storesSource,e):e;const n=t._versions,r={};let o={};return n.forEach((e=>{h(r,e._cfg.storesSource),o=e._cfg.dbschema={},e._parseStoresSpec(r,o)})),t._dbSchema=o,_n(t,[t._allTables,t,t.Transaction.prototype]),wn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],p(o),o),t._storeNames=p(o),this}upgrade(e){return this._cfg.contentUpgrade=we(this._cfg.contentUpgrade||pe,e),this}}function Tn(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new Yn("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function An(e){return e&&"function"==typeof e.databases}function Cn(e){return lt((function(){return Le.letThrough=!0,e()}))}function In(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function Rn(e){var t=t=>e.next(t),n=o(t),r=o((t=>e.throw(t)));function o(e){return t=>{var o=e(t),i=o.value;return o.done?i:i&&"function"==typeof i.then?i.then(n,r):d(i)?Promise.all(i).then(n,r):n(i)}}return o(t)()}function Nn(e,t,n){var r=arguments.length;if(r<2)throw new se.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];n=o.pop();var i=N(o);return[e,i,n]}function Dn(e,t,n,r,o){return Be.resolve().then((()=>{const i=Le.transless||Le,a=e._createTransaction(t,n,e._dbSchema,r),u={trans:a,transless:i};if(r)a.idbtrans=r.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(r){return r.name===ue.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>Dn(e,t,n,null,o)))):St(r)}const c=H(o);let s;c&&ft();const l=Be.follow((()=>{if(s=o.call(a,a),s)if(c){var e=pt.bind(null,null);s.then(e,e)}else"function"==typeof s.next&&"function"==typeof s.throw&&(s=Rn(s))}),u);return(s&&"function"==typeof s.then?Be.resolve(s).then((e=>a.active?e:St(new se.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):l.then((()=>s))).then((e=>(r&&a._resolve(),a._completion.then((()=>e))))).catch((e=>(a._reject(e),St(e))))}))}function Mn(e,t,n){const r=d(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}const Ln={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const n=e.table(t),{schema:r}=n,o={},i=[];function a(e,t,n){const r=vn(e),u=o[r]=o[r]||[],c=null==e?0:"string"==typeof e?1:e.length,s=t>0,l={...n,isVirtual:s,keyTail:t,keyLength:c,extractKey:hn(e),unique:!s&&n.unique};return u.push(l),l.isPrimaryKey||i.push(l),c>1&&a(2===c?e[0]:e.slice(0,c-1),t+1,n),u.sort(((e,t)=>e.keyTail-t.keyTail)),l}const u=a(r.primaryKey.keyPath,0,r.primaryKey);o[":id"]=[u];for(const e of r.indexes)a(e.keyPath,0,e);function c(t){const n=t.query.index;return n.isVirtual?{...t,query:{index:n,range:(r=t.query.range,o=n.keyTail,{type:1===r.type?2:r.type,lower:Mn(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,o),lowerOpen:!0,upper:Mn(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,o),upperOpen:!0})}}:t;var r,o}const s={...n,schema:{...r,primaryKey:u,indexes:i,getIndexByKeyPath:function(e){const t=o[vn(e)];return t&&t[0]}},count:e=>n.count(c(e)),query:e=>n.query(c(e)),openCursor(t){const{keyTail:r,isVirtual:o,keyLength:i}=t.query.index;return o?n.openCursor(c(t)).then((n=>n&&function(n){const o=Object.create(n,{continue:{value:function(o){null!=o?n.continue(Mn(o,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,i).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,o){n.continuePrimaryKey(Mn(t,e.MAX_KEY,r),o)}},primaryKey:{get:()=>n.primaryKey},key:{get(){const e=n.key;return 1===i?e[0]:e.slice(0,i)}},value:{get:()=>n.value}});return o}(n))):n.openCursor(t)}};return s}}}};function Un(e,t,n,r){return n=n||{},r=r||"",p(e).forEach((o=>{if(v(t,o)){var i=e[o],a=t[o];if("object"==typeof i&&"object"==typeof a&&i&&a){const e=B(i);e!==B(a)?n[r+o]=t[o]:"Object"===e?Un(i,a,n,r+o+"."):i!==a&&(n[r+o]=t[o])}else i!==a&&(n[r+o]=t[o])}else n[r+o]=void 0})),p(t).forEach((o=>{v(e,o)||(n[r+o]=t[o])})),n}const zn={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const n=e.table(t),{primaryKey:r}=n.schema,o={...n,mutate(e){const o=Le.trans,{deleting:i,creating:a,updating:u}=o.table(t).hook;switch(e.type){case"add":if(a.fire===pe)break;return o._promise("readwrite",(()=>c(e)),!0);case"put":if(a.fire===pe&&u.fire===pe)break;return o._promise("readwrite",(()=>c(e)),!0);case"delete":if(i.fire===pe)break;return o._promise("readwrite",(()=>c(e)),!0);case"deleteRange":if(i.fire===pe)break;return o._promise("readwrite",(()=>function(e){return s(e.trans,e.range,1e4)}(e)),!0)}return n.mutate(e);function c(e){const t=Le.trans,o=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(r,e);if(!o)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:o}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,o).then((c=>{const s=o.map(((n,o)=>{const s=c[o],l={onerror:null,onsuccess:null};if("delete"===e.type)i.fire.call(l,n,s,t);else if("add"===e.type||void 0===s){const i=a.fire.call(l,n,e.values[o],t);null==n&&null!=i&&(n=i,e.keys[o]=n,r.outbound||C(e.values[o],r.keyPath,n))}else{const r=Un(s,e.values[o]),i=u.fire.call(l,r,n,s,t);if(i){const t=e.values[o];Object.keys(i).forEach((e=>{v(t,e)?t[e]=i[e]:C(t,e,i[e])}))}}return l}));return n.mutate(e).then((({failures:t,results:n,numFailures:r,lastResult:i})=>{for(let r=0;r<o.length;++r){const i=n?n[r]:o[r],a=s[r];null==i?a.onerror&&a.onerror(t[r]):a.onsuccess&&a.onsuccess("put"===e.type&&c[r]?e.values[r]:i)}return{failures:t,results:n,numFailures:r,lastResult:i}})).catch((e=>(s.forEach((t=>t.onerror&&t.onerror(e))),Promise.reject(e))))}))}function s(e,t,o){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:o}).then((({result:n})=>c({type:"delete",keys:n,trans:e}).then((r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<o?{failures:[],numFailures:0,lastResult:void 0}:s(e,{...t,lower:n[n.length-1],lowerOpen:!0},o)))))}}};return o}})};function Fn(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;const r=[];for(let o=0,i=0;o<t.keys.length&&i<e.length;++o)0===qt(t.keys[o],e[i])&&(r.push(n?U(t.values[o]):t.values[o]),++i);return r.length===e.length?r:null}catch(e){return null}}const Bn={stack:"dbcore",level:-1,create:e=>({table:t=>{const n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);const t=Fn(e.keys,e.trans._cache,"clone"===e.cache);return t?Be.resolve(t):n.getMany(e).then((t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?U(t):t},t)))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function Vn(e){return!("from"in e)}const Wn=function(e,t){if(!this){const t=new Wn;return e&&"d"in e&&h(t,e),t}h(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function qn(e,t,n){const r=qt(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(Vn(e))return h(e,{from:t,to:n,d:1});const o=e.l,i=e.r;if(qt(n,e.from)<0)return o?qn(o,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Zn(e);if(qt(t,e.to)>0)return i?qn(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Zn(e);qt(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),qt(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);const a=!e.r;o&&!e.l&&Kn(e,o),i&&a&&Kn(e,i)}function Kn(e,t){Vn(t)||function e(t,{from:n,to:r,l:o,r:i}){qn(t,n,r),o&&e(t,o),i&&e(t,i)}(e,t)}function Hn(e){let t=Vn(e)?null:{s:0,n:e};return{next(e){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&qt(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||qt(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Zn(e){var t,n;const r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),o=r>1?"r":r<-1?"l":"";if(o){const t="r"===o?"l":"r",n={...e},r=e[o];e.from=r.from,e.to=r.to,e[o]=r[o],n[o]=r[t],e[t]=n,n.d=Gn(n)}e.d=Gn(e)}function Gn({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}g(Wn.prototype,{add(e){return Kn(this,e),this},addKey(e){return qn(this,e,e),this},addKeys(e){return e.forEach((e=>qn(this,e,e))),this},[V](){return Hn(this)}});const Qn={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,n=new Wn(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{const o=e.table(r),{schema:i}=o,{primaryKey:a}=i,{extractKey:u,outbound:c}=a,s={...o,mutate:e=>{const a=e.trans,u=a.mutatedParts||(a.mutatedParts={}),c=e=>{const n=`idb://${t}/${r}/${e}`;return u[n]||(u[n]=new Wn)},s=c(""),l=c(":dels"),{type:f}=e;let[p,h]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[];const m=e.trans._cache;return o.mutate(e).then((e=>{if(d(p)){"delete"!==f&&(p=e.results),s.addKeys(p);const t=Fn(p,m);t||"add"===f||l.addKeys(p),(t||h)&&function(e,t,n,r){t.indexes.forEach((function(t){const o=e(t.name||"");function i(e){return null!=e?t.extractKey(e):null}const a=e=>t.multiEntry&&d(e)?e.forEach((e=>o.addKey(e))):o.addKey(e);(n||r).forEach(((e,t)=>{const o=n&&i(n[t]),u=r&&i(r[t]);0!==qt(o,u)&&(null!=o&&a(o),null!=u&&a(u))}))}))}(c,i,t,h)}else if(p){const e={from:p.lower,to:p.upper};l.add(e),s.add(e)}else s.add(n),l.add(n),i.indexes.forEach((e=>c(e.name).add(n)));return e}))}},l=({query:{index:t,range:n}})=>{var r,o;return[t,new Wn(null!==(r=n.lower)&&void 0!==r?r:e.MIN_KEY,null!==(o=n.upper)&&void 0!==o?o:e.MAX_KEY)]},f={get:e=>[a,new Wn(e.key)],getMany:e=>[a,(new Wn).addKeys(e.keys)],count:l,query:l,openCursor:l};return p(f).forEach((e=>{s[e]=function(i){const{subscr:a}=Le;if(a){const s=e=>{const n=`idb://${t}/${r}/${e}`;return a[n]||(a[n]=new Wn)},l=s(""),p=s(":dels"),[d,h]=f[e](i);if(s(d.name||"").add(h),!d.isPrimaryKey){if("count"!==e){const t="query"===e&&c&&i.values&&o.query({...i,values:!1});return o[e].apply(this,arguments).then((n=>{if("query"===e){if(c&&i.values)return t.then((({result:e})=>(l.addKeys(e),n)));const e=i.values?n.result.map(u):n.result;i.values?l.addKeys(e):p.addKeys(e)}else if("openCursor"===e){const e=n,t=i.values;return e&&Object.create(e,{key:{get:()=>(p.addKey(e.primaryKey),e.key)},primaryKey:{get(){const t=e.primaryKey;return p.addKey(t),t}},value:{get:()=>(t&&l.addKey(e.primaryKey),e.value)}})}return n}))}p.add(n)}}return o[e].apply(this,arguments)}})),s}}}};class Yn{constructor(e,t){this._middlewares={},this.verno=0;const n=Yn.dependencies;this._options=t={addons:Yn.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:r}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const o={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:pe,dbReadyPromise:null,cancelOpen:pe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var i;o.dbReadyPromise=new Be((e=>{o.dbReadyResolve=e})),o.openCanceller=new Be(((e,t)=>{o.cancelOpen=t})),this._state=o,this.name=e,this.on=Dt(this,"populate","blocked","versionchange","close",{ready:[we,pe]}),this.on.ready.subscribe=k(this.on.ready.subscribe,(e=>(t,n)=>{Yn.vip((()=>{const r=this._state;if(r.openComplete)r.dbOpenError||Be.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);const r=this;n||e((function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)}))}}))})),this.Collection=(i=this,Mt(Zt.prototype,(function(e,t){this.db=i;let n=It,r=null;if(t)try{n=t()}catch(e){r=e}const o=e._ctx,a=o.table,u=a.hook.reading.fire;this._ctx={table:a,index:o.index,isPrimKey:!o.index||a.schema.primKey.keyPath&&o.index===a.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:o.or,valueMapper:u!==de?u:null}}))),this.Table=function(e){return Mt(Nt.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Dt(null,{creating:[ye,pe],reading:[he,de],updating:[ge,pe],deleting:[ve,pe]})}))}(this),this.Transaction=function(e){return Mt(sn.prototype,(function(t,n,r,o,i){this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=o,this.idbtrans=null,this.on=Dt(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Be(((e,t)=>{this._resolve=e,this._reject=t})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),St(e)}))}))}(this),this.Version=function(e){return Mt(Pn.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return Mt(on.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};const o=e._deps.indexedDB;if(!o)throw new se.MissingAPI;this._cmp=this._ascending=o.cmp.bind(o),this._descending=(e,t)=>o.cmp(t,e),this._max=(e,t)=>o.cmp(e,t)>0?e:t,this._min=(e,t)=>o.cmp(e,t)<0?e:t,this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()})),this.on("blocked",(e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)})),this._maxKey=dn(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),kt.filter((e=>e.name===this.name&&e!==this&&!e._state.vcFired)).map((t=>t.on("versionchange").fire(e)))},this.use(Ln),this.use(zn),this.use(Qn),this.use(Bn),this.vip=Object.create(this,{_vip:{value:!0}}),r.forEach((e=>e(this)))}version(e){if(isNaN(e)||e<.1)throw new se.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new se.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const t=this._versions;var n=t.filter((t=>t._cfg.version===e))[0];return n||(n=new this.Version(e),t.push(n),t.sort(xn),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||Le.letThrough||this._vip)?e():new Be(((e,t)=>{if(this._state.openComplete)return t(new se.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new se.DatabaseClosed);this.open().catch(pe)}this._state.dbReadyPromise.then(e,t)})).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});const o=this._middlewares[e]||(this._middlewares[e]=[]);return o.push({stack:e,create:t,level:null==n?10:n,name:r}),o.sort(((e,t)=>e.level-t.level)),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((e=>n?e.create!==n:!!t&&e.name!==t))),this}open(){return function(e){const t=e._state,{indexedDB:n}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((()=>t.dbOpenError?St(t.dbOpenError):e));Z&&(t.openCanceller._stackHolder=J()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const r=t.openCanceller;function o(){if(t.openCanceller!==r)throw new se.DatabaseClosed("db.open() was cancelled")}let i=t.dbReadyResolve,a=null,u=!1;return Be.race([r,("undefined"==typeof navigator?Be.resolve():In()).then((()=>new Be(((r,i)=>{if(o(),!n)throw new se.MissingAPI;const c=e.name,s=t.autoSchema?n.open(c):n.open(c,Math.round(10*e.verno));if(!s)throw new se.MissingAPI;s.onerror=an(i),s.onblocked=rt(e._fireOnBlocked),s.onupgradeneeded=rt((r=>{if(a=s.transaction,t.autoSchema&&!e._options.allowEmptyDB){s.onerror=un,a.abort(),s.result.close();const e=n.deleteDatabase(c);e.onsuccess=e.onerror=rt((()=>{i(new se.NoSuchDatabase(`Database ${c} doesnt exist`))}))}else{a.onerror=an(i);var o=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;u=o<1,e._novip.idbdb=s.result,Sn(e,o/10,a,i)}}),i),s.onsuccess=rt((()=>{a=null;const n=e._novip.idbdb=s.result,o=O(n.objectStoreNames);if(o.length>0)try{const r=n.transaction(1===(i=o).length?i[0]:i,"readonly");t.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;const r=e._dbSchema=kn(0,t,n);e._storeNames=O(t.objectStoreNames,0),wn(e,[e._allTables],p(r),r)}(e,n,r):(jn(e,e._dbSchema,r),function(e,t){const n=En(kn(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((e=>e.add.length||e.change.length)))}(e,r)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),bn(e,r)}catch(e){}var i;kt.push(e),n.onversionchange=rt((n=>{t.vcFired=!0,e.on("versionchange").fire(n)})),n.onclose=rt((t=>{e.on("close").fire(t)})),u&&function({indexedDB:e,IDBKeyRange:t},n){!An(e)&&"__dbnames"!==n&&Tn(e,t).put({name:n}).catch(pe)}(e._deps,c),r()}),i)}))))]).then((()=>(o(),t.onReadyBeingFired=[],Be.resolve(Cn((()=>e.on.ready.fire(e.vip)))).then((function n(){if(t.onReadyBeingFired.length>0){let r=t.onReadyBeingFired.reduce(we,pe);return t.onReadyBeingFired=[],Be.resolve(Cn((()=>r(e.vip)))).then(n)}}))))).finally((()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((()=>e)).catch((n=>{t.dbOpenError=n;try{a&&a.abort()}catch(e){}return r===t.openCanceller&&e._close(),St(n)})).finally((()=>{t.openComplete=!0,i()}))}(this)}_close(){const e=this._state,t=kt.indexOf(this);if(t>=0&&kt.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new Be((t=>{e.dbReadyResolve=t})),e.openCanceller=new Be(((t,n)=>{e.cancelOpen=n}))}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new se.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,t=this._state;return new Be(((n,r)=>{const o=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=rt((()=>{!function({indexedDB:e,IDBKeyRange:t},n){!An(e)&&"__dbnames"!==n&&Tn(e,t).delete(n).catch(pe)}(this._deps,this.name),n()})),e.onerror=an(r),e.onblocked=this._fireOnBlocked};if(e)throw new se.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(o):o()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return p(this._allTables).map((e=>this._allTables[e]))}transaction(){const e=Nn.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r=Le.trans;r&&r.db===this&&-1===e.indexOf("!")||(r=null);const o=-1!==e.indexOf("?");let i,a;e=e.replace("!","").replace("?","");try{if(a=t.map((e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||"readonly"===e)i="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new se.InvalidArgument("Invalid transaction mode: "+e);i="readwrite"}if(r){if("readonly"===r.mode&&"readwrite"===i){if(!o)throw new se.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&a.forEach((e=>{if(r&&-1===r.storeNames.indexOf(e)){if(!o)throw new se.SubTransaction("Table "+e+" not included in parent transaction.");r=null}})),o&&r&&!r.active&&(r=null)}}catch(e){return r?r._promise(null,((t,n)=>{n(e)})):St(e)}const u=Dn.bind(null,this,i,a,r,n);return r?r._promise(i,u,"lock"):Le.trans?gt(Le.transless,(()=>this._whenReady(u))):this._whenReady(u)}table(e){if(!v(this._allTables,e))throw new se.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const Jn="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class Xn{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[Jn](){return this}}function er(e,t){return p(t).forEach((n=>{Kn(e[n]||(e[n]=new Wn),t[n])})),e}let tr;try{tr={indexedDB:f.indexedDB||f.mozIndexedDB||f.webkitIndexedDB||f.msIndexedDB,IDBKeyRange:f.IDBKeyRange||f.webkitIDBKeyRange}}catch(f){tr={indexedDB:null,IDBKeyRange:null}}const nr=Yn;function rr(e){let t=or;try{or=!0,cn.storagemutated.fire(e)}finally{or=t}}g(nr,{...fe,delete:e=>new nr(e,{addons:[]}).delete(),exists:e=>new nr(e,{addons:[]}).open().then((e=>(e.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(e){try{return function({indexedDB:e,IDBKeyRange:t}){return An(e)?Promise.resolve(e.databases()).then((e=>e.map((e=>e.name)).filter((e=>"__dbnames"!==e)))):Tn(e,t).toCollection().primaryKeys()}(nr.dependencies).then(e)}catch(e){return St(new se.MissingAPI)}},defineClass:()=>function(e){h(this,e)},ignoreTransaction:e=>Le.trans?gt(Le.transless,e):e(),vip:Cn,async:function(e){return function(){try{var t=Rn(e.apply(this,arguments));return t&&"function"==typeof t.then?t:Be.resolve(t)}catch(e){return St(e)}}},spawn:function(e,t,n){try{var r=Rn(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:Be.resolve(r)}catch(e){return St(e)}},currentTransaction:{get:()=>Le.trans||null},waitFor:function(e,t){const n=Be.resolve("function"==typeof e?nr.ignoreTransaction(e):e).timeout(t||6e4);return Le.trans?Le.trans.waitFor(n):n},Promise:Be,debug:{get:()=>Z,set:e=>{G(e,"dexie"===e?()=>!0:At)}},derive:x,extend:h,props:g,override:k,Events:Dt,on:cn,liveQuery:function(e){return new Xn((t=>{const n=H(e);let r=!1,o={},i={};const a={get closed(){return r},unsubscribe:()=>{r=!0,cn.storagemutated.unsubscribe(l)}};t.start&&t.start(a);let u=!1,c=!1;function s(){return p(i).some((e=>o[e]&&function(e,t){const n=Hn(t);let r=n.next();if(r.done)return!1;let o=r.value;const i=Hn(e);let a=i.next(o.from),u=a.value;for(;!r.done&&!a.done;){if(qt(u.from,o.to)<=0&&qt(u.to,o.from)>=0)return!0;qt(o.from,u.from)<0?o=(r=n.next(u.from)).value:u=(a=i.next(o.from)).value}return!1}(o[e],i[e])))}const l=e=>{er(o,e),s()&&f()},f=()=>{if(u||r)return;o={};const p={},d=function(t){n&&ft();const r=()=>lt(e,{subscr:t,trans:null}),o=Le.trans?gt(Le.transless,r):r();return n&&o.then(pt,pt),o}(p);c||(cn("storagemutated",l),c=!0),u=!0,Promise.resolve(d).then((e=>{u=!1,r||(s()?f():(o={},i=p,t.next&&t.next(e)))}),(e=>{u=!1,t.error&&t.error(e),a.unsubscribe()}))};return f(),a}))},extendObservabilitySet:er,getByKeyPath:A,setByKeyPath:C,delByKeyPath:function(e,t){"string"==typeof t?C(e,t,void 0):"length"in t&&[].map.call(t,(function(t){C(e,t,void 0)}))},shallowClone:I,deepClone:U,getObjectDiff:Un,cmp:qt,asap:P,minKey:-1/0,addons:[],connections:kt,errnames:ue,dependencies:tr,semVer:"3.2.1",version:"3.2.1".split(".").map((e=>parseInt(e))).reduce(((e,t,n)=>e+t/Math.pow(10,2*n)))}),nr.maxKey=dn(nr.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(cn("storagemutated",(e=>{if(!or){let t;jt?(t=document.createEvent("CustomEvent"),t.initCustomEvent("x-storagemutated-1",!0,!0,e)):t=new CustomEvent("x-storagemutated-1",{detail:e}),or=!0,dispatchEvent(t),or=!1}})),addEventListener("x-storagemutated-1",(({detail:e})=>{or||rr(e)})));let or=!1;if("undefined"!=typeof BroadcastChannel){const e=new BroadcastChannel("x-storagemutated-1");cn("storagemutated",(t=>{or||e.postMessage(t)})),e.onmessage=e=>{e.data&&rr(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){cn("storagemutated",(e=>{try{or||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((t=>t.postMessage({type:"x-storagemutated-1",changedParts:e}))))}catch(e){}})),addEventListener("storage",(e=>{if("x-storagemutated-1"===e.key){const t=JSON.parse(e.newValue);t&&rr(t.changedParts)}}));const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",(function({data:e}){e&&"x-storagemutated-1"===e.type&&rr(e.changedParts)}))}function ir(e){return ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ir(e)}function ar(e,t){return!t||"object"!==cr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ur(e,t){return ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ur(e,t)}Be.rejectionMapper=function(e,t){if(!e||e instanceof re||e instanceof TypeError||e instanceof SyntaxError||!e.name||!le[e.name])return e;var n=new le[e.name](t||e.message,e);return"stack"in e&&w(n,"stack",{get:function(){return this.inner.stack}}),n},G(Z,At);var cr=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var sr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ur(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=ir(t);if(n){var o=ir(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return ar(this,e)});function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=r.call(this,"EsmOffline")).version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),e.syncQueue=e.table("syncQueue"),e.dynamicOfflineData=e.table("dynamicOfflineData"),e}return o}(Yn);function lr(){return new sr}function fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pr(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function dr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){pr(i,r,o,a,u,"next",e)}function u(e){pr(i,r,o,a,u,"throw",e)}a(void 0)}))}}function hr(e){return function(e){if(Array.isArray(e))return fr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return fr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var mr={};function yr(){return Object.values(mr)}function vr(e){mr[e.id]&&console.warn('[setupDynamicOfflineDataHandler] Another second handler with the ID "'.concat(e.id,'" was registered. This handler will override the previous one. This could be unintended as the previous handler might run different flows than the newly registered one. If this is the case, ensure that you are setting up the handlers with different IDs.')),mr[e.id]=e}function gr(e){return br.apply(this,arguments)}function br(){return(br=dr(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Rr();case 2:return n=e.sent,e.next=5,wr(n,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wr(e,t){return _r.apply(this,arguments)}function _r(){return _r=dr(a().mark((function e(t,n){var r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n?{type:n,users:t}:{users:t},o=new sr,e.next=4,o.dynamicOfflineData.where(r).toArray().catch(Yn.errnames.DatabaseClosed,(function(){return[]}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)}))),_r.apply(this,arguments)}function xr(e,t){return Sr.apply(this,arguments)}function Sr(){return(Sr=dr(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Rr();case 2:return r=e.sent,e.next=5,Er(r,t,n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Er(e,t,n){return $r.apply(this,arguments)}function $r(){return $r=dr(a().mark((function e(t,n,r){var o,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new sr,e.next=3,o.dynamicOfflineData.get({type:n,identifier:r}).catch(Yn.errnames.DatabaseClosed,(function(){}));case 3:if(i=e.sent){e.next=9;break}return e.next=7,o.dynamicOfflineData.add({users:[t],type:n,identifier:r}).catch(Yn.errnames.DatabaseClosed);case 7:e.next=12;break;case 9:if(i.users.includes(t)){e.next=12;break}return e.next=12,o.dynamicOfflineData.update(i.id,{users:hr(i.users).concat([t])}).catch(Yn.errnames.DatabaseClosed);case 12:case"end":return e.stop()}}),e)}))),$r.apply(this,arguments)}function Or(e,t){return kr.apply(this,arguments)}function kr(){return(kr=dr(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Rr();case 2:return r=e.sent,e.next=5,jr(r,t,n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jr(e,t,n){return Pr.apply(this,arguments)}function Pr(){return Pr=dr(a().mark((function e(t,n,r){var o,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new sr,e.next=3,o.dynamicOfflineData.get({type:n,identifier:r,users:t}).catch(Yn.errnames.DatabaseClosed,(function(){}));case 3:if(!(i=e.sent)){e.next=12;break}if(!(i.users.length>1)){e.next=10;break}return e.next=8,o.dynamicOfflineData.update(i.id,{users:i.users.filter((function(e){return e!==t}))}).catch(Yn.errnames.DatabaseClosed);case 8:e.next=12;break;case 10:return e.next=12,o.dynamicOfflineData.delete(i.id).catch(Yn.errnames.DatabaseClosed);case 12:case"end":return e.stop()}}),e)}))),Pr.apply(this,arguments)}function Tr(e,t){return Ar.apply(this,arguments)}function Ar(){return Ar=dr(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gr(t);case 2:return r=e.sent,e.next=5,Promise.all(r.map(function(){var e=dr(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Cr(t.type,t.identifier,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:case"end":return e.stop()}}),e)}))),Ar.apply(this,arguments)}function Cr(e,t,n){return Ir.apply(this,arguments)}function Ir(){return Ir=dr(a().mark((function e(t,n,r){var o,i,u,c,s,l,f,p,d;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xr(t,n);case 2:return o=new sr,e.next=5,Rr();case 5:return i=e.sent,e.next=8,o.dynamicOfflineData.get({type:t,identifier:n}).catch(Yn.errnames.DatabaseClosed,(function(){}));case 8:if(u=e.sent,c=yr().filter((function(e){return e.type===t})),u){e.next=12;break}return e.abrupt("return");case 12:return e.next=14,Promise.all(c.map(function(){var e=dr(a().mark((function e(t){var o,i,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.sync(n,r),e.abrupt("return",{id:t.id,error:void 0});case 5:return e.prev=5,e.t0=e.catch(0),u=null!==(i=null===(o=e.t0.message)||void 0===o?void 0:o.toString())&&void 0!==i?i:e.t0.toString(),e.abrupt("return",{id:t.id,error:u});case 11:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()));case 14:if(s=e.sent,l=s.filter((function(e){return!e.error})).map((function(e){return e.id})),f=s.filter((function(e){return e.error})).map((function(e){return e.id})),p=s.filter((function(e){return e.error})).map((function(e){return{handlerId:e.id,message:e.error}})),d={syncedOn:new Date,syncedBy:i,succeededHandlers:l,erroredHandlers:f,errors:p},!u.id){e.next=22;break}return e.next=22,o.dynamicOfflineData.update(u.id,{syncState:d}).catch(Yn.errnames.DatabaseClosed);case 22:case"end":return e.stop()}}),e)}))),Ir.apply(this,arguments)}function Rr(){return Nr.apply(this,arguments)}function Nr(){return(Nr=dr(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.getLoggedInUser)();case 2:if(t=e.sent.uuid){e.next=5;break}throw new Error("Using the dynamic offline data API requires a logged in user.");case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dr(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function Mr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Dr(i,r,o,a,u,"next",e)}function u(e){Dr(i,r,o,a,u,"throw",e)}a(void 0)}))}}var Lr=(0,s.createGlobalStore)("offline-patients",{offlinePatientDataSyncState:{},handlers:{}});function Ur(){return Vr(),Lr}function zr(e,t){Vr(),vr({type:"patient",displayName:t.displayName,id:e,isSynced:function(){return Promise.resolve(!0)},sync:function(e,n){return t.onOfflinePatientAdded({patientUuid:e,signal:null!=n?n:(new AbortController).signal})}})}function Fr(e){return Br.apply(this,arguments)}function Br(){return(Br=Mr(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Vr(),e.next=3,Cr("patient",t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vr(){console.warn("The offline patient API has been deprecated and will be removed in a future release. To prevent future crashes, the functions remain available for the moment, but any invocations should be migrated ASAP.")}try{self["workbox:window:6.5.1"]&&_()}catch(d){}function Wr(e,t){return new Promise((function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])}))}function qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}try{self["workbox:core:6.5.1"]&&_()}catch(d){}var Kr=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))};function Hr(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var Zr=function(e,t){this.type=e,Object.assign(this,t)};function Gr(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function Qr(){}var Yr={type:"SKIP_WAITING"};function Jr(e,t){if(!t)return e&&e.then?e.then(Qr):Promise.resolve()}!function(e){var t,n;function r(t,n){var r,o;return void 0===n&&(n={}),(r=e.call(this)||this).nn={},r.tn=0,r.rn=new Kr,r.en=new Kr,r.on=new Kr,r.un=0,r.an=new Set,r.cn=function(){var e=r.fn,t=e.installing;r.tn>0||!Hr(t.scriptURL,r.sn.toString())||performance.now()>r.un+6e4?(r.vn=t,e.removeEventListener("updatefound",r.cn)):(r.hn=t,r.an.add(t),r.rn.resolve(t)),++r.tn,t.addEventListener("statechange",r.ln)},r.ln=function(e){var t=r.fn,n=e.target,o=n.state,i=n===r.vn,a={sw:n,isExternal:i,originalEvent:e};!i&&r.mn&&(a.isUpdate=!0),r.dispatchEvent(new Zr(o,a)),"installed"===o?r.wn=self.setTimeout((function(){"installed"===o&&t.waiting===n&&r.dispatchEvent(new Zr("waiting",a))}),200):"activating"===o&&(clearTimeout(r.wn),i||r.en.resolve(n))},r.dn=function(e){var t=r.hn,n=t!==navigator.serviceWorker.controller;r.dispatchEvent(new Zr("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:r.mn})),n||r.on.resolve(t)},r.gn=(o=function(e){var t=e.data,n=e.ports,o=e.source;return Gr(r.getSW(),(function(){r.an.has(o)&&r.dispatchEvent(new Zr("message",{data:t,originalEvent:e,ports:n,sw:o}))}))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(o.apply(this,e))}catch(e){return Promise.reject(e)}}),r.sn=t,r.nn=n,navigator.serviceWorker.addEventListener("message",r.gn),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o,i=r.prototype;i.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var r=this;return function(e,t){var n=e();return n&&n.then?n.then(t):t()}((function(){if(!n&&"complete"!==document.readyState)return Jr(new Promise((function(e){return window.addEventListener("load",e)})))}),(function(){return r.mn=Boolean(navigator.serviceWorker.controller),r.yn=r.pn(),Gr(r.bn(),(function(e){r.fn=e,r.yn&&(r.hn=r.yn,r.en.resolve(r.yn),r.on.resolve(r.yn),r.yn.addEventListener("statechange",r.ln,{once:!0}));var t=r.fn.waiting;return t&&Hr(t.scriptURL,r.sn.toString())&&(r.hn=t,Promise.resolve().then((function(){r.dispatchEvent(new Zr("waiting",{sw:t,wasWaitingBeforeRegister:!0}))})).then((function(){}))),r.hn&&(r.rn.resolve(r.hn),r.an.add(r.hn)),r.fn.addEventListener("updatefound",r.cn),navigator.serviceWorker.addEventListener("controllerchange",r.dn),r.fn}))}))}catch(e){return Promise.reject(e)}},i.update=function(){try{return this.fn?Jr(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},i.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},i.messageSW=function(e){try{return Gr(this.getSW(),(function(t){return Wr(t,e)}))}catch(e){return Promise.reject(e)}},i.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&Wr(this.fn.waiting,Yr)},i.pn=function(){var e=navigator.serviceWorker.controller;return e&&Hr(e.scriptURL,this.sn.toString())?e:void 0},i.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return Gr(navigator.serviceWorker.register(e.sn,e.nn),(function(t){return e.un=performance.now(),t}))}),(function(e){throw e}))}catch(e){return Promise.reject(e)}},(o=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,o)}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qr(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(this.Sn(e.type));!(t=n()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}());function Xr(){return Promise.resolve(void 0)}function eo(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function to(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){eo(i,r,o,a,u,"next",e)}function u(e){eo(i,r,o,a,u,"throw",e)}a(void 0)}))}}function no(e){return ro.apply(this,arguments)}function ro(){return(ro=to(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xr();case 2:if(!(n=e.sent)){e.next=9;break}return e.next=6,n.messageSW(t);case 6:e.t0=e.sent,e.next=10;break;case 9:e.t0={success:!1,result:void 0,error:"No service worker has been registered. This is typically the case when the application has been built without offline-related features."};case 10:return e.abrupt("return",e.t0);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var oo,io="x-omrs-offline-response-body",ao="x-omrs-offline-response-status",uo="x-omrs-offline-caching-strategy",co=new Uint8Array(16);function so(){if(!oo&&!(oo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oo(co)}const lo=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,fo=function(e){return"string"==typeof e&&lo.test(e)};for(var po=[],ho=0;ho<256;++ho)po.push((ho+256).toString(16).substr(1));const mo=function(e,t,n){var r=(e=e||{}).random||(e.rng||so)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(po[e[t+0]]+po[e[t+1]]+po[e[t+2]]+po[e[t+3]]+"-"+po[e[t+4]]+po[e[t+5]]+"-"+po[e[t+6]]+po[e[t+7]]+"-"+po[e[t+8]]+po[e[t+9]]+"-"+po[e[t+10]]+po[e[t+11]]+po[e[t+12]]+po[e[t+13]]+po[e[t+14]]+po[e[t+15]]).toLowerCase();if(!fo(n))throw TypeError("Stringified UUID is invalid");return n}(r)};var yo="OFFLINE+";function vo(){return yo+mo()}function go(e){return e.startsWith(yo)}function bo(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function wo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){bo(i,r,o,a,u,"next",e)}function u(e){bo(i,r,o,a,u,"throw",e)}a(void 0)}))}}var _o=new sr,xo={};function So(){return Eo.apply(this,arguments)}function Eo(){return(Eo=wo(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.getLoggedInUser)();case 2:return t=e.sent,e.abrupt("return",(null==t?void 0:t.uuid)||"*");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $o(e,t,n,r){return Oo.apply(this,arguments)}function Oo(){return(Oo=wo(a().mark((function e(t,n,r,o){var i,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(i=o&&o.id)){e.next=4;break}return e.next=4,_o.syncQueue.where({type:n,userId:t}).filter((function(e){return(null==e?void 0:e.descriptor.id)===i})).delete().catch(Yn.errnames.DatabaseClosed);case 4:return e.next=6,_o.syncQueue.add({type:n,content:r,userId:t,descriptor:o||{},createdOn:new Date}).catch(Yn.errnames.DatabaseClosed,(function(){return-1}));case 6:return u=e.sent,e.abrupt("return",u);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ko(e,t,n){return jo.apply(this,arguments)}function jo(){return(jo=wo(a().mark((function e(t,n,r){var o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,So();case 2:return o=e.sent,e.next=5,$o(o,t,n,r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Po(e,t){return To.apply(this,arguments)}function To(){return(To=wo(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ao(t,n);case 2:return r=e.sent,e.abrupt("return",r.map((function(e){return e.content})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ao(e,t){return Co.apply(this,arguments)}function Co(){return(Co=wo(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n?{type:n,userId:t}:{userId:t},e.next=3,_o.syncQueue.where(r).toArray().catch(Yn.errnames.DatabaseClosed,(function(){return[]}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Io(e){return Ro.apply(this,arguments)}function Ro(){return(Ro=wo(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,So();case 2:return n=e.sent,e.next=5,Po(n,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function No(e){return Do.apply(this,arguments)}function Do(){return(Do=wo(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,So();case 2:return n=e.sent,e.next=5,Ao(n,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mo(e){return Lo.apply(this,arguments)}function Lo(){return(Lo=wo(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_o.syncQueue.get(t).catch(Yn.errnames.DatabaseClosed,(function(){}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Uo(e){var t;return!!(null===(t=xo[e])||void 0===t?void 0:t.options.onBeginEditSyncItem)}function zo(e){return Fo.apply(this,arguments)}function Fo(){return(Fo=wo(a().mark((function e(t){var n,r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Mo(t);case 3:if(r=e.sent){e.next=6;break}throw new Error("No sync item with the ID ".concat(t," exists."));case 6:if(o=null===(n=xo[r.type])||void 0===n?void 0:n.options.onBeginEditSyncItem){e.next=9;break}throw new Error("A sync item with the ID ".concat(t,' exists, but the associated handler (if one exists) doesn\'t support editing the item. You can avoid this error by either verifying that sync items of this type can be edited via the "canEditSynchronizationItemsOfType(type: string)" function or alternatively ensure that the synchronizaton handler for sync items of type "').concat(r.type,'" supports editing items.'));case 9:o(r);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bo(e){return Vo.apply(this,arguments)}function Vo(){return(Vo=wo(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_o.syncQueue.delete(t).catch(Yn.errnames.DatabaseClosed);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};xo[e]={type:e,dependsOn:t,process:n,options:r}}(0,s.createGlobalStore)("offline-synchronization",{})},4077:(e,t,n)=>{function r(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}e=n.nmd(e);var o=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};System.register(["react","@openmrs/esm-config","@openmrs/esm-extensions","@openmrs/esm-globals","react-dom","i18next","react-i18next","@openmrs/esm-api","dayjs"],(function(i,a){var u={},c={},s={},l={},f={},p={},d={},h={},m={};return{setters:[function(e){u.createContext=e.createContext,u.createElement=e.createElement,u.default=e.default,u.useCallback=e.useCallback,u.useContext=e.useContext,u.useDebugValue=e.useDebugValue,u.useEffect=e.useEffect,u.useLayoutEffect=e.useLayoutEffect,u.useMemo=e.useMemo,u.useReducer=e.useReducer,u.useRef=e.useRef,u.useState=e.useState},function(e){c.getConfigStore=e.getConfigStore,c.getExtensionConfigFromStore=e.getExtensionConfigFromStore,c.getExtensionsConfigStore=e.getExtensionsConfigStore,c.interpolateUrl=e.interpolateUrl,c.navigate=e.navigate},function(e){s.getConnectedExtensions=e.getConnectedExtensions,s.getExtensionInternalStore=e.getExtensionInternalStore,s.getExtensionStore=e.getExtensionStore,s.registerExtensionSlot=e.registerExtensionSlot,s.renderExtension=e.renderExtension},function(e){l.subscribeConnectivityChanged=e.subscribeConnectivityChanged},function(e){f.default=e.default},function(e){p.default=e.default},function(e){d.I18nextProvider=e.I18nextProvider},function(e){h.defaultVisitCustomRepresentation=e.defaultVisitCustomRepresentation,h.fetchCurrentPatient=e.fetchCurrentPatient,h.getCurrentUser=e.getCurrentUser,h.getLocations=e.getLocations,h.getSessionStore=e.getSessionStore,h.getVisitTypes=e.getVisitTypes,h.openmrsFetch=e.openmrsFetch,h.userHasAccess=e.userHasAccess},function(e){m.default=e.default}],execute:function(){i(function(){var i={332:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}}()},891:function(e,t,n){var i;e=n.nmd(e),function(){var a,u=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},c=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r},s=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},l=function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e},f=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},p=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i},d=function(e,t){return!(null==e||!e.length)&&x(e,t,0)>-1},h=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1},m=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},y=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},v=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n},g=function(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n},b=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},w=function(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r},_=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1},x=function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):_(e,E,n)},S=function(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1},E=function(e){return e!=e},$=function(e,t){var n=null==e?0:e.length;return n?P(e,t)/n:ee},O=function(e){return function(t){return null==t?a:t[e]}},k=function(e){return function(t){return null==e?a:e[t]}},j=function(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n},P=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==a&&(n=n===a?i:n+i)}return n},T=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},A=function(e){return e?e.slice(0,K(e)+1).replace(qe,""):e},C=function(e){return function(t){return e(t)}},I=function(e,t){return m(t,(function(t){return e[t]}))},R=function(e,t){return e.has(t)},N=function(e,t){for(var n=-1,r=e.length;++n<r&&x(t,e[n],0)>-1;);return n},D=function(e,t){for(var n=e.length;n--&&x(t,e[n],0)>-1;);return n},M=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r},L=function(e){return"\\"+Bt[e]},U=function(e){return Dt.test(e)},z=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},F=function(e,t){return function(n){return e(t(n))}},B=function(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==G||(e[n]=G,i[o++]=n)}return i},V=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},W=function(e){return U(e)?function(e){for(var t=Rt.lastIndex=0;Rt.test(e);)++t;return t}(e):an(e)},q=function(e){return U(e)?e.match(Rt)||[]:e.split("")},K=function(e){for(var t=e.length;t--&&Ke.test(e.charAt(t)););return t},H="Expected a function",Z="__lodash_hash_undefined__",G="__lodash_placeholder__",Q=32,Y=128,J=1/0,X=9007199254740991,ee=NaN,te=4294967295,ne=[["ary",Y],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",Q],["partialRight",64],["rearg",256]],re="[object Arguments]",oe="[object Array]",ie="[object Boolean]",ae="[object Date]",ue="[object Error]",ce="[object Function]",se="[object GeneratorFunction]",le="[object Map]",fe="[object Number]",pe="[object Object]",de="[object Promise]",he="[object RegExp]",me="[object Set]",ye="[object String]",ve="[object Symbol]",ge="[object WeakMap]",be="[object ArrayBuffer]",we="[object DataView]",_e="[object Float32Array]",xe="[object Float64Array]",Se="[object Int8Array]",Ee="[object Int16Array]",$e="[object Int32Array]",Oe="[object Uint8Array]",ke="[object Uint8ClampedArray]",je="[object Uint16Array]",Pe="[object Uint32Array]",Te=/\b__p \+= '';/g,Ae=/\b(__p \+=) '' \+/g,Ce=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ie=/&(?:amp|lt|gt|quot|#39);/g,Re=/[&<>"']/g,Ne=RegExp(Ie.source),De=RegExp(Re.source),Me=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,Ue=/<%=([\s\S]+?)%>/g,ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fe=/^\w*$/,Be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ve=/[\\^$.*+?()[\]{}|]/g,We=RegExp(Ve.source),qe=/^\s+/,Ke=/\s/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Ge=/,? & /,Qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ye=/[()=,{}\[\]\/\s]/,Je=/\\(\\)?/g,Xe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,et=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^\[object .+?Constructor\]$/,ot=/^0o[0-7]+$/i,it=/^(?:0|[1-9]\d*)$/,at=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ut=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,st="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",lt="a-z\\xdf-\\xf6\\xf8-\\xff",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dt="["+pt+"]",ht="["+st+"]",mt="\\d+",yt="["+lt+"]",vt="[^\ud800-\udfff"+pt+mt+"\\u2700-\\u27bf"+lt+ft+"]",gt="\ud83c[\udffb-\udfff]",bt="[^\ud800-\udfff]",wt="(?:\ud83c[\udde6-\uddff]){2}",_t="[\ud800-\udbff][\udc00-\udfff]",xt="["+ft+"]",St="(?:"+yt+"|"+vt+")",Et="(?:"+xt+"|"+vt+")",$t="(?:['’](?:d|ll|m|re|s|t|ve))?",Ot="(?:['’](?:D|LL|M|RE|S|T|VE))?",kt="(?:"+ht+"|"+gt+")?",jt="[\\ufe0e\\ufe0f]?",Pt=jt+kt+"(?:\\u200d(?:"+[bt,wt,_t].join("|")+")"+jt+kt+")*",Tt="(?:"+["[\\u2700-\\u27bf]",wt,_t].join("|")+")"+Pt,At="(?:"+[bt+ht+"?",ht,wt,_t,"[\ud800-\udfff]"].join("|")+")",Ct=RegExp("['’]","g"),It=RegExp(ht,"g"),Rt=RegExp(gt+"(?="+gt+")|"+At+Pt,"g"),Nt=RegExp([xt+"?"+yt+"+"+$t+"(?="+[dt,xt,"$"].join("|")+")",Et+"+"+Ot+"(?="+[dt,xt+St,"$"].join("|")+")",xt+"?"+St+"+"+$t,xt+"+"+Ot,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mt,Tt].join("|"),"g"),Dt=RegExp("[\\u200d\ud800-\udfff"+st+"\\ufe0e\\ufe0f]"),Mt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ut=-1,zt={};zt[_e]=zt[xe]=zt[Se]=zt[Ee]=zt[$e]=zt[Oe]=zt[ke]=zt[je]=zt[Pe]=!0,zt[re]=zt[oe]=zt[be]=zt[ie]=zt[we]=zt[ae]=zt[ue]=zt[ce]=zt[le]=zt[fe]=zt[pe]=zt[he]=zt[me]=zt[ye]=zt[ge]=!1;var Ft={};Ft[re]=Ft[oe]=Ft[be]=Ft[we]=Ft[ie]=Ft[ae]=Ft[_e]=Ft[xe]=Ft[Se]=Ft[Ee]=Ft[$e]=Ft[le]=Ft[fe]=Ft[pe]=Ft[he]=Ft[me]=Ft[ye]=Ft[ve]=Ft[Oe]=Ft[ke]=Ft[je]=Ft[Pe]=!0,Ft[ue]=Ft[ce]=Ft[ge]=!1;var Bt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vt=parseFloat,Wt=parseInt,qt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Kt="object"==typeof self&&self&&self.Object===Object&&self,Ht=qt||Kt||Function("return this")(),Zt=t&&!t.nodeType&&t,Gt=Zt&&e&&!e.nodeType&&e,Qt=Gt&&Gt.exports===Zt,Yt=Qt&&qt.process,Jt=function(){try{return Gt&&Gt.require&&Gt.require("util").types||Yt&&Yt.binding&&Yt.binding("util")}catch(e){}}(),Xt=Jt&&Jt.isArrayBuffer,en=Jt&&Jt.isDate,tn=Jt&&Jt.isMap,nn=Jt&&Jt.isRegExp,rn=Jt&&Jt.isSet,on=Jt&&Jt.isTypedArray,an=O("length"),un=k({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),cn=k({"&":"&","<":"<",">":">",'"':""","'":"'"}),sn=k({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ln=function e(t){var n,i,k=function(e){if(To(e)&&!Tu(e)&&!r(e,lt)){if(r(e,st))return e;if(bi.call(e,"__wrapped__"))return no(e)}return new st(e)},Ke=function(){},st=function(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a},lt=function(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]},ft=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},pt=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},dt=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},ht=function(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new dt;++t<n;)this.add(e[t])},mt=function(e){var t=this.__data__=new pt(e);this.size=t.size},yt=function(e,t){var n=Tu(e),r=!n&&Pu(e),o=!n&&!r&&Cu(e),i=!n&&!r&&!o&&Mu(e),a=n||r||o||i,u=a?T(e.length,pi):[],c=u.length;for(var s in e)!t&&!bi.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||zr(s,c))||u.push(s);return u},vt=function(e){var t=e.length;return t?e[jn(0,t-1)]:a},gt=function(e,t){return Xr(or(e),kt(t,0,e.length))},bt=function(e){return Xr(or(e))},wt=function(e,t,n){(n!==a&&!xo(e[t],n)||n===a&&!(t in e))&&$t(e,t,n)},_t=function(e,t,n){var r=e[t];bi.call(e,t)&&xo(r,n)&&(n!==a||t in e)||$t(e,t,n)},xt=function(e,t){for(var n=e.length;n--;)if(xo(e[n][0],t))return n;return-1},St=function(e,t,n,r){return ga(e,(function(e,o,i){t(r,e,n(e),i)})),r},Et=function(e,t){return e&&ir(t,Wo(t),e)},$t=function(e,t,n){"__proto__"==t&&Mi?Mi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Ot=function(e,t){for(var n=-1,r=t.length,o=ii(r),i=null==e;++n<r;)o[n]=i?a:Bo(e,t[n]);return o},kt=function(e,t,n){return e==e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e},jt=function(e,t,n){var r=n.length;if(null==e)return!r;for(e=li(e);r--;){var o=n[r],i=t[o],u=e[o];if(u===a&&!(o in e)||!i(u))return!1}return!0},Pt=function(e,t,n){if("function"!=typeof e)throw new di(H);return Fa((function(){e.apply(a,n)}),t)},Tt=function(e,t,n,r){var o=-1,i=d,a=!0,u=e.length,c=[],s=t.length;if(!u)return c;n&&(t=m(t,C(n))),r?(i=h,a=!1):t.length>=200&&(i=R,a=!1,t=new ht(t));e:for(;++o<u;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=s;p--;)if(t[p]===f)continue e;c.push(l)}else i(t,f,r)||c.push(l)}return c},At=function(e,t){var n=!0;return ga(e,(function(e,r,o){return n=!!t(e,r,o)})),n},Rt=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],u=t(i);if(null!=u&&(c===a?u==u&&!Ro(u):n(u,c)))var c=u,s=i}return s},Dt=function(e,t){var n=[];return ga(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n},Bt=function(e,t){return e&&_a(e,t,Wo)},qt=function(e,t){return e&&xa(e,t,Wo)},Kt=function(e,t){return p(t,(function(t){return Oo(e[t])}))},Zt=function(e,t){for(var n=0,r=(t=Qn(t,e)).length;null!=e&&n<r;)e=e[eo(t[n++])];return n&&n==r?e:a},Gt=function(e,t,n){var r=t(e);return Tu(e)?r:y(r,n(e))},Yt=function(e){return null==e?e===a?"[object Undefined]":"[object Null]":Di&&Di in li(e)?function(e){var t=bi.call(e,Di),n=e[Di];try{e[Di]=a;var r=!0}catch(e){}var o=xi.call(e);return r&&(t?e[Di]=n:delete e[Di]),o}(e):(t=e,xi.call(t));var t},Jt=function(e,t){return e>t},an=function(e,t){return null!=e&&bi.call(e,t)},fn=function(e,t){return null!=e&&t in li(e)},pn=function(e,t,n){for(var r=n?h:d,o=e[0].length,i=e.length,u=i,c=ii(i),s=1/0,l=[];u--;){var f=e[u];u&&t&&(f=m(f,C(t))),s=Gi(f.length,s),c[u]=!n&&(t||o>=120&&f.length>=120)?new ht(u&&f):a}f=e[0];var p=-1,y=c[0];e:for(;++p<o&&l.length<s;){var v=f[p],g=t?t(v):v;if(v=n||0!==v?v:0,!(y?R(y,g):r(l,g,n))){for(u=i;--u;){var b=c[u];if(!(b?R(b,g):r(e[u],g,n)))continue e}y&&y.push(g),l.push(v)}}return l},dn=function(e,t,n){var r=null==(e=Zr(e,t=Qn(t,e)))?e:e[eo(uo(t))];return null==r?a:u(r,e,n)},hn=function(e){return To(e)&&Yt(e)==re},mn=function(e,t,n,r){var o=n.length,i=o,u=!r;if(null==e)return!i;for(e=li(e);o--;){var c=n[o];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<i;){var s=(c=n[o])[0],l=e[s],f=c[1];if(u&&c[2]){if(l===a&&!(s in e))return!1}else{var p=new mt;if(r)var d=r(l,f,s,e,t,p);if(!(d===a?Sa(f,l,3,r,p):d))return!1}}return!0},yn=function(e){return!(!Po(e)||(t=e,_i&&_i in t))&&(Oo(e)?$i:rt).test(to(e));var t},vn=function(e){return"function"==typeof e?e:null==e?Jo:"object"==typeof e?Tu(e)?xn(e[0],e[1]):_n(e):ni(e)},gn=function(e){if(!Wr(e))return Hi(e);var t=[];for(var n in li(e))bi.call(e,n)&&"constructor"!=n&&t.push(n);return t},bn=function(e,t){return e<t},wn=function(e,t){var n=-1,r=So(e)?ii(e.length):[];return ga(e,(function(e,o,i){r[++n]=t(e,o,i)})),r},_n=function(e){var t=Nr(e);return 1==t.length&&t[0][2]?Kr(t[0][0],t[0][1]):function(n){return n===e||mn(n,e,t)}},xn=function(e,t){return Br(e)&&qr(t)?Kr(eo(e),t):function(n){var r=Bo(n,e);return r===a&&r===t?Vo(n,e):Sa(t,r,3)}},Sn=function(e,t){var n=e.length;if(n)return zr(t+=t<0?n:0,n)?e[t]:a},En=function(e,t,n){t=t.length?m(t,(function(e){return Tu(e)?function(t){return Zt(t,1===e.length?e[0]:e)}:e})):[Jo];var r=-1;return t=m(t,C(Ir())),function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var c=tr(o[r],i[r]);if(c)return r>=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(wn(e,(function(e,n,o){return{criteria:m(t,(function(t){return t(e)})),index:++r,value:e}})))},$n=function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=Zt(e,a);n(u,a)&&In(i,Qn(a,e),u)}return i},On=function(e,t,n,r){var o=r?S:x,i=-1,a=t.length,u=e;for(e===t&&(t=or(t)),n&&(u=m(e,C(n)));++i<a;)for(var c=0,s=t[i],l=n?n(s):s;(c=o(u,l,c,r))>-1;)u!==e&&Ii.call(u,c,1),Ii.call(e,c,1);return e},kn=function(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;zr(o)?Ii.call(e,o,1):Bn(e,o)}}return e},jn=function(e,t){return e+Bi(Ji()*(t-e+1))},Pn=function(e,t){var n="";if(!e||t<1||t>X)return n;do{t%2&&(n+=e),(t=Bi(t/2))&&(e+=e)}while(t);return n},Tn=function(e,t){return Ba(Hr(e,t,Jo),e+"")},An=function(e){return vt(Ho(e))},Cn=function(e,t){var n=Ho(e);return Xr(n,kt(t,0,n.length))},In=function(e,t,n,r){if(!Po(e))return e;for(var o=-1,i=(t=Qn(t,e)).length,u=i-1,c=e;null!=c&&++o<i;){var s=eo(t[o]),l=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(o!=u){var f=c[s];(l=r?r(f,s,c):a)===a&&(l=Po(f)?f:zr(t[o+1])?[]:{})}_t(c,s,l),c=c[s]}return e},Rn=function(e){return Xr(Ho(e))},Nn=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=ii(o);++r<o;)i[r]=e[r+t];return i},Dn=function(e,t){var n;return ga(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},Mn=function(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Ro(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Ln(e,t,Jo,n)},Ln=function(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var u=(t=n(t))!=t,c=null===t,s=Ro(t),l=t===a;o<i;){var f=Bi((o+i)/2),p=n(e[f]),d=p!==a,h=null===p,m=p==p,y=Ro(p);if(u)var v=r||m;else v=l?m&&(r||d):c?m&&d&&(r||!h):s?m&&d&&!h&&(r||!y):!h&&!y&&(r?p<=t:p<t);v?o=f+1:i=f}return Gi(i,4294967294)},Un=function(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!xo(u,c)){var c=u;i[o++]=0===a?0:a}}return i},zn=function(e){return"number"==typeof e?e:Ro(e)?ee:+e},Fn=function(e,t,n){var r=-1,o=d,i=e.length,a=!0,u=[],c=u;if(n)a=!1,o=h;else if(i>=200){var s=t?null:Aa(e);if(s)return V(s);a=!1,o=R,c=new ht}else c=t?[]:u;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=c.length;p--;)if(c[p]===f)continue e;t&&c.push(f),u.push(l)}else o(c,f,n)||(c!==u&&c.push(f),u.push(l))}return u},Bn=function(e,t){return null==(e=Zr(e,t=Qn(t,e)))||delete e[eo(uo(t))]},Vn=function(e,t,n,r){return In(e,t,n(Zt(e,t)),r)},Wn=function(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Nn(e,r?0:i,r?i+1:o):Nn(e,r?i+1:0,r?o:i)},qn=function(e,t){var n=e;return r(n,lt)&&(n=n.value()),v(t,(function(e,t){return t.func.apply(t.thisArg,y([e],t.args))}),n)},Kn=function(e,t,n){var r=e.length;if(r<2)return r?Fn(e[0]):[];for(var o=-1,i=ii(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=Tt(i[o]||a,e[u],t,n));return Fn(wa(i,1),t,n)},Hn=function(e,t,n){for(var r=-1,o=e.length,i=t.length,u={};++r<o;){var c=r<i?t[r]:a;n(u,e[r],c)}return u},Zn=function(e){return Eo(e)?e:[]},Gn=function(e){return"function"==typeof e?e:Jo},Qn=function(e,t){return Tu(e)?e:Br(e,t)?[e]:Va(Fo(e))},Yn=function(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:Nn(e,t,n)},Jn=function(e,t){if(t)return e.slice();var n=e.length,r=Pi?Pi(n):new e.constructor(n);return e.copy(r),r},Xn=function(e){var t=new e.constructor(e.byteLength);return new ji(t).set(new ji(e)),t},er=function(e,t){var n=t?Xn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},tr=function(e,t){if(e!==t){var n=e!==a,r=null===e,o=e==e,i=Ro(e),u=t!==a,c=null===t,s=t==t,l=Ro(t);if(!c&&!l&&!i&&e>t||i&&u&&s&&!c&&!l||r&&u&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||c&&n&&o||!u&&o||!s)return-1}return 0},nr=function(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,c=t.length,s=Zi(i-a,0),l=ii(c+s),f=!r;++u<c;)l[u]=t[u];for(;++o<a;)(f||o<i)&&(l[n[o]]=e[o]);for(;s--;)l[u++]=e[o++];return l},rr=function(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,c=-1,s=t.length,l=Zi(i-u,0),f=ii(l+s),p=!r;++o<l;)f[o]=e[o];for(var d=o;++c<s;)f[d+c]=t[c];for(;++a<u;)(p||o<i)&&(f[d+n[a]]=e[o++]);return f},or=function(e,t){var n=-1,r=e.length;for(t||(t=ii(r));++n<r;)t[n]=e[n];return t},ir=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,u=t.length;++i<u;){var c=t[i],s=r?r(n[c],e[c],c,n,e):a;s===a&&(s=e[c]),o?$t(n,c,s):_t(n,c,s)}return n},ar=function(e,t){return function(n,r){var o=Tu(n)?c:St,i=t?t():{};return o(n,e,Ir(r,2),i)}},ur=function(e){return Tn((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:a,u=o>2?n[2]:a;for(i=e.length>3&&"function"==typeof i?(o--,i):a,u&&Fr(n[0],n[1],u)&&(i=o<3?a:i,o=1),t=li(t);++r<o;){var c=n[r];c&&e(t,c,r,i)}return t}))},cr=function(e,t){return function(n,r){if(null==n)return n;if(!So(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=li(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}},sr=function(e){return function(t,n,r){for(var o=-1,i=li(t),a=r(t),u=a.length;u--;){var c=a[e?u:++o];if(!1===n(i[c],c,i))break}return t}},lr=function(e){return function(t){var n=U(t=Fo(t))?q(t):a,r=n?n[0]:t.charAt(0),o=n?Yn(n,1).join(""):t.slice(1);return r[e]()+o}},fr=function(e){return function(t){return v(Qo(Go(t).replace(Ct,"")),e,"")}},pr=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ya(e.prototype),r=e.apply(n,t);return Po(r)?r:n}},dr=function(e){return function(t,n,r){var o=li(t);if(!So(t)){var i=Ir(n,3);t=Wo(t),n=function(e){return i(o[e],e,o)}}var u=e(t,n,r);return u>-1?o[i?t[u]:u]:a}},hr=function(e){return jr((function(t){var n=t.length,r=n,o=st.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new di(H);if(o&&!u&&"wrapper"==Ar(i))var u=new st([],!0)}for(r=u?r:n;++r<n;){var c=Ar(i=t[r]),s="wrapper"==c?Ia(i):a;u=s&&Vr(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?u[Ar(s[0])].apply(u,s[3]):1==i.length&&Vr(i)?u[c]():u.thru(i)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Tu(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))},mr=function(e,t){return function(n,r){return o=n,i=e,a=t(r),u={},Bt(o,(function(e,t,n){i(u,a(e),t,n)})),u;var o,i,a,u}},yr=function(e,t){return function(n,r){var o;if(n===a&&r===a)return t;if(n!==a&&(o=n),r!==a){if(o===a)return r;"string"==typeof n||"string"==typeof r?(n=ka(n),r=ka(r)):(n=zn(n),r=zn(r)),o=e(n,r)}return o}},vr=function(e){return jr((function(t){return t=m(t,C(Ir())),Tn((function(n){var r=this;return e(t,(function(e){return u(e,r,n)}))}))}))},gr=function(e,t){var n=(t=t===a?" ":ka(t)).length;if(n<2)return n?Pn(t,e):t;var r=Pn(t,Fi(e/W(t)));return U(t)?Yn(q(r),0,e).join(""):r.slice(0,e)},br=function(e){return function(t,n,r){return r&&"number"!=typeof r&&Fr(t,n,r)&&(n=r=a),t=Do(t),n===a?(n=t,t=0):n=Do(n),function(e,t,n,r){for(var o=-1,i=Zi(Fi((t-e)/(n||1)),0),a=ii(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=r===a?t<n?1:-1:Do(r),e)}},wr=function(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Uo(t),n=Uo(n)),e(t,n)}},_r=function(e,t,n,r,o,i,u,c,s,l){var f=8&t;t|=f?Q:64,4&(t&=~(f?64:Q))||(t&=-4);var p=[e,t,o,f?i:a,f?u:a,f?a:i,f?a:u,c,s,l],d=n.apply(a,p);return Vr(e)&&za(d,p),d.placeholder=r,Yr(d,e,t)},xr=function(e){var t=si[e];return function(e,n){if(e=Uo(e),(n=null==n?0:Gi(Mo(n),292))&&qi(e)){var r=(Fo(e)+"e").split("e");return+((r=(Fo(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}},Sr=function(e){return function(t){var n,r,o=Da(t);return o==le?z(t):o==me?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):(n=t,r=e(t),m(r,(function(e){return[e,n[e]]})))}},Er=function(e,t,n,o,i,c,s,l){var f=2&t;if(!f&&"function"!=typeof e)throw new di(H);var p=o?o.length:0;if(p||(t&=-97,o=i=a),s=s===a?s:Zi(Mo(s),0),l=l===a?l:Mo(l),p-=i?i.length:0,64&t){var d=o,h=i;o=i=a}var m,y,v,g,b=f?a:Ia(e),w=[e,t,n,o,i,d,h,c,s,l];if(b&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==Y&&8==n||r==Y&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?nr(c,u,t[4]):u,e[4]=c?B(e[3],G):t[4]}(u=t[5])&&(c=e[5],e[5]=c?rr(c,u,t[6]):u,e[6]=c?B(e[5],G):t[6]),(u=t[7])&&(e[7]=u),r&Y&&(e[8]=null==e[8]?t[8]:Gi(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(w,b),e=w[0],t=w[1],n=w[2],o=w[3],i=w[4],!(l=w[9]=w[9]===a?f?0:e.length:Zi(w[9]-p,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?(y=t,v=l,g=pr(m=e),function e(){for(var t=arguments.length,n=ii(t),o=t,i=Cr(e);o--;)n[o]=arguments[o];var c=t<3&&n[0]!==i&&n[t-1]!==i?[]:B(n,i);return(t-=c.length)<v?_r(m,y,Ta,e.placeholder,a,n,c,a,a,v-t):u(this&&this!==Ht&&r(this,e)?g:m,this,n)}):t!=Q&&33!=t||i.length?Ta.apply(a,w):function(e,t,n,o){var i=1&t,a=pr(e);return function t(){for(var c=-1,s=arguments.length,l=-1,f=o.length,p=ii(f+s),d=this&&this!==Ht&&r(this,t)?a:e;++l<f;)p[l]=o[l];for(;s--;)p[l++]=arguments[++c];return u(d,i?n:this,p)}}(e,t,n,o);else var _=function(e,t,n){var o=1&t,i=pr(e);return function t(){return(this&&this!==Ht&&r(this,t)?i:e).apply(o?n:this,arguments)}}(e,t,n);return Yr((b?$a:za)(_,w),e,t)},$r=function(e,t,n,r){return e===a||xo(e,yi[n])&&!bi.call(r,n)?t:e},Or=function(e){return Co(e)?a:e},kr=function(e,t,n,r,o,i){var u=1&n,c=e.length,s=t.length;if(c!=s&&!(u&&s>c))return!1;var l=i.get(e),f=i.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new ht:a;for(i.set(e,t),i.set(t,e);++p<c;){var m=e[p],y=t[p];if(r)var v=u?r(y,m,p,t,e,i):r(m,y,p,e,t,i);if(v!==a){if(v)continue;d=!1;break}if(h){if(!b(t,(function(e,t){if(!R(h,t)&&(m===e||o(m,e,n,r,i)))return h.push(t)}))){d=!1;break}}else if(m!==y&&!o(m,y,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d},jr=function(e){return Ba(Hr(e,a,io),e+"")},Pr=function(e){return Gt(e,Wo,Ra)},Tr=function(e){return Gt(e,qo,Na)},Ar=function(e){for(var t=e.name+"",n=ua[t],r=bi.call(ua,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t},Cr=function(e){return(bi.call(k,"placeholder")?k:e).placeholder},Ir=function(){var e=k.iteratee||Xo;return e=e===Xo?vn:e,arguments.length?e(arguments[0],arguments[1]):e},Rr=function(e,t){var n,r,i=e.__data__;return("string"==(r=o(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map},Nr=function(e){for(var t=Wo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,qr(o)]}return t},Dr=function(e,t){var n,r=null==(n=e)?a:n[t];return yn(r)?r:a},Mr=function(e,t,n){for(var r=-1,o=(t=Qn(t,e)).length,i=!1;++r<o;){var a=eo(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&jo(o)&&zr(a,o)&&(Tu(e)||Pu(e))},Lr=function(e){return"function"!=typeof e.constructor||Wr(e)?{}:ya(Ti(e))},Ur=function(e){return Tu(e)||Pu(e)||!!(Ri&&e&&e[Ri])},zr=function(e,t){var n=void 0===e?"undefined":o(e);return!!(t=null==t?X:t)&&("number"==n||"symbol"!=n&&it.test(e))&&e>-1&&e%1==0&&e<t},Fr=function(e,t,n){if(!Po(n))return!1;var r=void 0===t?"undefined":o(t);return!!("number"==r?So(n)&&zr(t,n.length):"string"==r&&t in n)&&xo(n[t],e)},Br=function(e,t){if(Tu(e))return!1;var n=void 0===e?"undefined":o(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ro(e))||Fe.test(e)||!ze.test(e)||null!=t&&e in li(t)},Vr=function(e){var t=Ar(e),n=k[t];if("function"!=typeof n||!(t in lt.prototype))return!1;if(e===n)return!0;var r=Ia(n);return!!r&&e===r[0]},Wr=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||yi)},qr=function(e){return e==e&&!Po(e)},Kr=function(e,t){return function(n){return null!=n&&n[e]===t&&(t!==a||e in li(n))}},Hr=function(e,t,n){return t=Zi(t===a?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Zi(r.length-t,0),a=ii(i);++o<i;)a[o]=r[t+o];o=-1;for(var c=ii(t+1);++o<t;)c[o]=r[o];return c[t]=n(a),u(e,this,c)}},Zr=function(e,t){return t.length<2?e:Zt(e,Nn(t,0,-1))},Gr=function(e,t){for(var n=e.length,r=Gi(t.length,n),o=or(e);r--;){var i=t[r];e[r]=zr(i,n)?o[i]:a}return e},Qr=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Yr=function(e,t,n){var r,o,i,a=t+"";return Ba(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(He,"{\n/* [wrapped with "+t+"] */\n")}(a,(o=(r=a.match(Ze))?r[1].split(Ge):[],i=n,s(ne,(function(e){var t="_."+e[0];i&e[1]&&!d(o,t)&&o.push(t)})),o.sort())))},Jr=function(e){var t=0,n=0;return function(){var r=Qi(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}},Xr=function(e,t){var n=-1,r=e.length,o=r-1;for(t=t===a?r:t;++n<t;){var i=jn(n,o),u=e[i];e[i]=e[n],e[n]=u}return e.length=t,e},eo=function(e){if("string"==typeof e||Ro(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},to=function(e){if(null!=e){try{return gi.call(e)}catch(e){}try{return e+""}catch(e){}}return""},no=function(e){if(r(e,lt))return e.clone();var t=new st(e.__wrapped__,e.__chain__);return t.__actions__=or(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},ro=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Mo(n);return o<0&&(o=Zi(r+o,0)),_(e,Ir(t,3),o)},oo=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==a&&(o=Mo(n),o=n<0?Zi(r+o,0):Gi(o,r-1)),_(e,Ir(t,3),o,!0)},io=function(e){return null!=e&&e.length?wa(e,1):[]},ao=function(e){return e&&e.length?e[0]:a},uo=function(e){var t=null==e?0:e.length;return t?e[t-1]:a},co=function(e,t){return e&&e.length&&t&&t.length?On(e,t):e},so=function(e){return null==e?e:Xi.call(e)},lo=function(e){if(!e||!e.length)return[];var t=0;return e=p(e,(function(e){if(Eo(e))return t=Zi(e.length,t),!0})),T(t,(function(t){return m(e,O(t))}))},fo=function(e,t){if(!e||!e.length)return[];var n=lo(e);return null==t?n:m(n,(function(e){return u(t,a,e)}))},po=function(e){var t=k(e);return t.__chain__=!0,t},ho=function(e,t){return t(e)},mo=function(e,t){return(Tu(e)?s:ga)(e,Ir(t,3))},yo=function(e,t){return(Tu(e)?l:ba)(e,Ir(t,3))},vo=function(e,t){return(Tu(e)?m:wn)(e,Ir(t,3))},go=function(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Er(e,Y,a,a,a,a,t)},bo=function(e,t){var n;if("function"!=typeof t)throw new di(H);return e=Mo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}},wo=function(e,t,n){var r,o,i,u,c,s,l=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new di(H);function h(t){var n=r,i=o;return r=o=a,l=t,u=e.apply(i,n)}function m(e){return l=e,c=Fa(v,t),f?h(e):u}function y(e){var n=e-s;return s===a||n>=t||n<0||p&&e-l>=i}function v(){var e,n,r=yu();if(y(r))return g(r);c=Fa(v,(n=t-((e=r)-s),p?Gi(n,i-(e-l)):n))}function g(e){return c=a,d&&r?h(e):(r=o=a,u)}function b(){var e=yu(),n=y(e);if(r=arguments,o=this,s=e,n){if(c===a)return m(s);if(p)return Pa(c),c=Fa(v,t),h(s)}return c===a&&(c=Fa(v,t)),u}return t=Uo(t)||0,Po(n)&&(f=!!n.leading,i=(p="maxWait"in n)?Zi(Uo(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),b.cancel=function(){c!==a&&Pa(c),l=0,r=s=o=c=a},b.flush=function(){return c===a?u:g(yu())},b},_o=function(e){if("function"!=typeof e)throw new di(H);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},xo=function(e,t){return e===t||e!=e&&t!=t},So=function(e){return null!=e&&jo(e.length)&&!Oo(e)},Eo=function(e){return To(e)&&So(e)},$o=function(e){if(!To(e))return!1;var t=Yt(e);return t==ue||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Co(e)},Oo=function(e){if(!Po(e))return!1;var t=Yt(e);return t==ce||t==se||"[object AsyncFunction]"==t||"[object Proxy]"==t},ko=function(e){return"number"==typeof e&&e==Mo(e)},jo=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=X},Po=function(e){var t=void 0===e?"undefined":o(e);return null!=e&&("object"==t||"function"==t)},To=function(e){return null!=e&&"object"==typeof e},Ao=function(e){return"number"==typeof e||To(e)&&Yt(e)==fe},Co=function(e){if(!To(e)||Yt(e)!=pe)return!1;var t=Ti(e);if(null===t)return!0;var n=bi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&r(n,n)&&gi.call(n)==Si},Io=function(e){return"string"==typeof e||!Tu(e)&&To(e)&&Yt(e)==ye},Ro=function(e){return"symbol"==(void 0===e?"undefined":o(e))||To(e)&&Yt(e)==ve},No=function(e){if(!e)return[];if(So(e))return Io(e)?q(e):or(e);if(Ni&&e[Ni])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ni]());var t=Da(e);return(t==le?z:t==me?V:Ho)(e)},Do=function(e){return e?(e=Uo(e))===J||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},Mo=function(e){var t=Do(e),n=t%1;return t==t?n?t-n:t:0},Lo=function(e){return e?kt(Mo(e),0,te):0},Uo=function(e){if("number"==typeof e)return e;if(Ro(e))return ee;if(Po(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Po(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=A(e);var n=nt.test(e);return n||ot.test(e)?Wt(e.slice(2),n?2:8):tt.test(e)?ee:+e},zo=function(e){return ir(e,qo(e))},Fo=function(e){return null==e?"":ka(e)},Bo=function(e,t,n){var r=null==e?a:Zt(e,t);return r===a?n:r},Vo=function(e,t){return null!=e&&Mr(e,t,fn)},Wo=function(e){return So(e)?yt(e):gn(e)},qo=function(e){return So(e)?yt(e,!0):function(e){if(!Po(e))return function(e){var t=[];if(null!=e)for(var n in li(e))t.push(n);return t}(e);var t=Wr(e),n=[];for(var r in e)("constructor"!=r||!t&&bi.call(e,r))&&n.push(r);return n}(e)},Ko=function(e,t){if(null==e)return{};var n=m(Tr(e),(function(e){return[e]}));return t=Ir(t),$n(e,n,(function(e,n){return t(e,n[0])}))},Ho=function(e){return null==e?[]:I(e,Wo(e))},Zo=function(e){return sc(Fo(e).toLowerCase())},Go=function(e){return(e=Fo(e))&&e.replace(at,un).replace(It,"")},Qo=function(e,t,n){return e=Fo(e),(t=n?a:t)===a?(r=e,Mt.test(r)?function(e){return e.match(Nt)||[]}(e):function(e){return e.match(Qe)||[]}(e)):e.match(t)||[];var r},Yo=function(e){return function(){return e}},Jo=function(e){return e},Xo=function(e){return vn("function"==typeof e?e:va(e,1))},ei=function(e,t,n){var r=Wo(t),o=Kt(t,r);null!=n||Po(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Kt(t,Wo(t)));var i=!(Po(n)&&"chain"in n&&!n.chain),a=Oo(e);return s(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=or(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,y([this.value()],arguments))})})),e},ti=function(){},ni=function(e){return Br(e)?O(eo(e)):(t=e,function(e){return Zt(e,t)});var t},ri=function(){return[]},oi=function(){return!1},ii=(t=null==t?Ht:ln.defaults(Ht.Object(),t,ln.pick(Ht,Lt))).Array,ai=t.Date,ui=t.Error,ci=t.Function,si=t.Math,li=t.Object,fi=t.RegExp,pi=t.String,di=t.TypeError,hi=ii.prototype,mi=ci.prototype,yi=li.prototype,vi=t["__core-js_shared__"],gi=mi.toString,bi=yi.hasOwnProperty,wi=0,_i=(n=/[^.]+$/.exec(vi&&vi.keys&&vi.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",xi=yi.toString,Si=gi.call(li),Ei=Ht._,$i=fi("^"+gi.call(bi).replace(Ve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oi=Qt?t.Buffer:a,ki=t.Symbol,ji=t.Uint8Array,Pi=Oi?Oi.allocUnsafe:a,Ti=F(li.getPrototypeOf,li),Ai=li.create,Ci=yi.propertyIsEnumerable,Ii=hi.splice,Ri=ki?ki.isConcatSpreadable:a,Ni=ki?ki.iterator:a,Di=ki?ki.toStringTag:a,Mi=function(){try{var e=Dr(li,"defineProperty");return e({},"",{}),e}catch(e){}}(),Li=t.clearTimeout!==Ht.clearTimeout&&t.clearTimeout,Ui=ai&&ai.now!==Ht.Date.now&&ai.now,zi=t.setTimeout!==Ht.setTimeout&&t.setTimeout,Fi=si.ceil,Bi=si.floor,Vi=li.getOwnPropertySymbols,Wi=Oi?Oi.isBuffer:a,qi=t.isFinite,Ki=hi.join,Hi=F(li.keys,li),Zi=si.max,Gi=si.min,Qi=ai.now,Yi=t.parseInt,Ji=si.random,Xi=hi.reverse,ea=Dr(t,"DataView"),ta=Dr(t,"Map"),na=Dr(t,"Promise"),ra=Dr(t,"Set"),oa=Dr(t,"WeakMap"),ia=Dr(li,"create"),aa=oa&&new oa,ua={},ca=to(ea),sa=to(ta),la=to(na),fa=to(ra),pa=to(oa),da=ki?ki.prototype:a,ha=da?da.valueOf:a,ma=da?da.toString:a,ya=(i=function(){},function(e){if(!Po(e))return{};if(Ai)return Ai(e);i.prototype=e;var t=new i;return i.prototype=a,t});function va(e,t,n,r,o,i){var u,c=1&t,l=2&t,f=4&t;if(n&&(u=o?n(e,r,o,i):n(e)),u!==a)return u;if(!Po(e))return e;var p,d,h,m=Tu(e);if(m){if(d=(p=e).length,h=new p.constructor(d),d&&"string"==typeof p[0]&&bi.call(p,"index")&&(h.index=p.index,h.input=p.input),u=h,!c)return or(e,u)}else{var y=Da(e),v=y==ce||y==se;if(Cu(e))return Jn(e,c);if(y==pe||y==re||v&&!o){if(u=l||v?{}:Lr(e),!c)return l?function(e,t){return ir(e,Na(e),t)}(e,function(e,t){return e&&ir(t,qo(t),e)}(u,e)):function(e,t){return ir(e,Ra(e),t)}(e,Et(u,e))}else{if(!Ft[y])return o?e:{};u=function(e,t,n){var r,o=e.constructor;switch(t){case be:return Xn(e);case ie:case ae:return new o(+e);case we:return function(e,t){var n=t?Xn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case _e:case xe:case Se:case Ee:case $e:case Oe:case ke:case je:case Pe:return er(e,n);case le:return new o;case fe:case ye:return new o(e);case he:return function(e){var t=new e.constructor(e.source,et.exec(e));return t.lastIndex=e.lastIndex,t}(e);case me:return new o;case ve:return r=e,ha?li(ha.call(r)):{}}}(e,y,c)}}i||(i=new mt);var g=i.get(e);if(g)return g;i.set(e,u),Du(e)?e.forEach((function(r){u.add(va(r,t,n,r,e,i))})):Ru(e)&&e.forEach((function(r,o){u.set(o,va(r,t,n,o,e,i))}));var b=m?a:(f?l?Tr:Pr:l?qo:Wo)(e);return s(b||e,(function(r,o){b&&(r=e[o=r]),_t(u,o,va(r,t,n,o,e,i))})),u}k.templateSettings={escape:Me,evaluate:Le,interpolate:Ue,variable:"",imports:{_:k}},(k.prototype=Ke.prototype).constructor=k,st.prototype=ya(Ke.prototype),st.prototype.constructor=st,lt.prototype=ya(Ke.prototype),lt.prototype.constructor=lt,ft.prototype.clear=function(){this.__data__=ia?ia(null):{},this.size=0},ft.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ft.prototype.get=function(e){var t=this.__data__;if(ia){var n=t[e];return n===Z?a:n}return bi.call(t,e)?t[e]:a},ft.prototype.has=function(e){var t=this.__data__;return ia?t[e]!==a:bi.call(t,e)},ft.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ia&&t===a?Z:t,this},pt.prototype.clear=function(){this.__data__=[],this.size=0},pt.prototype.delete=function(e){var t=this.__data__,n=xt(t,e);return!(n<0||(n==t.length-1?t.pop():Ii.call(t,n,1),--this.size,0))},pt.prototype.get=function(e){var t=this.__data__,n=xt(t,e);return n<0?a:t[n][1]},pt.prototype.has=function(e){return xt(this.__data__,e)>-1},pt.prototype.set=function(e,t){var n=this.__data__,r=xt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},dt.prototype.clear=function(){this.size=0,this.__data__={hash:new ft,map:new(ta||pt),string:new ft}},dt.prototype.delete=function(e){var t=Rr(this,e).delete(e);return this.size-=t?1:0,t},dt.prototype.get=function(e){return Rr(this,e).get(e)},dt.prototype.has=function(e){return Rr(this,e).has(e)},dt.prototype.set=function(e,t){var n=Rr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ht.prototype.add=ht.prototype.push=function(e){return this.__data__.set(e,Z),this},ht.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.clear=function(){this.__data__=new pt,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var n=this.__data__;if(r(n,pt)){var o=n.__data__;if(!ta||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new dt(o)}return n.set(e,t),this.size=n.size,this};var ga=cr(Bt),ba=cr(qt,!0);function wa(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Ur),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?wa(u,t-1,n,r,o):y(o,u):r||(o[o.length]=u)}return o}var _a=sr(),xa=sr(!0);function Sa(e,t,n,o,i){return e===t||(null==e||null==t||!To(e)&&!To(t)?e!=e&&t!=t:function(e,t,n,o,i,u){var c=Tu(e),s=Tu(t),l=c?oe:Da(e),f=s?oe:Da(t),p=(l=l==re?pe:l)==pe,d=(f=f==re?pe:f)==pe,h=l==f;if(h&&Cu(e)){if(!Cu(t))return!1;c=!0,p=!1}if(h&&!p)return u||(u=new mt),c||Mu(e)?kr(e,t,n,o,i,u):function(e,t,n,r,o,i,a){switch(n){case we:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case be:return!(e.byteLength!=t.byteLength||!i(new ji(e),new ji(t)));case ie:case ae:case fe:return xo(+e,+t);case ue:return e.name==t.name&&e.message==t.message;case he:case ye:return e==t+"";case le:var u=z;case me:var c=1&r;if(u||(u=V),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var l=kr(u(e),u(t),r,o,i,a);return a.delete(e),l;case ve:if(ha)return ha.call(e)==ha.call(t)}return!1}(e,t,l,n,o,i,u);if(!(1&n)){var m=p&&bi.call(e,"__wrapped__"),y=d&&bi.call(t,"__wrapped__");if(m||y){var v=m?e.value():e,g=y?t.value():t;return u||(u=new mt),i(v,g,n,o,u)}}return!!h&&(u||(u=new mt),function(e,t,n,o,i,u){var c=1&n,s=Pr(e),l=s.length;if(l!=Pr(t).length&&!c)return!1;for(var f=l;f--;){var p=s[f];if(!(c?p in t:bi.call(t,p)))return!1}var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var m=!0;u.set(e,t),u.set(t,e);for(var y=c;++f<l;){var v=e[p=s[f]],g=t[p];if(o)var b=c?o(g,v,p,t,e,u):o(v,g,p,e,t,u);if(!(b===a?v===g||i(v,g,n,o,u):b)){m=!1;break}y||(y="constructor"==p)}if(m&&!y){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&r(w,w)&&"function"==typeof _&&r(_,_)||(m=!1)}return u.delete(e),u.delete(t),m}(e,t,n,o,i,u))}(e,t,n,o,Sa,i))}function Ea(e,t,n,r,o){e!==t&&_a(t,(function(i,u){if(o||(o=new mt),Po(i))!function(e,t,n,r,o,i,u){var c=Qr(e,n),s=Qr(t,n),l=u.get(s);if(l)wt(e,n,l);else{var f=i?i(c,s,n+"",e,t,u):a,p=f===a;if(p){var d=Tu(s),h=!d&&Cu(s),m=!d&&!h&&Mu(s);f=s,d||h||m?Tu(c)?f=c:Eo(c)?f=or(c):h?(p=!1,f=Jn(s,!0)):m?(p=!1,f=er(s,!0)):f=[]:Co(s)||Pu(s)?(f=c,Pu(c)?f=zo(c):Po(c)&&!Oo(c)||(f=Lr(s))):p=!1}p&&(u.set(s,f),o(f,s,r,i,u),u.delete(s)),wt(e,n,f)}}(e,t,u,n,Ea,r,o);else{var c=r?r(Qr(e,u),i,u+"",e,t,o):a;c===a&&(c=i),wt(e,u,c)}}),qo)}var $a=aa?function(e,t){return aa.set(e,t),e}:Jo,Oa=Mi?function(e,t){return Mi(e,"toString",{configurable:!0,enumerable:!1,value:Yo(t),writable:!0})}:Jo;function ka(e){if("string"==typeof e)return e;if(Tu(e))return m(e,ka)+"";if(Ro(e))return ma?ma.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var ja=Tn,Pa=Li||function(e){return Ht.clearTimeout(e)};function Ta(e,t,n,o,i,u,c,s,l,f){var p=t&Y,d=1&t,h=2&t,m=24&t,y=512&t,v=h?a:pr(e);return function a(){for(var g=arguments.length,b=ii(g),w=g;w--;)b[w]=arguments[w];if(m)var _=Cr(a),x=M(b,_);if(o&&(b=nr(b,o,i,m)),u&&(b=rr(b,u,c,m)),g-=x,m&&g<f){var S=B(b,_);return _r(e,t,Ta,a.placeholder,n,b,S,s,l,f-g)}var E=d?n:this,$=h?E[e]:e;return g=b.length,s?b=Gr(b,s):y&&g>1&&b.reverse(),p&&l<g&&(b.length=l),this&&this!==Ht&&r(this,a)&&($=v||pr($)),$.apply(E,b)}}var Aa=ra&&1/V(new ra([,-0]))[1]==J?function(e){return new ra(e)}:ti;function Ca(e,t,n,r,o,i){return Po(e)&&Po(t)&&(i.set(t,e),Ea(e,t,a,Ca,i),i.delete(t)),e}var Ia=aa?function(e){return aa.get(e)}:ti,Ra=Vi?function(e){return null==e?[]:(e=li(e),p(Vi(e),(function(t){return Ci.call(e,t)})))}:ri,Na=Vi?function(e){for(var t=[];e;)y(t,Ra(e)),e=Ti(e);return t}:ri,Da=Yt;(ea&&Da(new ea(new ArrayBuffer(1)))!=we||ta&&Da(new ta)!=le||na&&Da(na.resolve())!=de||ra&&Da(new ra)!=me||oa&&Da(new oa)!=ge)&&(Da=function(e){var t=Yt(e),n=t==pe?e.constructor:a,r=n?to(n):"";if(r)switch(r){case ca:return we;case sa:return le;case la:return de;case fa:return me;case pa:return ge}return t});var Ma,La,Ua=vi?Oo:oi,za=Jr($a),Fa=zi||function(e,t){return Ht.setTimeout(e,t)},Ba=Jr(Oa),Va=(Ma=_u((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Be,(function(e,n,r,o){t.push(r?o.replace(Je,"$1"):n||e)})),t}),(function(e){return 500===La.size&&La.clear(),e})),La=Ma.cache,Ma),Wa=Tn((function(e,t){return Eo(e)?Tt(e,wa(t,1,Eo,!0)):[]})),qa=Tn((function(e,t){var n=uo(t);return Eo(n)&&(n=a),Eo(e)?Tt(e,wa(t,1,Eo,!0),Ir(n,2)):[]})),Ka=Tn((function(e,t){var n=uo(t);return Eo(n)&&(n=a),Eo(e)?Tt(e,wa(t,1,Eo,!0),a,n):[]})),Ha=Tn((function(e){var t=m(e,Zn);return t.length&&t[0]===e[0]?pn(t):[]})),Za=Tn((function(e){var t=uo(e),n=m(e,Zn);return t===uo(n)?t=a:n.pop(),n.length&&n[0]===e[0]?pn(n,Ir(t,2)):[]})),Ga=Tn((function(e){var t=uo(e),n=m(e,Zn);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?pn(n,a,t):[]})),Qa=Tn(co),Ya=jr((function(e,t){var n=null==e?0:e.length,r=Ot(e,t);return kn(e,m(t,(function(e){return zr(e,n)?+e:e})).sort(tr)),r})),Ja=Tn((function(e){return Fn(wa(e,1,Eo,!0))})),Xa=Tn((function(e){var t=uo(e);return Eo(t)&&(t=a),Fn(wa(e,1,Eo,!0),Ir(t,2))})),eu=Tn((function(e){var t=uo(e);return t="function"==typeof t?t:a,Fn(wa(e,1,Eo,!0),a,t)})),tu=Tn((function(e,t){return Eo(e)?Tt(e,t):[]})),nu=Tn((function(e){return Kn(p(e,Eo))})),ru=Tn((function(e){var t=uo(e);return Eo(t)&&(t=a),Kn(p(e,Eo),Ir(t,2))})),ou=Tn((function(e){var t=uo(e);return t="function"==typeof t?t:a,Kn(p(e,Eo),a,t)})),iu=Tn(lo),au=Tn((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,fo(e,n)})),uu=jr((function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,i=function(t){return Ot(t,e)};return t>1||this.__actions__.length||!r(o,lt)||!zr(n)?this.thru(i):((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:a}),new st(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e})))})),cu=ar((function(e,t,n){bi.call(e,n)?++e[n]:$t(e,n,1)})),su=dr(ro),lu=dr(oo),fu=ar((function(e,t,n){bi.call(e,n)?e[n].push(t):$t(e,n,[t])})),pu=Tn((function(e,t,n){var r=-1,o="function"==typeof t,i=So(e)?ii(e.length):[];return ga(e,(function(e){i[++r]=o?u(t,e,n):dn(e,t,n)})),i})),du=ar((function(e,t,n){$t(e,n,t)})),hu=ar((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),mu=Tn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Fr(e,t[0],t[1])?t=[]:n>2&&Fr(t[0],t[1],t[2])&&(t=[t[0]]),En(e,wa(t,1),[])})),yu=Ui||function(){return Ht.Date.now()},vu=Tn((function(e,t,n){var r=1;if(n.length){var o=B(n,Cr(vu));r|=Q}return Er(e,r,t,n,o)})),gu=Tn((function(e,t,n){var r=3;if(n.length){var o=B(n,Cr(gu));r|=Q}return Er(t,r,e,n,o)})),bu=Tn((function(e,t){return Pt(e,1,t)})),wu=Tn((function(e,t,n){return Pt(e,Uo(t)||0,n)}));function _u(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new di(H);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(_u.Cache||dt),n}_u.Cache=dt;var xu,Su=ja((function(e,t){var n=(t=1==t.length&&Tu(t[0])?m(t[0],C(Ir())):m(wa(t,1),C(Ir()))).length;return Tn((function(r){for(var o=-1,i=Gi(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return u(e,this,r)}))})),Eu=Tn((function(e,t){var n=B(t,Cr(Eu));return Er(e,Q,a,t,n)})),$u=Tn((function(e,t){var n=B(t,Cr($u));return Er(e,64,a,t,n)})),Ou=jr((function(e,t){return Er(e,256,a,a,a,t)})),ku=wr(Jt),ju=wr((function(e,t){return e>=t})),Pu=hn(function(){return arguments}())?hn:function(e){return To(e)&&bi.call(e,"callee")&&!Ci.call(e,"callee")},Tu=ii.isArray,Au=Xt?C(Xt):function(e){return To(e)&&Yt(e)==be},Cu=Wi||oi,Iu=en?C(en):function(e){return To(e)&&Yt(e)==ae},Ru=tn?C(tn):function(e){return To(e)&&Da(e)==le},Nu=nn?C(nn):function(e){return To(e)&&Yt(e)==he},Du=rn?C(rn):function(e){return To(e)&&Da(e)==me},Mu=on?C(on):function(e){return To(e)&&jo(e.length)&&!!zt[Yt(e)]},Lu=wr(bn),Uu=wr((function(e,t){return e<=t})),zu=ur((function(e,t){if(Wr(t)||So(t))ir(t,Wo(t),e);else for(var n in t)bi.call(t,n)&&_t(e,n,t[n])})),Fu=ur((function(e,t){ir(t,qo(t),e)})),Bu=ur((function(e,t,n,r){ir(t,qo(t),e,r)})),Vu=ur((function(e,t,n,r){ir(t,Wo(t),e,r)})),Wu=jr(Ot),qu=Tn((function(e,t){e=li(e);var n=-1,r=t.length,o=r>2?t[2]:a;for(o&&Fr(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],u=qo(i),c=-1,s=u.length;++c<s;){var l=u[c],f=e[l];(f===a||xo(f,yi[l])&&!bi.call(e,l))&&(e[l]=i[l])}return e})),Ku=Tn((function(e){return e.push(a,Ca),u(Yu,a,e)})),Hu=mr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=xi.call(t)),e[t]=n}),Yo(Jo)),Zu=mr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=xi.call(t)),bi.call(e,t)?e[t].push(n):e[t]=[n]}),Ir),Gu=Tn(dn),Qu=ur((function(e,t,n){Ea(e,t,n)})),Yu=ur((function(e,t,n,r){Ea(e,t,n,r)})),Ju=jr((function(e,t){var n={};if(null==e)return n;var r=!1;t=m(t,(function(t){return t=Qn(t,e),r||(r=t.length>1),t})),ir(e,Tr(e),n),r&&(n=va(n,7,Or));for(var o=t.length;o--;)Bn(n,t[o]);return n})),Xu=jr((function(e,t){return null==e?{}:$n(n=e,t,(function(e,t){return Vo(n,t)}));var n})),ec=Sr(Wo),tc=Sr(qo),nc=fr((function(e,t,n){return t=t.toLowerCase(),e+(n?Zo(t):t)})),rc=fr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),oc=fr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ic=lr("toLowerCase"),ac=fr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),uc=fr((function(e,t,n){return e+(n?" ":"")+sc(t)})),cc=fr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),sc=lr("toUpperCase"),lc=Tn((function(e,t){try{return u(e,a,t)}catch(e){return $o(e)?e:new ui(e)}})),fc=jr((function(e,t){return s(t,(function(t){t=eo(t),$t(e,t,vu(e[t],e))})),e})),pc=hr(),dc=hr(!0),hc=Tn((function(e,t){return function(n){return dn(n,e,t)}})),mc=Tn((function(e,t){return function(n){return dn(e,n,t)}})),yc=vr(m),vc=vr(f),gc=vr(b),bc=br(),wc=br(!0),_c=yr((function(e,t){return e+t}),0),xc=xr("ceil"),Sc=yr((function(e,t){return e/t}),1),Ec=xr("floor"),$c=yr((function(e,t){return e*t}),1),Oc=xr("round"),kc=yr((function(e,t){return e-t}),0);return k.after=function(e,t){if("function"!=typeof t)throw new di(H);return e=Mo(e),function(){if(--e<1)return t.apply(this,arguments)}},k.ary=go,k.assign=zu,k.assignIn=Fu,k.assignInWith=Bu,k.assignWith=Vu,k.at=Wu,k.before=bo,k.bind=vu,k.bindAll=fc,k.bindKey=gu,k.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Tu(e)?e:[e]},k.chain=po,k.chunk=function(e,t,n){t=(n?Fr(e,t,n):t===a)?1:Zi(Mo(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,u=ii(Fi(r/t));o<r;)u[i++]=Nn(e,o,o+=t);return u},k.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},k.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ii(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return y(Tu(n)?or(n):[n],wa(t,1))},k.cond=function(e){var t=null==e?0:e.length,n=Ir();return e=t?m(e,(function(e){if("function"!=typeof e[1])throw new di(H);return[n(e[0]),e[1]]})):[],Tn((function(n){for(var r=-1;++r<t;){var o=e[r];if(u(o[0],this,n))return u(o[1],this,n)}}))},k.conforms=function(e){return t=va(e,1),n=Wo(t),function(e){return jt(e,t,n)};var t,n},k.constant=Yo,k.countBy=cu,k.create=function(e,t){var n=ya(e);return null==t?n:Et(n,t)},k.curry=function e(t,n,r){var o=Er(t,8,a,a,a,a,a,n=r?a:n);return o.placeholder=e.placeholder,o},k.curryRight=function e(t,n,r){var o=Er(t,16,a,a,a,a,a,n=r?a:n);return o.placeholder=e.placeholder,o},k.debounce=wo,k.defaults=qu,k.defaultsDeep=Ku,k.defer=bu,k.delay=wu,k.difference=Wa,k.differenceBy=qa,k.differenceWith=Ka,k.drop=function(e,t,n){var r=null==e?0:e.length;return r?Nn(e,(t=n||t===a?1:Mo(t))<0?0:t,r):[]},k.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Nn(e,0,(t=r-(t=n||t===a?1:Mo(t)))<0?0:t):[]},k.dropRightWhile=function(e,t){return e&&e.length?Wn(e,Ir(t,3),!0,!0):[]},k.dropWhile=function(e,t){return e&&e.length?Wn(e,Ir(t,3),!0):[]},k.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Fr(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Mo(n))<0&&(n=-n>o?0:o+n),(r=r===a||r>o?o:Mo(r))<0&&(r+=o),r=n>r?0:Lo(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},k.filter=function(e,t){return(Tu(e)?p:Dt)(e,Ir(t,3))},k.flatMap=function(e,t){return wa(vo(e,t),1)},k.flatMapDeep=function(e,t){return wa(vo(e,t),J)},k.flatMapDepth=function(e,t,n){return n=n===a?1:Mo(n),wa(vo(e,t),n)},k.flatten=io,k.flattenDeep=function(e){return null!=e&&e.length?wa(e,J):[]},k.flattenDepth=function(e,t){return null!=e&&e.length?wa(e,t=t===a?1:Mo(t)):[]},k.flip=function(e){return Er(e,512)},k.flow=pc,k.flowRight=dc,k.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},k.functions=function(e){return null==e?[]:Kt(e,Wo(e))},k.functionsIn=function(e){return null==e?[]:Kt(e,qo(e))},k.groupBy=fu,k.initial=function(e){return null!=e&&e.length?Nn(e,0,-1):[]},k.intersection=Ha,k.intersectionBy=Za,k.intersectionWith=Ga,k.invert=Hu,k.invertBy=Zu,k.invokeMap=pu,k.iteratee=Xo,k.keyBy=du,k.keys=Wo,k.keysIn=qo,k.map=vo,k.mapKeys=function(e,t){var n={};return t=Ir(t,3),Bt(e,(function(e,r,o){$t(n,t(e,r,o),e)})),n},k.mapValues=function(e,t){var n={};return t=Ir(t,3),Bt(e,(function(e,r,o){$t(n,r,t(e,r,o))})),n},k.matches=function(e){return _n(va(e,1))},k.matchesProperty=function(e,t){return xn(e,va(t,1))},k.memoize=_u,k.merge=Qu,k.mergeWith=Yu,k.method=hc,k.methodOf=mc,k.mixin=ei,k.negate=_o,k.nthArg=function(e){return e=Mo(e),Tn((function(t){return Sn(t,e)}))},k.omit=Ju,k.omitBy=function(e,t){return Ko(e,_o(Ir(t)))},k.once=function(e){return bo(2,e)},k.orderBy=function(e,t,n,r){return null==e?[]:(Tu(t)||(t=null==t?[]:[t]),Tu(n=r?a:n)||(n=null==n?[]:[n]),En(e,t,n))},k.over=yc,k.overArgs=Su,k.overEvery=vc,k.overSome=gc,k.partial=Eu,k.partialRight=$u,k.partition=hu,k.pick=Xu,k.pickBy=Ko,k.property=ni,k.propertyOf=function(e){return function(t){return null==e?a:Zt(e,t)}},k.pull=Qa,k.pullAll=co,k.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?On(e,t,Ir(n,2)):e},k.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?On(e,t,a,n):e},k.pullAt=Ya,k.range=bc,k.rangeRight=wc,k.rearg=Ou,k.reject=function(e,t){return(Tu(e)?p:Dt)(e,_o(Ir(t,3)))},k.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Ir(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return kn(e,o),n},k.rest=function(e,t){if("function"!=typeof e)throw new di(H);return Tn(e,t=t===a?t:Mo(t))},k.reverse=so,k.sampleSize=function(e,t,n){return t=(n?Fr(e,t,n):t===a)?1:Mo(t),(Tu(e)?gt:Cn)(e,t)},k.set=function(e,t,n){return null==e?e:In(e,t,n)},k.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:In(e,t,n,r)},k.shuffle=function(e){return(Tu(e)?bt:Rn)(e)},k.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Fr(e,t,n)?(t=0,n=r):(t=null==t?0:Mo(t),n=n===a?r:Mo(n)),Nn(e,t,n)):[]},k.sortBy=mu,k.sortedUniq=function(e){return e&&e.length?Un(e):[]},k.sortedUniqBy=function(e,t){return e&&e.length?Un(e,Ir(t,2)):[]},k.split=function(e,t,n){return n&&"number"!=typeof n&&Fr(e,t,n)&&(t=n=a),(n=n===a?te:n>>>0)?(e=Fo(e))&&("string"==typeof t||null!=t&&!Nu(t))&&!(t=ka(t))&&U(e)?Yn(q(e),0,n):e.split(t,n):[]},k.spread=function(e,t){if("function"!=typeof e)throw new di(H);return t=null==t?0:Zi(Mo(t),0),Tn((function(n){var r=n[t],o=Yn(n,0,t);return r&&y(o,r),u(e,this,o)}))},k.tail=function(e){var t=null==e?0:e.length;return t?Nn(e,1,t):[]},k.take=function(e,t,n){return e&&e.length?Nn(e,0,(t=n||t===a?1:Mo(t))<0?0:t):[]},k.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Nn(e,(t=r-(t=n||t===a?1:Mo(t)))<0?0:t,r):[]},k.takeRightWhile=function(e,t){return e&&e.length?Wn(e,Ir(t,3),!1,!0):[]},k.takeWhile=function(e,t){return e&&e.length?Wn(e,Ir(t,3)):[]},k.tap=function(e,t){return t(e),e},k.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new di(H);return Po(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),wo(e,t,{leading:r,maxWait:t,trailing:o})},k.thru=ho,k.toArray=No,k.toPairs=ec,k.toPairsIn=tc,k.toPath=function(e){return Tu(e)?m(e,eo):Ro(e)?[e]:or(Va(Fo(e)))},k.toPlainObject=zo,k.transform=function(e,t,n){var r=Tu(e),o=r||Cu(e)||Mu(e);if(t=Ir(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Po(e)&&Oo(i)?ya(Ti(e)):{}}return(o?s:Bt)(e,(function(e,r,o){return t(n,e,r,o)})),n},k.unary=function(e){return go(e,1)},k.union=Ja,k.unionBy=Xa,k.unionWith=eu,k.uniq=function(e){return e&&e.length?Fn(e):[]},k.uniqBy=function(e,t){return e&&e.length?Fn(e,Ir(t,2)):[]},k.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?Fn(e,a,t):[]},k.unset=function(e,t){return null==e||Bn(e,t)},k.unzip=lo,k.unzipWith=fo,k.update=function(e,t,n){return null==e?e:Vn(e,t,Gn(n))},k.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Vn(e,t,Gn(n),r)},k.values=Ho,k.valuesIn=function(e){return null==e?[]:I(e,qo(e))},k.without=tu,k.words=Qo,k.wrap=function(e,t){return Eu(Gn(t),e)},k.xor=nu,k.xorBy=ru,k.xorWith=ou,k.zip=iu,k.zipObject=function(e,t){return Hn(e||[],t||[],_t)},k.zipObjectDeep=function(e,t){return Hn(e||[],t||[],In)},k.zipWith=au,k.entries=ec,k.entriesIn=tc,k.extend=Fu,k.extendWith=Bu,ei(k,k),k.add=_c,k.attempt=lc,k.camelCase=nc,k.capitalize=Zo,k.ceil=xc,k.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=Uo(n))==n?n:0),t!==a&&(t=(t=Uo(t))==t?t:0),kt(Uo(e),t,n)},k.clone=function(e){return va(e,4)},k.cloneDeep=function(e){return va(e,5)},k.cloneDeepWith=function(e,t){return va(e,5,t="function"==typeof t?t:a)},k.cloneWith=function(e,t){return va(e,4,t="function"==typeof t?t:a)},k.conformsTo=function(e,t){return null==t||jt(e,t,Wo(t))},k.deburr=Go,k.defaultTo=function(e,t){return null==e||e!=e?t:e},k.divide=Sc,k.endsWith=function(e,t,n){e=Fo(e),t=ka(t);var r=e.length,o=n=n===a?r:kt(Mo(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},k.eq=xo,k.escape=function(e){return(e=Fo(e))&&De.test(e)?e.replace(Re,cn):e},k.escapeRegExp=function(e){return(e=Fo(e))&&We.test(e)?e.replace(Ve,"\\$&"):e},k.every=function(e,t,n){var r=Tu(e)?f:At;return n&&Fr(e,t,n)&&(t=a),r(e,Ir(t,3))},k.find=su,k.findIndex=ro,k.findKey=function(e,t){return w(e,Ir(t,3),Bt)},k.findLast=lu,k.findLastIndex=oo,k.findLastKey=function(e,t){return w(e,Ir(t,3),qt)},k.floor=Ec,k.forEach=mo,k.forEachRight=yo,k.forIn=function(e,t){return null==e?e:_a(e,Ir(t,3),qo)},k.forInRight=function(e,t){return null==e?e:xa(e,Ir(t,3),qo)},k.forOwn=function(e,t){return e&&Bt(e,Ir(t,3))},k.forOwnRight=function(e,t){return e&&qt(e,Ir(t,3))},k.get=Bo,k.gt=ku,k.gte=ju,k.has=function(e,t){return null!=e&&Mr(e,t,an)},k.hasIn=Vo,k.head=ao,k.identity=Jo,k.includes=function(e,t,n,r){e=So(e)?e:Ho(e),n=n&&!r?Mo(n):0;var o=e.length;return n<0&&(n=Zi(o+n,0)),Io(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&x(e,t,n)>-1},k.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Mo(n);return o<0&&(o=Zi(r+o,0)),x(e,t,o)},k.inRange=function(e,t,n){return t=Do(t),n===a?(n=t,t=0):n=Do(n),(r=e=Uo(e))>=Gi(o=t,i=n)&&r<Zi(o,i);var r,o,i},k.invoke=Gu,k.isArguments=Pu,k.isArray=Tu,k.isArrayBuffer=Au,k.isArrayLike=So,k.isArrayLikeObject=Eo,k.isBoolean=function(e){return!0===e||!1===e||To(e)&&Yt(e)==ie},k.isBuffer=Cu,k.isDate=Iu,k.isElement=function(e){return To(e)&&1===e.nodeType&&!Co(e)},k.isEmpty=function(e){if(null==e)return!0;if(So(e)&&(Tu(e)||"string"==typeof e||"function"==typeof e.splice||Cu(e)||Mu(e)||Pu(e)))return!e.length;var t=Da(e);if(t==le||t==me)return!e.size;if(Wr(e))return!gn(e).length;for(var n in e)if(bi.call(e,n))return!1;return!0},k.isEqual=function(e,t){return Sa(e,t)},k.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Sa(e,t,a,n):!!r},k.isError=$o,k.isFinite=function(e){return"number"==typeof e&&qi(e)},k.isFunction=Oo,k.isInteger=ko,k.isLength=jo,k.isMap=Ru,k.isMatch=function(e,t){return e===t||mn(e,t,Nr(t))},k.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,mn(e,t,Nr(t),n)},k.isNaN=function(e){return Ao(e)&&e!=+e},k.isNative=function(e){if(Ua(e))throw new ui("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return yn(e)},k.isNil=function(e){return null==e},k.isNull=function(e){return null===e},k.isNumber=Ao,k.isObject=Po,k.isObjectLike=To,k.isPlainObject=Co,k.isRegExp=Nu,k.isSafeInteger=function(e){return ko(e)&&e>=-9007199254740991&&e<=X},k.isSet=Du,k.isString=Io,k.isSymbol=Ro,k.isTypedArray=Mu,k.isUndefined=function(e){return e===a},k.isWeakMap=function(e){return To(e)&&Da(e)==ge},k.isWeakSet=function(e){return To(e)&&"[object WeakSet]"==Yt(e)},k.join=function(e,t){return null==e?"":Ki.call(e,t)},k.kebabCase=rc,k.last=uo,k.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==a&&(o=(o=Mo(n))<0?Zi(r+o,0):Gi(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):_(e,E,o,!0)},k.lowerCase=oc,k.lowerFirst=ic,k.lt=Lu,k.lte=Uu,k.max=function(e){return e&&e.length?Rt(e,Jo,Jt):a},k.maxBy=function(e,t){return e&&e.length?Rt(e,Ir(t,2),Jt):a},k.mean=function(e){return $(e,Jo)},k.meanBy=function(e,t){return $(e,Ir(t,2))},k.min=function(e){return e&&e.length?Rt(e,Jo,bn):a},k.minBy=function(e,t){return e&&e.length?Rt(e,Ir(t,2),bn):a},k.stubArray=ri,k.stubFalse=oi,k.stubObject=function(){return{}},k.stubString=function(){return""},k.stubTrue=function(){return!0},k.multiply=$c,k.nth=function(e,t){return e&&e.length?Sn(e,Mo(t)):a},k.noConflict=function(){return Ht._===this&&(Ht._=Ei),this},k.noop=ti,k.now=yu,k.pad=function(e,t,n){e=Fo(e);var r=(t=Mo(t))?W(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return gr(Bi(o),n)+e+gr(Fi(o),n)},k.padEnd=function(e,t,n){e=Fo(e);var r=(t=Mo(t))?W(e):0;return t&&r<t?e+gr(t-r,n):e},k.padStart=function(e,t,n){e=Fo(e);var r=(t=Mo(t))?W(e):0;return t&&r<t?gr(t-r,n)+e:e},k.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Yi(Fo(e).replace(qe,""),t||0)},k.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Fr(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=Do(e),t===a?(t=e,e=0):t=Do(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Ji();return Gi(e+o*(t-e+Vt("1e-"+((o+"").length-1))),t)}return jn(e,t)},k.reduce=function(e,t,n){var r=Tu(e)?v:j,o=arguments.length<3;return r(e,Ir(t,4),n,o,ga)},k.reduceRight=function(e,t,n){var r=Tu(e)?g:j,o=arguments.length<3;return r(e,Ir(t,4),n,o,ba)},k.repeat=function(e,t,n){return t=(n?Fr(e,t,n):t===a)?1:Mo(t),Pn(Fo(e),t)},k.replace=function(){var e=arguments,t=Fo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},k.result=function(e,t,n){var r=-1,o=(t=Qn(t,e)).length;for(o||(o=1,e=a);++r<o;){var i=null==e?a:e[eo(t[r])];i===a&&(r=o,i=n),e=Oo(i)?i.call(e):i}return e},k.round=Oc,k.runInContext=e,k.sample=function(e){return(Tu(e)?vt:An)(e)},k.size=function(e){if(null==e)return 0;if(So(e))return Io(e)?W(e):e.length;var t=Da(e);return t==le||t==me?e.size:gn(e).length},k.snakeCase=ac,k.some=function(e,t,n){var r=Tu(e)?b:Dn;return n&&Fr(e,t,n)&&(t=a),r(e,Ir(t,3))},k.sortedIndex=function(e,t){return Mn(e,t)},k.sortedIndexBy=function(e,t,n){return Ln(e,t,Ir(n,2))},k.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Mn(e,t);if(r<n&&xo(e[r],t))return r}return-1},k.sortedLastIndex=function(e,t){return Mn(e,t,!0)},k.sortedLastIndexBy=function(e,t,n){return Ln(e,t,Ir(n,2),!0)},k.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Mn(e,t,!0)-1;if(xo(e[n],t))return n}return-1},k.startCase=uc,k.startsWith=function(e,t,n){return e=Fo(e),n=null==n?0:kt(Mo(n),0,e.length),t=ka(t),e.slice(n,n+t.length)==t},k.subtract=kc,k.sum=function(e){return e&&e.length?P(e,Jo):0},k.sumBy=function(e,t){return e&&e.length?P(e,Ir(t,2)):0},k.template=function(e,t,n){var r=k.templateSettings;n&&Fr(e,t,n)&&(t=a),e=Fo(e),t=Bu({},t,r,$r);var o,i,u=Bu({},t.imports,r.imports,$r),c=Wo(u),s=I(u,c),l=0,f=t.interpolate||ut,p="__p += '",d=fi((t.escape||ut).source+"|"+f.source+"|"+(f===Ue?Xe:ut).source+"|"+(t.evaluate||ut).source+"|$","g"),h="//# sourceURL="+(bi.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ut+"]")+"\n";e.replace(d,(function(t,n,r,a,u,c){return r||(r=a),p+=e.slice(l,c).replace(ct,L),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),u&&(i=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),p+="';\n";var m=bi.call(t,"variable")&&t.variable;if(m){if(Ye.test(m))throw new ui("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(i?p.replace(Te,""):p).replace(Ae,"$1").replace(Ce,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=lc((function(){return ci(c,h+"return "+p).apply(a,s)}));if(y.source=p,$o(y))throw y;return y},k.times=function(e,t){if((e=Mo(e))<1||e>X)return[];var n=te,r=Gi(e,te);t=Ir(t),e-=te;for(var o=T(r,t);++n<e;)t(n);return o},k.toFinite=Do,k.toInteger=Mo,k.toLength=Lo,k.toLower=function(e){return Fo(e).toLowerCase()},k.toNumber=Uo,k.toSafeInteger=function(e){return e?kt(Mo(e),-9007199254740991,X):0===e?e:0},k.toString=Fo,k.toUpper=function(e){return Fo(e).toUpperCase()},k.trim=function(e,t,n){if((e=Fo(e))&&(n||t===a))return A(e);if(!e||!(t=ka(t)))return e;var r=q(e),o=q(t);return Yn(r,N(r,o),D(r,o)+1).join("")},k.trimEnd=function(e,t,n){if((e=Fo(e))&&(n||t===a))return e.slice(0,K(e)+1);if(!e||!(t=ka(t)))return e;var r=q(e);return Yn(r,0,D(r,q(t))+1).join("")},k.trimStart=function(e,t,n){if((e=Fo(e))&&(n||t===a))return e.replace(qe,"");if(!e||!(t=ka(t)))return e;var r=q(e);return Yn(r,N(r,q(t))).join("")},k.truncate=function(e,t){var n=30,r="...";if(Po(t)){var o="separator"in t?t.separator:o;n="length"in t?Mo(t.length):n,r="omission"in t?ka(t.omission):r}var i=(e=Fo(e)).length;if(U(e)){var u=q(e);i=u.length}if(n>=i)return e;var c=n-W(r);if(c<1)return r;var s=u?Yn(u,0,c).join(""):e.slice(0,c);if(o===a)return s+r;if(u&&(c+=s.length-c),Nu(o)){if(e.slice(c).search(o)){var l,f=s;for(o.global||(o=fi(o.source,Fo(et.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;s=s.slice(0,p===a?c:p)}}else if(e.indexOf(ka(o),c)!=c){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},k.unescape=function(e){return(e=Fo(e))&&Ne.test(e)?e.replace(Ie,sn):e},k.uniqueId=function(e){var t=++wi;return Fo(e)+t},k.upperCase=cc,k.upperFirst=sc,k.each=mo,k.eachRight=yo,k.first=ao,ei(k,(xu={},Bt(k,(function(e,t){bi.call(k.prototype,t)||(xu[t]=e)})),xu),{chain:!1}),k.VERSION="4.17.21",s(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){k[e].placeholder=k})),s(["drop","take"],(function(e,t){lt.prototype[e]=function(n){n=n===a?1:Zi(Mo(n),0);var r=this.__filtered__&&!t?new lt(this):this.clone();return r.__filtered__?r.__takeCount__=Gi(n,r.__takeCount__):r.__views__.push({size:Gi(n,te),type:e+(r.__dir__<0?"Right":"")}),r},lt.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),s(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;lt.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ir(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),s(["head","last"],(function(e,t){var n="take"+(t?"Right":"");lt.prototype[e]=function(){return this[n](1).value()[0]}})),s(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");lt.prototype[e]=function(){return this.__filtered__?new lt(this):this[n](1)}})),lt.prototype.compact=function(){return this.filter(Jo)},lt.prototype.find=function(e){return this.filter(e).head()},lt.prototype.findLast=function(e){return this.reverse().find(e)},lt.prototype.invokeMap=Tn((function(e,t){return"function"==typeof e?new lt(this):this.map((function(n){return dn(n,e,t)}))})),lt.prototype.reject=function(e){return this.filter(_o(Ir(e)))},lt.prototype.slice=function(e,t){e=Mo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new lt(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=Mo(t))<0?n.dropRight(-t):n.take(t-e)),n)},lt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},lt.prototype.toArray=function(){return this.take(te)},Bt(lt.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=k[o?"take"+("last"==t?"Right":""):t],u=o||/^find/.test(t);i&&(k.prototype[t]=function(){var t=this.__wrapped__,c=o?[1]:arguments,s=r(t,lt),l=c[0],f=s||Tu(t),p=function(e){var t=i.apply(k,y([e],c));return o&&d?t[0]:t};f&&n&&"function"==typeof l&&1!=l.length&&(s=f=!1);var d=this.__chain__,h=!!this.__actions__.length,m=u&&!d,v=s&&!h;if(!u&&f){t=v?t:new lt(this);var g=e.apply(t,c);return g.__actions__.push({func:ho,args:[p],thisArg:a}),new st(g,d)}return m&&v?e.apply(this,c):(g=this.thru(p),m?o?g.value()[0]:g.value():g)})})),s(["pop","push","shift","sort","splice","unshift"],(function(e){var t=hi[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);k.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Tu(o)?o:[],e)}return this[n]((function(n){return t.apply(Tu(n)?n:[],e)}))}})),Bt(lt.prototype,(function(e,t){var n=k[t];if(n){var r=n.name+"";bi.call(ua,r)||(ua[r]=[]),ua[r].push({name:t,func:n})}})),ua[Ta(a,2).name]=[{name:"wrapper",func:a}],lt.prototype.clone=function(){var e=new lt(this.__wrapped__);return e.__actions__=or(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=or(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=or(this.__views__),e},lt.prototype.reverse=function(){if(this.__filtered__){var e=new lt(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},lt.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Tu(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Gi(t,e+a);break;case"takeRight":e=Zi(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,c=u-a,s=r?u:a-1,l=this.__iteratees__,f=l.length,p=0,d=Gi(c,this.__takeCount__);if(!n||!r&&o==c&&d==c)return qn(e,this.__actions__);var h=[];e:for(;c--&&p<d;){for(var m=-1,y=e[s+=t];++m<f;){var v=l[m],g=v.iteratee,b=v.type,w=g(y);if(2==b)y=w;else if(!w){if(1==b)continue e;break e}}h[p++]=y}return h},k.prototype.at=uu,k.prototype.chain=function(){return po(this)},k.prototype.commit=function(){return new st(this.value(),this.__chain__)},k.prototype.next=function(){this.__values__===a&&(this.__values__=No(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},k.prototype.plant=function(e){for(var t,n=this;r(n,Ke);){var o=no(n);o.__index__=0,o.__values__=a,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},k.prototype.reverse=function(){var e=this.__wrapped__;if(r(e,lt)){var t=e;return this.__actions__.length&&(t=new lt(this)),(t=t.reverse()).__actions__.push({func:ho,args:[so],thisArg:a}),new st(t,this.__chain__)}return this.thru(so)},k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=function(){return qn(this.__wrapped__,this.__actions__)},k.prototype.first=k.prototype.head,Ni&&(k.prototype[Ni]=function(){return this}),k}();Ht._=ln,(i=function(){return ln}.call(t,n,t,e))===a||(e.exports=i)}.call(this)},385:function(){System.register([],(function(e,t){return{execute:function(){e(function(){var e={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.y=t,r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}();var o={};return(0,r(968).s)(1),function(){"use strict";var e=function(e,t){for(var n in t)e[n]=t[n];return e},t=function(t){var n=function(e){for(var t=[],n=0;n<o.length;n++)o[n]===e?e=null:t.push(o[n]);o=t},r=function(n,r,i){t=r?n:e(e({},t),n);for(var a=o,u=0;u<a.length;u++)a[u](t,i)},o=[];return t=t||{},{action:function(e){var n=function(t){r(t,!1,e)};return function(){for(var r=arguments,o=[t],i=0;i<arguments.length;i++)o.push(r[i]);var a=e.apply(this,o);if(null!=a)return a.then?a.then(n):n(a)}},setState:r,subscribe:function(e){return o.push(e),function(){n(e)}},unsubscribe:n,getState:function(){return t}}},n=function(e,n){var r=s[e];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=t(n);return s[e]={value:o,active:!0},o},i=function(e,n){var r=s[e];if(!r){var o=t(n);return s[e]={value:o,active:!1},o}return r.value},a=function(e){return n("app",e)},u=function(){return i("app",{})},c=function(e,t,n){var r=t(e.getState());return e.subscribe((function(e){var o=t(e);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return a},createGlobalStore:function(){return n},getAppState:function(){return u},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},766:function(e){"use strict";e.exports=h},824:function(e){"use strict";e.exports=c},45:function(e){"use strict";e.exports=s},728:function(e){"use strict";e.exports=l},688:function(e){"use strict";e.exports=m},64:function(e){"use strict";e.exports=p},954:function(e){"use strict";e.exports=u},493:function(e){"use strict";e.exports=f},281:function(e){"use strict";e.exports=d}},y={};function v(e){var t=y[e];if(void 0!==t)return t.exports;var n=y[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,v),n.loaded=!0,n.exports}v.y=a,v.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return v.d(t,{a:t}),t},v.d=function(e,t){for(var n in t)v.o(t,n)&&!v.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;v.g.importScripts&&(e=v.g.location+"");var t=v.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),v.p=e}();var g={};return(0,v(968).s)(1),function(){"use strict";var i=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},a=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},u=function(e){return function(t){var n,r=function(e){if(Array.isArray(e))return e}(n=(0,Ie.useState)(e.getState()))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n)||function(e,t){if(e){if("string"==typeof e)return i(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,2):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0],u=r[1];(0,Ie.useEffect)((function(){return e.subscribe((function(e){return u(e)}))}),[]);var c={};return t&&(c=(0,Ie.useMemo)((function(){return function(e,t){"function"==typeof t&&(t=t(e));var n={};for(var r in t)n[r]=e.action(t[r]);return n}(e,t)}),[e,t])),function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){a(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e}({},o,c)}},c=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},s=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},l=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,Ie.useState)(window.navigator.onLine))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return(0,Ie.useEffect)((function(){return(0,ze.subscribeConnectivityChanged)((function(e){var t=e.online;return r(t)}))}),[]),n},f=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},p=function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=(0,Ie.useState)([]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return f(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Ie.useEffect)((function(){var t=function(t){var n,i,a=null!==(i=null===(n=t.slots[e])||void 0===n?void 0:n.assignedExtensions)&&void 0!==i?i:[];(0,Fe.isEqual)(a,r)||o(a)};return t((0,Le.getExtensionStore)().getState()),(0,Le.getExtensionStore)().subscribe(t)}),[e,r]),r},d=function(e){var t=l(),n=p(e);return(0,Ie.useMemo)((function(){return(0,Le.getConnectedExtensions)(n,t)}),[n,t])},h=function(e){var t=(0,Ie.useContext)(Re).moduleName;if(!t)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,Ie.useEffect)((function(){(0,Le.registerExtensionSlot)(t,e)}),[]),{extensions:d(e),extensionSlotName:e,extensionSlotModuleName:t}},m=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},y=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){m(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},b=function(e){return e},w=function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n},_=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{};n%2?w(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))},r=1;r<arguments.length;r++)n(r);return e},x=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=function(e,t){var n;if("function"!=typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(Ke(n)));return function(){var e=n(t);if(!r(e,HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(Ke(e)));return e}},E=function(e){if("object"!==qe(e))throw new Error("single-spa-react requires a configuration object");var t=_(_({},Ze),e);if(!t.React)throw new Error("single-spa-react must be passed opts.React");if(!t.ReactDOM)throw new Error("single-spa-react must be passed opts.ReactDOM");if(!t.rootComponent&&!t.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(t.errorBoundary&&"function"!=typeof t.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!He&&t.React.createContext&&(He=t.React.createContext()),t.SingleSpaRoot=function(e){function t(e){t.displayName="SingleSpaRoot(".concat(e.name,")")}return t.prototype=Object.create(e.React.Component.prototype),t.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},t.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},t.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},t}(t);var n={bootstrap:$.bind(null,t),mount:O.bind(null,t),unmount:k.bind(null,t)};return t.parcelCanUpdate&&(n.update=j.bind(null,t)),n},$=function(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then((function(t){e.rootComponent=t}))},O=function(e,t){return new Promise((function(n,r){e.suppressComponentDidCatchWarning||!function(e){if(!(e&&"string"==typeof e.version&&e.version.indexOf(".")>=0))return!1;var t=e.version.slice(0,e.version.indexOf("."));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=P(e,t,(function(){n(this)})),i=S(e,t)(),a=function(e){var t=e.opts,n=e.elementToRender,r=e.domElement,o="function"==typeof t.renderType?t.renderType():t.renderType;if(["createRoot","unstable_createRoot","createBlockingRoot","unstable_createBlockingRoot"].indexOf(o)>=0){var i=t.ReactDOM[o](r);return i.render(n),i}return"hydrate"===o?t.ReactDOM.hydrate(n,r):t.ReactDOM.render(n,r),null}({elementToRender:o,domElement:i,opts:e});e.domElements[t.name]=i,e.renderResults[t.name]=a}))},k=function(e,t){return new Promise((function(n){e.unmountFinished=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():e.ReactDOM.unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]}))},j=function(e,t){return new Promise((function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=P(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=S(e,t)();e.ReactDOM.render(r,i)}}))},P=function(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=He?e.React.createElement(He.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(e,t){function n(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(t.name,")")}return n.prototype=Object.create(e.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},n}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),e.React.createElement(e.SingleSpaRoot,_(_({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach((function(e){return e()})),delete e.updateResolves[t.name])},unmountFinished:function(){setTimeout(e.unmountFinished)}}),o)},T=function(e,t){return!t||"object"!==et(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t},A=function(e){if("object"!=typeof e||"string"!=typeof e.featureName||"string"!=typeof e.moduleName)throw new Error("Invalid options");var t=Object.assign({},nt,e);return function(e){var n;return(n=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xe(e,t)}(u,n);var o,i,a=(o=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Je(o);if(i){var n=Je(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return T(this,e)});function u(e){var n;return function(e,t){if(!r(e,t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,e)).state={caughtError:null,caughtErrorInfo:null,config:{moduleName:t.moduleName,extension:e._extensionContext}},n}var c=u.prototype;return c.componentDidCatch=function(e,n){n&&n.componentStack&&(e.extra=Object.assign(e.extra||{},{componentStack:n.componentStack})),t.throwErrorsToConsole&&setTimeout((function(){throw e})),this.setState({caughtError:e,caughtErrorInfo:n})},c.render=function(){if(this.state.caughtError)return Ie.default.createElement("div",null,"An error has occurred. Please try reloading the page.");var n=this,r=Ie.default.createElement(Re.Provider,{value:this.state.config},Ie.default.createElement(Ie.default.Suspense,{fallback:null},t.disableTranslations?Ie.default.createElement(e,Ye({},this.props)):Ie.default.createElement(rt,{ns:t.moduleName,forceUpdate:function(){return n.forceUpdate()}},Ie.default.createElement(Qe.I18nextProvider,{i18n:tt,defaultNS:t.moduleName},Ie.default.createElement(e,Ye({},this.props))))));return t.strictMode||!Ie.default.StrictMode?r:Ie.default.createElement(Ie.default.StrictMode,null,r)},u}(Ie.default.Component)).displayName="OpenmrsReactComponent(".concat(t.featureName,")"),n}},C=function(e,t){return E({React:Ie.default,ReactDOM:We.default,rootComponent:A(t)(e)})},I=function(e,t){return function(){return e().then((function(e){return C(e.default,t)}))}},R=function(e,t){return function(){return Promise.resolve(C(e,t))}},N=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},D=function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=(0,Ie.useState)([]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return N(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Ie.useEffect)((function(){return(0,Le.getExtensionStore)().subscribe((function(t){var n,i,a=null!==(i=null===(n=t.slots[e])||void 0===n?void 0:n.assignedExtensions.map((function(e){return e.id})))&&void 0!==i?i:[];(0,Fe.isEqual)(a,r)||o(a)}))}),[]),r},M=function(e){(0,Ie.useEffect)((function(){if(e){var t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=t}}}),[e])},L=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},U=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},z=function(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}},F=function(e){var t=this.__data__=new st(e);this.size=t.size},B=function(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new zt;++t<n;)this.add(e[t])},V=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},W=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},q=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},K=function(){var e=(0,Ie.useContext)(Re),t=e.moduleName,n=e.extension;if(!t&&!n)throw Error('No ComponentContext has been provided. This should come from "openmrsComponentDecorator".\nUsually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".');var r=function(e){var t,n,r,o,i,a,u=(0,Ie.useMemo)((function(){return(0,Ne.getConfigStore)(e)}),[e]),c=e,s=(t=u,o=(r=q((0,Ie.useState)((n=t,function(){var e=n.getState();return e.loaded&&e.config?e.config:null})),2))[0],i=r[1],(0,Ie.useEffect)((function(){return null==t?void 0:t.subscribe((function(e){e.loaded&&e.config&&i(e.config)}))}),[t]),o);if(!s)throw er[c]||(er[c]=(a=u,new Promise((function(e){var t=a.subscribe((function(n){n.loaded&&n.config&&(e(n.config),t())}))})))),er[c];return s}(t),o=function(e){var t,n,r=(0,Ie.useMemo)(Ne.getExtensionsConfigStore,[]),o=function(e,t){var n,r,o=q((0,Ie.useState)((n=e,(r=t)?function(){var e=n.getState(),t=(0,Ne.getExtensionConfigFromStore)(e,r.extensionSlotName,r.extensionId);if(t.loaded&&t.config)return t.config}:null)),2),i=o[0],a=o[1];return(0,Ie.useEffect)((function(){if(t)return e.subscribe((function(e){var n=(0,Ne.getExtensionConfigFromStore)(e,t.extensionSlotName,t.extensionId);n.loaded&&n.config&&!Xn(n.config,i)&&a(n.config)}))}),[e,t,i]),i}(r,e);if(!o&&e){var i="".concat(e.extensionSlotName,"-").concat(e.extensionId);throw!er[i]&&r&&(er[i]=(t=r,n=e,new Promise((function(e){var r=t.subscribe((function(t){var o=(0,Ne.getExtensionConfigFromStore)(t,n.extensionSlotName,n.extensionId);o.loaded&&o.config&&(e(o.config),r())}))})))),er[i]}return o||{}}(n),i=(0,Ie.useMemo)((function(){return function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){W(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e}({},r,o)}),[r,o]);return i},H=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},Z=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},G=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){Z(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},Q=function(){var e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]},Y=function(e,t){switch(t.type){case Kn.loadPatient:return G({},e,{patientUuid:t.patientUuid,patient:null,isPendingUuid:!1,isLoadingPatient:!0,err:null});case Kn.newPatient:return G({},e,{patient:t.patient,isPendingUuid:!1,isLoadingPatient:!1,err:null});case Kn.loadError:return G({},e,{patient:null,isPendingUuid:!1,isLoadingPatient:!1,err:t.err});default:return e}},J=function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=(0,Ie.useReducer)(Y,G({},rr,{patientUuid:null!=e?e:null,isPendingUuid:!e,isLoadingPatient:!!e})))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return H(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Ie.useEffect)((function(){if(r.isPendingUuid){var e=Q();o(e?{type:Kn.loadPatient,patientUuid:e}:{type:Kn.newPatient,patient:null})}var t=!0;return r.isLoadingPatient&&r.patientUuid&&(0,tr.fetchCurrentPatient)(r.patientUuid).then((function(e){return t&&o({patient:e.data,type:Kn.newPatient})}),(function(e){return t&&o({err:e,type:Kn.loadError})})),function(){t=!1}}),[r.isPendingUuid,r.isLoadingPatient,r.patientUuid]),(0,Ie.useEffect)((function(){var e=function(e){var t=Q();t!=r.patientUuid&&o({type:Kn.loadPatient,patientUuid:t})};return window.addEventListener("single-spa:routing-event",e),function(){return window.removeEventListener("single-spa:routing-event",e)}}),[r.patientUuid]),{isLoading:r.isPendingUuid||r.isLoadingPatient,patient:r.patient,patientUuid:null!=e?e:r.patientUuid,error:r.err}},X=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},ee=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},te=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){ee(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},ne=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},re=function(){var e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]},oe=function(e,t){switch(t.type){case nr.loadPatient:return te({},e,{patient:null,isLoadingPatient:!0,err:null});case nr.newPatient:return te({},e,{patient:t.patient,isLoadingPatient:!1,err:null});case nr.loadError:return te({},e,{patient:null,isLoadingPatient:!1,err:t.err});default:return e}},ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),t=ne((0,Ie.useReducer)(oe,ur),2),n=t[0],r=t[1];return(0,Ie.useEffect)((function(){var t=!0;return e?((0,tr.fetchCurrentPatient)(e).then((function(e){return t&&r({patient:e.data,type:nr.newPatient})}),(function(e){return t&&r({err:e,type:nr.loadError})})),r({type:nr.loadPatient})):r({type:nr.newPatient,patient:null}),function(){t=!1}}),[e]),[n.isLoadingPatient,n.patient,e,n.err]},ae=function(e){var t=d(e);return(0,Ie.useMemo)((function(){return Object.fromEntries(t.map((function(e){return[e.name,e.meta]})))}),[t])},ue=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},ce=function(){var e,t=(e=(0,Ie.useState)(0),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return ue(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return(0,Ie.useCallback)((function(){t((function(e){return e+1}))}),[])},se=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},le=function(){var e="tablet";return document.body.classList.forEach((function(t){switch(t){case"omrs-breakpoint-lt-tablet":e="phone";break;case"omrs-breakpoint-gt-tablet":e="desktop"}})),e},fe=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,Ie.useState)(le))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return se(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return(0,Ie.useEffect)((function(){var e=function(){r(le())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),n},pe=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},de=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,Ie.useState)([]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return pe(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return(0,Ie.useEffect)((function(){var e=(0,tr.getLocations)().subscribe((function(e){r(e)}),(function(e){console.error(e)}));return function(){return e.unsubscribe()}}),[]),n},he=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,Ie.useRef)(null);return(0,Ie.useEffect)((function(){if(t){var r=function(t){var r;(null==n||null===(r=n.current)||void 0===r?void 0:r.contains(t.target))||e(t)};return window.addEventListener("click",r),function(){return window.removeEventListener("click",r)}}}),[e,t]),n},me=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},ye=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},ve=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,Ie.useState)(null))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return ye(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1],o=null;if(!n){if(or){var i=(0,tr.getSessionStore)().getState();i.loaded&&(o=i.session)}else or=new Promise((function(e){var t=function(t){var n=t.loaded,r=t.session;n&&(e(r),o=r,ir&&ir(),ir=void 0)};t((0,tr.getSessionStore)().getState()),o||(ir=(0,tr.getSessionStore)().subscribe(t))}));if(!o)throw or;r(o)}(0,Ie.useEffect)((function(){return ir||(ir=(0,tr.getSessionStore)().subscribe((function(e){var t=e.loaded,n=e.session;t&&(o=n,r(n))}))),function(){ir&&ir(),ir=void 0}}),[]);var a=n||o;if(!a)throw or?(console.warn("useSessionUser is in an unexpected state. Attempting to recover."),or):Error("useSessionUser is in an invalid state.");return a},ge=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},be=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},we=function(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){be(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e},_e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},xe=function(e,t){"function"==typeof t&&(t=t(e));var n={};for(var r in t)n[r]=e.action(t[r]);return n},Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pr,n=arguments.length>2?arguments[2]:void 0,r=_e((0,Ie.useState)((function(){return t(e.getState())})),2),o=r[0],i=r[1];(0,Ie.useEffect)((function(){return(0,fr.subscribeTo)(e,t,i)}),[e,t]);var a={};return n&&(a=(0,Ie.useMemo)((function(){return xe(e,n)}),[e,n])),we({},o,a)},Ee=function(e,t){return Se(e,pr,t)},$e=function(e,t,n,o){return new(n||(n=Promise))((function(i,a){function u(e){try{s(o.next(e))}catch(e){a(e)}}function c(e){try{s(o.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,r(t,n)?t:new n((function(e){e(t)}))).then(u,c)}s((o=o.apply(e,t||[])).next())}))},Oe=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},ke=function(e){var t,n=to(e?"/ws/rest/v1/visit?patient=".concat(e,"&v=").concat(tr.defaultVisitCustomRepresentation,"&includeInactive=false"):null,tr.openmrsFetch),r=n.data,o=n.error;return{error:o,mutate:n.mutate,isValidating:n.isValidating,currentVisit:(0,Ie.useMemo)((function(){return null!==(t=null==r?void 0:r.data.results.find((function(e){return null===e.stopDatetime&&(0,no.default)(e.startDatetime).isToday()})))&&void 0!==t?t:null}),[null==r?void 0:r.data.results]),isLoading:!r&&!o}},je=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},Pe=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,Ie.useState)([]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return je(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return(0,Ie.useEffect)((function(){var e=(0,tr.getVisitTypes)().subscribe((function(e){r(e)}),(function(e){return console.error(e)}));return function(){return e.unsubscribe()}}),[]),n},Te=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},Ae=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=Ae((0,Ie.useState)(1),2),r=n[0],o=n[1],i=(0,Ie.useMemo)((function(){return Math.max(1,Math.ceil(e.length/t))}),[e.length,t]),a=(0,Ie.useMemo)((function(){var n=(r-1)*t,o=(r+0)*t;return e.slice(n,o)}),[e,r,t]);return{results:a,totalPages:i,currentPage:r,paginated:e.length>t,showNextButton:r<i,showPreviousButton:r>1,goTo:function(e){o(Math.max(1,Math.min(i,e)))},goToNext:function(){r<i&&o(r+1)},goToPrevious:function(){r>1&&o(r-1)}}};v.r(g),v.d(g,{ComponentContext:function(){return Re},ConfigurableLink:function(){return Me},Extension:function(){return Ue},ExtensionSlot:function(){return Ve},UserHasAccess:function(){return lr},createUseStore:function(){return u},getAsyncExtensionLifecycle:function(){return ot},getAsyncLifecycle:function(){return I},getLifecycle:function(){return C},getSyncLifecycle:function(){return R},openmrsComponentDecorator:function(){return A},useAssignedExtensionIds:function(){return D},useAssignedExtensions:function(){return p},useBodyScrollLock:function(){return M},useConfig:function(){return K},useConnectedExtensions:function(){return d},useConnectivity:function(){return l},useCurrentPatient:function(){return ie},useExtensionInternalStore:function(){return cr},useExtensionSlot:function(){return h},useExtensionSlotMeta:function(){return ae},useExtensionStore:function(){return sr},useForceUpdate:function(){return ce},useLayoutType:function(){return fe},useLocations:function(){return de},useOnClickOutside:function(){return he},usePagination:function(){return Ce},usePatient:function(){return J},useSession:function(){return ve},useStore:function(){return Se},useStoreWithActions:function(){return Ee},useVisit:function(){return ke},useVisitTypes:function(){return Pe}});var Ie=v(954),Re=Ie.default.createContext({moduleName:""}),Ne=v(824);function De(){return De=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},De.apply(this,arguments)}var Me=function(e){var t=e.to,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["to","children"]);return Ie.default.createElement("a",De({onClick:function(e){return r=t,void((n=e).metaKey||n.ctrlKey||n.shiftKey||0!=n.button||(n.preventDefault(),(0,Ne.navigate)({to:r})));var n,r},href:(0,Ne.interpolateUrl)(t)},r),n)},Le=v(45),Ue=function(e){var t,n=e.state,r=e.wrap,o=function(e){if(Array.isArray(e))return e}(t=(0,Ie.useState)())||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1],u=(0,Ie.useContext)(Re).extension,s=(0,Ie.useCallback)((function(e){a(e)}),[]);(0,Ie.useEffect)((function(){if(null!=i&&u)return(0,Le.renderExtension)(i,u.extensionSlotName,u.extensionSlotModuleName,u.extensionId,void 0,n)}),[null==u?void 0:u.extensionSlotName,null==u?void 0:u.extensionId,null==u?void 0:u.extensionSlotModuleName,n,i]);var l=Ie.default.createElement("div",{ref:s,"data-extension-id":null==u?void 0:u.extensionId,style:{position:"relative"}});return u&&r?r(l,u):l},ze=v(728),Fe=v(891);function Be(){return Be=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},Be.apply(this,arguments)}var Ve=function(e){var t=e.extensionSlotName,n=e.select,r=void 0===n?b:n,o=e.children,i=e.state,a=e.style,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["extensionSlotName","select","children","state","style"]),c=(0,Ie.useRef)(null),s=h(t),l=s.extensions,f=s.extensionSlotModuleName,p=(0,Ie.useRef)(i);(function(e,t){if(e===t)return!0;if(!e&&t)return!1;if(e&&!t)return!1;if("object"!=typeof e||"object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!(i in t)||t[i]!==e[i])return!1}return!0})(p.current,i)||(p.current=i);var d=(0,Ie.useMemo)((function(){return t&&r(l).map((function(e){return Ie.default.createElement(Re.Provider,{key:e.id,value:{moduleName:f,extension:{extensionId:e.id,extensionSlotName:t,extensionSlotModuleName:f}}},null!=o?o:Ie.default.createElement(Ue,{state:p.current}))}))}),[r,l,t,p.current]);return Ie.default.createElement("div",Be({ref:c,"data-extension-slot-name":t,"data-extension-slot-module-name":f,style:y({},a,{position:"relative"})},u),d)},We=v(493);function qe(e){return(qe="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":o(e)})(e)}function Ke(e){return(Ke="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":o(e)})(e)}var He=null;try{He=n(2735).createContext()}catch(e){}var Ze={React:null,ReactDOM:null,rootComponent:null,loadRootComponent:null,renderType:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{}},Ge=v(64),Qe=v(281);function Ye(){return Ye=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},Ye.apply(this,arguments)}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xe(e,t){return(Xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var et=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":void 0===e?"undefined":o(e)},tt=Ge.default.default||Ge.default,nt={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},rt=function(e){(0,Ie.useEffect)((function(){return tt.on("languageChanged",e.forceUpdate),function(){return tt.off("languageChanged",e.forceUpdate)}}),[e.forceUpdate]);var t=(0,Ie.useRef)(null);if(t.current)throw t.current;if(!tt.hasLoadedNamespace(e.ns)){var n=setTimeout((function(){console.warn("openmrsComponentDecorator: the React suspense promise for i18next.loadNamespaces(['".concat(e.ns,"']) did not resolve nor reject after three seconds. This could mean you have multiple versions of i18next and haven't made i18next a webpack external in all projects."))}),3e3);throw tt.loadNamespaces([e.ns]).then((function(){return clearTimeout(n)})).catch((function(e){clearTimeout(n),t.current=e}))}return Ie.default.createElement(Ie.default.Fragment,null,e.children)},ot=I,it=function(e,t){return e===t||e!=e&&t!=t},at=function(e,t){for(var n=e.length;n--;)if(it(e[n][0],t))return n;return-1},ut=Array.prototype.splice;L.prototype.clear=function(){this.__data__=[],this.size=0},L.prototype.delete=function(e){var t=this.__data__,n=at(t,e);return!(n<0||(n==t.length-1?t.pop():ut.call(t,n,1),--this.size,0))},L.prototype.get=function(e){var t=this.__data__,n=at(t,e);return n<0?void 0:t[n][1]},L.prototype.has=function(e){return at(this.__data__,e)>-1},L.prototype.set=function(e,t){var n=this.__data__,r=at(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var ct,st=L,lt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,pt=lt||ft||Function("return this")(),dt=pt.Symbol,ht=Object.prototype,mt=ht.hasOwnProperty,yt=ht.toString,vt=dt?dt.toStringTag:void 0,gt=Object.prototype.toString,bt=dt?dt.toStringTag:void 0,wt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bt&&bt in Object(e)?function(e){var t=mt.call(e,vt),n=e[vt];try{e[vt]=void 0;var r=!0}catch(e){}var o=yt.call(e);return r&&(t?e[vt]=n:delete e[vt]),o}(e):(t=e,gt.call(t));var t},_t=function(e){var t=void 0===e?"undefined":o(e);return null!=e&&("object"==t||"function"==t)},xt=function(e){if(!_t(e))return!1;var t=wt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},St=pt["__core-js_shared__"],Et=(ct=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||""))?"Symbol(src)_1."+ct:"",$t=Function.prototype.toString,Ot=function(e){if(null!=e){try{return $t.call(e)}catch(e){}try{return e+""}catch(e){}}return""},kt=/^\[object .+?Constructor\]$/,jt=Function.prototype,Pt=Object.prototype,Tt=jt.toString,At=Pt.hasOwnProperty,Ct=RegExp("^"+Tt.call(At).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),It=function(e,t){var n,r=null==(n=e)?void 0:n[t];return function(e){return!(!_t(e)||(t=e,Et&&Et in t))&&(xt(e)?Ct:kt).test(Ot(e));var t}(r)?r:void 0},Rt=It(pt,"Map"),Nt=It(Object,"create"),Dt=Object.prototype.hasOwnProperty,Mt=Object.prototype.hasOwnProperty;U.prototype.clear=function(){this.__data__=Nt?Nt(null):{},this.size=0},U.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},U.prototype.get=function(e){var t=this.__data__;if(Nt){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Dt.call(t,e)?t[e]:void 0},U.prototype.has=function(e){var t=this.__data__;return Nt?void 0!==t[e]:Mt.call(t,e)},U.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nt&&void 0===t?"__lodash_hash_undefined__":t,this};var Lt=U,Ut=function(e,t){var n,r,i=e.__data__;return("string"==(r=o(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};z.prototype.clear=function(){this.size=0,this.__data__={hash:new Lt,map:new(Rt||st),string:new Lt}},z.prototype.delete=function(e){var t=Ut(this,e).delete(e);return this.size-=t?1:0,t},z.prototype.get=function(e){return Ut(this,e).get(e)},z.prototype.has=function(e){return Ut(this,e).has(e)},z.prototype.set=function(e,t){var n=Ut(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var zt=z;F.prototype.clear=function(){this.__data__=new st,this.size=0},F.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},F.prototype.get=function(e){return this.__data__.get(e)},F.prototype.has=function(e){return this.__data__.has(e)},F.prototype.set=function(e,t){var n=this.__data__;if(r(n,st)){var o=n.__data__;if(!Rt||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new zt(o)}return n.set(e,t),this.size=n.size,this};var Ft=F;B.prototype.add=B.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},B.prototype.has=function(e){return this.__data__.has(e)};var Bt=B,Vt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Wt=function(e,t){return e.has(t)},qt=function(e,t,n,r,o,i){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(e),l=i.get(t);if(s&&l)return s==t&&l==e;var f=-1,p=!0,d=2&n?new Bt:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],m=t[f];if(r)var y=a?r(m,h,f,t,e,i):r(h,m,f,e,t,i);if(void 0!==y){if(y)continue;p=!1;break}if(d){if(!Vt(t,(function(e,t){if(!Wt(d,t)&&(h===e||o(h,e,n,r,i)))return d.push(t)}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p},Kt=pt.Uint8Array,Ht=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Zt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Gt=dt?dt.prototype:void 0,Qt=Gt?Gt.valueOf:void 0,Yt=Array.isArray,Jt=Object.prototype.propertyIsEnumerable,Xt=Object.getOwnPropertySymbols,en=Xt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Xt(e),(function(t){return Jt.call(e,t)})))}:function(){return[]},tn=function(e){return null!=e&&"object"==typeof e},nn=function(e){return tn(e)&&"[object Arguments]"==wt(e)},rn=Object.prototype,on=rn.hasOwnProperty,an=rn.propertyIsEnumerable,un=nn(function(){return arguments}())?nn:function(e){return tn(e)&&on.call(e,"callee")&&!an.call(e,"callee")},cn=un,sn=t&&!t.nodeType&&t,ln=sn&&e&&!e.nodeType&&e,fn=ln&&ln.exports===sn?pt.Buffer:void 0,pn=(fn?fn.isBuffer:void 0)||function(){return!1},dn=/^(?:0|[1-9]\d*)$/,hn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},mn={};mn["[object Float32Array]"]=mn["[object Float64Array]"]=mn["[object Int8Array]"]=mn["[object Int16Array]"]=mn["[object Int32Array]"]=mn["[object Uint8Array]"]=mn["[object Uint8ClampedArray]"]=mn["[object Uint16Array]"]=mn["[object Uint32Array]"]=!0,mn["[object Arguments]"]=mn["[object Array]"]=mn["[object ArrayBuffer]"]=mn["[object Boolean]"]=mn["[object DataView]"]=mn["[object Date]"]=mn["[object Error]"]=mn["[object Function]"]=mn["[object Map]"]=mn["[object Number]"]=mn["[object Object]"]=mn["[object RegExp]"]=mn["[object Set]"]=mn["[object String]"]=mn["[object WeakMap]"]=!1;var yn,vn,gn,bn=t&&!t.nodeType&&t,wn=bn&&e&&!e.nodeType&&e,_n=wn&&wn.exports===bn&<.process,xn=function(){try{return wn&&wn.require&&wn.require("util").types||_n&&_n.binding&&_n.binding("util")}catch(e){}}(),Sn=xn&&xn.isTypedArray,En=Sn?(yn=Sn,function(e){return yn(e)}):function(e){return tn(e)&&hn(e.length)&&!!mn[wt(e)]},$n=Object.prototype.hasOwnProperty,On=Object.prototype,kn=(vn=Object.keys,gn=Object,function(e){return vn(gn(e))}),jn=Object.prototype.hasOwnProperty,Pn=function(e){return n=en,r=function(e){return null!=(t=e)&&hn(t.length)&&!xt(t)?function(e,t){var n,r,i,a=Yt(e),u=!a&&cn(e),c=!a&&!u&&pn(e),s=!a&&!u&&!c&&En(e),l=a||u||c||s,f=l?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],p=f.length;for(var d in e)!$n.call(e,d)||l&&("length"==d||c&&("offset"==d||"parent"==d)||s&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(r=p,i=void 0===(n=d)?"undefined":o(n),(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&dn.test(n))&&n>-1&&n%1==0&&n<r))||f.push(d);return f}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||On))return kn(e);var t,n,r=[];for(var o in Object(e))jn.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}(t=e),Yt(t)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(t));var t,n,r},Tn=Object.prototype.hasOwnProperty,An=It(pt,"DataView"),Cn=It(pt,"Promise"),In=It(pt,"Set"),Rn=It(pt,"WeakMap"),Nn="[object Map]",Dn="[object Promise]",Mn="[object Set]",Ln="[object WeakMap]",Un="[object DataView]",zn=Ot(An),Fn=Ot(Rt),Bn=Ot(Cn),Vn=Ot(In),Wn=Ot(Rn),qn=wt;(An&&qn(new An(new ArrayBuffer(1)))!=Un||Rt&&qn(new Rt)!=Nn||Cn&&qn(Cn.resolve())!=Dn||In&&qn(new In)!=Mn||Rn&&qn(new Rn)!=Ln)&&(qn=function(e){var t=wt(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ot(n):"";if(r)switch(r){case zn:return Un;case Fn:return Nn;case Bn:return Dn;case Vn:return Mn;case Wn:return Ln}return t});var Kn,Hn=qn,Zn="[object Arguments]",Gn="[object Array]",Qn="[object Object]",Yn=Object.prototype.hasOwnProperty,Jn=function e(t,n,o,i,a){return t===n||(null==t||null==n||!tn(t)&&!tn(n)?t!=t&&n!=n:function(e,t,n,o,i,a){var u=Yt(e),c=Yt(t),s=u?Gn:Hn(e),l=c?Gn:Hn(t),f=(s=s==Zn?Qn:s)==Qn,p=(l=l==Zn?Qn:l)==Qn,d=s==l;if(d&&pn(e)){if(!pn(t))return!1;u=!0,f=!1}if(d&&!f)return a||(a=new Ft),u||En(e)?qt(e,t,n,o,i,a):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Kt(e),new Kt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return it(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=Ht;case"[object Set]":var c=1&r;if(u||(u=Zt),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var l=qt(u(e),u(t),r,o,i,a);return a.delete(e),l;case"[object Symbol]":if(Qt)return Qt.call(e)==Qt.call(t)}return!1}(e,t,s,n,o,i,a);if(!(1&n)){var h=f&&Yn.call(e,"__wrapped__"),m=p&&Yn.call(t,"__wrapped__");if(h||m){var y=h?e.value():e,v=m?t.value():t;return a||(a=new Ft),i(y,v,n,o,a)}}return!!d&&(a||(a=new Ft),function(e,t,n,o,i,a){var u=1&n,c=Pn(e),s=c.length;if(s!=Pn(t).length&&!u)return!1;for(var l=s;l--;){var f=c[l];if(!(u?f in t:Tn.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=u;++l<s;){var y=e[f=c[l]],v=t[f];if(o)var g=u?o(v,y,f,t,e,a):o(y,v,f,e,t,a);if(!(void 0===g?y===v||i(y,v,n,o,a):g)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&r(b,b)&&"function"==typeof w&&r(w,w)||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,o,i,a))}(t,n,o,i,e,a))},Xn=function(e,t){return Jn(e,t)},er={},tr=v(766);!function(e){e.loadPatient="loadPatient",e.newPatient="newPatient",e.loadError="patientLoadError"}(Kn||(Kn={}));var nr,rr={patientUuid:null,patient:null,isPendingUuid:!0,isLoadingPatient:!1,err:null};!function(e){e.loadPatient="loadPatient",e.newPatient="newPatient",e.loadError="patientLloadErroroadError"}(nr||(nr={}));var or,ir,ar,ur={patient:null,isLoadingPatient:!0,err:null},cr=u((0,Le.getExtensionInternalStore)()),sr=u((0,Le.getExtensionStore)()),lr=function(e){var t,n=e.privilege,r=e.children,o=function(e){if(Array.isArray(e))return e}(t=(0,Ie.useState)(null))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return me(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return(0,Ie.useEffect)((function(){var e=(0,tr.getCurrentUser)({includeAuthStatus:!1}).subscribe(a);return function(){return e.unsubscribe()}}),[]),i&&(0,tr.userHasAccess)(n,i)?Ie.default.createElement(Ie.default.Fragment,null,r):null},fr=v(385),pr=function(e){return e},dr=function(){},hr=void 0,mr=Object,yr=function(e){return e===hr},vr=function(e){return"function"==typeof e},gr=function(e,t){return mr.assign({},e,t)},br="undefined",wr=function(){return("undefined"==typeof window?"undefined":o(window))!=br},_r=new WeakMap,xr=0,Sr=function(e){var t,n,r=void 0===e?"undefined":o(e),i=e&&e.constructor,a=i==Date;if(mr(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=_r.get(e))return t;if(t=++xr+"~",_r.set(e,t),i==Array){for(t="@",n=0;n<e.length;n++)t+=Sr(e[n])+",";_r.set(e,t)}if(i==mr){t="#";for(var u=mr.keys(e).sort();!yr(n=u.pop());)yr(e[n])||(t+=n+":"+Sr(e[n])+",");_r.set(e,t)}}return t},Er=!0,$r=wr(),Or=("undefined"==typeof document?"undefined":o(document))!=br,kr=$r&&window.addEventListener?window.addEventListener.bind(window):dr,jr=Or?document.addEventListener.bind(document):dr,Pr=$r&&window.removeEventListener?window.removeEventListener.bind(window):dr,Tr=Or?document.removeEventListener.bind(document):dr,Ar={isOnline:function(){return Er},isVisible:function(){var e=Or&&document.visibilityState;return yr(e)||"hidden"!==e}},Cr={initFocus:function(e){return jr("visibilitychange",e),kr("focus",e),function(){Tr("visibilitychange",e),Pr("focus",e)}},initReconnect:function(e){var t=function(){Er=!0,e()},n=function(){Er=!1};return kr("online",t),kr("offline",n),function(){Pr("online",t),Pr("offline",n)}}},Ir=!wr()||"Deno"in window,Rr=Ir?Ie.useEffect:Ie.useLayoutEffect,Nr="undefined"!=typeof navigator&&navigator.connection,Dr=!Ir&&Nr&&(["slow-2g","2g"].includes(Nr.effectiveType)||Nr.saveData),Mr=function(e){if(vr(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Sr(e):"",t,e?"$swr$"+e:""]},Lr=new WeakMap,Ur=function(e,t,n,r,o,i,a){void 0===a&&(a=!0);var u=Lr.get(e),c=u[0],s=u[1],l=u[3],f=c[t],p=s[t];if(a&&p)for(var d=0;d<p.length;++d)p[d](n,r,o);return i&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},zr=0,Fr=function(){return++zr},Br=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $e(void 0,void 0,void 0,(function(){var t,n,r,o,i,a,u,c,s,l,f,p,d,h,m,y,v,g,b,w;return Oe(this,(function(_){switch(_.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],a=!!yr((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,u=!1!==i.revalidate,c=!1!==i.rollbackOnError,s=i.optimisticData,l=Mr(n),f=l[0],p=l[2],!f)return[2];if(d=Lr.get(t),h=d[2],e.length<3)return[2,Ur(t,f,t.get(f),hr,hr,u,!0)];if(m=r,v=Fr(),h[f]=[v,0],g=!yr(s),b=t.get(f),g&&(t.set(f,s),Ur(t,f,s)),vr(m))try{m=m(t.get(f))}catch(e){y=e}return m&&vr(m.then)?[4,m.catch((function(e){y=e}))]:[3,2];case 1:if(m=_.sent(),v!==h[f][0]){if(y)throw y;return[2,m]}y&&g&&c&&(a=!0,m=b,t.set(f,b)),_.label=2;case 2:return a&&(y||(vr(a)&&(m=a(m,b)),t.set(f,m)),t.set(p,gr(t.get(p),{error:y}))),h[f][1]=Fr(),[4,Ur(t,f,m,y,hr,u,!!a)];case 3:if(w=_.sent(),y)throw y;return[2,a?w:m]}}))}))},Vr=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},Wr=function(e,t){if(!Lr.has(e)){var n=gr(Cr,t),r={},o=Br.bind(hr,e),i=dr;if(Lr.set(e,[r,{},{},{},o]),!Ir){var a=n.initFocus(setTimeout.bind(hr,Vr.bind(hr,r,0))),u=n.initReconnect(setTimeout.bind(hr,Vr.bind(hr,r,1)));i=function(){a&&a(),u&&u(),Lr.delete(e)}}return[e,o,i]}return[e,Lr.get(e)[4]]},qr=Wr(new Map),Kr=qr[0],Hr=qr[1],Zr=gr({onLoadingSlow:dr,onSuccess:dr,onError:dr,onErrorRetry:function(e,t,n,r,o){var i=n.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!yr(i)&&a>i||setTimeout(r,u,o)},onDiscarded:dr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Dr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Dr?5e3:3e3,compare:function(e,t){return Sr(e)==Sr(t)},isPaused:function(){return!1},cache:Kr,mutate:Hr,fallback:{}},Ar),Gr=function(e,t){var n=gr(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=gr(o,a))}return n},Qr=(0,Ie.createContext)({}),Yr=function(e){return vr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Jr=function(){return gr(Zr,(0,Ie.useContext)(Qr))},Xr=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},eo={dedupe:!0},to=(mr.defineProperty((function(e){var t=e.value,n=Gr((0,Ie.useContext)(Qr),t),r=t&&t.provider,o=(0,Ie.useState)((function(){return r?Wr(r(n.cache||Kr),t):hr}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),Rr((function(){return o?o[2]:hr}),[]),(0,Ie.createElement)(Qr.Provider,gr(e,{value:n}))}),"default",{value:Zr}),ar=function(e,t,n){var r=n.cache,i=n.compare,a=n.fallbackData,u=n.suspense,c=n.revalidateOnMount,s=n.refreshInterval,l=n.refreshWhenHidden,f=n.refreshWhenOffline,p=Lr.get(r),d=p[0],h=p[1],m=p[2],y=p[3],v=Mr(e),g=v[0],b=v[1],w=v[2],_=(0,Ie.useRef)(!1),x=(0,Ie.useRef)(!1),S=(0,Ie.useRef)(g),E=(0,Ie.useRef)(t),$=(0,Ie.useRef)(n),O=function(){return $.current},k=function(){return O().isVisible()&&O().isOnline()},j=function(e){return r.set(w,gr(r.get(w),e))},P=r.get(g),T=yr(a)?n.fallback[g]:a,A=yr(P)?T:P,C=r.get(w)||{},I=C.error,R=!_.current,N=function(){return R&&!yr(c)?c:!O().isPaused()&&(u?!yr(A):yr(A)||n.revalidateIfStale)},D=!(!g||!t)&&(!!C.isValidating||R&&N()),M=function(e,t){var n=(0,Ie.useState)({})[1],r=(0,Ie.useRef)(e),o=(0,Ie.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,Ie.useCallback)((function(e){var i=!1,a=r.current;for(var u in e){var c=u;a[c]!==e[c]&&(a[c]=e[c],o.current[c]&&(i=!0))}i&&!t.current&&n({})}),[]);return Rr((function(){r.current=e})),[r,o.current,i]}({data:A,error:I,isValidating:D},x),L=M[0],U=M[1],z=M[2],F=(0,Ie.useCallback)((function(e){return $e(void 0,void 0,void 0,(function(){var t,o,a,u,c,s,l,f,p,d,h,v,w;return Oe(this,(function($){switch($.label){case 0:if(t=E.current,!g||!t||x.current||O().isPaused())return[2,!1];u=!0,c=e||{},s=!y[g]||!c.dedupe,l=function(){return!x.current&&g===S.current&&_.current},f=function(){var e=y[g];e&&e[1]===a&&delete y[g]},p={isValidating:!1},d=function(){j({isValidating:!1}),l()&&z(p)},j({isValidating:!0}),z({isValidating:!0}),$.label=1;case 1:return $.trys.push([1,3,,4]),s&&(Ur(r,g,L.current.data,L.current.error,!0),n.loadingTimeout&&!r.get(g)&&setTimeout((function(){u&&l()&&O().onLoadingSlow(g,n)}),n.loadingTimeout),y[g]=[t.apply(void 0,b),Fr()]),w=y[g],o=w[0],a=w[1],[4,o];case 2:return o=$.sent(),s&&setTimeout(f,n.dedupingInterval),y[g]&&y[g][1]===a?(j({error:hr}),p.error=hr,h=m[g],!yr(h)&&(a<=h[0]||a<=h[1]||0===h[1])?(d(),s&&l()&&O().onDiscarded(g),[2,!1]):(i(L.current.data,o)?p.data=L.current.data:p.data=o,i(r.get(g),o)||r.set(g,o),s&&l()&&O().onSuccess(o,g,n),[3,4])):(s&&l()&&O().onDiscarded(g),[2,!1]);case 3:return v=$.sent(),f(),O().isPaused()||(j({error:v}),p.error=v,s&&l()&&(O().onError(v,g,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||vr(n.shouldRetryOnError)&&n.shouldRetryOnError(v))&&k()&&O().onErrorRetry(v,g,n,F,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,d(),l()&&s&&Ur(r,g,p.data,p.error,!1),[2,!0]}}))}))}),[g]),B=(0,Ie.useCallback)(Br.bind(hr,r,(function(){return S.current})),[]);if(Rr((function(){E.current=t,$.current=n})),Rr((function(){if(g){var e=g!==S.current,t=F.bind(hr,eo),n=0,r=Xr(g,h,(function(e,t,n){z(gr({error:t,isValidating:n},i(L.current.data,e)?hr:{data:e}))})),a=Xr(g,d,(function(e){if(0==e){var r=Date.now();O().revalidateOnFocus&&r>n&&k()&&(n=r+O().focusThrottleInterval,t())}else if(1==e)O().revalidateOnReconnect&&k()&&t();else if(2==e)return F()}));return x.current=!1,S.current=g,_.current=!0,e&&z({data:A,error:I,isValidating:D}),N()&&(yr(A)||Ir?t():(u=t,wr()&&o(window.requestAnimationFrame)!=br?window.requestAnimationFrame(u):setTimeout(u,1))),function(){x.current=!0,r(),a()}}var u}),[g,F]),Rr((function(){var e,t=function(){var t=vr(s)?s(A):s;t&&-1!==e&&(e=setTimeout(n,t))},n=function(){L.current.error||!l&&!O().isVisible()||!f&&!O().isOnline()?t():F(eo).then(t)};return t(),function(){e&&(clearTimeout(e),e=-1)}}),[s,l,f,F]),(0,Ie.useDebugValue)(A),u&&yr(A)&&g)throw E.current=t,$.current=n,x.current=!1,yr(I)?F(eo):I;return{mutate:B,get data(){return U.data=!0,A},get error(){return U.error=!0,I},get isValidating(){return U.isValidating=!0,D}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Jr(),r=Yr(e),o=r[0],i=r[1],a=r[2],u=Gr(n,a),c=ar,s=u.use;if(s)for(var l=s.length;l-- >0;)c=s[l](c);return c(o,i||u.fetcher,u)}),no=v(688),ro=v(332),oo=v.n(ro);no.default.extend(oo())}(),g}())}}}))},5197:(e,t,n)=>{"use strict";n.d(t,{w:()=>c,hj:()=>Hn,g:()=>r.ExtensionData,dT:()=>$,Vz:()=>At,NV:()=>f,D$:()=>qe,Ae:()=>Ve,tl:()=>Be,a$:()=>We,YV:()=>He,P3:()=>g,yn:()=>Ze,ZR:()=>tt,BL:()=>b,Y9:()=>m,Yq:()=>bt,p8:()=>w,qd:()=>wt,jf:()=>_t,mr:()=>Et,Z_:()=>Ot,t$:()=>kt,h0:()=>qn,lm:()=>ft,kP:()=>It,oR:()=>Ft,xQ:()=>Bt,JF:()=>zn,NN:()=>Bn});var r={};n.r(r),n.d(r,{s:()=>i});var o=n(2735),i=o.createContext({moduleName:""}),a=n(9714);function u(){return u=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},u.apply(this,arguments)}var c=function(e){var t=e.to,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["to","children"]);return o.createElement("a",u({onClick:function(e){return function(e,t){e.metaKey||e.ctrlKey||e.shiftKey||0!=e.button||(e.preventDefault(),(0,a.navigate)({to:t}))}(e,t)},href:(0,a.interpolateUrl)(t)},r),n)};function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(e.getState()),2),r=n[0],i=n[1];(0,o.useEffect)((function(){return e.subscribe((function(e){return i(e)}))}),[]);var a={};return t&&(a=(0,o.useMemo)((function(){return function(e,t){"function"==typeof t&&(t=t(e));var n={};for(var r in t)n[r]=e.action(t[r]);return n}(e,t)}),[e,t])),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}({},r,a)}}var p=n(225),d=n(3103);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(window.navigator.onLine),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){return(0,d.subscribeConnectivityChanged)((function(e){var t=e.online;return n(t)}))}),[]),t}var y=n(2891);function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)([]),2),n=t[0],r=t[1];return(0,o.useEffect)((function(){var t=function(t){var o,i,a=null!==(i=null===(o=t.slots[e])||void 0===o?void 0:o.assignedExtensions)&&void 0!==i?i:[];(0,y.isEqual)(a,n)||r(a)};return t((0,p.getExtensionStore)().getState()),(0,p.getExtensionStore)().subscribe(t)}),[e,n]),n}function b(e){var t=m(),n=g(e);return(0,o.useMemo)((function(){return(0,p.getConnectedExtensions)(n,t)}),[n,t])}function w(e){var t=(0,o.useContext)(i).moduleName;if(!t)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,o.useEffect)((function(){(0,p.registerExtensionSlot)(t,e)}),[]),{extensions:b(e),extensionSlotName:e,extensionSlotModuleName:t}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(){return x=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},x.apply(this,arguments)}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_(e,t,n[t])}))}return e}function E(e){return e}var $=function(e){var t=e.extensionSlotName,n=e.select,r=void 0===n?E:n,a=e.children,u=e.state,c=e.style,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["extensionSlotName","select","children","state","style"]),l=(0,o.useRef)(null),f=w(t),p=f.extensions,d=f.extensionSlotModuleName,h=(0,o.useRef)(u);(function(e,t){if(e===t)return!0;if(!e&&t)return!1;if(e&&!t)return!1;if("object"!=typeof e||"object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!(i in t)||t[i]!==e[i])return!1}return!0})(h.current,u)||(h.current=u);var m=(0,o.useMemo)((function(){return t&&r(p).map((function(e){return o.createElement(i.Provider,{key:e.id,value:{moduleName:d,extension:{extensionId:e.id,extensionSlotName:t,extensionSlotModuleName:d}}},null!=a?a:o.createElement(Hn,{state:h.current}))}))}),[r,p,t,h.current]);return o.createElement("div",x({ref:l,"data-extension-slot-name":t,"data-extension-slot-module-name":d,style:S({},c,{position:"relative"})},s),m)},O=n(2788);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){var n;if("function"!=typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(A(n)));return function(){var e=n(t);if(!(e instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(A(e)));return e}}var I=null;try{I=require("react").createContext()}catch(k){}var R={React:null,ReactDOM:null,rootComponent:null,loadRootComponent:null,renderType:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{}};function N(e){if("object"!==P(e))throw new Error("single-spa-react requires a configuration object");var t=j(j({},R),e);if(!t.React)throw new Error("single-spa-react must be passed opts.React");if(!t.ReactDOM)throw new Error("single-spa-react must be passed opts.ReactDOM");if(!t.rootComponent&&!t.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(t.errorBoundary&&"function"!=typeof t.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!I&&t.React.createContext&&(I=t.React.createContext()),t.SingleSpaRoot=function(e){function t(e){t.displayName="SingleSpaRoot(".concat(e.name,")")}return t.prototype=Object.create(e.React.Component.prototype),t.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},t.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},t.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},t}(t);var n={bootstrap:D.bind(null,t),mount:M.bind(null,t),unmount:L.bind(null,t)};return t.parcelCanUpdate&&(n.update=U.bind(null,t)),n}function D(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then((function(t){e.rootComponent=t}))}function M(e,t){return new Promise((function(n,r){e.suppressComponentDidCatchWarning||!function(e){if(!(e&&"string"==typeof e.version&&e.version.indexOf(".")>=0))return!1;var t=e.version.slice(0,e.version.indexOf("."));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=z(e,t,(function(){n(this)})),i=C(e,t)(),a=function(e){var t=e.opts,n=e.elementToRender,r=e.domElement,o="function"==typeof t.renderType?t.renderType():t.renderType;if(["createRoot","unstable_createRoot","createBlockingRoot","unstable_createBlockingRoot"].indexOf(o)>=0){var i=t.ReactDOM[o](r);return i.render(n),i}return"hydrate"===o?t.ReactDOM.hydrate(n,r):t.ReactDOM.render(n,r),null}({elementToRender:o,domElement:i,opts:e});e.domElements[t.name]=i,e.renderResults[t.name]=a}))}function L(e,t){return new Promise((function(n){e.unmountFinished=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():e.ReactDOM.unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]}))}function U(e,t){return new Promise((function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=z(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=C(e,t)();e.ReactDOM.render(r,i)}}))}function z(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=I?e.React.createElement(I.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(e,t){function n(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(t.name,")")}return n.prototype=Object.create(e.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},n}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),e.React.createElement(e.SingleSpaRoot,j(j({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach((function(e){return e()})),delete e.updateResolves[t.name])},unmountFinished:function(){setTimeout(e.unmountFinished)}}),o)}function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){B(e,t,n[t])}))}return e}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(e,t,n){return t&&q(e.prototype,t),n&&q(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return H(e)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function Q(e,t){return Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Q(e,t)}function Y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}var J={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},X=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,e),this.init(t,n)}return K(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||J,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,V({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),ee=new X,te=function(){function e(){W(this,e),this.observers={}}return K(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function ne(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function re(e){return null==e?"":""+e}function oe(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function ie(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function ae(e,t,n){var r=ie(e,t,Object);r.obj[r.k]=n}function ue(e,t){var n=ie(e,t),r=n.obj,o=n.k;if(r)return r[o]}function ce(e,t,n){var r=ue(e,n);return void 0!==r?r:ue(t,n)}function se(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):se(e[r],t[r],n):e[r]=t[r]);return e}function le(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var fe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function pe(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return fe[e]})):e}var de="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,he=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return W(this,t),n=Z(this,G(t).call(this)),de&&te.call(H(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return Y(t,e),K(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),ue(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),ae(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=ue(this.data,a)||{};r?se(u,n,o):u=V({},u,n),ae(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?V({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(te),me={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},ye={},ve=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return W(this,t),n=Z(this,G(t).call(this)),de&&te.call(H(n)),oe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,H(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=ee.create("translator"),n}return Y(t,e),K(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==F(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,c=a.namespaces,s=c[c.length-1],l=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(f){var p=n.nsSeparator||this.options.nsSeparator;return s+p+u}return u}var d=this.resolve(e,n),h=d&&d.res,m=d&&d.usedKey||u,y=d&&d.exactUsedKey||u,v=Object.prototype.toString.apply(h),g=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,_="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&_&&g.indexOf(v)<0&&("string"!=typeof b||"[object Array]"!==v)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var x="[object Array]"===v,S=x?[]:{},E=x?y:m;for(var $ in h)if(Object.prototype.hasOwnProperty.call(h,$)){var O="".concat(E).concat(i).concat($);S[$]=this.translate(O,V({},n,{joinArrays:!1,ns:c})),S[$]===O&&(S[$]=h[$])}h=S}}else if(w&&"string"==typeof b&&"[object Array]"===v)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var k=!1,j=!1,P=void 0!==n.count&&"string"!=typeof n.count,T=t.hasDefaultValue(n),A=P?this.pluralResolver.getSuffix(l,n.count):"",C=n["defaultValue".concat(A)]||n.defaultValue;!this.isValidLookup(h)&&T&&(k=!0,h=C),this.isValidLookup(h)||(j=!0,h=u);var I=T&&C!==h&&this.options.updateMissing;if(j||k||I){if(this.logger.log(I?"updateKey":"missingKey",l,s,u,I?C:h),i){var R=this.resolve(u,V({},n,{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&D&&D[0])for(var M=0;M<D.length;M++)N.push(D[M]);else"all"===this.options.saveMissingTo?N=this.languageUtils.toResolveHierarchy(n.lng||this.language):N.push(n.lng||this.language);var L=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,s,t,I?r:h,I,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,s,t,I?r:h,I,n),o.emit("missingKey",e,s,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?N.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){L([e],u+t,n["defaultValue".concat(t)]||C)}))})):L(N,u,C))}h=this.extendTranslation(h,e,n,d,r),j&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(s,":").concat(u)),j&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(V({},n,{interpolation:V({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var c=e.match(this.interpolator.nestingRegexp);a=c&&c.length}var s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s=V({},this.options.interpolation.defaultVariables,s)),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),u){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,p="string"==typeof f?[f]:f;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=me.handle(p,e,t,this.options&&this.options.postProcessPassResolved?V({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,u),s=c.key;n=s;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,p=void 0!==u.context&&"string"==typeof u.context&&""!==u.context,d=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!ye["".concat(d[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(ye["".concat(d[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,c,l=s,d=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(d,s,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&p&&d.push(l+i),p&&d.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&d.push(l+=i));c=d.pop();)a.isValidLookup(t)||(r=c,t=a.getResource(n,e,c,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(te);function ge(e){return e.charAt(0).toUpperCase()+e.slice(1)}var be=function(){function e(t){W(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ee.create("languageUtils")}return K(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ge(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ge(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ge(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),we=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_e={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function xe(){var e={};return we.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:_e[t.fc]}}))})),e}var Se=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,e),this.languageUtils=t,this.options=n,this.logger=ee.create("pluralResolver"),this.rules=xe()}return K(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Ee=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};W(this,e),this.logger=ee.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return K(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:pe,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?le(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?le(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?le(t.nestingPrefix):t.nestingPrefixEscaped||le("$t("),this.nestingSuffix=t.nestingSuffix?le(t.nestingSuffix):t.nestingSuffixEscaped||le(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=ce(t,c,e);return u.alwaysFormat?u.format(o,void 0,n):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),s=i.join(u.formatSeparator).trim();return u.format(ce(t,c,a),s,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return s(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?s(u.escape(e)):s(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(p){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=re(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=V({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=V({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],s=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),c=l,s=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=re(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),s&&(r=c.reduce((function(e,t){return o.format(e,t,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),$e=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return W(this,t),o=Z(this,G(t).call(this)),de&&te.call(H(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=ee.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return Y(t,e),K(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),c.indexOf(t)<0&&c.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,u,c,s,l;r=n.loaded,u=i,(s=(c=ie(r,[o],Object)).obj)[l=c.k]=s[l]||[],s[l].push(u),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,c){u&&c&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,V({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(te);function Oe(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===F(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===F(e[2])||"object"===F(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function ke(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function je(){}var Pe=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(W(this,t),e=Z(this,G(t).call(this)),de&&te.call(H(e)),e.options=ke(n),e.services={},e.logger=ee,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),Z(e,H(e));setTimeout((function(){e.init(n,r)}),0)}return e}return Y(t,e),K(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=V({},Oe(),this.options,ke(t)),this.format=this.options.interpolation.format,n||(n=je),!this.options.isClone){this.modules.logger?ee.init(r(this.modules.logger),this.options):ee.init(null,this.options);var o=new be(this.options);this.store=new he(this.options.resources,this.options);var i=this.services;i.logger=ee,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new Se(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Ee(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new $e(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new ve(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=ne(),l=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=ne();return e||(e=this.languages),t||(t=this.options.ns),n||(n=je),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&me.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=ne();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==F(r)){for(var i=arguments.length,a=new Array(i>2?i-2:0),u=2;u<i;u++)a[u-2]=arguments[u];o=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else o=V({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=ne();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=ne();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je,o=V({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=V({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new ve(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(te);const Te=new Pe;var Ae=o.createContext();function Ce(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=(0,o.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,o.createElement)(Ae.Provider,{value:i},r)}function Ie(){return Ie=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},Ie.apply(this,arguments)}function Re(e){return Re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Re(e)}function Ne(e,t){return!t||"object"!==Me(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function De(e,t){return De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},De(e,t)}K((function e(){W(this,e),this.usedNamespaces={}}),[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]);var Me=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var Le=Te.default||Te,Ue={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},ze=function(e){(0,o.useEffect)((function(){return Le.on("languageChanged",e.forceUpdate),function(){return Le.off("languageChanged",e.forceUpdate)}}),[e.forceUpdate]);var t=(0,o.useRef)(null);if(t.current)throw t.current;if(!Le.hasLoadedNamespace(e.ns)){var n=setTimeout((function(){console.warn("openmrsComponentDecorator: the React suspense promise for i18next.loadNamespaces(['".concat(e.ns,"']) did not resolve nor reject after three seconds. This could mean you have multiple versions of i18next and haven't made i18next a webpack external in all projects."))}),3e3);throw Le.loadNamespaces([e.ns]).then((function(){return clearTimeout(n)})).catch((function(e){clearTimeout(n),t.current=e}))}return o.createElement(o.Fragment,null,e.children)};function Fe(e){if("object"!=typeof e||"string"!=typeof e.featureName||"string"!=typeof e.moduleName)throw new Error("Invalid options");var t=Object.assign({},Ue,e);return function(e){var n;return(n=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&De(e,t)}(c,n);var r,a,u=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Re(r);if(a){var n=Re(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ne(this,e)});function c(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=u.call(this,e)).state={caughtError:null,caughtErrorInfo:null,config:{moduleName:t.moduleName,extension:e._extensionContext}},n}var s=c.prototype;return s.componentDidCatch=function(e,n){n&&n.componentStack&&(e.extra=Object.assign(e.extra||{},{componentStack:n.componentStack})),t.throwErrorsToConsole&&setTimeout((function(){throw e})),this.setState({caughtError:e,caughtErrorInfo:n})},s.render=function(){if(this.state.caughtError)return o.createElement("div",null,"An error has occurred. Please try reloading the page.");var n=this,r=o.createElement(i.Provider,{value:this.state.config},o.createElement(o.Suspense,{fallback:null},t.disableTranslations?o.createElement(e,Ie({},this.props)):o.createElement(ze,{ns:t.moduleName,forceUpdate:function(){return n.forceUpdate()}},o.createElement(Ce,{i18n:Le,defaultNS:t.moduleName},o.createElement(e,Ie({},this.props))))));return t.strictMode||!o.StrictMode?r:o.createElement(o.StrictMode,null,r)},c}(o.Component)).displayName="OpenmrsReactComponent(".concat(t.featureName,")"),n}}function Be(e,t){return N({React:o,ReactDOM:O,rootComponent:Fe(t)(e)})}function Ve(e,t){return function(){return e().then((function(e){return Be(e.default,t)}))}}function We(e,t){return function(){return Promise.resolve(Be(e,t))}}var qe=Ve;function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function He(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ke(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)([]),2),n=t[0],r=t[1];return(0,o.useEffect)((function(){return(0,p.getExtensionStore)().subscribe((function(t){var o,i,a=null!==(i=null===(o=t.slots[e])||void 0===o?void 0:o.assignedExtensions.map((function(e){return e.id})))&&void 0!==i?i:[];(0,y.isEqual)(a,n)||r(a)}))}),[]),n}function Ze(e){(0,o.useEffect)((function(){if(e){var t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=t}}}),[e])}var Ge=n(3202);function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Xe={};function et(e){var t=(0,o.useMemo)(a.getExtensionsConfigStore,[]),n=function(e,t){var n=Je((0,o.useState)(function(e,t){return t?function(){var n=e.getState(),r=(0,a.getExtensionConfigFromStore)(n,t.extensionSlotName,t.extensionId);if(r.loaded&&r.config)return r.config}:null}(e,t)),2),r=n[0],i=n[1];return(0,o.useEffect)((function(){if(t)return e.subscribe((function(e){var n=(0,a.getExtensionConfigFromStore)(e,t.extensionSlotName,t.extensionId);n.loaded&&n.config&&!(0,Ge.Z)(n.config,r)&&i(n.config)}))}),[e,t,r]),r}(t,e);if(!n&&e){var r="".concat(e.extensionSlotName,"-").concat(e.extensionId);throw!Xe[r]&&t&&(Xe[r]=function(e,t){return new Promise((function(n){var r=e.subscribe((function(e){var o=(0,a.getExtensionConfigFromStore)(e,t.extensionSlotName,t.extensionId);o.loaded&&o.config&&(n(o.config),r())}))}))}(t,e)),Xe[r]}return n||{}}function tt(){var e=(0,o.useContext)(i),t=e.moduleName,n=e.extension;if(!t&&!n)throw Error('No ComponentContext has been provided. This should come from "openmrsComponentDecorator".\nUsually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".');var r=function(e){var t=(0,o.useMemo)((function(){return(0,a.getConfigStore)(e)}),[e]),n=e,r=function(e){var t=Je((0,o.useState)(function(e){return function(){var t=e.getState();return t.loaded&&t.config?t.config:null}}(e)),2),n=t[0],r=t[1];return(0,o.useEffect)((function(){return null==e?void 0:e.subscribe((function(e){e.loaded&&e.config&&r(e.config)}))}),[e]),n}(t);if(!r)throw Xe[n]||(Xe[n]=function(e){return new Promise((function(t){var n=e.subscribe((function(e){e.loaded&&e.config&&(t(e.config),n())}))}))}(t)),Xe[n];return r}(t),u=et(n),c=(0,o.useMemo)((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ye(e,t,n[t])}))}return e}({},r,u)}),[r,u]);return c}var nt,rt=n(7641);function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){it(e,t,n[t])}))}return e}!function(e){e.loadPatient="loadPatient",e.newPatient="newPatient",e.loadError="patientLoadError"}(nt||(nt={}));var ut,ct={patientUuid:null,patient:null,isPendingUuid:!0,isLoadingPatient:!1,err:null};function st(){var e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]}function lt(e,t){switch(t.type){case nt.loadPatient:return at({},e,{patientUuid:t.patientUuid,patient:null,isPendingUuid:!1,isLoadingPatient:!0,err:null});case nt.newPatient:return at({},e,{patient:t.patient,isPendingUuid:!1,isLoadingPatient:!1,err:null});case nt.loadError:return at({},e,{patient:null,isPendingUuid:!1,isLoadingPatient:!1,err:t.err});default:return e}}function ft(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useReducer)(lt,at({},ct,{patientUuid:null!=e?e:null,isPendingUuid:!e,isLoadingPatient:!!e})),2),n=t[0],r=t[1];return(0,o.useEffect)((function(){if(n.isPendingUuid){var e=st();r(e?{type:nt.loadPatient,patientUuid:e}:{type:nt.newPatient,patient:null})}var t=!0;return n.isLoadingPatient&&n.patientUuid&&(0,rt.fetchCurrentPatient)(n.patientUuid).then((function(e){return t&&r({patient:e.data,type:nt.newPatient})}),(function(e){return t&&r({err:e,type:nt.loadError})})),function(){t=!1}}),[n.isPendingUuid,n.isLoadingPatient,n.patientUuid]),(0,o.useEffect)((function(){var e=function(e){var t=st();t!=n.patientUuid&&r({type:nt.loadPatient,patientUuid:t})};return window.addEventListener("single-spa:routing-event",e),function(){return window.removeEventListener("single-spa:routing-event",e)}}),[n.patientUuid]),{isLoading:n.isPendingUuid||n.isLoadingPatient,patient:n.patient,patientUuid:null!=e?e:n.patientUuid,error:n.err}}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dt(e,t,n[t])}))}return e}function mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(e){e.loadPatient="loadPatient",e.newPatient="newPatient",e.loadError="patientLloadErroroadError"}(ut||(ut={}));var yt={patient:null,isLoadingPatient:!0,err:null};function vt(){var e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]}function gt(e,t){switch(t.type){case ut.loadPatient:return ht({},e,{patient:null,isLoadingPatient:!0,err:null});case ut.newPatient:return ht({},e,{patient:t.patient,isLoadingPatient:!1,err:null});case ut.loadError:return ht({},e,{patient:null,isLoadingPatient:!1,err:t.err});default:return e}}function bt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vt(),t=mt((0,o.useReducer)(gt,yt),2),n=t[0],r=t[1];return(0,o.useEffect)((function(){var t=!0;return e?((0,rt.fetchCurrentPatient)(e).then((function(e){return t&&r({patient:e.data,type:ut.newPatient})}),(function(e){return t&&r({err:e,type:ut.loadError})})),r({type:ut.loadPatient})):r({type:ut.newPatient,patient:null}),function(){t=!1}}),[e]),[n.isLoadingPatient,n.patient,e,n.err]}function wt(e){var t=b(e);return(0,o.useMemo)((function(){return Object.fromEntries(t.map((function(e){return[e.name,e.meta]})))}),[t])}f((0,p.getExtensionInternalStore)());var _t=f((0,p.getExtensionStore)());function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function St(){var e="tablet";return document.body.classList.forEach((function(t){switch(t){case"omrs-breakpoint-lt-tablet":e="phone";break;case"omrs-breakpoint-gt-tablet":e="desktop"}})),e}function Et(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(St),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=function(){n(St())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),t}function $t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ot(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)([]),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=(0,rt.getLocations)().subscribe((function(e){n(e)}),(function(e){console.error(e)}));return function(){return e.unsubscribe()}}),[]),t}function kt(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,o.useRef)(null);return(0,o.useEffect)((function(){if(t){var r=function(t){var r;(null==n||null===(r=n.current)||void 0===r?void 0:r.contains(t.target))||e(t)};return window.addEventListener("click",r),function(){return window.removeEventListener("click",r)}}}),[e,t]),n}function jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pt,Tt,At=function(e){var t=e.privilege,n=e.children,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(null),2),i=r[0],a=r[1];return(0,o.useEffect)((function(){var e=(0,rt.getCurrentUser)({includeAuthStatus:!1}).subscribe(a);return function(){return e.unsubscribe()}}),[]),i&&(0,rt.userHasAccess)(t,i)?o.createElement(o.Fragment,null,n):null};function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function It(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(null),2),t=e[0],n=e[1],r=null;if(!t){if(Pt){var i=(0,rt.getSessionStore)().getState();i.loaded&&(r=i.session)}else Pt=new Promise((function(e){var t=function(t){var n=t.loaded,o=t.session;n&&(e(o),r=o,Tt&&Tt(),Tt=void 0)};t((0,rt.getSessionStore)().getState()),r||(Tt=(0,rt.getSessionStore)().subscribe(t))}));if(!r)throw Pt;n(r)}(0,o.useEffect)((function(){return Tt||(Tt=(0,rt.getSessionStore)().subscribe((function(e){var t=e.loaded,o=e.session;t&&(r=o,n(o))}))),function(){Tt&&Tt(),Tt=void 0}}),[]);var a=t||r;if(!a)throw Pt?(console.warn("useSessionUser is in an unexpected state. Attempting to recover."),Pt):Error("useSessionUser is in an invalid state.");return a}var Rt=n(5385);function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Dt(e,t,n[t])}))}return e}function Lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){"function"==typeof t&&(t=t(e));var n={};for(var r in t)n[r]=e.action(t[r]);return n}var zt=function(e){return e};function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zt,n=arguments.length>2?arguments[2]:void 0,r=Lt((0,o.useState)((function(){return t(e.getState())})),2),i=r[0],a=r[1];(0,o.useEffect)((function(){return(0,Rt.subscribeTo)(e,t,a)}),[e,t]);var u={};return n&&(u=(0,o.useMemo)((function(){return Ut(e,n)}),[e,n])),Mt({},i,u)}function Bt(e,t){return Ft(e,zt,t)}function Vt(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))}function Wt(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var qt,Kt=function(){},Ht=Kt(),Zt=Object,Gt=function(e){return e===Ht},Qt=function(e){return"function"==typeof e},Yt=function(e,t){return Zt.assign({},e,t)},Jt="undefined",Xt=function(){return typeof window!=Jt},en=new WeakMap,tn=0,nn=function(e){var t,n,r=typeof e,o=e&&e.constructor,i=o==Date;if(Zt(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=en.get(e))return t;if(t=++tn+"~",en.set(e,t),o==Array){for(t="@",n=0;n<e.length;n++)t+=nn(e[n])+",";en.set(e,t)}if(o==Zt){t="#";for(var a=Zt.keys(e).sort();!Gt(n=a.pop());)Gt(e[n])||(t+=n+":"+nn(e[n])+",");en.set(e,t)}}return t},rn=!0,on=Xt(),an=typeof document!=Jt,un=on&&window.addEventListener?window.addEventListener.bind(window):Kt,cn=an?document.addEventListener.bind(document):Kt,sn=on&&window.removeEventListener?window.removeEventListener.bind(window):Kt,ln=an?document.removeEventListener.bind(document):Kt,fn={isOnline:function(){return rn},isVisible:function(){var e=an&&document.visibilityState;return Gt(e)||"hidden"!==e}},pn={initFocus:function(e){return cn("visibilitychange",e),un("focus",e),function(){ln("visibilitychange",e),sn("focus",e)}},initReconnect:function(e){var t=function(){rn=!0,e()},n=function(){rn=!1};return un("online",t),un("offline",n),function(){sn("online",t),sn("offline",n)}}},dn=!Xt()||"Deno"in window,hn=dn?o.useEffect:o.useLayoutEffect,mn="undefined"!=typeof navigator&&navigator.connection,yn=!dn&&mn&&(["slow-2g","2g"].includes(mn.effectiveType)||mn.saveData),vn=function(e){if(Qt(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?nn(e):"",t,e?"$swr$"+e:""]},gn=new WeakMap,bn=function(e,t,n,r,o,i,a){void 0===a&&(a=!0);var u=gn.get(e),c=u[0],s=u[1],l=u[3],f=c[t],p=s[t];if(a&&p)for(var d=0;d<p.length;++d)p[d](n,r,o);return i&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},wn=0,_n=function(){return++wn},xn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Vt(void 0,void 0,void 0,(function(){var t,n,r,o,i,a,u,c,s,l,f,p,d,h,m,y,v,g,b,w;return Wt(this,(function(_){switch(_.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],a=!!Gt((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,u=!1!==i.revalidate,c=!1!==i.rollbackOnError,s=i.optimisticData,l=vn(n),f=l[0],p=l[2],!f)return[2];if(d=gn.get(t),h=d[2],e.length<3)return[2,bn(t,f,t.get(f),Ht,Ht,u,!0)];if(m=r,v=_n(),h[f]=[v,0],g=!Gt(s),b=t.get(f),g&&(t.set(f,s),bn(t,f,s)),Qt(m))try{m=m(t.get(f))}catch(e){y=e}return m&&Qt(m.then)?[4,m.catch((function(e){y=e}))]:[3,2];case 1:if(m=_.sent(),v!==h[f][0]){if(y)throw y;return[2,m]}y&&g&&c&&(a=!0,m=b,t.set(f,b)),_.label=2;case 2:return a&&(y||(Qt(a)&&(m=a(m,b)),t.set(f,m)),t.set(p,Yt(t.get(p),{error:y}))),h[f][1]=_n(),[4,bn(t,f,m,y,Ht,u,!!a)];case 3:if(w=_.sent(),y)throw y;return[2,a?w:m]}}))}))},Sn=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},En=function(e,t){if(!gn.has(e)){var n=Yt(pn,t),r={},o=xn.bind(Ht,e),i=Kt;if(gn.set(e,[r,{},{},{},o]),!dn){var a=n.initFocus(setTimeout.bind(Ht,Sn.bind(Ht,r,0))),u=n.initReconnect(setTimeout.bind(Ht,Sn.bind(Ht,r,1)));i=function(){a&&a(),u&&u(),gn.delete(e)}}return[e,o,i]}return[e,gn.get(e)[4]]},$n=En(new Map),On=$n[0],kn=$n[1],jn=Yt({onLoadingSlow:Kt,onSuccess:Kt,onError:Kt,onErrorRetry:function(e,t,n,r,o){var i=n.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Gt(i)&&a>i||setTimeout(r,u,o)},onDiscarded:Kt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:yn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:yn?5e3:3e3,compare:function(e,t){return nn(e)==nn(t)},isPaused:function(){return!1},cache:On,mutate:kn,fallback:{}},fn),Pn=function(e,t){var n=Yt(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=Yt(o,a))}return n},Tn=(0,o.createContext)({}),An=function(e){return Qt(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Cn=function(){return Yt(jn,(0,o.useContext)(Tn))},In=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Rn={dedupe:!0},Nn=(Zt.defineProperty((function(e){var t=e.value,n=Pn((0,o.useContext)(Tn),t),r=t&&t.provider,i=(0,o.useState)((function(){return r?En(r(n.cache||On),t):Ht}))[0];return i&&(n.cache=i[0],n.mutate=i[1]),hn((function(){return i?i[2]:Ht}),[]),(0,o.createElement)(Tn.Provider,Yt(e,{value:n}))}),"default",{value:jn}),qt=function(e,t,n){var r=n.cache,i=n.compare,a=n.fallbackData,u=n.suspense,c=n.revalidateOnMount,s=n.refreshInterval,l=n.refreshWhenHidden,f=n.refreshWhenOffline,p=gn.get(r),d=p[0],h=p[1],m=p[2],y=p[3],v=vn(e),g=v[0],b=v[1],w=v[2],_=(0,o.useRef)(!1),x=(0,o.useRef)(!1),S=(0,o.useRef)(g),E=(0,o.useRef)(t),$=(0,o.useRef)(n),O=function(){return $.current},k=function(){return O().isVisible()&&O().isOnline()},j=function(e){return r.set(w,Yt(r.get(w),e))},P=r.get(g),T=Gt(a)?n.fallback[g]:a,A=Gt(P)?T:P,C=r.get(w)||{},I=C.error,R=!_.current,N=function(){return R&&!Gt(c)?c:!O().isPaused()&&(u?!Gt(A):Gt(A)||n.revalidateIfStale)},D=!(!g||!t)&&(!!C.isValidating||R&&N()),M=function(e,t){var n=(0,o.useState)({})[1],r=(0,o.useRef)(e),i=(0,o.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,o.useCallback)((function(e){var o=!1,a=r.current;for(var u in e){var c=u;a[c]!==e[c]&&(a[c]=e[c],i.current[c]&&(o=!0))}o&&!t.current&&n({})}),[]);return hn((function(){r.current=e})),[r,i.current,a]}({data:A,error:I,isValidating:D},x),L=M[0],U=M[1],z=M[2],F=(0,o.useCallback)((function(e){return Vt(void 0,void 0,void 0,(function(){var t,o,a,u,c,s,l,f,p,d,h,v,w;return Wt(this,(function($){switch($.label){case 0:if(t=E.current,!g||!t||x.current||O().isPaused())return[2,!1];u=!0,c=e||{},s=!y[g]||!c.dedupe,l=function(){return!x.current&&g===S.current&&_.current},f=function(){var e=y[g];e&&e[1]===a&&delete y[g]},p={isValidating:!1},d=function(){j({isValidating:!1}),l()&&z(p)},j({isValidating:!0}),z({isValidating:!0}),$.label=1;case 1:return $.trys.push([1,3,,4]),s&&(bn(r,g,L.current.data,L.current.error,!0),n.loadingTimeout&&!r.get(g)&&setTimeout((function(){u&&l()&&O().onLoadingSlow(g,n)}),n.loadingTimeout),y[g]=[t.apply(void 0,b),_n()]),w=y[g],o=w[0],a=w[1],[4,o];case 2:return o=$.sent(),s&&setTimeout(f,n.dedupingInterval),y[g]&&y[g][1]===a?(j({error:Ht}),p.error=Ht,h=m[g],!Gt(h)&&(a<=h[0]||a<=h[1]||0===h[1])?(d(),s&&l()&&O().onDiscarded(g),[2,!1]):(i(L.current.data,o)?p.data=L.current.data:p.data=o,i(r.get(g),o)||r.set(g,o),s&&l()&&O().onSuccess(o,g,n),[3,4])):(s&&l()&&O().onDiscarded(g),[2,!1]);case 3:return v=$.sent(),f(),O().isPaused()||(j({error:v}),p.error=v,s&&l()&&(O().onError(v,g,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||Qt(n.shouldRetryOnError)&&n.shouldRetryOnError(v))&&k()&&O().onErrorRetry(v,g,n,F,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,d(),l()&&s&&bn(r,g,p.data,p.error,!1),[2,!0]}}))}))}),[g]),B=(0,o.useCallback)(xn.bind(Ht,r,(function(){return S.current})),[]);if(hn((function(){E.current=t,$.current=n})),hn((function(){if(g){var e=g!==S.current,t=F.bind(Ht,Rn),n=0,r=In(g,h,(function(e,t,n){z(Yt({error:t,isValidating:n},i(L.current.data,e)?Ht:{data:e}))})),o=In(g,d,(function(e){if(0==e){var r=Date.now();O().revalidateOnFocus&&r>n&&k()&&(n=r+O().focusThrottleInterval,t())}else if(1==e)O().revalidateOnReconnect&&k()&&t();else if(2==e)return F()}));return x.current=!1,S.current=g,_.current=!0,e&&z({data:A,error:I,isValidating:D}),N()&&(Gt(A)||dn?t():(a=t,Xt()&&typeof window.requestAnimationFrame!=Jt?window.requestAnimationFrame(a):setTimeout(a,1))),function(){x.current=!0,r(),o()}}var a}),[g,F]),hn((function(){var e;function t(){var t=Qt(s)?s(A):s;t&&-1!==e&&(e=setTimeout(n,t))}function n(){L.current.error||!l&&!O().isVisible()||!f&&!O().isOnline()?t():F(Rn).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[s,l,f,F]),(0,o.useDebugValue)(A),u&&Gt(A)&&g)throw E.current=t,$.current=n,x.current=!1,Gt(I)?F(Rn):I;return{mutate:B,get data(){return U.data=!0,A},get error(){return U.error=!0,I},get isValidating(){return U.isValidating=!0,D}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Cn(),r=An(e),o=r[0],i=r[1],a=r[2],u=Pn(n,a),c=qt,s=u.use;if(s)for(var l=s.length;l-- >0;)c=s[l](c);return c(o,i||u.fetcher,u)}),Dn=n(7530),Mn=n.n(Dn),Ln=n(4332),Un=n.n(Ln);function zn(e){var t,n=Nn(e?"/ws/rest/v1/visit?patient=".concat(e,"&v=").concat(rt.defaultVisitCustomRepresentation,"&includeInactive=false"):null,rt.openmrsFetch),r=n.data,i=n.error;return{error:i,mutate:n.mutate,isValidating:n.isValidating,currentVisit:(0,o.useMemo)((function(){return null!==(t=null==r?void 0:r.data.results.find((function(e){return null===e.stopDatetime&&Mn()(e.startDatetime).isToday()})))&&void 0!==t?t:null}),[null==r?void 0:r.data.results]),isLoading:!r&&!i}}function Fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bn(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)([]),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=(0,rt.getVisitTypes)().subscribe((function(e){n(e)}),(function(e){return console.error(e)}));return function(){return e.unsubscribe()}}),[]),t}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=Wn((0,o.useState)(1),2),r=n[0],i=n[1],a=(0,o.useMemo)((function(){return Math.max(1,Math.ceil(e.length/t))}),[e.length,t]),u=(0,o.useMemo)((function(){var n=(r-1)*t,o=(r+0)*t;return e.slice(n,o)}),[e,r,t]);return{results:u,totalPages:a,currentPage:r,paginated:e.length>t,showNextButton:r<a,showPreviousButton:r>1,goTo:function(e){i(Math.max(1,Math.min(a,e)))},goToNext:function(){r<a&&i(r+1)},goToPrevious:function(){r>1&&i(r-1)}}}function Kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Mn().extend(Un());var Hn=function(e){var t=e.state,n=e.wrap,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(),2),a=r[0],u=r[1],c=(0,o.useContext)(i).extension,s=(0,o.useCallback)((function(e){u(e)}),[]);(0,o.useEffect)((function(){if(null!=a&&c)return(0,p.renderExtension)(a,c.extensionSlotName,c.extensionSlotModuleName,c.extensionId,void 0,t)}),[null==c?void 0:c.extensionSlotName,null==c?void 0:c.extensionId,null==c?void 0:c.extensionSlotModuleName,t,a]);var l=o.createElement("div",{ref:s,"data-extension-id":null==c?void 0:c.extensionId,style:{position:"relative"}});return c&&n?n(l,c):l}},5385:()=>{System.register([],(function(e,t){return{execute:function(){e(function(){var e={968:function(e,t,n){var r=n(577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},577:function(e,t,n){t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.y=t,r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}();var o={};return(0,r(968).s)(1),function(){"use strict";var e=function(e,t){for(var n in t)e[n]=t[n];return e},t=function(t){var n=[];function r(e){for(var t=[],r=0;r<n.length;r++)n[r]===e?e=null:t.push(n[r]);n=t}function o(r,o,i){t=o?r:e(e({},t),r);for(var a=n,u=0;u<a.length;u++)a[u](t,i)}return t=t||{},{action:function(e){function n(t){o(t,!1,e)}return function(){for(var r=arguments,o=[t],i=0;i<arguments.length;i++)o.push(r[i]);var a=e.apply(this,o);if(null!=a)return a.then?a.then(n):n(a)}},setState:o,subscribe:function(e){return n.push(e),function(){r(e)}},unsubscribe:r,getState:function(){return t}}},n=function(e,n){var r=s[e];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=t(n);return s[e]={value:o,active:!0},o},i=function(e,n){var r=s[e];if(!r){var o=t(n);return s[e]={value:o,active:!1},o}return r.value},a=function(e){return n("app",e)},u=function(){return i("app",{})},c=function(e,t,n){var r=t(e.getState());return e.subscribe((function(e){var o=t(e);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return a},createGlobalStore:function(){return n},getAppState:function(){return u},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},1645:(e,t,n)=>{"use strict";n.d(t,{aB:()=>r.AppState,jk:()=>u,W5:()=>s,zJ:()=>c,se:()=>l});var r={};function o(e,t){for(var n in t)e[n]=t[n];return e}function i(e){var t=[];function n(e){for(var n=[],r=0;r<t.length;r++)t[r]===e?e=null:n.push(t[r]);t=n}function r(n,r,i){e=r?n:o(o({},e),n);for(var a=t,u=0;u<a.length;u++)a[u](e,i)}return e=e||{},{action:function(t){function n(e){r(e,!1,t)}return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var a=t.apply(this,o);if(null!=a)return a.then?a.then(n):n(a)}},setState:r,subscribe:function(e){return t.push(e),function(){n(e)}},unsubscribe:n,getState:function(){return e}}}n.r(r),n.d(r,{jk:()=>u,W5:()=>s,zJ:()=>c,se:()=>l});var a={};function u(e,t){var n=a[e];if(n)return n.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):n.value.setState(t,!0),n.active=!0,n.value;var r=i(t);return a[e]={value:r,active:!0},r}function c(e,t){var n=a[e];if(!n){var r=i(t);return a[e]={value:r,active:!1},r}return n.value}function s(){return c("app",{})}function l(e,t,n){var r=t(e.getState());return e.subscribe((function(e){var o=t(e);o!==r&&(r=o,n(o))}))}},5098:(e,t,n)=>{"use strict";n.d(t,{iW:()=>r.InlineNotificationType,cW:()=>ge,MK:()=>r.NotificationDescriptor,fU:()=>o.ToastDescriptor,yQ:()=>o.ToastNotificationMeta,pC:()=>o.ToastType,VM:()=>ye,K4:()=>I,c0:()=>w,CF:()=>E,$d:()=>ve});var r={};n.r(r);var o={};n.r(o);var i=n(2735),a=(n(2788),n(7860)),u=n(9295),c=n(606),s=n(175),l=n(6575),f=n(6905),p=n(7840),d=n(9494),h=n(8396),m=Object.prototype.hasOwnProperty;const y=function(e){if(null==e)return!0;if((0,f.Z)(e)&&((0,l.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,p.Z)(e)||(0,h.Z)(e)||(0,s.Z)(e)))return!e.length;var t=(0,c.Z)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,d.Z)(e))return!(0,u.Z)(e).length;for(var n in e)if(m.call(e,n))return!1;return!0};function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=new a.xQ,b=0;function w(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&!y(t))?setTimeout((function(){g.next(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}({},e,{id:b++}))}),0):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=new a.xQ,S=0;function E(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&!y(t))?setTimeout((function(){x.next(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_(e,t,n[t])}))}return e}({},e,{id:S++}))}),0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}n(225);var $=n(5385);function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}function P(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var T=(0,$.createGlobalStore)("globalModalState",{modalContainer:null,modalStack:[]});function A(e){var t=T.getState(),n=[e].concat(P(t.modalStack));T.setState(j({},t,{modalStack:n}))}function C(e){var t=T.getState(),n=t.modalStack.map((function(t){return t===e?j({},t,{state:"TO_BE_DELETED"}):t}));T.setState(j({},t,{modalStack:n}))}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=function(){var e=T.getState().modalStack.find((function(e){return e.onClose===n}));e&&C(e)};return A({state:"NEW",onClose:n,extensionId:e,props:j({extensionId:e,close:r},t)}),r}window.getComputedStyle(document.body).overflow;var R=n(4077);var N=n(841),D=n.n(N),M=n(216),L=n.n(M);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B,V=(B={"aria-label":L().string,"aria-labelledby":L().string},Object.keys(B).reduce((function(e,t){return z(z({},e),{},F({},t,(n=B[t],function(e,t,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return n.apply(void 0,[e,t,r].concat(i))})));var n}),{}));function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(){return K=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},K.apply(this,arguments)}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Q="bx",Y=i.forwardRef((function(e,t){var n,r,o=e.expanded,a=e.defaultExpanded,u=e.isChildOfHeader,c=e["aria-label"],s=e["aria-labelledby"],l=e.children,f=e.onToggle,p=e.className,d=e.isFixedNav,h=e.isRail,m=e.isPersistent,y=e.addFocusListeners,v=e.addMouseListeners,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["expanded","defaultExpanded","isChildOfHeader","aria-label","aria-labelledby","children","onToggle","className","isFixedNav","isRail","isPersistent","addFocusListeners","addMouseListeners"]),b=(0,i.useRef)(void 0!==o).current,w=Z((0,i.useState)(a),2),_=w[0],x=w[1],S=Z((0,i.useState)(a),2),E=S[0],$=S[1],O=b?o:_,k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!O;b||x(t),f&&f(e,t),(b||h)&&$(t)},j={"aria-label":c,"aria-labelledby":s},P=D()((H(n={},"".concat(Q,"--side-nav"),!0),H(n,"".concat(Q,"--side-nav--expanded"),O||E),H(n,"".concat(Q,"--side-nav--collapsed"),!O&&d),H(n,"".concat(Q,"--side-nav--rail"),h),H(n,p,!!p),H(n,"".concat(Q,"--side-nav--ux"),u),H(n,"".concat(Q,"--side-nav--hidden"),!m),n)),T=D()((H(r={},"".concat(Q,"--side-nav__overlay"),!0),H(r,"".concat(Q,"--side-nav__overlay-active"),O||E),r)),A=l;h&&(A=i.Children.map(l,(function(e){var t=b&&E||O;return i.cloneElement(e,{isSideNavExpanded:t})})));var C={};return y&&(C.onFocus=function(e){e.currentTarget.contains(e.relatedTarget)||k(e,!0)},C.onBlur=function(e){e.currentTarget.contains(e.relatedTarget)||k(e,!1)}),v&&h&&(C.onMouseEnter=function(){return k(!0,!0)},C.onMouseLeave=function(){return k(!1,!1)}),i.createElement(i.Fragment,null,d?null:i.createElement("div",{className:T}),i.createElement("nav",K({"aria-hidden":!O,ref:t,className:"".concat(Q,"--side-nav__navigation ").concat(P)},j,C,g),A))}));Y.defaultProps={defaultExpanded:!1,isChildOfHeader:!0,isFixedNav:!1,isPersistent:!0,addFocusListeners:!0,addMouseListeners:!0},Y.propTypes=q(q({},V),{},{addFocusListeners:L().bool,addMouseListeners:L().bool,className:L().string,defaultExpanded:L().bool,expanded:L().bool,isChildOfHeader:L().bool,isFixedNav:L().bool,isPersistent:L().bool,isRail:L().bool,onToggle:L().func,translateById:L().func});const J=Y;var X=n(487),ee=n.n(X),te=n(631),ne=n.n(te),re=n(2052),oe=n.n(re),ie=n(4010),ae=n.n(ie),ue=n(1469),ce=n.n(ue),se=n(9329),le=n.n(se),fe=n(6618),pe={};pe.styleTagTransform=le(),pe.setAttributes=ae(),pe.insert=oe().bind(null,"head"),pe.domAPI=ne(),pe.insertStyleElement=ce(),ee()(fe.Z,pe);const de=fe.Z&&fe.Z.locals?fe.Z.locals:void 0;function he(){return he=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},he.apply(this,arguments)}var me=(0,$.createGlobalStore)("left-nav",{slotName:null,basePath:window.spaBase});function ye(e){var t=e.name,n=e.basePath;me.setState({slotName:t,basePath:n})}function ve(e){me.getState().slotName==e&&me.setState({slotName:null})}var ge=i.forwardRef((function(e,t){var n=(0,R.useStore)(me),r=n.slotName,o=n.basePath;return i.createElement(J,he({ref:t,expanded:!0,"aria-label":"Left navigation",className:de.link},e),i.createElement(R.ExtensionSlot,{extensionSlotName:"global-nav-menu-slot"}),r?i.createElement(R.ExtensionSlot,{extensionSlotName:r,state:{basePath:o}}):null)}))},7968:(e,t,n)=>{const r=n(1577).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},1577:(e,t,n)=>{t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a};Number.isInteger},6763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(682),o=n(658);const i=(0,r.Z)(o.Z,"Map")},7851:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(658).Z.Symbol},963:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7851),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r.Z?r.Z.toStringTag:void 0;var c=Object.prototype.toString;var s=r.Z?r.Z.toStringTag:void 0;const l=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}(e):function(e){return c.call(e)}(e)}},9295:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9494);const o=(0,n(6899).Z)(Object.keys,Object);var i=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,r.Z)(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},5852:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},682:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(3200);const o=n(658).Z["__core-js_shared__"];var i,a=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";var u=n(7275),c=n(9441),s=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,p=l.toString,d=f.hasOwnProperty,h=RegExp("^"+p.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const m=function(e){return!(!(0,u.Z)(e)||(t=e,a&&a in t))&&((0,r.Z)(e)?h:s).test((0,c.Z)(e));var t},y=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return m(n)?n:void 0}},606:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(682),o=n(658);const i=(0,r.Z)(o.Z,"DataView");var a=n(6763);const u=(0,r.Z)(o.Z,"Promise"),c=(0,r.Z)(o.Z,"Set"),s=(0,r.Z)(o.Z,"WeakMap");var l=n(963),f=n(9441),p="[object Map]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",y="[object DataView]",v=(0,f.Z)(i),g=(0,f.Z)(a.Z),b=(0,f.Z)(u),w=(0,f.Z)(c),_=(0,f.Z)(s),x=l.Z;(i&&x(new i(new ArrayBuffer(1)))!=y||a.Z&&x(new a.Z)!=p||u&&x(u.resolve())!=d||c&&x(new c)!=h||s&&x(new s)!=m)&&(x=function(e){var t=(0,l.Z)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,f.Z)(n):"";if(r)switch(r){case v:return y;case g:return p;case b:return d;case w:return h;case _:return m}return t});const S=x},9494:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Object.prototype;const o=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},6899:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return function(n){return e(t(n))}}},658:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5852),o="object"==typeof self&&self&&self.Object===Object&&self;const i=r.Z||o||Function("return this")()},9441:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Function.prototype.toString;const o=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},175:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(963),o=n(4897);const i=function(e){return(0,o.Z)(e)&&"[object Arguments]"==(0,r.Z)(e)};var a=Object.prototype,u=a.hasOwnProperty,c=a.propertyIsEnumerable,s=i(function(){return arguments}())?i:function(e){return(0,o.Z)(e)&&u.call(e,"callee")&&!c.call(e,"callee")};const l=s},6575:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=Array.isArray},6905:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3200),o=n(3492);const i=function(e){return null!=e&&(0,o.Z)(e.length)&&!(0,r.Z)(e)}},7840:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(658);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o?r.Z.Buffer:void 0;const u=(a?a.isBuffer:void 0)||function(){return!1}},3202:(e,t,n)=>{"use strict";n.d(t,{Z:()=>X});const r=function(e,t){return e===t||e!=e&&t!=t},o=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1};var i=Array.prototype.splice;function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(e){var t=this.__data__,n=o(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))},a.prototype.get=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]},a.prototype.has=function(e){return o(this.__data__,e)>-1},a.prototype.set=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const u=a;var c=n(6763);const s=(0,n(682).Z)(Object,"create");var l=Object.prototype.hasOwnProperty;var f=Object.prototype.hasOwnProperty;function p(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}p.prototype.clear=function(){this.__data__=s?s(null):{},this.size=0},p.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},p.prototype.get=function(e){var t=this.__data__;if(s){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return l.call(t,e)?t[e]:void 0},p.prototype.has=function(e){var t=this.__data__;return s?void 0!==t[e]:f.call(t,e)},p.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this};const d=p,h=function(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map};function m(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}m.prototype.clear=function(){this.size=0,this.__data__={hash:new d,map:new(c.Z||u),string:new d}},m.prototype.delete=function(e){var t=h(this,e).delete(e);return this.size-=t?1:0,t},m.prototype.get=function(e){return h(this,e).get(e)},m.prototype.has=function(e){return h(this,e).has(e)},m.prototype.set=function(e,t){var n=h(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const y=m;function v(e){var t=this.__data__=new u(e);this.size=t.size}v.prototype.clear=function(){this.__data__=new u,this.size=0},v.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},v.prototype.get=function(e){return this.__data__.get(e)},v.prototype.has=function(e){return this.__data__.has(e)},v.prototype.set=function(e,t){var n=this.__data__;if(n instanceof u){var r=n.__data__;if(!c.Z||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new y(r)}return n.set(e,t),this.size=n.size,this};const g=v;function b(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new y;++t<n;)this.add(e[t])}b.prototype.add=b.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},b.prototype.has=function(e){return this.__data__.has(e)};const w=b,_=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},x=function(e,t,n,r,o,i){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(e),l=i.get(t);if(s&&l)return s==t&&l==e;var f=-1,p=!0,d=2&n?new w:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],m=t[f];if(r)var y=a?r(m,h,f,t,e,i):r(h,m,f,e,t,i);if(void 0!==y){if(y)continue;p=!1;break}if(d){if(!_(t,(function(e,t){if(a=t,!d.has(a)&&(h===e||o(h,e,n,r,i)))return d.push(t);var a}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p};var S=n(7851);const E=n(658).Z.Uint8Array,$=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},O=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var k=S.Z?S.Z.prototype:void 0,j=k?k.valueOf:void 0;var P=n(6575);var T=Object.prototype.propertyIsEnumerable,A=Object.getOwnPropertySymbols;const C=A?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(A(e),(function(t){return T.call(e,t)})))}:function(){return[]};var I=n(175),R=n(7840),N=/^(?:0|[1-9]\d*)$/;const D=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&N.test(e))&&e>-1&&e%1==0&&e<t};var M=n(8396),L=Object.prototype.hasOwnProperty;const U=function(e,t){var n=(0,P.Z)(e),r=!n&&(0,I.Z)(e),o=!n&&!r&&(0,R.Z)(e),i=!n&&!r&&!o&&(0,M.Z)(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=u.length;for(var s in e)!t&&!L.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||D(s,c))||u.push(s);return u};var z=n(9295),F=n(6905);const B=function(e){return(0,F.Z)(e)?U(e):(0,z.Z)(e)},V=function(e){return function(e,t,n){var r=t(e);return(0,P.Z)(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,B,C)};var W=Object.prototype.hasOwnProperty;var q=n(606),K="[object Arguments]",H="[object Array]",Z="[object Object]",G=Object.prototype.hasOwnProperty;const Q=function(e,t,n,o,i,a){var u=(0,P.Z)(e),c=(0,P.Z)(t),s=u?H:(0,q.Z)(e),l=c?H:(0,q.Z)(t),f=(s=s==K?Z:s)==Z,p=(l=l==K?Z:l)==Z,d=s==l;if(d&&(0,R.Z)(e)){if(!(0,R.Z)(t))return!1;u=!0,f=!1}if(d&&!f)return a||(a=new g),u||(0,M.Z)(e)?x(e,t,n,o,i,a):function(e,t,n,o,i,a,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new E(e),new E(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=$;case"[object Set]":var s=1&o;if(c||(c=O),e.size!=t.size&&!s)return!1;var l=u.get(e);if(l)return l==t;o|=2,u.set(e,t);var f=x(c(e),c(t),o,i,a,u);return u.delete(e),f;case"[object Symbol]":if(j)return j.call(e)==j.call(t)}return!1}(e,t,s,n,o,i,a);if(!(1&n)){var h=f&&G.call(e,"__wrapped__"),m=p&&G.call(t,"__wrapped__");if(h||m){var y=h?e.value():e,v=m?t.value():t;return a||(a=new g),i(y,v,n,o,a)}}return!!d&&(a||(a=new g),function(e,t,n,r,o,i){var a=1&n,u=V(e),c=u.length;if(c!=V(t).length&&!a)return!1;for(var s=c;s--;){var l=u[s];if(!(a?l in t:W.call(t,l)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var d=!0;i.set(e,t),i.set(t,e);for(var h=a;++s<c;){var m=e[l=u[s]],y=t[l];if(r)var v=a?r(y,m,l,t,e,i):r(m,y,l,e,t,i);if(!(void 0===v?m===y||o(m,y,n,r,i):v)){d=!1;break}h||(h="constructor"==l)}if(d&&!h){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,o,i,a))};var Y=n(4897);const J=function e(t,n,r,o,i){return t===n||(null==t||null==n||!(0,Y.Z)(t)&&!(0,Y.Z)(n)?t!=t&&n!=n:Q(t,n,r,o,e,i))},X=function(e,t){return J(e,t)}},3200:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(963),o=n(7275);const i=function(e){if(!(0,o.Z)(e))return!1;var t=(0,r.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3492:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7275:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},4897:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},8396:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(963),o=n(3492),i=n(4897),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var u=n(5852),c="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=c&&"object"==typeof module&&module&&!module.nodeType&&module,l=s&&s.exports===c&&u.Z.process,f=function(){try{return s&&s.require&&s.require("util").types||l&&l.binding&&l.binding("util")}catch(e){}}(),p=f&&f.isTypedArray;const d=p?(h=p,function(e){return h(e)}):function(e){return(0,i.Z)(e)&&(0,o.Z)(e.length)&&!!a[(0,r.Z)(e)]};var h}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.y=t,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var o={};return(0,r(7968).s)(1),(()=>{"use strict";r.r(o),r.d(o,{AppState:()=>f.aB,AssignedExtension:()=>u.pv,CancelLoading:()=>u.x9,ConfigStore:()=>i.JU,ConfigurableLink:()=>l.w,ConnectedExtension:()=>u.uP,ConnectivityChangedEvent:()=>c.ac,Extension:()=>l.hj,ExtensionData:()=>l.g,ExtensionMeta:()=>u.uu,ExtensionRegistration:()=>u.tj,ExtensionSlot:()=>l.dT,ExtensionSlotState:()=>u.u_,ExtensionStore:()=>u.qN,InlineNotificationType:()=>p.iW,LeftNavMenu:()=>p.cW,NotificationDescriptor:()=>p.MK,OfflineMode:()=>s.iC,OfflineModeResult:()=>s.Vm,OpenmrsFetchError:()=>e.nF,PrecacheStaticDependenciesEvent:()=>c.hM,QueueItemDescriptor:()=>s.Cg,ShowNotificationEvent:()=>c.Kj,ShowToastEvent:()=>c.P3,SyncItem:()=>s.we,SyncProcessOptions:()=>s.Ug,ToastDescriptor:()=>p.fU,ToastNotificationMeta:()=>p.yQ,ToastType:()=>p.pC,Type:()=>i.Dy,UserHasAccess:()=>l.Vz,VisitMode:()=>e.u4,VisitStatus:()=>e.Rx,attach:()=>u.ub,backendDependencies:()=>e.Wf,beginEditSynchronizationItem:()=>s.jp,canBeginEditSynchronizationItemsOfType:()=>s.Qd,clearCurrentUser:()=>e.Ze,createGlobalStore:()=>f.jk,createUseStore:()=>l.NV,defaultVisitCustomRepresentation:()=>e.I$,defineConfigSchema:()=>i.SH,defineExtensionConfigSchema:()=>i.Tj,deleteSynchronizationItem:()=>s.Gy,detach:()=>u.og,detachAll:()=>u.lW,fetchCurrentPatient:()=>e.Vy,fhir:()=>e.N$,fhirBaseUrl:()=>e.DN,generateOfflineUuid:()=>s.sF,getAppState:()=>f.W5,getAssignedExtensions:()=>u.h6,getAsyncExtensionLifecycle:()=>l.D$,getAsyncLifecycle:()=>l.Ae,getConfig:()=>i.iE,getConfigStore:()=>i.pR,getConnectedExtensions:()=>u.Kq,getCurrentOfflineMode:()=>s.vm,getCurrentUser:()=>e.ts,getDynamicOfflineDataEntries:()=>s.xA,getDynamicOfflineDataEntriesFor:()=>s.H_,getDynamicOfflineDataHandlers:()=>s.Ui,getExtensionNameFromId:()=>u.EB,getExtensionStore:()=>u.yw,getFullSynchronizationItems:()=>s.D2,getFullSynchronizationItemsFor:()=>s.WB,getGlobalStore:()=>f.zJ,getLifecycle:()=>l.tl,getLocations:()=>e.JC,getLoggedInUser:()=>e.r,getOfflineDb:()=>s.aA,getOfflinePatientDataStore:()=>s.k1,getSessionLocation:()=>e.WK,getSessionStore:()=>e.KJ,getStartedVisit:()=>e.$X,getSyncLifecycle:()=>l.a$,getSynchronizationItem:()=>s.TI,getSynchronizationItems:()=>s.Q2,getVisitTypes:()=>e.P9,getVisitsForPatient:()=>e.nx,inRange:()=>i.Z2,interpolateString:()=>i.IT,interpolateUrl:()=>i.ll,isOfflineUuid:()=>s.z7,isUrl:()=>i.CB,isUrlWithTemplateParameters:()=>i.gZ,makeUrl:()=>e.bf,messageOmrsServiceWorker:()=>s.gp,navigate:()=>i.c4,offlineUuidPrefix:()=>s.a7,omrsOfflineCachingStrategyHttpHeaderName:()=>s.Rz,omrsOfflineResponseBodyHttpHeaderName:()=>s.QI,omrsOfflineResponseStatusHttpHeaderName:()=>s.$9,oneOf:()=>i.kw,openmrsFetch:()=>e.vb,openmrsObservableFetch:()=>e.uj,provide:()=>i.JJ,putDynamicOfflineData:()=>s.cV,putDynamicOfflineDataFor:()=>s.fR,queueSynchronizationItem:()=>s.X2,refetchCurrentUser:()=>e.VJ,registerExtension:()=>u.ix,registerExtensionSlot:()=>u.Qq,registerOfflinePatientHandler:()=>s.dt,removeDynamicOfflineData:()=>s.pO,removeDynamicOfflineDataFor:()=>s.ME,renderExtension:()=>u.H8,saveVisit:()=>e.bX,sessionEndpoint:()=>e.z$,setLeftNav:()=>p.VM,setSessionLocation:()=>e.jK,setupDynamicOfflineDataHandler:()=>s.Xc,setupOfflineSync:()=>s.Kb,showModal:()=>p.K4,showNotification:()=>p.c0,showToast:()=>p.CF,subscribeConnectivity:()=>c.BW,subscribeConnectivityChanged:()=>c.XS,subscribeNotificationShown:()=>c.NQ,subscribePrecacheStaticDependencies:()=>c.dY,subscribeTo:()=>f.se,subscribeToastShown:()=>c.id,syncAllDynamicOfflineData:()=>s.ps,syncDynamicOfflineData:()=>s.mF,syncOfflinePatientData:()=>s.MO,toLocationObject:()=>e.Lq,toVisitTypeObject:()=>e.VF,unsetLeftNav:()=>p.$d,updateVisit:()=>e.ym,useAssignedExtensionIds:()=>l.YV,useAssignedExtensions:()=>l.P3,useBodyScrollLock:()=>l.yn,useConfig:()=>l.ZR,useConnectedExtensions:()=>l.BL,useConnectivity:()=>l.Y9,useCurrentPatient:()=>l.Yq,useExtensionSlot:()=>l.p8,useExtensionSlotMeta:()=>l.qd,useExtensionStore:()=>l.jf,useLayoutType:()=>l.mr,useLocations:()=>l.Z_,useOnClickOutside:()=>l.t$,usePagination:()=>l.h0,usePatient:()=>l.lm,useSession:()=>l.kP,useStore:()=>l.oR,useStoreWithActions:()=>l.xQ,useVisit:()=>l.JF,useVisitTypes:()=>l.NN,userHasAccess:()=>e.y9,validator:()=>i.sC,validators:()=>i.z2});var e=r(8461),t=r(6066),n={};for(const e in t)["default","OpenmrsFetchError","VisitMode","VisitStatus","backendDependencies","clearCurrentUser","defaultVisitCustomRepresentation","fetchCurrentPatient","fhir","fhirBaseUrl","getCurrentUser","getLocations","getLoggedInUser","getSessionLocation","getSessionStore","getStartedVisit","getVisitTypes","getVisitsForPatient","makeUrl","openmrsFetch","openmrsObservableFetch","refetchCurrentUser","saveVisit","sessionEndpoint","setSessionLocation","toLocationObject","toVisitTypeObject","updateVisit","userHasAccess"].indexOf(e)<0&&(n[e]=()=>t[e]);r.d(o,n);var i=r(3373),a=r(674);n={};for(const e in a)["default","OpenmrsFetchError","VisitMode","VisitStatus","backendDependencies","clearCurrentUser","defaultVisitCustomRepresentation","fetchCurrentPatient","fhir","fhirBaseUrl","getCurrentUser","getLocations","getLoggedInUser","getSessionLocation","getSessionStore","getStartedVisit","getVisitTypes","getVisitsForPatient","makeUrl","openmrsFetch","openmrsObservableFetch","refetchCurrentUser","saveVisit","sessionEndpoint","setSessionLocation","toLocationObject","toVisitTypeObject","updateVisit","userHasAccess","ConfigStore","Type","defineConfigSchema","defineExtensionConfigSchema","getConfig","getConfigStore","inRange","interpolateString","interpolateUrl","isUrl","isUrlWithTemplateParameters","navigate","oneOf","provide","validator","validators"].indexOf(e)<0&&(n[e]=()=>a[e]);r.d(o,n);var u=r(6856),c=r(2034),s=r(8082),l=r(5197),f=r(1645),p=r(5098)})(),o})())}}}));
|
|
3
3
|
//# sourceMappingURL=openmrs-esm-framework.js.map
|