proto-table-wc 0.0.386 → 0.0.388
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/demo-table_2.cjs.entry.js +1 -1
- package/dist/cjs/{index-0e443faa.js → index-0be3c3a3.js} +32 -0
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/proto-table-wc.cjs.js +6 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/demo-table_2.entry.js +1 -1
- package/dist/esm/{index-a5ca8511.js → index-851629b1.js} +32 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/proto-table-wc.js +3 -2
- package/dist/proto-table-wc/{p-ecd80331.entry.js → p-62dd685d.entry.js} +1 -1
- package/dist/proto-table-wc/p-83af3a87.js +2 -0
- package/dist/proto-table-wc/proto-table-wc.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +9 -0
- package/loader/index.d.ts +9 -0
- package/package.json +3 -3
- package/dist/proto-table-wc/p-c8e40d57.js +0 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-0be3c3a3.js');
|
6
6
|
|
7
7
|
const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
|
8
8
|
|
@@ -68,6 +68,18 @@ const isComplexType = (o) => {
|
|
68
68
|
o = typeof o;
|
69
69
|
return o === 'object' || o === 'function';
|
70
70
|
};
|
71
|
+
/**
|
72
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
73
|
+
* out of a DOM's head.
|
74
|
+
*
|
75
|
+
* @param doc The DOM containing the `head` to query against
|
76
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
77
|
+
* exists or the tag has no content.
|
78
|
+
*/
|
79
|
+
function queryNonceMetaTagContent(doc) {
|
80
|
+
var _a, _b, _c;
|
81
|
+
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
82
|
+
}
|
71
83
|
/**
|
72
84
|
* Production h() function based on Preact by
|
73
85
|
* Jason Miller (@developit)
|
@@ -204,6 +216,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
204
216
|
styles.set(scopeId, style);
|
205
217
|
};
|
206
218
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
219
|
+
var _a;
|
207
220
|
let scopeId = getScopeId(cmpMeta);
|
208
221
|
const style = styles.get(scopeId);
|
209
222
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
@@ -223,6 +236,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
223
236
|
styleElm = doc.createElement('style');
|
224
237
|
styleElm.innerHTML = style;
|
225
238
|
}
|
239
|
+
// Apply CSP nonce to the style tag if it exists
|
240
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
241
|
+
if (nonce != null) {
|
242
|
+
styleElm.setAttribute('nonce', nonce);
|
243
|
+
}
|
226
244
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
227
245
|
}
|
228
246
|
if (appliedStyles) {
|
@@ -1142,6 +1160,7 @@ const disconnectedCallback = (elm) => {
|
|
1142
1160
|
}
|
1143
1161
|
};
|
1144
1162
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
1163
|
+
var _a;
|
1145
1164
|
const endBootstrap = createTime();
|
1146
1165
|
const cmpTags = [];
|
1147
1166
|
const exclude = options.exclude || [];
|
@@ -1215,6 +1234,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1215
1234
|
{
|
1216
1235
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
1217
1236
|
visibilityStyle.setAttribute('data-styles', '');
|
1237
|
+
// Apply CSP nonce to the style tag if it exists
|
1238
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
1239
|
+
if (nonce != null) {
|
1240
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
1241
|
+
}
|
1218
1242
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
1219
1243
|
}
|
1220
1244
|
// Process deferred connectedCallbacks now all components have been registered
|
@@ -1230,6 +1254,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1230
1254
|
// Fallback appLoad event
|
1231
1255
|
endBootstrap();
|
1232
1256
|
};
|
1257
|
+
/**
|
1258
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
1259
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
1260
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
1261
|
+
* @returns void
|
1262
|
+
*/
|
1263
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
1233
1264
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
1234
1265
|
const getHostRef = (ref) => hostRefs.get(ref);
|
1235
1266
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
@@ -1340,3 +1371,4 @@ exports.bootstrapLazy = bootstrapLazy;
|
|
1340
1371
|
exports.h = h;
|
1341
1372
|
exports.promiseResolve = promiseResolve;
|
1342
1373
|
exports.registerInstance = registerInstance;
|
1374
|
+
exports.setNonce = setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-0be3c3a3.js');
|
6
6
|
|
7
7
|
/*
|
8
|
-
Stencil Client Patch Esm v2.
|
8
|
+
Stencil Client Patch Esm v2.22.1 | MIT Licensed | https://stenciljs.com
|
9
9
|
*/
|
10
10
|
const patchEsm = () => {
|
11
11
|
return index.promiseResolve();
|
@@ -18,4 +18,5 @@ const defineCustomElements = (win, options) => {
|
|
18
18
|
});
|
19
19
|
};
|
20
20
|
|
21
|
+
exports.setNonce = index.setNonce;
|
21
22
|
exports.defineCustomElements = defineCustomElements;
|
@@ -1,9 +1,11 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
const index = require('./index-0be3c3a3.js');
|
4
6
|
|
5
7
|
/*
|
6
|
-
Stencil Client Patch Browser v2.
|
8
|
+
Stencil Client Patch Browser v2.22.1 | MIT Licensed | https://stenciljs.com
|
7
9
|
*/
|
8
10
|
const patchBrowser = () => {
|
9
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-table-wc.cjs.js', document.baseURI).href));
|
@@ -17,3 +19,5 @@ const patchBrowser = () => {
|
|
17
19
|
patchBrowser().then(options => {
|
18
20
|
return index.bootstrapLazy([["demo-table_2.cjs",[[1,"demo-table"],[0,"proto-table",{"data":[16],"details":[8],"fields":[16],"expanded":[32],"sort":[32],"clicks":[32]}]]]], options);
|
19
21
|
});
|
22
|
+
|
23
|
+
exports.setNonce = index.setNonce;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
1
|
+
import { r as registerInstance, h } from './index-851629b1.js';
|
2
2
|
|
3
3
|
const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
|
4
4
|
|
@@ -46,6 +46,18 @@ const isComplexType = (o) => {
|
|
46
46
|
o = typeof o;
|
47
47
|
return o === 'object' || o === 'function';
|
48
48
|
};
|
49
|
+
/**
|
50
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
51
|
+
* out of a DOM's head.
|
52
|
+
*
|
53
|
+
* @param doc The DOM containing the `head` to query against
|
54
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
55
|
+
* exists or the tag has no content.
|
56
|
+
*/
|
57
|
+
function queryNonceMetaTagContent(doc) {
|
58
|
+
var _a, _b, _c;
|
59
|
+
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
60
|
+
}
|
49
61
|
/**
|
50
62
|
* Production h() function based on Preact by
|
51
63
|
* Jason Miller (@developit)
|
@@ -182,6 +194,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
182
194
|
styles.set(scopeId, style);
|
183
195
|
};
|
184
196
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
197
|
+
var _a;
|
185
198
|
let scopeId = getScopeId(cmpMeta);
|
186
199
|
const style = styles.get(scopeId);
|
187
200
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
@@ -201,6 +214,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
201
214
|
styleElm = doc.createElement('style');
|
202
215
|
styleElm.innerHTML = style;
|
203
216
|
}
|
217
|
+
// Apply CSP nonce to the style tag if it exists
|
218
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
219
|
+
if (nonce != null) {
|
220
|
+
styleElm.setAttribute('nonce', nonce);
|
221
|
+
}
|
204
222
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
205
223
|
}
|
206
224
|
if (appliedStyles) {
|
@@ -1120,6 +1138,7 @@ const disconnectedCallback = (elm) => {
|
|
1120
1138
|
}
|
1121
1139
|
};
|
1122
1140
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
1141
|
+
var _a;
|
1123
1142
|
const endBootstrap = createTime();
|
1124
1143
|
const cmpTags = [];
|
1125
1144
|
const exclude = options.exclude || [];
|
@@ -1193,6 +1212,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1193
1212
|
{
|
1194
1213
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
1195
1214
|
visibilityStyle.setAttribute('data-styles', '');
|
1215
|
+
// Apply CSP nonce to the style tag if it exists
|
1216
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
1217
|
+
if (nonce != null) {
|
1218
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
1219
|
+
}
|
1196
1220
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
1197
1221
|
}
|
1198
1222
|
// Process deferred connectedCallbacks now all components have been registered
|
@@ -1208,6 +1232,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1208
1232
|
// Fallback appLoad event
|
1209
1233
|
endBootstrap();
|
1210
1234
|
};
|
1235
|
+
/**
|
1236
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
1237
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
1238
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
1239
|
+
* @returns void
|
1240
|
+
*/
|
1241
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
1211
1242
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
1212
1243
|
const getHostRef = (ref) => hostRefs.get(ref);
|
1213
1244
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
@@ -1314,4 +1345,4 @@ const flush = () => {
|
|
1314
1345
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
1315
1346
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
1316
1347
|
|
1317
|
-
export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r };
|
1348
|
+
export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/loader.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-851629b1.js';
|
2
|
+
export { s as setNonce } from './index-851629b1.js';
|
2
3
|
|
3
4
|
/*
|
4
|
-
Stencil Client Patch Esm v2.
|
5
|
+
Stencil Client Patch Esm v2.22.1 | MIT Licensed | https://stenciljs.com
|
5
6
|
*/
|
6
7
|
const patchEsm = () => {
|
7
8
|
return promiseResolve();
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-851629b1.js';
|
2
|
+
export { s as setNonce } from './index-851629b1.js';
|
2
3
|
|
3
4
|
/*
|
4
|
-
Stencil Client Patch Browser v2.
|
5
|
+
Stencil Client Patch Browser v2.22.1 | MIT Licensed | https://stenciljs.com
|
5
6
|
*/
|
6
7
|
const patchBrowser = () => {
|
7
8
|
const importMeta = import.meta.url;
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as e}from"./p-
|
1
|
+
import{r as t,h as e}from"./p-83af3a87.js";const r=class{constructor(r){t(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=t=>{const{tags:r=[]}=t;return e("div",{class:"detailWrapper"},e("span",null,r.length," details..."),e("ul",null,r.map((t=>e("li",null,t)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:t,items:e,fields:r}=this;t.data=e,t.fields=r,t.details=this.renderDetails}render(){return e("proto-table",{ref:t=>this.table=t})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){t(this,r),this.protoIcon=(t,r,l=24)=>{const o=s[t];return e("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},e("title",null,(t=>i[t])(t)),e("g",{fill:r},e("path",{d:o})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(t,e)=>()=>{0===t&&(this.expanded=this.expanded===e?void 0:e)},this.handleSortClick=t=>()=>{this.sort===t?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=t,this.clicks=1)},this.iconFor=t=>this.sort===t&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:t,iconFor:r,protoIcon:s}=this;return e("div",{class:"header"},t.map((({label:t},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return e("div",{class:l,onClick:this.handleSortClick(i)},s(o),e("span",null,t))})))},this.row=(t,r)=>{const{fields:s,protoIcon:i}=this;return e("div",{class:"rowContainer"},e("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>e("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),t[s])))),this.details&&this.expanded===r&&this.details(t))},this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0}render(){const t=this.data||[];return e("div",{class:"table"},this.header(),t.map(((t,e)=>this.row(t,e))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
let e,t,n=!1,l=!1;const o={},s=e=>"object"==(e=typeof e)||"function"===e;function r(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const i=(e,t,...n)=>{let l=null,o=!1,r=!1;const i=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!s(l))&&(l+=""),o&&r?i[i.length-1].t+=l:i.push(o?c(null,l):l),r=o)};if(u(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const a=c(e,null);return a.l=t,i.length>0&&(a.o=i),a},c=(e,t)=>({i:0,u:e,t,h:null,o:null,l:null}),u={},a=new WeakMap,f=e=>"sc-"+e.p,d=(e,t,n,l,o,r)=>{if(n!==l){let i=D(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=p(n),s=p(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const c=s(l);if((i||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||o)&&!c&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):D(z,c)?c.slice(2):c[2]+t.slice(3),n&&G.rel(e,t,n,!1),l&&G.ael(e,t,l,!1)}},h=/\s/,p=e=>e?e.split(h):[],$=(e,t,n,l)=>{const s=11===t.h.nodeType&&t.h.host?t.h.host:t.h,r=e&&e.l||o,i=t.l||o;for(l in r)l in i||d(s,l,r[l],void 0,n,t.i);for(l in i)d(s,l,r[l],i[l],n,t.i)},m=(t,l,o)=>{const s=l.o[o];let r,i,c=0;if(null!==s.t)r=s.h=B.createTextNode(s.t);else{if(n||(n="svg"===s.u),r=s.h=B.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),n&&"foreignObject"===s.u&&(n=!1),$(null,s,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),s.o)for(c=0;c<s.o.length;++c)i=m(t,s,c),i&&r.appendChild(i);"svg"===s.u?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},y=(e,n,l,o,s,r)=>{let i,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);s<=r;++s)o[s]&&(i=m(null,l,s),i&&(o[s].h=i,c.insertBefore(i,n)))},w=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.h,g(l),o.remove())},b=(e,t)=>e.u===t.u,v=(e,t)=>{const l=t.h=e.h,o=e.o,s=t.o,r=t.u,i=t.t;null===i?(n="svg"===r||"foreignObject"!==r&&n,$(e,t,n),null!==o&&null!==s?((e,t,n,l)=>{let o,s=0,r=0,i=t.length-1,c=t[0],u=t[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&r<=a;)null==c?c=t[++s]:null==u?u=t[--i]:null==f?f=l[++r]:null==d?d=l[--a]:b(c,f)?(v(c,f),c=t[++s],f=l[++r]):b(u,d)?(v(u,d),u=t[--i],d=l[--a]):b(c,d)?(v(c,d),e.insertBefore(c.h,u.h.nextSibling),c=t[++s],d=l[--a]):b(u,f)?(v(u,f),e.insertBefore(u.h,c.h),u=t[--i],f=l[++r]):(o=m(t&&t[r],n,r),f=l[++r],o&&c.h.parentNode.insertBefore(o,c.h));s>i?y(e,null==l[a+1]?null:l[a+1].h,n,l,r,a):r>a&&w(t,s,i)})(l,o,t,s):null!==s?(null!==e.t&&(l.textContent=""),y(l,null,t,s,0,s.length-1)):null!==o&&w(o,0,o.length-1),n&&"svg"===r&&(n=!1)):e.t!==i&&(l.data=i)},g=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(g)},S=(e,t)=>{t&&!e.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$=t)))},j=(e,t)=>{if(e.i|=16,!(4&e.i))return S(e,e.m),te((()=>O(e,t)));e.i|=512},O=(e,t)=>{const n=e.v;let l;return t&&(l=L(n,"componentWillLoad")),P(l,(()=>M(e,n,t)))},M=async(e,t,n)=>{const l=e.g,o=l["s-rc"];n&&(e=>{const t=e.S,n=e.g,l=t.i,o=((e,t)=>{var n;let l=f(t);const o=_.get(l);if(e=11===e.nodeType?e:B,o)if("string"==typeof o){let t,s=a.get(e=e.head||e);if(s||a.set(e,s=new Set),!s.has(l)){{t=B.createElement("style"),t.innerHTML=o;const l=null!==(n=G.j)&&void 0!==n?n:r(B);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);k(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>C(e);0===t.length?n():(Promise.all(t).then(n),e.i|=4,t.length=0)}},k=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const o=n.g,s=n.O||c(null,null),r=(e=>e&&e.u===u)(l)?l:i(null,null,l);t=o.tagName,r.u=null,r.i|=4,n.O=r,r.h=s.h=o.shadowRoot||o,e=o["s-sc"],v(s,r)})(n,l)}catch(e){F(e,n.g)}return null},C=e=>{const t=e.g,n=e.v,l=e.m;64&e.i||(e.i|=64,E(t),L(n,"componentDidLoad"),e.M(t),l||x()),e.$&&(e.$(),e.$=void 0),512&e.i&&ee((()=>j(e,!1))),e.i&=-517},x=()=>{E(B.documentElement),ee((()=>(e=>{const t=G.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(z)))},L=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){F(e)}},P=(e,t)=>e&&e.then?e.then(t):t(),E=e=>e.classList.add("hydrated"),N=(e,t,n)=>{if(t.k){const l=Object.entries(t.k),o=e.prototype;if(l.map((([e,[t]])=>{(31&t||2&n&&32&t)&&Object.defineProperty(o,e,{get(){return((e,t)=>R(this).C.get(t))(0,e)},set(t){((e,t,n)=>{const l=R(e),o=l.C.get(t),r=l.i,i=l.v;n=(e=>(null==e||s(e),e))(n),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(l.C.set(t,n),i&&2==(18&r)&&j(l,!1))})(this,e,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){G.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},T=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=z.customElements,i=B.head,c=i.querySelector("meta[charset]"),u=B.createElement("style"),a=[];let d,h=!0;Object.assign(G,t),G.L=new URL(t.resourcesUrl||"./",B.baseURI).href,e.map((e=>{e[1].map((t=>{const n={i:t[0],p:t[1],k:t[2],P:t[3]};n.k=t[2];const r=n.p,i=class extends HTMLElement{constructor(e){super(e),q(e=this,n),1&n.i&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),h?a.push(this):G.jmp((()=>(e=>{if(0==(1&G.i)){const t=R(e),n=t.S,l=()=>{};if(!(1&t.i)){t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){S(t,t.m=n);break}}n.k&&Object.entries(n.k).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.i)){{if(t.i|=32,(o=V(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(N(o,n,2),o.isProxied=!0);const e=()=>{};t.i|=8;try{new o(t)}catch(e){F(e)}t.i&=-9,e()}if(o.style){let e=o.style;const t=f(n);if(!_.has(t)){const l=()=>{};((e,t,n)=>{let l=_.get(e);J&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,_.set(e,l)})(t,e,!!(1&n.i)),l()}}}const s=t.m,r=()=>j(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>{}))}componentOnReady(){return R(this).N}};n.T=e[0],o.includes(r)||s.get(r)||(l.push(r),s.define(r,N(i,n,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(n=G.j)&&void 0!==n?n:r(B);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}h=!1,a.length?a.map((e=>e.connectedCallback())):G.jmp((()=>d=setTimeout(x,30)))},W=e=>G.j=e,A=new WeakMap,R=e=>A.get(e),U=(e,t)=>A.set(t.v=e,t),q=(e,t)=>{const n={i:0,g:e,S:t,C:new Map};return n.N=new Promise((e=>n.M=e)),e["s-p"]=[],e["s-rc"]=[],A.set(e,n)},D=(e,t)=>t in e,F=(e,t)=>(0,console.error)(e,t),H=new Map,V=e=>{const t=e.p.replace(/-/g,"_"),n=e.T,l=H.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(H.set(n,e),e[t])),F)
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z="undefined"!=typeof window?window:{},B=z.document||{head:{}},G={i:0,L:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},I=e=>Promise.resolve(e),J=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),K=[],Q=[],X=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&G.i?ee(Z):G.raf(Z))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){F(e)}e.length=0},Z=()=>{Y(K),Y(Q),(l=K.length>0)&&G.raf(Z)},ee=e=>I().then(e),te=X(Q,!0);export{T as b,i as h,I as p,U as r,W as s}
|
@@ -1 +1 @@
|
|
1
|
-
import{p as
|
1
|
+
import{p as a,b as e}from"./p-83af3a87.js";export{s as setNonce}from"./p-83af3a87.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),a(s)})().then((a=>e([["p-62dd685d",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],a)));
|
@@ -257,6 +257,15 @@ export declare function getAssetPath(path: string): string;
|
|
257
257
|
* @returns the set path
|
258
258
|
*/
|
259
259
|
export declare function setAssetPath(path: string): string;
|
260
|
+
/**
|
261
|
+
* Used to specify a nonce value that corresponds with an application's
|
262
|
+
* [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
|
263
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
264
|
+
* Alternatively, the nonce value can be set on a `meta` tag in the DOM head
|
265
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior.
|
266
|
+
* @param nonce The value to be used for the nonce attribute.
|
267
|
+
*/
|
268
|
+
export declare function setNonce(nonce: string): void;
|
260
269
|
/**
|
261
270
|
* Retrieve a Stencil element for a given reference
|
262
271
|
* @param ref the ref to get the Stencil element for
|
package/loader/index.d.ts
CHANGED
@@ -10,3 +10,12 @@ export interface CustomElementsDefineOptions {
|
|
10
10
|
}
|
11
11
|
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
12
12
|
export declare function applyPolyfills(): Promise<void>;
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
16
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
17
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
18
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
19
|
+
* will result in the same behavior.
|
20
|
+
*/
|
21
|
+
export declare function setNonce(nonce: string): void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "proto-table-wc",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.388",
|
4
4
|
"description": "Stencil Component Starter",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -27,12 +27,12 @@
|
|
27
27
|
"format": "prettier --write src"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"@stencil/core": "2.
|
30
|
+
"@stencil/core": "2.22.1"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
33
|
"@types/jest": "29.2.5",
|
34
34
|
"@types/puppeteer": "5.4.7",
|
35
|
-
"cspell": "6.
|
35
|
+
"cspell": "6.19.0",
|
36
36
|
"eslint": "8.32.0",
|
37
37
|
"jest": "29.3.1",
|
38
38
|
"prettier": "2.8.3",
|
@@ -1,2 +0,0 @@
|
|
1
|
-
let e,t,n=!1,l=!1;const o={},s=e=>"object"==(e=typeof e)||"function"===e,r=(e,t,...n)=>{let l=null,o=!1,r=!1;const i=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!s(l))&&(l+=""),o&&r?i[i.length-1].t+=l:i.push(o?c(null,l):l),r=o)};if(u(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const a=c(e,null);return a.l=t,i.length>0&&(a.o=i),a},c=(e,t)=>({i:0,u:e,t,h:null,o:null,l:null}),i={},u=new WeakMap,a=e=>"sc-"+e.p,f=(e,t,n,l,o,r)=>{if(n!==l){let c=U(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=p(n),s=p(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===t)l&&l(e);else if(c||"o"!==t[0]||"n"!==t[1]){const i=s(l);if((c||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&r||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):U(V,i)?i.slice(2):i[2]+t.slice(3),n&&z.rel(e,t,n,!1),l&&z.ael(e,t,l,!1)}},h=/\s/,p=e=>e?e.split(h):[],$=(e,t,n,l)=>{const s=11===t.h.nodeType&&t.h.host?t.h.host:t.h,r=e&&e.l||o,c=t.l||o;for(l in r)l in c||f(s,l,r[l],void 0,n,t.i);for(l in c)f(s,l,r[l],c[l],n,t.i)},y=(t,l,o)=>{const s=l.o[o];let r,c,i=0;if(null!==s.t)r=s.h=_.createTextNode(s.t);else{if(n||(n="svg"===s.u),r=s.h=_.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),n&&"foreignObject"===s.u&&(n=!1),$(null,s,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),s.o)for(i=0;i<s.o.length;++i)c=y(t,s,i),c&&r.appendChild(c);"svg"===s.u?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},d=(e,n,l,o,s,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=y(null,l,s),c&&(o[s].h=c,i.insertBefore(c,n)))},m=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.h,g(l),o.remove())},w=(e,t)=>e.u===t.u,b=(e,t)=>{const l=t.h=e.h,o=e.o,s=t.o,r=t.u,c=t.t;null===c?(n="svg"===r||"foreignObject"!==r&&n,$(e,t,n),null!==o&&null!==s?((e,t,n,l)=>{let o,s=0,r=0,c=t.length-1,i=t[0],u=t[c],a=l.length-1,f=l[0],h=l[a];for(;s<=c&&r<=a;)null==i?i=t[++s]:null==u?u=t[--c]:null==f?f=l[++r]:null==h?h=l[--a]:w(i,f)?(b(i,f),i=t[++s],f=l[++r]):w(u,h)?(b(u,h),u=t[--c],h=l[--a]):w(i,h)?(b(i,h),e.insertBefore(i.h,u.h.nextSibling),i=t[++s],h=l[--a]):w(u,f)?(b(u,f),e.insertBefore(u.h,i.h),u=t[--c],f=l[++r]):(o=y(t&&t[r],n,r),f=l[++r],o&&i.h.parentNode.insertBefore(o,i.h));s>c?d(e,null==l[a+1]?null:l[a+1].h,n,l,r,a):r>a&&m(t,s,c)})(l,o,t,s):null!==s?(null!==e.t&&(l.textContent=""),d(l,null,t,s,0,s.length-1)):null!==o&&m(o,0,o.length-1),n&&"svg"===r&&(n=!1)):e.t!==c&&(l.data=c)},g=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(g)},S=(e,t)=>{t&&!e.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$=t)))},j=(e,t)=>{if(e.i|=16,!(4&e.i))return S(e,e.m),Z((()=>v(e,t)));e.i|=512},v=(e,t)=>{const n=e.g;let l;return t&&(l=x(n,"componentWillLoad")),L(l,(()=>O(e,n,t)))},O=async(e,t,n)=>{const l=e.S,o=l["s-rc"];n&&(e=>{const t=e.j,n=e.S,l=t.i,o=((e,t)=>{let n=a(t);const l=H.get(n);if(e=11===e.nodeType?e:_,l)if("string"==typeof l){let t,o=u.get(e=e.head||e);o||u.set(e,o=new Set),o.has(n)||(t=_.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);M(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>k(e);0===t.length?n():(Promise.all(t).then(n),e.i|=4,t.length=0)}},M=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const o=n.S,s=n.v||c(null,null),u=(e=>e&&e.u===i)(l)?l:r(null,null,l);t=o.tagName,u.u=null,u.i|=4,n.v=u,u.h=s.h=o.shadowRoot||o,e=o["s-sc"],b(s,u)})(n,l)}catch(e){q(e,n.S)}return null},k=e=>{const t=e.S,n=e.g,l=e.m;64&e.i||(e.i|=64,P(t),x(n,"componentDidLoad"),e.O(t),l||C()),e.$&&(e.$(),e.$=void 0),512&e.i&&Y((()=>j(e,!1))),e.i&=-517},C=()=>{P(_.documentElement),Y((()=>(e=>{const t=z.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(V)))},x=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){q(e)}},L=(e,t)=>e&&e.then?e.then(t):t(),P=e=>e.classList.add("hydrated"),E=(e,t,n)=>{if(t.M){const l=Object.entries(t.M),o=e.prototype;if(l.map((([e,[t]])=>{(31&t||2&n&&32&t)&&Object.defineProperty(o,e,{get(){return((e,t)=>W(this).k.get(t))(0,e)},set(t){((e,t,n)=>{const l=W(e),o=l.k.get(t),r=l.i,c=l.g;n=(e=>(null==e||s(e),e))(n),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(l.k.set(t,n),c&&2==(18&r)&&j(l,!1))})(this,e,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){z.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},N=(e,t={})=>{const n=[],l=t.exclude||[],o=V.customElements,s=_.head,r=s.querySelector("meta[charset]"),c=_.createElement("style"),i=[];let u,f=!0;Object.assign(z,t),z.C=new URL(t.resourcesUrl||"./",_.baseURI).href,e.map((e=>{e[1].map((t=>{const s={i:t[0],p:t[1],M:t[2],L:t[3]};s.M=t[2];const r=s.p,c=class extends HTMLElement{constructor(e){super(e),R(e=this,s),1&s.i&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),f?i.push(this):z.jmp((()=>(e=>{if(0==(1&z.i)){const t=W(e),n=t.j,l=()=>{};if(!(1&t.i)){t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){S(t,t.m=n);break}}n.M&&Object.entries(n.M).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.i)){{if(t.i|=32,(o=F(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(E(o,n,2),o.isProxied=!0);const e=()=>{};t.i|=8;try{new o(t)}catch(e){q(e)}t.i&=-9,e()}if(o.style){let e=o.style;const t=a(n);if(!H.has(t)){const l=()=>{};((e,t,n)=>{let l=H.get(e);G&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,H.set(e,l)})(t,e,!!(1&n.i)),l()}}}const s=t.m,r=()=>j(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){z.jmp((()=>{}))}componentOnReady(){return W(this).P}};s.N=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,E(c,s,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),s.insertBefore(c,r?r.nextSibling:s.firstChild),f=!1,i.length?i.map((e=>e.connectedCallback())):z.jmp((()=>u=setTimeout(C,30)))},T=new WeakMap,W=e=>T.get(e),A=(e,t)=>T.set(t.g=e,t),R=(e,t)=>{const n={i:0,S:e,j:t,k:new Map};return n.P=new Promise((e=>n.O=e)),e["s-p"]=[],e["s-rc"]=[],T.set(e,n)},U=(e,t)=>t in e,q=(e,t)=>(0,console.error)(e,t),D=new Map,F=e=>{const t=e.p.replace(/-/g,"_"),n=e.N,l=D.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(D.set(n,e),e[t])),q)
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},H=new Map,V="undefined"!=typeof window?window:{},_=V.document||{head:{}},z={i:0,C:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},B=e=>Promise.resolve(e),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),I=[],J=[],K=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&z.i?Y(X):z.raf(X))},Q=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){q(e)}e.length=0},X=()=>{Q(I),Q(J),(l=I.length>0)&&z.raf(X)},Y=e=>B().then(e),Z=K(J,!0);export{N as b,r as h,B as p,A as r}
|