@aws-amplify/ui-react 1.2.26-unstable.2 → 2.0.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.
Files changed (164) hide show
  1. package/dist/esm/index.css +1 -0
  2. package/dist/esm/index.css.map +7 -0
  3. package/dist/esm/index.js +1 -0
  4. package/dist/esm/index.js.map +7 -0
  5. package/dist/esm/legacy.js +1 -0
  6. package/dist/esm/legacy.js.map +7 -0
  7. package/dist/index.css +1 -0
  8. package/dist/index.css.map +7 -0
  9. package/dist/index.d.ts +7533 -0
  10. package/dist/index.js +1 -0
  11. package/dist/index.js.map +7 -0
  12. package/dist/legacy.d.ts +1 -0
  13. package/dist/legacy.js +1 -0
  14. package/dist/legacy.js.map +7 -0
  15. package/dist/primitives.json +22168 -0
  16. package/legacy/package.json +7 -0
  17. package/package.json +82 -40
  18. package/CHANGELOG.md +0 -339
  19. package/README.md +0 -1
  20. package/build.js +0 -5
  21. package/dist/0.js +0 -269
  22. package/dist/0.js.map +0 -1
  23. package/dist/1.js +0 -2111
  24. package/dist/1.js.map +0 -1
  25. package/dist/10.js +0 -707
  26. package/dist/10.js.map +0 -1
  27. package/dist/11.js +0 -45
  28. package/dist/11.js.map +0 -1
  29. package/dist/12.js +0 -1152
  30. package/dist/12.js.map +0 -1
  31. package/dist/13.js +0 -114
  32. package/dist/13.js.map +0 -1
  33. package/dist/14.js +0 -1194
  34. package/dist/14.js.map +0 -1
  35. package/dist/15.js +0 -61
  36. package/dist/15.js.map +0 -1
  37. package/dist/16.js +0 -37
  38. package/dist/16.js.map +0 -1
  39. package/dist/17.js +0 -127
  40. package/dist/17.js.map +0 -1
  41. package/dist/18.js +0 -90
  42. package/dist/18.js.map +0 -1
  43. package/dist/19.js +0 -267
  44. package/dist/19.js.map +0 -1
  45. package/dist/2.js +0 -766
  46. package/dist/2.js.map +0 -1
  47. package/dist/20.js +0 -74
  48. package/dist/20.js.map +0 -1
  49. package/dist/21.js +0 -50
  50. package/dist/21.js.map +0 -1
  51. package/dist/22.js +0 -57
  52. package/dist/22.js.map +0 -1
  53. package/dist/23.js +0 -50
  54. package/dist/23.js.map +0 -1
  55. package/dist/24.js +0 -271
  56. package/dist/24.js.map +0 -1
  57. package/dist/25.js +0 -102
  58. package/dist/25.js.map +0 -1
  59. package/dist/26.js +0 -64
  60. package/dist/26.js.map +0 -1
  61. package/dist/27.js +0 -379
  62. package/dist/27.js.map +0 -1
  63. package/dist/28.js +0 -47
  64. package/dist/28.js.map +0 -1
  65. package/dist/29.js +0 -46
  66. package/dist/29.js.map +0 -1
  67. package/dist/3.js +0 -2787
  68. package/dist/3.js.map +0 -1
  69. package/dist/30.js +0 -503
  70. package/dist/30.js.map +0 -1
  71. package/dist/31.js +0 -2
  72. package/dist/31.js.map +0 -1
  73. package/dist/32.js +0 -2
  74. package/dist/32.js.map +0 -1
  75. package/dist/33.js +0 -13
  76. package/dist/33.js.map +0 -1
  77. package/dist/4.js +0 -4126
  78. package/dist/4.js.map +0 -1
  79. package/dist/5.js +0 -817
  80. package/dist/5.js.map +0 -1
  81. package/dist/6.js +0 -619
  82. package/dist/6.js.map +0 -1
  83. package/dist/7.js +0 -662
  84. package/dist/7.js.map +0 -1
  85. package/dist/8.js +0 -614
  86. package/dist/8.js.map +0 -1
  87. package/dist/9.js +0 -665
  88. package/dist/9.js.map +0 -1
  89. package/dist/@aws-amplify/ui-react.js +0 -31875
  90. package/dist/@aws-amplify/ui-react.js.map +0 -1
  91. package/dist/aws-amplify-react.min.js +0 -28
  92. package/dist/aws-amplify-react.min.js.map +0 -1
  93. package/dist/polyfills-core-js.js +0 -5211
  94. package/dist/polyfills-core-js.js.map +0 -1
  95. package/dist/polyfills-css-shim.js +0 -467
  96. package/dist/polyfills-css-shim.js.map +0 -1
  97. package/dist/polyfills-dom.js +0 -2098
  98. package/dist/polyfills-dom.js.map +0 -1
  99. package/jest.config.js +0 -12
  100. package/lib/components.d.ts +0 -56
  101. package/lib/components.js +0 -64
  102. package/lib/components.js.map +0 -1
  103. package/lib/index.d.ts +0 -2
  104. package/lib/index.js +0 -9
  105. package/lib/index.js.map +0 -1
  106. package/lib/react-component-lib/createComponent.d.ts +0 -2
  107. package/lib/react-component-lib/createComponent.js +0 -91
  108. package/lib/react-component-lib/createComponent.js.map +0 -1
  109. package/lib/react-component-lib/createControllerComponent.d.ts +0 -43
  110. package/lib/react-component-lib/createControllerComponent.js +0 -152
  111. package/lib/react-component-lib/createControllerComponent.js.map +0 -1
  112. package/lib/react-component-lib/createOverlayComponent.d.ts +0 -45
  113. package/lib/react-component-lib/createOverlayComponent.js +0 -148
  114. package/lib/react-component-lib/createOverlayComponent.js.map +0 -1
  115. package/lib/react-component-lib/index.d.ts +0 -3
  116. package/lib/react-component-lib/index.js +0 -9
  117. package/lib/react-component-lib/index.js.map +0 -1
  118. package/lib/react-component-lib/utils/attachEventProps.d.ts +0 -8
  119. package/lib/react-component-lib/utils/attachEventProps.js +0 -85
  120. package/lib/react-component-lib/utils/attachEventProps.js.map +0 -1
  121. package/lib/react-component-lib/utils/index.d.ts +0 -8
  122. package/lib/react-component-lib/utils/index.js +0 -36
  123. package/lib/react-component-lib/utils/index.js.map +0 -1
  124. package/lib/withAuthenticator.d.ts +0 -3
  125. package/lib/withAuthenticator.js +0 -127
  126. package/lib/withAuthenticator.js.map +0 -1
  127. package/lib-esm/components.d.ts +0 -56
  128. package/lib-esm/components.js +0 -62
  129. package/lib-esm/components.js.map +0 -1
  130. package/lib-esm/index.d.ts +0 -2
  131. package/lib-esm/index.js +0 -3
  132. package/lib-esm/index.js.map +0 -1
  133. package/lib-esm/react-component-lib/createComponent.d.ts +0 -2
  134. package/lib-esm/react-component-lib/createComponent.js +0 -86
  135. package/lib-esm/react-component-lib/createComponent.js.map +0 -1
  136. package/lib-esm/react-component-lib/createControllerComponent.d.ts +0 -43
  137. package/lib-esm/react-component-lib/createControllerComponent.js +0 -146
  138. package/lib-esm/react-component-lib/createControllerComponent.js.map +0 -1
  139. package/lib-esm/react-component-lib/createOverlayComponent.d.ts +0 -45
  140. package/lib-esm/react-component-lib/createOverlayComponent.js +0 -142
  141. package/lib-esm/react-component-lib/createOverlayComponent.js.map +0 -1
  142. package/lib-esm/react-component-lib/index.d.ts +0 -3
  143. package/lib-esm/react-component-lib/index.js +0 -4
  144. package/lib-esm/react-component-lib/index.js.map +0 -1
  145. package/lib-esm/react-component-lib/utils/attachEventProps.d.ts +0 -8
  146. package/lib-esm/react-component-lib/utils/attachEventProps.js +0 -79
  147. package/lib-esm/react-component-lib/utils/attachEventProps.js.map +0 -1
  148. package/lib-esm/react-component-lib/utils/index.d.ts +0 -8
  149. package/lib-esm/react-component-lib/utils/index.js +0 -28
  150. package/lib-esm/react-component-lib/utils/index.js.map +0 -1
  151. package/lib-esm/withAuthenticator.d.ts +0 -3
  152. package/lib-esm/withAuthenticator.js +0 -121
  153. package/lib-esm/withAuthenticator.js.map +0 -1
  154. package/src/components.ts +0 -65
  155. package/src/index.ts +0 -3
  156. package/src/react-component-lib/createComponent.tsx +0 -69
  157. package/src/react-component-lib/createControllerComponent.tsx +0 -71
  158. package/src/react-component-lib/createOverlayComponent.tsx +0 -79
  159. package/src/react-component-lib/index.ts +0 -3
  160. package/src/react-component-lib/utils/attachEventProps.ts +0 -87
  161. package/src/react-component-lib/utils/index.tsx +0 -31
  162. package/src/withAuthenticator.tsx +0 -62
  163. package/webpack.config.dev.js +0 -6
  164. package/webpack.config.js +0 -56
