@utrecht/web-component-library-stencil 1.0.0-alpha.121 → 1.0.0-alpha.125
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/README.md +21 -0
- package/dist/cjs/{index-b96d9af7.js → index-8cef21e1.js} +76 -58
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/utrecht-article.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-badge-counter.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-badge-data.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-badge-status.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-button_2.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-contact-card-template.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-custom-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-digid-button.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-document.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-eherkenning-logo.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-eidas-logo.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-form-field-description.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-form-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-form-field-textbox.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-form-toggle.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-heading-1.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-heading-2_3.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-heading-4.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-heading-5.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-heading-6.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-heading.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-html-content.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-afval.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-arrow.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-checkmark.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-cross.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-error.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-facebook.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-filter.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-information.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-instagram.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-list.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-loupe.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-melding.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-paspoort.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-rijbewijs.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-toeslag.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-trouwen.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-verhuizen.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-warning.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-whatsapp.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-zoomin.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-zoomout.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-logo-button.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-logo.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-page-content.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-page-footer.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-page-header.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-page.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-pagination.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-separator.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-sidenav.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-textbox.cjs.entry.js +1 -1
- package/dist/cjs/utrecht.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +9 -2
- package/dist/collection/icon/afval.stencil.js +19 -0
- package/dist/collection/icon/afval.svg +7 -0
- package/dist/collection/icon/dist/afval.svg +1 -0
- package/dist/collection/icon/dist/melding.svg +1 -0
- package/dist/collection/icon/dist/paspoort.svg +1 -0
- package/dist/collection/icon/dist/rijbewijs.svg +1 -0
- package/dist/collection/icon/dist/toeslag.svg +1 -0
- package/dist/collection/icon/dist/trouwen.svg +1 -0
- package/dist/collection/icon/dist/verhuizen.svg +1 -0
- package/dist/collection/icon/melding.stencil.js +17 -0
- package/dist/collection/icon/melding.svg +5 -0
- package/dist/collection/icon/paspoort.stencil.js +17 -0
- package/dist/collection/icon/paspoort.svg +5 -0
- package/dist/collection/icon/rijbewijs.stencil.js +20 -0
- package/dist/collection/icon/rijbewijs.svg +8 -0
- package/dist/collection/icon/toeslag.stencil.js +17 -0
- package/dist/collection/icon/toeslag.svg +5 -0
- package/dist/collection/icon/trouwen.stencil.js +16 -0
- package/dist/collection/icon/trouwen.svg +4 -0
- package/dist/collection/icon/verhuizen.stencil.js +21 -0
- package/dist/collection/icon/verhuizen.svg +9 -0
- package/dist/collection/node_modules/svgo/dist/svgo.browser.js +1 -1
- package/dist/collection/node_modules/svgo/lib/stringifier.js +326 -0
- package/dist/collection/node_modules/svgo/lib/svgo/coa.js +23 -21
- package/dist/collection/node_modules/svgo/lib/svgo/plugins.js +16 -0
- package/dist/collection/node_modules/svgo/lib/svgo-node.js +21 -14
- package/dist/collection/node_modules/svgo/lib/svgo.js +2 -5
- package/dist/collection/node_modules/svgo/plugins/inlineStyles.js +334 -259
- package/dist/collection/node_modules/svgo/plugins/prefixIds.js +9 -8
- package/dist/collection/node_modules/svgo/plugins/removeEmptyAttrs.js +19 -19
- package/dist/collection/node_modules/svgo/plugins/removeXMLNS.js +1 -0
- package/dist/collection/toptask-link/bem.js +33 -0
- package/dist/collection/toptask-nav/bem.js +19 -0
- package/dist/custom-elements/index.d.ts +42 -0
- package/dist/custom-elements/index.js +244 -132
- package/dist/esm/{index-26eb3bc0.js → index-dbad55a3.js} +76 -58
- package/dist/esm/loader.js +3 -3
- package/dist/esm/utrecht-article.entry.js +1 -1
- package/dist/esm/utrecht-badge-counter.entry.js +1 -1
- package/dist/esm/utrecht-badge-data.entry.js +1 -1
- package/dist/esm/utrecht-badge-status.entry.js +1 -1
- package/dist/esm/utrecht-breadcrumb.entry.js +1 -1
- package/dist/esm/utrecht-button_2.entry.js +1 -1
- package/dist/esm/utrecht-checkbox.entry.js +1 -1
- package/dist/esm/utrecht-contact-card-template.entry.js +1 -1
- package/dist/esm/utrecht-custom-checkbox.entry.js +1 -1
- package/dist/esm/utrecht-digid-button.entry.js +1 -1
- package/dist/esm/utrecht-document.entry.js +1 -1
- package/dist/esm/utrecht-eherkenning-logo.entry.js +1 -1
- package/dist/esm/utrecht-eidas-logo.entry.js +1 -1
- package/dist/esm/utrecht-form-field-checkbox.entry.js +1 -1
- package/dist/esm/utrecht-form-field-description.entry.js +1 -1
- package/dist/esm/utrecht-form-field-textarea.entry.js +1 -1
- package/dist/esm/utrecht-form-field-textbox.entry.js +1 -1
- package/dist/esm/utrecht-form-toggle.entry.js +1 -1
- package/dist/esm/utrecht-heading-1.entry.js +1 -1
- package/dist/esm/utrecht-heading-2_3.entry.js +1 -1
- package/dist/esm/utrecht-heading-4.entry.js +1 -1
- package/dist/esm/utrecht-heading-5.entry.js +1 -1
- package/dist/esm/utrecht-heading-6.entry.js +1 -1
- package/dist/esm/utrecht-heading.entry.js +1 -1
- package/dist/esm/utrecht-html-content.entry.js +1 -1
- package/dist/esm/utrecht-icon-afval.entry.js +15 -0
- package/dist/esm/utrecht-icon-arrow.entry.js +1 -1
- package/dist/esm/utrecht-icon-checkmark.entry.js +1 -1
- package/dist/esm/utrecht-icon-cross.entry.js +1 -1
- package/dist/esm/utrecht-icon-error.entry.js +1 -1
- package/dist/esm/utrecht-icon-facebook.entry.js +1 -1
- package/dist/esm/utrecht-icon-filter.entry.js +1 -1
- package/dist/esm/utrecht-icon-information.entry.js +1 -1
- package/dist/esm/utrecht-icon-instagram.entry.js +1 -1
- package/dist/esm/utrecht-icon-linkedin.entry.js +1 -1
- package/dist/esm/utrecht-icon-list.entry.js +1 -1
- package/dist/esm/utrecht-icon-loupe.entry.js +1 -1
- package/dist/esm/utrecht-icon-melding.entry.js +15 -0
- package/dist/esm/utrecht-icon-paspoort.entry.js +15 -0
- package/dist/esm/utrecht-icon-rijbewijs.entry.js +15 -0
- package/dist/esm/utrecht-icon-toeslag.entry.js +15 -0
- package/dist/esm/utrecht-icon-trouwen.entry.js +15 -0
- package/dist/esm/utrecht-icon-twitter.entry.js +1 -1
- package/dist/esm/utrecht-icon-verhuizen.entry.js +15 -0
- package/dist/esm/utrecht-icon-warning.entry.js +1 -1
- package/dist/esm/utrecht-icon-whatsapp.entry.js +1 -1
- package/dist/esm/utrecht-icon-zoomin.entry.js +1 -1
- package/dist/esm/utrecht-icon-zoomout.entry.js +1 -1
- package/dist/esm/utrecht-logo-button.entry.js +1 -1
- package/dist/esm/utrecht-logo.entry.js +1 -1
- package/dist/esm/utrecht-page-content.entry.js +1 -1
- package/dist/esm/utrecht-page-footer.entry.js +1 -1
- package/dist/esm/utrecht-page-header.entry.js +1 -1
- package/dist/esm/utrecht-page.entry.js +1 -1
- package/dist/esm/utrecht-pagination.entry.js +1 -1
- package/dist/esm/utrecht-separator.entry.js +1 -1
- package/dist/esm/utrecht-sidenav.entry.js +1 -1
- package/dist/esm/utrecht-textbox.entry.js +1 -1
- package/dist/esm/utrecht.js +3 -3
- package/dist/types/components.d.ts +91 -0
- package/dist/types/icon/afval.stencil.d.ts +3 -0
- package/dist/types/icon/melding.stencil.d.ts +3 -0
- package/dist/types/icon/paspoort.stencil.d.ts +3 -0
- package/dist/types/icon/rijbewijs.stencil.d.ts +3 -0
- package/dist/types/icon/toeslag.stencil.d.ts +3 -0
- package/dist/types/icon/trouwen.stencil.d.ts +3 -0
- package/dist/types/icon/verhuizen.stencil.d.ts +3 -0
- package/dist/utrecht/{p-868a0bba.entry.js → p-06d4e8da.entry.js} +1 -1
- package/dist/utrecht/p-0e908b3b.entry.js +1 -0
- package/dist/utrecht/{p-17780350.entry.js → p-12d3555b.entry.js} +1 -1
- package/dist/utrecht/{p-7a38f66a.entry.js → p-180ccec7.entry.js} +1 -1
- package/dist/utrecht/{p-1da559f8.entry.js → p-19697551.entry.js} +1 -1
- package/dist/utrecht/{p-afb4c348.entry.js → p-19bb7aea.entry.js} +1 -1
- package/dist/utrecht/{p-870e12af.entry.js → p-1b369d6f.entry.js} +1 -1
- package/dist/utrecht/{p-5d15e84b.entry.js → p-2038f779.entry.js} +1 -1
- package/dist/utrecht/{p-3e24ed61.entry.js → p-21b832ea.entry.js} +1 -1
- package/dist/utrecht/{p-20f92ab4.entry.js → p-29a17a39.entry.js} +1 -1
- package/dist/utrecht/p-2be490d7.entry.js +1 -0
- package/dist/utrecht/{p-a796b92c.entry.js → p-2ff6bfbb.entry.js} +1 -1
- package/dist/utrecht/{p-2323bbfd.entry.js → p-3672cbd0.entry.js} +1 -1
- package/dist/utrecht/{p-553e6ba1.entry.js → p-3bda190e.entry.js} +1 -1
- package/dist/utrecht/{p-fe653af7.entry.js → p-401d2b63.entry.js} +1 -1
- package/dist/utrecht/{p-5020a426.entry.js → p-45db7b13.entry.js} +1 -1
- package/dist/utrecht/{p-af501e0a.entry.js → p-49a2e309.entry.js} +1 -1
- package/dist/utrecht/{p-4e535c7a.entry.js → p-585963b2.entry.js} +1 -1
- package/dist/utrecht/{p-789a7faa.entry.js → p-5eec66c0.entry.js} +1 -1
- package/dist/utrecht/p-5f114e24.entry.js +1 -0
- package/dist/utrecht/p-60321853.entry.js +1 -0
- package/dist/utrecht/{p-3ae3418a.entry.js → p-673512bf.entry.js} +1 -1
- package/dist/utrecht/{p-1cf0d505.entry.js → p-6922d6e5.entry.js} +1 -1
- package/dist/utrecht/{p-e5e3cbea.entry.js → p-6a07112a.entry.js} +1 -1
- package/dist/utrecht/{p-1a90b0af.entry.js → p-6aec0d5e.entry.js} +1 -1
- package/dist/utrecht/p-72670926.entry.js +1 -0
- package/dist/utrecht/{p-035e822d.entry.js → p-7468ce00.entry.js} +1 -1
- package/dist/utrecht/{p-296bc971.entry.js → p-8075a496.entry.js} +1 -1
- package/dist/utrecht/{p-ef9afa65.entry.js → p-84481a4b.entry.js} +1 -1
- package/dist/utrecht/{p-39bbc849.entry.js → p-8856bd84.entry.js} +1 -1
- package/dist/utrecht/{p-5ff3783e.entry.js → p-88e09f6e.entry.js} +1 -1
- package/dist/utrecht/{p-1e3016db.entry.js → p-99d68ed5.entry.js} +1 -1
- package/dist/utrecht/p-9a7712ee.entry.js +1 -0
- package/dist/utrecht/{p-53066a36.entry.js → p-9bde6988.entry.js} +1 -1
- package/dist/utrecht/p-a41d30a7.js +1 -0
- package/dist/utrecht/{p-69b04365.entry.js → p-a62dbf0b.entry.js} +1 -1
- package/dist/utrecht/{p-f36cc556.entry.js → p-a82cf768.entry.js} +1 -1
- package/dist/utrecht/{p-dda26754.entry.js → p-b0860b62.entry.js} +1 -1
- package/dist/utrecht/{p-55c13344.entry.js → p-b3aa468d.entry.js} +1 -1
- package/dist/utrecht/{p-c693a4bf.entry.js → p-bedc995b.entry.js} +1 -1
- package/dist/utrecht/{p-e795e7df.entry.js → p-c22f500b.entry.js} +1 -1
- package/dist/utrecht/p-c314b6c1.entry.js +1 -0
- package/dist/utrecht/{p-cf5c03d9.entry.js → p-c7f7af31.entry.js} +1 -1
- package/dist/utrecht/{p-4c6a0858.entry.js → p-c948bdeb.entry.js} +1 -1
- package/dist/utrecht/{p-d6fdecc7.entry.js → p-ccd0835e.entry.js} +1 -1
- package/dist/utrecht/{p-a7380b45.entry.js → p-d21af965.entry.js} +1 -1
- package/dist/utrecht/{p-45081e70.entry.js → p-d24e72f1.entry.js} +1 -1
- package/dist/utrecht/{p-b94aa700.entry.js → p-d5cec830.entry.js} +1 -1
- package/dist/utrecht/{p-da606bd1.entry.js → p-e094341c.entry.js} +1 -1
- package/dist/utrecht/{p-a2df1fa7.entry.js → p-e1ab41a2.entry.js} +1 -1
- package/dist/utrecht/{p-2e827609.entry.js → p-e8d0b7bf.entry.js} +1 -1
- package/dist/utrecht/{p-110a1886.entry.js → p-e8f6c846.entry.js} +1 -1
- package/dist/utrecht/{p-08be432b.entry.js → p-e9ae2a68.entry.js} +1 -1
- package/dist/utrecht/{p-0a250ebf.entry.js → p-ea6f5e30.entry.js} +1 -1
- package/dist/utrecht/{p-33641307.entry.js → p-f0cea495.entry.js} +1 -1
- package/dist/utrecht/{p-625b2a85.entry.js → p-f1f0a2c6.entry.js} +1 -1
- package/dist/utrecht/{p-9ac24b32.entry.js → p-f2792d17.entry.js} +1 -1
- package/dist/utrecht/{p-92cc4f01.entry.js → p-f47ed55e.entry.js} +1 -1
- package/dist/utrecht/{p-b375c18d.entry.js → p-fb80f09f.entry.js} +1 -1
- package/dist/utrecht/utrecht.esm.js +1 -1
- package/package.json +4 -4
- package/dist/collection/node_modules/svgo/lib/svgo/js2svg.js +0 -337
- package/dist/utrecht/p-17bfa2b7.js +0 -1
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { textElems } = require('../../plugins/_collections.js');
|
|
4
|
-
|
|
5
|
-
var defaults = {
|
|
6
|
-
doctypeStart: '<!DOCTYPE',
|
|
7
|
-
doctypeEnd: '>',
|
|
8
|
-
procInstStart: '<?',
|
|
9
|
-
procInstEnd: '?>',
|
|
10
|
-
tagOpenStart: '<',
|
|
11
|
-
tagOpenEnd: '>',
|
|
12
|
-
tagCloseStart: '</',
|
|
13
|
-
tagCloseEnd: '>',
|
|
14
|
-
tagShortStart: '<',
|
|
15
|
-
tagShortEnd: '/>',
|
|
16
|
-
attrStart: '="',
|
|
17
|
-
attrEnd: '"',
|
|
18
|
-
commentStart: '<!--',
|
|
19
|
-
commentEnd: '-->',
|
|
20
|
-
cdataStart: '<![CDATA[',
|
|
21
|
-
cdataEnd: ']]>',
|
|
22
|
-
textStart: '',
|
|
23
|
-
textEnd: '',
|
|
24
|
-
indent: 4,
|
|
25
|
-
regEntities: /[&'"<>]/g,
|
|
26
|
-
regValEntities: /[&"<>]/g,
|
|
27
|
-
encodeEntity: encodeEntity,
|
|
28
|
-
pretty: false,
|
|
29
|
-
useShortTags: true,
|
|
30
|
-
eol: 'lf',
|
|
31
|
-
finalNewline: false,
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
var entities = {
|
|
35
|
-
'&': '&',
|
|
36
|
-
"'": ''',
|
|
37
|
-
'"': '"',
|
|
38
|
-
'>': '>',
|
|
39
|
-
'<': '<',
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Convert SVG-as-JS object to SVG (XML) string.
|
|
44
|
-
*
|
|
45
|
-
* @param {Object} data input data
|
|
46
|
-
* @param {Object} config config
|
|
47
|
-
*
|
|
48
|
-
* @return {Object} output data
|
|
49
|
-
*/
|
|
50
|
-
module.exports = function (data, config) {
|
|
51
|
-
return new JS2SVG(config).convert(data);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
function JS2SVG(config) {
|
|
55
|
-
if (config) {
|
|
56
|
-
this.config = Object.assign({}, defaults, config);
|
|
57
|
-
} else {
|
|
58
|
-
this.config = Object.assign({}, defaults);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
var indent = this.config.indent;
|
|
62
|
-
if (typeof indent == 'number' && !isNaN(indent)) {
|
|
63
|
-
this.config.indent = indent < 0 ? '\t' : ' '.repeat(indent);
|
|
64
|
-
} else if (typeof indent != 'string') {
|
|
65
|
-
this.config.indent = ' ';
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
if (this.config.eol === 'crlf') {
|
|
69
|
-
this.eol = '\r\n';
|
|
70
|
-
} else {
|
|
71
|
-
this.eol = '\n';
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if (this.config.pretty) {
|
|
75
|
-
this.config.doctypeEnd += this.eol;
|
|
76
|
-
this.config.procInstEnd += this.eol;
|
|
77
|
-
this.config.commentEnd += this.eol;
|
|
78
|
-
this.config.cdataEnd += this.eol;
|
|
79
|
-
this.config.tagShortEnd += this.eol;
|
|
80
|
-
this.config.tagOpenEnd += this.eol;
|
|
81
|
-
this.config.tagCloseEnd += this.eol;
|
|
82
|
-
this.config.textEnd += this.eol;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
this.indentLevel = 0;
|
|
86
|
-
this.textContext = null;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
function encodeEntity(char) {
|
|
90
|
-
return entities[char];
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Start conversion.
|
|
95
|
-
*
|
|
96
|
-
* @param {Object} data input data
|
|
97
|
-
*
|
|
98
|
-
* @return {String}
|
|
99
|
-
*/
|
|
100
|
-
JS2SVG.prototype.convert = function (data) {
|
|
101
|
-
var svg = '';
|
|
102
|
-
|
|
103
|
-
this.indentLevel++;
|
|
104
|
-
|
|
105
|
-
for (const item of data.children) {
|
|
106
|
-
if (item.type === 'element') {
|
|
107
|
-
svg += this.createElem(item);
|
|
108
|
-
}
|
|
109
|
-
if (item.type === 'text') {
|
|
110
|
-
svg += this.createText(item);
|
|
111
|
-
}
|
|
112
|
-
if (item.type === 'doctype') {
|
|
113
|
-
svg += this.createDoctype(item);
|
|
114
|
-
}
|
|
115
|
-
if (item.type === 'instruction') {
|
|
116
|
-
svg += this.createProcInst(item);
|
|
117
|
-
}
|
|
118
|
-
if (item.type === 'comment') {
|
|
119
|
-
svg += this.createComment(item);
|
|
120
|
-
}
|
|
121
|
-
if (item.type === 'cdata') {
|
|
122
|
-
svg += this.createCDATA(item);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
this.indentLevel--;
|
|
127
|
-
|
|
128
|
-
if (
|
|
129
|
-
this.config.finalNewline &&
|
|
130
|
-
this.indentLevel === 0 &&
|
|
131
|
-
svg.length > 0 &&
|
|
132
|
-
svg[svg.length - 1] !== '\n'
|
|
133
|
-
) {
|
|
134
|
-
svg += this.eol;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
return {
|
|
138
|
-
data: svg,
|
|
139
|
-
info: {
|
|
140
|
-
width: this.width,
|
|
141
|
-
height: this.height,
|
|
142
|
-
},
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Create indent string in accordance with the current node level.
|
|
148
|
-
*
|
|
149
|
-
* @return {String}
|
|
150
|
-
*/
|
|
151
|
-
JS2SVG.prototype.createIndent = function () {
|
|
152
|
-
var indent = '';
|
|
153
|
-
|
|
154
|
-
if (this.config.pretty && !this.textContext) {
|
|
155
|
-
indent = this.config.indent.repeat(this.indentLevel - 1);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
return indent;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Create doctype tag.
|
|
163
|
-
*
|
|
164
|
-
* @param {String} doctype doctype body string
|
|
165
|
-
*
|
|
166
|
-
* @return {String}
|
|
167
|
-
*/
|
|
168
|
-
JS2SVG.prototype.createDoctype = function (node) {
|
|
169
|
-
const { doctype } = node.data;
|
|
170
|
-
return this.config.doctypeStart + doctype + this.config.doctypeEnd;
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Create XML Processing Instruction tag.
|
|
175
|
-
*
|
|
176
|
-
* @param {Object} instruction instruction object
|
|
177
|
-
*
|
|
178
|
-
* @return {String}
|
|
179
|
-
*/
|
|
180
|
-
JS2SVG.prototype.createProcInst = function (node) {
|
|
181
|
-
const { name, value } = node;
|
|
182
|
-
return (
|
|
183
|
-
this.config.procInstStart + name + ' ' + value + this.config.procInstEnd
|
|
184
|
-
);
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Create comment tag.
|
|
189
|
-
*
|
|
190
|
-
* @param {String} comment comment body
|
|
191
|
-
*
|
|
192
|
-
* @return {String}
|
|
193
|
-
*/
|
|
194
|
-
JS2SVG.prototype.createComment = function (node) {
|
|
195
|
-
const { value } = node;
|
|
196
|
-
return this.config.commentStart + value + this.config.commentEnd;
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Create CDATA section.
|
|
201
|
-
*
|
|
202
|
-
* @param {String} cdata CDATA body
|
|
203
|
-
*
|
|
204
|
-
* @return {String}
|
|
205
|
-
*/
|
|
206
|
-
JS2SVG.prototype.createCDATA = function (node) {
|
|
207
|
-
const { value } = node;
|
|
208
|
-
return (
|
|
209
|
-
this.createIndent() + this.config.cdataStart + value + this.config.cdataEnd
|
|
210
|
-
);
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Create element tag.
|
|
215
|
-
*
|
|
216
|
-
* @param {Object} data element object
|
|
217
|
-
*
|
|
218
|
-
* @return {String}
|
|
219
|
-
*/
|
|
220
|
-
JS2SVG.prototype.createElem = function (data) {
|
|
221
|
-
// beautiful injection for obtaining SVG information :)
|
|
222
|
-
if (
|
|
223
|
-
data.name === 'svg' &&
|
|
224
|
-
data.attributes.width != null &&
|
|
225
|
-
data.attributes.height != null
|
|
226
|
-
) {
|
|
227
|
-
this.width = data.attributes.width;
|
|
228
|
-
this.height = data.attributes.height;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// empty element and short tag
|
|
232
|
-
if (data.children.length === 0) {
|
|
233
|
-
if (this.config.useShortTags) {
|
|
234
|
-
return (
|
|
235
|
-
this.createIndent() +
|
|
236
|
-
this.config.tagShortStart +
|
|
237
|
-
data.name +
|
|
238
|
-
this.createAttrs(data) +
|
|
239
|
-
this.config.tagShortEnd
|
|
240
|
-
);
|
|
241
|
-
} else {
|
|
242
|
-
return (
|
|
243
|
-
this.createIndent() +
|
|
244
|
-
this.config.tagShortStart +
|
|
245
|
-
data.name +
|
|
246
|
-
this.createAttrs(data) +
|
|
247
|
-
this.config.tagOpenEnd +
|
|
248
|
-
this.config.tagCloseStart +
|
|
249
|
-
data.name +
|
|
250
|
-
this.config.tagCloseEnd
|
|
251
|
-
);
|
|
252
|
-
}
|
|
253
|
-
// non-empty element
|
|
254
|
-
} else {
|
|
255
|
-
var tagOpenStart = this.config.tagOpenStart,
|
|
256
|
-
tagOpenEnd = this.config.tagOpenEnd,
|
|
257
|
-
tagCloseStart = this.config.tagCloseStart,
|
|
258
|
-
tagCloseEnd = this.config.tagCloseEnd,
|
|
259
|
-
openIndent = this.createIndent(),
|
|
260
|
-
closeIndent = this.createIndent(),
|
|
261
|
-
processedData = '',
|
|
262
|
-
dataEnd = '';
|
|
263
|
-
|
|
264
|
-
if (this.textContext) {
|
|
265
|
-
tagOpenStart = defaults.tagOpenStart;
|
|
266
|
-
tagOpenEnd = defaults.tagOpenEnd;
|
|
267
|
-
tagCloseStart = defaults.tagCloseStart;
|
|
268
|
-
tagCloseEnd = defaults.tagCloseEnd;
|
|
269
|
-
openIndent = '';
|
|
270
|
-
} else if (data.isElem(textElems)) {
|
|
271
|
-
tagOpenEnd = defaults.tagOpenEnd;
|
|
272
|
-
tagCloseStart = defaults.tagCloseStart;
|
|
273
|
-
closeIndent = '';
|
|
274
|
-
this.textContext = data;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
processedData += this.convert(data).data;
|
|
278
|
-
|
|
279
|
-
if (this.textContext == data) {
|
|
280
|
-
this.textContext = null;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
return (
|
|
284
|
-
openIndent +
|
|
285
|
-
tagOpenStart +
|
|
286
|
-
data.name +
|
|
287
|
-
this.createAttrs(data) +
|
|
288
|
-
tagOpenEnd +
|
|
289
|
-
processedData +
|
|
290
|
-
dataEnd +
|
|
291
|
-
closeIndent +
|
|
292
|
-
tagCloseStart +
|
|
293
|
-
data.name +
|
|
294
|
-
tagCloseEnd
|
|
295
|
-
);
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Create element attributes.
|
|
301
|
-
*
|
|
302
|
-
* @param {Object} elem attributes object
|
|
303
|
-
*
|
|
304
|
-
* @return {String}
|
|
305
|
-
*/
|
|
306
|
-
JS2SVG.prototype.createAttrs = function (element) {
|
|
307
|
-
let attrs = '';
|
|
308
|
-
for (const [name, value] of Object.entries(element.attributes)) {
|
|
309
|
-
if (value !== undefined) {
|
|
310
|
-
const encodedValue = value
|
|
311
|
-
.toString()
|
|
312
|
-
.replace(this.config.regValEntities, this.config.encodeEntity);
|
|
313
|
-
attrs +=
|
|
314
|
-
' ' + name + this.config.attrStart + encodedValue + this.config.attrEnd;
|
|
315
|
-
} else {
|
|
316
|
-
attrs += ' ' + name;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return attrs;
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Create text node.
|
|
324
|
-
*
|
|
325
|
-
* @param {String} text text
|
|
326
|
-
*
|
|
327
|
-
* @return {String}
|
|
328
|
-
*/
|
|
329
|
-
JS2SVG.prototype.createText = function (node) {
|
|
330
|
-
const { value } = node;
|
|
331
|
-
return (
|
|
332
|
-
this.createIndent() +
|
|
333
|
-
this.config.textStart +
|
|
334
|
-
value.replace(this.config.regEntities, this.config.encodeEntity) +
|
|
335
|
-
(this.textContext ? '' : this.config.textEnd)
|
|
336
|
-
);
|
|
337
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let e,t,l,n=!1,s=!1,o=!1,i=!1,r=!1;const c="undefined"!=typeof window?window:{},f=c.document||{head:{}},a={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,l,n)=>e.addEventListener(t,l,n),rel:(e,t,l,n)=>e.removeEventListener(t,l,n),ce:(e,t)=>new CustomEvent(e,t)},u=e=>Promise.resolve(e),$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),d=new WeakMap,h=e=>"sc-"+e.o,b={},p=e=>"object"==(e=typeof e)||"function"===e,y=(e,t,...l)=>{let n=null,s=null,o=null,i=!1,r=!1,c=[];const f=t=>{for(let l=0;l<t.length;l++)n=t[l],Array.isArray(n)?f(n):null!=n&&"boolean"!=typeof n&&((i="function"!=typeof e&&!p(n))&&(n+=""),i&&r?c[c.length-1].i+=n:c.push(i?m(null,n):n),r=i)};if(f(l),t){t.key&&(s=t.key),t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=m(e,null);return a.u=t,c.length>0&&(a.$=c),a.h=s,a.p=o,a},m=(e,t)=>({t:0,m:e,i:t,g:null,$:null,u:null,h:null,p:null}),w={},g=(e,t,l,n,s,o)=>{if(l!==n){let i=ee(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,s=S(l),o=S(n);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("key"===t);else if(i||"o"!==t[0]||"n"!==t[1]){const r=p(n);if((i||r&&null!==n)&&!s)try{if(e.tagName.includes("-"))e[t]=n;else{let s=null==n?"":n;"list"===t?i=!1:null!=l&&e[t]==s||(e[t]=s)}}catch(e){}null==n||!1===n?!1===n&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&o||s)&&!r&&e.setAttribute(t,n=!0===n?"":n)}else t="-"===t[2]?t.slice(3):ee(c,r)?r.slice(2):r[2]+t.slice(3),l&&a.rel(e,t,l,!1),n&&a.ael(e,t,n,!1)}},v=/\s/,S=e=>e?e.split(v):[],j=(e,t,l,n)=>{const s=11===t.g.nodeType&&t.g.host?t.g.host:t.g,o=e&&e.u||b,i=t.u||b;for(n in o)n in i||g(s,n,o[n],void 0,l,t.t);for(n in i)g(s,n,o[n],i[n],l,t.t)},k=(s,r,c,a)=>{let u,$,d,h=r.$[c],b=0;if(n||(o=!0,"slot"===h.m&&(e&&a.classList.add(e+"-s"),h.t|=h.$?2:1)),null!==h.i)u=h.g=f.createTextNode(h.i);else if(1&h.t)u=h.g=f.createTextNode("");else{if(i||(i="svg"===h.m),u=h.g=f.createElementNS(i?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&h.t?"slot-fb":h.m),i&&"foreignObject"===h.m&&(i=!1),j(null,h,i),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),h.$)for(b=0;b<h.$.length;++b)$=k(s,h,b,u),$&&u.appendChild($);"svg"===h.m?i=!1:"foreignObject"===u.tagName&&(i=!0)}return u["s-hn"]=l,3&h.t&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=h.p||"",d=s&&s.$&&s.$[c],d&&d.m===h.m&&s.g&&O(s.g,!1)),u},O=(e,t)=>{a.t|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const s=n[e];s["s-hn"]!==l&&s["s-ol"]&&(x(s).insertBefore(s,T(s)),s["s-ol"].remove(),s["s-ol"]=void 0,o=!0),t&&O(s,t)}a.t&=-2},M=(e,t,n,s,o,i)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===l&&(c=c.shadowRoot);o<=i;++o)s[o]&&(r=k(null,n,o,e),r&&(s[o].g=r,c.insertBefore(r,T(t))))},C=(e,t,l,n,o)=>{for(;t<=l;++t)(n=e[t])&&(s=!0,(o=n.g)["s-ol"]?o["s-ol"].remove():O(o,!0),o.remove())},R=(e,t)=>e.m===t.m&&("slot"===e.m?e.p===t.p:e.h===t.h),T=e=>e&&e["s-ol"]||e,x=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,P=(e,t)=>{const l=t.g=e.g,n=e.$,s=t.$,o=t.m,r=t.i;let c;null===r?(i="svg"===o||"foreignObject"!==o&&i,"slot"===o||j(e,t,i),null!==n&&null!==s?((e,t,l,n)=>{let s,o,i=0,r=0,c=0,f=0,a=t.length-1,u=t[0],$=t[a],d=n.length-1,h=n[0],b=n[d];for(;i<=a&&r<=d;)if(null==u)u=t[++i];else if(null==$)$=t[--a];else if(null==h)h=n[++r];else if(null==b)b=n[--d];else if(R(u,h))P(u,h),u=t[++i],h=n[++r];else if(R($,b))P($,b),$=t[--a],b=n[--d];else if(R(u,b))"slot"!==u.m&&"slot"!==b.m||O(u.g.parentNode,!1),P(u,b),e.insertBefore(u.g,$.g.nextSibling),u=t[++i],b=n[--d];else if(R($,h))"slot"!==u.m&&"slot"!==b.m||O($.g.parentNode,!1),P($,h),e.insertBefore($.g,u.g),$=t[--a],h=n[++r];else{for(c=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].h&&t[f].h===h.h){c=f;break}c>=0?(o=t[c],o.m!==h.m?s=k(t&&t[r],l,c,e):(P(o,h),t[c]=void 0,s=o.g),h=n[++r]):(s=k(t&&t[r],l,r,e),h=n[++r]),s&&x(u.g).insertBefore(s,T(u.g))}i>a?M(e,null==n[d+1]?null:n[d+1].g,l,n,r,d):r>d&&C(t,i,a)})(l,n,t,s):null!==s?(null!==e.i&&(l.textContent=""),M(l,null,t,s,0,s.length-1)):null!==n&&C(n,0,n.length-1),i&&"svg"===o&&(i=!1)):(c=l["s-cr"])?c.parentNode.textContent=r:e.i!==r&&(l.data=r)},E=e=>{let t,l,n,s,o,i,r=e.childNodes;for(l=0,n=r.length;l<n;l++)if(t=r[l],1===t.nodeType){if(t["s-sr"])for(o=t["s-sn"],t.hidden=!1,s=0;s<n;s++)if(i=r[s].nodeType,r[s]["s-hn"]!==t["s-hn"]||""!==o){if(1===i&&o===r[s].getAttribute("slot")){t.hidden=!0;break}}else if(1===i||3===i&&""!==r[s].textContent.trim()){t.hidden=!0;break}E(t)}},A=[],F=e=>{let t,l,n,o,i,r,c=0,f=e.childNodes,a=f.length;for(;c<a;c++){if(t=f[c],t["s-sr"]&&(l=t["s-cr"])&&l.parentNode)for(n=l.parentNode.childNodes,o=t["s-sn"],r=n.length-1;r>=0;r--)l=n[r],l["s-cn"]||l["s-nr"]||l["s-hn"]===t["s-hn"]||(L(l,o)?(i=A.find((e=>e.v===l)),s=!0,l["s-sn"]=l["s-sn"]||o,i?i.S=t:A.push({S:t,v:l}),l["s-sr"]&&A.map((e=>{L(e.v,l["s-sn"])&&(i=A.find((e=>e.v===l)),i&&!e.S&&(e.S=i.S))}))):A.some((e=>e.v===l))||A.push({v:l}));1===t.nodeType&&F(t)}},L=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,N=e=>X(e).j,U=(e,t,l)=>{const n=N(e);return{emit:e=>W(n,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},W=(e,t,l)=>{const n=a.ce(t,l);return e.dispatchEvent(n),n},q=(e,t)=>{t&&!e.k&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.k=t)))},H=(e,t)=>{if(e.t|=16,!(4&e.t))return q(e,e.O),ue((()=>V(e,t)));e.t|=512},V=(e,t)=>{const l=e.M;return G(void 0,(()=>_(e,l,t)))},_=async(e,t,l)=>{const n=e.j,s=n["s-rc"];l&&(e=>{const t=e.C,l=e.j,n=t.t,s=((e,t)=>{let l=h(t),n=se.get(l);if(e=11===e.nodeType?e:f,n)if("string"==typeof n){let t,s=d.get(e=e.head||e);s||d.set(e,s=new Set),s.has(l)||(t=f.createElement("style"),t.innerHTML=n,e.insertBefore(t,e.querySelector("link")),s&&s.add(l))}else e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return l})(l.shadowRoot?l.shadowRoot:l.getRootNode(),t);10&n&&(l["s-sc"]=s,l.classList.add(s+"-h"))})(e);z(e,t),s&&(s.map((e=>e())),n["s-rc"]=void 0);{const t=n["s-p"],l=()=>B(e);0===t.length?l():(Promise.all(t).then(l),e.t|=4,t.length=0)}},z=(i,r)=>{try{r=r.render(),i.t&=-17,i.t|=2,((i,r)=>{const c=i.j,u=i.C,$=i.R||m(null,null),d=(e=>e&&e.m===w)(r)?r:y(null,null,r);if(l=c.tagName,u.T&&(d.u=d.u||{},u.T.map((([e,t])=>d.u[t]=c[e]))),d.m=null,d.t|=4,i.R=d,d.g=$.g=c.shadowRoot||c,e=c["s-sc"],t=c["s-cr"],n=0!=(1&u.t),s=!1,P($,d),a.t|=1,o){let e,t,l,n,s,o;F(d.g);let i=0;for(;i<A.length;i++)e=A[i],t=e.v,t["s-ol"]||(l=f.createTextNode(""),l["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=l,t));for(i=0;i<A.length;i++)if(e=A[i],t=e.v,e.S){for(n=e.S.parentNode,s=e.S.nextSibling,l=t["s-ol"];l=l.previousSibling;)if(o=l["s-nr"],o&&o["s-sn"]===t["s-sn"]&&n===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){s=o;break}(!s&&n!==t.parentNode||t.nextSibling!==s)&&t!==s&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),n.insertBefore(t,s))}else 1===t.nodeType&&(t.hidden=!0)}s&&E(d.g),a.t&=-2,A.length=0})(i,r)}catch(e){te(e,i.j)}return null},B=e=>{const t=e.j,l=e.O;64&e.t||(e.t|=64,I(t),e.P(t),l||D()),e.k&&(e.k(),e.k=void 0),512&e.t&&ae((()=>H(e,!1))),e.t&=-517},D=()=>{I(f.documentElement),ae((()=>W(c,"appload",{detail:{namespace:"utrecht"}})))},G=(e,t)=>e&&e.then?e.then(t):t(),I=e=>e.classList.add("hydrated"),J=(e,t,l)=>{if(t.A){const n=Object.entries(t.A),s=e.prototype;if(n.map((([e,[n]])=>{(31&n||2&l&&32&n)&&Object.defineProperty(s,e,{get(){return((e,t)=>X(this).F.get(t))(0,e)},set(l){((e,t,l,n)=>{const s=X(e),o=s.F.get(t),i=s.t,r=s.M;l=((e,t)=>null==e||p(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,n.A[t][0]),8&i&&void 0!==o||l===o||(s.F.set(t,l),r&&2==(18&i)&&H(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;s.attributeChangedCallback=function(e,t,n){a.jmp((()=>{const t=l.get(e);this.hasOwnProperty(t)&&(n=this[t],delete this[t]),this[t]=(null!==n||"boolean"!=typeof this[t])&&n}))},e.observedAttributes=n.filter((([e,t])=>15&t[0])).map((([e,n])=>{const s=n[1]||e;return l.set(s,e),512&n[0]&&t.T.push([e,s]),s}))}}return e},K=(e,t={})=>{const l=[],n=t.exclude||[],s=c.customElements,o=f.head,i=o.querySelector("meta[charset]"),r=f.createElement("style"),u=[];let d,b=!0;Object.assign(a,t),a.l=new URL(t.resourcesUrl||"./",f.baseURI).href,e.map((e=>e[1].map((t=>{const o={t:t[0],o:t[1],A:t[2],L:t[3]};o.A=t[2],o.T=[];const i=o.o,r=class extends HTMLElement{constructor(e){super(e),Z(e=this,o),1&o.t&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),b?u.push(this):a.jmp((()=>(e=>{if(0==(1&a.t)){const t=X(e),l=t.C,n=()=>{};if(!(1&t.t)){t.t|=1,12&l.t&&(e=>{const t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let l=e;for(;l=l.parentNode||l.host;)if(l["s-p"]){q(t,t.O=l);break}}l.A&&Object.entries(l.A).map((([t,[l]])=>{if(31&l&&e.hasOwnProperty(t)){const l=e[t];delete e[t],e[t]=l}})),(async(e,t,l,n,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=ne(l)).then){const e=()=>{};s=await s,e()}s.isProxied||(J(s,l,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){te(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=h(l);if(!se.has(t)){const n=()=>{};((e,t,l)=>{let n=se.get(e);$&&l?(n=n||new CSSStyleSheet,n.replace(t)):n=t,se.set(e,n)})(t,e,!!(1&l.t)),n()}}}const o=t.O,i=()=>H(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,l)}n()}})(this)))}disconnectedCallback(){a.jmp((()=>{}))}componentOnReady(){return X(this).N}};o.U=e[0],n.includes(i)||s.get(i)||(l.push(i),s.define(i,J(r,o,1)))})))),r.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles",""),o.insertBefore(r,i?i.nextSibling:o.firstChild),b=!1,u.length?u.map((e=>e.connectedCallback())):a.jmp((()=>d=setTimeout(D,30)))},Q=new WeakMap,X=e=>Q.get(e),Y=(e,t)=>Q.set(t.M=e,t),Z=(e,t)=>{const l={t:0,j:e,C:t,F:new Map};return l.N=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],Q.set(e,l)},ee=(e,t)=>t in e,te=(e,t)=>(0,console.error)(e,t),le=new Map,ne=e=>{const t=e.o.replace(/-/g,"_"),l=e.U,n=le.get(l);return n?n[t]:import(`./${l}.entry.js`).then((e=>(le.set(l,e),e[t])),te)},se=new Map,oe=[],ie=[],re=(e,t)=>l=>{e.push(l),r||(r=!0,t&&4&a.t?ae(fe):a.raf(fe))},ce=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){te(e)}e.length=0},fe=()=>{ce(oe),ce(ie),(r=oe.length>0)&&a.raf(fe)},ae=e=>u().then(e),ue=re(ie,!0);export{K as b,U as c,N as g,y as h,u as p,Y as r}
|