@everymatrix/general-footer-template 1.61.1 → 1.62.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/cjs/custom-content-section.cjs.entry.js +1 -1
  2. package/dist/cjs/general-footer-template.cjs.js +1 -1
  3. package/dist/cjs/image-list.cjs.entry.js +2 -27
  4. package/dist/cjs/link-section-list.cjs.entry.js +3 -28
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/ui-image_2.cjs.entry.js +8 -10
  7. package/dist/collection/components/custom-content-section/custom-content-section.js +1 -2
  8. package/dist/collection/components/general-footer-template/general-footer-template.js +1 -1
  9. package/dist/collection/components/image-list/image-list.js +2 -32
  10. package/dist/collection/components/link-section-list/link-section-list.js +4 -33
  11. package/dist/esm/custom-content-section.entry.js +1 -1
  12. package/dist/esm/general-footer-template.js +1 -1
  13. package/dist/esm/image-list.entry.js +3 -28
  14. package/dist/esm/link-section-list.entry.js +4 -29
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/ui-image_2.entry.js +9 -11
  17. package/dist/general-footer-template/general-footer-template.esm.js +1 -1
  18. package/dist/general-footer-template/p-1535f1fd.entry.js +1 -0
  19. package/dist/general-footer-template/p-3f9e0e81.entry.js +1 -0
  20. package/dist/general-footer-template/p-9c2e6761.entry.js +1 -0
  21. package/dist/general-footer-template/{p-bafd9490.entry.js → p-b09d1ead.entry.js} +1 -1
  22. package/dist/types/components/custom-content-section/custom-content-section.d.ts +0 -1
  23. package/dist/types/components/general-footer-template/general-footer-template.d.ts +1 -1
  24. package/dist/types/components/image-list/image-list.d.ts +0 -8
  25. package/dist/types/components/link-section-list/link-section-list.d.ts +1 -8
  26. package/package.json +1 -1
  27. package/dist/general-footer-template/p-99c0545b.entry.js +0 -1
  28. package/dist/general-footer-template/p-d6f0d5e4.entry.js +0 -1
  29. package/dist/general-footer-template/p-fef8e428.entry.js +0 -1
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, g as getElement, H as Host } from './index-83985f06.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-83985f06.js';
2
2
 
3
- const uiImageCss = ":host{display:block}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;transition:opacity 0.5s ease-in-out}";
3
+ const uiImageCss = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;transition:opacity 0.5s ease-in-out}";
4
4
  const UiImageStyle0 = uiImageCss;
5
5
 