@@ -1,2098 +0,0 @@
1
- (this["webpackJsonpaws_amplify_react"] = this["webpackJsonpaws_amplify_react"] || []).push([["polyfills-dom"],{
2
-
3
- /***/ "../amplify-ui-components/dist/esm-es5/dom-3fa9e65e.js":
4
- /*!*************************************************************!*\
5
- !*** ../amplify-ui-components/dist/esm-es5/dom-3fa9e65e.js ***!
6
- \*************************************************************/
7
- /*! no static exports found */
8
- /***/ (function(module, exports) {
9
-
10
- /*
11
- Stencil Client Patch v1.15.0 | MIT Licensed | https://stenciljs.com
12
- */
13
- (function () {
14
- var aa = new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));
15
-
16
- function g(a) {
17
- var b = aa.has(a);
18
- a = /^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);
19
- return !b && a;
20
- }
21
-
22
- function l(a) {
23
- var b = a.isConnected;
24
- if (void 0 !== b) return b;
25
-
26
- for (; a && !(a.__CE_isImportDocument || a instanceof Document);) {
27
- a = a.parentNode || (window.ShadowRoot && a instanceof ShadowRoot ? a.host : void 0);
28
- }
29
-
30
- return !(!a || !(a.__CE_isImportDocument || a instanceof Document));
31
- }
32
-
33
- function n(a, b) {
34
- for (; b && b !== a && !b.nextSibling;) {
35
- b = b.parentNode;
36
- }
37
-
38
- return b && b !== a ? b.nextSibling : null;
39
- }
40
-
41
- function p(a, b, d) {
42
- d = void 0 === d ? new Set() : d;
43
-
44
- for (var c = a; c;) {
45
- if (c.nodeType === Node.ELEMENT_NODE) {
46
- var e = c;
47
- b(e);
48
- var f = e.localName;
49
-
50
- if ("link" === f && "import" === e.getAttribute("rel")) {
51
- c = e["import"];
52
- if (c instanceof Node && !d.has(c)) for (d.add(c), c = c.firstChild; c; c = c.nextSibling) {
53
- p(c, b, d);
54
- }
55
- c = n(a, e);
56
- continue;
57
- } else if ("template" === f) {
58
- c = n(a, e);
59
- continue;
60
- }
61
-
62
- if (e = e.__CE_shadowRoot) for (e = e.firstChild; e; e = e.nextSibling) {
63
- p(e, b, d);
64
- }
65
- }
66
-
67
- c = c.firstChild ? c.firstChild : n(a, c);
68
- }
69
- }
70
-
71
- function r(a, b, d) {
72
- a[b] = d;
73
- }
74
-
75
- function u() {
76
- this.a = new Map();
77
- this.g = new Map();
78
- this.c = [];
79
- this.f = [];
80
- this.b = !1;
81
- }
82
-
83
- function ba(a, b, d) {
84
- a.a.set(b, d);
85
- a.g.set(d.constructorFunction, d);
86
- }
87
-
88
- function ca(a, b) {
89
- a.b = !0;
90
- a.c.push(b);
91
- }
92
-
93
- function da(a, b) {
94
- a.b = !0;
95
- a.f.push(b);
96
- }
97
-
98
- function v(a, b) {
99
- a.b && p(b, function (b) {
100
- return w(a, b);
101
- });
102
- }
103
-
104
- function w(a, b) {
105
- if (a.b && !b.__CE_patched) {
106
- b.__CE_patched = !0;
107
-
108
- for (var d = 0; d < a.c.length; d++) {
109
- a.c[d](b);
110
- }
111
-
112
- for (d = 0; d < a.f.length; d++) {
113
- a.f[d](b);
114
- }
115
- }
116
- }
117
-
118
- function x(a, b) {
119
- var d = [];
120
- p(b, function (b) {
121
- return d.push(b);
122
- });
123
-
124
- for (b = 0; b < d.length; b++) {
125
- var c = d[b];
126
- 1 === c.__CE_state ? a.connectedCallback(c) : y(a, c);
127
- }
128
- }
129
-
130
- function z(a, b) {
131
- var d = [];
132
- p(b, function (b) {
133
- return d.push(b);
134
- });
135
-
136
- for (b = 0; b < d.length; b++) {
137
- var c = d[b];
138
- 1 === c.__CE_state && a.disconnectedCallback(c);
139
- }
140
- }
141
-
142
- function A(a, b, d) {
143
- d = void 0 === d ? {} : d;
144
-
145
- var c = d.u || new Set(),
146
- e = d.i || function (b) {
147
- return y(a, b);
148
- },
149
- f = [];
150
-
151
- p(b, function (b) {
152
- if ("link" === b.localName && "import" === b.getAttribute("rel")) {
153
- var d = b["import"];
154
- d instanceof Node && (d.__CE_isImportDocument = !0, d.__CE_hasRegistry = !0);
155
- d && "complete" === d.readyState ? d.__CE_documentLoadHandled = !0 : b.addEventListener("load", function () {
156
- var d = b["import"];
157
-
158
- if (!d.__CE_documentLoadHandled) {
159
- d.__CE_documentLoadHandled = !0;
160
- var f = new Set(c);
161
- f["delete"](d);
162
- A(a, d, {
163
- u: f,
164
- i: e
165
- });
166
- }
167
- });
168
- } else f.push(b);
169
- }, c);
170
- if (a.b) for (b = 0; b < f.length; b++) {
171
- w(a, f[b]);
172
- }
173
-
174
- for (b = 0; b < f.length; b++) {
175
- e(f[b]);
176
- }
177
- }
178
-
179
- function y(a, b) {
180
- if (void 0 === b.__CE_state) {
181
- var d = b.ownerDocument;
182
- if (d.defaultView || d.__CE_isImportDocument && d.__CE_hasRegistry) if (d = a.a.get(b.localName)) {
183
- d.constructionStack.push(b);
184
- var c = d.constructorFunction;
185
-
186
- try {
187
- try {
188
- if (new c() !== b) throw Error("The custom element constructor did not produce the element being upgraded.");
189
- } finally {
190
- d.constructionStack.pop();
191
- }
192
- } catch (t) {
193
- throw b.__CE_state = 2, t;
194
- }
195
-
196
- b.__CE_state = 1;
197
- b.__CE_definition = d;
198
- if (d.attributeChangedCallback) for (d = d.observedAttributes, c = 0; c < d.length; c++) {
199
- var e = d[c],
200
- f = b.getAttribute(e);
201
- null !== f && a.attributeChangedCallback(b, e, null, f, null);
202
- }
203
- l(b) && a.connectedCallback(b);
204
- }
205
- }
206
- }
207
-
208
- u.prototype.connectedCallback = function (a) {
209
- var b = a.__CE_definition;
210
- b.connectedCallback && b.connectedCallback.call(a);
211
- };
212
-
213
- u.prototype.disconnectedCallback = function (a) {
214
- var b = a.__CE_definition;
215
- b.disconnectedCallback && b.disconnectedCallback.call(a);
216
- };
217
-
218
- u.prototype.attributeChangedCallback = function (a, b, d, c, e) {
219
- var f = a.__CE_definition;
220
- f.attributeChangedCallback && -1 < f.observedAttributes.indexOf(b) && f.attributeChangedCallback.call(a, b, d, c, e);
221
- };
222
-
223
- function B(a) {
224
- var b = document;
225
- this.c = a;
226
- this.a = b;
227
- this.b = void 0;
228
- A(this.c, this.a);
229
- "loading" === this.a.readyState && (this.b = new MutationObserver(this.f.bind(this)), this.b.observe(this.a, {
230
- childList: !0,
231
- subtree: !0
232
- }));
233
- }
234
-
235
- function C(a) {
236
- a.b && a.b.disconnect();
237
- }
238
-
239
- B.prototype.f = function (a) {
240
- var b = this.a.readyState;
241
- "interactive" !== b && "complete" !== b || C(this);
242
-
243
- for (b = 0; b < a.length; b++) {
244
- for (var d = a[b].addedNodes, c = 0; c < d.length; c++) {
245
- A(this.c, d[c]);
246
- }
247
- }
248
- };
249
-
250
- function ea() {
251
- var a = this;
252
- this.b = this.a = void 0;
253
- this.c = new Promise(function (b) {
254
- a.b = b;
255
- a.a && b(a.a);
256
- });
257
- }
258
-
259
- function D(a) {
260
- if (a.a) throw Error("Already resolved.");
261
- a.a = void 0;
262
- a.b && a.b(void 0);
263
- }
264
-
265
- function E(a) {
266
- this.c = !1;
267
- this.a = a;
268
- this.j = new Map();
269
-
270
- this.f = function (b) {
271
- return b();
272
- };
273
-
274
- this.b = !1;
275
- this.g = [];
276
- this.o = new B(a);
277
- }
278
-
279
- E.prototype.l = function (a, b) {
280
- var d = this;
281
- if (!(b instanceof Function)) throw new TypeError("Custom element constructors must be functions.");
282
- if (!g(a)) throw new SyntaxError("The element name '" + a + "' is not valid.");
283
- if (this.a.a.get(a)) throw Error("A custom element with name '" + a + "' has already been defined.");
284
- if (this.c) throw Error("A custom element is already being defined.");
285
- this.c = !0;
286
-
287
- try {
288
- var c = function c(b) {
289
- var a = e[b];
290
- if (void 0 !== a && !(a instanceof Function)) throw Error("The '" + b + "' callback must be a function.");
291
- return a;
292
- },
293
- e = b.prototype;
294
-
295
- if (!(e instanceof Object)) throw new TypeError("The custom element constructor's prototype is not an object.");
296
- var f = c("connectedCallback");
297
- var t = c("disconnectedCallback");
298
- var k = c("adoptedCallback");
299
- var h = c("attributeChangedCallback");
300
- var m = b.observedAttributes || [];
301
- } catch (q) {
302
- return;
303
- } finally {
304
- this.c = !1;
305
- }
306
-
307
- b = {
308
- localName: a,
309
- constructorFunction: b,
310
- connectedCallback: f,
311
- disconnectedCallback: t,
312
- adoptedCallback: k,
313
- attributeChangedCallback: h,
314
- observedAttributes: m,
315
- constructionStack: []
316
- };
317
- ba(this.a, a, b);
318
- this.g.push(b);
319
- this.b || (this.b = !0, this.f(function () {
320
- return fa(d);
321
- }));
322
- };
323
-
324
- E.prototype.i = function (a) {
325
- A(this.a, a);
326
- };
327
-
328
- function fa(a) {
329
- if (!1 !== a.b) {
330
- a.b = !1;
331
-
332
- for (var b = a.g, d = [], c = new Map(), e = 0; e < b.length; e++) {
333
- c.set(b[e].localName, []);
334
- }
335
-
336
- A(a.a, document, {
337
- i: function i(b) {
338
- if (void 0 === b.__CE_state) {
339
- var e = b.localName,
340
- f = c.get(e);
341
- f ? f.push(b) : a.a.a.get(e) && d.push(b);
342
- }
343
- }
344
- });
345
-
346
- for (e = 0; e < d.length; e++) {
347
- y(a.a, d[e]);
348
- }
349
-
350
- for (; 0 < b.length;) {
351
- var f = b.shift();
352
- e = f.localName;
353
- f = c.get(f.localName);
354
-
355
- for (var t = 0; t < f.length; t++) {
356
- y(a.a, f[t]);
357
- }
358
-
359
- (e = a.j.get(e)) && D(e);
360
- }
361
- }
362
- }
363
-
364
- E.prototype.get = function (a) {
365
- if (a = this.a.a.get(a)) return a.constructorFunction;
366
- };
367
-
368
- E.prototype.m = function (a) {
369
- if (!g(a)) return Promise.reject(new SyntaxError("'" + a + "' is not a valid custom element name."));
370
- var b = this.j.get(a);
371
- if (b) return b.c;
372
- b = new ea();
373
- this.j.set(a, b);
374
- this.a.a.get(a) && !this.g.some(function (b) {
375
- return b.localName === a;
376
- }) && D(b);
377
- return b.c;
378
- };
379
-
380
- E.prototype.s = function (a) {
381
- C(this.o);
382
- var b = this.f;
383
-
384
- this.f = function (d) {
385
- return a(function () {
386
- return b(d);
387
- });
388
- };
389
- };
390
-
391
- window.CustomElementRegistry = E;
392
- E.prototype.define = E.prototype.l;
393
- E.prototype.upgrade = E.prototype.i;
394
- E.prototype.get = E.prototype.get;
395
- E.prototype.whenDefined = E.prototype.m;
396
- E.prototype.polyfillWrapFlushCallback = E.prototype.s;
397
- var F = window.Document.prototype.createElement,
398
- G = window.Document.prototype.createElementNS,
399
- ha = window.Document.prototype.importNode,
400
- ia = window.Document.prototype.prepend,
401
- ja = window.Document.prototype.append,
402
- ka = window.DocumentFragment.prototype.prepend,
403
- la = window.DocumentFragment.prototype.append,
404
- H = window.Node.prototype.cloneNode,
405
- I = window.Node.prototype.appendChild,
406
- J = window.Node.prototype.insertBefore,
407
- K = window.Node.prototype.removeChild,
408
- L = window.Node.prototype.replaceChild,
409
- M = Object.getOwnPropertyDescriptor(window.Node.prototype, "textContent"),
410
- N = window.Element.prototype.attachShadow,
411
- O = Object.getOwnPropertyDescriptor(window.Element.prototype, "innerHTML"),
412
- P = window.Element.prototype.getAttribute,
413
- Q = window.Element.prototype.setAttribute,
414
- R = window.Element.prototype.removeAttribute,
415
- S = window.Element.prototype.getAttributeNS,
416
- T = window.Element.prototype.setAttributeNS,
417
- U = window.Element.prototype.removeAttributeNS,
418
- ma = window.Element.prototype.insertAdjacentElement,
419
- na = window.Element.prototype.insertAdjacentHTML,
420
- oa = window.Element.prototype.prepend,
421
- pa = window.Element.prototype.append,
422
- V = window.Element.prototype.before,
423
- qa = window.Element.prototype.after,
424
- ra = window.Element.prototype.replaceWith,
425
- sa = window.Element.prototype.remove,
426
- ta = window.HTMLElement,
427
- W = Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, "innerHTML"),
428
- ua = window.HTMLElement.prototype.insertAdjacentElement,
429
- va = window.HTMLElement.prototype.insertAdjacentHTML;
430
- var wa = new function () {}();
431
-
432
- function xa() {
433
- var a = X;
434
-
435
- window.HTMLElement = function () {
436
- function b() {
437
- var b = this.constructor,
438
- c = a.g.get(b);
439
- if (!c) throw Error("The custom element being constructed was not registered with `customElements`.");
440
- var e = c.constructionStack;
441
- if (0 === e.length) return e = F.call(document, c.localName), Object.setPrototypeOf(e, b.prototype), e.__CE_state = 1, e.__CE_definition = c, w(a, e), e;
442
- c = e.length - 1;
443
- var f = e[c];
444
- if (f === wa) throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
445
- e[c] = wa;
446
- Object.setPrototypeOf(f, b.prototype);
447
- w(a, f);
448
- return f;
449
- }
450
-
451
- b.prototype = ta.prototype;
452
- Object.defineProperty(b.prototype, "constructor", {
453
- writable: !0,
454
- configurable: !0,
455
- enumerable: !1,
456
- value: b
457
- });
458
- return b;
459
- }();
460
- }
461
-
462
- function Y(a, b, d) {
463
- function c(b) {
464
- return function (d) {
465
- for (var e = [], c = 0; c < arguments.length; ++c) {
466
- e[c] = arguments[c];
467
- }
468
-
469
- c = [];
470
-
471
- for (var f = [], m = 0; m < e.length; m++) {
472
- var q = e[m];
473
- q instanceof Element && l(q) && f.push(q);
474
- if (q instanceof DocumentFragment) for (q = q.firstChild; q; q = q.nextSibling) {
475
- c.push(q);
476
- } else c.push(q);
477
- }
478
-
479
- b.apply(this, e);
480
-
481
- for (e = 0; e < f.length; e++) {
482
- z(a, f[e]);
483
- }
484
-
485
- if (l(this)) for (e = 0; e < c.length; e++) {
486
- f = c[e], f instanceof Element && x(a, f);
487
- }
488
- };
489
- }
490
-
491
- void 0 !== d.h && (b.prepend = c(d.h));
492
- void 0 !== d.append && (b.append = c(d.append));
493
- }
494
-
495
- function ya() {
496
- var a = X;
497
- r(Document.prototype, "createElement", function (b) {
498
- if (this.__CE_hasRegistry) {
499
- var d = a.a.get(b);
500
- if (d) return new d.constructorFunction();
501
- }
502
-
503
- b = F.call(this, b);
504
- w(a, b);
505
- return b;
506
- });
507
- r(Document.prototype, "importNode", function (b, d) {
508
- b = ha.call(this, b, !!d);
509
- this.__CE_hasRegistry ? A(a, b) : v(a, b);
510
- return b;
511
- });
512
- r(Document.prototype, "createElementNS", function (b, d) {
513
- if (this.__CE_hasRegistry && (null === b || "http://www.w3.org/1999/xhtml" === b)) {
514
- var c = a.a.get(d);
515
- if (c) return new c.constructorFunction();
516
- }
517
-
518
- b = G.call(this, b, d);
519
- w(a, b);
520
- return b;
521
- });
522
- Y(a, Document.prototype, {
523
- h: ia,
524
- append: ja
525
- });
526
- }
527
-
528
- function za() {
529
- function a(a, c) {
530
- Object.defineProperty(a, "textContent", {
531
- enumerable: c.enumerable,
532
- configurable: !0,
533
- get: c.get,
534
- set: function set(a) {
535
- if (this.nodeType === Node.TEXT_NODE) c.set.call(this, a);else {
536
- var d = void 0;
537
-
538
- if (this.firstChild) {
539
- var e = this.childNodes,
540
- k = e.length;
541
-
542
- if (0 < k && l(this)) {
543
- d = Array(k);
544
-
545
- for (var h = 0; h < k; h++) {
546
- d[h] = e[h];
547
- }
548
- }
549
- }
550
-
551
- c.set.call(this, a);
552
- if (d) for (a = 0; a < d.length; a++) {
553
- z(b, d[a]);
554
- }
555
- }
556
- }
557
- });
558
- }
559
-
560
- var b = X;
561
- r(Node.prototype, "insertBefore", function (a, c) {
562
- if (a instanceof DocumentFragment) {
563
- var e = Array.prototype.slice.apply(a.childNodes);
564
- a = J.call(this, a, c);
565
- if (l(this)) for (c = 0; c < e.length; c++) {
566
- x(b, e[c]);
567
- }
568
- return a;
569
- }
570
-
571
- e = l(a);
572
- c = J.call(this, a, c);
573
- e && z(b, a);
574
- l(this) && x(b, a);
575
- return c;
576
- });
577
- r(Node.prototype, "appendChild", function (a) {
578
- if (a instanceof DocumentFragment) {
579
- var c = Array.prototype.slice.apply(a.childNodes);
580
- a = I.call(this, a);
581
- if (l(this)) for (var e = 0; e < c.length; e++) {
582
- x(b, c[e]);
583
- }
584
- return a;
585
- }
586
-
587
- c = l(a);
588
- e = I.call(this, a);
589
- c && z(b, a);
590
- l(this) && x(b, a);
591
- return e;
592
- });
593
- r(Node.prototype, "cloneNode", function (a) {
594
- a = H.call(this, !!a);
595
- this.ownerDocument.__CE_hasRegistry ? A(b, a) : v(b, a);
596
- return a;
597
- });
598
- r(Node.prototype, "removeChild", function (a) {
599
- var c = l(a),
600
- e = K.call(this, a);
601
- c && z(b, a);
602
- return e;
603
- });
604
- r(Node.prototype, "replaceChild", function (a, c) {
605
- if (a instanceof DocumentFragment) {
606
- var e = Array.prototype.slice.apply(a.childNodes);
607
- a = L.call(this, a, c);
608
- if (l(this)) for (z(b, c), c = 0; c < e.length; c++) {
609
- x(b, e[c]);
610
- }
611
- return a;
612
- }
613
-
614
- e = l(a);
615
- var f = L.call(this, a, c),
616
- d = l(this);
617
- d && z(b, c);
618
- e && z(b, a);
619
- d && x(b, a);
620
- return f;
621
- });
622
- M && M.get ? a(Node.prototype, M) : ca(b, function (b) {
623
- a(b, {
624
- enumerable: !0,
625
- configurable: !0,
626
- get: function get() {
627
- for (var a = [], b = 0; b < this.childNodes.length; b++) {
628
- var f = this.childNodes[b];
629
- f.nodeType !== Node.COMMENT_NODE && a.push(f.textContent);
630
- }
631
-
632
- return a.join("");
633
- },
634
- set: function set(a) {
635
- for (; this.firstChild;) {
636
- K.call(this, this.firstChild);
637
- }
638
-
639
- null != a && "" !== a && I.call(this, document.createTextNode(a));
640
- }
641
- });
642
- });
643
- }
644
-
645
- function Aa(a) {
646
- function b(b) {
647
- return function (e) {
648
- for (var c = [], d = 0; d < arguments.length; ++d) {
649
- c[d] = arguments[d];
650
- }
651
-
652
- d = [];
653
-
654
- for (var k = [], h = 0; h < c.length; h++) {
655
- var m = c[h];
656
- m instanceof Element && l(m) && k.push(m);
657
- if (m instanceof DocumentFragment) for (m = m.firstChild; m; m = m.nextSibling) {
658
- d.push(m);
659
- } else d.push(m);
660
- }
661
-
662
- b.apply(this, c);
663
-
664
- for (c = 0; c < k.length; c++) {
665
- z(a, k[c]);
666
- }
667
-
668
- if (l(this)) for (c = 0; c < d.length; c++) {
669
- k = d[c], k instanceof Element && x(a, k);
670
- }
671
- };
672
- }
673
-
674
- var d = Element.prototype;
675
- void 0 !== V && (d.before = b(V));
676
- void 0 !== V && (d.after = b(qa));
677
- void 0 !== ra && r(d, "replaceWith", function (b) {
678
- for (var e = [], c = 0; c < arguments.length; ++c) {
679
- e[c] = arguments[c];
680
- }
681
-
682
- c = [];
683
-
684
- for (var d = [], k = 0; k < e.length; k++) {
685
- var h = e[k];
686
- h instanceof Element && l(h) && d.push(h);
687
- if (h instanceof DocumentFragment) for (h = h.firstChild; h; h = h.nextSibling) {
688
- c.push(h);
689
- } else c.push(h);
690
- }
691
-
692
- k = l(this);
693
- ra.apply(this, e);
694
-
695
- for (e = 0; e < d.length; e++) {
696
- z(a, d[e]);
697
- }
698
-
699
- if (k) for (z(a, this), e = 0; e < c.length; e++) {
700
- d = c[e], d instanceof Element && x(a, d);
701
- }
702
- });
703
- void 0 !== sa && r(d, "remove", function () {
704
- var b = l(this);
705
- sa.call(this);
706
- b && z(a, this);
707
- });
708
- }
709
-
710
- function Ba() {
711
- function a(a, b) {
712
- Object.defineProperty(a, "innerHTML", {
713
- enumerable: b.enumerable,
714
- configurable: !0,
715
- get: b.get,
716
- set: function set(a) {
717
- var e = this,
718
- d = void 0;
719
- l(this) && (d = [], p(this, function (a) {
720
- a !== e && d.push(a);
721
- }));
722
- b.set.call(this, a);
723
- if (d) for (var f = 0; f < d.length; f++) {
724
- var t = d[f];
725
- 1 === t.__CE_state && c.disconnectedCallback(t);
726
- }
727
- this.ownerDocument.__CE_hasRegistry ? A(c, this) : v(c, this);
728
- return a;
729
- }
730
- });
731
- }
732
-
733
- function b(a, b) {
734
- r(a, "insertAdjacentElement", function (a, e) {
735
- var d = l(e);
736
- a = b.call(this, a, e);
737
- d && z(c, e);
738
- l(a) && x(c, e);
739
- return a;
740
- });
741
- }
742
-
743
- function d(a, b) {
744
- function e(a, b) {
745
- for (var e = []; a !== b; a = a.nextSibling) {
746
- e.push(a);
747
- }
748
-
749
- for (b = 0; b < e.length; b++) {
750
- A(c, e[b]);
751
- }
752
- }
753
-
754
- r(a, "insertAdjacentHTML", function (a, c) {
755
- a = a.toLowerCase();
756
-
757
- if ("beforebegin" === a) {
758
- var d = this.previousSibling;
759
- b.call(this, a, c);
760
- e(d || this.parentNode.firstChild, this);
761
- } else if ("afterbegin" === a) d = this.firstChild, b.call(this, a, c), e(this.firstChild, d);else if ("beforeend" === a) d = this.lastChild, b.call(this, a, c), e(d || this.firstChild, null);else if ("afterend" === a) d = this.nextSibling, b.call(this, a, c), e(this.nextSibling, d);else throw new SyntaxError("The value provided (" + String(a) + ") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");
762
- });
763
- }
764
-
765
- var c = X;
766
- N && r(Element.prototype, "attachShadow", function (a) {
767
- a = N.call(this, a);
768
- var b = c;
769
-
770
- if (b.b && !a.__CE_patched) {
771
- a.__CE_patched = !0;
772
-
773
- for (var e = 0; e < b.c.length; e++) {
774
- b.c[e](a);
775
- }
776
- }
777
-
778
- return this.__CE_shadowRoot = a;
779
- });
780
- O && O.get ? a(Element.prototype, O) : W && W.get ? a(HTMLElement.prototype, W) : da(c, function (b) {
781
- a(b, {
782
- enumerable: !0,
783
- configurable: !0,
784
- get: function get() {
785
- return H.call(this, !0).innerHTML;
786
- },
787
- set: function set(a) {
788
- var b = "template" === this.localName,
789
- c = b ? this.content : this,
790
- e = G.call(document, this.namespaceURI, this.localName);
791
-
792
- for (e.innerHTML = a; 0 < c.childNodes.length;) {
793
- K.call(c, c.childNodes[0]);
794
- }
795
-
796
- for (a = b ? e.content : e; 0 < a.childNodes.length;) {
797
- I.call(c, a.childNodes[0]);
798
- }
799
- }
800
- });
801
- });
802
- r(Element.prototype, "setAttribute", function (a, b) {
803
- if (1 !== this.__CE_state) return Q.call(this, a, b);
804
- var e = P.call(this, a);
805
- Q.call(this, a, b);
806
- b = P.call(this, a);
807
- c.attributeChangedCallback(this, a, e, b, null);
808
- });
809
- r(Element.prototype, "setAttributeNS", function (a, b, d) {
810
- if (1 !== this.__CE_state) return T.call(this, a, b, d);
811
- var e = S.call(this, a, b);
812
- T.call(this, a, b, d);
813
- d = S.call(this, a, b);
814
- c.attributeChangedCallback(this, b, e, d, a);
815
- });
816
- r(Element.prototype, "removeAttribute", function (a) {
817
- if (1 !== this.__CE_state) return R.call(this, a);
818
- var b = P.call(this, a);
819
- R.call(this, a);
820
- null !== b && c.attributeChangedCallback(this, a, b, null, null);
821
- });
822
- r(Element.prototype, "removeAttributeNS", function (a, b) {
823
- if (1 !== this.__CE_state) return U.call(this, a, b);
824
- var d = S.call(this, a, b);
825
- U.call(this, a, b);
826
- var e = S.call(this, a, b);
827
- d !== e && c.attributeChangedCallback(this, b, d, e, a);
828
- });
829
- ua ? b(HTMLElement.prototype, ua) : ma ? b(Element.prototype, ma) : console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");
830
- va ? d(HTMLElement.prototype, va) : na ? d(Element.prototype, na) : console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");
831
- Y(c, Element.prototype, {
832
- h: oa,
833
- append: pa
834
- });
835
- Aa(c);
836
- }
837
-
838
- var Z = window.customElements;
839
-
840
- if (!Z || Z.forcePolyfill || "function" != typeof Z.define || "function" != typeof Z.get) {
841
- var X = new u();
842
- xa();
843
- ya();
844
- Y(X, DocumentFragment.prototype, {
845
- h: ka,
846
- append: la
847
- });
848
- za();
849
- Ba();
850
- document.__CE_hasRegistry = !0;
851
- var customElements = new E(X);
852
- Object.defineProperty(window, "customElements", {
853
- configurable: !0,
854
- enumerable: !0,
855
- value: customElements
856
- });
857
- }
858
- }).call(self); // Polyfill document.baseURI
859
-
860
- "string" !== typeof document.baseURI && Object.defineProperty(Document.prototype, "baseURI", {
861
- enumerable: !0,
862
- configurable: !0,
863
- get: function get() {
864
- var a = document.querySelector("base");
865
- return a && a.href ? a.href : document.URL;
866
- }
867
- }); // Polyfill CustomEvent
868
-
869
- "function" !== typeof window.CustomEvent && (window.CustomEvent = function (c, a) {
870
- a = a || {
871
- bubbles: !1,
872
- cancelable: !1,
873
- detail: void 0
874
- };
875
- var b = document.createEvent("CustomEvent");
876
- b.initCustomEvent(c, a.bubbles, a.cancelable, a.detail);
877
- return b;
878
- }, window.CustomEvent.prototype = window.Event.prototype); // Event.composedPath
879
-
880
- (function (b, c, d) {
881
- b.composedPath || (b.composedPath = function () {
882
- if (this.path) return this.path;
883
- var a = this.target;
884
-
885
- for (this.path = []; null !== a.parentNode;) {
886
- this.path.push(a), a = a.parentNode;
887
- }
888
-
889
- this.path.push(c, d);
890
- return this.path;
891
- });
892
- })(Event.prototype, document, window);
893
- /*!
894
- Element.closest and Element.matches
895
- https://github.com/jonathantneal/closest
896
- Creative Commons Zero v1.0 Universal
897
- */
898
-
899
-
900
- (function (a) {
901
- "function" !== typeof a.matches && (a.matches = a.msMatchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || function (a) {
902
- a = (this.document || this.ownerDocument).querySelectorAll(a);
903
-
904
- for (var b = 0; a[b] && a[b] !== this;) {
905
- ++b;
906
- }
907
-
908
- return !!a[b];
909
- });
910
- "function" !== typeof a.closest && (a.closest = function (a) {
911
- for (var b = this; b && 1 === b.nodeType;) {
912
- if (b.matches(a)) return b;
913
- b = b.parentNode;
914
- }
915
-
916
- return null;
917
- });
918
- })(window.Element.prototype);
919
- /*!
920
- Element.getRootNode()
921
- */
922
-
923
-
924
- (function (c) {
925
- function d(a) {
926
- a = b(a);
927
- return a && 11 === a.nodeType ? d(a.host) : a;
928
- }
929
-
930
- function b(a) {
931
- return a && a.parentNode ? b(a.parentNode) : a;
932
- }
933
-
934
- "function" !== typeof c.getRootNode && (c.getRootNode = function (a) {
935
- return a && a.composed ? d(this) : b(this);
936
- });
937
- })(Element.prototype);
938
- /*!
939
- Element.isConnected()
940
- */
941
-
942
-
943
- (function (a) {
944
- "isConnected" in a || Object.defineProperty(a, "isConnected", {
945
- configurable: !0,
946
- enumerable: !0,
947
- get: function get() {
948
- var a = this.getRootNode({
949
- composed: !0
950
- });
951
- return a && 9 === a.nodeType;
952
- }
953
- });
954
- })(Element.prototype);
955
- /*!
956
- Element.remove()
957
- */
958
-
959
-
960
- (function (b) {
961
- b.forEach(function (a) {
962
- a.hasOwnProperty("remove") || Object.defineProperty(a, "remove", {
963
- configurable: !0,
964
- enumerable: !0,
965
- writable: !0,
966
- value: function value() {
967
- null !== this.parentNode && this.parentNode.removeChild(this);
968
- }
969
- });
970
- });
971
- })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
972
- /*!
973
- Element.classList
974
- */
975
-
976
-
977
- !function (e) {
978
- 'classList' in e || Object.defineProperty(e, "classList", {
979
- get: function get() {
980
- var e = this,
981
- t = (e.getAttribute("class") || "").replace(/^\s+|\s$/g, "").split(/\s+/g);
982
-
983
- function n() {
984
- t.length > 0 ? e.setAttribute("class", t.join(" ")) : e.removeAttribute("class");
985
- }
986
-
987
- return "" === t[0] && t.splice(0, 1), t.toggle = function (e, i) {
988
- void 0 !== i ? i ? t.add(e) : t.remove(e) : -1 !== t.indexOf(e) ? t.splice(t.indexOf(e), 1) : t.push(e), n();
989
- }, t.add = function () {
990
- for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++) {
991
- -1 === t.indexOf(e[i]) && t.push(e[i]);
992
- }
993
-
994
- n();
995
- }, t.remove = function () {
996
- for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++) {
997
- -1 !== t.indexOf(e[i]) && t.splice(t.indexOf(e[i]), 1);
998
- }
999
-
1000
- n();
1001
- }, t.item = function (e) {
1002
- return t[e];
1003
- }, t.contains = function (e) {
1004
- return -1 !== t.indexOf(e);
1005
- }, t.replace = function (e, i) {
1006
- -1 !== t.indexOf(e) && t.splice(t.indexOf(e), 1, i), n();
1007
- }, t.value = e.getAttribute("class") || "", t;
1008
- }
1009
- });
1010
- }(Element.prototype);
1011
- /*!
1012
- DOMTokenList
1013
- */
1014
-
1015
- (function (b) {
1016
- try {
1017
- document.body.classList.add();
1018
- } catch (e) {
1019
- var c = b.add,
1020
- d = b.remove;
1021
-
1022
- b.add = function () {
1023
- for (var a = 0; a < arguments.length; a++) {
1024
- c.call(this, arguments[a]);
1025
- }
1026
- };
1027
-
1028
- b.remove = function () {
1029
- for (var a = 0; a < arguments.length; a++) {
1030
- d.call(this, arguments[a]);
1031
- }
1032
- };
1033
- }
1034
- })(DOMTokenList.prototype);
1035
-
1036
- /***/ }),
1037
-
1038
- /***/ "../amplify-ui-components/dist/esm/polyfills/dom.js":
1039
- /*!**********************************************************!*\
1040
- !*** ../amplify-ui-components/dist/esm/polyfills/dom.js ***!
1041
- \**********************************************************/
1042
- /*! no static exports found */
1043
- /***/ (function(module, exports) {
1044
-
1045
- (function () {
1046
- /*
1047
- Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
1048
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1049
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1050
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1051
- Code distributed by Google as part of the polymer project is also
1052
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1053
- */
1054
- 'use strict';
1055
-
1056
- var aa = new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));
1057
-
1058
- function g(a) {
1059
- var b = aa.has(a);
1060
- a = /^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);
1061
- return !b && a;
1062
- }
1063
-
1064
- function l(a) {
1065
- var b = a.isConnected;
1066
- if (void 0 !== b) return b;
1067
-
1068
- for (; a && !(a.__CE_isImportDocument || a instanceof Document);) {
1069
- a = a.parentNode || (window.ShadowRoot && a instanceof ShadowRoot ? a.host : void 0);
1070
- }
1071
-
1072
- return !(!a || !(a.__CE_isImportDocument || a instanceof Document));
1073
- }
1074
-
1075
- function n(a, b) {
1076
- for (; b && b !== a && !b.nextSibling;) {
1077
- b = b.parentNode;
1078
- }
1079
-
1080
- return b && b !== a ? b.nextSibling : null;
1081
- }
1082
-
1083
- function p(a, b, d) {
1084
- d = void 0 === d ? new Set() : d;
1085
-
1086
- for (var c = a; c;) {
1087
- if (c.nodeType === Node.ELEMENT_NODE) {
1088
- var e = c;
1089
- b(e);
1090
- var f = e.localName;
1091
-
1092
- if ("link" === f && "import" === e.getAttribute("rel")) {
1093
- c = e["import"];
1094
- if (c instanceof Node && !d.has(c)) for (d.add(c), c = c.firstChild; c; c = c.nextSibling) {
1095
- p(c, b, d);
1096
- }
1097
- c = n(a, e);
1098
- continue;
1099
- } else if ("template" === f) {
1100
- c = n(a, e);
1101
- continue;
1102
- }
1103
-
1104
- if (e = e.__CE_shadowRoot) for (e = e.firstChild; e; e = e.nextSibling) {
1105
- p(e, b, d);
1106
- }
1107
- }
1108
-
1109
- c = c.firstChild ? c.firstChild : n(a, c);
1110
- }
1111
- }
1112
-
1113
- function r(a, b, d) {
1114
- a[b] = d;
1115
- }
1116
-
1117
- ;
1118
-
1119
- function u() {
1120
- this.a = new Map();
1121
- this.g = new Map();
1122
- this.c = [];
1123
- this.f = [];
1124
- this.b = !1;
1125
- }
1126
-
1127
- function ba(a, b, d) {
1128
- a.a.set(b, d);
1129
- a.g.set(d.constructorFunction, d);
1130
- }
1131
-
1132
- function ca(a, b) {
1133
- a.b = !0;
1134
- a.c.push(b);
1135
- }
1136
-
1137
- function da(a, b) {
1138
- a.b = !0;
1139
- a.f.push(b);
1140
- }
1141
-
1142
- function v(a, b) {
1143
- a.b && p(b, function (b) {
1144
- return w(a, b);
1145
- });
1146
- }
1147
-
1148
- function w(a, b) {
1149
- if (a.b && !b.__CE_patched) {
1150
- b.__CE_patched = !0;
1151
-
1152
- for (var d = 0; d < a.c.length; d++) {
1153
- a.c[d](b);
1154
- }
1155
-
1156
- for (d = 0; d < a.f.length; d++) {
1157
- a.f[d](b);
1158
- }
1159
- }
1160
- }
1161
-
1162
- function x(a, b) {
1163
- var d = [];
1164
- p(b, function (b) {
1165
- return d.push(b);
1166
- });
1167
-
1168
- for (b = 0; b < d.length; b++) {
1169
- var c = d[b];
1170
- 1 === c.__CE_state ? a.connectedCallback(c) : y(a, c);
1171
- }
1172
- }
1173
-
1174
- function z(a, b) {
1175
- var d = [];
1176
- p(b, function (b) {
1177
- return d.push(b);
1178
- });
1179
-
1180
- for (b = 0; b < d.length; b++) {
1181
- var c = d[b];
1182
- 1 === c.__CE_state && a.disconnectedCallback(c);
1183
- }
1184
- }
1185
-
1186
- function A(a, b, d) {
1187
- d = void 0 === d ? {} : d;
1188
-
1189
- var c = d.u || new Set(),
1190
- e = d.i || function (b) {
1191
- return y(a, b);
1192
- },
1193
- f = [];
1194
-
1195
- p(b, function (b) {
1196
- if ("link" === b.localName && "import" === b.getAttribute("rel")) {
1197
- var d = b["import"];
1198
- d instanceof Node && (d.__CE_isImportDocument = !0, d.__CE_hasRegistry = !0);
1199
- d && "complete" === d.readyState ? d.__CE_documentLoadHandled = !0 : b.addEventListener("load", function () {
1200
- var d = b["import"];
1201
-
1202
- if (!d.__CE_documentLoadHandled) {
1203
- d.__CE_documentLoadHandled = !0;
1204
- var f = new Set(c);
1205
- f["delete"](d);
1206
- A(a, d, {
1207
- u: f,
1208
- i: e
1209
- });
1210
- }
1211
- });
1212
- } else f.push(b);
1213
- }, c);
1214
- if (a.b) for (b = 0; b < f.length; b++) {
1215
- w(a, f[b]);
1216
- }
1217
-
1218
- for (b = 0; b < f.length; b++) {
1219
- e(f[b]);
1220
- }
1221
- }
1222
-
1223
- function y(a, b) {
1224
- if (void 0 === b.__CE_state) {
1225
- var d = b.ownerDocument;
1226
- if (d.defaultView || d.__CE_isImportDocument && d.__CE_hasRegistry) if (d = a.a.get(b.localName)) {
1227
- d.constructionStack.push(b);
1228
- var c = d.constructorFunction;
1229
-
1230
- try {
1231
- try {
1232
- if (new c() !== b) throw Error("The custom element constructor did not produce the element being upgraded.");
1233
- } finally {
1234
- d.constructionStack.pop();
1235
- }
1236
- } catch (t) {
1237
- throw b.__CE_state = 2, t;
1238
- }
1239
-
1240
- b.__CE_state = 1;
1241
- b.__CE_definition = d;
1242
- if (d.attributeChangedCallback) for (d = d.observedAttributes, c = 0; c < d.length; c++) {
1243
- var e = d[c],
1244
- f = b.getAttribute(e);
1245
- null !== f && a.attributeChangedCallback(b, e, null, f, null);
1246
- }
1247
- l(b) && a.connectedCallback(b);
1248
- }
1249
- }
1250
- }
1251
-
1252
- u.prototype.connectedCallback = function (a) {
1253
- var b = a.__CE_definition;
1254
- b.connectedCallback && b.connectedCallback.call(a);
1255
- };
1256
-
1257
- u.prototype.disconnectedCallback = function (a) {
1258
- var b = a.__CE_definition;
1259
- b.disconnectedCallback && b.disconnectedCallback.call(a);
1260
- };
1261
-
1262
- u.prototype.attributeChangedCallback = function (a, b, d, c, e) {
1263
- var f = a.__CE_definition;
1264
- f.attributeChangedCallback && -1 < f.observedAttributes.indexOf(b) && f.attributeChangedCallback.call(a, b, d, c, e);
1265
- };
1266
-
1267
- function B(a) {
1268
- var b = document;
1269
- this.c = a;
1270
- this.a = b;
1271
- this.b = void 0;
1272
- A(this.c, this.a);
1273
- "loading" === this.a.readyState && (this.b = new MutationObserver(this.f.bind(this)), this.b.observe(this.a, {
1274
- childList: !0,
1275
- subtree: !0
1276
- }));
1277
- }
1278
-
1279
- function C(a) {
1280
- a.b && a.b.disconnect();
1281
- }
1282
-
1283
- B.prototype.f = function (a) {
1284
- var b = this.a.readyState;
1285
- "interactive" !== b && "complete" !== b || C(this);
1286
-
1287
- for (b = 0; b < a.length; b++) {
1288
- for (var d = a[b].addedNodes, c = 0; c < d.length; c++) {
1289
- A(this.c, d[c]);
1290
- }
1291
- }
1292
- };
1293
-
1294
- function ea() {
1295
- var a = this;
1296
- this.b = this.a = void 0;
1297
- this.c = new Promise(function (b) {
1298
- a.b = b;
1299
- a.a && b(a.a);
1300
- });
1301
- }
1302
-
1303
- function D(a) {
1304
- if (a.a) throw Error("Already resolved.");
1305
- a.a = void 0;
1306
- a.b && a.b(void 0);
1307
- }
1308
-
1309
- ;
1310
-
1311
- function E(a) {
1312
- this.c = !1;
1313
- this.a = a;
1314
- this.j = new Map();
1315
-
1316
- this.f = function (b) {
1317
- return b();
1318
- };
1319
-
1320
- this.b = !1;
1321
- this.g = [];
1322
- this.o = new B(a);
1323
- }
1324
-
1325
- E.prototype.l = function (a, b) {
1326
- var d = this;
1327
- if (!(b instanceof Function)) throw new TypeError("Custom element constructors must be functions.");
1328
- if (!g(a)) throw new SyntaxError("The element name '" + a + "' is not valid.");
1329
- if (this.a.a.get(a)) throw Error("A custom element with name '" + a + "' has already been defined.");
1330
- if (this.c) throw Error("A custom element is already being defined.");
1331
- this.c = !0;
1332
-
1333
- try {
1334
- var c = function c(b) {
1335
- var a = e[b];
1336
- if (void 0 !== a && !(a instanceof Function)) throw Error("The '" + b + "' callback must be a function.");
1337
- return a;
1338
- },
1339
- e = b.prototype;
1340
-
1341
- if (!(e instanceof Object)) throw new TypeError("The custom element constructor's prototype is not an object.");
1342
- var f = c("connectedCallback");
1343
- var t = c("disconnectedCallback");
1344
- var k = c("adoptedCallback");
1345
- var h = c("attributeChangedCallback");
1346
- var m = b.observedAttributes || [];
1347
- } catch (q) {
1348
- return;
1349
- } finally {
1350
- this.c = !1;
1351
- }
1352
-
1353
- b = {
1354
- localName: a,
1355
- constructorFunction: b,
1356
- connectedCallback: f,
1357
- disconnectedCallback: t,
1358
- adoptedCallback: k,
1359
- attributeChangedCallback: h,
1360
- observedAttributes: m,
1361
- constructionStack: []
1362
- };
1363
- ba(this.a, a, b);
1364
- this.g.push(b);
1365
- this.b || (this.b = !0, this.f(function () {
1366
- return fa(d);
1367
- }));
1368
- };
1369
-
1370
- E.prototype.i = function (a) {
1371
- A(this.a, a);
1372
- };
1373
-
1374
- function fa(a) {
1375
- if (!1 !== a.b) {
1376
- a.b = !1;
1377
-
1378
- for (var b = a.g, d = [], c = new Map(), e = 0; e < b.length; e++) {
1379
- c.set(b[e].localName, []);
1380
- }
1381
-
1382
- A(a.a, document, {
1383
- i: function i(b) {
1384
- if (void 0 === b.__CE_state) {
1385
- var e = b.localName,
1386
- f = c.get(e);
1387
- f ? f.push(b) : a.a.a.get(e) && d.push(b);
1388
- }
1389
- }
1390
- });
1391
-
1392
- for (e = 0; e < d.length; e++) {
1393
- y(a.a, d[e]);
1394
- }
1395
-
1396
- for (; 0 < b.length;) {
1397
- var f = b.shift();
1398
- e = f.localName;
1399
- f = c.get(f.localName);
1400
-
1401
- for (var t = 0; t < f.length; t++) {
1402
- y(a.a, f[t]);
1403
- }
1404
-
1405
- (e = a.j.get(e)) && D(e);
1406
- }
1407
- }
1408
- }
1409
-
1410
- E.prototype.get = function (a) {
1411
- if (a = this.a.a.get(a)) return a.constructorFunction;
1412
- };
1413
-
1414
- E.prototype.m = function (a) {
1415
- if (!g(a)) return Promise.reject(new SyntaxError("'" + a + "' is not a valid custom element name."));
1416
- var b = this.j.get(a);
1417
- if (b) return b.c;
1418
- b = new ea();
1419
- this.j.set(a, b);
1420
- this.a.a.get(a) && !this.g.some(function (b) {
1421
- return b.localName === a;
1422
- }) && D(b);
1423
- return b.c;
1424
- };
1425
-
1426
- E.prototype.s = function (a) {
1427
- C(this.o);
1428
- var b = this.f;
1429
-
1430
- this.f = function (d) {
1431
- return a(function () {
1432
- return b(d);
1433
- });
1434
- };
1435
- };
1436
-
1437
- window.CustomElementRegistry = E;
1438
- E.prototype.define = E.prototype.l;
1439
- E.prototype.upgrade = E.prototype.i;
1440
- E.prototype.get = E.prototype.get;
1441
- E.prototype.whenDefined = E.prototype.m;
1442
- E.prototype.polyfillWrapFlushCallback = E.prototype.s;
1443
- var F = window.Document.prototype.createElement,
1444
- G = window.Document.prototype.createElementNS,
1445
- ha = window.Document.prototype.importNode,
1446
- ia = window.Document.prototype.prepend,
1447
- ja = window.Document.prototype.append,
1448
- ka = window.DocumentFragment.prototype.prepend,
1449
- la = window.DocumentFragment.prototype.append,
1450
- H = window.Node.prototype.cloneNode,
1451
- I = window.Node.prototype.appendChild,
1452
- J = window.Node.prototype.insertBefore,
1453
- K = window.Node.prototype.removeChild,
1454
- L = window.Node.prototype.replaceChild,
1455
- M = Object.getOwnPropertyDescriptor(window.Node.prototype, "textContent"),
1456
- N = window.Element.prototype.attachShadow,
1457
- O = Object.getOwnPropertyDescriptor(window.Element.prototype, "innerHTML"),
1458
- P = window.Element.prototype.getAttribute,
1459
- Q = window.Element.prototype.setAttribute,
1460
- R = window.Element.prototype.removeAttribute,
1461
- S = window.Element.prototype.getAttributeNS,
1462
- T = window.Element.prototype.setAttributeNS,
1463
- U = window.Element.prototype.removeAttributeNS,
1464
- ma = window.Element.prototype.insertAdjacentElement,
1465
- na = window.Element.prototype.insertAdjacentHTML,
1466
- oa = window.Element.prototype.prepend,
1467
- pa = window.Element.prototype.append,
1468
- V = window.Element.prototype.before,
1469
- qa = window.Element.prototype.after,
1470
- ra = window.Element.prototype.replaceWith,
1471
- sa = window.Element.prototype.remove,
1472
- ta = window.HTMLElement,
1473
- W = Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, "innerHTML"),
1474
- ua = window.HTMLElement.prototype.insertAdjacentElement,
1475
- va = window.HTMLElement.prototype.insertAdjacentHTML;
1476
- var wa = new function () {}();
1477
-
1478
- function xa() {
1479
- var a = X;
1480
-
1481
- window.HTMLElement = function () {
1482
- function b() {
1483
- var b = this.constructor,
1484
- c = a.g.get(b);
1485
- if (!c) throw Error("The custom element being constructed was not registered with `customElements`.");
1486
- var e = c.constructionStack;
1487
- if (0 === e.length) return e = F.call(document, c.localName), Object.setPrototypeOf(e, b.prototype), e.__CE_state = 1, e.__CE_definition = c, w(a, e), e;
1488
- c = e.length - 1;
1489
- var f = e[c];
1490
- if (f === wa) throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
1491
- e[c] = wa;
1492
- Object.setPrototypeOf(f, b.prototype);
1493
- w(a, f);
1494
- return f;
1495
- }
1496
-
1497
- b.prototype = ta.prototype;
1498
- Object.defineProperty(b.prototype, "constructor", {
1499
- writable: !0,
1500
- configurable: !0,
1501
- enumerable: !1,
1502
- value: b
1503
- });
1504
- return b;
1505
- }();
1506
- }
1507
-
1508
- ;
1509
-
1510
- function Y(a, b, d) {
1511
- function c(b) {
1512
- return function (d) {
1513
- for (var e = [], c = 0; c < arguments.length; ++c) {
1514
- e[c] = arguments[c];
1515
- }
1516
-
1517
- c = [];
1518
-
1519
- for (var f = [], m = 0; m < e.length; m++) {
1520
- var q = e[m];
1521
- q instanceof Element && l(q) && f.push(q);
1522
- if (q instanceof DocumentFragment) for (q = q.firstChild; q; q = q.nextSibling) {
1523
- c.push(q);
1524
- } else c.push(q);
1525
- }
1526
-
1527
- b.apply(this, e);
1528
-
1529
- for (e = 0; e < f.length; e++) {
1530
- z(a, f[e]);
1531
- }
1532
-
1533
- if (l(this)) for (e = 0; e < c.length; e++) {
1534
- f = c[e], f instanceof Element && x(a, f);
1535
- }
1536
- };
1537
- }
1538
-
1539
- void 0 !== d.h && (b.prepend = c(d.h));
1540
- void 0 !== d.append && (b.append = c(d.append));
1541
- }
1542
-
1543
- ;
1544
-
1545
- function ya() {
1546
- var a = X;
1547
- r(Document.prototype, "createElement", function (b) {
1548
- if (this.__CE_hasRegistry) {
1549
- var d = a.a.get(b);
1550
- if (d) return new d.constructorFunction();
1551
- }
1552
-
1553
- b = F.call(this, b);
1554
- w(a, b);
1555
- return b;
1556
- });
1557
- r(Document.prototype, "importNode", function (b, d) {
1558
- b = ha.call(this, b, !!d);
1559
- this.__CE_hasRegistry ? A(a, b) : v(a, b);
1560
- return b;
1561
- });
1562
- r(Document.prototype, "createElementNS", function (b, d) {
1563
- if (this.__CE_hasRegistry && (null === b || "http://www.w3.org/1999/xhtml" === b)) {
1564
- var c = a.a.get(d);
1565
- if (c) return new c.constructorFunction();
1566
- }
1567
-
1568
- b = G.call(this, b, d);
1569
- w(a, b);
1570
- return b;
1571
- });
1572
- Y(a, Document.prototype, {
1573
- h: ia,
1574
- append: ja
1575
- });
1576
- }
1577
-
1578
- ;
1579
-
1580
- function za() {
1581
- function a(a, c) {
1582
- Object.defineProperty(a, "textContent", {
1583
- enumerable: c.enumerable,
1584
- configurable: !0,
1585
- get: c.get,
1586
- set: function set(a) {
1587
- if (this.nodeType === Node.TEXT_NODE) c.set.call(this, a);else {
1588
- var d = void 0;
1589
-
1590
- if (this.firstChild) {
1591
- var e = this.childNodes,
1592
- k = e.length;
1593
-
1594
- if (0 < k && l(this)) {
1595
- d = Array(k);
1596
-
1597
- for (var h = 0; h < k; h++) {
1598
- d[h] = e[h];
1599
- }
1600
- }
1601
- }
1602
-
1603
- c.set.call(this, a);
1604
- if (d) for (a = 0; a < d.length; a++) {
1605
- z(b, d[a]);
1606
- }
1607
- }
1608
- }
1609
- });
1610
- }
1611
-
1612
- var b = X;
1613
- r(Node.prototype, "insertBefore", function (a, c) {
1614
- if (a instanceof DocumentFragment) {
1615
- var e = Array.prototype.slice.apply(a.childNodes);
1616
- a = J.call(this, a, c);
1617
- if (l(this)) for (c = 0; c < e.length; c++) {
1618
- x(b, e[c]);
1619
- }
1620
- return a;
1621
- }
1622
-
1623
- e = l(a);
1624
- c = J.call(this, a, c);
1625
- e && z(b, a);
1626
- l(this) && x(b, a);
1627
- return c;
1628
- });
1629
- r(Node.prototype, "appendChild", function (a) {
1630
- if (a instanceof DocumentFragment) {
1631
- var c = Array.prototype.slice.apply(a.childNodes);
1632
- a = I.call(this, a);
1633
- if (l(this)) for (var e = 0; e < c.length; e++) {
1634
- x(b, c[e]);
1635
- }
1636
- return a;
1637
- }
1638
-
1639
- c = l(a);
1640
- e = I.call(this, a);
1641
- c && z(b, a);
1642
- l(this) && x(b, a);
1643
- return e;
1644
- });
1645
- r(Node.prototype, "cloneNode", function (a) {
1646
- a = H.call(this, !!a);
1647
- this.ownerDocument.__CE_hasRegistry ? A(b, a) : v(b, a);
1648
- return a;
1649
- });
1650
- r(Node.prototype, "removeChild", function (a) {
1651
- var c = l(a),
1652
- e = K.call(this, a);
1653
- c && z(b, a);
1654
- return e;
1655
- });
1656
- r(Node.prototype, "replaceChild", function (a, c) {
1657
- if (a instanceof DocumentFragment) {
1658
- var e = Array.prototype.slice.apply(a.childNodes);
1659
- a = L.call(this, a, c);
1660
- if (l(this)) for (z(b, c), c = 0; c < e.length; c++) {
1661
- x(b, e[c]);
1662
- }
1663
- return a;
1664
- }
1665
-
1666
- e = l(a);
1667
- var f = L.call(this, a, c),
1668
- d = l(this);
1669
- d && z(b, c);
1670
- e && z(b, a);
1671
- d && x(b, a);
1672
- return f;
1673
- });
1674
- M && M.get ? a(Node.prototype, M) : ca(b, function (b) {
1675
- a(b, {
1676
- enumerable: !0,
1677
- configurable: !0,
1678
- get: function get() {
1679
- for (var a = [], b = 0; b < this.childNodes.length; b++) {
1680
- var f = this.childNodes[b];
1681
- f.nodeType !== Node.COMMENT_NODE && a.push(f.textContent);
1682
- }
1683
-
1684
- return a.join("");
1685
- },
1686
- set: function set(a) {
1687
- for (; this.firstChild;) {
1688
- K.call(this, this.firstChild);
1689
- }
1690
-
1691
- null != a && "" !== a && I.call(this, document.createTextNode(a));
1692
- }
1693
- });
1694
- });
1695
- }
1696
-
1697
- ;
1698
-
1699
- function Aa(a) {
1700
- function b(b) {
1701
- return function (e) {
1702
- for (var c = [], d = 0; d < arguments.length; ++d) {
1703
- c[d] = arguments[d];
1704
- }
1705
-
1706
- d = [];
1707
-
1708
- for (var k = [], h = 0; h < c.length; h++) {
1709
- var m = c[h];
1710
- m instanceof Element && l(m) && k.push(m);
1711
- if (m instanceof DocumentFragment) for (m = m.firstChild; m; m = m.nextSibling) {
1712
- d.push(m);
1713
- } else d.push(m);
1714
- }
1715
-
1716
- b.apply(this, c);
1717
-
1718
- for (c = 0; c < k.length; c++) {
1719
- z(a, k[c]);
1720
- }
1721
-
1722
- if (l(this)) for (c = 0; c < d.length; c++) {
1723
- k = d[c], k instanceof Element && x(a, k);
1724
- }
1725
- };
1726
- }
1727
-
1728
- var d = Element.prototype;
1729
- void 0 !== V && (d.before = b(V));
1730
- void 0 !== V && (d.after = b(qa));
1731
- void 0 !== ra && r(d, "replaceWith", function (b) {
1732
- for (var e = [], c = 0; c < arguments.length; ++c) {
1733
- e[c] = arguments[c];
1734
- }
1735
-
1736
- c = [];
1737
-
1738
- for (var d = [], k = 0; k < e.length; k++) {
1739
- var h = e[k];
1740
- h instanceof Element && l(h) && d.push(h);
1741
- if (h instanceof DocumentFragment) for (h = h.firstChild; h; h = h.nextSibling) {
1742
- c.push(h);
1743
- } else c.push(h);
1744
- }
1745
-
1746
- k = l(this);
1747
- ra.apply(this, e);
1748
-
1749
- for (e = 0; e < d.length; e++) {
1750
- z(a, d[e]);
1751
- }
1752
-
1753
- if (k) for (z(a, this), e = 0; e < c.length; e++) {
1754
- d = c[e], d instanceof Element && x(a, d);
1755
- }
1756
- });
1757
- void 0 !== sa && r(d, "remove", function () {
1758
- var b = l(this);
1759
- sa.call(this);
1760
- b && z(a, this);
1761
- });
1762
- }
1763
-
1764
- ;
1765
-
1766
- function Ba() {
1767
- function a(a, b) {
1768
- Object.defineProperty(a, "innerHTML", {
1769
- enumerable: b.enumerable,
1770
- configurable: !0,
1771
- get: b.get,
1772
- set: function set(a) {
1773
- var e = this,
1774
- d = void 0;
1775
- l(this) && (d = [], p(this, function (a) {
1776
- a !== e && d.push(a);
1777
- }));
1778
- b.set.call(this, a);
1779
- if (d) for (var f = 0; f < d.length; f++) {
1780
- var t = d[f];
1781
- 1 === t.__CE_state && c.disconnectedCallback(t);
1782
- }
1783
- this.ownerDocument.__CE_hasRegistry ? A(c, this) : v(c, this);
1784
- return a;
1785
- }
1786
- });
1787
- }
1788
-
1789
- function b(a, b) {
1790
- r(a, "insertAdjacentElement", function (a, e) {
1791
- var d = l(e);
1792
- a = b.call(this, a, e);
1793
- d && z(c, e);
1794
- l(a) && x(c, e);
1795
- return a;
1796
- });
1797
- }
1798
-
1799
- function d(a, b) {
1800
- function e(a, b) {
1801
- for (var e = []; a !== b; a = a.nextSibling) {
1802
- e.push(a);
1803
- }
1804
-
1805
- for (b = 0; b < e.length; b++) {
1806
- A(c, e[b]);
1807
- }
1808
- }
1809
-
1810
- r(a, "insertAdjacentHTML", function (a, c) {
1811
- a = a.toLowerCase();
1812
-
1813
- if ("beforebegin" === a) {
1814
- var d = this.previousSibling;
1815
- b.call(this, a, c);
1816
- e(d || this.parentNode.firstChild, this);
1817
- } else if ("afterbegin" === a) d = this.firstChild, b.call(this, a, c), e(this.firstChild, d);else if ("beforeend" === a) d = this.lastChild, b.call(this, a, c), e(d || this.firstChild, null);else if ("afterend" === a) d = this.nextSibling, b.call(this, a, c), e(this.nextSibling, d);else throw new SyntaxError("The value provided (" + String(a) + ") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");
1818
- });
1819
- }
1820
-
1821
- var c = X;
1822
- N && r(Element.prototype, "attachShadow", function (a) {
1823
- a = N.call(this, a);
1824
- var b = c;
1825
-
1826
- if (b.b && !a.__CE_patched) {
1827
- a.__CE_patched = !0;
1828
-
1829
- for (var e = 0; e < b.c.length; e++) {
1830
- b.c[e](a);
1831
- }
1832
- }
1833
-
1834
- return this.__CE_shadowRoot = a;
1835
- });
1836
- O && O.get ? a(Element.prototype, O) : W && W.get ? a(HTMLElement.prototype, W) : da(c, function (b) {
1837
- a(b, {
1838
- enumerable: !0,
1839
- configurable: !0,
1840
- get: function get() {
1841
- return H.call(this, !0).innerHTML;
1842
- },
1843
- set: function set(a) {
1844
- var b = "template" === this.localName,
1845
- c = b ? this.content : this,
1846
- e = G.call(document, this.namespaceURI, this.localName);
1847
-
1848
- for (e.innerHTML = a; 0 < c.childNodes.length;) {
1849
- K.call(c, c.childNodes[0]);
1850
- }
1851
-
1852
- for (a = b ? e.content : e; 0 < a.childNodes.length;) {
1853
- I.call(c, a.childNodes[0]);
1854
- }
1855
- }
1856
- });
1857
- });
1858
- r(Element.prototype, "setAttribute", function (a, b) {
1859
- if (1 !== this.__CE_state) return Q.call(this, a, b);
1860
- var e = P.call(this, a);
1861
- Q.call(this, a, b);
1862
- b = P.call(this, a);
1863
- c.attributeChangedCallback(this, a, e, b, null);
1864
- });
1865
- r(Element.prototype, "setAttributeNS", function (a, b, d) {
1866
- if (1 !== this.__CE_state) return T.call(this, a, b, d);
1867
- var e = S.call(this, a, b);
1868
- T.call(this, a, b, d);
1869
- d = S.call(this, a, b);
1870
- c.attributeChangedCallback(this, b, e, d, a);
1871
- });
1872
- r(Element.prototype, "removeAttribute", function (a) {
1873
- if (1 !== this.__CE_state) return R.call(this, a);
1874
- var b = P.call(this, a);
1875
- R.call(this, a);
1876
- null !== b && c.attributeChangedCallback(this, a, b, null, null);
1877
- });
1878
- r(Element.prototype, "removeAttributeNS", function (a, b) {
1879
- if (1 !== this.__CE_state) return U.call(this, a, b);
1880
- var d = S.call(this, a, b);
1881
- U.call(this, a, b);
1882
- var e = S.call(this, a, b);
1883
- d !== e && c.attributeChangedCallback(this, b, d, e, a);
1884
- });
1885
- ua ? b(HTMLElement.prototype, ua) : ma ? b(Element.prototype, ma) : console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");
1886
- va ? d(HTMLElement.prototype, va) : na ? d(Element.prototype, na) : console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");
1887
- Y(c, Element.prototype, {
1888
- h: oa,
1889
- append: pa
1890
- });
1891
- Aa(c);
1892
- }
1893
-
1894
- ;
1895
- var Z = window.customElements;
1896
-
1897
- if (!Z || Z.forcePolyfill || "function" != typeof Z.define || "function" != typeof Z.get) {
1898
- var X = new u();
1899
- xa();
1900
- ya();
1901
- Y(X, DocumentFragment.prototype, {
1902
- h: ka,
1903
- append: la
1904
- });
1905
- za();
1906
- Ba();
1907
- document.__CE_hasRegistry = !0;
1908
- var customElements = new E(X);
1909
- Object.defineProperty(window, "customElements", {
1910
- configurable: !0,
1911
- enumerable: !0,
1912
- value: customElements
1913
- });
1914
- }
1915
-
1916
- ;
1917
- }).call(self); // Polyfill document.baseURI
1918
-
1919
- "string" !== typeof document.baseURI && Object.defineProperty(Document.prototype, "baseURI", {
1920
- enumerable: !0,
1921
- configurable: !0,
1922
- get: function get() {
1923
- var a = document.querySelector("base");
1924
- return a && a.href ? a.href : document.URL;
1925
- }
1926
- }); // Polyfill CustomEvent
1927
-
1928
- "function" !== typeof window.CustomEvent && (window.CustomEvent = function (c, a) {
1929
- a = a || {
1930
- bubbles: !1,
1931
- cancelable: !1,
1932
- detail: void 0
1933
- };
1934
- var b = document.createEvent("CustomEvent");
1935
- b.initCustomEvent(c, a.bubbles, a.cancelable, a.detail);
1936
- return b;
1937
- }, window.CustomEvent.prototype = window.Event.prototype); // Event.composedPath
1938
-
1939
- (function (b, c, d) {
1940
- b.composedPath || (b.composedPath = function () {
1941
- if (this.path) return this.path;
1942
- var a = this.target;
1943
-
1944
- for (this.path = []; null !== a.parentNode;) {
1945
- this.path.push(a), a = a.parentNode;
1946
- }
1947
-
1948
- this.path.push(c, d);
1949
- return this.path;
1950
- });
1951
- })(Event.prototype, document, window);
1952
- /*!
1953
- Element.closest and Element.matches
1954
- https://github.com/jonathantneal/closest
1955
- Creative Commons Zero v1.0 Universal
1956
- */
1957
-
1958
-
1959
- (function (a) {
1960
- "function" !== typeof a.matches && (a.matches = a.msMatchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || function (a) {
1961
- a = (this.document || this.ownerDocument).querySelectorAll(a);
1962
-
1963
- for (var b = 0; a[b] && a[b] !== this;) {
1964
- ++b;
1965
- }
1966
-
1967
- return !!a[b];
1968
- });
1969
- "function" !== typeof a.closest && (a.closest = function (a) {
1970
- for (var b = this; b && 1 === b.nodeType;) {
1971
- if (b.matches(a)) return b;
1972
- b = b.parentNode;
1973
- }
1974
-
1975
- return null;
1976
- });
1977
- })(window.Element.prototype);
1978
- /*!
1979
- Element.getRootNode()
1980
- */
1981
-
1982
-
1983
- (function (c) {
1984
- function d(a) {
1985
- a = b(a);
1986
- return a && 11 === a.nodeType ? d(a.host) : a;
1987
- }
1988
-
1989
- function b(a) {
1990
- return a && a.parentNode ? b(a.parentNode) : a;
1991
- }
1992
-
1993
- "function" !== typeof c.getRootNode && (c.getRootNode = function (a) {
1994
- return a && a.composed ? d(this) : b(this);
1995
- });
1996
- })(Element.prototype);
1997
- /*!
1998
- Element.isConnected()
1999
- */
2000
-
2001
-
2002
- (function (a) {
2003
- "isConnected" in a || Object.defineProperty(a, "isConnected", {
2004
- configurable: !0,
2005
- enumerable: !0,
2006
- get: function get() {
2007
- var a = this.getRootNode({
2008
- composed: !0
2009
- });
2010
- return a && 9 === a.nodeType;
2011
- }
2012
- });
2013
- })(Element.prototype);
2014
- /*!
2015
- Element.remove()
2016
- */
2017
-
2018
-
2019
- (function (b) {
2020
- b.forEach(function (a) {
2021
- a.hasOwnProperty("remove") || Object.defineProperty(a, "remove", {
2022
- configurable: !0,
2023
- enumerable: !0,
2024
- writable: !0,
2025
- value: function value() {
2026
- null !== this.parentNode && this.parentNode.removeChild(this);
2027
- }
2028
- });
2029
- });
2030
- })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
2031
- /*!
2032
- Element.classList
2033
- */
2034
-
2035
-
2036
- !function (e) {
2037
- 'classList' in e || Object.defineProperty(e, "classList", {
2038
- get: function get() {
2039
- var e = this,
2040
- t = (e.getAttribute("class") || "").replace(/^\s+|\s$/g, "").split(/\s+/g);
2041
-
2042
- function n() {
2043
- t.length > 0 ? e.setAttribute("class", t.join(" ")) : e.removeAttribute("class");
2044
- }
2045
-
2046
- return "" === t[0] && t.splice(0, 1), t.toggle = function (e, i) {
2047
- void 0 !== i ? i ? t.add(e) : t.remove(e) : -1 !== t.indexOf(e) ? t.splice(t.indexOf(e), 1) : t.push(e), n();
2048
- }, t.add = function () {
2049
- for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++) {
2050
- -1 === t.indexOf(e[i]) && t.push(e[i]);
2051
- }
2052
-
2053
- n();
2054
- }, t.remove = function () {
2055
- for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++) {
2056
- -1 !== t.indexOf(e[i]) && t.splice(t.indexOf(e[i]), 1);
2057
- }
2058
-
2059
- n();
2060
- }, t.item = function (e) {
2061
- return t[e];
2062
- }, t.contains = function (e) {
2063
- return -1 !== t.indexOf(e);
2064
- }, t.replace = function (e, i) {
2065
- -1 !== t.indexOf(e) && t.splice(t.indexOf(e), 1, i), n();
2066
- }, t.value = e.getAttribute("class") || "", t;
2067
- }
2068
- });
2069
- }(Element.prototype);
2070
- /*!
2071
- DOMTokenList
2072
- */
2073
-
2074
- (function (b) {
2075
- try {
2076
- document.body.classList.add();
2077
- } catch (e) {
2078
- var c = b.add,
2079
- d = b.remove;
2080
-
2081
- b.add = function () {
2082
- for (var a = 0; a < arguments.length; a++) {
2083
- c.call(this, arguments[a]);
2084
- }
2085
- };
2086
-
2087
- b.remove = function () {
2088
- for (var a = 0; a < arguments.length; a++) {
2089
- d.call(this, arguments[a]);
2090
- }
2091
- };
2092
- }
2093
- })(DOMTokenList.prototype);
2094
-
2095
- /***/ })
2096
-
2097
- }]);
2098
- //# sourceMappingURL=polyfills-dom.js.map