@madgex/design-system-ce 5.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js ADDED
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ extends: ['plugin:vue/essential', '@vue/prettier'],
3
+ rules: {},
4
+ env: {
5
+ browser: true,
6
+ },
7
+ };
package/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## 5.1.0-alpha.0 (2022-06-22)
7
+
8
+
9
+ ### Features
10
+
11
+ * design-system-ce and design-system-vue ([e560cdb](https://github.com/projects/MDS/repos/mds-branding/commits/e560cdb6153e620c53d12e0838448a84bf1e0cd6))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * combobox keyboard controls ([01ae320](https://github.com/projects/MDS/repos/mds-branding/commits/01ae320b22a014e979fa75a774b6dadde0de4064))
17
+ * remove extra role presetenation on combobox ([f300c82](https://github.com/projects/MDS/repos/mds-branding/commits/f300c82953b94f5267efc9bd3b009fdc685a23ae))
18
+ * revert combobox slot fallback ([36d52c3](https://github.com/projects/MDS/repos/mds-branding/commits/36d52c3fcfaac1642d978886522731aa802cbeb7))
19
+ * simplify dev mode ([3cca82d](https://github.com/projects/MDS/repos/mds-branding/commits/3cca82d594f56fc54b6e271c2e2165f17b578097))
package/README.md ADDED
@@ -0,0 +1,8 @@
1
+ ## Development
2
+
3
+ `npm run dev` will start a vite dev server at http://localhost:8112 . This will server the main Custom Elements lib (http://localhost:8112/index.js) for use in fractal site dev mode, and a separate development page for use with Vue Devtools at http://localhost:8112/index.html .
4
+
5
+ ### Using Vue Devtools
6
+
7
+ Custom Elements do not connect to Vue Devtools currently, see https://github.com/vuejs/core/issues/4356#issue-971890012 . e.g. you can't use Vue Devtools in the fractal site right now.
8
+ Solution: browse to http://localhost:8112 to see a development page for Custom Elements. This is powered by index.html & index-dev.js, loading the Custom Elements as a normal vue app.
@@ -0,0 +1,76 @@
1
+ import * as Vue from 'vue';
2
+ // eslint-disable-next-line import/no-extraneous-dependencies
3
+ import { vi, describe, beforeEach, it, expect } from 'vitest';
4
+ // eslint-disable-next-line import/no-extraneous-dependencies
5
+ import { mount } from '@vue/test-utils';
6
+ import Combobox from './Combobox.ce.vue';
7
+
8
+ describe('Combobox', () => {
9
+ let wrapper;
10
+ let searchBox;
11
+ let listBox;
12
+ const scrollIntoViewMock = vi.fn();
13
+
14
+ window.HTMLElement.prototype.scrollIntoView = scrollIntoViewMock;
15
+
16
+ beforeEach(() => {
17
+ wrapper = mount(Combobox, {
18
+ propsData: {
19
+ comboboxid: 'test',
20
+ labeltext: 'Test Select',
21
+ options: [
22
+ {
23
+ value: 'dog',
24
+ label: 'Dog',
25
+ },
26
+ {
27
+ value: 'cat',
28
+ label: 'Cat',
29
+ },
30
+ ],
31
+ },
32
+ });
33
+ searchBox = wrapper.find('input');
34
+ listBox = wrapper.find('ul');
35
+ });
36
+
37
+ describe('Search box', () => {
38
+ it('triggers a search event on input', () => {
39
+ searchBox.setValue('test search');
40
+ expect(wrapper.emitted('search')[0]).toEqual(['test search']);
41
+ });
42
+
43
+ it('reduces the options rendered based on the search text', async () => {
44
+ expect.assertions(1);
45
+ searchBox.setValue('d');
46
+ await Vue.nextTick();
47
+ expect(listBox.findAll('li')).toHaveLength(1);
48
+ });
49
+
50
+ it('does not reduce the options rendered based on the search text when filterOptions prop is false', async () => {
51
+ expect.assertions(1);
52
+ wrapper.setProps({
53
+ filterOptions: false,
54
+ });
55
+ searchBox.setValue('d');
56
+ await Vue.nextTick();
57
+ expect(listBox.findAll('li')).toHaveLength(2);
58
+ });
59
+ });
60
+
61
+ describe('Listbox', () => {
62
+ it('renders the options passed to the select', () => {
63
+ expect(listBox.findAll('li')).toHaveLength(2);
64
+ });
65
+
66
+ it('triggers a select-option event on option mousedown', () => {
67
+ listBox.find('li').trigger('mousedown');
68
+ expect(wrapper.emitted('select-option')[0]).toEqual([
69
+ {
70
+ value: 'dog',
71
+ label: 'Dog',
72
+ },
73
+ ]);
74
+ });
75
+ });
76
+ });
@@ -0,0 +1,304 @@
1
+ <template>
2
+ <div
3
+ class="mds-combobox"
4
+ :class="{ 'mds-combobox--active': !listBoxHidden }"
5
+ @keydown.down="hiddenGuard(onKeyDown)"
6
+ @keydown.up="hiddenGuard(onKeyUp)"
7
+ @keydown.home="hiddenGuard(onKeyHome)"
8
+ @keydown.end="hiddenGuard(onKeyEnd)"
9
+ @keydown.esc="makeInactive"
10
+ @keydown.enter.stop.prevent="chooseOption"
11
+ >
12
+ <input
13
+ @input="handleInput"
14
+ :value="inputValue"
15
+ class="mds-form-control"
16
+ autocomplete="off"
17
+ type="text"
18
+ role="combobox"
19
+ ref="comboInput"
20
+ :id="comboboxid"
21
+ :name="name"
22
+ :placeholder="placeholder"
23
+ :aria-owns="listBoxId"
24
+ :aria-expanded="ariaExpanded"
25
+ aria-autocomplete="list"
26
+ :aria-activedescendant="selectedOptionId"
27
+ :aria-invalid="ariaInvalid"
28
+ :aria-describedby="describedBy"
29
+ @change="handleChange"
30
+ @blur="onInputBlur"
31
+ @focus="handleFocus"
32
+ />
33
+
34
+ <ComboboxClear v-if="searchValue.length > 0" @clear="handleClear" />
35
+ <ListBox :id="listBoxId" :hidden="listBoxHidden" :isLoading="isLoading" :comboboxid="comboboxid">
36
+ <ListBoxOption
37
+ v-for="(option, index) in visibleOptions"
38
+ :key="index"
39
+ :option="option"
40
+ :id="`${optionId}-${index}`"
41
+ :focused="selectedOption?.value === option?.value"
42
+ @mousedown="clickOption(option)"
43
+ :searchValue="searchValue"
44
+ />
45
+ </ListBox>
46
+ <div aria-live="polite" role="status" class="mds-visually-hidden">{{ resultCountMessage }}</div>
47
+ <span :id="describedBy" style="display: none">{{ i18nText.describedByText }} </span>
48
+ </div>
49
+ </template>
50
+
51
+ <script>
52
+ import ComboboxClear from './ComboboxClear.vue';
53
+ import ListBox from './ListBox.vue';
54
+ import ListBoxOption from './ListBoxOption.vue';
55
+
56
+ export default {
57
+ name: 'Combobox',
58
+ components: {
59
+ ComboboxClear,
60
+ ListBox,
61
+ ListBoxOption,
62
+ },
63
+ emits: ['search', 'select-option', 'clear-all'],
64
+ props: {
65
+ comboboxid: {
66
+ type: String,
67
+ required: true,
68
+ },
69
+ placeholder: {
70
+ type: String,
71
+ default: '',
72
+ },
73
+ name: {
74
+ type: [String, Boolean],
75
+ default: false,
76
+ },
77
+ value: {
78
+ type: String,
79
+ default: '',
80
+ },
81
+ options: {
82
+ type: Array,
83
+ default: () => [],
84
+ },
85
+ filterOptions: {
86
+ type: Boolean,
87
+ default: true,
88
+ },
89
+ iconpath: {
90
+ type: String,
91
+ default: '/assets/icons.svg',
92
+ },
93
+ dataAriaInvalid: {
94
+ type: String,
95
+ default: '',
96
+ },
97
+ i18n: {
98
+ type: String,
99
+ default: '',
100
+ },
101
+ },
102
+ data() {
103
+ return {
104
+ expanded: false,
105
+ selected: null,
106
+ chosen: null,
107
+ searchValue: this.$props.value,
108
+ resultCountMessage: null,
109
+ };
110
+ },
111
+ provide() {
112
+ return {
113
+ iconPath: this.iconpath,
114
+ loadingText: this.i18nText.loadingText,
115
+ clearInput: this.i18nText.clearInput,
116
+ };
117
+ },
118
+ mounted() {
119
+ // TODO: Get rid of this code which couples this to the nunjucks MdsCombobox template!
120
+ const fallbackInput = this.$el.parentElement?.parentElement?.querySelector('.mds-form-element__fallback input');
121
+ const fallbackSelect = this.$el.parentElement?.parentElement?.querySelector('.mds-form-element__fallback select');
122
+
123
+ if (fallbackInput) fallbackInput.remove();
124
+ if (fallbackSelect) fallbackSelect.removeAttribute('id');
125
+ },
126
+ computed: {
127
+ inputValue() {
128
+ if (this.chosenOption) {
129
+ return this.chosenOption.label;
130
+ }
131
+
132
+ return this.searchValue;
133
+ },
134
+ selectedOption: {
135
+ get() {
136
+ return this.selected;
137
+ },
138
+ set(newOption) {
139
+ this.selected = newOption;
140
+ },
141
+ },
142
+ chosenOption: {
143
+ get() {
144
+ return this.chosen;
145
+ },
146
+ set(newOption) {
147
+ this.chosen = newOption;
148
+ this.selectedOption = newOption;
149
+ this.$emit('select-option', this.chosen);
150
+ },
151
+ },
152
+ visibleOptions() {
153
+ if (this.filterOptions) {
154
+ return this.options.filter((opt) => opt.label.toLowerCase().includes(this.searchValue.toLowerCase()));
155
+ }
156
+
157
+ return this.options;
158
+ },
159
+ listBoxId() {
160
+ return `${this.comboboxid}-listbox`;
161
+ },
162
+ optionId() {
163
+ return `${this.comboboxid}-option`;
164
+ },
165
+ describedBy() {
166
+ return `${this.comboboxid}-assistiveHint`;
167
+ },
168
+ isLoading() {
169
+ return this.options.length === 0 && this.expanded;
170
+ },
171
+ selectedOptionId() {
172
+ const index = this.visibleOptions.indexOf(this.selectedOption);
173
+
174
+ if (index > -1) {
175
+ return `${this.optionId}-${index}`;
176
+ }
177
+
178
+ return false;
179
+ },
180
+ listBoxHidden() {
181
+ return !this.expanded;
182
+ },
183
+ lastOptionIndex() {
184
+ return this.visibleOptions.length - 1;
185
+ },
186
+ ariaExpanded() {
187
+ // These must be strings to apply as an aria attribute of the same name
188
+ return this.expanded ? 'true' : 'false';
189
+ },
190
+ ariaInvalid() {
191
+ return this.dataAriaInvalid ? 'true' : 'false';
192
+ },
193
+ i18nText() {
194
+ return this.i18n
195
+ ? JSON.parse(this.i18n)
196
+ : {
197
+ loadingText: 'Loading',
198
+ describedByText:
199
+ 'When autocomplete results are available, use up and down arrows to review and enter to select.',
200
+ resultsMessage: '{count} result available',
201
+ resultsMessage_plural: '{count} results available',
202
+ clearInput: 'clear input',
203
+ };
204
+ },
205
+ },
206
+ methods: {
207
+ makeActive() {
208
+ this.expanded = true;
209
+ },
210
+ makeInactive() {
211
+ this.expanded = false;
212
+ },
213
+ handleInput(event) {
214
+ // Reset any chosen option if user is typing again
215
+ this.chosenOption = null;
216
+ this.searchValue = event.target ? event.target.value : '';
217
+ this.handleChange();
218
+ this.$emit('search', this.searchValue);
219
+ if (this.visibleOptions.length > 0) {
220
+ this.updateCount();
221
+ }
222
+ },
223
+ handleChange() {
224
+ if (this.searchValue.length === 0) this.clearField();
225
+ if (this.searchValue.length > 1) {
226
+ this.makeActive();
227
+ this.updateCount();
228
+ } else {
229
+ this.makeInactive();
230
+ }
231
+ },
232
+ handleFocus() {
233
+ this.handleChange();
234
+ if (this.visibleOptions.length > 1) {
235
+ this.updateCount();
236
+ }
237
+ },
238
+ handleClear() {
239
+ this.clearField();
240
+ this.$refs.comboInput.focus();
241
+ },
242
+ clearField() {
243
+ this.searchValue = '';
244
+ this.chosenOption = null;
245
+ this.$emit('clear-all');
246
+ },
247
+ clickOption(option = this.selectedOption) {
248
+ this.chosenOption = option;
249
+ this.makeInactive();
250
+ },
251
+ chooseOption() {
252
+ this.chosenOption = this.selectedOption;
253
+ this.makeInactive();
254
+ this.clearCount();
255
+ },
256
+ hiddenGuard(fn) {
257
+ if (this.listBoxHidden) return;
258
+ fn.call(this);
259
+ },
260
+ onInputBlur() {
261
+ this.makeInactive();
262
+ this.clearCount();
263
+ },
264
+ onKeyDown() {
265
+ if (this.selectedOption) {
266
+ const currentIndex = this.visibleOptions.findIndex((item) => item.value === this.selectedOption.value);
267
+ const nextIndex = currentIndex === this.lastOptionIndex ? currentIndex : currentIndex + 1;
268
+
269
+ this.selectedOption = this.visibleOptions[nextIndex];
270
+ } else {
271
+ [this.selectedOption] = this.visibleOptions;
272
+ }
273
+ },
274
+ onKeyUp() {
275
+ if (this.selectedOption) {
276
+ const currentIndex = this.visibleOptions.findIndex((item) => item.value === this.selectedOption.value);
277
+ const nextIndex = currentIndex === 0 ? currentIndex : currentIndex - 1;
278
+
279
+ this.selectedOption = this.visibleOptions[nextIndex];
280
+ } else {
281
+ this.selectedOption = this.visibleOptions[this.lastOptionIndex];
282
+ }
283
+ },
284
+ onKeyHome() {
285
+ [this.selectedOption] = this.visibleOptions;
286
+ },
287
+ onKeyEnd() {
288
+ this.selectedOption = this.visibleOptions[this.lastOptionIndex];
289
+ },
290
+ updateCount() {
291
+ this.clearCount();
292
+ setTimeout(() => {
293
+ const message =
294
+ this.visibleOptions.length === 1 ? this.i18nText.resultsMessage : this.i18nText.resultsMessage_plural;
295
+
296
+ this.resultCountMessage = message.replace('{count}', this.visibleOptions.length);
297
+ }, 1400);
298
+ },
299
+ clearCount() {
300
+ this.resultCountMessage = null;
301
+ },
302
+ },
303
+ };
304
+ </script>
@@ -0,0 +1,21 @@
1
+ <template>
2
+ <button
3
+ class="mds-combobox__clear mds-button mds-button--plain"
4
+ type="button"
5
+ @click="$emit('clear', $event)"
6
+ @keydown.enter="$emit('clear', $event)"
7
+ :aria-label="clearInput"
8
+ :title="clearInput"
9
+ >
10
+ <svg aria-hidden="true" focusable="false" class="mds-icon mds-icon--close mds-icon--sm">
11
+ <use :href="`${iconPath}#icon-close`" />
12
+ </svg>
13
+ </button>
14
+ </template>
15
+
16
+ <script>
17
+ export default {
18
+ name: 'ComboboxClear',
19
+ inject: ['iconPath', 'clearInput'],
20
+ };
21
+ </script>
@@ -0,0 +1,34 @@
1
+ <template>
2
+ <ul class="mds-combobox__listbox" role="listbox" :aria-labelledby="`${comboboxid}-label`" :hidden="hidden">
3
+ <li v-if="isLoading" class="mds-combobox-loading">
4
+ <!-- Ideally we would pass this in as a slot in the custom element with MdsIcon, but something is borked
5
+ with passing slots in Chrome https://github.com/karol-f/vue-custom-element/issues/162 -->
6
+ <svg aria-hidden="true" focusable="true" class="mds-icon mds-icon--spinner mds-icon--after">
7
+ <use :href="`${iconPath}#icon-spinner`" />
8
+ </svg>
9
+ <span class="mds-visually-hidden">{{ loadingText }}</span>
10
+ </li>
11
+ <slot></slot>
12
+ </ul>
13
+ </template>
14
+
15
+ <script>
16
+ export default {
17
+ name: 'ListBox',
18
+ props: {
19
+ hidden: {
20
+ type: Boolean,
21
+ default: true,
22
+ },
23
+ isLoading: {
24
+ type: Boolean,
25
+ default: true,
26
+ },
27
+ comboboxid: {
28
+ type: String,
29
+ required: true,
30
+ },
31
+ },
32
+ inject: ['iconPath', 'loadingText'],
33
+ };
34
+ </script>
@@ -0,0 +1,50 @@
1
+ <template>
2
+ <li
3
+ ref="listItem"
4
+ class="mds-combobox__option"
5
+ role="option"
6
+ :class="{ 'mds-combobox__option--focused': focused }"
7
+ :aria-selected="focused.toString()"
8
+ @mousedown="$emit('mousedown', $event)"
9
+ v-html="highlightOption()"
10
+ />
11
+ </template>
12
+
13
+ <script>
14
+ export default {
15
+ name: 'ListBoxOption',
16
+ props: {
17
+ option: {
18
+ type: Object,
19
+ required: true,
20
+ },
21
+ focused: {
22
+ type: Boolean,
23
+ default: false,
24
+ },
25
+ searchValue: {
26
+ type: String,
27
+ default: '',
28
+ },
29
+ },
30
+ watch: {
31
+ searchValue(newSearchValue) {
32
+ return newSearchValue;
33
+ },
34
+ focused(value) {
35
+ if (value) {
36
+ this.$refs.listItem.scrollIntoView(false);
37
+ }
38
+ },
39
+ },
40
+ methods: {
41
+ highlightOption() {
42
+ const optionLabelHtml = this.option.label.replace(
43
+ new RegExp(this.searchValue, 'gi'),
44
+ (match) => `<span class="mds-combobox__option--marked">${match}</span>`
45
+ );
46
+ return optionLabelHtml;
47
+ },
48
+ },
49
+ };
50
+ </script>
@@ -0,0 +1 @@
1
+ !function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),n={},o=function(t){try{return!!t()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=c,a=Function.prototype.call,f=u?a.bind(a):function(){return a.apply(a,arguments)},s={},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,v=p&&!l.call({1:2},1);s.f=v?function(t){var e=p(this,t);return!!e&&e.enumerable}:l;var h,d,y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=c,m=Function.prototype,b=m.bind,S=m.call,w=g&&b.bind(S,S),E=g?function(t){return t&&w(t)}:function(t){return t&&function(){return S.apply(t,arguments)}},O=E,x=O({}.toString),j=O("".slice),T=function(t){return j(x(t),8,-1)},P=o,R=T,I=Object,L=E("".split),C=P((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"==R(t)?L(t,""):I(t)}:I,A=TypeError,k=function(t){if(null==t)throw A("Can't call method on "+t);return t},M=C,_=k,N=function(t){return M(_(t))},F=function(t){return"function"==typeof t},U=F,D=function(t){return"object"==typeof t?null!==t:U(t)},G=r,$=F,W=function(t){return $(t)?t:void 0},B=function(t,e){return arguments.length<2?W(G[t]):G[t]&&G[t][e]},z=E({}.isPrototypeOf),V=B("navigator","userAgent")||"",J=r,q=V,H=J.process,K=J.Deno,Y=H&&H.versions||K&&K.version,X=Y&&Y.v8;X&&(d=(h=X.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!d&&q&&(!(h=q.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=q.match(/Chrome\/(\d+)/))&&(d=+h[1]);var Q=d,Z=Q,tt=o,et=!!Object.getOwnPropertySymbols&&!tt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Z&&Z<41})),rt=et&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,nt=B,ot=F,it=z,ct=Object,ut=rt?function(t){return"symbol"==typeof t}:function(t){var e=nt("Symbol");return ot(e)&&it(e.prototype,ct(t))},at=String,ft=function(t){try{return at(t)}catch(e){return"Object"}},st=F,lt=ft,pt=TypeError,vt=function(t){if(st(t))return t;throw pt(lt(t)+" is not a function")},ht=vt,dt=function(t,e){var r=t[e];return null==r?void 0:ht(r)},yt=f,gt=F,mt=D,bt=TypeError,St={exports:{}},wt=r,Et=Object.defineProperty,Ot=function(t,e){try{Et(wt,t,{value:e,configurable:!0,writable:!0})}catch(r){wt[t]=e}return e},xt=Ot,jt="__core-js_shared__",Tt=r[jt]||xt(jt,{}),Pt=Tt;(St.exports=function(t,e){return Pt[t]||(Pt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.8",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE",source:"https://github.com/zloirock/core-js"});var Rt=k,It=Object,Lt=function(t){return It(Rt(t))},Ct=Lt,At=E({}.hasOwnProperty),kt=Object.hasOwn||function(t,e){return At(Ct(t),e)},Mt=E,_t=0,Nt=Math.random(),Ft=Mt(1..toString),Ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ft(++_t+Nt,36)},Dt=r,Gt=St.exports,$t=kt,Wt=Ut,Bt=et,zt=rt,Vt=Gt("wks"),Jt=Dt.Symbol,qt=Jt&&Jt.for,Ht=zt?Jt:Jt&&Jt.withoutSetter||Wt,Kt=function(t){if(!$t(Vt,t)||!Bt&&"string"!=typeof Vt[t]){var e="Symbol."+t;Bt&&$t(Jt,t)?Vt[t]=Jt[t]:Vt[t]=zt&&qt?qt(e):Ht(e)}return Vt[t]},Yt=f,Xt=D,Qt=ut,Zt=dt,te=function(t,e){var r,n;if("string"===e&&gt(r=t.toString)&&!mt(n=yt(r,t)))return n;if(gt(r=t.valueOf)&&!mt(n=yt(r,t)))return n;if("string"!==e&&gt(r=t.toString)&&!mt(n=yt(r,t)))return n;throw bt("Can't convert object to primitive value")},ee=TypeError,re=Kt("toPrimitive"),ne=function(t,e){if(!Xt(t)||Qt(t))return t;var r,n=Zt(t,re);if(n){if(void 0===e&&(e="default"),r=Yt(n,t,e),!Xt(r)||Qt(r))return r;throw ee("Can't convert object to primitive value")}return void 0===e&&(e="number"),te(t,e)},oe=ut,ie=function(t){var e=ne(t,"string");return oe(e)?e:e+""},ce=D,ue=r.document,ae=ce(ue)&&ce(ue.createElement),fe=function(t){return ae?ue.createElement(t):{}},se=fe,le=!i&&!o((function(){return 7!=Object.defineProperty(se("div"),"a",{get:function(){return 7}}).a})),pe=i,ve=f,he=s,de=y,ye=N,ge=ie,me=kt,be=le,Se=Object.getOwnPropertyDescriptor;n.f=pe?Se:function(t,e){if(t=ye(t),e=ge(e),be)try{return Se(t,e)}catch(r){}if(me(t,e))return de(!ve(he.f,t,e),t[e])};var we={},Ee=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Oe=D,xe=String,je=TypeError,Te=function(t){if(Oe(t))return t;throw je(xe(t)+" is not an object")},Pe=i,Re=le,Ie=Ee,Le=Te,Ce=ie,Ae=TypeError,ke=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,_e="enumerable",Ne="configurable",Fe="writable";we.f=Pe?Ie?function(t,e,r){if(Le(t),e=Ce(e),Le(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Fe in r&&!r.writable){var n=Me(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:Ne in r?r.configurable:n.configurable,enumerable:_e in r?r.enumerable:n.enumerable,writable:!1})}return ke(t,e,r)}:ke:function(t,e,r){if(Le(t),e=Ce(e),Le(r),Re)try{return ke(t,e,r)}catch(n){}if("get"in r||"set"in r)throw Ae("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Ue=we,De=y,Ge=i?function(t,e,r){return Ue.f(t,e,De(1,r))}:function(t,e,r){return t[e]=r,t},$e={exports:{}},We=i,Be=kt,ze=Function.prototype,Ve=We&&Object.getOwnPropertyDescriptor,Je=Be(ze,"name"),qe={EXISTS:Je,PROPER:Je&&"something"===function(){}.name,CONFIGURABLE:Je&&(!We||We&&Ve(ze,"name").configurable)},He=F,Ke=Tt,Ye=E(Function.toString);He(Ke.inspectSource)||(Ke.inspectSource=function(t){return Ye(t)});var Xe,Qe,Ze,tr=Ke.inspectSource,er=F,rr=tr,nr=r.WeakMap,or=er(nr)&&/native code/.test(rr(nr)),ir=St.exports,cr=Ut,ur=ir("keys"),ar=function(t){return ur[t]||(ur[t]=cr(t))},fr={},sr=or,lr=r,pr=E,vr=D,hr=Ge,dr=kt,yr=Tt,gr=ar,mr=fr,br="Object already initialized",Sr=lr.TypeError,wr=lr.WeakMap;if(sr||yr.state){var Er=yr.state||(yr.state=new wr),Or=pr(Er.get),xr=pr(Er.has),jr=pr(Er.set);Xe=function(t,e){if(xr(Er,t))throw new Sr(br);return e.facade=t,jr(Er,t,e),e},Qe=function(t){return Or(Er,t)||{}},Ze=function(t){return xr(Er,t)}}else{var Tr=gr("state");mr[Tr]=!0,Xe=function(t,e){if(dr(t,Tr))throw new Sr(br);return e.facade=t,hr(t,Tr,e),e},Qe=function(t){return dr(t,Tr)?t[Tr]:{}},Ze=function(t){return dr(t,Tr)}}var Pr={set:Xe,get:Qe,has:Ze,enforce:function(t){return Ze(t)?Qe(t):Xe(t,{})},getterFor:function(t){return function(e){var r;if(!vr(e)||(r=Qe(e)).type!==t)throw Sr("Incompatible receiver, "+t+" required");return r}}},Rr=o,Ir=F,Lr=kt,Cr=i,Ar=qe.CONFIGURABLE,kr=tr,Mr=Pr.enforce,_r=Pr.get,Nr=Object.defineProperty,Fr=Cr&&!Rr((function(){return 8!==Nr((function(){}),"length",{value:8}).length})),Ur=String(String).split("String"),Dr=$e.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Lr(t,"name")||Ar&&t.name!==e)&&Nr(t,"name",{value:e,configurable:!0}),Fr&&r&&Lr(r,"arity")&&t.length!==r.arity&&Nr(t,"length",{value:r.arity});try{r&&Lr(r,"constructor")&&r.constructor?Cr&&Nr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=Mr(t);return Lr(n,"source")||(n.source=Ur.join("string"==typeof e?e:"")),t};Function.prototype.toString=Dr((function(){return Ir(this)&&_r(this).source||kr(this)}),"toString");var Gr=F,$r=Ge,Wr=$e.exports,Br=Ot,zr=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;return Gr(r)&&Wr(r,i,n),n.global?o?t[e]=r:Br(e,r):(n.unsafe?t[e]&&(o=!0):delete t[e],o?t[e]=r:$r(t,e,r)),t},Vr={},Jr=Math.ceil,qr=Math.floor,Hr=Math.trunc||function(t){var e=+t;return(e>0?qr:Jr)(e)},Kr=function(t){var e=+t;return e!=e||0===e?0:Hr(e)},Yr=Kr,Xr=Math.max,Qr=Math.min,Zr=Kr,tn=Math.min,en=function(t){return t>0?tn(Zr(t),9007199254740991):0},rn=en,nn=function(t){return rn(t.length)},on=N,cn=function(t,e){var r=Yr(t);return r<0?Xr(r+e,0):Qr(r,e)},un=nn,an=function(t){return function(e,r,n){var o,i=on(e),c=un(i),u=cn(n,c);if(t&&r!=r){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},fn={includes:an(!0),indexOf:an(!1)},sn=kt,ln=N,pn=fn.indexOf,vn=fr,hn=E([].push),dn=function(t,e){var r,n=ln(t),o=0,i=[];for(r in n)!sn(vn,r)&&sn(n,r)&&hn(i,r);for(;e.length>o;)sn(n,r=e[o++])&&(~pn(i,r)||hn(i,r));return i},yn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gn=dn,mn=yn.concat("length","prototype");Vr.f=Object.getOwnPropertyNames||function(t){return gn(t,mn)};var bn={};bn.f=Object.getOwnPropertySymbols;var Sn=B,wn=Vr,En=bn,On=Te,xn=E([].concat),jn=Sn("Reflect","ownKeys")||function(t){var e=wn.f(On(t)),r=En.f;return r?xn(e,r(t)):e},Tn=kt,Pn=jn,Rn=n,In=we,Ln=function(t,e,r){for(var n=Pn(e),o=In.f,i=Rn.f,c=0;c<n.length;c++){var u=n[c];Tn(t,u)||r&&Tn(r,u)||o(t,u,i(e,u))}},Cn=o,An=F,kn=/#|\.prototype\./,Mn=function(t,e){var r=Nn[_n(t)];return r==Un||r!=Fn&&(An(e)?Cn(e):!!e)},_n=Mn.normalize=function(t){return String(t).replace(kn,".").toLowerCase()},Nn=Mn.data={},Fn=Mn.NATIVE="N",Un=Mn.POLYFILL="P",Dn=Mn,Gn=r,$n=n.f,Wn=Ge,Bn=zr,zn=Ot,Vn=Ln,Jn=Dn,qn=function(t,e){var r,n,o,i,c,u=t.target,a=t.global,f=t.stat;if(r=a?Gn:f?Gn[u]||zn(u,{}):(Gn[u]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(c=$n(r,n))&&c.value:r[n],!Jn(a?n:u+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Vn(i,o)}(t.sham||o&&o.sham)&&Wn(i,"sham",!0),Bn(r,n,i,t)}},Hn="process"==T(r.process),Kn=F,Yn=String,Xn=TypeError,Qn=E,Zn=Te,to=function(t){if("object"==typeof t||Kn(t))return t;throw Xn("Can't set "+Yn(t)+" as a prototype")},eo=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Qn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(n){}return function(r,n){return Zn(r),to(n),e?t(r,n):r.__proto__=n,r}}():void 0),ro=we.f,no=kt,oo=Kt("toStringTag"),io=function(t,e,r){t&&!r&&(t=t.prototype),t&&!no(t,oo)&&ro(t,oo,{configurable:!0,value:e})},co=B,uo=we,ao=i,fo=Kt("species"),so=z,lo=TypeError,po={};po[Kt("toStringTag")]="z";var vo="[object z]"===String(po),ho=F,yo=T,go=Kt("toStringTag"),mo=Object,bo="Arguments"==yo(function(){return arguments}()),So=vo?yo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=mo(t),go))?r:bo?yo(e):"Object"==(n=yo(e))&&ho(e.callee)?"Arguments":n},wo=E,Eo=o,Oo=F,xo=So,jo=tr,To=function(){},Po=[],Ro=B("Reflect","construct"),Io=/^\s*(?:class|function)\b/,Lo=wo(Io.exec),Co=!Io.exec(To),Ao=function(t){if(!Oo(t))return!1;try{return Ro(To,Po,t),!0}catch(e){return!1}},ko=function(t){if(!Oo(t))return!1;switch(xo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Co||!!Lo(Io,jo(t))}catch(e){return!0}};ko.sham=!0;var Mo,_o,No,Fo,Uo=!Ro||Eo((function(){var t;return Ao(Ao.call)||!Ao(Object)||!Ao((function(){t=!0}))||t}))?ko:Ao,Do=Uo,Go=ft,$o=TypeError,Wo=Te,Bo=function(t){if(Do(t))return t;throw $o(Go(t)+" is not a constructor")},zo=Kt("species"),Vo=c,Jo=Function.prototype,qo=Jo.apply,Ho=Jo.call,Ko="object"==typeof Reflect&&Reflect.apply||(Vo?Ho.bind(qo):function(){return Ho.apply(qo,arguments)}),Yo=vt,Xo=c,Qo=E(E.bind),Zo=function(t,e){return Yo(t),void 0===e?t:Xo?Qo(t,e):function(){return t.apply(e,arguments)}},ti=B("document","documentElement"),ei=E([].slice),ri=TypeError,ni=/(?:ipad|iphone|ipod).*applewebkit/i.test(V),oi=r,ii=Ko,ci=Zo,ui=F,ai=kt,fi=o,si=ti,li=ei,pi=fe,vi=function(t,e){if(t<e)throw ri("Not enough arguments");return t},hi=ni,di=Hn,yi=oi.setImmediate,gi=oi.clearImmediate,mi=oi.process,bi=oi.Dispatch,Si=oi.Function,wi=oi.MessageChannel,Ei=oi.String,Oi=0,xi={},ji="onreadystatechange";try{Mo=oi.location}catch(qp){}var Ti=function(t){if(ai(xi,t)){var e=xi[t];delete xi[t],e()}},Pi=function(t){return function(){Ti(t)}},Ri=function(t){Ti(t.data)},Ii=function(t){oi.postMessage(Ei(t),Mo.protocol+"//"+Mo.host)};yi&&gi||(yi=function(t){vi(arguments.length,1);var e=ui(t)?t:Si(t),r=li(arguments,1);return xi[++Oi]=function(){ii(e,void 0,r)},_o(Oi),Oi},gi=function(t){delete xi[t]},di?_o=function(t){mi.nextTick(Pi(t))}:bi&&bi.now?_o=function(t){bi.now(Pi(t))}:wi&&!hi?(Fo=(No=new wi).port2,No.port1.onmessage=Ri,_o=ci(Fo.postMessage,Fo)):oi.addEventListener&&ui(oi.postMessage)&&!oi.importScripts&&Mo&&"file:"!==Mo.protocol&&!fi(Ii)?(_o=Ii,oi.addEventListener("message",Ri,!1)):_o=ji in pi("script")?function(t){si.appendChild(pi("script")).onreadystatechange=function(){si.removeChild(this),Ti(t)}}:function(t){setTimeout(Pi(t),0)});var Li,Ci,Ai,ki,Mi,_i,Ni,Fi,Ui={set:yi,clear:gi},Di=r,Gi=/ipad|iphone|ipod/i.test(V)&&void 0!==Di.Pebble,$i=/web0s(?!.*chrome)/i.test(V),Wi=r,Bi=Zo,zi=n.f,Vi=Ui.set,Ji=ni,qi=Gi,Hi=$i,Ki=Hn,Yi=Wi.MutationObserver||Wi.WebKitMutationObserver,Xi=Wi.document,Qi=Wi.process,Zi=Wi.Promise,tc=zi(Wi,"queueMicrotask"),ec=tc&&tc.value;ec||(Li=function(){var t,e;for(Ki&&(t=Qi.domain)&&t.exit();Ci;){e=Ci.fn,Ci=Ci.next;try{e()}catch(qp){throw Ci?ki():Ai=void 0,qp}}Ai=void 0,t&&t.enter()},Ji||Ki||Hi||!Yi||!Xi?!qi&&Zi&&Zi.resolve?((Ni=Zi.resolve(void 0)).constructor=Zi,Fi=Bi(Ni.then,Ni),ki=function(){Fi(Li)}):Ki?ki=function(){Qi.nextTick(Li)}:(Vi=Bi(Vi,Wi),ki=function(){Vi(Li)}):(Mi=!0,_i=Xi.createTextNode(""),new Yi(Li).observe(_i,{characterData:!0}),ki=function(){_i.data=Mi=!Mi}));var rc=ec||function(t){var e={fn:t,next:void 0};Ai&&(Ai.next=e),Ci||(Ci=e,ki()),Ai=e},nc=r,oc=function(t){try{return{error:!1,value:t()}}catch(qp){return{error:!0,value:qp}}},ic=function(){this.head=null,this.tail=null};ic.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var cc=ic,uc=r.Promise,ac="object"==typeof window&&"object"!=typeof Deno,fc=r,sc=uc,lc=F,pc=Dn,vc=tr,hc=Kt,dc=ac,yc=Q;sc&&sc.prototype;var gc=hc("species"),mc=!1,bc=lc(fc.PromiseRejectionEvent),Sc=pc("Promise",(function(){var t=vc(sc),e=t!==String(sc);if(!e&&66===yc)return!0;if(yc>=51&&/native code/.test(t))return!1;var r=new sc((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[gc]=n,!(mc=r.then((function(){}))instanceof n)||!e&&dc&&!bc})),wc={CONSTRUCTOR:Sc,REJECTION_EVENT:bc,SUBCLASSING:mc},Ec={},Oc=vt,xc=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Oc(e),this.reject=Oc(r)};Ec.f=function(t){return new xc(t)};var jc,Tc,Pc,Rc=qn,Ic=Hn,Lc=r,Cc=f,Ac=zr,kc=eo,Mc=io,_c=function(t){var e=co(t),r=uo.f;ao&&e&&!e[fo]&&r(e,fo,{configurable:!0,get:function(){return this}})},Nc=vt,Fc=F,Uc=D,Dc=function(t,e){if(so(e,t))return t;throw lo("Incorrect invocation")},Gc=function(t,e){var r,n=Wo(t).constructor;return void 0===n||null==(r=Wo(n)[zo])?e:Bo(r)},$c=Ui.set,Wc=rc,Bc=function(t,e){var r=nc.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},zc=oc,Vc=cc,Jc=Pr,qc=uc,Hc=Ec,Kc="Promise",Yc=wc.CONSTRUCTOR,Xc=wc.REJECTION_EVENT,Qc=wc.SUBCLASSING,Zc=Jc.getterFor(Kc),tu=Jc.set,eu=qc&&qc.prototype,ru=qc,nu=eu,ou=Lc.TypeError,iu=Lc.document,cu=Lc.process,uu=Hc.f,au=uu,fu=!!(iu&&iu.createEvent&&Lc.dispatchEvent),su="unhandledrejection",lu=function(t){var e;return!(!Uc(t)||!Fc(e=t.then))&&e},pu=function(t,e){var r,n,o,i=e.value,c=1==e.state,u=c?t.ok:t.fail,a=t.resolve,f=t.reject,s=t.domain;try{u?(c||(2===e.rejection&&gu(e),e.rejection=1),!0===u?r=i:(s&&s.enter(),r=u(i),s&&(s.exit(),o=!0)),r===t.promise?f(ou("Promise-chain cycle")):(n=lu(r))?Cc(n,r,a,f):a(r)):f(i)}catch(qp){s&&!o&&s.exit(),f(qp)}},vu=function(t,e){t.notified||(t.notified=!0,Wc((function(){for(var r,n=t.reactions;r=n.get();)pu(r,t);t.notified=!1,e&&!t.rejection&&du(t)})))},hu=function(t,e,r){var n,o;fu?((n=iu.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Lc.dispatchEvent(n)):n={promise:e,reason:r},!Xc&&(o=Lc["on"+t])?o(n):t===su&&Bc("Unhandled promise rejection",r)},du=function(t){Cc($c,Lc,(function(){var e,r=t.facade,n=t.value;if(yu(t)&&(e=zc((function(){Ic?cu.emit("unhandledRejection",n,r):hu(su,r,n)})),t.rejection=Ic||yu(t)?2:1,e.error))throw e.value}))},yu=function(t){return 1!==t.rejection&&!t.parent},gu=function(t){Cc($c,Lc,(function(){var e=t.facade;Ic?cu.emit("rejectionHandled",e):hu("rejectionhandled",e,t.value)}))},mu=function(t,e,r){return function(n){t(e,n,r)}},bu=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,vu(t,!0))},Su=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw ou("Promise can't be resolved itself");var n=lu(e);n?Wc((function(){var r={done:!1};try{Cc(n,e,mu(Su,r,t),mu(bu,r,t))}catch(qp){bu(r,qp,t)}})):(t.value=e,t.state=1,vu(t,!1))}catch(qp){bu({done:!1},qp,t)}}};if(Yc&&(nu=(ru=function(t){Dc(this,nu),Nc(t),Cc(jc,this);var e=Zc(this);try{t(mu(Su,e),mu(bu,e))}catch(qp){bu(e,qp)}}).prototype,(jc=function(t){tu(this,{type:Kc,done:!1,notified:!1,parent:!1,reactions:new Vc,rejection:!1,state:0,value:void 0})}).prototype=Ac(nu,"then",(function(t,e){var r=Zc(this),n=uu(Gc(this,ru));return r.parent=!0,n.ok=!Fc(t)||t,n.fail=Fc(e)&&e,n.domain=Ic?cu.domain:void 0,0==r.state?r.reactions.add(n):Wc((function(){pu(n,r)})),n.promise})),Tc=function(){var t=new jc,e=Zc(t);this.promise=t,this.resolve=mu(Su,e),this.reject=mu(bu,e)},Hc.f=uu=function(t){return t===ru||undefined===t?new Tc(t):au(t)},Fc(qc)&&eu!==Object.prototype)){Pc=eu.then,Qc||Ac(eu,"then",(function(t,e){var r=this;return new ru((function(t,e){Cc(Pc,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete eu.constructor}catch(qp){}kc&&kc(eu,nu)}Rc({global:!0,constructor:!0,wrap:!0,forced:Yc},{Promise:ru}),Mc(ru,Kc,!1),_c(Kc);var wu={},Eu=wu,Ou=Kt("iterator"),xu=Array.prototype,ju=So,Tu=dt,Pu=wu,Ru=Kt("iterator"),Iu=function(t){if(null!=t)return Tu(t,Ru)||Tu(t,"@@iterator")||Pu[ju(t)]},Lu=f,Cu=vt,Au=Te,ku=ft,Mu=Iu,_u=TypeError,Nu=f,Fu=Te,Uu=dt,Du=Zo,Gu=f,$u=Te,Wu=ft,Bu=function(t){return void 0!==t&&(Eu.Array===t||xu[Ou]===t)},zu=nn,Vu=z,Ju=function(t,e){var r=arguments.length<2?Mu(t):e;if(Cu(r))return Au(Lu(r,t));throw _u(ku(t)+" is not iterable")},qu=Iu,Hu=function(t,e,r){var n,o;Fu(t);try{if(!(n=Uu(t,"return"))){if("throw"===e)throw r;return r}n=Nu(n,t)}catch(qp){o=!0,n=qp}if("throw"===e)throw r;if(o)throw n;return Fu(n),r},Ku=TypeError,Yu=function(t,e){this.stopped=t,this.result=e},Xu=Yu.prototype,Qu=function(t,e,r){var n,o,i,c,u,a,f,s=r&&r.that,l=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=Du(e,s),d=function(t){return n&&Hu(n,"normal",t),new Yu(!0,t)},y=function(t){return l?($u(t),v?h(t[0],t[1],d):h(t[0],t[1])):v?h(t,d):h(t)};if(p)n=t;else{if(!(o=qu(t)))throw Ku(Wu(t)+" is not iterable");if(Bu(o)){for(i=0,c=zu(t);c>i;i++)if((u=y(t[i]))&&Vu(Xu,u))return u;return new Yu(!1)}n=Ju(t,o)}for(a=n.next;!(f=Gu(a,n)).done;){try{u=y(f.value)}catch(qp){Hu(n,"throw",qp)}if("object"==typeof u&&u&&Vu(Xu,u))return u}return new Yu(!1)},Zu=Kt("iterator"),ta=!1;try{var ea=0,ra={next:function(){return{done:!!ea++}},return:function(){ta=!0}};ra[Zu]=function(){return this},Array.from(ra,(function(){throw 2}))}catch(qp){}var na=uc,oa=function(t,e){if(!e&&!ta)return!1;var r=!1;try{var n={};n[Zu]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(qp){}return r},ia=wc.CONSTRUCTOR||!oa((function(t){na.all(t).then(void 0,(function(){}))})),ca=f,ua=vt,aa=Ec,fa=oc,sa=Qu;qn({target:"Promise",stat:!0,forced:ia},{all:function(t){var e=this,r=aa.f(e),n=r.resolve,o=r.reject,i=fa((function(){var r=ua(e.resolve),i=[],c=0,u=1;sa(t,(function(t){var a=c++,f=!1;u++,ca(r,e,t).then((function(t){f||(f=!0,i[a]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise}});var la=qn,pa=wc.CONSTRUCTOR,va=uc,ha=B,da=F,ya=zr,ga=va&&va.prototype;if(la({target:"Promise",proto:!0,forced:pa,real:!0},{catch:function(t){return this.then(void 0,t)}}),da(va)){var ma=ha("Promise").prototype.catch;ga.catch!==ma&&ya(ga,"catch",ma,{unsafe:!0})}var ba=f,Sa=vt,wa=Ec,Ea=oc,Oa=Qu;qn({target:"Promise",stat:!0,forced:ia},{race:function(t){var e=this,r=wa.f(e),n=r.reject,o=Ea((function(){var o=Sa(e.resolve);Oa(t,(function(t){ba(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var xa=f,ja=Ec;qn({target:"Promise",stat:!0,forced:wc.CONSTRUCTOR},{reject:function(t){var e=ja.f(this);return xa(e.reject,void 0,t),e.promise}});var Ta=Te,Pa=D,Ra=Ec,Ia=qn,La=wc.CONSTRUCTOR,Ca=function(t,e){if(Ta(t),Pa(e)&&e.constructor===t)return e;var r=Ra.f(t);return(0,r.resolve)(e),r.promise};B("Promise"),Ia({target:"Promise",stat:!0,forced:La},{resolve:function(t){return Ca(this,t)}});var Aa={},ka=dn,Ma=yn,_a=Object.keys||function(t){return ka(t,Ma)},Na=i,Fa=Ee,Ua=we,Da=Te,Ga=N,$a=_a;Aa.f=Na&&!Fa?Object.defineProperties:function(t,e){Da(t);for(var r,n=Ga(e),o=$a(e),i=o.length,c=0;i>c;)Ua.f(t,r=o[c++],n[r]);return t};var Wa,Ba=Te,za=Aa,Va=yn,Ja=fr,qa=ti,Ha=fe,Ka=ar("IE_PROTO"),Ya=function(){},Xa=function(t){return"<script>"+t+"</"+"script>"},Qa=function(t){t.write(Xa("")),t.close();var e=t.parentWindow.Object;return t=null,e},Za=function(){try{Wa=new ActiveXObject("htmlfile")}catch(qp){}var t,e;Za="undefined"!=typeof document?document.domain&&Wa?Qa(Wa):((e=Ha("iframe")).style.display="none",qa.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Xa("document.F=Object")),t.close(),t.F):Qa(Wa);for(var r=Va.length;r--;)delete Za.prototype[Va[r]];return Za()};Ja[Ka]=!0;var tf=Object.create||function(t,e){var r;return null!==t?(Ya.prototype=Ba(t),r=new Ya,Ya.prototype=null,r[Ka]=t):r=Za(),void 0===e?r:za.f(r,e)},ef=Kt,rf=tf,nf=we.f,of=ef("unscopables"),cf=Array.prototype;null==cf[of]&&nf(cf,of,{configurable:!0,value:rf(null)});var uf,af,ff,sf=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),lf=kt,pf=F,vf=Lt,hf=sf,df=ar("IE_PROTO"),yf=Object,gf=yf.prototype,mf=hf?yf.getPrototypeOf:function(t){var e=vf(t);if(lf(e,df))return e[df];var r=e.constructor;return pf(r)&&e instanceof r?r.prototype:e instanceof yf?gf:null},bf=o,Sf=F,wf=mf,Ef=zr,Of=Kt("iterator"),xf=!1;[].keys&&("next"in(ff=[].keys())?(af=wf(wf(ff)))!==Object.prototype&&(uf=af):xf=!0);var jf=null==uf||bf((function(){var t={};return uf[Of].call(t)!==t}));jf&&(uf={}),Sf(uf[Of])||Ef(uf,Of,(function(){return this}));var Tf={IteratorPrototype:uf,BUGGY_SAFARI_ITERATORS:xf},Pf=Tf.IteratorPrototype,Rf=tf,If=y,Lf=io,Cf=wu,Af=function(){return this},kf=qn,Mf=f,_f=F,Nf=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Rf(Pf,{next:If(+!n,r)}),Lf(t,o,!1),Cf[o]=Af,t},Ff=mf,Uf=eo,Df=io,Gf=Ge,$f=zr,Wf=wu,Bf=qe.PROPER,zf=qe.CONFIGURABLE,Vf=Tf.IteratorPrototype,Jf=Tf.BUGGY_SAFARI_ITERATORS,qf=Kt("iterator"),Hf="keys",Kf="values",Yf="entries",Xf=function(){return this},Qf=N,Zf=function(t){cf[of][t]=!0},ts=wu,es=Pr,rs=we.f,ns=function(t,e,r,n,o,i,c){Nf(r,e,n);var u,a,f,s=function(t){if(t===o&&d)return d;if(!Jf&&t in v)return v[t];switch(t){case Hf:case Kf:case Yf:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,v=t.prototype,h=v[qf]||v["@@iterator"]||o&&v[o],d=!Jf&&h||s(o),y="Array"==e&&v.entries||h;if(y&&(u=Ff(y.call(new t)))!==Object.prototype&&u.next&&(Ff(u)!==Vf&&(Uf?Uf(u,Vf):_f(u[qf])||$f(u,qf,Xf)),Df(u,l,!0)),Bf&&o==Kf&&h&&h.name!==Kf&&(zf?Gf(v,"name",Kf):(p=!0,d=function(){return Mf(h,this)})),o)if(a={values:s(Kf),keys:i?d:s(Hf),entries:s(Yf)},c)for(f in a)(Jf||p||!(f in v))&&$f(v,f,a[f]);else kf({target:e,proto:!0,forced:Jf||p},a);return v[qf]!==d&&$f(v,qf,d,{name:o}),Wf[e]=d,a},os=i,is="Array Iterator",cs=es.set,us=es.getterFor(is),as=ns(Array,"Array",(function(t,e){cs(this,{type:is,target:Qf(t),index:0,kind:e})}),(function(){var t=us(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),fs=ts.Arguments=ts.Array;if(Zf("keys"),Zf("values"),Zf("entries"),os&&"values"!==fs.name)try{rs(fs,"name",{value:"values"})}catch(qp){}var ss=fe("span").classList,ls=ss&&ss.constructor&&ss.constructor.prototype,ps=ls===Object.prototype?void 0:ls,vs=r,hs={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ds=ps,ys=as,gs=Ge,ms=Kt,bs=ms("iterator"),Ss=ms("toStringTag"),ws=ys.values,Es=function(t,e){if(t){if(t[bs]!==ws)try{gs(t,bs,ws)}catch(qp){t[bs]=ws}if(t[Ss]||gs(t,Ss,e),hs[e])for(var r in ys)if(t[r]!==ys[r])try{gs(t,r,ys[r])}catch(qp){t[r]=ys[r]}}};for(var Os in hs)Es(vs[Os]&&vs[Os].prototype,Os);Es(ds,"DOMTokenList");var xs=we.f,js=F,Ts=D,Ps=eo,Rs=So,Is=String,Ls=function(t){if("Symbol"===Rs(t))throw TypeError("Cannot convert a Symbol value to a string");return Is(t)},Cs=Ls,As=D,ks=Ge,Ms=Error,_s=E("".replace),Ns=String(Ms("zxcasd").stack),Fs=/\n\s*at [^:]*:[^\n]*/,Us=Fs.test(Ns),Ds=y,Gs=!o((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Ds(1,7)),7!==t.stack)})),$s=B,Ws=kt,Bs=Ge,zs=z,Vs=eo,Js=Ln,qs=function(t,e,r){r in t||xs(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})},Hs=function(t,e,r){var n,o;return Ps&&js(n=e.constructor)&&n!==r&&Ts(o=n.prototype)&&o!==r.prototype&&Ps(t,o),t},Ks=function(t,e){return void 0===t?arguments.length<2?"":e:Cs(t)},Ys=function(t,e){As(e)&&"cause"in e&&ks(t,"cause",e.cause)},Xs=function(t,e){if(Us&&"string"==typeof t&&!Ms.prepareStackTrace)for(;e--;)t=_s(t,Fs,"");return t},Qs=Gs,Zs=i,tl=qn,el=Ko,rl=function(t,e,r,n){var o="stackTraceLimit",i=n?2:1,c=t.split("."),u=c[c.length-1],a=$s.apply(null,c);if(a){var f=a.prototype;if(Ws(f,"cause")&&delete f.cause,!r)return a;var s=$s("Error"),l=e((function(t,e){var r=Ks(n?e:t,void 0),o=n?new a(t):new a;return void 0!==r&&Bs(o,"message",r),Qs&&Bs(o,"stack",Xs(o.stack,2)),this&&zs(f,this)&&Hs(o,this,l),arguments.length>i&&Ys(o,arguments[i]),o}));l.prototype=f,"Error"!==u?Vs?Vs(l,s):Js(l,s,{name:!0}):Zs&&o in a&&(qs(l,a,o),qs(l,a,"prepareStackTrace")),Js(l,a);try{f.name!==u&&Bs(f,"name",u),f.constructor=l}catch(qp){}return l}},nl="WebAssembly",ol=r.WebAssembly,il=7!==Error("e",{cause:7}).cause,cl=function(t,e){var r={};r[t]=rl(t,e,il),tl({global:!0,constructor:!0,arity:1,forced:il},r)},ul=function(t,e){if(ol&&ol[t]){var r={};r[t]=rl("WebAssembly."+t,e,il),tl({target:nl,stat:!0,constructor:!0,arity:1,forced:il},r)}};cl("Error",(function(t){return function(e){return el(t,this,arguments)}})),cl("EvalError",(function(t){return function(e){return el(t,this,arguments)}})),cl("RangeError",(function(t){return function(e){return el(t,this,arguments)}})),cl("ReferenceError",(function(t){return function(e){return el(t,this,arguments)}})),cl("SyntaxError",(function(t){return function(e){return el(t,this,arguments)}})),cl("TypeError",(function(t){return function(e){return el(t,this,arguments)}})),cl("URIError",(function(t){return function(e){return el(t,this,arguments)}})),ul("CompileError",(function(t){return function(e){return el(t,this,arguments)}})),ul("LinkError",(function(t){return function(e){return el(t,this,arguments)}})),ul("RuntimeError",(function(t){return function(e){return el(t,this,arguments)}}));var al=r,fl=io;qn({global:!0},{Reflect:{}}),fl(al.Reflect,"Reflect",!0);var sl,ll,pl=Te,vl=o,hl=r.RegExp,dl=vl((function(){var t=hl("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),yl=dl||vl((function(){return!hl("a","y").sticky})),gl={BROKEN_CARET:dl||vl((function(){var t=hl("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:yl,UNSUPPORTED_Y:dl},ml=o,bl=r.RegExp,Sl=ml((function(){var t=bl(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),wl=o,El=r.RegExp,Ol=wl((function(){var t=El("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),xl=f,jl=E,Tl=Ls,Pl=function(){var t=pl(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Rl=gl,Il=St.exports,Ll=tf,Cl=Pr.get,Al=Sl,kl=Ol,Ml=Il("native-string-replace",String.prototype.replace),_l=RegExp.prototype.exec,Nl=_l,Fl=jl("".charAt),Ul=jl("".indexOf),Dl=jl("".replace),Gl=jl("".slice),$l=(ll=/b*/g,xl(_l,sl=/a/,"a"),xl(_l,ll,"a"),0!==sl.lastIndex||0!==ll.lastIndex),Wl=Rl.BROKEN_CARET,Bl=void 0!==/()??/.exec("")[1];($l||Bl||Wl||Al||kl)&&(Nl=function(t){var e,r,n,o,i,c,u,a=this,f=Cl(a),s=Tl(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,e=xl(Nl,l,s),a.lastIndex=l.lastIndex,e;var p=f.groups,v=Wl&&a.sticky,h=xl(Pl,a),d=a.source,y=0,g=s;if(v&&(h=Dl(h,"y",""),-1===Ul(h,"g")&&(h+="g"),g=Gl(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==Fl(s,a.lastIndex-1))&&(d="(?: "+d+")",g=" "+g,y++),r=new RegExp("^(?:"+d+")",h)),Bl&&(r=new RegExp("^"+d+"$(?!\\s)",h)),$l&&(n=a.lastIndex),o=xl(_l,v?r:a,g),v?o?(o.input=Gl(o.input,y),o[0]=Gl(o[0],y),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:$l&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),Bl&&o&&o.length>1&&xl(Ml,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=c=Ll(null),i=0;i<p.length;i++)c[(u=p[i])[0]]=o[u[1]];return o});var zl=Nl;qn({target:"RegExp",proto:!0,forced:/./.exec!==zl},{exec:zl});var Vl=E,Jl=zr,ql=zl,Hl=o,Kl=Kt,Yl=Ge,Xl=Kl("species"),Ql=RegExp.prototype,Zl=E,tp=Kr,ep=Ls,rp=k,np=Zl("".charAt),op=Zl("".charCodeAt),ip=Zl("".slice),cp=function(t){return function(e,r){var n,o,i=ep(rp(e)),c=tp(r),u=i.length;return c<0||c>=u?t?"":void 0:(n=op(i,c))<55296||n>56319||c+1===u||(o=op(i,c+1))<56320||o>57343?t?np(i,c):n:t?ip(i,c,c+2):o-56320+(n-55296<<10)+65536}},up={codeAt:cp(!1),charAt:cp(!0)}.charAt,ap=E,fp=Lt,sp=Math.floor,lp=ap("".charAt),pp=ap("".replace),vp=ap("".slice),hp=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,dp=/\$([$&'`]|\d{1,2})/g,yp=f,gp=Te,mp=F,bp=T,Sp=zl,wp=TypeError,Ep=Ko,Op=f,xp=E,jp=function(t,e,r,n){var o=Kl(t),i=!Hl((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!Hl((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Xl]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!c||r){var u=Vl(/./[o]),a=e(o,""[t],(function(t,e,r,n,o){var c=Vl(t),a=e.exec;return a===ql||a===Ql.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:c(r,e,n)}:{done:!1}}));Jl(String.prototype,t,a[0]),Jl(Ql,o,a[1])}n&&Yl(Ql[o],"sham",!0)},Tp=o,Pp=Te,Rp=F,Ip=Kr,Lp=en,Cp=Ls,Ap=k,kp=function(t,e,r){return e+(r?up(t,e).length:1)},Mp=dt,_p=function(t,e,r,n,o,i){var c=r+t.length,u=n.length,a=dp;return void 0!==o&&(o=fp(o),a=hp),pp(i,a,(function(i,a){var f;switch(lp(a,0)){case"$":return"$";case"&":return t;case"`":return vp(e,0,r);case"'":return vp(e,c);case"<":f=o[vp(a,1,-1)];break;default:var s=+a;if(0===s)return i;if(s>u){var l=sp(s/10);return 0===l?i:l<=u?void 0===n[l-1]?lp(a,1):n[l-1]+lp(a,1):i}f=n[s-1]}return void 0===f?"":f}))},Np=function(t,e){var r=t.exec;if(mp(r)){var n=yp(r,t,e);return null!==n&&gp(n),n}if("RegExp"===bp(t))return yp(Sp,t,e);throw wp("RegExp#exec called on incompatible receiver")},Fp=Kt("replace"),Up=Math.max,Dp=Math.min,Gp=xp([].concat),$p=xp([].push),Wp=xp("".indexOf),Bp=xp("".slice),zp="$0"==="a".replace(/./,"$0"),Vp=!!/./[Fp]&&""===/./[Fp]("a","$0");jp("replace",(function(t,e,r){var n=Vp?"$":"$0";return[function(t,r){var n=Ap(this),o=null==t?void 0:Mp(t,Fp);return o?Op(o,t,n,r):Op(e,Cp(n),t,r)},function(t,o){var i=Pp(this),c=Cp(t);if("string"==typeof o&&-1===Wp(o,n)&&-1===Wp(o,"$<")){var u=r(e,i,c,o);if(u.done)return u.value}var a=Rp(o);a||(o=Cp(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var p=Np(i,c);if(null===p)break;if($p(l,p),!f)break;""===Cp(p[0])&&(i.lastIndex=kp(c,Lp(i.lastIndex),s))}for(var v,h="",d=0,y=0;y<l.length;y++){for(var g=Cp((p=l[y])[0]),m=Up(Dp(Ip(p.index),c.length),0),b=[],S=1;S<p.length;S++)$p(b,void 0===(v=p[S])?v:String(v));var w=p.groups;if(a){var E=Gp([g],b,m,c);void 0!==w&&$p(E,w);var O=Cp(Ep(o,void 0,E))}else O=_p(g,c,m,b,w,o);m>=d&&(h+=Bp(c,d,m)+O,d=m+g.length)}return h+Bp(c,d)}]}),!!Tp((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!zp||Vp);var Jp=f;qn({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Jp(URL.prototype.toString,this)}}),function(){function e(t,e){return(e||"")+" (SystemJS https://git.io/JvFET#"+t+")"}function r(t,e){if(-1!==t.indexOf("\\")&&(t=t.replace(/\\/g,"/")),"/"===t[0]&&"/"===t[1])return e.slice(0,e.indexOf(":")+1)+t;if("."===t[0]&&("/"===t[1]||"."===t[1]&&("/"===t[2]||2===t.length&&(t+="/"))||1===t.length&&(t+="/"))||"/"===t[0]){var r,n=e.slice(0,e.indexOf(":")+1);if(r="/"===e[n.length+1]?"file:"!==n?(r=e.slice(n.length+2)).slice(r.indexOf("/")+1):e.slice(8):e.slice(n.length+("/"===e[n.length])),"/"===t[0])return e.slice(0,e.length-r.length-1)+t;for(var o=r.slice(0,r.lastIndexOf("/")+1)+t,i=[],c=-1,u=0;o.length>u;u++)-1!==c?"/"===o[u]&&(i.push(o.slice(c,u+1)),c=-1):"."===o[u]?"."!==o[u+1]||"/"!==o[u+2]&&u+2!==o.length?"/"===o[u+1]||u+1===o.length?u+=1:c=u:(i.pop(),u+=2):c=u;return-1!==c&&i.push(o.slice(c)),e.slice(0,e.length-r.length)+i.join("")}}function n(t,e){return r(t,e)||(-1!==t.indexOf(":")?t:r("./"+t,e))}function o(t,e,n,o,i){for(var c in t){var f=r(c,n)||c,s=t[c];if("string"==typeof s){var l=a(o,r(s,n)||s,i);l?e[f]=l:u("W1",c,s)}}}function i(t,e){if(e[t])return t;var r=t.length;do{var n=t.slice(0,r+1);if(n in e)return n}while(-1!==(r=t.lastIndexOf("/",r-1)))}function c(t,e){var r=i(t,e);if(r){var n=e[r];if(null===n)return;if(r.length>=t.length||"/"===n[n.length-1])return n+t.slice(r.length);u("W2",r,n)}}function u(t,r,n){console.warn(e(t,[n,r].join(", ")))}function a(t,e,r){for(var n=t.scopes,o=r&&i(r,n);o;){var u=c(e,n[o]);if(u)return u;o=i(o.slice(0,o.lastIndexOf("/")),n)}return c(e,t.imports)||-1!==e.indexOf(":")&&e}function f(){this[w]={}}function s(t,r,n){var o=t[w][r];if(o)return o;var i=[],c=Object.create(null);S&&Object.defineProperty(c,S,{value:"Module"});var u=Promise.resolve().then((function(){return t.instantiate(r,n)})).then((function(n){if(!n)throw Error(e(2,r));var u=n[1]((function(t,e){o.h=!0;var r=!1;if("string"==typeof t)t in c&&c[t]===e||(c[t]=e,r=!0);else{for(var n in t)e=t[n],n in c&&c[n]===e||(c[n]=e,r=!0);t&&t.__esModule&&(c.__esModule=t.__esModule)}if(r)for(var u=0;i.length>u;u++){var a=i[u];a&&a(c)}return e}),2===n[1].length?{import:function(e){return t.import(e,r)},meta:t.createContext(r)}:void 0);return o.e=u.execute||function(){},[n[0],u.setters||[]]}),(function(t){throw o.e=null,o.er=t,t})),a=u.then((function(e){return Promise.all(e[0].map((function(n,o){var i=e[1][o];return Promise.resolve(t.resolve(n,r)).then((function(e){var n=s(t,e,r);return Promise.resolve(n.I).then((function(){return i&&(n.i.push(i),!n.h&&n.I||i(n.n)),n}))}))}))).then((function(t){o.d=t}))}));return o=t[w][r]={id:r,i:i,n:c,I:u,L:a,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0,p:void 0}}function l(){[].forEach.call(document.querySelectorAll("script"),(function(t){if(!t.sp)if("systemjs-module"===t.type){if(t.sp=!0,!t.src)return;System.import("import:"===t.src.slice(0,7)?t.src.slice(7):n(t.src,p)).catch((function(e){if(e.message.indexOf("https://git.io/JvFET#3")>-1){var r=document.createEvent("Event");r.initEvent("error",!1,!1),t.dispatchEvent(r)}return Promise.reject(e)}))}else if("systemjs-importmap"===t.type){t.sp=!0;var r=t.src?(System.fetch||fetch)(t.src,{integrity:t.integrity,passThrough:!0}).then((function(t){if(!t.ok)throw Error(t.status);return t.text()})).catch((function(r){return r.message=e("W4",t.src)+"\n"+r.message,console.warn(r),"function"==typeof t.onerror&&t.onerror(),"{}"})):t.innerHTML;T=T.then((function(){return r})).then((function(r){!function(t,r,i){var c={};try{c=JSON.parse(r)}catch(a){console.warn(Error(e("W5")))}!function(t,e,r){var i;for(i in t.imports&&o(t.imports,r.imports,e,r,null),t.scopes||{}){var c=n(i,e);o(t.scopes[i],r.scopes[c]||(r.scopes[c]={}),e,r,c)}for(i in t.depcache||{})r.depcache[n(i,e)]=t.depcache[i];for(i in t.integrity||{})r.integrity[n(i,e)]=t.integrity[i]}(c,i,t)}(P,r,t.src||p)}))}}))}var p,v="undefined"!=typeof Symbol,h="undefined"!=typeof self,d="undefined"!=typeof document,y=h?self:t;if(d){var g=document.querySelector("base[href]");g&&(p=g.href)}if(!p&&"undefined"!=typeof location){var m=(p=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==m&&(p=p.slice(0,m+1))}var b,S=v&&Symbol.toStringTag,w=v?Symbol():"@",E=f.prototype;E.import=function(t,e){var r=this;return Promise.resolve(r.prepareImport()).then((function(){return r.resolve(t,e)})).then((function(t){var e=s(r,t);return e.C||function(t,e){return e.C=function t(e,r,n,o){if(!o[r.id])return o[r.id]=!0,Promise.resolve(r.L).then((function(){return r.p&&null!==r.p.e||(r.p=n),Promise.all(r.d.map((function(r){return t(e,r,n,o)})))})).catch((function(t){if(r.er)throw t;throw r.e=null,t}))}(t,e,e,{}).then((function(){return function t(e,r,n){function o(){try{var t=r.e.call(O);if(t)return t=t.then((function(){r.C=r.n,r.E=null}),(function(t){throw r.er=t,r.E=null,t})),r.E=t;r.C=r.n,r.L=r.I=void 0}catch(e){throw r.er=e,e}finally{r.e=null}}if(!n[r.id]){if(n[r.id]=!0,!r.e){if(r.er)throw r.er;return r.E?r.E:void 0}var i;return r.d.forEach((function(o){try{var c=t(e,o,n);c&&(i=i||[]).push(c)}catch(a){throw r.e=null,r.er=a,a}})),i?Promise.all(i).then(o):o()}}(t,e,{})})).then((function(){return e.n}))}(r,e)}))},E.createContext=function(t){var e=this;return{url:t,resolve:function(r,n){return Promise.resolve(e.resolve(r,n||t))}}},E.register=function(t,e){b=[t,e]},E.getRegister=function(){var t=b;return b=void 0,t};var O=Object.freeze(Object.create(null));y.System=new f;var x,j,T=Promise.resolve(),P={imports:{},scopes:{},depcache:{},integrity:{}},R=d;if(E.prepareImport=function(t){return(R||t)&&(l(),R=!1),T},d&&(l(),window.addEventListener("DOMContentLoaded",l)),d){window.addEventListener("error",(function(t){L=t.filename,C=t.error}));var I=location.origin}E.createScript=function(t){var e=document.createElement("script");e.async=!0,t.indexOf(I+"/")&&(e.crossOrigin="anonymous");var r=P.integrity[t];return r&&(e.integrity=r),e.src=t,e};var L,C,A={},k=E.register;E.register=function(t,e){if(d&&"loading"===document.readyState&&"string"!=typeof t){var r=document.querySelectorAll("script[src]"),n=r[r.length-1];if(n){x=t;var o=this;j=setTimeout((function(){A[n.src]=[t,e],o.import(n.src)}))}}else x=void 0;return k.call(this,t,e)},E.instantiate=function(t,r){var n=A[t];if(n)return delete A[t],n;var o=this;return Promise.resolve(E.createScript(t)).then((function(n){return new Promise((function(i,c){n.addEventListener("error",(function(){c(Error(e(3,[t,r].join(", "))))})),n.addEventListener("load",(function(){if(document.head.removeChild(n),L===t)c(C);else{var e=o.getRegister(t);e&&e[0]===x&&clearTimeout(j),i(e)}})),document.head.appendChild(n)}))}))},E.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(E.fetch=fetch);var M=E.instantiate,_=/^(text|application)\/(x-)?javascript(;|$)/;E.instantiate=function(t,r){var n=this;return this.shouldFetch(t)?this.fetch(t,{credentials:"same-origin",integrity:P.integrity[t]}).then((function(o){if(!o.ok)throw Error(e(7,[o.status,o.statusText,t,r].join(", ")));var i=o.headers.get("content-type");if(!i||!_.test(i))throw Error(e(4,i));return o.text().then((function(e){return 0>e.indexOf("//# sourceURL=")&&(e+="\n//# sourceURL="+t),(0,eval)(e),n.getRegister(t)}))})):M.apply(this,arguments)},E.resolve=function(t,n){return a(P,r(t,n=n||p)||t,n)||function(t,r){throw Error(e(8,[t,r].join(", ")))}(t,n)};var N=E.instantiate;E.instantiate=function(t,e){var r=P.depcache[t];if(r)for(var n=0;r.length>n;n++)s(this,this.resolve(r[n],t),t);return N.call(this,t,e)},h&&"function"==typeof importScripts&&(E.instantiate=function(t){var e=this;return Promise.resolve().then((function(){return importScripts(t),e.getRegister(t)}))})}()}();