6
6
  const UiImage = class {
@@ -10,7 +10,6 @@ const UiImage = class {
10
10
  this.width = undefined;
11
11
  this.height = undefined;
12
12
  this.alt = undefined;
13
- this.imgClass = '';
14
13
  this.styles = undefined;
15
14
  this.detectDistance = '200px';
16
15
  this.imgLoaded = false;
@@ -20,15 +19,14 @@ const UiImage = class {
20
19
  if (!this.shouldLoad) {
21
20
  return;
22
21
  }
23
- const tempImage = new Image();
24
- tempImage.src = this.src;
25
- tempImage.onload = () => {
22
+ const preloadedImage = new Image();
23
+ preloadedImage.onload = () => {
26
24
  if (this.image) {
27
25
  this.image.src = this.src;
28
26
  this.imgLoaded = true;
29
- this.el.dispatchEvent(new CustomEvent('load', { bubbles: true }));
30
27
  }
31
28
  };
29
+ preloadedImage.src = this.src;
32
30
  }
33
31
  componentDidLoad() {
34
32
  if ('IntersectionObserver' in window) {
@@ -55,7 +53,7 @@ const UiImage = class {
55
53
  }
56
54
  }
57
55
  render() {
58
- return (h("img", { key: '2bb4dc391fc2f753514103e91c0abf065de3236a', ref: el => (this.image = el), style: this.styles, class: `${this.imgClass} ${this.imgLoaded ? 'Visible' : 'Hidden'}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
56
+ return (h(Host, { key: '527318220c6b48375943e897fe0e53e0f33e67ed', class: "HostContainer" }, !this.imgLoaded && (h("ui-skeleton", { key: 'e5c49a781ff2fac5c796cb6a3f8d334dce7be35b', class: "UiContainer", structure: "image", width: "100%", height: "100%" })), h("img", { key: '09dfbf8f52c2c899246590790f2780a84bdeefc3', ref: (el) => (this.image = el), src: this.shouldLoad ? this.src : undefined, onLoad: () => (this.imgLoaded = true), style: this.styles, class: `UiContainer ${this.imgLoaded ? 'Visible' : 'Hidden'}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" })));
59
57
  }
60
58
  get el() { return getElement(this); }
61
59
  static get watchers() { return {
@@ -64,7 +62,7 @@ const UiImage = class {
64
62
  };
65
63
  UiImage.style = UiImageStyle0;
66
64
 
67
- const uiSkeletonCss = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";
65
+ const uiSkeletonCss = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";
68
66
  const UiSkeletonStyle0 = uiSkeletonCss;
69
67
 
70
68
  const UiSkeleton = class {
@@ -112,7 +110,7 @@ const UiSkeleton = class {
112
110
  return (h("div", { class: "SkeletonContainer" }, h("div", { class: "Logo " + (this.animation ? 'Skeleton' : '') })));
113
111
  }
114
112
  renderImage() {
115
- return (h("div", { class: "SkeletonContainer" }, h("div", { class: "Image " + (this.animation ? 'Skeleton' : '') })));
113
+ return (h("div", { class: "Image " + (this.animation ? 'Skeleton' : '') }));
116
114
  }
117
115
  renderTitle() {
118
116
  return (h("div", { class: "SkeletonContainer" }, h("div", { class: "Title " + (this.animation ? 'Skeleton' : '') })));
@@ -222,7 +220,7 @@ const UiSkeleton = class {
222
220
  default:
223
221
  styleBlock = '';
224
222
  }
225
- return (h(Host, { key: '0641e666452d2172c26ed238d236c2ca3db9f8ed' }, h("style", { key: '285fb8210d32aff7f99005627fdecf36f66e82a4' }, styleBlock), this.handleStructure(this.structure)));
223
+ return (h(Host, { key: '3bb792a149db7fe732d5cbfa092cdb4d6ca0689e' }, h("style", { key: 'a4607599b60659f385ae2660513e38b383739674' }, styleBlock), this.handleStructure(this.structure)));
226
224
  }
227
225
  static get watchers() { return {
228
226
  "structure": ["handleStructureChange"]
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-56890359.js";export{s as setNonce}from"./p-56890359.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-bafd9490",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"],navigateViaEvent:[516,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-d6f0d5e4",[[0,"link-section-list",{repeaterContent:[8,"repeater-content"],baseUrl:[513,"base-url"],language:[513],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"],skeletonLoading:[32]}]]],["p-faf0bad1",[[2,"custom-clock",{clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],translationUrl:[513,"translation-url"],language:[513],timeString:[32]},null,{translationUrl:["handleNewTranslations"]}]]],["p-20c8b70b",[[1,"general-footer-template",{language:[513],sections:[513],endpoint:[513],env:[513],userRoles:[513,"user-roles"],userid:[513],session:[513],baseUrl:[513,"base-url"],navigateViaEvent:[513,"navigate-via-event"],postMessageEvent:[513,"post-message-event"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],mbSource:[513,"mb-source"],hasErrors:[32]}]]],["p-99c0545b",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],imgClass:[1,"img-class"],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]],["p-fef8e428",[[2,"image-list",{repeaterContent:[8,"repeater-content"],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"],skeletonLoading:[32]}]]]],e))));
1
+ import{p as e,b as t}from"./p-56890359.js";export{s as setNonce}from"./p-56890359.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-b09d1ead",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"],navigateViaEvent:[516,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-3f9e0e81",[[0,"link-section-list",{repeaterContent:[8,"repeater-content"],baseUrl:[513,"base-url"],language:[513],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-faf0bad1",[[2,"custom-clock",{clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],translationUrl:[513,"translation-url"],language:[513],timeString:[32]},null,{translationUrl:["handleNewTranslations"]}]]],["p-20c8b70b",[[1,"general-footer-template",{language:[513],sections:[513],endpoint:[513],env:[513],userRoles:[513,"user-roles"],userid:[513],session:[513],baseUrl:[513,"base-url"],navigateViaEvent:[513,"navigate-via-event"],postMessageEvent:[513,"post-message-event"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],mbSource:[513,"mb-source"],hasErrors:[32]}]]],["p-1535f1fd",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]],["p-9c2e6761",[[2,"image-list",{repeaterContent:[8,"repeater-content"],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]]],e))));
@@ -0,0 +1 @@
1
+ import{r as e,h as t,H as i,g as n}from"./p-56890359.js";const o=class{constructor(t){e(this,t),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.__uxComponent;t&&(t.shouldLoad=!0,t.handleSrc()),window.EMUxObserver.unobserve(e.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return t(i,{key:"527318220c6b48375943e897fe0e53e0f33e67ed",class:"HostContainer"},!this.imgLoaded&&t("ui-skeleton",{key:"e5c49a781ff2fac5c796cb6a3f8d334dce7be35b",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),t("img",{key:"09dfbf8f52c2c899246590790f2780a84bdeefc3",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:"UiContainer "+(this.imgLoaded?"Visible":"Hidden"),alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return n(this)}static get watchers(){return{src:["handleSrc"]}}};o.style=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;transition:opacity 0.5s ease-in-out}";const s=class{constructor(t){e(this,t),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,i)=>t("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.width};\n --emw-skeleton-logo-height: ${this.height};\n --emw-skeleton-logo-border-radius: ${this.borderRadius}px;\n --emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-logo-margin-top: ${this.marginTop}px;\n --emw-skeleton-logo-margin-left: ${this.marginLeft}px;\n --emw-skeleton-logo-margin-right: ${this.marginRight}px;\n --emw-skeleton-logo-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.width};\n --emw-skeleton-image-height: ${this.height};\n --emw-skeleton-image-border-radius: ${this.borderRadius}px;\n --emw-skeleton-image-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-image-margin-top: ${this.marginTop}px;\n --emw-skeleton-image-margin-left: ${this.marginLeft}px;\n --emw-skeleton-image-margin-right: ${this.marginRight}px;\n --emw-skeleton-image-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.width};\n --emw-skeleton-title-height: ${this.height};\n --emw-skeleton-title-border-radius: ${this.borderRadius}px;\n --emw-skeleton-title-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-title-margin-top: ${this.marginTop}px;\n --emw-skeleton-title-margin-left: ${this.marginLeft}px;\n --emw-skeleton-title-margin-right: ${this.marginRight}px;\n --emw-skeleton-title-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.width};\n --emw-skeleton-text-height: ${this.height};\n --emw-skeleton-text-border-radius: ${this.borderRadius}px;\n --emw-skeleton-text-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-text-margin-top: ${this.marginTop}px;\n --emw-skeleton-text-margin-left: ${this.marginLeft}px;\n --emw-skeleton-text-margin-right: ${this.marginRight}px;\n --emw-skeleton-text-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.width};\n --emw-skeleton-rectangle-height: ${this.height};\n --emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;\n --emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-rectangle-margin-top: ${this.marginTop}px;\n --emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;\n --emw-skeleton-rectangle-margin-right: ${this.marginRight}px;\n --emw-skeleton-rectangle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.size};\n --emw-skeleton-circle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;default:e=""}return t(i,{key:"3bb792a149db7fe732d5cbfa092cdb4d6ca0689e"},t("style",{key:"a4607599b60659f385ae2660513e38b383739674"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};s.style=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";export{o as ui_image,s as ui_skeleton}
@@ -0,0 +1 @@
1
+ import{r as n,h as i}from"./p-56890359.js";const t=class{constructor(i){n(this,i),this.repeaterContent=void 0,this.baseUrl=void 0,this.language=void 0,this.navigateViaEvent=!1,this.postMessageEvent=""}navigateLink(n){window.postMessage({type:this.postMessageEvent,path:n.linkUrl,url:n.linkUrl,target:n.target,externalLink:n.externalLink},window.location.href)}render(){var n,t;const e=null===(t=null===(n=this.repeaterContent)||void 0===n?void 0:n.content)||void 0===t?void 0:t.reduce(((n,i)=>{const t=i.linkCategory,e=i.image,s=n.find((n=>n.categoryTitle===t));return s?s.links.push({linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink,icon:e}):n.push({categoryTitle:t,links:[{linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink,icon:e}]}),n}),[]);return i("div",{class:"LinkSectionListContainer"},i("div",{class:"LinkSectionListWrapper"},this.repeaterContent.categoryTitle&&i("h2",{class:"LinkSectionListTitle"},this.repeaterContent.categoryTitle),e.map((n=>i("ul",null,n.categoryTitle&&i("p",null,n.categoryTitle),n.links.map((n=>i("li",{class:"LinkSectionListLink",key:n.linkName},!0===this.navigateViaEvent?i("span",null,n.linkName&&n.icon?i("span",{class:"LinkSectionListLinkText",onClick:()=>this.navigateLink(n)},i("div",{class:"ContainerImage"},i("ui-image",{class:"LinkSectionIcon",src:n.icon,alt:"icon"})),i("span",{class:""},n.linkName," ")):i("span",{class:"LinkSectionListLinkText",onClick:()=>this.navigateLink(n)},n.linkName?i("span",null,n.linkName," "):i("div",{class:"ContainerImage"},i("ui-image",{class:"LinkSectionIcon",src:n.icon,alt:"icon"})))):i("a",{class:"LinkSectionListLink",href:n.externalLink?n.linkUrl:`${this.baseUrl}/${this.language}${n.linkUrl}`,target:n.target||"_blank"},n.linkName&&n.icon?i("span",{class:"LinkSectionListLinkText"},i("div",{class:"ContainerImage"},i("ui-image",{class:"LinkSectionIcon",src:n.icon,alt:"icon"})),i("span",null,n.linkName)):i("span",{class:"LinkSectionListLinkText"},n.linkName?i("span",null,n.linkName):i("div",{class:"ContainerImage"},i("ui-image",{class:"LinkSectionIcon",src:n.icon,alt:"icon"}))))))))))))}};t.style=":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.SkeletonWrapper {\n width: 25px;\n height: 25px;\n}\n\n.LinkSectionListContainer {\n display: block;\n container-type: inline-size;\n}\n.LinkSectionListWrapper {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: var(--emw--font-weight-semibold, 500);\n text-transform: uppercase;\n}\n.LinkSectionListLink {\n font-weight: var(--emw--font-weight-light, 300);\n}\n\nul {\n width: fit-content;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: var(--emw--spacing-medium, 16px);\n padding-left: var(--emw--spacing-small-minus, 10px);\n font-size: var(--emw--font-size-small, 16px);\n text-transform: uppercase;\n}\nul li {\n list-style: disc;\n display: flex;\n align-items: center;\n position: relative;\n}\nul li .LinkSectionListLinkText {\n display: flex;\n gap: 5px;\n flex-direction: row;\n align-items: center;\n}\nul li .LinkSectionListLinkText span {\n text-align: center;\n cursor: pointer;\n}\nul li .LinkSectionListLinkText img.LinkSectionIcon {\n position: relative;\n height: 25px;\n}\n\na {\n color: inherit;\n}\n\n@container (min-width: 280px) {\n .LinkSectionListWrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n@container (min-width: 650px) {\n .LinkSectionListWrapper {\n grid-gap: 2rem;\n grid-template-columns: repeat(4, 1fr);\n grid-template-rows: 1fr;\n }\n}";export{t as link_section_list}
@@ -0,0 +1 @@
1
+ import{r as n,h as i}from"./p-56890359.js";const e=class{constructor(i){n(this,i),this.navigateLink=(n,i,e)=>{window.postMessage({type:this.postMessageEvent,path:n,url:n,target:i,externalLink:e},window.location.href)},this.repeaterContent=void 0,this.navigateViaEvent=!1,this.postMessageEvent=""}render(){var n,e,a,t;return(null===(n=this.repeaterContent)||void 0===n?void 0:n.content.length)>0&&i("div",{key:"e7604ed1dcace3e2bd67c74e677e5c849c9c8407",class:"ImageListContainer"},i("div",{key:"985672261fcfeac501d1182f5ab9f20e82307cc7",class:"ImageListWrapper"},i("div",{key:"29b903e7bd639b8eb782d5aa6b646098ceee1ced",class:"ImageListSectionTitle"},null===(e=this.repeaterContent)||void 0===e?void 0:e.categoryTitle),i("div",{key:"6cf6da5d3480a5f6d25c9d106e143dbb222e3b74",class:"ImageListLineup"},null===(t=null===(a=this.repeaterContent)||void 0===a?void 0:a.content)||void 0===t?void 0:t.map((n=>i("div",{class:"ImageListIcon"},!0===this.navigateViaEvent?i("div",{class:"ImageListIcon",style:{cursor:"pointer"},onClick:()=>this.navigateLink(null==n?void 0:n.url,null==n?void 0:n.target,null==n?void 0:n.isExternalLink)},i("div",{class:"ContainerImage"},i("ui-image",{src:null==n?void 0:n.image,alt:"icon"})),i("p",null,null==n?void 0:n.title)):i("a",{href:(null==n?void 0:n.url)||"javascript:void(0)",target:(null==n?void 0:n.target)||"_parent"},i("div",{class:"ContainerImage"},i("div",{class:"ImageListPositioner"},i("ui-image",{src:null==n?void 0:n.image,alt:"icon"}))),i("p",null,null==n?void 0:n.title))))))))}};e.style=".sc-image-list-h {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.ContainerImage.sc-image-list {\n position: relative;\n display: inline-block;\n width: 100%;\n}\n\n.SkeletonWrapper.sc-image-list {\n background-color: #f0f0f0;\n width: 50px;\n height: 40px;\n}\n\n.ImageListContainer.sc-image-list {\n height: 100%;\n}\n.ImageListWrapper.sc-image-list {\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n max-width: 90%;\n margin: auto;\n padding: var(--emw--spacing-large, 20px) 0;\n}\n.ImageListSectionTitle.sc-image-list {\n width: 100%;\n display: flex;\n justify-content: left;\n align-content: center;\n padding: var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 14px) var(--emw--spacing-x-large, 30px);\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n text-transform: uppercase;\n font-size: 24px;\n font-weight: 100;\n}\n.ImageListLineup.sc-image-list {\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n gap: var(--emw--spacing-x-large, 30px);\n justify-content: left;\n align-items: flex-start;\n padding-left: var(--emw--spacing-large, 20px);\n}\n.ImageListIcon.sc-image-list img.sc-image-list {\n max-height: var(--emw--size-medium-2x-minus, 40px);\n}\n\na.sc-image-list {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n text-decoration: none;\n}\n\na.sc-image-list p.sc-image-list {\n text-decoration: none;\n color: var(--emw--color-gray-100, #666);\n margin: 0;\n}\n\n@container (max-width: 750px) {\n .ImageListSectionTitle.sc-image-list {\n justify-content: center;\n font-size: var(--emw--font-size-medium, 16px);\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n padding: var(--emw--spacing-large, 20px) 0 var(--emw--spacing-x-large, 30px);\n justify-content: center;\n }\n .ImageListLineup.sc-image-list {\n justify-content: center;\n padding: 0;\n }\n}";export{e as image_list}
@@ -5,4 +5,4 @@ import{r as t,h as e}from"./p-56890359.js";import{c as i,g as r}from"./p-cb65c22
5
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
6
  * Released under the MIT License.
7
7
  */
8
- function Zt(t){return"[object Object]"===Object.prototype.toString.call(t)}const Qt=r(Object.freeze({__proto__:null,isPlainObject:function(t){var e,i;return!1!==Zt(t)&&(void 0===(e=t.constructor)||!1!==Zt(i=e.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf"))}}));var Jt=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Yt}(t)}(t)},Yt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Xt(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ie(Array.isArray(t)?[]:{},t,e):t}function Kt(t,e,i){return t.concat(e).map((function(t){return Xt(t,i)}))}function te(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function ee(t,e){try{return e in t}catch(t){return!1}}function ie(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||Kt,i.isMergeableObject=i.isMergeableObject||Jt,i.cloneUnlessOtherwiseSpecified=Xt;var r=Array.isArray(e);return r===Array.isArray(t)?r?i.arrayMerge(t,e,i):function(t,e,i){var r={};return i.isMergeableObject(t)&&te(t).forEach((function(e){r[e]=Xt(t[e],i)})),te(e).forEach((function(s){(function(t,e){return ee(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,s)||(r[s]=ee(t,s)&&i.isMergeableObject(e[s])?function(t,e){if(!e.customMerge)return ie;var i=e.customMerge(t);return"function"==typeof i?i:ie}(s,i)(t[s],e[s],i):Xt(e[s],i))})),r}(t,e,i):Xt(e,i)}ie.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return ie(t,i,e)}),{})};var re,se=ie,ne={exports:{}};re=ne,function(t,e){re.exports?re.exports=e():t.parseSrcset=e()}(i,(function(){return function(t){function e(t){return" "===t||"\t"===t||"\n"===t||"\f"===t||"\r"===t}function i(e){var i,r=e.exec(t.substring(m));if(r)return m+=(i=r[0]).length,i}for(var r,s,n,o,h,a=t.length,l=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,c=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,d=/^\d+$/,p=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(i(u),m>=a)return g;r=i(c),s=[],","===r.slice(-1)?(r=r.replace(f,""),w()):b()}function b(){for(i(l),n="",o="in descriptor";;){if(h=t.charAt(m),"in descriptor"===o)if(e(h))n&&(s.push(n),n="",o="after descriptor");else{if(","===h)return m+=1,n&&s.push(n),void w();if("("===h)n+=h,o="in parens";else{if(""===h)return n&&s.push(n),void w();n+=h}}else if("in parens"===o)if(")"===h)n+=h,o="in descriptor";else{if(""===h)return s.push(n),void w();n+=h}else if("after descriptor"===o)if(e(h));else{if(""===h)return void w();o="in descriptor",m-=1}m+=1}}function w(){var e,i,n,o,h,a,l,u,c,f=!1,m={};for(o=0;o<s.length;o++)a=(h=s[o])[h.length-1],l=h.substring(0,h.length-1),u=parseInt(l,10),c=parseFloat(l),d.test(l)&&"w"===a?((e||i)&&(f=!0),0===u?f=!0:e=u):p.test(l)&&"x"===a?((e||i||n)&&(f=!0),c<0?f=!0:i=c):d.test(l)&&"h"===a?((n||i)&&(f=!0),0===u?f=!0:n=u):f=!0;f?console&&console.log&&console.log("Invalid srcset descriptor found in '"+t+"' at '"+h+"'."):(m.url=r,e&&(m.w=e),i&&(m.d=i),n&&(m.h=n),g.push(m))}}}));var oe={exports:{}},he=String,ae=function(){return{isColorSupported:!1,reset:he,bold:he,dim:he,italic:he,underline:he,inverse:he,hidden:he,strikethrough:he,black:he,red:he,green:he,yellow:he,blue:he,magenta:he,cyan:he,white:he,gray:he,bgBlack:he,bgRed:he,bgGreen:he,bgYellow:he,bgBlue:he,bgMagenta:he,bgCyan:he,bgWhite:he,blackBright:he,redBright:he,greenBright:he,yellowBright:he,blueBright:he,magentaBright:he,cyanBright:he,whiteBright:he,bgBlackBright:he,bgRedBright:he,bgGreenBright:he,bgYellowBright:he,bgBlueBright:he,bgMagentaBright:he,bgCyanBright:he,bgWhiteBright:he}};oe.exports=ae(),oe.exports.createColors=ae;const le=r(Object.freeze({__proto__:null,default:{}}));let ue=oe.exports,ce=le;class fe extends Error{constructor(t,e,i,r,s,n){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),r&&(this.source=r),n&&(this.plugin=n),void 0!==e&&void 0!==i&&("number"==typeof e?(this.line=e,this.column=i):(this.line=e.line,this.column=e.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,fe)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=ue.isColorSupported),ce&&t&&(e=ce(e));let i,r,s=e.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),h=String(o).length;if(t){let{bold:t,gray:e,red:s}=ue.createColors(!0);i=e=>t(s(e)),r=t=>e(t)}else i=r=t=>t;return s.slice(n,o).map(((t,e)=>{let s=n+1+e,o=" "+(" "+s).slice(-h)+" | ";if(s===this.line){let e=r(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(o)+t+"\n "+e+i("^")}return" "+r(o)+t})).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}var de=fe;fe.default=fe;var pe={};pe.isClean=Symbol("isClean"),pe.my=Symbol("my");const me={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class ge{constructor(t){this.builder=t}atrule(t,e){let i="@"+t.name,r=t.params?this.rawValue(t,"params"):"";void 0!==t.raws.afterName?i+=t.raws.afterName:r&&(i+=" "),t.nodes?this.block(t,i+r):this.builder(i+r+((t.raws.between||"")+(e?";":"")),t)}beforeAfter(t,e){let i;i=this.raw(t,null,"decl"===t.type?"beforeDecl":"comment"===t.type?"beforeComment":"before"===e?"beforeRule":"beforeClose");let r=t.parent,s=0;for(;r&&"root"!==r.type;)s+=1,r=r.parent;if(i.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<s;t++)i+=e}return i}block(t,e){let i,r=this.raw(t,"between","beforeOpen");this.builder(e+r+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),i=this.raw(t,"after")):i=this.raw(t,"after","emptyBody"),i&&this.builder(i),this.builder("}",t,"end")}body(t){let e=t.nodes.length-1;for(;e>0&&"comment"===t.nodes[e].type;)e-=1;let i=this.raw(t,"semicolon");for(let r=0;r<t.nodes.length;r++){let s=t.nodes[r],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==r||i)}}comment(t){let e=this.raw(t,"left","commentLeft"),i=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+i+"*/",t)}decl(t,e){let i=this.raw(t,"between","colon"),r=t.prop+i+this.rawValue(t,"value");t.important&&(r+=t.raws.important||" !important"),e&&(r+=";"),this.builder(r,t)}document(t){this.body(t)}raw(t,e,i){let r;if(i||(i=e),e&&(r=t.raws[e],void 0!==r))return r;let s=t.parent;if("before"===i){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return me[i];let n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[i])return n.rawCache[i];if("before"===i||"after"===i)return this.beforeAfter(t,i);{let s="raw"+((o=i)[0].toUpperCase()+o.slice(1));this[s]?r=this[s](n,t):n.walk((t=>{if(r=t.raws[e],void 0!==r)return!1}))}var o;return void 0===r&&(r=me[i]),n.rawCache[i]=r,r}rawBeforeClose(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let i;return t.walkComments((t=>{if(void 0!==t.raws.before)return i=t.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1})),void 0===i?i=this.raw(e,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(t,e){let i;return t.walkDecls((t=>{if(void 0!==t.raws.before)return i=t.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1})),void 0===i?i=this.raw(e,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(t){let e;return t.walk((t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1})),e}rawBeforeRule(t){let e;return t.walk((i=>{if(i.nodes&&(i.parent!==t||t.first!==i)&&void 0!==i.raws.before)return e=i.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls((t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1})),e}rawEmptyBody(t){let e;return t.walk((t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1})),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk((i=>{let r=i.parent;if(r&&r!==t&&r.parent&&r.parent===t&&void 0!==i.raws.before){let t=i.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}})),e}rawSemicolon(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1})),e}rawValue(t,e){let i=t[e],r=t.raws[e];return r&&r.value===i?r.raw:i}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}}var be=ge;ge.default=ge;let we=be;function ve(t,e){new we(e).stringify(t)}var ye=ve;ve.default=ve;let{isClean:Ee,my:ke}=pe,Se=de,Ae=be,xe=ye;function qe(t,e){let i=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if("proxyCache"===r)continue;let s=t[r],n=typeof s;"parent"===r&&"object"===n?e&&(i[r]=e):"source"===r?i[r]=s:Array.isArray(s)?i[r]=s.map((t=>qe(t,i))):("object"===n&&null!==s&&(s=qe(s)),i[r]=s)}return i}class Ce{constructor(t={}){this.raws={},this[Ee]=!1,this[ke]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let i of t[e])this.append("function"==typeof i.clone?i.clone():i)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=qe(this);for(let i in t)e[i]=t[i];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e={}){if(this.source){let{end:i,start:r}=this.rangeBy(e);return this.source.input.error(t,{column:r.column,line:r.line},{column:i.column,line:i.line},e)}return new Se(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,i)=>(t[e]===i||(t[e]=i,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[Ee]){this[Ee]=!1;let t=this;for(;t=t.parent;)t[Ee]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,e){let i=this.source.start;if(t.index)i=this.positionInside(t.index,e);else if(t.word){let r=(e=this.toString()).indexOf(t.word);-1!==r&&(i=this.positionInside(r,e))}return i}positionInside(t,e){let i=e||this.toString(),r=this.source.start.column,s=this.source.start.line;for(let e=0;e<t;e++)"\n"===i[e]?(r=1,s+=1):r+=1;return{column:r,line:s}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let e={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){let r=this.toString(),s=r.indexOf(t.word);-1!==s&&(e=this.positionInside(s,r),i=this.positionInside(s+t.word.length,r))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?i={column:t.end.column,line:t.end.line}:t.endIndex?i=this.positionInside(t.endIndex):t.index&&(i=this.positionInside(t.index+1));return(i.line<e.line||i.line===e.line&&i.column<=e.column)&&(i={column:e.column+1,line:e.line}),{end:i,start:e}}raw(t,e){return(new Ae).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,i=!1;for(let r of t)r===this?i=!0:i?(this.parent.insertAfter(e,r),e=r):this.parent.insertBefore(e,r);i||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let i={},r=null==e;e=e||new Map;let s=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let r=this[t];if(Array.isArray(r))i[t]=r.map((t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof r&&r.toJSON)i[t]=r.toJSON(null,e);else if("source"===t){let n=e.get(r.input);null==n&&(n=s,e.set(r.input,s),s++),i[t]={end:r.end,inputId:n,start:r.start}}else i[t]=r}return r&&(i.inputs=[...e.keys()].map((t=>t.toJSON()))),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=xe){t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}warn(t,e,i){let r={node:this};for(let t in i)r[t]=i[t];return t.warn(e,r)}get proxyOf(){return this}}var Te=Ce;Ce.default=Ce;let Be=Te;class De extends Be{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var Re=De;De.default=De;const Oe=r(Object.freeze({__proto__:null,nanoid:(t=21)=>{let e="",i=0|t;for(;i--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(i=e)=>{let r="",s=0|i;for(;s--;)r+=t[Math.random()*t.length|0];return r}}));let{SourceMapConsumer:je,SourceMapGenerator:Le}=le,{existsSync:Ne,readFileSync:Me}=le,{dirname:Ie,join:Ue}=le;class Pe{constructor(t,e){if(!1===e.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let i=this.loadMap(e.from,e.map?e.map.prev:void 0);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Ie(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new je(this.text)),this.consumerCache}decodeInline(t){if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var e;let i=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!e)return;let i=t.lastIndexOf(e.pop()),r=t.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(t.substring(i,r)))}loadFile(t){if(this.root=Ie(t),Ne(t))return this.mapFile=t,Me(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof je)return Le.fromSourceMap(e).toString();if(e instanceof Le)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let i=e(t);if(i){let t=this.loadFile(i);if(!t)throw new Error("Unable to load previous source map: "+i.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return t&&(e=Ue(Ie(t),e)),this.loadFile(e)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}var _e=Pe;Pe.default=Pe;let{SourceMapConsumer:$e,SourceMapGenerator:Fe}=le,{fileURLToPath:Ve,pathToFileURL:He}=le,{isAbsolute:Ge,resolve:ze}=le,{nanoid:We}=Oe,Ze=le,Qe=de,Je=_e,Ye=Symbol("fromOffsetCache"),Xe=Boolean($e&&Fe),Ke=Boolean(ze&&Ge);class ti{constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(this.file=!Ke||/^\w+:\/\//.test(e.from)||Ge(e.from)?e.from:ze(e.from)),Ke&&Xe){let t=new Je(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+We(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,i,r={}){let s,n,o;if(e&&"object"==typeof e){let t=e,r=i;if("number"==typeof t.offset){let r=this.fromOffset(t.offset);e=r.line,i=r.col}else e=t.line,i=t.column;if("number"==typeof r.offset){let t=this.fromOffset(r.offset);n=t.line,o=t.col}else n=r.line,o=r.column}else if(!i){let t=this.fromOffset(e);e=t.line,i=t.col}let h=this.origin(e,i,n,o);return s=h?new Qe(t,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,r.plugin):new Qe(t,void 0===n?e:{column:i,line:e},void 0===n?i:{column:o,line:n},this.css,this.file,r.plugin),s.input={column:i,endColumn:o,endLine:n,line:e,source:this.css},this.file&&(He&&(s.input.url=He(this.file).toString()),s.input.file=this.file),s}fromOffset(t){let e,i;if(this[Ye])i=this[Ye];else{let t=this.css.split("\n");i=new Array(t.length);let e=0;for(let r=0,s=t.length;r<s;r++)i[r]=e,e+=t[r].length+1;this[Ye]=i}e=i[i.length-1];let r=0;if(t>=e)r=i.length-1;else{let e,s=i.length-2;for(;r<s;)if(e=r+(s-r>>1),t<i[e])s=e-1;else{if(!(t>=i[e+1])){r=e;break}r=e+1}}return{col:t-i[r]+1,line:r+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:ze(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,i,r){if(!this.map)return!1;let s,n,o=this.map.consumer(),h=o.originalPositionFor({column:e,line:t});if(!h.source)return!1;"number"==typeof i&&(s=o.originalPositionFor({column:r,line:i})),n=Ge(h.source)?He(h.source):new URL(h.source,this.map.consumer().sourceRoot||He(this.map.mapFile));let a={column:h.column,endColumn:s&&s.column,endLine:s&&s.line,line:h.line,url:n.toString()};if("file:"===n.protocol){if(!Ve)throw new Error("file: protocol is not available in this PostCSS build");a.file=Ve(n)}let l=o.sourceContentFor(h.source);return l&&(a.source=l),a}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}}var ei=ti;ti.default=ti,Ze&&Ze.registerInput&&Ze.registerInput(ti);let{SourceMapConsumer:ii,SourceMapGenerator:ri}=le,{dirname:si,relative:ni,resolve:oi,sep:hi}=le,{pathToFileURL:ai}=le,li=ei,ui=Boolean(ii&&ri),ci=Boolean(si&&oi&&ni&&hi);var fi=class{constructor(t,e,i,r){this.stringify=t,this.mapOpts=i.map||{},this.root=e,this.opts=i,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e,i=this.toUrl(this.path(t.file)),r=t.root||si(t.file);!1===this.mapOpts.sourcesContent?(e=new ii(t.text),e.sourcesContent&&(e.sourcesContent=null)):e=t.consumer(),this.map.applySourceMap(e,i,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ci&&ui&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(e=>{t+=e})),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=ri.fromSourceMap(t)}else this.map=new ri({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new ri({file:this.outputFile()});let t,e,i=1,r=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((o,h,a)=>{if(this.css+=o,h&&"end"!==a&&(n.generated.line=i,n.generated.column=r-1,h.source&&h.source.start?(n.source=this.sourcePath(h),n.original.line=h.source.start.line,n.original.column=h.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),t=o.match(/\n/g),t?(i+=t.length,e=o.lastIndexOf("\n"),r=o.length-e):r+=o.length,h&&"start"!==a){let t=h.parent||{raws:{}};("decl"===h.type||"atrule"===h.type&&!h.nodes)&&h===t.last&&!t.raws.semicolon||(h.source&&h.source.end?(n.source=this.sourcePath(h),n.original.line=h.source.end.line,n.original.column=h.source.end.column-1,n.generated.line=i,n.generated.column=r-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=i,n.generated.column=r-1,this.map.addMapping(n)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let i=this.opts.to?si(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=si(oi(i,this.mapOpts.annotation)));let r=ni(i,t);return this.memoizedPaths.set(t,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}}));else{let t=new li(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk((e=>{if(e.source){let i=e.source.input.from;if(i&&!t[i]){t[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,e.source.input.css)}}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(ai){let e=ai(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===hi&&(t=t.replace(/\\/g,"/"));let i=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,i),i}};let di=Te;class pi extends di{constructor(t){super(t),this.type="comment"}}var mi=pi;pi.default=pi;let gi,bi,wi,vi,{isClean:yi,my:Ei}=pe,ki=Re,Si=mi,Ai=Te;function xi(t){return t.map((t=>(t.nodes&&(t.nodes=xi(t.nodes)),delete t.source,t)))}function qi(t){if(t[yi]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)qi(e)}class Ci extends Ai{append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let e,i,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(e=this.indexes[r],i=t(this.proxyOf.nodes[e],e),!1!==i);)this.indexes[r]+=1;return delete this.indexes[r],i}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...i)=>t[e](...i.map((t=>"function"==typeof t?(e,i)=>t(e.toProxy(),i):t))):"every"===e||"some"===e?i=>t[e](((t,...e)=>i(t.toProxy(),...e))):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map((t=>t.toProxy())):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,i)=>(t[e]===i||(t[e]=i,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let i,r=this.index(t),s=this.normalize(e,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let t of s)this.proxyOf.nodes.splice(r+1,0,t);for(let t in this.indexes)i=this.indexes[t],r<i&&(this.indexes[t]=i+s.length);return this.markDirty(),this}insertBefore(t,e){let i,r=this.index(t),s=this.normalize(e,this.proxyOf.nodes[r],0===r&&"prepend").reverse();r=this.index(t);for(let t of s)this.proxyOf.nodes.splice(r,0,t);for(let t in this.indexes)i=this.indexes[t],r<=i&&(this.indexes[t]=i+s.length);return this.markDirty(),this}normalize(t,e){if("string"==typeof t)t=xi(gi(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new ki(t)]}else if(t.selector)t=[new bi(t)];else if(t.name)t=[new wi(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Si(t)]}return t.map((t=>(t[Ei]||Ci.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[yi]&&qi(t),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t)))}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let i in this.indexes)e=this.indexes[i],e>=t&&(this.indexes[i]=e-1);return this.markDirty(),this}replaceValues(t,e,i){return i||(i=e,e={}),this.walkDecls((r=>{e.props&&!e.props.includes(r.prop)||e.fast&&!r.value.includes(e.fast)||(r.value=r.value.replace(t,i))})),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each(((e,i)=>{let r;try{r=t(e,i)}catch(t){throw e.addToError(t)}return!1!==r&&e.walk&&(r=e.walk(t)),r}))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("atrule"===i.type&&t.test(i.name))return e(i,r)})):this.walk(((i,r)=>{if("atrule"===i.type&&i.name===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("atrule"===t.type)return e(t,i)})))}walkComments(t){return this.walk(((e,i)=>{if("comment"===e.type)return t(e,i)}))}walkDecls(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("decl"===i.type&&t.test(i.prop))return e(i,r)})):this.walk(((i,r)=>{if("decl"===i.type&&i.prop===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("decl"===t.type)return e(t,i)})))}walkRules(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("rule"===i.type&&t.test(i.selector))return e(i,r)})):this.walk(((i,r)=>{if("rule"===i.type&&i.selector===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("rule"===t.type)return e(t,i)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}Ci.registerParse=t=>{gi=t},Ci.registerRule=t=>{bi=t},Ci.registerAtRule=t=>{wi=t},Ci.registerRoot=t=>{vi=t};var Ti=Ci;Ci.default=Ci,Ci.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,wi.prototype):"rule"===t.type?Object.setPrototypeOf(t,bi.prototype):"decl"===t.type?Object.setPrototypeOf(t,ki.prototype):"comment"===t.type?Object.setPrototypeOf(t,Si.prototype):"root"===t.type&&Object.setPrototypeOf(t,vi.prototype),t[Ei]=!0,t.nodes&&t.nodes.forEach((t=>{Ci.rebuild(t)}))};let Bi,Di,Ri=Ti;class Oi extends Ri{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new Bi(new Di,this,t).stringify()}}Oi.registerLazyResult=t=>{Bi=t},Oi.registerProcessor=t=>{Di=t};var ji=Oi;Oi.default=Oi;class Li{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var Ni=Li;Li.default=Li;let Mi=Ni;class Ii{constructor(t,e,i){this.processor=t,this.messages=[],this.root=e,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let i=new Mi(t,e);return this.messages.push(i),i}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}}var Ui=Ii;Ii.default=Ii;const Pi="'".charCodeAt(0),_i='"'.charCodeAt(0),$i="\\".charCodeAt(0),Fi="/".charCodeAt(0),Vi="\n".charCodeAt(0),Hi=" ".charCodeAt(0),Gi="\f".charCodeAt(0),zi="\t".charCodeAt(0),Wi="\r".charCodeAt(0),Zi="[".charCodeAt(0),Qi="]".charCodeAt(0),Ji="(".charCodeAt(0),Yi=")".charCodeAt(0),Xi="{".charCodeAt(0),Ki="}".charCodeAt(0),tr=";".charCodeAt(0),er="*".charCodeAt(0),ir=":".charCodeAt(0),rr="@".charCodeAt(0),sr=/[\t\n\f\r "#'()/;[\\\]{}]/g,nr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,or=/.[\r\n"'(/\\]/,hr=/[\da-f]/i;let ar=Ti;class lr extends ar{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}var ur=lr;lr.default=lr,ar.registerAtRule(lr);let cr,fr,dr=Ti;class pr extends dr{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,i){let r=super.normalize(t);if(e)if("prepend"===i)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of r)t.raws.before=e.raws.before;return r}removeChild(t,e){let i=this.index(t);return!e&&0===i&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(t)}toResult(t={}){return new cr(new fr,this,t).stringify()}}pr.registerLazyResult=t=>{cr=t},pr.registerProcessor=t=>{fr=t};var mr=pr;pr.default=pr,dr.registerRoot(pr);let gr={comma:t=>gr.split(t,[","],!0),space:t=>gr.split(t,[" ","\n","\t"]),split(t,e,i){let r=[],s="",n=!1,o=0,h=!1,a="",l=!1;for(let i of t)l?l=!1:"\\"===i?l=!0:h?i===a&&(h=!1):'"'===i||"'"===i?(h=!0,a=i):"("===i?o+=1:")"===i?o>0&&(o-=1):0===o&&e.includes(i)&&(n=!0),n?(""!==s&&r.push(s.trim()),s="",n=!1):s+=i;return(i||""!==s)&&r.push(s.trim()),r}};var br=gr;gr.default=gr;let wr=Ti,vr=br;class yr extends wr{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return vr.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,i=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(i)}}var Er=yr;yr.default=yr,wr.registerRule(yr);let kr=Re,Sr=mi,Ar=ur,xr=mr,qr=Er;const Cr={empty:!0,space:!0};let Tr=Ti,Br=class{constructor(t){this.input=t,this.root=new xr,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,i,r,s=new Ar;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);let n=!1,o=!1,h=[],a=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?a.push("("===e?")":"]"):"{"===e&&a.length>0?a.push("}"):e===a[a.length-1]&&a.pop(),0===a.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(h.length>0){for(r=h.length-1,i=h[r];i&&"space"===i[0];)i=h[--r];i&&(s.source.end=this.getPosition(i[3]||i[2]),s.source.end.offset++)}this.end(t);break}h.push(t)}else h.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(s.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(s,"params",h),n&&(s.source.end=this.getPosition((t=h[h.length-1])[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let i,r=0;for(let s=e-1;s>=0&&(i=t[s],"space"===i[0]||(r+=1,2!==r));s--);throw this.input.error("Missed semicolon","word"===i[0]?i[3]+1:i[2])}colon(t){let e,i,r,s=0;for(let[n,o]of t.entries()){if(e=o,i=e[0],"("===i&&(s+=1),")"===i&&(s-=1),0===s&&":"===i){if(r){if("word"===r[0]&&"progid"===r[1])continue;return n}this.doubleColon(e)}r=e}return!1}comment(t){let e=new Sr;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let i=t[1].slice(2,-2);if(/^\s*$/.test(i))e.text="",e.raws.left=i,e.raws.right="";else{let t=i.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}}createTokenizer(){this.tokenizer=function(t,e={}){let i,r,s,n,o,h,a,l,u,c,f=t.css.valueOf(),d=e.ignoreErrors,p=f.length,m=0,g=[],b=[];function w(e){throw t.error("Unclosed "+e,m)}return{back:function(t){b.push(t)},endOfFile:function(){return 0===b.length&&m>=p},nextToken:function(t){if(b.length)return b.pop();if(m>=p)return;let e=!!t&&t.ignoreUnclosed;switch(i=f.charCodeAt(m),i){case Vi:case Hi:case zi:case Wi:case Gi:r=m;do{r+=1,i=f.charCodeAt(r)}while(i===Hi||i===Vi||i===zi||i===Wi||i===Gi);c=["space",f.slice(m,r)],m=r-1;break;case Zi:case Qi:case Xi:case Ki:case ir:case tr:case Yi:{let t=String.fromCharCode(i);c=[t,t,m];break}case Ji:if(l=g.length?g.pop()[1]:"",u=f.charCodeAt(m+1),"url"===l&&u!==Pi&&u!==_i&&u!==Hi&&u!==Vi&&u!==zi&&u!==Gi&&u!==Wi){r=m;do{if(h=!1,r=f.indexOf(")",r+1),-1===r){if(d||e){r=m;break}w("bracket")}for(a=r;f.charCodeAt(a-1)===$i;)a-=1,h=!h}while(h);c=["brackets",f.slice(m,r+1),m,r],m=r}else r=f.indexOf(")",m+1),n=f.slice(m,r+1),-1===r||or.test(n)?c=["(","(",m]:(c=["brackets",n,m,r],m=r);break;case Pi:case _i:s=i===Pi?"'":'"',r=m;do{if(h=!1,r=f.indexOf(s,r+1),-1===r){if(d||e){r=m+1;break}w("string")}for(a=r;f.charCodeAt(a-1)===$i;)a-=1,h=!h}while(h);c=["string",f.slice(m,r+1),m,r],m=r;break;case rr:sr.lastIndex=m+1,sr.test(f),r=0===sr.lastIndex?f.length-1:sr.lastIndex-2,c=["at-word",f.slice(m,r+1),m,r],m=r;break;case $i:for(r=m,o=!0;f.charCodeAt(r+1)===$i;)r+=1,o=!o;if(i=f.charCodeAt(r+1),o&&i!==Fi&&i!==Hi&&i!==Vi&&i!==zi&&i!==Wi&&i!==Gi&&(r+=1,hr.test(f.charAt(r)))){for(;hr.test(f.charAt(r+1));)r+=1;f.charCodeAt(r+1)===Hi&&(r+=1)}c=["word",f.slice(m,r+1),m,r],m=r;break;default:i===Fi&&f.charCodeAt(m+1)===er?(r=f.indexOf("*/",m+2)+1,0===r&&(d||e?r=f.length:w("comment")),c=["comment",f.slice(m,r+1),m,r],m=r):(nr.lastIndex=m+1,nr.test(f),r=0===nr.lastIndex?f.length-1:nr.lastIndex-2,c=["word",f.slice(m,r+1),m,r],g.push(c),m=r)}return m++,c},position:function(){return m}}}(this.input)}decl(t,e){let i=new kr;this.init(i,t[0][2]);let r,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(s[3]||s[2]||function(t){for(let e=t.length-1;e>=0;e--){let i=t[e],r=i[3]||i[2];if(r)return r}}(t)),i.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;i.prop+=t.shift()[1]}for(i.raws.between="";t.length;){if(r=t.shift(),":"===r[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}"_"!==i.prop[0]&&"*"!==i.prop[0]||(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n,o=[];for(;t.length&&(n=t[0][0],"space"===n||"comment"===n);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(r=t[e],"!important"===r[1].toLowerCase()){i.important=!0;let r=this.stringFrom(t,e);r=this.spacesFromEnd(t)+r," !important"!==r&&(i.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=t.slice(0),s="";for(let t=e;t>0;t--){let e=r[t][0];if(0===s.trim().indexOf("!")&&"space"!==e)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(i.important=!0,i.raws.important=s,t=r)}if("space"!==r[0]&&"comment"!==r[0])break}t.some((t=>"space"!==t[0]&&"comment"!==t[0]))&&(i.raws.between+=o.map((t=>t[1])).join(""),o=[]),this.raw(i,"value",o.concat(t),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new qr;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,i=null,r=!1,s=null,n=[],o=t[1].startsWith("--"),h=[],a=t;for(;a;){if(i=a[0],h.push(a),"("===i||"["===i)s||(s=a),n.push("("===i?")":"]");else if(o&&r&&"{"===i)s||(s=a),n.push("}");else if(0===n.length){if(";"===i){if(r)return void this.decl(h,o);break}if("{"===i)return void this.rule(h);if("}"===i){this.tokenizer.back(h.pop()),e=!0;break}":"===i&&(r=!0)}else i===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&r){if(!o)for(;h.length&&(a=h[h.length-1][0],"space"===a||"comment"===a);)this.tokenizer.back(h.pop());this.decl(h,o)}else this.unknownWord(h)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,i,r){let s,n,o,h,a=i.length,l="",u=!0;for(let t=0;t<a;t+=1)s=i[t],n=s[0],"space"!==n||t!==a-1||r?"comment"===n?(h=i[t-1]?i[t-1][0]:"empty",o=i[t+1]?i[t+1][0]:"empty",Cr[h]||Cr[o]||","===l.slice(-1)?u=!1:l+=s[1]):l+=s[1]:u=!1;if(!u){let r=i.reduce(((t,e)=>t+e[1]),"");t.raws[e]={raw:r,value:l}}t[e]=l}rule(t){t.pop();let e=new qr;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,i="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let e,i="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)i+=t.shift()[1];return i}spacesFromEnd(t){let e,i="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)i=t.pop()[1]+i;return i}stringFrom(t,e){let i="";for(let r=e;r<t.length;r++)i+=t[r][1];return t.splice(e,t.length-e),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},Dr=ei;function Rr(t,e){let i=new Dr(t,e),r=new Br(i);try{r.parse()}catch(t){throw t}return r.root}var Or=Rr;Rr.default=Rr,Tr.registerParse(Rr);let{isClean:jr,my:Lr}=pe,Nr=fi,Mr=ye,Ir=Ti,Ur=ji,Pr=Ui,_r=Or,$r=mr;const Fr={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Vr={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Hr={Once:!0,postcssPlugin:!0,prepare:!0},Gr=0;function zr(t){return"object"==typeof t&&"function"==typeof t.then}function Wr(t){let e=!1,i=Fr[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[i,i+"-"+e,Gr,i+"Exit",i+"Exit-"+e]:e?[i,i+"-"+e,i+"Exit",i+"Exit-"+e]:t.append?[i,Gr,i+"Exit"]:[i,i+"Exit"]}function Zr(t){let e;return e="document"===t.type?["Document",Gr,"DocumentExit"]:"root"===t.type?["Root",Gr,"RootExit"]:Wr(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Qr(t){return t[jr]=!1,t.nodes&&t.nodes.forEach((t=>Qr(t))),t}let Jr={};class Yr{constructor(t,e,i){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof Yr||e instanceof Pr)r=Qr(e.root),e.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=e.map);else{let t=_r;i.syntax&&(t=i.syntax.parse),i.parser&&(t=i.parser),t.parse&&(t=t.parse);try{r=t(e,i)}catch(t){this.processed=!0,this.error=t}r&&!r[Lr]&&Ir.rebuild(r)}else r=Qr(e);this.result=new Pr(t,r,i),this.helpers={...Jr,postcss:Jr,result:this.result},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let i=this.result.lastPlugin;try{e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin||(t.plugin=i.postcssPlugin,t.setMessage())}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,i)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,i])};for(let e of this.plugins)if("object"==typeof e)for(let i in e){if(!Vr[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Hr[i])if("object"==typeof e[i])for(let r in e[i])t(e,"*"===r?i:i+"-"+r.toLowerCase(),e[i][r]);else"function"==typeof e[i]&&t(e,i,e[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.runOnRoot(this.plugins[t]);if(zr(e))try{await e}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[jr];){t[jr]=!0;let e=[Zr(t)];for(;e.length>0;){let t=this.visitTick(e);if(zr(t))try{await t}catch(t){throw this.handleError(t,e[e.length-1].node)}}}if(this.listeners.OnceExit)for(let[e,i]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>i(t,this.helpers)));await Promise.all(e)}else await i(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return zr(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=Mr;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let i=new Nr(e,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins)if(zr(this.runOnRoot(t)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[jr];)t[jr]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[i,r]of t){let t;this.result.lastPlugin=i;try{t=r(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(zr(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:i,visitors:r}=e;if("root"!==i.type&&"document"!==i.type&&!i.parent)return void t.pop();if(r.length>0&&e.visitorIndex<r.length){let[t,s]=r[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===r.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return s(i.toProxy(),this.helpers)}catch(t){throw this.handleError(t,i)}}if(0!==e.iterator){let r,s=e.iterator;for(;r=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!r[jr])return r[jr]=!0,void t.push(Zr(r));e.iterator=0,delete i.indexes[s]}let s=e.events;for(;e.eventIndex<s.length;){let t=s[e.eventIndex];if(e.eventIndex+=1,t===Gr)return void(i.nodes&&i.nodes.length&&(i[jr]=!0,e.iterator=i.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[jr]=!0;let e=Wr(t);for(let i of e)if(i===Gr)t.nodes&&t.each((t=>{t[jr]||this.walkSync(t)}));else{let e=this.listeners[i];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}Yr.registerPostcss=t=>{Jr=t};var Xr=Yr;Yr.default=Yr,$r.registerLazyResult(Yr),Ur.registerLazyResult(Yr);let Kr=fi,ts=ye,es=Or;const is=Ui;class rs{constructor(t,e,i){let r;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=i,this._map=void 0;let s=ts;this.result=new is(this._processor,r,this._opts),this.result.css=e;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let o=new Kr(s,r,this._opts,e);if(o.isMap()){let[t,e]=o.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return this.async().then(t,e)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,e=es;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}}var ss=rs;rs.default=rs;let ns=ss,os=Xr,hs=ji,as=mr;class ls{constructor(t=[]){this.version="8.4.35",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let i of t)if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"==typeof i&&Array.isArray(i.plugins))e=e.concat(i.plugins);else if("object"==typeof i&&i.postcssPlugin)e.push(i);else if("function"==typeof i)e.push(i);else if("object"!=typeof i||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");return e}process(t,e={}){return this.plugins.length||e.parser||e.stringifier||e.syntax?new os(this,t,e):new ns(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}var us=ls;ls.default=ls,as.registerProcessor(ls),hs.registerProcessor(ls);let cs=Re,fs=_e,ds=mi,ps=ur,ms=ei,gs=mr,bs=Er;function ws(t,e){if(Array.isArray(t))return t.map((t=>ws(t)));let{inputs:i,...r}=t;if(i){e=[];for(let t of i){let i={...t,__proto__:ms.prototype};i.map&&(i.map={...i.map,__proto__:fs.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map((t=>ws(t,e)))),r.source){let{inputId:t,...i}=r.source;r.source=i,null!=t&&(r.source.input=e[t])}if("root"===r.type)return new gs(r);if("decl"===r.type)return new cs(r);if("rule"===r.type)return new bs(r);if("comment"===r.type)return new ds(r);if("atrule"===r.type)return new ps(r);throw new Error("Unknown node type: "+t.type)}var vs=ws;ws.default=ws;let ys=de,Es=Re,ks=Xr,Ss=Ti,As=us,xs=ye,qs=vs,Cs=ji,Ts=Ni,Bs=mi,Ds=ur,Rs=Ui,Os=ei,js=Or,Ls=br,Ns=Er,Ms=mr,Is=Te;function Us(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new As(t)}Us.plugin=function(t,e){let i,r=!1;function s(...i){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=e(...i);return s.postcssPlugin=t,s.postcssVersion=(new As).version,s}return Object.defineProperty(s,"postcss",{get:()=>(i||(i=s()),i)}),s.process=function(t,e,i){return Us([s(i)]).process(t,e)},s},Us.stringify=xs,Us.parse=js,Us.fromJSON=qs,Us.list=Ls,Us.comment=t=>new Bs(t),Us.atRule=t=>new Ds(t),Us.decl=t=>new Es(t),Us.rule=t=>new Ns(t),Us.root=t=>new Ms(t),Us.document=t=>new Cs(t),Us.CssSyntaxError=ys,Us.Declaration=Es,Us.Container=Ss,Us.Processor=As,Us.Document=Cs,Us.Comment=Bs,Us.Warning=Ts,Us.AtRule=Ds,Us.Result=Rs,Us.Input=Os,Us.Rule=Ns,Us.Root=Ms,Us.Node=Is,ks.registerPostcss(Us);var Ps=Us;Us.default=Us;const _s=Wt,$s=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},{isPlainObject:Fs}=Qt,Vs=se,Hs=ne.exports,{parse:Gs}=Ps,zs=["img","audio","video","picture","svg","object","map","iframe","embed"],Ws=["script","style"];function Zs(t,e){t&&Object.keys(t).forEach((function(i){e(t[i],i)}))}function Qs(t,e){return{}.hasOwnProperty.call(t,e)}function Js(t,e){const i=[];return Zs(t,(function(t){e(t)&&i.push(t)})),i}var Ys=Ks;const Xs=/^[^\0\t\n\f\r /<=>]+$/;function Ks(t,e){if(null==t)return"";"number"==typeof t&&(t=t.toString());let i="",r="";function s(t,e){const r=this;this.tag=t,this.attribs=e||{},this.tagPosition=i.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){m.length&&(m[m.length-1].text+=r.text)},this.updateParentNodeMediaChildren=function(){m.length&&zs.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}(e=Object.assign({},Ks.defaults,e)).parser=Object.assign({},tn,e.parser);const n=function(t){return!1===e.allowedTags||(e.allowedTags||[]).indexOf(t)>-1};Ws.forEach((function(t){n(t)&&!e.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${t}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const o=e.nonTextTags||["script","style","textarea","option"];let h,a;e.allowedAttributes&&(h={},a={},Zs(e.allowedAttributes,(function(t,e){h[e]=[];const i=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push($s(t).replace(/\\\*/g,".*")):h[e].push(t)})),i.length&&(a[e]=new RegExp("^("+i.join("|")+")$"))})));const l={},u={},c={};Zs(e.allowedClasses,(function(t,e){h&&(Qs(h,e)||(h[e]=[]),h[e].push("class")),l[e]=[],c[e]=[];const i=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push($s(t).replace(/\\\*/g,".*")):t instanceof RegExp?c[e].push(t):l[e].push(t)})),i.length&&(u[e]=new RegExp("^("+i.join("|")+")$"))}));const f={};let d,p,m,g,b,w,v;Zs(e.transformTags,(function(t,e){let i;"function"==typeof t?i=t:"string"==typeof t&&(i=Ks.simpleTransform(t)),"*"===e?d=i:f[e]=i}));let y=!1;k();const E=new _s.Parser({onopentag:function(t,E){if(e.enforceHtmlBoundary&&"html"===t&&k(),w)return void v++;const q=new s(t,E);m.push(q);let C=!1;const T=!!q.text;let B;if(Qs(f,t)&&(B=f[t](t,E),q.attribs=E=B.attribs,void 0!==B.text&&(q.innerText=B.text),t!==B.tagName&&(q.name=t=B.tagName,b[p]=B.tagName)),d&&(B=d(t,E),q.attribs=E=B.attribs,t!==B.tagName&&(q.name=t=B.tagName,b[p]=B.tagName)),(!n(t)||"recursiveEscape"===e.disallowedTagsMode&&!function(t){for(const e in t)if(Qs(t,e))return!1;return!0}(g)||null!=e.nestingLimit&&p>=e.nestingLimit)&&(C=!0,g[p]=!0,"discard"===e.disallowedTagsMode&&-1!==o.indexOf(t)&&(w=!0,v=1),g[p]=!0),p++,C){if("discard"===e.disallowedTagsMode)return;r=i,i=""}i+="<"+t,"script"===t&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(q.innerText=""),(!h||Qs(h,t)||h["*"])&&Zs(E,(function(r,s){if(!Xs.test(s))return void delete q.attribs[s];let n=!1;if(!h||Qs(h,t)&&-1!==h[t].indexOf(s)||h["*"]&&-1!==h["*"].indexOf(s)||Qs(a,t)&&a[t].test(s)||a["*"]&&a["*"].test(s))n=!0;else if(h&&h[t])for(const e of h[t])if(Fs(e)&&e.name&&e.name===s){n=!0;let t="";if(!0===e.multiple){const i=r.split(" ");for(const r of i)-1!==e.values.indexOf(r)&&(""===t?t=r:t+=" "+r)}else e.values.indexOf(r)>=0&&(t=r);r=t}if(n){if(-1!==e.allowedSchemesAppliedToAttributes.indexOf(s)&&A(t,r))return void delete q.attribs[s];if("script"===t&&"src"===s){let t=!0;try{const i=x(r);if(e.allowedScriptHostnames||e.allowedScriptDomains){const r=(e.allowedScriptHostnames||[]).find((function(t){return t===i.url.hostname})),s=(e.allowedScriptDomains||[]).find((function(t){return i.url.hostname===t||i.url.hostname.endsWith(`.${t}`)}));t=r||s}}catch(e){t=!1}if(!t)return void delete q.attribs[s]}if("iframe"===t&&"src"===s){let t=!0;try{const i=x(r);if(i.isRelativeUrl)t=Qs(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const r=(e.allowedIframeHostnames||[]).find((function(t){return t===i.url.hostname})),s=(e.allowedIframeDomains||[]).find((function(t){return i.url.hostname===t||i.url.hostname.endsWith(`.${t}`)}));t=r||s}}catch(e){t=!1}if(!t)return void delete q.attribs[s]}if("srcset"===s)try{let t=Hs(r);if(t.forEach((function(t){A("srcset",t.url)&&(t.evil=!0)})),t=Js(t,(function(t){return!t.evil})),!t.length)return void delete q.attribs[s];r=Js(t,(function(t){return!t.evil})).map((function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")})).join(", "),q.attribs[s]=r}catch(t){return void delete q.attribs[s]}if("class"===s){const e=l[t],i=l["*"],n=[u[t],u["*"]].concat(c[t]).filter((function(t){return t}));if(!(o=r,f=e&&i?Vs(e,i):e||i,d=n,r=f?(o=o.split(/\s+/)).filter((function(t){return-1!==f.indexOf(t)||d.some((function(e){return e.test(t)}))})).join(" "):o).length)return void delete q.attribs[s]}if("style"===s)if(e.parseStyleAttributes)try{if(r=function(t){return t.nodes[0].nodes.reduce((function(t,e){return t.push(`${e.prop}:${e.value}${e.important?" !important":""}`),t}),[]).join(";")}(function(t,e){if(!e)return t;const i=t.nodes[0];let r;return r=e[i.selector]&&e["*"]?Vs(e[i.selector],e["*"]):e[i.selector]||e["*"],r&&(t.nodes[0].nodes=i.nodes.reduce(function(t){return function(e,i){return Qs(t,i.prop)&&t[i.prop].some((function(t){return t.test(i.value)}))&&e.push(i),e}}(r),[])),t}(Gs(t+" {"+r+"}"),e.allowedStyles)),0===r.length)return void delete q.attribs[s]}catch(e){return console.warn('Failed to parse "'+t+" {"+r+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete q.attribs[s]}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");i+=" "+s,r&&r.length&&(i+='="'+S(r,!0)+'"')}else delete q.attribs[s];var o,f,d})),-1!==e.selfClosing.indexOf(t)?i+=" />":(i+=">",!q.innerText||T||e.textFilter||(i+=S(q.innerText),y=!0)),C&&(i=r+S(i),r="")},ontext:function(t){if(w)return;const r=m[m.length-1];let s;if(r&&(s=r.tag,t=void 0!==r.innerText?r.innerText:t),"discard"!==e.disallowedTagsMode||"script"!==s&&"style"!==s){const r=S(t,!1);e.textFilter&&!y?i+=e.textFilter(r,s):y||(i+=r)}else i+=t;m.length&&(m[m.length-1].text+=t)},onclosetag:function(t,s){if(w){if(v--,v)return;w=!1}const o=m.pop();if(!o)return;if(o.tag!==t)return void m.push(o);w=!!e.enforceHtmlBoundary&&"html"===t,p--;const h=g[p];if(h){if(delete g[p],"discard"===e.disallowedTagsMode)return void o.updateParentNodeText();r=i,i=""}b[p]&&(t=b[p],delete b[p]),e.exclusiveFilter&&e.exclusiveFilter(o)?i=i.substr(0,o.tagPosition):(o.updateParentNodeMediaChildren(),o.updateParentNodeText(),-1!==e.selfClosing.indexOf(t)||s&&!n(t)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0?h&&(i=r,r=""):(i+="</"+t+">",h&&(i=r+S(i),r=""),y=!1))}},e.parser);return E.write(t),E.end(),i;function k(){i="",p=0,m=[],g={},b={},w=!1,v=0}function S(t,i){return"string"!=typeof t&&(t+=""),e.parser.decodeEntities&&(t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),i&&(t=t.replace(/"/g,"&quot;"))),t=t.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),i&&(t=t.replace(/"/g,"&quot;")),t}function A(t,i){for(i=i.replace(/[\x00-\x20]+/g,"");;){const t=i.indexOf("\x3c!--");if(-1===t)break;const e=i.indexOf("--\x3e",t+4);if(-1===e)break;i=i.substring(0,t)+i.substring(e+3)}const r=i.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!i.match(/^[/\\]{2}/)&&!e.allowProtocolRelative;const s=r[1].toLowerCase();return Qs(e.allowedSchemesByTag,t)?-1===e.allowedSchemesByTag[t].indexOf(s):!e.allowedSchemes||-1===e.allowedSchemes.indexOf(s)}function x(t){if((t=t.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let e="relative://relative-site";for(let t=0;t<100;t++)e+=`/${t}`;const i=new URL(t,e);return{isRelativeUrl:i&&"relative-site"===i.hostname&&"relative:"===i.protocol,url:i}}}const tn={decodeEntities:!0};Ks.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},Ks.simpleTransform=function(t,e,i){return i=void 0===i||i,e=e||{},function(r,s){let n;if(i)for(n in e)s[n]=e[n];else s=e;return{tagName:t,attribs:s}}};const en=Ys,rn=class{constructor(e){t(this,e),this.customContent=void 0,this.repeaterContent=void 0,this.navigateViaEvent=!1,this.postMessageEvent=""}render(){const t=en(this.customContent,{allowedTags:en.defaults.allowedTags.concat(["img","a"]),allowedAttributes:{img:["src","srcset","alt","title","width","height","loading"],a:["href","target","rel"]}});return e("div",{key:"9990a716f474932b66644b13ec3ef378302dfaeb",class:"CustomContentSectionContainer"},e("div",{key:"0ff21f48796f21dee167a686e3e346896a56cf71",class:"CustomContentSectionWrapper"},e("div",{key:"6b8be4492fdb7f8c3b07545089a2e4dd47a1d8c8",class:"CustomContentSectionContent",innerHTML:t}),this.repeaterContent?e("image-list",{style:{width:"100%"},repeaterContent:this.repeaterContent?this.repeaterContent:null,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent}):""))}};rn.style=".sc-custom-content-section-h{display:block}*.sc-custom-content-section{margin:0}.CustomContentSectionWrapper.sc-custom-content-section{box-sizing:border-box;height:100%;align-items:center}";export{rn as custom_content_section}
8
+ function Zt(t){return"[object Object]"===Object.prototype.toString.call(t)}const Qt=r(Object.freeze({__proto__:null,isPlainObject:function(t){var e,i;return!1!==Zt(t)&&(void 0===(e=t.constructor)||!1!==Zt(i=e.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf"))}}));var Jt=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Yt}(t)}(t)},Yt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Xt(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ie(Array.isArray(t)?[]:{},t,e):t}function Kt(t,e,i){return t.concat(e).map((function(t){return Xt(t,i)}))}function te(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function ee(t,e){try{return e in t}catch(t){return!1}}function ie(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||Kt,i.isMergeableObject=i.isMergeableObject||Jt,i.cloneUnlessOtherwiseSpecified=Xt;var r=Array.isArray(e);return r===Array.isArray(t)?r?i.arrayMerge(t,e,i):function(t,e,i){var r={};return i.isMergeableObject(t)&&te(t).forEach((function(e){r[e]=Xt(t[e],i)})),te(e).forEach((function(s){(function(t,e){return ee(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,s)||(r[s]=ee(t,s)&&i.isMergeableObject(e[s])?function(t,e){if(!e.customMerge)return ie;var i=e.customMerge(t);return"function"==typeof i?i:ie}(s,i)(t[s],e[s],i):Xt(e[s],i))})),r}(t,e,i):Xt(e,i)}ie.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return ie(t,i,e)}),{})};var re,se=ie,ne={exports:{}};re=ne,function(t,e){re.exports?re.exports=e():t.parseSrcset=e()}(i,(function(){return function(t){function e(t){return" "===t||"\t"===t||"\n"===t||"\f"===t||"\r"===t}function i(e){var i,r=e.exec(t.substring(m));if(r)return m+=(i=r[0]).length,i}for(var r,s,n,o,h,a=t.length,l=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,c=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,d=/^\d+$/,p=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(i(u),m>=a)return g;r=i(c),s=[],","===r.slice(-1)?(r=r.replace(f,""),w()):b()}function b(){for(i(l),n="",o="in descriptor";;){if(h=t.charAt(m),"in descriptor"===o)if(e(h))n&&(s.push(n),n="",o="after descriptor");else{if(","===h)return m+=1,n&&s.push(n),void w();if("("===h)n+=h,o="in parens";else{if(""===h)return n&&s.push(n),void w();n+=h}}else if("in parens"===o)if(")"===h)n+=h,o="in descriptor";else{if(""===h)return s.push(n),void w();n+=h}else if("after descriptor"===o)if(e(h));else{if(""===h)return void w();o="in descriptor",m-=1}m+=1}}function w(){var e,i,n,o,h,a,l,u,c,f=!1,m={};for(o=0;o<s.length;o++)a=(h=s[o])[h.length-1],l=h.substring(0,h.length-1),u=parseInt(l,10),c=parseFloat(l),d.test(l)&&"w"===a?((e||i)&&(f=!0),0===u?f=!0:e=u):p.test(l)&&"x"===a?((e||i||n)&&(f=!0),c<0?f=!0:i=c):d.test(l)&&"h"===a?((n||i)&&(f=!0),0===u?f=!0:n=u):f=!0;f?console&&console.log&&console.log("Invalid srcset descriptor found in '"+t+"' at '"+h+"'."):(m.url=r,e&&(m.w=e),i&&(m.d=i),n&&(m.h=n),g.push(m))}}}));var oe={exports:{}},he=String,ae=function(){return{isColorSupported:!1,reset:he,bold:he,dim:he,italic:he,underline:he,inverse:he,hidden:he,strikethrough:he,black:he,red:he,green:he,yellow:he,blue:he,magenta:he,cyan:he,white:he,gray:he,bgBlack:he,bgRed:he,bgGreen:he,bgYellow:he,bgBlue:he,bgMagenta:he,bgCyan:he,bgWhite:he,blackBright:he,redBright:he,greenBright:he,yellowBright:he,blueBright:he,magentaBright:he,cyanBright:he,whiteBright:he,bgBlackBright:he,bgRedBright:he,bgGreenBright:he,bgYellowBright:he,bgBlueBright:he,bgMagentaBright:he,bgCyanBright:he,bgWhiteBright:he}};oe.exports=ae(),oe.exports.createColors=ae;const le=r(Object.freeze({__proto__:null,default:{}}));let ue=oe.exports,ce=le;class fe extends Error{constructor(t,e,i,r,s,n){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),r&&(this.source=r),n&&(this.plugin=n),void 0!==e&&void 0!==i&&("number"==typeof e?(this.line=e,this.column=i):(this.line=e.line,this.column=e.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,fe)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=ue.isColorSupported),ce&&t&&(e=ce(e));let i,r,s=e.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),h=String(o).length;if(t){let{bold:t,gray:e,red:s}=ue.createColors(!0);i=e=>t(s(e)),r=t=>e(t)}else i=r=t=>t;return s.slice(n,o).map(((t,e)=>{let s=n+1+e,o=" "+(" "+s).slice(-h)+" | ";if(s===this.line){let e=r(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(o)+t+"\n "+e+i("^")}return" "+r(o)+t})).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}var de=fe;fe.default=fe;var pe={};pe.isClean=Symbol("isClean"),pe.my=Symbol("my");const me={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class ge{constructor(t){this.builder=t}atrule(t,e){let i="@"+t.name,r=t.params?this.rawValue(t,"params"):"";void 0!==t.raws.afterName?i+=t.raws.afterName:r&&(i+=" "),t.nodes?this.block(t,i+r):this.builder(i+r+((t.raws.between||"")+(e?";":"")),t)}beforeAfter(t,e){let i;i=this.raw(t,null,"decl"===t.type?"beforeDecl":"comment"===t.type?"beforeComment":"before"===e?"beforeRule":"beforeClose");let r=t.parent,s=0;for(;r&&"root"!==r.type;)s+=1,r=r.parent;if(i.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<s;t++)i+=e}return i}block(t,e){let i,r=this.raw(t,"between","beforeOpen");this.builder(e+r+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),i=this.raw(t,"after")):i=this.raw(t,"after","emptyBody"),i&&this.builder(i),this.builder("}",t,"end")}body(t){let e=t.nodes.length-1;for(;e>0&&"comment"===t.nodes[e].type;)e-=1;let i=this.raw(t,"semicolon");for(let r=0;r<t.nodes.length;r++){let s=t.nodes[r],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==r||i)}}comment(t){let e=this.raw(t,"left","commentLeft"),i=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+i+"*/",t)}decl(t,e){let i=this.raw(t,"between","colon"),r=t.prop+i+this.rawValue(t,"value");t.important&&(r+=t.raws.important||" !important"),e&&(r+=";"),this.builder(r,t)}document(t){this.body(t)}raw(t,e,i){let r;if(i||(i=e),e&&(r=t.raws[e],void 0!==r))return r;let s=t.parent;if("before"===i){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return me[i];let n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[i])return n.rawCache[i];if("before"===i||"after"===i)return this.beforeAfter(t,i);{let s="raw"+((o=i)[0].toUpperCase()+o.slice(1));this[s]?r=this[s](n,t):n.walk((t=>{if(r=t.raws[e],void 0!==r)return!1}))}var o;return void 0===r&&(r=me[i]),n.rawCache[i]=r,r}rawBeforeClose(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let i;return t.walkComments((t=>{if(void 0!==t.raws.before)return i=t.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1})),void 0===i?i=this.raw(e,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(t,e){let i;return t.walkDecls((t=>{if(void 0!==t.raws.before)return i=t.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1})),void 0===i?i=this.raw(e,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(t){let e;return t.walk((t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1})),e}rawBeforeRule(t){let e;return t.walk((i=>{if(i.nodes&&(i.parent!==t||t.first!==i)&&void 0!==i.raws.before)return e=i.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls((t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1})),e}rawEmptyBody(t){let e;return t.walk((t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1})),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk((i=>{let r=i.parent;if(r&&r!==t&&r.parent&&r.parent===t&&void 0!==i.raws.before){let t=i.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}})),e}rawSemicolon(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1})),e}rawValue(t,e){let i=t[e],r=t.raws[e];return r&&r.value===i?r.raw:i}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}}var be=ge;ge.default=ge;let we=be;function ve(t,e){new we(e).stringify(t)}var ye=ve;ve.default=ve;let{isClean:Ee,my:ke}=pe,Se=de,Ae=be,xe=ye;function qe(t,e){let i=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if("proxyCache"===r)continue;let s=t[r],n=typeof s;"parent"===r&&"object"===n?e&&(i[r]=e):"source"===r?i[r]=s:Array.isArray(s)?i[r]=s.map((t=>qe(t,i))):("object"===n&&null!==s&&(s=qe(s)),i[r]=s)}return i}class Ce{constructor(t={}){this.raws={},this[Ee]=!1,this[ke]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let i of t[e])this.append("function"==typeof i.clone?i.clone():i)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=qe(this);for(let i in t)e[i]=t[i];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e={}){if(this.source){let{end:i,start:r}=this.rangeBy(e);return this.source.input.error(t,{column:r.column,line:r.line},{column:i.column,line:i.line},e)}return new Se(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,i)=>(t[e]===i||(t[e]=i,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[Ee]){this[Ee]=!1;let t=this;for(;t=t.parent;)t[Ee]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,e){let i=this.source.start;if(t.index)i=this.positionInside(t.index,e);else if(t.word){let r=(e=this.toString()).indexOf(t.word);-1!==r&&(i=this.positionInside(r,e))}return i}positionInside(t,e){let i=e||this.toString(),r=this.source.start.column,s=this.source.start.line;for(let e=0;e<t;e++)"\n"===i[e]?(r=1,s+=1):r+=1;return{column:r,line:s}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let e={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){let r=this.toString(),s=r.indexOf(t.word);-1!==s&&(e=this.positionInside(s,r),i=this.positionInside(s+t.word.length,r))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?i={column:t.end.column,line:t.end.line}:t.endIndex?i=this.positionInside(t.endIndex):t.index&&(i=this.positionInside(t.index+1));return(i.line<e.line||i.line===e.line&&i.column<=e.column)&&(i={column:e.column+1,line:e.line}),{end:i,start:e}}raw(t,e){return(new Ae).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,i=!1;for(let r of t)r===this?i=!0:i?(this.parent.insertAfter(e,r),e=r):this.parent.insertBefore(e,r);i||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let i={},r=null==e;e=e||new Map;let s=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let r=this[t];if(Array.isArray(r))i[t]=r.map((t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof r&&r.toJSON)i[t]=r.toJSON(null,e);else if("source"===t){let n=e.get(r.input);null==n&&(n=s,e.set(r.input,s),s++),i[t]={end:r.end,inputId:n,start:r.start}}else i[t]=r}return r&&(i.inputs=[...e.keys()].map((t=>t.toJSON()))),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=xe){t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}warn(t,e,i){let r={node:this};for(let t in i)r[t]=i[t];return t.warn(e,r)}get proxyOf(){return this}}var Te=Ce;Ce.default=Ce;let Be=Te;class De extends Be{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var Re=De;De.default=De;const Oe=r(Object.freeze({__proto__:null,nanoid:(t=21)=>{let e="",i=0|t;for(;i--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(i=e)=>{let r="",s=0|i;for(;s--;)r+=t[Math.random()*t.length|0];return r}}));let{SourceMapConsumer:je,SourceMapGenerator:Le}=le,{existsSync:Ne,readFileSync:Me}=le,{dirname:Ie,join:Ue}=le;class Pe{constructor(t,e){if(!1===e.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let i=this.loadMap(e.from,e.map?e.map.prev:void 0);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Ie(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new je(this.text)),this.consumerCache}decodeInline(t){if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var e;let i=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!e)return;let i=t.lastIndexOf(e.pop()),r=t.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(t.substring(i,r)))}loadFile(t){if(this.root=Ie(t),Ne(t))return this.mapFile=t,Me(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof je)return Le.fromSourceMap(e).toString();if(e instanceof Le)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let i=e(t);if(i){let t=this.loadFile(i);if(!t)throw new Error("Unable to load previous source map: "+i.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return t&&(e=Ue(Ie(t),e)),this.loadFile(e)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}var _e=Pe;Pe.default=Pe;let{SourceMapConsumer:$e,SourceMapGenerator:Fe}=le,{fileURLToPath:Ve,pathToFileURL:He}=le,{isAbsolute:Ge,resolve:ze}=le,{nanoid:We}=Oe,Ze=le,Qe=de,Je=_e,Ye=Symbol("fromOffsetCache"),Xe=Boolean($e&&Fe),Ke=Boolean(ze&&Ge);class ti{constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(this.file=!Ke||/^\w+:\/\//.test(e.from)||Ge(e.from)?e.from:ze(e.from)),Ke&&Xe){let t=new Je(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+We(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,i,r={}){let s,n,o;if(e&&"object"==typeof e){let t=e,r=i;if("number"==typeof t.offset){let r=this.fromOffset(t.offset);e=r.line,i=r.col}else e=t.line,i=t.column;if("number"==typeof r.offset){let t=this.fromOffset(r.offset);n=t.line,o=t.col}else n=r.line,o=r.column}else if(!i){let t=this.fromOffset(e);e=t.line,i=t.col}let h=this.origin(e,i,n,o);return s=h?new Qe(t,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,r.plugin):new Qe(t,void 0===n?e:{column:i,line:e},void 0===n?i:{column:o,line:n},this.css,this.file,r.plugin),s.input={column:i,endColumn:o,endLine:n,line:e,source:this.css},this.file&&(He&&(s.input.url=He(this.file).toString()),s.input.file=this.file),s}fromOffset(t){let e,i;if(this[Ye])i=this[Ye];else{let t=this.css.split("\n");i=new Array(t.length);let e=0;for(let r=0,s=t.length;r<s;r++)i[r]=e,e+=t[r].length+1;this[Ye]=i}e=i[i.length-1];let r=0;if(t>=e)r=i.length-1;else{let e,s=i.length-2;for(;r<s;)if(e=r+(s-r>>1),t<i[e])s=e-1;else{if(!(t>=i[e+1])){r=e;break}r=e+1}}return{col:t-i[r]+1,line:r+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:ze(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,i,r){if(!this.map)return!1;let s,n,o=this.map.consumer(),h=o.originalPositionFor({column:e,line:t});if(!h.source)return!1;"number"==typeof i&&(s=o.originalPositionFor({column:r,line:i})),n=Ge(h.source)?He(h.source):new URL(h.source,this.map.consumer().sourceRoot||He(this.map.mapFile));let a={column:h.column,endColumn:s&&s.column,endLine:s&&s.line,line:h.line,url:n.toString()};if("file:"===n.protocol){if(!Ve)throw new Error("file: protocol is not available in this PostCSS build");a.file=Ve(n)}let l=o.sourceContentFor(h.source);return l&&(a.source=l),a}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}}var ei=ti;ti.default=ti,Ze&&Ze.registerInput&&Ze.registerInput(ti);let{SourceMapConsumer:ii,SourceMapGenerator:ri}=le,{dirname:si,relative:ni,resolve:oi,sep:hi}=le,{pathToFileURL:ai}=le,li=ei,ui=Boolean(ii&&ri),ci=Boolean(si&&oi&&ni&&hi);var fi=class{constructor(t,e,i,r){this.stringify=t,this.mapOpts=i.map||{},this.root=e,this.opts=i,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e,i=this.toUrl(this.path(t.file)),r=t.root||si(t.file);!1===this.mapOpts.sourcesContent?(e=new ii(t.text),e.sourcesContent&&(e.sourcesContent=null)):e=t.consumer(),this.map.applySourceMap(e,i,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ci&&ui&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(e=>{t+=e})),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=ri.fromSourceMap(t)}else this.map=new ri({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new ri({file:this.outputFile()});let t,e,i=1,r=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((o,h,a)=>{if(this.css+=o,h&&"end"!==a&&(n.generated.line=i,n.generated.column=r-1,h.source&&h.source.start?(n.source=this.sourcePath(h),n.original.line=h.source.start.line,n.original.column=h.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),t=o.match(/\n/g),t?(i+=t.length,e=o.lastIndexOf("\n"),r=o.length-e):r+=o.length,h&&"start"!==a){let t=h.parent||{raws:{}};("decl"===h.type||"atrule"===h.type&&!h.nodes)&&h===t.last&&!t.raws.semicolon||(h.source&&h.source.end?(n.source=this.sourcePath(h),n.original.line=h.source.end.line,n.original.column=h.source.end.column-1,n.generated.line=i,n.generated.column=r-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=i,n.generated.column=r-1,this.map.addMapping(n)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let i=this.opts.to?si(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=si(oi(i,this.mapOpts.annotation)));let r=ni(i,t);return this.memoizedPaths.set(t,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}}));else{let t=new li(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk((e=>{if(e.source){let i=e.source.input.from;if(i&&!t[i]){t[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,e.source.input.css)}}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(ai){let e=ai(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===hi&&(t=t.replace(/\\/g,"/"));let i=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,i),i}};let di=Te;class pi extends di{constructor(t){super(t),this.type="comment"}}var mi=pi;pi.default=pi;let gi,bi,wi,vi,{isClean:yi,my:Ei}=pe,ki=Re,Si=mi,Ai=Te;function xi(t){return t.map((t=>(t.nodes&&(t.nodes=xi(t.nodes)),delete t.source,t)))}function qi(t){if(t[yi]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)qi(e)}class Ci extends Ai{append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let e,i,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(e=this.indexes[r],i=t(this.proxyOf.nodes[e],e),!1!==i);)this.indexes[r]+=1;return delete this.indexes[r],i}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...i)=>t[e](...i.map((t=>"function"==typeof t?(e,i)=>t(e.toProxy(),i):t))):"every"===e||"some"===e?i=>t[e](((t,...e)=>i(t.toProxy(),...e))):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map((t=>t.toProxy())):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,i)=>(t[e]===i||(t[e]=i,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let i,r=this.index(t),s=this.normalize(e,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let t of s)this.proxyOf.nodes.splice(r+1,0,t);for(let t in this.indexes)i=this.indexes[t],r<i&&(this.indexes[t]=i+s.length);return this.markDirty(),this}insertBefore(t,e){let i,r=this.index(t),s=this.normalize(e,this.proxyOf.nodes[r],0===r&&"prepend").reverse();r=this.index(t);for(let t of s)this.proxyOf.nodes.splice(r,0,t);for(let t in this.indexes)i=this.indexes[t],r<=i&&(this.indexes[t]=i+s.length);return this.markDirty(),this}normalize(t,e){if("string"==typeof t)t=xi(gi(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new ki(t)]}else if(t.selector)t=[new bi(t)];else if(t.name)t=[new wi(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Si(t)]}return t.map((t=>(t[Ei]||Ci.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[yi]&&qi(t),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t)))}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let i in this.indexes)e=this.indexes[i],e>=t&&(this.indexes[i]=e-1);return this.markDirty(),this}replaceValues(t,e,i){return i||(i=e,e={}),this.walkDecls((r=>{e.props&&!e.props.includes(r.prop)||e.fast&&!r.value.includes(e.fast)||(r.value=r.value.replace(t,i))})),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each(((e,i)=>{let r;try{r=t(e,i)}catch(t){throw e.addToError(t)}return!1!==r&&e.walk&&(r=e.walk(t)),r}))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("atrule"===i.type&&t.test(i.name))return e(i,r)})):this.walk(((i,r)=>{if("atrule"===i.type&&i.name===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("atrule"===t.type)return e(t,i)})))}walkComments(t){return this.walk(((e,i)=>{if("comment"===e.type)return t(e,i)}))}walkDecls(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("decl"===i.type&&t.test(i.prop))return e(i,r)})):this.walk(((i,r)=>{if("decl"===i.type&&i.prop===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("decl"===t.type)return e(t,i)})))}walkRules(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("rule"===i.type&&t.test(i.selector))return e(i,r)})):this.walk(((i,r)=>{if("rule"===i.type&&i.selector===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("rule"===t.type)return e(t,i)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}Ci.registerParse=t=>{gi=t},Ci.registerRule=t=>{bi=t},Ci.registerAtRule=t=>{wi=t},Ci.registerRoot=t=>{vi=t};var Ti=Ci;Ci.default=Ci,Ci.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,wi.prototype):"rule"===t.type?Object.setPrototypeOf(t,bi.prototype):"decl"===t.type?Object.setPrototypeOf(t,ki.prototype):"comment"===t.type?Object.setPrototypeOf(t,Si.prototype):"root"===t.type&&Object.setPrototypeOf(t,vi.prototype),t[Ei]=!0,t.nodes&&t.nodes.forEach((t=>{Ci.rebuild(t)}))};let Bi,Di,Ri=Ti;class Oi extends Ri{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new Bi(new Di,this,t).stringify()}}Oi.registerLazyResult=t=>{Bi=t},Oi.registerProcessor=t=>{Di=t};var ji=Oi;Oi.default=Oi;class Li{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var Ni=Li;Li.default=Li;let Mi=Ni;class Ii{constructor(t,e,i){this.processor=t,this.messages=[],this.root=e,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let i=new Mi(t,e);return this.messages.push(i),i}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}}var Ui=Ii;Ii.default=Ii;const Pi="'".charCodeAt(0),_i='"'.charCodeAt(0),$i="\\".charCodeAt(0),Fi="/".charCodeAt(0),Vi="\n".charCodeAt(0),Hi=" ".charCodeAt(0),Gi="\f".charCodeAt(0),zi="\t".charCodeAt(0),Wi="\r".charCodeAt(0),Zi="[".charCodeAt(0),Qi="]".charCodeAt(0),Ji="(".charCodeAt(0),Yi=")".charCodeAt(0),Xi="{".charCodeAt(0),Ki="}".charCodeAt(0),tr=";".charCodeAt(0),er="*".charCodeAt(0),ir=":".charCodeAt(0),rr="@".charCodeAt(0),sr=/[\t\n\f\r "#'()/;[\\\]{}]/g,nr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,or=/.[\r\n"'(/\\]/,hr=/[\da-f]/i;let ar=Ti;class lr extends ar{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}var ur=lr;lr.default=lr,ar.registerAtRule(lr);let cr,fr,dr=Ti;class pr extends dr{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,i){let r=super.normalize(t);if(e)if("prepend"===i)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of r)t.raws.before=e.raws.before;return r}removeChild(t,e){let i=this.index(t);return!e&&0===i&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(t)}toResult(t={}){return new cr(new fr,this,t).stringify()}}pr.registerLazyResult=t=>{cr=t},pr.registerProcessor=t=>{fr=t};var mr=pr;pr.default=pr,dr.registerRoot(pr);let gr={comma:t=>gr.split(t,[","],!0),space:t=>gr.split(t,[" ","\n","\t"]),split(t,e,i){let r=[],s="",n=!1,o=0,h=!1,a="",l=!1;for(let i of t)l?l=!1:"\\"===i?l=!0:h?i===a&&(h=!1):'"'===i||"'"===i?(h=!0,a=i):"("===i?o+=1:")"===i?o>0&&(o-=1):0===o&&e.includes(i)&&(n=!0),n?(""!==s&&r.push(s.trim()),s="",n=!1):s+=i;return(i||""!==s)&&r.push(s.trim()),r}};var br=gr;gr.default=gr;let wr=Ti,vr=br;class yr extends wr{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return vr.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,i=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(i)}}var Er=yr;yr.default=yr,wr.registerRule(yr);let kr=Re,Sr=mi,Ar=ur,xr=mr,qr=Er;const Cr={empty:!0,space:!0};let Tr=Ti,Br=class{constructor(t){this.input=t,this.root=new xr,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,i,r,s=new Ar;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);let n=!1,o=!1,h=[],a=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?a.push("("===e?")":"]"):"{"===e&&a.length>0?a.push("}"):e===a[a.length-1]&&a.pop(),0===a.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(h.length>0){for(r=h.length-1,i=h[r];i&&"space"===i[0];)i=h[--r];i&&(s.source.end=this.getPosition(i[3]||i[2]),s.source.end.offset++)}this.end(t);break}h.push(t)}else h.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(s.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(s,"params",h),n&&(s.source.end=this.getPosition((t=h[h.length-1])[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let i,r=0;for(let s=e-1;s>=0&&(i=t[s],"space"===i[0]||(r+=1,2!==r));s--);throw this.input.error("Missed semicolon","word"===i[0]?i[3]+1:i[2])}colon(t){let e,i,r,s=0;for(let[n,o]of t.entries()){if(e=o,i=e[0],"("===i&&(s+=1),")"===i&&(s-=1),0===s&&":"===i){if(r){if("word"===r[0]&&"progid"===r[1])continue;return n}this.doubleColon(e)}r=e}return!1}comment(t){let e=new Sr;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let i=t[1].slice(2,-2);if(/^\s*$/.test(i))e.text="",e.raws.left=i,e.raws.right="";else{let t=i.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}}createTokenizer(){this.tokenizer=function(t,e={}){let i,r,s,n,o,h,a,l,u,c,f=t.css.valueOf(),d=e.ignoreErrors,p=f.length,m=0,g=[],b=[];function w(e){throw t.error("Unclosed "+e,m)}return{back:function(t){b.push(t)},endOfFile:function(){return 0===b.length&&m>=p},nextToken:function(t){if(b.length)return b.pop();if(m>=p)return;let e=!!t&&t.ignoreUnclosed;switch(i=f.charCodeAt(m),i){case Vi:case Hi:case zi:case Wi:case Gi:r=m;do{r+=1,i=f.charCodeAt(r)}while(i===Hi||i===Vi||i===zi||i===Wi||i===Gi);c=["space",f.slice(m,r)],m=r-1;break;case Zi:case Qi:case Xi:case Ki:case ir:case tr:case Yi:{let t=String.fromCharCode(i);c=[t,t,m];break}case Ji:if(l=g.length?g.pop()[1]:"",u=f.charCodeAt(m+1),"url"===l&&u!==Pi&&u!==_i&&u!==Hi&&u!==Vi&&u!==zi&&u!==Gi&&u!==Wi){r=m;do{if(h=!1,r=f.indexOf(")",r+1),-1===r){if(d||e){r=m;break}w("bracket")}for(a=r;f.charCodeAt(a-1)===$i;)a-=1,h=!h}while(h);c=["brackets",f.slice(m,r+1),m,r],m=r}else r=f.indexOf(")",m+1),n=f.slice(m,r+1),-1===r||or.test(n)?c=["(","(",m]:(c=["brackets",n,m,r],m=r);break;case Pi:case _i:s=i===Pi?"'":'"',r=m;do{if(h=!1,r=f.indexOf(s,r+1),-1===r){if(d||e){r=m+1;break}w("string")}for(a=r;f.charCodeAt(a-1)===$i;)a-=1,h=!h}while(h);c=["string",f.slice(m,r+1),m,r],m=r;break;case rr:sr.lastIndex=m+1,sr.test(f),r=0===sr.lastIndex?f.length-1:sr.lastIndex-2,c=["at-word",f.slice(m,r+1),m,r],m=r;break;case $i:for(r=m,o=!0;f.charCodeAt(r+1)===$i;)r+=1,o=!o;if(i=f.charCodeAt(r+1),o&&i!==Fi&&i!==Hi&&i!==Vi&&i!==zi&&i!==Wi&&i!==Gi&&(r+=1,hr.test(f.charAt(r)))){for(;hr.test(f.charAt(r+1));)r+=1;f.charCodeAt(r+1)===Hi&&(r+=1)}c=["word",f.slice(m,r+1),m,r],m=r;break;default:i===Fi&&f.charCodeAt(m+1)===er?(r=f.indexOf("*/",m+2)+1,0===r&&(d||e?r=f.length:w("comment")),c=["comment",f.slice(m,r+1),m,r],m=r):(nr.lastIndex=m+1,nr.test(f),r=0===nr.lastIndex?f.length-1:nr.lastIndex-2,c=["word",f.slice(m,r+1),m,r],g.push(c),m=r)}return m++,c},position:function(){return m}}}(this.input)}decl(t,e){let i=new kr;this.init(i,t[0][2]);let r,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(s[3]||s[2]||function(t){for(let e=t.length-1;e>=0;e--){let i=t[e],r=i[3]||i[2];if(r)return r}}(t)),i.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;i.prop+=t.shift()[1]}for(i.raws.between="";t.length;){if(r=t.shift(),":"===r[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}"_"!==i.prop[0]&&"*"!==i.prop[0]||(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n,o=[];for(;t.length&&(n=t[0][0],"space"===n||"comment"===n);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(r=t[e],"!important"===r[1].toLowerCase()){i.important=!0;let r=this.stringFrom(t,e);r=this.spacesFromEnd(t)+r," !important"!==r&&(i.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=t.slice(0),s="";for(let t=e;t>0;t--){let e=r[t][0];if(0===s.trim().indexOf("!")&&"space"!==e)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(i.important=!0,i.raws.important=s,t=r)}if("space"!==r[0]&&"comment"!==r[0])break}t.some((t=>"space"!==t[0]&&"comment"!==t[0]))&&(i.raws.between+=o.map((t=>t[1])).join(""),o=[]),this.raw(i,"value",o.concat(t),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new qr;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,i=null,r=!1,s=null,n=[],o=t[1].startsWith("--"),h=[],a=t;for(;a;){if(i=a[0],h.push(a),"("===i||"["===i)s||(s=a),n.push("("===i?")":"]");else if(o&&r&&"{"===i)s||(s=a),n.push("}");else if(0===n.length){if(";"===i){if(r)return void this.decl(h,o);break}if("{"===i)return void this.rule(h);if("}"===i){this.tokenizer.back(h.pop()),e=!0;break}":"===i&&(r=!0)}else i===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&r){if(!o)for(;h.length&&(a=h[h.length-1][0],"space"===a||"comment"===a);)this.tokenizer.back(h.pop());this.decl(h,o)}else this.unknownWord(h)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,i,r){let s,n,o,h,a=i.length,l="",u=!0;for(let t=0;t<a;t+=1)s=i[t],n=s[0],"space"!==n||t!==a-1||r?"comment"===n?(h=i[t-1]?i[t-1][0]:"empty",o=i[t+1]?i[t+1][0]:"empty",Cr[h]||Cr[o]||","===l.slice(-1)?u=!1:l+=s[1]):l+=s[1]:u=!1;if(!u){let r=i.reduce(((t,e)=>t+e[1]),"");t.raws[e]={raw:r,value:l}}t[e]=l}rule(t){t.pop();let e=new qr;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,i="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let e,i="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)i+=t.shift()[1];return i}spacesFromEnd(t){let e,i="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)i=t.pop()[1]+i;return i}stringFrom(t,e){let i="";for(let r=e;r<t.length;r++)i+=t[r][1];return t.splice(e,t.length-e),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},Dr=ei;function Rr(t,e){let i=new Dr(t,e),r=new Br(i);try{r.parse()}catch(t){throw t}return r.root}var Or=Rr;Rr.default=Rr,Tr.registerParse(Rr);let{isClean:jr,my:Lr}=pe,Nr=fi,Mr=ye,Ir=Ti,Ur=ji,Pr=Ui,_r=Or,$r=mr;const Fr={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Vr={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Hr={Once:!0,postcssPlugin:!0,prepare:!0},Gr=0;function zr(t){return"object"==typeof t&&"function"==typeof t.then}function Wr(t){let e=!1,i=Fr[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[i,i+"-"+e,Gr,i+"Exit",i+"Exit-"+e]:e?[i,i+"-"+e,i+"Exit",i+"Exit-"+e]:t.append?[i,Gr,i+"Exit"]:[i,i+"Exit"]}function Zr(t){let e;return e="document"===t.type?["Document",Gr,"DocumentExit"]:"root"===t.type?["Root",Gr,"RootExit"]:Wr(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Qr(t){return t[jr]=!1,t.nodes&&t.nodes.forEach((t=>Qr(t))),t}let Jr={};class Yr{constructor(t,e,i){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof Yr||e instanceof Pr)r=Qr(e.root),e.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=e.map);else{let t=_r;i.syntax&&(t=i.syntax.parse),i.parser&&(t=i.parser),t.parse&&(t=t.parse);try{r=t(e,i)}catch(t){this.processed=!0,this.error=t}r&&!r[Lr]&&Ir.rebuild(r)}else r=Qr(e);this.result=new Pr(t,r,i),this.helpers={...Jr,postcss:Jr,result:this.result},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let i=this.result.lastPlugin;try{e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin||(t.plugin=i.postcssPlugin,t.setMessage())}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,i)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,i])};for(let e of this.plugins)if("object"==typeof e)for(let i in e){if(!Vr[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Hr[i])if("object"==typeof e[i])for(let r in e[i])t(e,"*"===r?i:i+"-"+r.toLowerCase(),e[i][r]);else"function"==typeof e[i]&&t(e,i,e[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.runOnRoot(this.plugins[t]);if(zr(e))try{await e}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[jr];){t[jr]=!0;let e=[Zr(t)];for(;e.length>0;){let t=this.visitTick(e);if(zr(t))try{await t}catch(t){throw this.handleError(t,e[e.length-1].node)}}}if(this.listeners.OnceExit)for(let[e,i]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>i(t,this.helpers)));await Promise.all(e)}else await i(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return zr(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=Mr;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let i=new Nr(e,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins)if(zr(this.runOnRoot(t)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[jr];)t[jr]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[i,r]of t){let t;this.result.lastPlugin=i;try{t=r(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(zr(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:i,visitors:r}=e;if("root"!==i.type&&"document"!==i.type&&!i.parent)return void t.pop();if(r.length>0&&e.visitorIndex<r.length){let[t,s]=r[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===r.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return s(i.toProxy(),this.helpers)}catch(t){throw this.handleError(t,i)}}if(0!==e.iterator){let r,s=e.iterator;for(;r=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!r[jr])return r[jr]=!0,void t.push(Zr(r));e.iterator=0,delete i.indexes[s]}let s=e.events;for(;e.eventIndex<s.length;){let t=s[e.eventIndex];if(e.eventIndex+=1,t===Gr)return void(i.nodes&&i.nodes.length&&(i[jr]=!0,e.iterator=i.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[jr]=!0;let e=Wr(t);for(let i of e)if(i===Gr)t.nodes&&t.each((t=>{t[jr]||this.walkSync(t)}));else{let e=this.listeners[i];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}Yr.registerPostcss=t=>{Jr=t};var Xr=Yr;Yr.default=Yr,$r.registerLazyResult(Yr),Ur.registerLazyResult(Yr);let Kr=fi,ts=ye,es=Or;const is=Ui;class rs{constructor(t,e,i){let r;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=i,this._map=void 0;let s=ts;this.result=new is(this._processor,r,this._opts),this.result.css=e;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let o=new Kr(s,r,this._opts,e);if(o.isMap()){let[t,e]=o.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return this.async().then(t,e)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,e=es;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}}var ss=rs;rs.default=rs;let ns=ss,os=Xr,hs=ji,as=mr;class ls{constructor(t=[]){this.version="8.4.35",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let i of t)if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"==typeof i&&Array.isArray(i.plugins))e=e.concat(i.plugins);else if("object"==typeof i&&i.postcssPlugin)e.push(i);else if("function"==typeof i)e.push(i);else if("object"!=typeof i||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");return e}process(t,e={}){return this.plugins.length||e.parser||e.stringifier||e.syntax?new os(this,t,e):new ns(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}var us=ls;ls.default=ls,as.registerProcessor(ls),hs.registerProcessor(ls);let cs=Re,fs=_e,ds=mi,ps=ur,ms=ei,gs=mr,bs=Er;function ws(t,e){if(Array.isArray(t))return t.map((t=>ws(t)));let{inputs:i,...r}=t;if(i){e=[];for(let t of i){let i={...t,__proto__:ms.prototype};i.map&&(i.map={...i.map,__proto__:fs.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map((t=>ws(t,e)))),r.source){let{inputId:t,...i}=r.source;r.source=i,null!=t&&(r.source.input=e[t])}if("root"===r.type)return new gs(r);if("decl"===r.type)return new cs(r);if("rule"===r.type)return new bs(r);if("comment"===r.type)return new ds(r);if("atrule"===r.type)return new ps(r);throw new Error("Unknown node type: "+t.type)}var vs=ws;ws.default=ws;let ys=de,Es=Re,ks=Xr,Ss=Ti,As=us,xs=ye,qs=vs,Cs=ji,Ts=Ni,Bs=mi,Ds=ur,Rs=Ui,Os=ei,js=Or,Ls=br,Ns=Er,Ms=mr,Is=Te;function Us(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new As(t)}Us.plugin=function(t,e){let i,r=!1;function s(...i){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=e(...i);return s.postcssPlugin=t,s.postcssVersion=(new As).version,s}return Object.defineProperty(s,"postcss",{get:()=>(i||(i=s()),i)}),s.process=function(t,e,i){return Us([s(i)]).process(t,e)},s},Us.stringify=xs,Us.parse=js,Us.fromJSON=qs,Us.list=Ls,Us.comment=t=>new Bs(t),Us.atRule=t=>new Ds(t),Us.decl=t=>new Es(t),Us.rule=t=>new Ns(t),Us.root=t=>new Ms(t),Us.document=t=>new Cs(t),Us.CssSyntaxError=ys,Us.Declaration=Es,Us.Container=Ss,Us.Processor=As,Us.Document=Cs,Us.Comment=Bs,Us.Warning=Ts,Us.AtRule=Ds,Us.Result=Rs,Us.Input=Os,Us.Rule=Ns,Us.Root=Ms,Us.Node=Is,ks.registerPostcss(Us);var Ps=Us;Us.default=Us;const _s=Wt,$s=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},{isPlainObject:Fs}=Qt,Vs=se,Hs=ne.exports,{parse:Gs}=Ps,zs=["img","audio","video","picture","svg","object","map","iframe","embed"],Ws=["script","style"];function Zs(t,e){t&&Object.keys(t).forEach((function(i){e(t[i],i)}))}function Qs(t,e){return{}.hasOwnProperty.call(t,e)}function Js(t,e){const i=[];return Zs(t,(function(t){e(t)&&i.push(t)})),i}var Ys=Ks;const Xs=/^[^\0\t\n\f\r /<=>]+$/;function Ks(t,e){if(null==t)return"";"number"==typeof t&&(t=t.toString());let i="",r="";function s(t,e){const r=this;this.tag=t,this.attribs=e||{},this.tagPosition=i.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){m.length&&(m[m.length-1].text+=r.text)},this.updateParentNodeMediaChildren=function(){m.length&&zs.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}(e=Object.assign({},Ks.defaults,e)).parser=Object.assign({},tn,e.parser);const n=function(t){return!1===e.allowedTags||(e.allowedTags||[]).indexOf(t)>-1};Ws.forEach((function(t){n(t)&&!e.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${t}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const o=e.nonTextTags||["script","style","textarea","option"];let h,a;e.allowedAttributes&&(h={},a={},Zs(e.allowedAttributes,(function(t,e){h[e]=[];const i=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push($s(t).replace(/\\\*/g,".*")):h[e].push(t)})),i.length&&(a[e]=new RegExp("^("+i.join("|")+")$"))})));const l={},u={},c={};Zs(e.allowedClasses,(function(t,e){h&&(Qs(h,e)||(h[e]=[]),h[e].push("class")),l[e]=[],c[e]=[];const i=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push($s(t).replace(/\\\*/g,".*")):t instanceof RegExp?c[e].push(t):l[e].push(t)})),i.length&&(u[e]=new RegExp("^("+i.join("|")+")$"))}));const f={};let d,p,m,g,b,w,v;Zs(e.transformTags,(function(t,e){let i;"function"==typeof t?i=t:"string"==typeof t&&(i=Ks.simpleTransform(t)),"*"===e?d=i:f[e]=i}));let y=!1;k();const E=new _s.Parser({onopentag:function(t,E){if(e.enforceHtmlBoundary&&"html"===t&&k(),w)return void v++;const q=new s(t,E);m.push(q);let C=!1;const T=!!q.text;let B;if(Qs(f,t)&&(B=f[t](t,E),q.attribs=E=B.attribs,void 0!==B.text&&(q.innerText=B.text),t!==B.tagName&&(q.name=t=B.tagName,b[p]=B.tagName)),d&&(B=d(t,E),q.attribs=E=B.attribs,t!==B.tagName&&(q.name=t=B.tagName,b[p]=B.tagName)),(!n(t)||"recursiveEscape"===e.disallowedTagsMode&&!function(t){for(const e in t)if(Qs(t,e))return!1;return!0}(g)||null!=e.nestingLimit&&p>=e.nestingLimit)&&(C=!0,g[p]=!0,"discard"===e.disallowedTagsMode&&-1!==o.indexOf(t)&&(w=!0,v=1),g[p]=!0),p++,C){if("discard"===e.disallowedTagsMode)return;r=i,i=""}i+="<"+t,"script"===t&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(q.innerText=""),(!h||Qs(h,t)||h["*"])&&Zs(E,(function(r,s){if(!Xs.test(s))return void delete q.attribs[s];let n=!1;if(!h||Qs(h,t)&&-1!==h[t].indexOf(s)||h["*"]&&-1!==h["*"].indexOf(s)||Qs(a,t)&&a[t].test(s)||a["*"]&&a["*"].test(s))n=!0;else if(h&&h[t])for(const e of h[t])if(Fs(e)&&e.name&&e.name===s){n=!0;let t="";if(!0===e.multiple){const i=r.split(" ");for(const r of i)-1!==e.values.indexOf(r)&&(""===t?t=r:t+=" "+r)}else e.values.indexOf(r)>=0&&(t=r);r=t}if(n){if(-1!==e.allowedSchemesAppliedToAttributes.indexOf(s)&&A(t,r))return void delete q.attribs[s];if("script"===t&&"src"===s){let t=!0;try{const i=x(r);if(e.allowedScriptHostnames||e.allowedScriptDomains){const r=(e.allowedScriptHostnames||[]).find((function(t){return t===i.url.hostname})),s=(e.allowedScriptDomains||[]).find((function(t){return i.url.hostname===t||i.url.hostname.endsWith(`.${t}`)}));t=r||s}}catch(e){t=!1}if(!t)return void delete q.attribs[s]}if("iframe"===t&&"src"===s){let t=!0;try{const i=x(r);if(i.isRelativeUrl)t=Qs(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const r=(e.allowedIframeHostnames||[]).find((function(t){return t===i.url.hostname})),s=(e.allowedIframeDomains||[]).find((function(t){return i.url.hostname===t||i.url.hostname.endsWith(`.${t}`)}));t=r||s}}catch(e){t=!1}if(!t)return void delete q.attribs[s]}if("srcset"===s)try{let t=Hs(r);if(t.forEach((function(t){A("srcset",t.url)&&(t.evil=!0)})),t=Js(t,(function(t){return!t.evil})),!t.length)return void delete q.attribs[s];r=Js(t,(function(t){return!t.evil})).map((function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")})).join(", "),q.attribs[s]=r}catch(t){return void delete q.attribs[s]}if("class"===s){const e=l[t],i=l["*"],n=[u[t],u["*"]].concat(c[t]).filter((function(t){return t}));if(!(o=r,f=e&&i?Vs(e,i):e||i,d=n,r=f?(o=o.split(/\s+/)).filter((function(t){return-1!==f.indexOf(t)||d.some((function(e){return e.test(t)}))})).join(" "):o).length)return void delete q.attribs[s]}if("style"===s)if(e.parseStyleAttributes)try{if(r=function(t){return t.nodes[0].nodes.reduce((function(t,e){return t.push(`${e.prop}:${e.value}${e.important?" !important":""}`),t}),[]).join(";")}(function(t,e){if(!e)return t;const i=t.nodes[0];let r;return r=e[i.selector]&&e["*"]?Vs(e[i.selector],e["*"]):e[i.selector]||e["*"],r&&(t.nodes[0].nodes=i.nodes.reduce(function(t){return function(e,i){return Qs(t,i.prop)&&t[i.prop].some((function(t){return t.test(i.value)}))&&e.push(i),e}}(r),[])),t}(Gs(t+" {"+r+"}"),e.allowedStyles)),0===r.length)return void delete q.attribs[s]}catch(e){return console.warn('Failed to parse "'+t+" {"+r+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete q.attribs[s]}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");i+=" "+s,r&&r.length&&(i+='="'+S(r,!0)+'"')}else delete q.attribs[s];var o,f,d})),-1!==e.selfClosing.indexOf(t)?i+=" />":(i+=">",!q.innerText||T||e.textFilter||(i+=S(q.innerText),y=!0)),C&&(i=r+S(i),r="")},ontext:function(t){if(w)return;const r=m[m.length-1];let s;if(r&&(s=r.tag,t=void 0!==r.innerText?r.innerText:t),"discard"!==e.disallowedTagsMode||"script"!==s&&"style"!==s){const r=S(t,!1);e.textFilter&&!y?i+=e.textFilter(r,s):y||(i+=r)}else i+=t;m.length&&(m[m.length-1].text+=t)},onclosetag:function(t,s){if(w){if(v--,v)return;w=!1}const o=m.pop();if(!o)return;if(o.tag!==t)return void m.push(o);w=!!e.enforceHtmlBoundary&&"html"===t,p--;const h=g[p];if(h){if(delete g[p],"discard"===e.disallowedTagsMode)return void o.updateParentNodeText();r=i,i=""}b[p]&&(t=b[p],delete b[p]),e.exclusiveFilter&&e.exclusiveFilter(o)?i=i.substr(0,o.tagPosition):(o.updateParentNodeMediaChildren(),o.updateParentNodeText(),-1!==e.selfClosing.indexOf(t)||s&&!n(t)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0?h&&(i=r,r=""):(i+="</"+t+">",h&&(i=r+S(i),r=""),y=!1))}},e.parser);return E.write(t),E.end(),i;function k(){i="",p=0,m=[],g={},b={},w=!1,v=0}function S(t,i){return"string"!=typeof t&&(t+=""),e.parser.decodeEntities&&(t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),i&&(t=t.replace(/"/g,"&quot;"))),t=t.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),i&&(t=t.replace(/"/g,"&quot;")),t}function A(t,i){for(i=i.replace(/[\x00-\x20]+/g,"");;){const t=i.indexOf("\x3c!--");if(-1===t)break;const e=i.indexOf("--\x3e",t+4);if(-1===e)break;i=i.substring(0,t)+i.substring(e+3)}const r=i.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!i.match(/^[/\\]{2}/)&&!e.allowProtocolRelative;const s=r[1].toLowerCase();return Qs(e.allowedSchemesByTag,t)?-1===e.allowedSchemesByTag[t].indexOf(s):!e.allowedSchemes||-1===e.allowedSchemes.indexOf(s)}function x(t){if((t=t.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let e="relative://relative-site";for(let t=0;t<100;t++)e+=`/${t}`;const i=new URL(t,e);return{isRelativeUrl:i&&"relative-site"===i.hostname&&"relative:"===i.protocol,url:i}}}const tn={decodeEntities:!0};Ks.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},Ks.simpleTransform=function(t,e,i){return i=void 0===i||i,e=e||{},function(r,s){let n;if(i)for(n in e)s[n]=e[n];else s=e;return{tagName:t,attribs:s}}};const en=Ys,rn=class{constructor(e){t(this,e),this.customContent=void 0,this.repeaterContent=void 0,this.navigateViaEvent=!1,this.postMessageEvent=""}render(){const t=en(this.customContent,{allowedTags:en.defaults.allowedTags.concat(["img","a"]),allowedAttributes:{img:["src","srcset","alt","title","width","height","loading"],a:["href","target","rel"]}});return e("div",{key:"a4613d65e38bb44dacda6d6d1df9a3cf32845167",class:"CustomContentSectionContainer"},e("div",{key:"f6704f1e13d3a5dd188318cad51babdd8af8b2f1",class:"CustomContentSectionWrapper"},e("div",{key:"e818696e2ef290f92905adbac46fdd9f5ddf3e6c",class:"CustomContentSectionContent",innerHTML:t}),this.repeaterContent?e("image-list",{style:{width:"100%"},repeaterContent:this.repeaterContent?this.repeaterContent:null,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent}):""))}};rn.style=".sc-custom-content-section-h{display:block}*.sc-custom-content-section{margin:0}.CustomContentSectionWrapper.sc-custom-content-section{box-sizing:border-box;height:100%;align-items:center}";export{rn as custom_content_section}
@@ -1,4 +1,3 @@
1
- import "../../../../../../dist/packages/stencil/ui-skeleton/dist/types/index";
2
1
  export declare class CustomContentSection {
3
2
  /**
4
3
  * custom HTML content to be rendered
@@ -1,4 +1,4 @@
1
- import "../../../../../../dist/packages/stencil/ui-skeleton/dist/types/index";
1
+ import "../../../../../../dist/packages/stencil/ui-image/dist/types/index";
2
2
  export declare class GeneralFooterTemplate {
3
3
  /**
4
4
  * the language of the footer
@@ -12,14 +12,6 @@ export declare class ImageList {
12
12
  * Post Message event to be sent on navigation via event
13
13
  */
14
14
  postMessageEvent: string;
15
- skeletonLoading: boolean;
16
- el: HTMLElement;
17
- imgRef: HTMLImageElement;
18
15
  navigateLink: (url: string, target: string, externalLink: boolean) => void;
19
- componentDidLoad(): void;
20
- private initImageListeners;
21
- private onImageLoad;
22
- private removeLoadingState;
23
- private cleanupListeners;
24
16
  render(): any;
25
17
  }
@@ -1,3 +1,4 @@
1
+ import "../../../../../../dist/packages/stencil/ui-image/dist/types/index";
1
2
  export declare class LinkSectionList {
2
3
  /**
3
4
  * the links content to be displayed, including titles, url, open target
@@ -19,14 +20,6 @@ export declare class LinkSectionList {
19
20
  * Post Message event to be sent on navigation via event
20
21
  */
21
22
  postMessageEvent: string;
22
- skeletonLoading: boolean;
23
- el: HTMLElement;
24
- imgRef: HTMLImageElement;
25
- componentDidLoad(): void;
26
- private initImageListeners;
27
- private onImageLoad;
28
- private removeLoadingState;
29
- private cleanupListeners;
30
23
  navigateLink(link: any): void;
31
24
  render(): any;
32
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-footer-template",
3
- "version": "1.61.1",
3
+ "version": "1.62.1",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as e,h as t,g as n,H as i}from"./p-56890359.js";const o=class{constructor(t){e(this,t),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.imgClass="",this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.src=this.src,e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,this.el.dispatchEvent(new CustomEvent("load",{bubbles:!0})))}}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.__uxComponent;t&&(t.shouldLoad=!0,t.handleSrc()),window.EMUxObserver.unobserve(e.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return t("img",{key:"2bb4dc391fc2f753514103e91c0abf065de3236a",ref:e=>this.image=e,style:this.styles,class:`${this.imgClass} ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"})}get el(){return n(this)}static get watchers(){return{src:["handleSrc"]}}};o.style=":host{display:block}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;transition:opacity 0.5s ease-in-out}";const s=class{constructor(t){e(this,t),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Image "+(this.animation?"Skeleton":"")}))}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,n)=>t("div",{key:n,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.width};\n --emw-skeleton-logo-height: ${this.height};\n --emw-skeleton-logo-border-radius: ${this.borderRadius}px;\n --emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-logo-margin-top: ${this.marginTop}px;\n --emw-skeleton-logo-margin-left: ${this.marginLeft}px;\n --emw-skeleton-logo-margin-right: ${this.marginRight}px;\n --emw-skeleton-logo-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.width};\n --emw-skeleton-image-height: ${this.height};\n --emw-skeleton-image-border-radius: ${this.borderRadius}px;\n --emw-skeleton-image-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-image-margin-top: ${this.marginTop}px;\n --emw-skeleton-image-margin-left: ${this.marginLeft}px;\n --emw-skeleton-image-margin-right: ${this.marginRight}px;\n --emw-skeleton-image-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.width};\n --emw-skeleton-title-height: ${this.height};\n --emw-skeleton-title-border-radius: ${this.borderRadius}px;\n --emw-skeleton-title-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-title-margin-top: ${this.marginTop}px;\n --emw-skeleton-title-margin-left: ${this.marginLeft}px;\n --emw-skeleton-title-margin-right: ${this.marginRight}px;\n --emw-skeleton-title-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.width};\n --emw-skeleton-text-height: ${this.height};\n --emw-skeleton-text-border-radius: ${this.borderRadius}px;\n --emw-skeleton-text-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-text-margin-top: ${this.marginTop}px;\n --emw-skeleton-text-margin-left: ${this.marginLeft}px;\n --emw-skeleton-text-margin-right: ${this.marginRight}px;\n --emw-skeleton-text-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.width};\n --emw-skeleton-rectangle-height: ${this.height};\n --emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;\n --emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-rectangle-margin-top: ${this.marginTop}px;\n --emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;\n --emw-skeleton-rectangle-margin-right: ${this.marginRight}px;\n --emw-skeleton-rectangle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.size};\n --emw-skeleton-circle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;default:e=""}return t(i,{key:"0641e666452d2172c26ed238d236c2ca3db9f8ed"},t("style",{key:"285fb8210d32aff7f99005627fdecf36f66e82a4"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};s.style=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";export{o as ui_image,s as ui_skeleton}
@@ -1 +0,0 @@
1
- import{r as n,h as i,g as t}from"./p-56890359.js";const e=class{constructor(i){n(this,i),this.onImageLoad=()=>{this.removeLoadingState(),this.cleanupListeners()},this.repeaterContent=void 0,this.baseUrl=void 0,this.language=void 0,this.navigateViaEvent=!1,this.postMessageEvent="",this.skeletonLoading=!0}componentDidLoad(){this.initImageListeners()}initImageListeners(){this.imgRef&&(this.imgRef.complete?this.onImageLoad():this.imgRef.addEventListener("load",this.onImageLoad))}removeLoadingState(){this.skeletonLoading=!1}cleanupListeners(){var n;null===(n=this.imgRef)||void 0===n||n.removeEventListener("load",this.onImageLoad)}navigateLink(n){window.postMessage({type:this.postMessageEvent,path:n.linkUrl,url:n.linkUrl,target:n.target,externalLink:n.externalLink},window.location.href)}render(){var n,t;const e=null===(t=null===(n=this.repeaterContent)||void 0===n?void 0:n.content)||void 0===t?void 0:t.reduce(((n,i)=>{const t=i.linkCategory,e=i.image,s=n.find((n=>n.categoryTitle===t));return s?s.links.push({linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink,icon:e}):n.push({categoryTitle:t,links:[{linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink,icon:e}]}),n}),[]);return i("div",{class:"LinkSectionListContainer"},i("div",{class:"LinkSectionListWrapper"},this.repeaterContent.categoryTitle&&i("h2",{class:"LinkSectionListTitle"},this.repeaterContent.categoryTitle),e.map((n=>i("ul",null,n.categoryTitle&&i("p",null,n.categoryTitle),n.links.map((n=>i("li",{class:"LinkSectionListLink",key:n.linkName},!0===this.navigateViaEvent?i("span",null,n.linkName&&n.icon?i("span",{class:"LinkSectionListLinkText",onClick:()=>this.navigateLink(n)},i("div",{class:"ContainerImage"},i("img",{class:"LinkSectionIcon",src:n.icon,alt:"icon",ref:n=>this.imgRef=n,style:{display:this.skeletonLoading?"none":"block"}}),this.skeletonLoading&&i("div",{class:"SkeletonWrapper"},i("ui-skeleton",{structure:"text",rows:"1",width:"100%",height:"100%"}))),i("span",{class:""},n.linkName," ")):i("span",{class:"LinkSectionListLinkText",onClick:()=>this.navigateLink(n)},n.linkName?i("span",null,n.linkName," "):i("div",{class:"ContainerImage"},i("img",{class:"LinkSectionIcon",src:n.icon,alt:"icon",ref:n=>this.imgRef=n,style:{display:this.skeletonLoading?"none":"block"}}),this.skeletonLoading&&i("div",{class:"SkeletonWrapper"},i("ui-skeleton",{structure:"text",rows:"1",width:"100%",height:"100%"}))))):i("a",{class:"LinkSectionListLink",href:n.externalLink?n.linkUrl:`${this.baseUrl}/${this.language}${n.linkUrl}`,target:n.target||"_blank"},n.linkName&&n.icon?i("span",{class:"LinkSectionListLinkText"},i("div",{class:"ContainerImage"},i("img",{class:"LinkSectionIcon",src:n.icon,alt:"icon",ref:n=>this.imgRef=n,style:{display:this.skeletonLoading?"none":"block"}}),this.skeletonLoading&&i("div",{class:"SkeletonWrapper"},i("ui-skeleton",{structure:"text",rows:"1",width:"100%",height:"100%"}))),i("span",null,n.linkName)):i("span",{class:"LinkSectionListLinkText"},n.linkName?i("span",null,n.linkName):i("div",{class:"ContainerImage"},i("img",{class:"LinkSectionIcon",src:n.icon,alt:"icon",ref:n=>this.imgRef=n,style:{display:this.skeletonLoading?"none":"block"}}),this.skeletonLoading&&i("div",{class:"SkeletonWrapper"},i("ui-skeleton",{structure:"text",rows:"1",width:"100%",height:"100%"})))))))))))))}get el(){return t(this)}};e.style=":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.SkeletonWrapper {\n width: 25px;\n height: 25px;\n}\n\n.LinkSectionListContainer {\n display: block;\n container-type: inline-size;\n}\n.LinkSectionListWrapper {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: var(--emw--font-weight-semibold, 500);\n text-transform: uppercase;\n}\n.LinkSectionListLink {\n font-weight: var(--emw--font-weight-light, 300);\n}\n\nul {\n width: fit-content;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: var(--emw--spacing-medium, 16px);\n padding-left: var(--emw--spacing-small-minus, 10px);\n font-size: var(--emw--font-size-small, 16px);\n text-transform: uppercase;\n}\nul li {\n list-style: disc;\n display: flex;\n align-items: center;\n position: relative;\n}\nul li .LinkSectionListLinkText {\n display: flex;\n gap: 5px;\n flex-direction: row;\n align-items: center;\n}\nul li .LinkSectionListLinkText span {\n text-align: center;\n cursor: pointer;\n}\nul li .LinkSectionListLinkText img.LinkSectionIcon {\n position: relative;\n height: 25px;\n}\n\na {\n color: inherit;\n}\n\n@container (min-width: 280px) {\n .LinkSectionListWrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n@container (min-width: 650px) {\n .LinkSectionListWrapper {\n grid-gap: 2rem;\n grid-template-columns: repeat(4, 1fr);\n grid-template-rows: 1fr;\n }\n}";export{e as link_section_list}