@epa-wg/custom-element-dist 0.0.31 → 0.0.32
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/.idea/inspectionProfiles/Project_Default.xml +2 -1
- package/README.md +4 -4
- package/coverage/coverage-final.json +6 -6
- package/coverage/index.html +27 -27
- package/coverage/src/custom-element/coverage.svg +1 -1
- package/coverage/src/custom-element/custom-element.js/coverage.svg +1 -1
- package/coverage/src/custom-element/custom-element.js.html +476 -380
- package/coverage/src/custom-element/http-request.js.html +10 -10
- package/coverage/src/custom-element/index.html +18 -18
- package/coverage/src/custom-element/local-storage.js.html +1 -1
- package/coverage/src/custom-element/location-element.js.html +1 -1
- package/coverage/src/custom-element/module-url.js.html +1 -1
- package/coverage/src/index.html +1 -1
- package/coverage/src/mocks/handlers.ts.html +1 -1
- package/coverage/src/mocks/index.html +1 -1
- package/coverage/src/stories/attributes.test.stories.ts/coverage.svg +1 -1
- package/coverage/src/stories/attributes.test.stories.ts.html +313 -13
- package/coverage/src/stories/coverage.svg +1 -1
- package/coverage/src/stories/css.test.stories.ts.html +1 -1
- package/coverage/src/stories/dom-merge.test.stories.ts.html +1 -1
- package/coverage/src/stories/external-template.test.stories.ts.html +2 -2
- package/coverage/src/stories/form.test.stories.ts.html +1 -1
- package/coverage/src/stories/http-request.stories.ts.html +1 -1
- package/coverage/src/stories/index.html +15 -15
- package/coverage/src/stories/local-storage.test.stories.ts.html +1 -1
- package/coverage/src/stories/location-element.test.stories.ts.html +1 -1
- package/coverage/src/stories/module-url.test.stories.ts.html +1 -1
- package/coverage/src/stories/set-url.test.stories.ts.html +1 -1
- package/coverage/src/stories/slice-events.test.stories.ts.html +1 -1
- package/coverage/src/stories/slots.test.stories.ts.html +1 -1
- package/coverage/src/stories/testStoryBook.ts.html +8 -8
- package/coverage/src/stories/version-select.test.stories.ts.html +3 -3
- package/coverage/src/sum.ts.html +1 -1
- package/dist/custom-element-D2wf_rqP.js +576 -0
- package/dist/custom-element-Dtzhbjkc.cjs +97 -0
- package/dist/custom-element-bundle.cjs +1 -1
- package/dist/custom-element-bundle.js +30 -28
- package/dist/demo/a.html +51 -38
- package/dist/demo/data-slices.html +2 -2
- package/dist/demo/external-template.html +1 -0
- package/dist/demo/form.html +42 -0
- package/dist/demo/hex-grid-dce.html +1 -1
- package/dist/demo/hex-grid.html +1 -1
- package/dist/demo/parameters.html +20 -1
- package/dist/demo/s.xml +6 -12
- package/dist/demo/s.xslt +64 -15
- package/dist/demo/ss.html +4 -23
- package/package.json +2 -2
- package/public/demo/a.html +51 -38
- package/public/demo/data-slices.html +2 -2
- package/public/demo/external-template.html +1 -0
- package/public/demo/form.html +42 -0
- package/public/demo/hex-grid-dce.html +1 -1
- package/public/demo/hex-grid.html +1 -1
- package/public/demo/parameters.html +20 -1
- package/public/demo/s.xml +6 -12
- package/public/demo/s.xslt +64 -15
- package/public/demo/ss.html +4 -23
- package/src/custom-element/custom-element.js +72 -40
- package/src/custom-element/demo/a.html +51 -38
- package/src/custom-element/demo/data-slices.html +2 -2
- package/src/custom-element/demo/external-template.html +1 -0
- package/src/custom-element/demo/form.html +42 -0
- package/src/custom-element/demo/hex-grid-dce.html +1 -1
- package/src/custom-element/demo/hex-grid.html +1 -1
- package/src/custom-element/demo/parameters.html +20 -1
- package/src/custom-element/demo/s.xml +6 -12
- package/src/custom-element/demo/s.xslt +64 -15
- package/src/custom-element/demo/ss.html +4 -23
- package/src/custom-element/ide/web-types-dce.json +1 -1
- package/src/custom-element/ide/web-types-xsl.json +1 -1
- package/src/material/components/dropdown.html +21 -4
- package/src/material/components/input.html +363 -0
- package/src/mocks/versions.mock.ts +1 -1
- package/src/stories/attributes.test.stories.ts +103 -3
- package/src/stories/external-template.test.stories.ts +1 -1
- package/storybook-static/assets/{Color-F6OSRLHC-CFyd3TND.js → Color-F6OSRLHC-BU3iy8jH.js} +1 -1
- package/storybook-static/assets/{Configure-UGTbPRKK.js → Configure-DN6ifayP.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-CFRXHY34-Dpr5iB0o.js → DocsRenderer-CFRXHY34-BaVEufDj.js} +2 -2
- package/storybook-static/assets/attributes.test.stories-D1X6EBrd.js +278 -0
- package/storybook-static/assets/{css.test.stories-Cgn6ICr0.js → css.test.stories-Cp_g2hE1.js} +1 -1
- package/storybook-static/assets/custom-element-uuAtIYWS.js +97 -0
- package/storybook-static/assets/{dom-merge.test.stories-CBObfPWg.js → dom-merge.test.stories-hbpdCka0.js} +1 -1
- package/storybook-static/assets/{external-template.test.stories-VfKUQ8eu.js → external-template.test.stories-BK89h6sk.js} +3 -3
- package/storybook-static/assets/{form.test.stories-CnuGN7Zw.js → form.test.stories-BfoLe_rw.js} +1 -1
- package/storybook-static/assets/{handlers-V_T7WjNK.js → handlers-yVPwH_Nz.js} +1 -1
- package/storybook-static/assets/{http-request.stories-8NN1Coqm.js → http-request.stories-CBFJS2Ws.js} +1 -1
- package/storybook-static/assets/{iframe-DnhkgdtG.js → iframe-CJEL_4Nu.js} +2 -2
- package/storybook-static/assets/{index-CIBI7sCB.js → index-D5fBh-7N.js} +1 -1
- package/storybook-static/assets/{index-DN1RoK17.js → index-DM-KBPdl.js} +1 -1
- package/storybook-static/assets/{index-DjJD7gkO.js → index-RSFf30w1.js} +1 -1
- package/storybook-static/assets/{index-3Sfy-t3H.js → index-SnjB5uV8.js} +4 -4
- package/storybook-static/assets/{local-storage.test.stories-Dk5Yqc7m.js → local-storage.test.stories-C0Yzy6Am.js} +1 -1
- package/storybook-static/assets/{location-element.test.stories-56um6s5L.js → location-element.test.stories-DNFrEu5A.js} +1 -1
- package/storybook-static/assets/{module-url.test.stories-DEponQ7l.js → module-url.test.stories-CXibF5Ta.js} +1 -1
- package/storybook-static/assets/{preview-vbpHsp94.js → preview-Bnd0XhaF.js} +1 -1
- package/storybook-static/assets/{preview-Czc-sw5H.js → preview-DJMlNTk8.js} +2 -2
- package/storybook-static/assets/{set-url.test.stories-B4E6hIe-.js → set-url.test.stories-BBfLxv2u.js} +1 -1
- package/storybook-static/assets/{slice-events.test.stories-BR0F-B6I.js → slice-events.test.stories-HcXF8XQI.js} +1 -1
- package/storybook-static/assets/{slots.test.stories-CgfJIyCr.js → slots.test.stories-i6mnIFM2.js} +1 -1
- package/storybook-static/assets/{version-select.test.stories-nmxATIwv.js → version-select.test.stories-BsUFH6Va.js} +1 -1
- package/storybook-static/demo/a.html +51 -38
- package/storybook-static/demo/data-slices.html +2 -2
- package/storybook-static/demo/external-template.html +1 -0
- package/storybook-static/demo/form.html +42 -0
- package/storybook-static/demo/hex-grid-dce.html +1 -1
- package/storybook-static/demo/hex-grid.html +1 -1
- package/storybook-static/demo/parameters.html +20 -1
- package/storybook-static/demo/s.xml +6 -12
- package/storybook-static/demo/s.xslt +64 -15
- package/storybook-static/demo/ss.html +4 -23
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/dist/custom-element-BbJMY20-.cjs +0 -97
- package/dist/custom-element-CoRNKeEP.js +0 -567
- package/storybook-static/assets/attributes.test.stories-DSOLHHOW.js +0 -152
- package/storybook-static/assets/custom-element-D59Fok1f.js +0 -97
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
const G="http://www.w3.org/1999/XSL/Transform",k="http://www.w3.org/1999/xhtml",fe="http://exslt.org/common",h=(e,l)=>e.getAttribute?.(l),ee=e=>e.nodeType===3,xe=e=>typeof e=="string",be=e=>e&&typeof e.nodeType=="number",$=(e,l)=>(e.ownerDocument||e).createTextNode(l),ie=e=>{for(;e.firstChild;)e.firstChild.remove();return e},Z=e=>(e.getAttributeNames().map(l=>e.removeAttribute(l)),ie(e)),oe=e=>(e?.setAttribute("xmlns:xsl",G),e),re=e=>(e?.setAttribute("xmlns:xhtml",k),oe(e)),ce=e=>/^[_a-zA-Z][-_:a-zA-Z0-9]*$/.test(e),te=(e,l)=>(Object.keys(l).map(t=>e[t]=l[t]),e),S=(e,l="",t=document)=>{const s=i=>(r=>(l&&r.append($(t.ownerDocument||t,l)),r))((t.ownerDocument||t).createElement(i));if(ce(e))return s(e);const n=s("dce-object");return n.setAttribute("dce-object-name",e),n},se=(e,l)=>{const t=e.ownerDocument.createElementNS(e.namespaceURI,l);for(let s of e.attributes)t.setAttribute(s.name,s.value);for(let s of e.childNodes)t.append(s.cloneNode(!0));return t};function X(e){return new DOMParser().parseFromString(e,"application/xml")}function I(e){return new XMLSerializer().serializeToString(e)}function O(e,l,t,s){const n=x=>e.ownerDocument.createElement(x),r=((x,f,v)=>(f.append(v=n(x)),v))(l,e);return[...t].forEach(x=>r.append(s(x))),r}function ye(e){return e.slot||(e.setAttribute||(e=S("span",e.textContent.replaceAll(`
|
|
2
|
+
`,""))),e.setAttribute("slot","")),e}function Y(e,l){e.getAttributeNames().forEach(t=>l.includes(t)||e.removeAttribute(t))}const le=e=>[...e].filter(l=>!(l.nodeType===3&&l.data.trim()===""));function z(e,l,t){const s=typeof e;if(s==="string")return S(l,e,t);if(s==="number")return S(l,""+e,t);if(e instanceof Array){const i=S("array","",t);return e.map(r=>i.append(z(r,l,t))),i}if(e instanceof FormData){const i=S("form-data","",t);for(const r of e)i.append(z(r[1],r[0],t));return i}const n=S(l,"",t);for(let i in e)be(e[i])||typeof e[i]=="function"||e[i]instanceof Window||(typeof e[i]!="object"&&ce(i)?n.setAttribute(i,e[i]):n.append(z(e[i],i,t)));return n}function ne(e){if(D(e,"*",l=>[...l.childNodes].filter(t=>t.nodeType===3&&t.parentNode.localName!=="style"&&t.data).forEach(t=>{const s=t.data,n=s.matchAll(/{([^}]*)}/g);if(n){let i=0,r=f=>$(t,f),x=[];if([...n].forEach(f=>{f.index>i&&x.push(r(f.input.substring(i,f.index)));const v=e.querySelector("value-of").cloneNode();v.setAttribute("select",f[1]),x.push(v),i=f.index+f[0].length}),i<s.length&&x.push(r(s.substring(i,s.length))),x.length){for(let f of x)l.insertBefore(f,t);l.removeChild(t)}}})),"all"in e){let l=1;for(let t of e.all)t.setAttribute&&!t.tagName.startsWith("xsl:")&&t.setAttribute("data-dce-id",""+l++)}return e}function ge(e,l="xsl:stylesheet"){const t=[],s={},n={};if(e.tagName===l||e.documentElement?.tagName===l)return ne(te(e,{declaredAttributes:t,hardcodedAttributes:s,exposedAttributes:n}));const i=X(`<xsl:stylesheet version="1.0" xmlns:xsl="${G}" xmlns:xhtml="${k}" xmlns:exsl="${fe}" exclude-result-prefixes="exsl" >
|
|
3
|
+
<xsl:output method="xml"/>
|
|
4
|
+
<xsl:template match="/"><dce-root xmlns="${k}"><xsl:apply-templates select="*" /></dce-root></xsl:template>
|
|
5
|
+
<xsl:template match="*[name()='template']">
|
|
6
|
+
<xsl:apply-templates mode="sanitize" select="*|text()"/>
|
|
7
|
+
</xsl:template>
|
|
8
|
+
<xsl:template match="*">
|
|
9
|
+
<xsl:apply-templates mode="sanitize" select="*|text()"/>
|
|
10
|
+
</xsl:template>
|
|
11
|
+
<xsl:template match="*[name()='svg']|*[name()='math']">
|
|
12
|
+
<xsl:apply-templates mode="sanitize" select="."/>
|
|
13
|
+
</xsl:template>
|
|
14
|
+
<xsl:template mode="sanitize" match="*[count(text())=1 and count(*)=0]">
|
|
15
|
+
<xsl:copy>
|
|
16
|
+
<xsl:apply-templates mode="sanitize" select="@*"/>
|
|
17
|
+
<xsl:value-of select="text()"></xsl:value-of>
|
|
18
|
+
</xsl:copy>
|
|
19
|
+
</xsl:template>
|
|
20
|
+
<xsl:template mode="sanitize" match="xhtml:*[count(text())=1 and count(*)=0]">
|
|
21
|
+
<xsl:element name="{local-name()}">
|
|
22
|
+
<xsl:apply-templates mode="sanitize" select="@*"/>
|
|
23
|
+
<xsl:value-of select="text()"></xsl:value-of>
|
|
24
|
+
</xsl:element>
|
|
25
|
+
</xsl:template>
|
|
26
|
+
<xsl:template mode="sanitize" match="*|@*">
|
|
27
|
+
<xsl:copy>
|
|
28
|
+
<xsl:apply-templates mode="sanitize" select="*|@*|text()"/>
|
|
29
|
+
</xsl:copy>
|
|
30
|
+
</xsl:template>
|
|
31
|
+
<xsl:template mode="sanitize" match="text()[normalize-space(.) = '']"/>
|
|
32
|
+
<xsl:template mode="sanitize" match="text()">
|
|
33
|
+
<dce-text>
|
|
34
|
+
<xsl:copy/>
|
|
35
|
+
</dce-text>
|
|
36
|
+
</xsl:template>
|
|
37
|
+
<xsl:template mode="sanitize" match="xsl:value-of|*[name()='slot']">
|
|
38
|
+
<xsl:copy>
|
|
39
|
+
<xsl:apply-templates mode="sanitize" select="*|@*|text()"/>
|
|
40
|
+
</xsl:copy>
|
|
41
|
+
</xsl:template>
|
|
42
|
+
<xsl:template mode="sanitize" match="xhtml:*">
|
|
43
|
+
<xsl:element name="{local-name()}">
|
|
44
|
+
<xsl:apply-templates mode="sanitize" select="*|@*|text()"/>
|
|
45
|
+
</xsl:element>
|
|
46
|
+
</xsl:template>
|
|
47
|
+
<xsl:template mode="sanitize" match="xhtml:input">
|
|
48
|
+
<xsl:element name="{local-name()}">
|
|
49
|
+
<xsl:apply-templates mode="sanitize" select="*[not(name()='slice')]|@*|text()"/>
|
|
50
|
+
</xsl:element>
|
|
51
|
+
<xsl:for-each select="slice">
|
|
52
|
+
<xsl:copy>
|
|
53
|
+
<xsl:attribute name="for" >^</xsl:attribute>
|
|
54
|
+
<xsl:apply-templates mode="sanitize" select="*|@*|text()"/>
|
|
55
|
+
</xsl:copy>
|
|
56
|
+
</xsl:for-each>
|
|
57
|
+
</xsl:template>
|
|
58
|
+
</xsl:stylesheet>`),r=new XSLTProcessor,x=(a=>{D(a,"custom-element",y=>{y.firstElementChild.localName==="template"&&([...y.firstElementChild.content.childNodes].forEach(g=>y.append(g)),y.firstElementChild.remove())}),D(a,"script",y=>y.remove());const c=a.content??a.firstElementChild?.content??a.body??a;Ce.forEach(y=>D(c,y,g=>Le(g,c)));const A=a.firstElementChild?.content||a.content,N=y=>{const g=X("<xhtml/>"),U=g.importNode(y,!0);return g.replaceChild(U,g.documentElement),re(U)};if(A){const y=S("div");return[...A.childNodes].map(g=>y.append(g.cloneNode(!0))),N(y)}return N(a.documentElement||a.body||a)})(e),f=X(`<xsl:stylesheet version="1.0"
|
|
59
|
+
xmlns:xsl="${G}"
|
|
60
|
+
xmlns:xhtml="${k}"
|
|
61
|
+
xmlns:dce="urn:schemas-epa-wg:dce"
|
|
62
|
+
xmlns:exsl="http://exslt.org/common"
|
|
63
|
+
exclude-result-prefixes="exsl"
|
|
64
|
+
>
|
|
65
|
+
<xsl:template match="ignore">
|
|
66
|
+
<xsl:choose>
|
|
67
|
+
<xsl:when test="//attr">{//attr}</xsl:when>
|
|
68
|
+
<xsl:otherwise>{def}</xsl:otherwise>
|
|
69
|
+
</xsl:choose><xsl:value-of select="."></xsl:value-of></xsl:template>
|
|
70
|
+
<xsl:template mode="payload" match="attributes"></xsl:template>
|
|
71
|
+
<xsl:template match="/">
|
|
72
|
+
<xsl:apply-templates mode="payload" select="/datadom/attributes"/>
|
|
73
|
+
</xsl:template>
|
|
74
|
+
<xsl:template name="slot" >
|
|
75
|
+
<xsl:param name="slotname" />
|
|
76
|
+
<xsl:param name="defaultvalue" />
|
|
77
|
+
<xsl:choose>
|
|
78
|
+
<xsl:when test="//payload/*[@slot=$slotname]">
|
|
79
|
+
<xsl:copy-of select="//payload/*[@slot=$slotname]"/>
|
|
80
|
+
</xsl:when>
|
|
81
|
+
<xsl:otherwise>
|
|
82
|
+
<xsl:copy-of select="$defaultvalue"/>
|
|
83
|
+
</xsl:otherwise>
|
|
84
|
+
</xsl:choose>
|
|
85
|
+
</xsl:template>
|
|
86
|
+
<xsl:variable name="js-injected-body">
|
|
87
|
+
<xsl:call-template name="slot" >
|
|
88
|
+
<xsl:with-param name="slotname" select="''"/>
|
|
89
|
+
<xsl:with-param name="defaultvalue"/>
|
|
90
|
+
</xsl:call-template>
|
|
91
|
+
</xsl:variable>
|
|
92
|
+
</xsl:stylesheet>`);r.importStylesheet(i);const v=r.transformToFragment(x,document),d=(a,c)=>a.querySelector(c),w=d(f,'template[mode="payload"]');if(!v)return console.error("transformation error",{xml:x.outerHTML,xsl:I(i)});if(v.firstElementChild.localName!=="dce-root"){const a=v.ownerDocument.createElement("dce-root");[...v.childNodes].forEach(c=>a.append(c)),v.append(a)}[...v.querySelectorAll("dce-root>attribute")].forEach(a=>{Y(a,"namespace,name,select");const c=se(a,"xsl:param"),A=h(a,"name");if(t.push(A),a.childNodes.length&&(s[A]=a.textContent),w.append(c),a.hasAttribute("select")){n[A]=h(a,"select"),Y(c,"select,name");let N=h(a,"select").split("??"),y;if(N?.length>1){c.removeAttribute("select");const g=d(f,'template[match="ignore"]>choose').cloneNode(!0);Z(g.firstElementChild).append($(g,"{"+N[0]+"}")),Z(g.lastElementChild).append($(g,"{"+N[1]+"}")),g.firstElementChild.setAttribute("test","string-length("+N[0]+")"),c.append(g),y=g.cloneNode(!0)}else y=se(a,"xsl:value-of");y.removeAttribute("name"),a.append(y),a.removeAttribute("select")}else Y(c,"name"),c.setAttribute("select","/datadom/attributes/"+A)}),[...v.querySelectorAll("[value]")].filter(a=>a.getAttribute("value").match(/\{(.*)\?\?(.*)\}/g)).forEach(a=>{const c=h(a,"value");c&&a.setAttribute("value",Se(c))});for(const a of v.childNodes)w.append(f.importNode(a,!0));[...w.getElementsByTagName("xsl:template")].forEach(a=>w.ownerDocument.documentElement.append(a));const q=d(f,'call-template[name="slot"]'),p=a=>{const c=q.cloneNode(!0),A=h(a,"name");A&&c.firstElementChild.setAttribute("select",`'${A}'`);for(let N of a.childNodes)c.lastElementChild.append(N);return c};D(w,"slot",a=>a.parentNode.replaceChild(p(a),a));const u=ne(f);return te(u,{declaredAttributes:t,hardcodedAttributes:s,exposedAttributes:n}),u}async function ve(e){return await new Promise((t,s)=>{const n=new XMLHttpRequest;n.open("GET",e),n.responseType="document",n.onload=()=>{n.readyState===n.DONE&&n.status===200?t(n.responseXML?.body||n.responseXML||S("div",n.responseText)):s(`${n.statusText} - ${e}`)},n.addEventListener("error",i=>s(i)),n.send()})}const me=e=>e.split("|").map(l=>l.trim()).filter(l=>l),Ee=(e,l)=>me(l).map(t=>{let s=e.ownerDocument,n=i=>(e.append(i),i);if(t.includes("/")){const i=[],r=s.evaluate(t,e);for(let x;x=r.iterateNext();)i.push(x);return i}return[...e.childNodes].find(i=>i.localName===t)||n(S(t,"",s))}).flat();function ae(e,l,t,s){if(!t.sliceProcessed)return t.sliceProcessed=1,Ee(e,l??"").map(n=>{const i=e.ownerDocument,r=t.sliceEventSource,x=t.sliceElement,f=()=>[...n.childNodes].filter(d=>d.nodeType===3||d.localName==="value"||d.localName==="form-data").map(d=>d.remove());r.getAttributeNames().map(d=>n.setAttribute(d,h(r,d))),[...n.childNodes].filter(d=>d.localName==="event").map(d=>d.remove()),"validationMessage"in r&&n.setAttribute("validation-message",r.validationMessage),t.type==="init"&&f(),n.append(z(t,"event",i));const v=(r.type==="checkbox"||r.type==="radio")&&!r.checked;if(x.hasAttribute("slice-value")){r.value===void 0?n.removeAttribute("value"):n.setAttribute("value",r.value);const d=v?"":M(h(x,"slice-value"),n);f(),n.append($(i,d))}else{if("elements"in r)return f(),n.append(z(new FormData(r),"value",n.ownerDocument)),n;const d=v?"":r.value??h(r,"value");f(),d==null?[...n.childNodes].filter(w=>w.localName!=="event").map(w=>w.remove()):xe(d)?n.append($(i,d)):n.append(z(d,"value",n.ownerDocument))}return n})}function D(e,l,t){e.querySelectorAll&&[...e.querySelectorAll(l)].forEach(t)}const Ne=async(e,l)=>{if(!e||!e.trim())return[l];if(e.startsWith("#"))return(t=>{const s=t.querySelectorAll(e);return[...s.length?s:t.getRootNode().querySelectorAll(e)]})(l.parentElement);try{const[t,s]=e.split("#");if(e.charAt(0)===".")e=new URL(t,l.closest("[base]")?.getAttribute("base")||location).href;else try{e=import.meta.resolve(t),s&&(e+="#"+s)}catch(i){console.error(i.message)}const n=await ve(e);if(l.setAttributeNS("xml","base",e),s){const i=n.querySelectorAll("#"+s);return i.length?[...i]:(console.error("template not found",e+"#"+s),[l])}return[n]}catch{return[l]}};function Ae(e,l){for(let t of e.attributes)try{t.namespaceURI?l.setAttributeNS(t.namespaceURI,t.name,t.value):l.setAttribute(t.name,t.value),t.name==="value"&&(l.value=t.value)}catch(s){console.warn("attribute assignment error",s?.message||s)}}function de(e,l=0){const t={};for(const s of e.childNodes){const n=h(s,"data-dce-id")||s.dceId||0;if(!t[n])n?t[n]=1:(t[n]=s.dceId=++l,s.setAttribute&&s.setAttribute("data-dce-id",s.dceId));else{const i=s.dceId=n+"-"+t[n]++;s.setAttribute&&s.setAttribute("data-dce-id",i)}s.childNodes.length&&de(s)}}function we(e,l,t){t=1*t;for(let s of e.childNodes)if((s.dceId??s.getAttribute("data-dce-id")*1)>t)return e.insertBefore(l,s);e.append(l)}function ue(e,l){if(e.firstElementChild?.localName==="dce-root"&&l[0]?.localName!=="dce-root")return;if(!l.length)return e.firstElementChild?.localName!=="dce-root"&&ie(e);const t={};for(let s of e.childNodes)t[s.dceId],ee(s)?(s.data.trim(),t[s.dceId||0]=s):t[h(s,"data-dce-id")||0]=s;for(let s of[...l]){const n=h(s,"data-dce-id")||s.dceId,i=t[n];i?(ee(s)?i.nodeValue!==s.nodeValue&&(i.nodeValue=s.nodeValue):(Ae(s,i),(i.childNodes.length||s.childNodes.length)&&ue(i,s.childNodes)),delete t[n]):we(e,s,n)}for(let s of Object.values(t))s.localName!=="dce-root"&&s.remove()}function Te(e,l){return e.hasAttribute(l)||e.setAttribute(l,crypto.randomUUID()),e.getAttribute(l)}const Se=e=>[...e?.matchAll(/([^{}]*)(\{)([^}]+)}([^{}]*)/g)].map(t=>`${t[1]}{${J(t[3])}}${t[4]}`).join(""),J=e=>{if(!e.trim())return e;const l=e.split("??"),t=l.shift(),s=J(l.join("??"));return l.length?`concat( ${t} , substring( ${s} , (1+string-length( ${s} )) * string-length( ${t} ) ) )`:e},M=(e,l)=>{const t=e.split("??");if(t.length>1)return M(t[0],l)||M(t[1],l);e=J(e);const s=l.ownerDocument.evaluate(e,l);switch(s.resultType){case XPathResult.NUMBER_TYPE:return s.numberValue;case XPathResult.STRING_TYPE:return s.stringValue;case XPathResult.BOOLEAN_TYPE:return s.booleanValue}let n="";for(let i;i=s.iterateNext();)n+=i.textContent;return n},Ce="stylesheet,transform,import,include,strip-space,preserve-space,output,key,decimal-format,namespace-alias,value-of,copy-of,number,apply-templates,apply-imports,for-each,sort,if,choose,when,otherwise,attribute-set,call-template,with-param,variable,param,text,processing-instruction,element,attribute,comment,copy,message,fallback".split(","),Le=(e,l)=>{const t=S("xsl:"+e.localName);for(let s of e.attributes)t.setAttribute(s.name,s.value);for(;e.firstChild;)t.append(e.firstChild);if(e.parentElement)e.parentElement.replaceChild(t,e);else{const s=e.parentElement||l,n=[...s.childNodes];n.forEach((i,r)=>{i===e&&(n[r]=t)}),s.replaceChildren(...n)}};class De extends HTMLElement{static observedAttributes=["src","tag","hidden"];async connectedCallback(){this.firstElementChild&&this.firstElementChild.localName!=="template"&&console.warn(`custom-element used without template wrapping content
|
|
93
|
+
`,this.outerHTML);const l=await Ne(h(this,"src"),this),t=h(this,"tag"),s=t||"dce-"+crypto.randomUUID();for(const p of l)D(p.templateNode||p.content||p,"style",u=>{const a=u.closest("slot"),c=a?`slot[name="${a.name}"]`:"";u.innerHTML=`${s} ${c}{${u.innerHTML}}`,this.append(u)});const n=l.map(p=>ge(p)),i=n.map((p,u)=>{u=new XSLTProcessor;try{u.importStylesheet(p)}catch(a){console.error(a,I(p))}return u});Object.defineProperty(this,"xsltString",{get:()=>n.map(p=>I(p)).join(`
|
|
94
|
+
`)});const r=this,x=[...this.templateNode.querySelectorAll("[slice]")],f=x.map(p=>h(p,"slice")).filter(p=>!p.includes("/")).filter((p,u,a)=>a.indexOf(p)===u).map(me).flat(),{declaredAttributes:v,hardcodedAttributes:d,exposedAttributes:w}=n[0];class V extends HTMLElement{static get observedAttributes(){return v}#e=0;connectedCallback(){let u=le(this.childNodes);if(this.firstElementChild?.tagName==="TEMPLATE"){this.firstElementChild!==this.lastElementChild&&console.error("payload should have TEMPLATE as only child",this.outerHTML);const m=this.firstElementChild;m.remove(),u=le(m.content.childNodes);for(const E of u)if(E.localName==="style"){const o=Te(this,"data-dce-style");E.innerHTML=`${s}[data-dce-style="${o}"]{${E.innerHTML}}`,m.insertAdjacentElement("beforebegin",E)}else E.nodeType===1?m.insertAdjacentElement("beforebegin",E):E.nodeType===3&&m.insertAdjacentText("beforebegin",E.data)}const a=X("<datadom/>").documentElement,c=(m,E="")=>(o=>(E&&o.append($(a,E)),o))(a.ownerDocument.createElement(m)),A=O(a,"payload",u,ye);oe(A),re(A),this.innerHTML="";const N=O(a,"attributes",this.attributes,m=>c(m.nodeName,m.value)),y=m=>this.hasAttribute(m)||[...N.children].find(E=>E.localName===m);Object.keys(d).map(m=>y(m)||N.append(c(m,d[m]))),v.map(m=>y(m)||N.append(c(m))),O(a,"dataset",Object.keys(this.dataset),m=>c(m,this.dataset[m]));const g=O(a,"slice",f,m=>c(m,"")),U=m=>M(m,g);this.xml=a;const K=[],Q=()=>{const m={};for(let E;E=K.pop();){const o=h(E.sliceElement,"slice");m[o]||(ae(g,o,E),m[o]=E)}Object.keys(m).length!==0&&H()};let _;this.onSlice=m=>{K.push(m),_||(_=setTimeout(()=>{Q(),_=0},1))};const H=this.transform=()=>{if(this.#e)debugger;this.#e=1,i.map((o,b)=>{const C=o.transformToFragment(a.ownerDocument,document);return C||console.error(`XSLT transformation error. xsl:
|
|
95
|
+
`,I(n[b]),`
|
|
96
|
+
xml:
|
|
97
|
+
`,I(a)),C}).map(o=>{o&&(de(o),ue(this,o.childNodes))}),Object.entries(d).map(([o,b])=>{!this.hasAttribute(o)&&b!==h(this,o)&&(this.setAttribute(o,b),this.#t(o,b))}),Object.keys(w).map(o=>{let b=h(this.firstElementChild,o);b!==h(this,o)&&(this.setAttribute(o,b),this.#t(o,b))});function E(o){let b=o;if(o.localName==="slice"){const C=h(o,"for");if(C||(b=o.parentElement),C==="^")do b=b.previousElementSibling;while(b.localName==="slice");else b=this.querySelector(C);if(!b)return console.warn(`can not find selector in "slice for=${C}" `,o.outerHTML);h(o,"slice")||o.setAttribute("slice",h(o,"name"))}return b}D(this,"[slice],[slice-event]",o=>{let b=h(o,"slice-event");const C=o.hasAttribute("slice-value")||o.hasAttribute("value")||o.value,j=E(o);o.dceInitialized||(o.dceInitialized=1,j.hasAttribute("custom-validity")&&(b+=" change submit"),[...new Set((b||"change").split(" "))].forEach(pe=>j.addEventListener(pe,T=>{T.sliceElement=o,T.sliceEventSource=T.currentTarget||T.target,T.sliceProcessed=0;const he=ae(g,h(T.sliceElement,"slice"),T);D(this,"[custom-validity]",P=>{if(!P.setCustomValidity)return;const W=h(P,"custom-validity");try{const R=W&&M(W,N);P.setCustomValidity(R===!0?"":R===!1?"invalid":R)}catch(R){console.error(R,"xPath",W)}});const B=h(j,"custom-validity"),L=B&&M(B,N),F=L===!0?"":L;if(B){if(o.setCustomValidity?o.setCustomValidity(F):o.validationMessage=F,he.map(P=>P.setAttribute("validation-message",F)),T.type==="submit")return L===!0?void 0:(setTimeout(H,1),!!L===L?(L||T.preventDefault(),L):L?(T.preventDefault(),!1):void 0);setTimeout(H,1)}this.onSlice(T)})),(!b||b.includes("init"))&&(C?this.onSlice({type:"init",target:j,sliceElement:o,sliceEventSource:j}):o.value=U(h(o,"slice"))))}),this.#e=0};H(),Q()}#t(u,a){u==="value"&&(this.value=a);let c=this.xml.querySelector(`attributes>${u}`);c?Z(c).append($(c,a)):(c=S(u,a,this.xml),this.xml.querySelector("attributes").append(c)),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{[u]:a}}))}attributeChangedCallback(u,a,c){!this.xml||this.#e||(this.#t(u,c),this.transform())}get dce(){return r}}const q=p=>{window.customElements.get(p)!==V&&window.customElements.define(p,V)};if(t)q(t);else{const p=s;this.setAttribute("tag",p),q(p);const u=document.createElement(p);this.getAttributeNames().forEach(a=>u.setAttribute(a,this.getAttribute(a))),u.append(...[...this.childNodes].filter(a=>a.localName!=="style")),this.append(u)}}get templateNode(){return this.firstElementChild?.tagName==="TEMPLATE"?this.firstElementChild.content:this}get dce(){return this}get xslt(){return X(this.xsltString)}}window.customElements.define("custom-element",De);export{se as c,te as m};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as d,e as a,u as c,f as u}from"./index-CxRwF5Or.js";import"./custom-element-
|
|
1
|
+
import{w as d,e as a,u as c,f as u}from"./index-CxRwF5Or.js";import"./custom-element-uuAtIYWS.js";function p(n){return new Promise(e=>setTimeout(e,n))}function m(n){const{title:e,body:t}=n;return`
|
|
2
2
|
<fieldset>
|
|
3
3
|
<legend>${e}</legend>
|
|
4
4
|
${t}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as l,e as a}from"./index-CxRwF5Or.js";import"./custom-element-
|
|
1
|
+
import{w as l,e as a}from"./index-CxRwF5Or.js";import"./custom-element-uuAtIYWS.js";function f(t){return new Promise(e=>setTimeout(e,t))}function h(t){const{title:e,body:n}=t;return`
|
|
2
2
|
<fieldset>
|
|
3
3
|
<legend>${e}</legend>
|
|
4
4
|
${n}
|
|
@@ -13,7 +13,7 @@ import{w as l,e as a}from"./index-CxRwF5Or.js";import"./custom-element-D59Fok1f.
|
|
|
13
13
|
|
|
14
14
|
<dce-internal data-testid="slot-override">👋</dce-internal>
|
|
15
15
|
<dce-internal data-testid="slot-default"></dce-internal>
|
|
16
|
-
`},play:async({canvasElement:t})=>{const e=l(t);await e.findByText(s.args.title);const n=T=>e.getByTestId(T).textContent
|
|
16
|
+
`},play:async({canvasElement:t})=>{const e=l(t);await e.findByText(s.args.title);const n=T=>e.getByTestId(T).textContent?.trim();a(n("slot-override")).toEqual("👋 World!"),a(n("slot-default")).toEqual("Hello World!")}},i={args:{title:"no tag, template in same DOM",body:`
|
|
17
17
|
<template id="template2">
|
|
18
18
|
🏗️ construction
|
|
19
19
|
</template>
|
|
@@ -92,7 +92,7 @@ import{w as l,e as a}from"./index-CxRwF5Or.js";import"./custom-element-D59Fok1f.
|
|
|
92
92
|
}) => {
|
|
93
93
|
const canvas = within(canvasElement);
|
|
94
94
|
await canvas.findByText(TemplateInPage.args!.title as string);
|
|
95
|
-
const val = prop => canvas.getByTestId(prop).textContent
|
|
95
|
+
const val = (prop: string) => canvas.getByTestId(prop).textContent?.trim();
|
|
96
96
|
expect(val('slot-override')).toEqual('👋 World!');
|
|
97
97
|
expect(val('slot-default')).toEqual('Hello World!');
|
|
98
98
|
}
|
package/storybook-static/assets/{form.test.stories-CnuGN7Zw.js → form.test.stories-BfoLe_rw.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as i,e as n,u as e}from"./index-CxRwF5Or.js";import"./custom-element-
|
|
1
|
+
import{w as i,e as n,u as e}from"./index-CxRwF5Or.js";import"./custom-element-uuAtIYWS.js";function l(a){const{title:t,body:s}=a;return`
|
|
2
2
|
<fieldset>
|
|
3
3
|
<legend>${t}</legend>
|
|
4
4
|
${s}
|
|
@@ -231,7 +231,7 @@ tough-cookie/lib/cookie.js:
|
|
|
231
231
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
232
232
|
*)
|
|
233
233
|
*/const{Cookie:Bo,CookieJar:No,Store:Uo,MemoryCookieStore:Mo,domainMatch:Wo,pathMatch:$o}=Ro;class Ho extends Uo{storage;storageKey;constructor(){super(),Oe(typeof localStorage<"u","Failed to create a WebStorageCookieStore: `localStorage` is not available in this environment. This is likely an issue with MSW. Please report it on GitHub: https://github.com/mswjs/msw/issues"),this.synchronous=!0,this.storage=localStorage,this.storageKey="__msw-cookie-store__"}findCookie(e,o,i,s){try{const m=this.getStore(),l=this.filterCookiesFromList(m,{domain:e,path:o,key:i});s(null,l[0]||null)}catch(m){m instanceof Error&&s(m,null)}}findCookies(e,o,i,s){if(!e){s(null,[]);return}try{const m=this.getStore(),l=this.filterCookiesFromList(m,{domain:e,path:o});s(null,l)}catch(m){m instanceof Error&&s(m,[])}}putCookie(e,o){try{if(e.maxAge===0)return;const i=this.getStore();i.push(e),this.updateStore(i)}catch(i){i instanceof Error&&o(i)}}updateCookie(e,o,i){if(o.maxAge===0){this.removeCookie(o.domain||"",o.path||"",o.key,i);return}this.putCookie(o,i)}removeCookie(e,o,i,s){try{const m=this.getStore(),l=this.deleteCookiesFromList(m,{domain:e,path:o,key:i});this.updateStore(l),s(null)}catch(m){m instanceof Error&&s(m)}}removeCookies(e,o,i){try{const s=this.getStore(),m=this.deleteCookiesFromList(s,{domain:e,path:o});this.updateStore(m),i(null)}catch(s){s instanceof Error&&i(s)}}getAllCookies(e){try{e(null,this.getStore())}catch(o){o instanceof Error&&e(o,[])}}getStore(){try{const e=this.storage.getItem(this.storageKey);if(e==null)return[];const o=JSON.parse(e),i=[];for(const s of o){const m=Bo.fromJSON(s);m!=null&&i.push(m)}return i}catch{return[]}}updateStore(e){this.storage.setItem(this.storageKey,JSON.stringify(e.map(o=>o.toJSON())))}filterCookiesFromList(e,o){const i=[];for(const s of e)o.domain&&!Wo(o.domain,s.domain||"")||o.path&&!$o(o.path,s.path||"")||o.key&&s.key!==o.key||i.push(s);return i}deleteCookiesFromList(e,o){const i=this.filterCookiesFromList(e,o);return e.filter(s=>!i.includes(s))}}const Go=Ve()?new Mo:new Ho,Jo=new No(Go);function Le(){return De.parse(document.cookie)}function Vo(a){if(typeof document>"u"||typeof location>"u")return{};switch(a.credentials){case"same-origin":{const e=new URL(a.url);return location.origin===e.origin?Le():{}}case"include":return Le();default:return{}}}function Yo(a){const e=a.headers.get("cookie"),o=e?De.parse(e):{},i=Vo(a);for(const l in i)a.headers.append("cookie",De.serialize(l,i[l]));const s=Jo.getCookiesSync(a.url),m=Object.fromEntries(s.map(l=>[l.key,l.value]));for(const l of s)a.headers.append("cookie",l.toString());return{...i,...m,...o}}var pe=(a=>(a.HEAD="HEAD",a.GET="GET",a.POST="POST",a.PUT="PUT",a.PATCH="PATCH",a.OPTIONS="OPTIONS",a.DELETE="DELETE",a))(pe||{});class Qo extends ze{constructor(e,o,i,s){super({info:{header:`${e} ${o}`,path:o,method:e},resolver:i,options:s}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:o}=this.info;if(o instanceof RegExp||Ye(o)===o)return;to(o).forEach((m,l)=>{}),Fe.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${o}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/recipes/query-parameters`)}async parse(e){const o=new URL(e.request.url),i=mo(o,this.info.path,e.resolutionContext?.baseUrl),s=Yo(e.request);return{match:i,cookies:s}}predicate(e){const o=this.matchMethod(e.request.method),i=e.parsedResult.match.matches;return o&&i}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):Ea(this.info.method,e)}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const o=co(e.request.url),i=await Sa(e.request),s=await Ba(e.response),m=Ca(s.status);console.groupCollapsed(Fe.formatMessage(`${Aa()} ${e.request.method} ${o} (%c${s.status} ${s.statusText}%c)`),`color:${m}`,"color:inherit"),console.log("Request",i),console.log("Handler:",this),console.log("Response",s),console.groupEnd()}}function le(a){return(e,o,i={})=>new Qo(a,e,o,i)}const je={all:le(/.+/),head:le(pe.HEAD),get:le(pe.GET),post:le(pe.POST),put:le(pe.PUT),delete:le(pe.DELETE),patch:le(pe.PATCH),options:le(pe.OPTIONS)};var Zo=Object.create,ra=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,ua=Object.getOwnPropertyNames,Xo=Object.getPrototypeOf,ei=Object.prototype.hasOwnProperty,ai=(a,e)=>function(){return e||(0,a[ua(a)[0]])((e={exports:{}}).exports,e),e.exports},oi=(a,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ua(e))!ei.call(a,s)&&s!==o&&ra(a,s,{get:()=>e[s],enumerable:!(i=Ko(e,s))||i.enumerable});return a},ii=(a,e,o)=>(o=a!=null?Zo(Xo(a)):{},oi(!a||!a.__esModule?ra(o,"default",{value:a,enumerable:!0}):o,a)),ti=ai({"node_modules/set-cookie-parser/lib/set-cookie.js"(a,e){var o={decodeValues:!0,map:!1,silent:!1};function i(c){return typeof c=="string"&&!!c.trim()}function s(c,x){var v=c.split(";").filter(i),p=v.shift(),z=m(p),f=z.name,j=z.value;x=x?Object.assign({},o,x):o;try{j=x.decodeValues?decodeURIComponent(j):j}catch(E){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+j+"'. Set options.decodeValues to false to disable this feature.",E)}var C={name:f,value:j};return v.forEach(function(E){var S=E.split("="),q=S.shift().trimLeft().toLowerCase(),D=S.join("=");q==="expires"?C.expires=new Date(D):q==="max-age"?C.maxAge=parseInt(D,10):q==="secure"?C.secure=!0:q==="httponly"?C.httpOnly=!0:q==="samesite"?C.sameSite=D:C[q]=D}),C}function m(c){var x="",v="",p=c.split("=");return p.length>1?(x=p.shift(),v=p.join("=")):v=c,{name:x,value:v}}function l(c,x){if(x=x?Object.assign({},o,x):o,!c)return x.map?{}:[];if(c.headers)if(typeof c.headers.getSetCookie=="function")c=c.headers.getSetCookie();else if(c.headers["set-cookie"])c=c.headers["set-cookie"];else{var v=c.headers[Object.keys(c.headers).find(function(z){return z.toLowerCase()==="set-cookie"})];!v&&c.headers.cookie&&!x.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),c=v}if(Array.isArray(c)||(c=[c]),x=x?Object.assign({},o,x):o,x.map){var p={};return c.filter(i).reduce(function(z,f){var j=s(f,x);return z[j.name]=j,z},p)}else return c.filter(i).map(function(z){return s(z,x)})}function r(c){if(Array.isArray(c))return c;if(typeof c!="string")return[];var x=[],v=0,p,z,f,j,C;function E(){for(;v<c.length&&/\s/.test(c.charAt(v));)v+=1;return v<c.length}function S(){return z=c.charAt(v),z!=="="&&z!==";"&&z!==","}for(;v<c.length;){for(p=v,C=!1;E();)if(z=c.charAt(v),z===","){for(f=v,v+=1,E(),j=v;v<c.length&&S();)v+=1;v<c.length&&c.charAt(v)==="="?(C=!0,v=j,x.push(c.substring(p,f)),p=v):v=f+1}else v+=1;(!C||v>=c.length)&&x.push(c.substring(p,c.length))}return x}e.exports=l,e.exports.parse=l,e.exports.parseString=s,e.exports.splitCookiesString=r}}),si=ii(ti()),ni=/[^a-z0-9\-#$%&'*+.^_`|~]/i;function fe(a){if(ni.test(a)||a.trim()==="")throw new TypeError("Invalid character in header field name");return a.trim().toLowerCase()}var Te=[`
|
|
234
|
-
`,"\r"," "," "],ri=new RegExp(`(^[${Te.join("")}]|$[${Te.join("")}])`,"g");function Ce(a){return a.replace(ri,"")}function be(a){if(typeof a!="string"||a.length===0)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o>127||!ui(o))return!1}return!0}function ui(a){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(a)}function Pe(a){if(typeof a!="string"||a.trim()!==a)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o===0||o===10||o===13)return!1}return!0}var ke=Symbol("normalizedHeaders"),Ae=Symbol("rawHeaderNames"),qe=", ",Re,Be,Ne,mi=class ma{constructor(e){this[Re]={},this[Be]=new Map,this[Ne]="Headers",["Headers","HeadersPolyfill"].includes(e?.constructor.name)||e instanceof ma||typeof globalThis.Headers<"u"&&e instanceof globalThis.Headers?e.forEach((i,s)=>{this.append(s,i)},this):Array.isArray(e)?e.forEach(([o,i])=>{this.append(o,Array.isArray(i)?i.join(qe):i)}):e&&Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];this.append(o,Array.isArray(i)?i.join(qe):i)})}[(Re=ke,Be=Ae,Ne=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[ke]).sort((o,i)=>o.localeCompare(i));for(const o of e)if(o==="set-cookie")for(const i of this.getSetCookie())yield[o,i];else yield[o,this.get(o)]}has(e){if(!be(e))throw new TypeError(`Invalid header name "${e}"`);return this[ke].hasOwnProperty(fe(e))}get(e){if(!be(e))throw TypeError(`Invalid header name "${e}"`);return this[ke][fe(e)]??null}set(e,o){if(!be(e)||!Pe(o))return;const i=fe(e),s=Ce(o);this[ke][i]=Ce(s),this[Ae].set(i,e)}append(e,o){if(!be(e)||!Pe(o))return;const i=fe(e),s=Ce(o);let m=this.has(i)?`${this.get(i)}, ${s}`:s;this.set(e,m)}delete(e){if(!be(e)||!this.has(e))return;const o=fe(e);delete this[ke][o],this[Ae].delete(o)}forEach(e,o){for(const[i,s]of this.entries())e.call(o,s,i,this)}getSetCookie(){const e=this.get("set-cookie");return e===null?[]:e===""?[""]:(0,si.splitCookiesString)(e)}};const{message:ci}=He,li=Symbol("kSetCookie");function de(a={}){const e=a?.status||200,o=a?.statusText||ci[e]||"",i=new Headers(a?.headers);return{...a,headers:i,status:e,statusText:o}}function pi(a,e){e.type&&Object.defineProperty(a,"type",{value:e.type,enumerable:!0,writable:!1});const o=e.headers.get("set-cookie");if(o&&(Object.defineProperty(a,li,{value:o,enumerable:!1,writable:!1}),typeof document<"u")){const i=mi.prototype.getSetCookie.call(e.headers);for(const s of i)document.cookie=s}return a}class oe extends Response{constructor(e,o){const i=de(o);super(e,i),pi(this,i)}static text(e,o){const i=de(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/plain"),i.headers.has("Content-Length")||i.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new oe(e,i)}static json(e,o){const i=de(o);i.headers.has("Content-Type")||i.headers.set("Content-Type","application/json");const s=JSON.stringify(e);return i.headers.has("Content-Length")||i.headers.set("Content-Length",s?new Blob([s]).size.toString():"0"),new oe(s,i)}static xml(e,o){const i=de(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/xml"),new oe(e,i)}static html(e,o){const i=de(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/html"),new oe(e,i)}static arrayBuffer(e,o){const i=de(o);return e&&!i.headers.has("Content-Length")&&i.headers.set("Content-Length",e.byteLength.toString()),new oe(e,i)}static formData(e,o){return new oe(e,de(o))}}async function hi(a){let e;return e=a,new Promise(o=>setTimeout(o,e))}ba();const Se={count:1279,next:"https://pokeapi.co/api/v2/pokemon?offset=6&limit=6",previous:null,results:[{name:"bulbasaur",url:"https://pokeapi.co/api/v2/pokemon/1/"},{name:"ivysaur",url:"https://pokeapi.co/api/v2/pokemon/2/"},{name:"venusaur",url:"https://pokeapi.co/api/v2/pokemon/3/"},{name:"charmander",url:"https://pokeapi.co/api/v2/pokemon/4/"},{name:"charmeleon",url:"https://pokeapi.co/api/v2/pokemon/5/"},{name:"charizard",url:"https://pokeapi.co/api/v2/pokemon/6/"}]},di={_id:"@epa-wg/custom-element-dist",_rev:"5-df363ab4a2b9c478c01e021bde4fbafe",name:"@epa-wg/custom-element-dist","dist-tags":{latest:"0.0.31"},versions:{"0.0.1":{name:"@epa-wg/custom-element-dist",version:"0.0.1",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.1",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"161127f2bf1542178566db48bbb1a027ba7f7934",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.1.tgz",fileCount:284,integrity:"sha512-jTBBjhQClcRgF5GqI8+uYkNW6gkTjEjrolMU2JHQGplZI0Kwie3WrYeVuJA4uLuPWl8+Wl1o4YzhNP+sAJ31hw==",signatures:[{sig:"MEYCIQD492KdwBTQ5oKCJujOfPhUYeK6RgU8Kz08LIq0WwMZcQIhANM9RsGaJxzuRQ/B37c7M38u8UTKYbUFGNDC8AtKqGZu",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914279},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"85c02d4d1615a6290c4c17ba941d8847249f2a73",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.20"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.1_1715578030506_0.27588957883085974",host:"s3://npm-registry-packages"}},"0.0.21":{name:"@epa-wg/custom-element-dist",version:"0.0.21",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.21",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"ae369434d0d1e91d75cdf7058dc11bea06948b0b",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.21.tgz",fileCount:284,integrity:"sha512-D8QHHebPInF54cdPt/iodLvj9jJ0x0ymQAiixozJEF6F+RpYfB2pP0Th7a7MYtmiNz7ZwVvFt3gPKYOHJr0Zbw==",signatures:[{sig:"MEUCIQCm0p45iVWRKqgrbRIWxSMWriqPQWyD+put0xpa2HNa1QIgTNiSZ8D/FkeRR+qSBmBmZZcCZPy/eUqAu54v2Y/dNtQ=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914288},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"4dacc9d66e328bebac2aac96c7671f0dca5d33ac",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.21"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.21_1715580074337_0.4062954016656166",host:"s3://npm-registry-packages"}},"0.0.22":{name:"@epa-wg/custom-element-dist",version:"0.0.22",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.22",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"5654ef0e06c4a2f4bc8657f9bf68becd96658185",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.22.tgz",fileCount:297,integrity:"sha512-GZCpXqUpw0em3cJQBFzslNMZ2NT+4iE7qTGTMuSQbYpv64O2sYD7Ako2NLfaxqV5CvpG9+wuUZBz61bhsV3Icw==",signatures:[{sig:"MEUCIQDxUQZIiLj+edd8dAvZxLQPD0CheOWyhq8ualBZYlSBeAIgOJ8jOcuW15+576FWBcP4Ocm6mTza8Q1j4LKyigIdLAY=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9922734},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"98694b5a42508e316bf35a8bbdbddf66a8daaff9",scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/slots.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.22"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.3.1",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.22_1719287752206_0.5878013133540891",host:"s3://npm-registry-packages"}},"0.0.23":{name:"@epa-wg/custom-element-dist",version:"0.0.23",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.23",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"e54f3f38d8f709d03ae03f34fd57afd1af30aa4d",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.23.tgz",fileCount:347,integrity:"sha512-YyCgqZ1qsOgMB80zW0GJSFoWLJQnrzcCCf71mITP5a0iS/jJdvS8Itd9TVfATVqiDSyl7n8ZPWD2DVcwYYC8AA==",signatures:[{sig:"MEQCIEeSlXnm5Mqwjste803lQPC7klLeaHMF2QL4H9oNuTkuAiBhnith5X/GNhwe2NjFRKZ3frip+UnoImD35YA4oHr3UA==",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9805859},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/attributes.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"https://github.com/EPA-WG/custom-element-dist.git",type:"git"},description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},licenseText:` Apache License
|
|
234
|
+
`,"\r"," "," "],ri=new RegExp(`(^[${Te.join("")}]|$[${Te.join("")}])`,"g");function Ce(a){return a.replace(ri,"")}function be(a){if(typeof a!="string"||a.length===0)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o>127||!ui(o))return!1}return!0}function ui(a){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(a)}function Pe(a){if(typeof a!="string"||a.trim()!==a)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o===0||o===10||o===13)return!1}return!0}var ke=Symbol("normalizedHeaders"),Ae=Symbol("rawHeaderNames"),qe=", ",Re,Be,Ne,mi=class ma{constructor(e){this[Re]={},this[Be]=new Map,this[Ne]="Headers",["Headers","HeadersPolyfill"].includes(e?.constructor.name)||e instanceof ma||typeof globalThis.Headers<"u"&&e instanceof globalThis.Headers?e.forEach((i,s)=>{this.append(s,i)},this):Array.isArray(e)?e.forEach(([o,i])=>{this.append(o,Array.isArray(i)?i.join(qe):i)}):e&&Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];this.append(o,Array.isArray(i)?i.join(qe):i)})}[(Re=ke,Be=Ae,Ne=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[ke]).sort((o,i)=>o.localeCompare(i));for(const o of e)if(o==="set-cookie")for(const i of this.getSetCookie())yield[o,i];else yield[o,this.get(o)]}has(e){if(!be(e))throw new TypeError(`Invalid header name "${e}"`);return this[ke].hasOwnProperty(fe(e))}get(e){if(!be(e))throw TypeError(`Invalid header name "${e}"`);return this[ke][fe(e)]??null}set(e,o){if(!be(e)||!Pe(o))return;const i=fe(e),s=Ce(o);this[ke][i]=Ce(s),this[Ae].set(i,e)}append(e,o){if(!be(e)||!Pe(o))return;const i=fe(e),s=Ce(o);let m=this.has(i)?`${this.get(i)}, ${s}`:s;this.set(e,m)}delete(e){if(!be(e)||!this.has(e))return;const o=fe(e);delete this[ke][o],this[Ae].delete(o)}forEach(e,o){for(const[i,s]of this.entries())e.call(o,s,i,this)}getSetCookie(){const e=this.get("set-cookie");return e===null?[]:e===""?[""]:(0,si.splitCookiesString)(e)}};const{message:ci}=He,li=Symbol("kSetCookie");function de(a={}){const e=a?.status||200,o=a?.statusText||ci[e]||"",i=new Headers(a?.headers);return{...a,headers:i,status:e,statusText:o}}function pi(a,e){e.type&&Object.defineProperty(a,"type",{value:e.type,enumerable:!0,writable:!1});const o=e.headers.get("set-cookie");if(o&&(Object.defineProperty(a,li,{value:o,enumerable:!1,writable:!1}),typeof document<"u")){const i=mi.prototype.getSetCookie.call(e.headers);for(const s of i)document.cookie=s}return a}class oe extends Response{constructor(e,o){const i=de(o);super(e,i),pi(this,i)}static text(e,o){const i=de(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/plain"),i.headers.has("Content-Length")||i.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new oe(e,i)}static json(e,o){const i=de(o);i.headers.has("Content-Type")||i.headers.set("Content-Type","application/json");const s=JSON.stringify(e);return i.headers.has("Content-Length")||i.headers.set("Content-Length",s?new Blob([s]).size.toString():"0"),new oe(s,i)}static xml(e,o){const i=de(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/xml"),new oe(e,i)}static html(e,o){const i=de(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/html"),new oe(e,i)}static arrayBuffer(e,o){const i=de(o);return e&&!i.headers.has("Content-Length")&&i.headers.set("Content-Length",e.byteLength.toString()),new oe(e,i)}static formData(e,o){return new oe(e,de(o))}}async function hi(a){let e;return e=a,new Promise(o=>setTimeout(o,e))}ba();const Se={count:1279,next:"https://pokeapi.co/api/v2/pokemon?offset=6&limit=6",previous:null,results:[{name:"bulbasaur",url:"https://pokeapi.co/api/v2/pokemon/1/"},{name:"ivysaur",url:"https://pokeapi.co/api/v2/pokemon/2/"},{name:"venusaur",url:"https://pokeapi.co/api/v2/pokemon/3/"},{name:"charmander",url:"https://pokeapi.co/api/v2/pokemon/4/"},{name:"charmeleon",url:"https://pokeapi.co/api/v2/pokemon/5/"},{name:"charizard",url:"https://pokeapi.co/api/v2/pokemon/6/"}]},di={_id:"@epa-wg/custom-element-dist",_rev:"5-df363ab4a2b9c478c01e021bde4fbafe",name:"@epa-wg/custom-element-dist","dist-tags":{latest:"0.0.32"},versions:{"0.0.1":{name:"@epa-wg/custom-element-dist",version:"0.0.1",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.1",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"161127f2bf1542178566db48bbb1a027ba7f7934",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.1.tgz",fileCount:284,integrity:"sha512-jTBBjhQClcRgF5GqI8+uYkNW6gkTjEjrolMU2JHQGplZI0Kwie3WrYeVuJA4uLuPWl8+Wl1o4YzhNP+sAJ31hw==",signatures:[{sig:"MEYCIQD492KdwBTQ5oKCJujOfPhUYeK6RgU8Kz08LIq0WwMZcQIhANM9RsGaJxzuRQ/B37c7M38u8UTKYbUFGNDC8AtKqGZu",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914279},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"85c02d4d1615a6290c4c17ba941d8847249f2a73",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.20"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.1_1715578030506_0.27588957883085974",host:"s3://npm-registry-packages"}},"0.0.21":{name:"@epa-wg/custom-element-dist",version:"0.0.21",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.21",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"ae369434d0d1e91d75cdf7058dc11bea06948b0b",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.21.tgz",fileCount:284,integrity:"sha512-D8QHHebPInF54cdPt/iodLvj9jJ0x0ymQAiixozJEF6F+RpYfB2pP0Th7a7MYtmiNz7ZwVvFt3gPKYOHJr0Zbw==",signatures:[{sig:"MEUCIQCm0p45iVWRKqgrbRIWxSMWriqPQWyD+put0xpa2HNa1QIgTNiSZ8D/FkeRR+qSBmBmZZcCZPy/eUqAu54v2Y/dNtQ=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914288},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"4dacc9d66e328bebac2aac96c7671f0dca5d33ac",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.21"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.21_1715580074337_0.4062954016656166",host:"s3://npm-registry-packages"}},"0.0.22":{name:"@epa-wg/custom-element-dist",version:"0.0.22",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.22",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"5654ef0e06c4a2f4bc8657f9bf68becd96658185",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.22.tgz",fileCount:297,integrity:"sha512-GZCpXqUpw0em3cJQBFzslNMZ2NT+4iE7qTGTMuSQbYpv64O2sYD7Ako2NLfaxqV5CvpG9+wuUZBz61bhsV3Icw==",signatures:[{sig:"MEUCIQDxUQZIiLj+edd8dAvZxLQPD0CheOWyhq8ualBZYlSBeAIgOJ8jOcuW15+576FWBcP4Ocm6mTza8Q1j4LKyigIdLAY=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9922734},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"98694b5a42508e316bf35a8bbdbddf66a8daaff9",scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/slots.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.22"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.3.1",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.22_1719287752206_0.5878013133540891",host:"s3://npm-registry-packages"}},"0.0.23":{name:"@epa-wg/custom-element-dist",version:"0.0.23",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.23",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"e54f3f38d8f709d03ae03f34fd57afd1af30aa4d",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.23.tgz",fileCount:347,integrity:"sha512-YyCgqZ1qsOgMB80zW0GJSFoWLJQnrzcCCf71mITP5a0iS/jJdvS8Itd9TVfATVqiDSyl7n8ZPWD2DVcwYYC8AA==",signatures:[{sig:"MEQCIEeSlXnm5Mqwjste803lQPC7klLeaHMF2QL4H9oNuTkuAiBhnith5X/GNhwe2NjFRKZ3frip+UnoImD35YA4oHr3UA==",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9805859},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/attributes.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"https://github.com/EPA-WG/custom-element-dist.git",type:"git"},description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},licenseText:` Apache License
|
|
235
235
|
Version 2.0, January 2004
|
|
236
236
|
http://www.apache.org/licenses/
|
|
237
237
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as m,e as t}from"./index-CxRwF5Or.js";import"./custom-element-
|
|
1
|
+
import{w as m,e as t}from"./index-CxRwF5Or.js";import"./custom-element-uuAtIYWS.js";import"./http-request-DNq59pnj.js";import{h as p}from"./handlers-yVPwH_Nz.js";const v={title:"",slice:"page",url:"/pokemon?limit=6"};function r(a){return new Promise(e=>setTimeout(e,a))}function f({title:a,slice:e,url:n}){return`
|
|
2
2
|
<fieldset>
|
|
3
3
|
<legend>${a}</legend>
|
|
4
4
|
<custom-element>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Configure-
|
|
2
|
-
import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))u(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&u(o)}).observe(document,{childList:!0,subtree:!0});function m(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function u(r){if(r.ep)return;r.ep=!0;const s=m(r);fetch(r.href,s)}})();const R="modulepreload",T=function(e,_){return new URL(e,_).href},d={},t=function(_,m,u){let r=Promise.resolve();if(m&&m.length>0){const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),O=i?.nonce||i?.getAttribute("nonce");r=Promise.allSettled(m.map(n=>{if(n=T(n,u),n in d)return;d[n]=!0;const l=n.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(!!u)for(let a=o.length-1;a>=0;a--){const E=o[a];if(E.href===n&&(!l||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${f}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":R,l||(c.as="script"),c.crossOrigin="",c.href=n,O&&c.setAttribute("nonce",O),document.head.appendChild(c),l)return new Promise((a,E)=>{c.addEventListener("load",a),c.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${n}`)))})}))}function s(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return r.then(o=>{for(const i of o||[])i.status==="rejected"&&s(i.reason);return _().catch(s)})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,p=L({page:"preview"});P.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const y={"./src/stories/Configure.mdx":async()=>t(()=>import("./Configure-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Configure-DN6ifayP.js","./index-SnjB5uV8.js","./index-BcZLpTeD.js","./index-D-8MO0q_.js","./index-DrFu-skq.js","./index-RSFf30w1.js","./attributes.test.stories-D1X6EBrd.js","./index-CxRwF5Or.js","./custom-element-uuAtIYWS.js","./css.test.stories-Cp_g2hE1.js","./dom-merge.test.stories-hbpdCka0.js","./external-template.test.stories-BK89h6sk.js","./form.test.stories-BfoLe_rw.js","./http-request.stories-CBFJS2Ws.js","./http-request-DNq59pnj.js","./handlers-yVPwH_Nz.js","./local-storage.test.stories-C0Yzy6Am.js","./location-element-hKpcXCdn.js","./location-element.test.stories-DNFrEu5A.js","./module-url.test.stories-CXibF5Ta.js","./set-url.test.stories-BBfLxv2u.js","./slice-events.test.stories-HcXF8XQI.js","./slots.test.stories-i6mnIFM2.js","./version-select.test.stories-BsUFH6Va.js","./entry-preview-DHVXbf3x.js","./entry-preview-docs-BbcIMweR.js","./tiny-invariant-CopsF_GD.js","./preview-BhhEZcNS.js","./preview-ncvtW_hb.js","./preview-DAeyCMnM.js","./preview-BWzBA1C2.js","./preview-CNKoaWES.js","./preview-Bnd0XhaF.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))u(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&u(o)}).observe(document,{childList:!0,subtree:!0});function m(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function u(r){if(r.ep)return;r.ep=!0;const s=m(r);fetch(r.href,s)}})();const R="modulepreload",T=function(e,_){return new URL(e,_).href},d={},t=function(_,m,u){let r=Promise.resolve();if(m&&m.length>0){const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),O=i?.nonce||i?.getAttribute("nonce");r=Promise.allSettled(m.map(n=>{if(n=T(n,u),n in d)return;d[n]=!0;const l=n.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(!!u)for(let a=o.length-1;a>=0;a--){const E=o[a];if(E.href===n&&(!l||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${f}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":R,l||(c.as="script"),c.crossOrigin="",c.href=n,O&&c.setAttribute("nonce",O),document.head.appendChild(c),l)return new Promise((a,E)=>{c.addEventListener("load",a),c.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${n}`)))})}))}function s(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return r.then(o=>{for(const i of o||[])i.status==="rejected"&&s(i.reason);return _().catch(s)})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,p=L({page:"preview"});P.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const y={"./src/stories/Configure.mdx":async()=>t(()=>import("./Configure-DN6ifayP.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"./src/stories/attributes.test.stories.ts":async()=>t(()=>import("./attributes.test.stories-D1X6EBrd.js"),__vite__mapDeps([6,7,8]),import.meta.url),"./src/stories/css.test.stories.ts":async()=>t(()=>import("./css.test.stories-Cp_g2hE1.js"),__vite__mapDeps([9,7,8]),import.meta.url),"./src/stories/dom-merge.test.stories.ts":async()=>t(()=>import("./dom-merge.test.stories-hbpdCka0.js"),__vite__mapDeps([10,7,8]),import.meta.url),"./src/stories/external-template.test.stories.ts":async()=>t(()=>import("./external-template.test.stories-BK89h6sk.js"),__vite__mapDeps([11,7,8]),import.meta.url),"./src/stories/form.test.stories.ts":async()=>t(()=>import("./form.test.stories-BfoLe_rw.js"),__vite__mapDeps([12,7,8]),import.meta.url),"./src/stories/http-request.stories.ts":async()=>t(()=>import("./http-request.stories-CBFJS2Ws.js"),__vite__mapDeps([13,7,8,14,15]),import.meta.url),"./src/stories/local-storage.test.stories.ts":async()=>t(()=>import("./local-storage.test.stories-C0Yzy6Am.js"),__vite__mapDeps([16,7,8,14,17]),import.meta.url),"./src/stories/location-element.test.stories.ts":async()=>t(()=>import("./location-element.test.stories-DNFrEu5A.js"),__vite__mapDeps([18,7,8,17]),import.meta.url),"./src/stories/module-url.test.stories.ts":async()=>t(()=>import("./module-url.test.stories-CXibF5Ta.js"),__vite__mapDeps([19,7,8]),import.meta.url),"./src/stories/set-url.test.stories.ts":async()=>t(()=>import("./set-url.test.stories-BBfLxv2u.js"),__vite__mapDeps([20,7,8,17]),import.meta.url),"./src/stories/slice-events.test.stories.ts":async()=>t(()=>import("./slice-events.test.stories-HcXF8XQI.js"),__vite__mapDeps([21,7,8]),import.meta.url),"./src/stories/slots.test.stories.ts":async()=>t(()=>import("./slots.test.stories-i6mnIFM2.js"),__vite__mapDeps([22,7,8]),import.meta.url),"./src/stories/version-select.test.stories.ts":async()=>t(()=>import("./version-select.test.stories-BsUFH6Va.js"),__vite__mapDeps([23,7,8,14,17]),import.meta.url)};async function I(e){return y[e]()}const{composeConfigs:V,PreviewWeb:D,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,v=async(e=[])=>{const _=await Promise.all([e[0]??t(()=>import("./entry-preview-DHVXbf3x.js").then(m=>m.e),__vite__mapDeps([24,4]),import.meta.url),e[1]??t(()=>import("./entry-preview-docs-BbcIMweR.js"),__vite__mapDeps([25,24,4,2,26]),import.meta.url),e[2]??t(()=>import("./preview-BhhEZcNS.js"),__vite__mapDeps([27,3]),import.meta.url),e[3]??t(()=>import("./preview-DJMlNTk8.js"),[],import.meta.url),e[4]??t(()=>import("./preview-DHPc-V4N.js"),[],import.meta.url),e[5]??t(()=>import("./preview-ncvtW_hb.js"),__vite__mapDeps([28,4]),import.meta.url),e[6]??t(()=>import("./preview-DYzi3Z2p.js"),[],import.meta.url),e[7]??t(()=>import("./preview-DAeyCMnM.js"),__vite__mapDeps([29,26]),import.meta.url),e[8]??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([30,4]),import.meta.url),e[9]??t(()=>import("./preview-caVMbCIR.js"),[],import.meta.url),e[10]??t(()=>import("./preview-CNKoaWES.js"),__vite__mapDeps([31,7]),import.meta.url),e[11]??t(()=>import("./preview-Bnd0XhaF.js"),__vite__mapDeps([32,15]),import.meta.url)]);return V(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new D(I,v);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M,u as a}from"./index-
|
|
1
|
+
import{M,u as a}from"./index-RSFf30w1.js";import"./index-SnjB5uV8.js";import"./iframe-CJEL_4Nu.js";import"../sb-preview/runtime.js";import"./index-BcZLpTeD.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";export{M as MDXProvider,a as useMDXComponents};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as p,a as i,G as l,K as m,P as c,g as T,L as b,b as d,v as S,w as B,c as L,E as C,$ as H,y as u,d as g,N as y,e as I,D as h,x as k,C as P,f as W,S as A,R as F,I as x,h as D,i as R,A as f,F as v,j as E,k as M,l as N,W as q,n as w,T as O,t as U,o as Z,p as j,q as z,r as G,s as J,u as K,z as Q,B as V,H as X,J as Y,M as _,V as $,O as aa,Q as sa,U as oa,X as ta,Y as ea,Z as ra,_ as na,a0 as pa,a1 as ia,a2 as la,a3 as ma,a4 as ca,a5 as Ta,a6 as ba,a7 as da,a8 as Sa,a9 as Ba,aa as La,ab as Ca,ac as Ha,ad as ua}from"./index-
|
|
1
|
+
import{m as p,a as i,G as l,K as m,P as c,g as T,L as b,b as d,v as S,w as B,c as L,E as C,$ as H,y as u,d as g,N as y,e as I,D as h,x as k,C as P,f as W,S as A,R as F,I as x,h as D,i as R,A as f,F as v,j as E,k as M,l as N,W as q,n as w,T as O,t as U,o as Z,p as j,q as z,r as G,s as J,u as K,z as Q,B as V,H as X,J as Y,M as _,V as $,O as aa,Q as sa,U as oa,X as ta,Y as ea,Z as ra,_ as na,a0 as pa,a1 as ia,a2 as la,a3 as ma,a4 as ca,a5 as Ta,a6 as ba,a7 as da,a8 as Sa,a9 as Ba,aa as La,ab as Ca,ac as Ha,ad as ua}from"./index-SnjB5uV8.js";import"./iframe-CJEL_4Nu.js";import"../sb-preview/runtime.js";import"./index-BcZLpTeD.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";export{p as A,i as ActionBar,l as AddonPanel,m as Badge,c as Bar,T as Blockquote,b as Button,d as ClipboardCode,S as Code,B as DL,L as Div,C as DocumentWrapper,H as EmptyTabContent,u as ErrorFormatter,g as FlexBar,y as Form,I as H1,h as H2,k as H3,P as H4,W as H5,A as H6,F as HR,x as IconButton,D as IconButtonSkeleton,R as Icons,f as Img,v as LI,E as Link,M as ListItem,N as Loader,q as Modal,w as OL,O as P,U as Placeholder,Z as Pre,j as ResetWrapper,z as ScrollArea,G as Separator,J as Spaced,K as Span,Q as StorybookIcon,V as StorybookLogo,X as Symbols,Y as SyntaxHighlighter,_ as TT,$ as TabBar,aa as TabButton,sa as TabWrapper,oa as Table,ta as Tabs,ea as TabsState,ra as TooltipLinkList,na as TooltipMessage,pa as TooltipNote,ia as UL,la as WithTooltip,ma as WithTooltipPure,ca as Zoom,Ta as codeCommon,ba as components,da as createCopyToClipboardFunction,Sa as getStoryHref,Ba as icons,La as interleaveSeparators,Ca as nameSpaceClassNames,Ha as resetComponents,ua as withReset};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{af as e}from"./index-
|
|
1
|
+
import{af as e}from"./index-SnjB5uV8.js";const o={},c=e.createContext(o);function u(n){const t=e.useContext(c);return e.useMemo(function(){return typeof n=="function"?n(t):{...t,...n}},[t,n])}function f(n){let t;return n.disableParentContext?t=typeof n.components=="function"?n.components(o):n.components||o:t=u(n.components),e.createElement(c.Provider,{value:t},n.children)}export{f as M,u};
|