@everymatrix/general-footer-template 1.33.3 → 1.33.5

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 (28) hide show
  1. package/dist/cjs/custom-content-section.cjs.entry.js +1 -1
  2. package/dist/cjs/general-footer-template.cjs.entry.js +2 -2
  3. package/dist/cjs/image-list.cjs.entry.js +4 -3
  4. package/dist/cjs/link-section-list.cjs.entry.js +2 -1
  5. package/dist/collection/components/custom-content-section/custom-content-section.js +1 -1
  6. package/dist/collection/components/image-list/image-list.css +3 -2
  7. package/dist/collection/components/image-list/image-list.js +8 -7
  8. package/dist/collection/components/link-section-list/link-section-list.js +2 -1
  9. package/dist/collection/utils/utils.js +2 -2
  10. package/dist/components/custom-content-section.js +1 -1
  11. package/dist/components/general-footer-template.js +2 -2
  12. package/dist/components/image-list2.js +4 -3
  13. package/dist/components/link-section-list.js +2 -1
  14. package/dist/esm/custom-content-section.entry.js +1 -1
  15. package/dist/esm/general-footer-template.entry.js +2 -2
  16. package/dist/esm/image-list.entry.js +4 -3
  17. package/dist/esm/link-section-list.entry.js +2 -1
  18. package/dist/general-footer-template/general-footer-template.esm.js +1 -1
  19. package/dist/general-footer-template/p-11bf82cf.entry.js +1 -0
  20. package/dist/general-footer-template/p-19b35987.entry.js +1 -0
  21. package/dist/general-footer-template/p-7c95345c.entry.js +1 -0
  22. package/dist/general-footer-template/{p-171fd49d.entry.js → p-924cd130.entry.js} +1 -1
  23. package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/general-footer-template/.stencil/packages/general-footer-template/stencil.config.d.ts +2 -0
  24. package/package.json +1 -1
  25. package/dist/general-footer-template/p-56c52689.entry.js +0 -1
  26. package/dist/general-footer-template/p-682d1097.entry.js +0 -1
  27. package/dist/general-footer-template/p-ad709241.entry.js +0 -1
  28. package/dist/types/Users/sebastian.strulea/Documents/work/widgets-stencil/packages/general-footer-template/.stencil/packages/general-footer-template/stencil.config.d.ts +0 -2
@@ -9546,7 +9546,7 @@ const CustomContentSection = class {
9546
9546
  img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading']
9547
9547
  }
9548
9548
  });
9549
- return index$2.h("div", { class: "CustomContentSectionContainer" }, index$2.h("div", { class: "CustomContentSectionWrapper" }, index$2.h("div", { class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? index$2.h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
9549
+ return index$2.h("div", { class: "CustomContentSectionContainer" }, index$2.h("div", { class: "CustomContentSectionWrapper" }, index$2.h("div", { class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? index$2.h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
9550
9550
  }
9551
9551
  };
9552
9552
  CustomContentSection.style = customContentSectionCss;
@@ -203,8 +203,8 @@ const normalizeRepeaterContent = (data) => {
203
203
  });
204
204
  }
205
205
  });
206
- repeaterResponse.repeaters.downloadApp.content = data.downloadInfos.imageArea;
207
- repeaterResponse.wysiwyg.downloadApp.content = data.downloadInfos.downloadDescription;
206
+ repeaterResponse.repeaters.downloadApp.content = data.downloadInfos.imageArea || [];
207
+ repeaterResponse.wysiwyg.downloadApp.content = data.downloadInfos.downloadDescription || '';
208
208
  repeaterResponse.wysiwyg.copyright.content = data.copyright;
209
209
  repeaterResponse.wysiwyg["license-description"].content = data.licenseDesc;
210
210
  return repeaterResponse;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-95c2e2b1.js');
6
6
 
7
- const imageListCss = ".sc-image-list-h{display:block;margin:0;padding:0}.ImageListContainer.sc-image-list{height:100%}.ImageListWrapper.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-direction:column;padding:20px 0;justify-content:center;align-items:center}.ImageListSectionTitle.sc-image-list{width:100%;display:flex;justify-content:center;align-content:center;padding-bottom:14px;color:#fff}.ImageListLineup.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-wrap:wrap;gap:30px;justify-content:center;align-items:center}.ImageListIcon.sc-image-list img.sc-image-list{width:auto;height:auto}a.sc-image-list{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-decoration:none}a.sc-image-list p.sc-image-list{text-decoration:none;color:#666;margin:0}";
7
+ const imageListCss = ".sc-image-list-h{display:block;margin:0;padding:0}.ImageListContainer.sc-image-list{height:100%}.ImageListWrapper.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-direction:column;max-width:90%;margin:auto;padding:20px 0;justify-content:center;align-items:center}.ImageListSectionTitle.sc-image-list{width:100%;display:flex;justify-content:center;align-content:center;padding-bottom:14px;color:#fff}.ImageListLineup.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-wrap:wrap;gap:30px;justify-content:center;align-items:center}.ImageListIcon.sc-image-list img.sc-image-list{max-height:50px}a.sc-image-list{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-decoration:none}a.sc-image-list p.sc-image-list{text-decoration:none;color:#666;margin:0}";
8
8
 
9
9
  const ImageList = class {
10
10
  constructor(hostRef) {
@@ -22,8 +22,9 @@ const ImageList = class {
22
22
  };
23
23
  }
24
24
  render() {
25
- return index.h("div", { class: "ImageListContainer" }, index.h("div", { class: "ImageListWrapper" }, index.h("div", { class: "ImageListSectionTitle" }, this.repeaterContent.categoryTitle), index.h("div", { class: "ImageListLineup" }, this.repeaterContent.content.map(repeater => {
26
- return (index.h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (index.h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater.url, repeater.target, repeater.isExternalLink) }, index.h("img", { src: repeater.image, alt: "" }), index.h("p", null, repeater.title))) : (index.h("a", { href: repeater.url || 'javascript:void(0)', target: repeater.target || '_parent' }, index.h("div", { class: "ImageListPositioner" }, index.h("img", { src: repeater.image, alt: "" })), index.h("p", null, repeater.title)))));
25
+ var _a, _b, _c;
26
+ return index.h("div", { class: "ImageListContainer" }, index.h("div", { class: "ImageListWrapper" }, index.h("div", { class: "ImageListSectionTitle" }, (_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.categoryTitle), index.h("div", { class: "ImageListLineup" }, (_c = (_b = this.repeaterContent) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.map(repeater => {
27
+ return (index.h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (index.h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater === null || repeater === void 0 ? void 0 : repeater.url, repeater === null || repeater === void 0 ? void 0 : repeater.target, repeater === null || repeater === void 0 ? void 0 : repeater.isExternalLink) }, index.h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" }), index.h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title))) : (index.h("a", { href: (repeater === null || repeater === void 0 ? void 0 : repeater.url) || 'javascript:void(0)', target: (repeater === null || repeater === void 0 ? void 0 : repeater.target) || '_parent' }, index.h("div", { class: "ImageListPositioner" }, index.h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" })), index.h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title)))));
27
28
  }))));
28
29
  }
29
30
  };
@@ -22,7 +22,8 @@ const LinkSectionList = class {
22
22
  window.postMessage({ type: this.postMessageEvent, url: link.linkUrl, target: link.target, externalLink: link.externalLink }, window.location.href);
23
23
  }
24
24
  render() {
25
- const linkSections = this.repeaterContent.content.reduce((obj, elem) => {
25
+ var _a, _b;
26
+ const linkSections = (_b = (_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.reduce((obj, elem) => {
26
27
  const currentCategory = elem.linkCategory;
27
28
  const foundCategory = obj.find(el => el.categoryTitle === currentCategory);
28
29
  if (foundCategory) {
@@ -21,7 +21,7 @@ export class CustomContentSection {
21
21
  return h("div", { class: "CustomContentSectionContainer" },
22
22
  h("div", { class: "CustomContentSectionWrapper" },
23
23
  h("div", { class: "CustomContentSectionContent", innerHTML: clean }),
24
- this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
24
+ this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
25
25
  }
26
26
  static get is() { return "custom-content-section"; }
27
27
  static get encapsulation() { return "scoped"; }
@@ -12,6 +12,8 @@
12
12
  height: 100%;
13
13
  display: flex;
14
14
  flex-direction: column;
15
+ max-width: 90%;
16
+ margin: auto;
15
17
  padding: 20px 0;
16
18
  justify-content: center;
17
19
  align-items: center;
@@ -34,8 +36,7 @@
34
36
  align-items: center;
35
37
  }
36
38
  .ImageListIcon img {
37
- width: auto;
38
- height: auto;
39
+ max-height: 50px;
39
40
  }
40
41
 
41
42
  a {
@@ -14,16 +14,17 @@ export class ImageList {
14
14
  };
15
15
  }
16
16
  render() {
17
+ var _a, _b, _c;
17
18
  return h("div", { class: "ImageListContainer" },
18
19
  h("div", { class: "ImageListWrapper" },
19
- h("div", { class: "ImageListSectionTitle" }, this.repeaterContent.categoryTitle),
20
- h("div", { class: "ImageListLineup" }, this.repeaterContent.content.map(repeater => {
21
- return (h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater.url, repeater.target, repeater.isExternalLink) },
22
- h("img", { src: repeater.image, alt: "" }),
23
- h("p", null, repeater.title))) : (h("a", { href: repeater.url || 'javascript:void(0)', target: repeater.target || '_parent' },
20
+ h("div", { class: "ImageListSectionTitle" }, (_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.categoryTitle),
21
+ h("div", { class: "ImageListLineup" }, (_c = (_b = this.repeaterContent) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.map(repeater => {
22
+ return (h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater === null || repeater === void 0 ? void 0 : repeater.url, repeater === null || repeater === void 0 ? void 0 : repeater.target, repeater === null || repeater === void 0 ? void 0 : repeater.isExternalLink) },
23
+ h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" }),
24
+ h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title))) : (h("a", { href: (repeater === null || repeater === void 0 ? void 0 : repeater.url) || 'javascript:void(0)', target: (repeater === null || repeater === void 0 ? void 0 : repeater.target) || '_parent' },
24
25
  h("div", { class: "ImageListPositioner" },
25
- h("img", { src: repeater.image, alt: "" })),
26
- h("p", null, repeater.title)))));
26
+ h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" })),
27
+ h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title)))));
27
28
  }))));
28
29
  }
29
30
  static get is() { return "image-list"; }
@@ -14,7 +14,8 @@ export class LinkSectionList {
14
14
  window.postMessage({ type: this.postMessageEvent, url: link.linkUrl, target: link.target, externalLink: link.externalLink }, window.location.href);
15
15
  }
16
16
  render() {
17
- const linkSections = this.repeaterContent.content.reduce((obj, elem) => {
17
+ var _a, _b;
18
+ const linkSections = (_b = (_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.reduce((obj, elem) => {
18
19
  const currentCategory = elem.linkCategory;
19
20
  const foundCategory = obj.find(el => el.categoryTitle === currentCategory);
20
21
  if (foundCategory) {
@@ -204,8 +204,8 @@ export const normalizeRepeaterContent = (data) => {
204
204
  });
205
205
  }
206
206
  });
207
- repeaterResponse.repeaters.downloadApp.content = data.downloadInfos.imageArea;
208
- repeaterResponse.wysiwyg.downloadApp.content = data.downloadInfos.downloadDescription;
207
+ repeaterResponse.repeaters.downloadApp.content = data.downloadInfos.imageArea || [];
208
+ repeaterResponse.wysiwyg.downloadApp.content = data.downloadInfos.downloadDescription || '';
209
209
  repeaterResponse.wysiwyg.copyright.content = data.copyright;
210
210
  repeaterResponse.wysiwyg["license-description"].content = data.licenseDesc;
211
211
  return repeaterResponse;
@@ -9544,7 +9544,7 @@ const CustomContentSection$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
9544
9544
  img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading']
9545
9545
  }
9546
9546
  });
9547
- return h("div", { class: "CustomContentSectionContainer" }, h("div", { class: "CustomContentSectionWrapper" }, h("div", { class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
9547
+ return h("div", { class: "CustomContentSectionContainer" }, h("div", { class: "CustomContentSectionWrapper" }, h("div", { class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
9548
9548
  }
9549
9549
  static get style() { return customContentSectionCss; }
9550
9550
  }, [2, "custom-content-section", {
@@ -199,8 +199,8 @@ const normalizeRepeaterContent = (data) => {
199
199
  });
200
200
  }
201
201
  });
202
- repeaterResponse.repeaters.downloadApp.content = data.downloadInfos.imageArea;
203
- repeaterResponse.wysiwyg.downloadApp.content = data.downloadInfos.downloadDescription;
202
+ repeaterResponse.repeaters.downloadApp.content = data.downloadInfos.imageArea || [];
203
+ repeaterResponse.wysiwyg.downloadApp.content = data.downloadInfos.downloadDescription || '';
204
204
  repeaterResponse.wysiwyg.copyright.content = data.copyright;
205
205
  repeaterResponse.wysiwyg["license-description"].content = data.licenseDesc;
206
206
  return repeaterResponse;
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
 
3
- const imageListCss = ".sc-image-list-h{display:block;margin:0;padding:0}.ImageListContainer.sc-image-list{height:100%}.ImageListWrapper.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-direction:column;padding:20px 0;justify-content:center;align-items:center}.ImageListSectionTitle.sc-image-list{width:100%;display:flex;justify-content:center;align-content:center;padding-bottom:14px;color:#fff}.ImageListLineup.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-wrap:wrap;gap:30px;justify-content:center;align-items:center}.ImageListIcon.sc-image-list img.sc-image-list{width:auto;height:auto}a.sc-image-list{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-decoration:none}a.sc-image-list p.sc-image-list{text-decoration:none;color:#666;margin:0}";
3
+ const imageListCss = ".sc-image-list-h{display:block;margin:0;padding:0}.ImageListContainer.sc-image-list{height:100%}.ImageListWrapper.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-direction:column;max-width:90%;margin:auto;padding:20px 0;justify-content:center;align-items:center}.ImageListSectionTitle.sc-image-list{width:100%;display:flex;justify-content:center;align-content:center;padding-bottom:14px;color:#fff}.ImageListLineup.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-wrap:wrap;gap:30px;justify-content:center;align-items:center}.ImageListIcon.sc-image-list img.sc-image-list{max-height:50px}a.sc-image-list{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-decoration:none}a.sc-image-list p.sc-image-list{text-decoration:none;color:#666;margin:0}";
4
4
 
5
5
  const ImageList = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
6
  constructor() {
@@ -19,8 +19,9 @@ const ImageList = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
19
19
  };
20
20
  }
21
21
  render() {
22
- return h("div", { class: "ImageListContainer" }, h("div", { class: "ImageListWrapper" }, h("div", { class: "ImageListSectionTitle" }, this.repeaterContent.categoryTitle), h("div", { class: "ImageListLineup" }, this.repeaterContent.content.map(repeater => {
23
- return (h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater.url, repeater.target, repeater.isExternalLink) }, h("img", { src: repeater.image, alt: "" }), h("p", null, repeater.title))) : (h("a", { href: repeater.url || 'javascript:void(0)', target: repeater.target || '_parent' }, h("div", { class: "ImageListPositioner" }, h("img", { src: repeater.image, alt: "" })), h("p", null, repeater.title)))));
22
+ var _a, _b, _c;
23
+ return h("div", { class: "ImageListContainer" }, h("div", { class: "ImageListWrapper" }, h("div", { class: "ImageListSectionTitle" }, (_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.categoryTitle), h("div", { class: "ImageListLineup" }, (_c = (_b = this.repeaterContent) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.map(repeater => {
24
+ return (h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater === null || repeater === void 0 ? void 0 : repeater.url, repeater === null || repeater === void 0 ? void 0 : repeater.target, repeater === null || repeater === void 0 ? void 0 : repeater.isExternalLink) }, h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" }), h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title))) : (h("a", { href: (repeater === null || repeater === void 0 ? void 0 : repeater.url) || 'javascript:void(0)', target: (repeater === null || repeater === void 0 ? void 0 : repeater.target) || '_parent' }, h("div", { class: "ImageListPositioner" }, h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" })), h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title)))));
24
25
  }))));
25
26
  }
26
27
  static get style() { return imageListCss; }
@@ -19,7 +19,8 @@ const LinkSectionList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
19
19
  window.postMessage({ type: this.postMessageEvent, url: link.linkUrl, target: link.target, externalLink: link.externalLink }, window.location.href);
20
20
  }
21
21
  render() {
22
- const linkSections = this.repeaterContent.content.reduce((obj, elem) => {
22
+ var _a, _b;
23
+ const linkSections = (_b = (_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.reduce((obj, elem) => {
23
24
  const currentCategory = elem.linkCategory;
24
25
  const foundCategory = obj.find(el => el.categoryTitle === currentCategory);
25
26
  if (foundCategory) {
@@ -9542,7 +9542,7 @@ const CustomContentSection = class {
9542
9542
  img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading']
9543
9543
  }
9544
9544
  });
9545
- return h("div", { class: "CustomContentSectionContainer" }, h("div", { class: "CustomContentSectionWrapper" }, h("div", { class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
9545
+ return h("div", { class: "CustomContentSectionContainer" }, h("div", { class: "CustomContentSectionWrapper" }, h("div", { class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
9546
9546
  }
9547
9547
  };
9548
9548
  CustomContentSection.style = customContentSectionCss;
@@ -199,8 +199,8 @@ const normalizeRepeaterContent = (data) => {
199
199
  });
200
200
  }
201
201
  });
202
- repeaterResponse.repeaters.downloadApp.content = data.downloadInfos.imageArea;
203
- repeaterResponse.wysiwyg.downloadApp.content = data.downloadInfos.downloadDescription;
202
+ repeaterResponse.repeaters.downloadApp.content = data.downloadInfos.imageArea || [];
203
+ repeaterResponse.wysiwyg.downloadApp.content = data.downloadInfos.downloadDescription || '';
204
204
  repeaterResponse.wysiwyg.copyright.content = data.copyright;
205
205
  repeaterResponse.wysiwyg["license-description"].content = data.licenseDesc;
206
206
  return repeaterResponse;
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-eacc7a01.js';
2
2
 
3
- const imageListCss = ".sc-image-list-h{display:block;margin:0;padding:0}.ImageListContainer.sc-image-list{height:100%}.ImageListWrapper.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-direction:column;padding:20px 0;justify-content:center;align-items:center}.ImageListSectionTitle.sc-image-list{width:100%;display:flex;justify-content:center;align-content:center;padding-bottom:14px;color:#fff}.ImageListLineup.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-wrap:wrap;gap:30px;justify-content:center;align-items:center}.ImageListIcon.sc-image-list img.sc-image-list{width:auto;height:auto}a.sc-image-list{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-decoration:none}a.sc-image-list p.sc-image-list{text-decoration:none;color:#666;margin:0}";
3
+ const imageListCss = ".sc-image-list-h{display:block;margin:0;padding:0}.ImageListContainer.sc-image-list{height:100%}.ImageListWrapper.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-direction:column;max-width:90%;margin:auto;padding:20px 0;justify-content:center;align-items:center}.ImageListSectionTitle.sc-image-list{width:100%;display:flex;justify-content:center;align-content:center;padding-bottom:14px;color:#fff}.ImageListLineup.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-wrap:wrap;gap:30px;justify-content:center;align-items:center}.ImageListIcon.sc-image-list img.sc-image-list{max-height:50px}a.sc-image-list{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-decoration:none}a.sc-image-list p.sc-image-list{text-decoration:none;color:#666;margin:0}";
4
4
 
5
5
  const ImageList = class {
6
6
  constructor(hostRef) {
@@ -18,8 +18,9 @@ const ImageList = class {
18
18
  };
19
19
  }
20
20
  render() {
21
- return h("div", { class: "ImageListContainer" }, h("div", { class: "ImageListWrapper" }, h("div", { class: "ImageListSectionTitle" }, this.repeaterContent.categoryTitle), h("div", { class: "ImageListLineup" }, this.repeaterContent.content.map(repeater => {
22
- return (h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater.url, repeater.target, repeater.isExternalLink) }, h("img", { src: repeater.image, alt: "" }), h("p", null, repeater.title))) : (h("a", { href: repeater.url || 'javascript:void(0)', target: repeater.target || '_parent' }, h("div", { class: "ImageListPositioner" }, h("img", { src: repeater.image, alt: "" })), h("p", null, repeater.title)))));
21
+ var _a, _b, _c;
22
+ return h("div", { class: "ImageListContainer" }, h("div", { class: "ImageListWrapper" }, h("div", { class: "ImageListSectionTitle" }, (_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.categoryTitle), h("div", { class: "ImageListLineup" }, (_c = (_b = this.repeaterContent) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.map(repeater => {
23
+ return (h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater === null || repeater === void 0 ? void 0 : repeater.url, repeater === null || repeater === void 0 ? void 0 : repeater.target, repeater === null || repeater === void 0 ? void 0 : repeater.isExternalLink) }, h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" }), h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title))) : (h("a", { href: (repeater === null || repeater === void 0 ? void 0 : repeater.url) || 'javascript:void(0)', target: (repeater === null || repeater === void 0 ? void 0 : repeater.target) || '_parent' }, h("div", { class: "ImageListPositioner" }, h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" })), h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title)))));
23
24
  }))));
24
25
  }
25
26
  };
@@ -18,7 +18,8 @@ const LinkSectionList = class {
18
18
  window.postMessage({ type: this.postMessageEvent, url: link.linkUrl, target: link.target, externalLink: link.externalLink }, window.location.href);
19
19
  }
20
20
  render() {
21
- const linkSections = this.repeaterContent.content.reduce((obj, elem) => {
21
+ var _a, _b;
22
+ const linkSections = (_b = (_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.reduce((obj, elem) => {
22
23
  const currentCategory = elem.linkCategory;
23
24
  const foundCategory = obj.find(el => el.categoryTitle === currentCategory);
24
25
  if (foundCategory) {
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-76d9f15a.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((e=>t([["p-171fd49d",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"],navigateViaEvent:[516,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-682d1097",[[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"],hasErrors:[32],stylingAppends:[32]}]]],["p-56c52689",[[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-ad709241",[[2,"image-list",{repeaterContent:[8,"repeater-content"],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]]],e)));
1
+ import{p as e,b as t}from"./p-76d9f15a.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((e=>t([["p-924cd130",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"],navigateViaEvent:[516,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-11bf82cf",[[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"],hasErrors:[32],stylingAppends:[32]}]]],["p-19b35987",[[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-7c95345c",[[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 n,h as e}from"./p-76d9f15a.js";const t={downloadApp:{component:"custom-content-section"},"link-section":{component:"link-section-list"},copyright:{component:"custom-content-section"},download:{component:"custom-content-section"},helpLinks:{component:"image-list"},"license-description":{component:"custom-content-section"},licenses:{component:"image-list"},payment:{component:"image-list"},social:{component:"image-list"},sponsors:{component:"image-list"},vendors:{component:"image-list"}},o=class{constructor(e){n(this,e),this.env="stage",this.userRoles="everyone",this.navigateViaEvent="false",this.postMessageEvent="NavigateTo",this.clientStyling="",this.clientStylingUrl="",this.hasErrors=!1,this.stylingAppends=!1,this.platform=(()=>{const n=(()=>{let n=window.navigator.userAgent;return n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})();if(n)return"PC"===n?"dk":"iPad"===n||"iPhone"===n?"ios":"mtWeb"})(),this.MANDATORY_FIELDS=["endpoint","language","sections"],this.setClientStyling=()=>{let n=document.createElement("style");n.innerHTML=this.clientStyling,this.stylingContainer.prepend(n)},this.setClientStylingURL=()=>{let n=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(n.href).then((n=>n.text())).then((n=>{e.innerHTML=n,setTimeout((()=>{this.stylingContainer.prepend(e)}),1)})).catch((n=>{console.log("error ",n)}))}}validateMandatoryFields(){this.MANDATORY_FIELDS.forEach((n=>{this[n]||(console.error(`Mandatory parameter ${n} not received`),this.hasErrors=!0)}))}componentWillLoad(){this.sectionsList=this.sections.split(",").map((n=>n.trim()));const n=new URL(`${this.endpoint}/${this.language}/footer-raw-data`);return n.searchParams.append("env",this.env),n.searchParams.append("device",this.platform),n.searchParams.append("userroles",this.userRoles),this.validateMandatoryFields(),fetch(n.href).then((n=>n.json())).then((n=>{this.footerContent=(n=>{const e={repeaters:{vendors:{categoryTitle:n.gameVendorsLinksTitle,content:[]},"link-section":{categoryTitle:n.helpLinksTitle,content:[]},helpLinks:{categoryTitle:n.helpLinksTitle,content:[]},licenses:{categoryTitle:n.licensesLinksTitle,content:[]},sponsors:{categoryTitle:n.sponsorsLinksTitle,content:[]},payment:{categoryTitle:n.paymentLinksTitle,content:[]},social:{categoryTitle:n.socialLinksTitle,content:[]},downloadApp:{categoryTitle:n.downloadAppLinksTitle,content:[]}},wysiwyg:{copyright:{categoryTitle:"test",content:"test"},download:{categoryTitle:"test",content:"test"},downloadApp:{categoryTitle:"test",content:"test"},"license-description":{categoryTitle:"test",content:"test"}}},t={helpLinks:{repeaterName:"helpLinksRepeater",isExternalLink:"helpLinkType",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},"link-section":{repeaterName:"helpLinksRepeater",isExternalLink:"helpLinkType",linkCategory:"helpLinkCategory",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},social:{repeaterName:"socialLinksRepeater",isExternalLink:"isExternalLink",image:"socialLinkImage",title:"socialLinkTitle",url:"socialLinkUrl",target:"target"},vendors:{repeaterName:"gameVendorsRepeater",isExternalLink:"isExternalLink",image:"gameVendorImage",title:"gameVendorTitle",url:"gameVendorUrl",target:"target"},licenses:{repeaterName:"licensesRepeater",isExternalLink:"isExternalLink",image:"licenseImage",title:"licenseTitle",url:"licenseUrl",target:"target"},payment:{repeaterName:"paymentMethodsRepeater",isExternalLink:"isExternalLink",image:"paymentMethodImage",title:"paymentTitle",url:"paymentUrl",target:"target"},sponsors:{repeaterName:"sponsorsRepeater",isExternalLink:"isExternalLink",image:"sponsorImage",title:"sponsorTitle",url:"sponsorUrl",target:"target"}};return Object.entries(e.repeaters).forEach((e=>{var o,i,r;t[e[0]]&&n[null===(o=t[e[0]])||void 0===o?void 0:o.repeaterName]&&(e[1].content=null===(r=n[null===(i=t[e[0]])||void 0===i?void 0:i.repeaterName])||void 0===r?void 0:r.map((n=>{var o,i,r,a,s,l;return{isExternalLink:null!==(o=n[t[e[0]].isExternalLink])&&void 0!==o?o:null,linkCategory:null!==(i=n[t[e[0]].linkCategory])&&void 0!==i?i:null,image:null!==(r=n[t[e[0]].image])&&void 0!==r?r:null,title:null!==(a=n[t[e[0]].title])&&void 0!==a?a:null,url:null!==(s=n[t[e[0]].url])&&void 0!==s?s:null,target:null!==(l=n[t[e[0]].target])&&void 0!==l?l:null}})))})),e.repeaters.downloadApp.content=n.downloadInfos.imageArea||[],e.wysiwyg.downloadApp.content=n.downloadInfos.downloadDescription||"",e.wysiwyg.copyright.content=n.copyright,e.wysiwyg["license-description"].content=n.licenseDesc,e})(n)}))}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}render(){const n=this.sectionsList.map(((n,o)=>{const i=t[n].component,r=this.footerContent.repeaters.hasOwnProperty(n),a=this.footerContent.wysiwyg.hasOwnProperty(n);return e(i,{class:`${n} FooterSectionContainer FooterSectionContainer${o+1}`,userid:this.userid,session:this.session,"base-url":this.baseUrl,language:this.language,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent,ruleset:t[n],repeaterContent:r?this.footerContent.repeaters[n]:null,customContent:a?this.footerContent.wysiwyg[n].content:null})}));return this.hasErrors?e("div",null,"There was an error while bootstraping the widget"):e("footer",{class:"FooterContainer",ref:n=>this.stylingContainer=n},e("div",{class:"FooterGrid customStyle"},n))}};o.style=':host {\n display: block;\n}\n\n/* $-background-primary: #14202d; */\n\n* {\n font-family: sans-serif;\n}\n\nhtml,\nbody {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\n.FooterSectionContainer {\n color: #fff;\n padding: 12px;\n}\n\n/* // FOOTER CONTAINER - only serves to be read as a container */\n.FooterContainer {\n container-type: inline-size;\n container-name: footerContainer;\n}\n\n\n.FooterGrid {\n background-color: #14202D;\n display: grid;\n padding: 8px 24px 0 24px;\n grid-template-rows: repeat(9, auto);\n grid-template-areas: "one"\n "two"\n "three"\n "four"\n "five"\n "six"\n "seven";\n}\n\n \n\n.FooterSectionContainer1 {\n position: relative;\n grid-area: one;\n \n}\n.FooterSectionContainer2 {\n position: relative;\n grid-area: two;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n}\n.FooterSectionContainer3 {\n position: relative;\n grid-area: three;\n \n}\n.FooterSectionContainer4 {\n position: relative;\n grid-area: four;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n}\n.FooterSectionContainer5 {\n grid-area: five;\n /* border-bottom: 1px solid #444; */\n}\n.FooterSectionContainer6 {\n padding-top: 22px;\n grid-area: six;\n}\n.FooterSectionContainer7 {\n grid-area: seven;\n}\n\n/* // remove paddings */\n.FooterSectionContainer7 div{\n padding: 0;\n}\n\n.FooterSectionContainer3:after {\n position: absolute;\n content: "";\n left: 30%;\n bottom: -20px;\n height: 1px;\n width: 40%;\n background-color: #444;\n}\n\n\n\n/* // STYLES FOR TABLET / DESKTOP */\n@container (min-width: 750px) {\n .FooterGrid {\n background: $-background-primary;\n display: grid;\n grid-template-rows: repeat(5, auto);\n grid-template-columns: 2fr 1fr;\n grid-template-areas: "one two"\n "three four"\n "five five"\n "six six"\n "seven seven";\n }\n \n \n .FooterSectionContainer1 {\n grid-area: one;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n }\n .FooterSectionContainer2 {\n grid-area: two;\n\n }\n .FooterSectionContainer3 {\n grid-area: three;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n }\n .FooterSectionContainer4 {\n grid-area: four;\n }\n .FooterSectionContainer5 {\n grid-area: five;\n }\n .FooterSectionContainer6 {\n grid-area: six;\n padding: 0;\n }\n .FooterSectionContainer7 {\n grid-area: seven;\n padding: 0;\n }\n\n /* VERTICAL BARS */\n .FooterSectionContainer3:after {\n position: absolute;\n content: "";\n left: initial;\n bottom:initial;\n top: 30%;\n right: 20px;\n width: 1px;\n height: 40%;\n background-color: #444;\n }\n\n /* // remove paddings */\n .FooterSectionContainer5 .CustomContentSectionWrapper {\n padding: 0;\n }\n\n .FooterSectionContainer5 .CustomContentSectionWrapper div {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .FooterSectionContainer5 .CustomContentSectionWrapper div p {\n margin: 5px;\n text-align: center;\n }\n\n .FooterSectionContainer6 .CustomContentSectionWrapper div p {\n text-align: center;\n }\n\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n }\n\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n /* padding-bottom: 22px; */\n /* font-size: 14px; */\n }\n\n .FooterSectionContainer7 .CustomContentSectionWrapper {\n padding: 0;\n padding-bottom: 22px;\n font-size: 14px;\n }\n}';export{o as general_footer_template}
@@ -0,0 +1 @@
1
+ import{r as n,h as i}from"./p-76d9f15a.js";const t=class{constructor(i){n(this,i),this.navigateViaEvent=!1,this.postMessageEvent=""}navigateLink(n){window.postMessage({type:this.postMessageEvent,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=n.find((n=>n.categoryTitle===t));return e?e.links.push({linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink}):n.push({categoryTitle:t,links:[{linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink}]}),n}),[]);return i("div",{class:"LinkSectionListContainer"},i("div",{class:"LinkSectionListWrapper"},e.map((n=>i("ul",null,i("li",{class:"LinkSectionListTitle"},n.categoryTitle),n.links.map((n=>i("li",{class:"LinkSectionListLink",key:n.linkName},!0===this.navigateViaEvent?i("span",{style:{cursor:"pointer"},class:"LinkSectionListLinkText",onClick:()=>this.navigateLink(n)},n.linkName):i("a",{class:"LinkSectionListLink",href:n.externalLink?n.linkUrl:`${this.baseUrl}/${this.language}${n.linkUrl}`,target:n.target||"_blank"},n.linkName)))))))))}};t.style=":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.LinkSectionListContainer {\n display: block;\n container-type: inline-size;\n}\n.LinkSectionListWrapper {\n box-sizing: border-box;\n display: grid;\n grid-gap: 2rem;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: 600;\n}\n.LinkSectionListLink {\n font-weight: 300;\n text-decoration: underline;\n text-underline-offset: 0.2rem;\n}\n\nul {\n width: fit-content;\n padding: 0;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n\nli {\n list-style: none;\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 i,h as t}from"./p-76d9f15a.js";const e=class{constructor(t){i(this,t),this.navigateViaEvent=!1,this.postMessageEvent="",this.navigateLink=(i,t,e)=>{window.postMessage({type:this.postMessageEvent,url:i,target:t,externalLink:e},window.location.href)}}render(){var i,e,s;return t("div",{class:"ImageListContainer"},t("div",{class:"ImageListWrapper"},t("div",{class:"ImageListSectionTitle"},null===(i=this.repeaterContent)||void 0===i?void 0:i.categoryTitle),t("div",{class:"ImageListLineup"},null===(s=null===(e=this.repeaterContent)||void 0===e?void 0:e.content)||void 0===s?void 0:s.map((i=>t("div",{class:"ImageListIcon"},!0===this.navigateViaEvent?t("div",{class:"ImageListIcon",style:{cursor:"pointer"},onClick:()=>this.navigateLink(null==i?void 0:i.url,null==i?void 0:i.target,null==i?void 0:i.isExternalLink)},t("img",{src:null==i?void 0:i.image,alt:""}),t("p",null,null==i?void 0:i.title)):t("a",{href:(null==i?void 0:i.url)||"javascript:void(0)",target:(null==i?void 0:i.target)||"_parent"},t("div",{class:"ImageListPositioner"},t("img",{src:null==i?void 0:i.image,alt:""})),t("p",null,null==i?void 0:i.title))))))))}};e.style=".sc-image-list-h{display:block;margin:0;padding:0}.ImageListContainer.sc-image-list{height:100%}.ImageListWrapper.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-direction:column;max-width:90%;margin:auto;padding:20px 0;justify-content:center;align-items:center}.ImageListSectionTitle.sc-image-list{width:100%;display:flex;justify-content:center;align-content:center;padding-bottom:14px;color:#fff}.ImageListLineup.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-wrap:wrap;gap:30px;justify-content:center;align-items:center}.ImageListIcon.sc-image-list img.sc-image-list{max-height:50px}a.sc-image-list{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-decoration:none}a.sc-image-list p.sc-image-list{text-decoration:none;color:#666;margin:0}";export{e as image_list}
@@ -4,4 +4,4 @@ import{r as t,h as e}from"./p-76d9f15a.js";var i="undefined"!=typeof globalThis?
4
4
  *
5
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
6
  * Released under the MIT License.
7
- */function Jt(t){return"[object Object]"===Object.prototype.toString.call(t)}const Yt=Object.freeze({__proto__:null,isPlainObject:function(t){var e,i;return!1!==Jt(t)&&(void 0===(e=t.constructor)||!1!==Jt(i=e.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf"))}});var Xt=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===Kt}(t)}(t)},Kt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function te(t,e){return!1!==e.clone&&e.isMergeableObject(t)?se(Array.isArray(t)?[]:{},t,e):t}function ee(t,e,i){return t.concat(e).map((function(t){return te(t,i)}))}function ie(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 re(t,e){try{return e in t}catch(t){return!1}}function se(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||ee,i.isMergeableObject=i.isMergeableObject||Xt,i.cloneUnlessOtherwiseSpecified=te;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)&&ie(t).forEach((function(e){r[e]=te(t[e],i)})),ie(e).forEach((function(s){(function(t,e){return re(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,s)||(r[s]=re(t,s)&&i.isMergeableObject(e[s])?function(t,e){if(!e.customMerge)return se;var i=e.customMerge(t);return"function"==typeof i?i:se}(s,i)(t[s],e[s],i):te(e[s],i))})),r}(t,e,i):te(e,i)}se.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return se(t,i,e)}),{})};var ne=se,oe=r((function(t){!function(e,i){t.exports?t.exports=i():e.parseSrcset=i()}(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))}}}))})),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}},le=ae();le.createColors=ae;const ue=s(Object.freeze({__proto__:null,default:{}}));class ce 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,ce)}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=le.isColorSupported),ue&&t&&(e=ue(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}=le.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 fe=ce;ce.default=ce;var de={isClean:Symbol("isClean"),my:Symbol("my")};const pe={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class me{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 pe[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=pe[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 ge=me;function be(t,e){new ge(e).stringify(t)}me.default=me;var we=be;be.default=be;let{isClean:ve,my:ye}=de;function ke(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=>ke(t,i))):("object"===n&&null!==s&&(s=ke(s)),i[r]=s)}return i}class Ee{constructor(t={}){this.raws={},this[ve]=!1,this[ye]=!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=ke(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 fe(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[ve]){this[ve]=!1;let t=this;for(;t=t.parent;)t[ve]=!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 ge).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=we){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 Se=Ee;Ee.default=Ee;class Ae extends Se{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 xe=Ae;Ae.default=Ae;const qe=Object.freeze({__proto__:null,nanoid:(t=21)=>{let e="",i=t;for(;i--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(i=e)=>{let r="",s=i;for(;s--;)r+=t[Math.random()*t.length|0];return r}});let{SourceMapConsumer:Ce,SourceMapGenerator:Te}=ue,{existsSync:De,readFileSync:Oe}=ue,{dirname:je,join:Re}=ue;class Be{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=je(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Ce(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=je(t),De(t))return this.mapFile=t,Oe(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 Ce)return Te.fromSourceMap(e).toString();if(e instanceof Te)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=Re(je(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 Le=Be;Be.default=Be;const Me=s(qe);let{SourceMapConsumer:Ne,SourceMapGenerator:Ie}=ue,{fileURLToPath:Ue,pathToFileURL:Pe}=ue,{isAbsolute:_e,resolve:$e}=ue,{nanoid:Fe}=Me,Ve=Symbol("fromOffsetCache"),He=Boolean(Ne&&Ie),Ge=Boolean($e&&_e);class ze{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=!Ge||/^\w+:\/\//.test(e.from)||_e(e.from)?e.from:$e(e.from)),Ge&&He){let t=new Le(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 "+Fe(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 fe(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 fe(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&&(Pe&&(s.input.url=Pe(this.file).toString()),s.input.file=this.file),s}fromOffset(t){let e,i;if(this[Ve])i=this[Ve];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[Ve]=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:$e(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=_e(h.source)?Pe(h.source):new URL(h.source,this.map.consumer().sourceRoot||Pe(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(!Ue)throw new Error("file: protocol is not available in this PostCSS build");a.file=Ue(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 We=ze;ze.default=ze,ue&&ue.registerInput&&ue.registerInput(ze);let{SourceMapConsumer:Ze,SourceMapGenerator:Qe}=ue,{dirname:Je,relative:Ye,resolve:Xe,sep:Ke}=ue,{pathToFileURL:ti}=ue,ei=Boolean(Ze&&Qe),ii=Boolean(Je&&Xe&&Ye&&Ke);var ri=class{constructor(t,e,i,r){this.stringify=t,this.mapOpts=i.map||{},this.root=e,this.opts=i,this.css=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||Je(t.file);!1===this.mapOpts.sourcesContent?(e=new Ze(t.text),e.sourcesContent&&(e.sourcesContent=e.sourcesContent.map((()=>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(),ii&&ei&&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=Qe.fromSourceMap(t)}else this.map=new Qe({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 Qe({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?Je(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=Je(Xe(i,this.mapOpts.annotation)));let r=Ye(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 We(this.css,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(ti){let e=ti(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;"\\"===Ke&&(t=t.replace(/\\/g,"/"));let i=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,i),i}};class si extends Se{constructor(t){super(t),this.type="comment"}}var ni=si;si.default=si;let oi,hi,ai,li,{isClean:ui,my:ci}=de;function fi(t){return t.map((t=>(t.nodes&&(t.nodes=fi(t.nodes)),delete t.source,t)))}function di(t){if(t[ui]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)di(e)}class pi extends Se{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=fi(oi(t).nodes);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 xe(t)]}else if(t.selector)t=[new hi(t)];else if(t.name)t=[new ai(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new ni(t)]}return t.map((t=>(t[ci]||pi.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[ui]&&di(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]}}pi.registerParse=t=>{oi=t},pi.registerRule=t=>{hi=t},pi.registerAtRule=t=>{ai=t},pi.registerRoot=t=>{li=t};var mi=pi;let gi,bi;pi.default=pi,pi.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,ai.prototype):"rule"===t.type?Object.setPrototypeOf(t,hi.prototype):"decl"===t.type?Object.setPrototypeOf(t,xe.prototype):"comment"===t.type?Object.setPrototypeOf(t,ni.prototype):"root"===t.type&&Object.setPrototypeOf(t,li.prototype),t[ci]=!0,t.nodes&&t.nodes.forEach((t=>{pi.rebuild(t)}))};class wi extends mi{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new gi(new bi,this,t).stringify()}}wi.registerLazyResult=t=>{gi=t},wi.registerProcessor=t=>{bi=t};var vi=wi;wi.default=wi;class yi{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 ki=yi;yi.default=yi;class Ei{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 ki(t,e);return this.messages.push(i),i}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}}var Si=Ei;Ei.default=Ei;const Ai="'".charCodeAt(0),xi='"'.charCodeAt(0),qi="\\".charCodeAt(0),Ci="/".charCodeAt(0),Ti="\n".charCodeAt(0),Di=" ".charCodeAt(0),Oi="\f".charCodeAt(0),ji="\t".charCodeAt(0),Ri="\r".charCodeAt(0),Bi="[".charCodeAt(0),Li="]".charCodeAt(0),Mi="(".charCodeAt(0),Ni=")".charCodeAt(0),Ii="{".charCodeAt(0),Ui="}".charCodeAt(0),Pi=";".charCodeAt(0),_i="*".charCodeAt(0),$i=":".charCodeAt(0),Fi="@".charCodeAt(0),Vi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Hi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Gi=/.[\r\n"'(/\\]/,zi=/[\da-f]/i;class Wi extends mi{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 Zi=Wi;let Qi,Ji;Wi.default=Wi,mi.registerAtRule(Wi);class Yi extends mi{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 Qi(new Ji,this,t).stringify()}}Yi.registerLazyResult=t=>{Qi=t},Yi.registerProcessor=t=>{Ji=t};var Xi=Yi;Yi.default=Yi,mi.registerRoot(Yi);let Ki={comma:t=>Ki.split(t,[","],!0),space:t=>Ki.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 tr=Ki;Ki.default=Ki;class er extends mi{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return tr.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 ir=er;er.default=er,mi.registerRule(er);const rr={empty:!0,space:!0};function sr(t,e){let i=new We(t,e),r=new class{constructor(t){this.input=t,this.root=new Xi,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,i,r,s=new Zi;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 ni;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 Ti:case Di:case ji:case Ri:case Oi:r=m;do{r+=1,i=f.charCodeAt(r)}while(i===Di||i===Ti||i===ji||i===Ri||i===Oi);c=["space",f.slice(m,r)],m=r-1;break;case Bi:case Li:case Ii:case Ui:case $i:case Pi:case Ni:{let t=String.fromCharCode(i);c=[t,t,m];break}case Mi:if(l=g.length?g.pop()[1]:"",u=f.charCodeAt(m+1),"url"===l&&u!==Ai&&u!==xi&&u!==Di&&u!==Ti&&u!==ji&&u!==Oi&&u!==Ri){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)===qi;)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||Gi.test(n)?c=["(","(",m]:(c=["brackets",n,m,r],m=r);break;case Ai:case xi:s=i===Ai?"'":'"',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)===qi;)a-=1,h=!h}while(h);c=["string",f.slice(m,r+1),m,r],m=r;break;case Fi:Vi.lastIndex=m+1,Vi.test(f),r=0===Vi.lastIndex?f.length-1:Vi.lastIndex-2,c=["at-word",f.slice(m,r+1),m,r],m=r;break;case qi:for(r=m,o=!0;f.charCodeAt(r+1)===qi;)r+=1,o=!o;if(i=f.charCodeAt(r+1),o&&i!==Ci&&i!==Di&&i!==Ti&&i!==ji&&i!==Ri&&i!==Oi&&(r+=1,zi.test(f.charAt(r)))){for(;zi.test(f.charAt(r+1));)r+=1;f.charCodeAt(r+1)===Di&&(r+=1)}c=["word",f.slice(m,r+1),m,r],m=r;break;default:i===Ci&&f.charCodeAt(m+1)===_i?(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):(Hi.lastIndex=m+1,Hi.test(f),r=0===Hi.lastIndex?f.length-1:Hi.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 xe;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 ir;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",rr[h]||rr[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 ir;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})}}(i);try{r.parse()}catch(t){throw t}return r.root}var nr=sr;sr.default=sr,mi.registerParse(sr);let{isClean:or,my:hr}=de;const ar={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},lr={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},ur={Once:!0,postcssPlugin:!0,prepare:!0};function cr(t){return"object"==typeof t&&"function"==typeof t.then}function fr(t){let e=!1,i=ar[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[i,i+"-"+e,0,i+"Exit",i+"Exit-"+e]:e?[i,i+"-"+e,i+"Exit",i+"Exit-"+e]:t.append?[i,0,i+"Exit"]:[i,i+"Exit"]}function dr(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:fr(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function pr(t){return t[or]=!1,t.nodes&&t.nodes.forEach((t=>pr(t))),t}let mr={};class gr{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 gr||e instanceof Si)r=pr(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=nr;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[hr]&&mi.rebuild(r)}else r=pr(e);this.result=new Si(t,r,i),this.helpers={...mr,postcss:mr,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(!lr[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ur[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(cr(e))try{await e}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[or];){t[or]=!0;let e=[dr(t)];for(;e.length>0;){let t=this.visitTick(e);if(cr(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 cr(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=we;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let i=new ri(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(cr(this.runOnRoot(t)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[or];)t[or]=!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(cr(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[or])return r[or]=!0,void t.push(dr(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,0===t)return void(i.nodes&&i.nodes.length&&(i[or]=!0,e.iterator=i.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[or]=!0;let e=fr(t);for(let i of e)if(0===i)t.nodes&&t.each((t=>{t[or]||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"}}gr.registerPostcss=t=>{mr=t};var br=gr;gr.default=gr,Xi.registerLazyResult(gr),vi.registerLazyResult(gr);class wr{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=we;this.result=new Si(this._processor,r,this._opts),this.result.css=e;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let o=new ri(s,r,this._opts,e);if(o.isMap()){let[t,e]=o.generate();t&&(this.result.css=t),e&&(this.result.map=e)}}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=nr;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 vr=wr;wr.default=wr;class yr{constructor(t=[]){this.version="8.4.32",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 0===this.plugins.length&&void 0===e.parser&&void 0===e.stringifier&&void 0===e.syntax?new vr(this,t,e):new br(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}var kr=yr;function Er(t,e){if(Array.isArray(t))return t.map((t=>Er(t)));let{inputs:i,...r}=t;if(i){e=[];for(let t of i){let i={...t,__proto__:We.prototype};i.map&&(i.map={...i.map,__proto__:Le.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map((t=>Er(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 Xi(r);if("decl"===r.type)return new xe(r);if("rule"===r.type)return new ir(r);if("comment"===r.type)return new ni(r);if("atrule"===r.type)return new Zi(r);throw new Error("Unknown node type: "+t.type)}yr.default=yr,Xi.registerProcessor(yr),vi.registerProcessor(yr);var Sr=Er;function Ar(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new kr(t)}Er.default=Er,Ar.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 kr).version,s}return Object.defineProperty(s,"postcss",{get:()=>(i||(i=s()),i)}),s.process=function(t,e,i){return Ar([s(i)]).process(t,e)},s},Ar.stringify=we,Ar.parse=nr,Ar.fromJSON=Sr,Ar.list=tr,Ar.comment=t=>new ni(t),Ar.atRule=t=>new Zi(t),Ar.decl=t=>new xe(t),Ar.rule=t=>new ir(t),Ar.root=t=>new Xi(t),Ar.document=t=>new vi(t),Ar.CssSyntaxError=fe,Ar.Declaration=xe,Ar.Container=mi,Ar.Processor=kr,Ar.Document=vi,Ar.Comment=ni,Ar.Warning=ki,Ar.AtRule=Zi,Ar.Result=Si,Ar.Input=We,Ar.Rule=ir,Ar.Root=Xi,Ar.Node=Se,br.registerPostcss(Ar);var xr=Ar;Ar.default=Ar;const qr=s(Zt),Cr=s(Yt),{isPlainObject:Tr}=Cr,{parse:Dr}=xr,Or=["img","audio","video","picture","svg","object","map","iframe","embed"],jr=["script","style"];function Rr(t,e){t&&Object.keys(t).forEach((function(i){e(t[i],i)}))}function Br(t,e){return{}.hasOwnProperty.call(t,e)}function Lr(t,e){const i=[];return Rr(t,(function(t){e(t)&&i.push(t)})),i}var Mr=Ir;const Nr=/^[^\0\t\n\f\r /<=>]+$/;function Ir(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&&Or.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}(e=Object.assign({},Ir.defaults,e)).parser=Object.assign({},Ur,e.parser);const n=function(t){return!1===e.allowedTags||(e.allowedTags||[]).indexOf(t)>-1};jr.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={},Rr(e.allowedAttributes,(function(t,e){h[e]=[];const i=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push(Qt(t).replace(/\\\*/g,".*")):h[e].push(t)})),i.length&&(a[e]=new RegExp("^("+i.join("|")+")$"))})));const l={},u={},c={};Rr(e.allowedClasses,(function(t,e){if(h&&(Br(h,e)||(h[e]=[]),h[e].push("class")),l[e]=t,Array.isArray(t)){const i=[];l[e]=[],c[e]=[],t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push(Qt(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;Rr(e.transformTags,(function(t,e){let i;"function"==typeof t?i=t:"string"==typeof t&&(i=Ir.simpleTransform(t)),"*"===e?d=i:f[e]=i}));let y=!1;E();const k=new qr.Parser({onopentag:function(t,k){if(e.enforceHtmlBoundary&&"html"===t&&E(),w)return void v++;const q=new s(t,k);m.push(q);let C=!1;const T=!!q.text;let D;if(Br(f,t)&&(D=f[t](t,k),q.attribs=k=D.attribs,void 0!==D.text&&(q.innerText=D.text),t!==D.tagName&&(q.name=t=D.tagName,b[p]=D.tagName)),d&&(D=d(t,k),q.attribs=k=D.attribs,t!==D.tagName&&(q.name=t=D.tagName,b[p]=D.tagName)),(!n(t)||"recursiveEscape"===e.disallowedTagsMode&&!function(t){for(const e in t)if(Br(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||Br(h,t)||h["*"])&&Rr(k,(function(r,s){if(!Nr.test(s))return void delete q.attribs[s];if(""===r&&(e.nonBooleanAttributes.includes(s)||e.nonBooleanAttributes.includes("*")))return void delete q.attribs[s];let n=!1;if(!h||Br(h,t)&&-1!==h[t].indexOf(s)||h["*"]&&-1!==h["*"].indexOf(s)||Br(a,t)&&a[t].test(s)||a["*"]&&a["*"].test(s))n=!0;else if(h&&h[t])for(const e of h[t])if(Tr(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=Br(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=oe(r);if(t.forEach((function(t){A("srcset",t.url)&&(t.evil=!0)})),t=Lr(t,(function(t){return!t.evil})),!t.length)return void delete q.attribs[s];r=Lr(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(!(f=r,d=e&&i?ne(e,i):e||i,p=n,r=d?(f=f.split(/\s+/)).filter((function(t){return-1!==d.indexOf(t)||p.some((function(e){return e.test(t)}))})).join(" "):f).length)return void delete q.attribs[s]}if("style"===s)if(e.parseStyleAttributes)try{const i=Dr(t+" {"+r+"}");if(0===(o=function(t,e){if(!e)return t;const i=t.nodes[0];let r;return r=e[i.selector]&&e["*"]?ne(e[i.selector],e["*"]):e[i.selector]||e["*"],r&&(t.nodes[0].nodes=i.nodes.reduce(function(t){return function(e,i){return Br(t,i.prop)&&t[i.prop].some((function(t){return t.test(i.value)}))&&e.push(i),e}}(r),[])),t}(i,e.allowedStyles),r=o.nodes[0].nodes.reduce((function(t,e){return t.push(`${e.prop}:${e.value}${e.important?" !important":""}`),t}),[]).join(";")).length)return void delete q.attribs[s]}catch(e){return"undefined"!=typeof window&&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,p})),-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 k.write(t),k.end(),i;function E(){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 Br(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 Ur={decodeEntities:!0};Ir.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"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],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},Ir.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 Pr=class{constructor(e){t(this,e),this.navigateViaEvent=!1,this.postMessageEvent=""}render(){const t=Mr(this.customContent,{allowedTags:Mr.defaults.allowedTags.concat(["img"]),allowedAttributes:{img:["src","srcset","alt","title","width","height","loading"]}});return e("div",{class:"CustomContentSectionContainer"},e("div",{class:"CustomContentSectionWrapper"},e("div",{class:"CustomContentSectionContent",innerHTML:t}),this.repeaterContent?e("image-list",{style:{width:"100%"},repeaterContent:this.repeaterContent,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent}):""))}};Pr.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%;display:flex;flex-direction:column;justify-content:center;align-items:center}";export{Pr as custom_content_section}
7
+ */function Jt(t){return"[object Object]"===Object.prototype.toString.call(t)}const Yt=Object.freeze({__proto__:null,isPlainObject:function(t){var e,i;return!1!==Jt(t)&&(void 0===(e=t.constructor)||!1!==Jt(i=e.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf"))}});var Xt=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===Kt}(t)}(t)},Kt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function te(t,e){return!1!==e.clone&&e.isMergeableObject(t)?se(Array.isArray(t)?[]:{},t,e):t}function ee(t,e,i){return t.concat(e).map((function(t){return te(t,i)}))}function ie(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 re(t,e){try{return e in t}catch(t){return!1}}function se(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||ee,i.isMergeableObject=i.isMergeableObject||Xt,i.cloneUnlessOtherwiseSpecified=te;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)&&ie(t).forEach((function(e){r[e]=te(t[e],i)})),ie(e).forEach((function(s){(function(t,e){return re(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,s)||(r[s]=re(t,s)&&i.isMergeableObject(e[s])?function(t,e){if(!e.customMerge)return se;var i=e.customMerge(t);return"function"==typeof i?i:se}(s,i)(t[s],e[s],i):te(e[s],i))})),r}(t,e,i):te(e,i)}se.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return se(t,i,e)}),{})};var ne=se,oe=r((function(t){!function(e,i){t.exports?t.exports=i():e.parseSrcset=i()}(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))}}}))})),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}},le=ae();le.createColors=ae;const ue=s(Object.freeze({__proto__:null,default:{}}));class ce 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,ce)}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=le.isColorSupported),ue&&t&&(e=ue(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}=le.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 fe=ce;ce.default=ce;var de={isClean:Symbol("isClean"),my:Symbol("my")};const pe={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class me{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 pe[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=pe[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 ge=me;function be(t,e){new ge(e).stringify(t)}me.default=me;var we=be;be.default=be;let{isClean:ve,my:ye}=de;function ke(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=>ke(t,i))):("object"===n&&null!==s&&(s=ke(s)),i[r]=s)}return i}class Ee{constructor(t={}){this.raws={},this[ve]=!1,this[ye]=!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=ke(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 fe(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[ve]){this[ve]=!1;let t=this;for(;t=t.parent;)t[ve]=!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 ge).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=we){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 Se=Ee;Ee.default=Ee;class Ae extends Se{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 xe=Ae;Ae.default=Ae;const qe=Object.freeze({__proto__:null,nanoid:(t=21)=>{let e="",i=t;for(;i--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(i=e)=>{let r="",s=i;for(;s--;)r+=t[Math.random()*t.length|0];return r}});let{SourceMapConsumer:Ce,SourceMapGenerator:Te}=ue,{existsSync:De,readFileSync:Oe}=ue,{dirname:je,join:Re}=ue;class Be{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=je(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Ce(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=je(t),De(t))return this.mapFile=t,Oe(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 Ce)return Te.fromSourceMap(e).toString();if(e instanceof Te)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=Re(je(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 Le=Be;Be.default=Be;const Me=s(qe);let{SourceMapConsumer:Ne,SourceMapGenerator:Ie}=ue,{fileURLToPath:Ue,pathToFileURL:Pe}=ue,{isAbsolute:_e,resolve:$e}=ue,{nanoid:Fe}=Me,Ve=Symbol("fromOffsetCache"),He=Boolean(Ne&&Ie),Ge=Boolean($e&&_e);class ze{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=!Ge||/^\w+:\/\//.test(e.from)||_e(e.from)?e.from:$e(e.from)),Ge&&He){let t=new Le(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 "+Fe(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 fe(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 fe(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&&(Pe&&(s.input.url=Pe(this.file).toString()),s.input.file=this.file),s}fromOffset(t){let e,i;if(this[Ve])i=this[Ve];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[Ve]=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:$e(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=_e(h.source)?Pe(h.source):new URL(h.source,this.map.consumer().sourceRoot||Pe(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(!Ue)throw new Error("file: protocol is not available in this PostCSS build");a.file=Ue(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 We=ze;ze.default=ze,ue&&ue.registerInput&&ue.registerInput(ze);let{SourceMapConsumer:Ze,SourceMapGenerator:Qe}=ue,{dirname:Je,relative:Ye,resolve:Xe,sep:Ke}=ue,{pathToFileURL:ti}=ue,ei=Boolean(Ze&&Qe),ii=Boolean(Je&&Xe&&Ye&&Ke);var ri=class{constructor(t,e,i,r){this.stringify=t,this.mapOpts=i.map||{},this.root=e,this.opts=i,this.css=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||Je(t.file);!1===this.mapOpts.sourcesContent?(e=new Ze(t.text),e.sourcesContent&&(e.sourcesContent=e.sourcesContent.map((()=>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(),ii&&ei&&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=Qe.fromSourceMap(t)}else this.map=new Qe({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 Qe({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?Je(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=Je(Xe(i,this.mapOpts.annotation)));let r=Ye(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 We(this.css,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(ti){let e=ti(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;"\\"===Ke&&(t=t.replace(/\\/g,"/"));let i=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,i),i}};class si extends Se{constructor(t){super(t),this.type="comment"}}var ni=si;si.default=si;let oi,hi,ai,li,{isClean:ui,my:ci}=de;function fi(t){return t.map((t=>(t.nodes&&(t.nodes=fi(t.nodes)),delete t.source,t)))}function di(t){if(t[ui]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)di(e)}class pi extends Se{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=fi(oi(t).nodes);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 xe(t)]}else if(t.selector)t=[new hi(t)];else if(t.name)t=[new ai(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new ni(t)]}return t.map((t=>(t[ci]||pi.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[ui]&&di(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]}}pi.registerParse=t=>{oi=t},pi.registerRule=t=>{hi=t},pi.registerAtRule=t=>{ai=t},pi.registerRoot=t=>{li=t};var mi=pi;let gi,bi;pi.default=pi,pi.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,ai.prototype):"rule"===t.type?Object.setPrototypeOf(t,hi.prototype):"decl"===t.type?Object.setPrototypeOf(t,xe.prototype):"comment"===t.type?Object.setPrototypeOf(t,ni.prototype):"root"===t.type&&Object.setPrototypeOf(t,li.prototype),t[ci]=!0,t.nodes&&t.nodes.forEach((t=>{pi.rebuild(t)}))};class wi extends mi{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new gi(new bi,this,t).stringify()}}wi.registerLazyResult=t=>{gi=t},wi.registerProcessor=t=>{bi=t};var vi=wi;wi.default=wi;class yi{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 ki=yi;yi.default=yi;class Ei{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 ki(t,e);return this.messages.push(i),i}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}}var Si=Ei;Ei.default=Ei;const Ai="'".charCodeAt(0),xi='"'.charCodeAt(0),qi="\\".charCodeAt(0),Ci="/".charCodeAt(0),Ti="\n".charCodeAt(0),Di=" ".charCodeAt(0),Oi="\f".charCodeAt(0),ji="\t".charCodeAt(0),Ri="\r".charCodeAt(0),Bi="[".charCodeAt(0),Li="]".charCodeAt(0),Mi="(".charCodeAt(0),Ni=")".charCodeAt(0),Ii="{".charCodeAt(0),Ui="}".charCodeAt(0),Pi=";".charCodeAt(0),_i="*".charCodeAt(0),$i=":".charCodeAt(0),Fi="@".charCodeAt(0),Vi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Hi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Gi=/.[\r\n"'(/\\]/,zi=/[\da-f]/i;class Wi extends mi{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 Zi=Wi;let Qi,Ji;Wi.default=Wi,mi.registerAtRule(Wi);class Yi extends mi{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 Qi(new Ji,this,t).stringify()}}Yi.registerLazyResult=t=>{Qi=t},Yi.registerProcessor=t=>{Ji=t};var Xi=Yi;Yi.default=Yi,mi.registerRoot(Yi);let Ki={comma:t=>Ki.split(t,[","],!0),space:t=>Ki.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 tr=Ki;Ki.default=Ki;class er extends mi{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return tr.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 ir=er;er.default=er,mi.registerRule(er);const rr={empty:!0,space:!0};function sr(t,e){let i=new We(t,e),r=new class{constructor(t){this.input=t,this.root=new Xi,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,i,r,s=new Zi;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 ni;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 Ti:case Di:case ji:case Ri:case Oi:r=m;do{r+=1,i=f.charCodeAt(r)}while(i===Di||i===Ti||i===ji||i===Ri||i===Oi);c=["space",f.slice(m,r)],m=r-1;break;case Bi:case Li:case Ii:case Ui:case $i:case Pi:case Ni:{let t=String.fromCharCode(i);c=[t,t,m];break}case Mi:if(l=g.length?g.pop()[1]:"",u=f.charCodeAt(m+1),"url"===l&&u!==Ai&&u!==xi&&u!==Di&&u!==Ti&&u!==ji&&u!==Oi&&u!==Ri){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)===qi;)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||Gi.test(n)?c=["(","(",m]:(c=["brackets",n,m,r],m=r);break;case Ai:case xi:s=i===Ai?"'":'"',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)===qi;)a-=1,h=!h}while(h);c=["string",f.slice(m,r+1),m,r],m=r;break;case Fi:Vi.lastIndex=m+1,Vi.test(f),r=0===Vi.lastIndex?f.length-1:Vi.lastIndex-2,c=["at-word",f.slice(m,r+1),m,r],m=r;break;case qi:for(r=m,o=!0;f.charCodeAt(r+1)===qi;)r+=1,o=!o;if(i=f.charCodeAt(r+1),o&&i!==Ci&&i!==Di&&i!==Ti&&i!==ji&&i!==Ri&&i!==Oi&&(r+=1,zi.test(f.charAt(r)))){for(;zi.test(f.charAt(r+1));)r+=1;f.charCodeAt(r+1)===Di&&(r+=1)}c=["word",f.slice(m,r+1),m,r],m=r;break;default:i===Ci&&f.charCodeAt(m+1)===_i?(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):(Hi.lastIndex=m+1,Hi.test(f),r=0===Hi.lastIndex?f.length-1:Hi.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 xe;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 ir;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",rr[h]||rr[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 ir;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})}}(i);try{r.parse()}catch(t){throw t}return r.root}var nr=sr;sr.default=sr,mi.registerParse(sr);let{isClean:or,my:hr}=de;const ar={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},lr={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},ur={Once:!0,postcssPlugin:!0,prepare:!0};function cr(t){return"object"==typeof t&&"function"==typeof t.then}function fr(t){let e=!1,i=ar[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[i,i+"-"+e,0,i+"Exit",i+"Exit-"+e]:e?[i,i+"-"+e,i+"Exit",i+"Exit-"+e]:t.append?[i,0,i+"Exit"]:[i,i+"Exit"]}function dr(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:fr(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function pr(t){return t[or]=!1,t.nodes&&t.nodes.forEach((t=>pr(t))),t}let mr={};class gr{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 gr||e instanceof Si)r=pr(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=nr;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[hr]&&mi.rebuild(r)}else r=pr(e);this.result=new Si(t,r,i),this.helpers={...mr,postcss:mr,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(!lr[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ur[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(cr(e))try{await e}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[or];){t[or]=!0;let e=[dr(t)];for(;e.length>0;){let t=this.visitTick(e);if(cr(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 cr(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=we;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let i=new ri(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(cr(this.runOnRoot(t)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[or];)t[or]=!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(cr(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[or])return r[or]=!0,void t.push(dr(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,0===t)return void(i.nodes&&i.nodes.length&&(i[or]=!0,e.iterator=i.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[or]=!0;let e=fr(t);for(let i of e)if(0===i)t.nodes&&t.each((t=>{t[or]||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"}}gr.registerPostcss=t=>{mr=t};var br=gr;gr.default=gr,Xi.registerLazyResult(gr),vi.registerLazyResult(gr);class wr{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=we;this.result=new Si(this._processor,r,this._opts),this.result.css=e;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let o=new ri(s,r,this._opts,e);if(o.isMap()){let[t,e]=o.generate();t&&(this.result.css=t),e&&(this.result.map=e)}}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=nr;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 vr=wr;wr.default=wr;class yr{constructor(t=[]){this.version="8.4.32",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 0===this.plugins.length&&void 0===e.parser&&void 0===e.stringifier&&void 0===e.syntax?new vr(this,t,e):new br(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}var kr=yr;function Er(t,e){if(Array.isArray(t))return t.map((t=>Er(t)));let{inputs:i,...r}=t;if(i){e=[];for(let t of i){let i={...t,__proto__:We.prototype};i.map&&(i.map={...i.map,__proto__:Le.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map((t=>Er(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 Xi(r);if("decl"===r.type)return new xe(r);if("rule"===r.type)return new ir(r);if("comment"===r.type)return new ni(r);if("atrule"===r.type)return new Zi(r);throw new Error("Unknown node type: "+t.type)}yr.default=yr,Xi.registerProcessor(yr),vi.registerProcessor(yr);var Sr=Er;function Ar(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new kr(t)}Er.default=Er,Ar.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 kr).version,s}return Object.defineProperty(s,"postcss",{get:()=>(i||(i=s()),i)}),s.process=function(t,e,i){return Ar([s(i)]).process(t,e)},s},Ar.stringify=we,Ar.parse=nr,Ar.fromJSON=Sr,Ar.list=tr,Ar.comment=t=>new ni(t),Ar.atRule=t=>new Zi(t),Ar.decl=t=>new xe(t),Ar.rule=t=>new ir(t),Ar.root=t=>new Xi(t),Ar.document=t=>new vi(t),Ar.CssSyntaxError=fe,Ar.Declaration=xe,Ar.Container=mi,Ar.Processor=kr,Ar.Document=vi,Ar.Comment=ni,Ar.Warning=ki,Ar.AtRule=Zi,Ar.Result=Si,Ar.Input=We,Ar.Rule=ir,Ar.Root=Xi,Ar.Node=Se,br.registerPostcss(Ar);var xr=Ar;Ar.default=Ar;const qr=s(Zt),Cr=s(Yt),{isPlainObject:Tr}=Cr,{parse:Dr}=xr,Or=["img","audio","video","picture","svg","object","map","iframe","embed"],jr=["script","style"];function Rr(t,e){t&&Object.keys(t).forEach((function(i){e(t[i],i)}))}function Br(t,e){return{}.hasOwnProperty.call(t,e)}function Lr(t,e){const i=[];return Rr(t,(function(t){e(t)&&i.push(t)})),i}var Mr=Ir;const Nr=/^[^\0\t\n\f\r /<=>]+$/;function Ir(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&&Or.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}(e=Object.assign({},Ir.defaults,e)).parser=Object.assign({},Ur,e.parser);const n=function(t){return!1===e.allowedTags||(e.allowedTags||[]).indexOf(t)>-1};jr.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={},Rr(e.allowedAttributes,(function(t,e){h[e]=[];const i=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push(Qt(t).replace(/\\\*/g,".*")):h[e].push(t)})),i.length&&(a[e]=new RegExp("^("+i.join("|")+")$"))})));const l={},u={},c={};Rr(e.allowedClasses,(function(t,e){if(h&&(Br(h,e)||(h[e]=[]),h[e].push("class")),l[e]=t,Array.isArray(t)){const i=[];l[e]=[],c[e]=[],t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push(Qt(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;Rr(e.transformTags,(function(t,e){let i;"function"==typeof t?i=t:"string"==typeof t&&(i=Ir.simpleTransform(t)),"*"===e?d=i:f[e]=i}));let y=!1;E();const k=new qr.Parser({onopentag:function(t,k){if(e.enforceHtmlBoundary&&"html"===t&&E(),w)return void v++;const q=new s(t,k);m.push(q);let C=!1;const T=!!q.text;let D;if(Br(f,t)&&(D=f[t](t,k),q.attribs=k=D.attribs,void 0!==D.text&&(q.innerText=D.text),t!==D.tagName&&(q.name=t=D.tagName,b[p]=D.tagName)),d&&(D=d(t,k),q.attribs=k=D.attribs,t!==D.tagName&&(q.name=t=D.tagName,b[p]=D.tagName)),(!n(t)||"recursiveEscape"===e.disallowedTagsMode&&!function(t){for(const e in t)if(Br(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||Br(h,t)||h["*"])&&Rr(k,(function(r,s){if(!Nr.test(s))return void delete q.attribs[s];if(""===r&&(e.nonBooleanAttributes.includes(s)||e.nonBooleanAttributes.includes("*")))return void delete q.attribs[s];let n=!1;if(!h||Br(h,t)&&-1!==h[t].indexOf(s)||h["*"]&&-1!==h["*"].indexOf(s)||Br(a,t)&&a[t].test(s)||a["*"]&&a["*"].test(s))n=!0;else if(h&&h[t])for(const e of h[t])if(Tr(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=Br(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=oe(r);if(t.forEach((function(t){A("srcset",t.url)&&(t.evil=!0)})),t=Lr(t,(function(t){return!t.evil})),!t.length)return void delete q.attribs[s];r=Lr(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(!(f=r,d=e&&i?ne(e,i):e||i,p=n,r=d?(f=f.split(/\s+/)).filter((function(t){return-1!==d.indexOf(t)||p.some((function(e){return e.test(t)}))})).join(" "):f).length)return void delete q.attribs[s]}if("style"===s)if(e.parseStyleAttributes)try{const i=Dr(t+" {"+r+"}");if(0===(o=function(t,e){if(!e)return t;const i=t.nodes[0];let r;return r=e[i.selector]&&e["*"]?ne(e[i.selector],e["*"]):e[i.selector]||e["*"],r&&(t.nodes[0].nodes=i.nodes.reduce(function(t){return function(e,i){return Br(t,i.prop)&&t[i.prop].some((function(t){return t.test(i.value)}))&&e.push(i),e}}(r),[])),t}(i,e.allowedStyles),r=o.nodes[0].nodes.reduce((function(t,e){return t.push(`${e.prop}:${e.value}${e.important?" !important":""}`),t}),[]).join(";")).length)return void delete q.attribs[s]}catch(e){return"undefined"!=typeof window&&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,p})),-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 k.write(t),k.end(),i;function E(){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 Br(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 Ur={decodeEntities:!0};Ir.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"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],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},Ir.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 Pr=class{constructor(e){t(this,e),this.navigateViaEvent=!1,this.postMessageEvent=""}render(){const t=Mr(this.customContent,{allowedTags:Mr.defaults.allowedTags.concat(["img"]),allowedAttributes:{img:["src","srcset","alt","title","width","height","loading"]}});return e("div",{class:"CustomContentSectionContainer"},e("div",{class:"CustomContentSectionWrapper"},e("div",{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}):""))}};Pr.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%;display:flex;flex-direction:column;justify-content:center;align-items:center}";export{Pr as custom_content_section}
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-footer-template",
3
- "version": "1.33.3",
3
+ "version": "1.33.5",
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 n,h as i}from"./p-76d9f15a.js";const t=class{constructor(i){n(this,i),this.navigateViaEvent=!1,this.postMessageEvent=""}navigateLink(n){window.postMessage({type:this.postMessageEvent,url:n.linkUrl,target:n.target,externalLink:n.externalLink},window.location.href)}render(){const n=this.repeaterContent.content.reduce(((n,i)=>{const t=i.linkCategory,e=n.find((n=>n.categoryTitle===t));return e?e.links.push({linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink}):n.push({categoryTitle:t,links:[{linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink}]}),n}),[]);return i("div",{class:"LinkSectionListContainer"},i("div",{class:"LinkSectionListWrapper"},n.map((n=>i("ul",null,i("li",{class:"LinkSectionListTitle"},n.categoryTitle),n.links.map((n=>i("li",{class:"LinkSectionListLink",key:n.linkName},!0===this.navigateViaEvent?i("span",{style:{cursor:"pointer"},class:"LinkSectionListLinkText",onClick:()=>this.navigateLink(n)},n.linkName):i("a",{class:"LinkSectionListLink",href:n.externalLink?n.linkUrl:`${this.baseUrl}/${this.language}${n.linkUrl}`,target:n.target||"_blank"},n.linkName)))))))))}};t.style=":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.LinkSectionListContainer {\n display: block;\n container-type: inline-size;\n}\n.LinkSectionListWrapper {\n box-sizing: border-box;\n display: grid;\n grid-gap: 2rem;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: 600;\n}\n.LinkSectionListLink {\n font-weight: 300;\n text-decoration: underline;\n text-underline-offset: 0.2rem;\n}\n\nul {\n width: fit-content;\n padding: 0;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n\nli {\n list-style: none;\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}
@@ -1 +0,0 @@
1
- import{r as n,h as e}from"./p-76d9f15a.js";const t={downloadApp:{component:"custom-content-section"},"link-section":{component:"link-section-list"},copyright:{component:"custom-content-section"},download:{component:"custom-content-section"},helpLinks:{component:"image-list"},"license-description":{component:"custom-content-section"},licenses:{component:"image-list"},payment:{component:"image-list"},social:{component:"image-list"},sponsors:{component:"image-list"},vendors:{component:"image-list"}},o=class{constructor(e){n(this,e),this.env="stage",this.userRoles="everyone",this.navigateViaEvent="false",this.postMessageEvent="NavigateTo",this.clientStyling="",this.clientStylingUrl="",this.hasErrors=!1,this.stylingAppends=!1,this.platform=(()=>{const n=(()=>{let n=window.navigator.userAgent;return n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})();if(n)return"PC"===n?"dk":"iPad"===n||"iPhone"===n?"ios":"mtWeb"})(),this.MANDATORY_FIELDS=["endpoint","language","sections"],this.setClientStyling=()=>{let n=document.createElement("style");n.innerHTML=this.clientStyling,this.stylingContainer.prepend(n)},this.setClientStylingURL=()=>{let n=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(n.href).then((n=>n.text())).then((n=>{e.innerHTML=n,setTimeout((()=>{this.stylingContainer.prepend(e)}),1)})).catch((n=>{console.log("error ",n)}))}}validateMandatoryFields(){this.MANDATORY_FIELDS.forEach((n=>{this[n]||(console.error(`Mandatory parameter ${n} not received`),this.hasErrors=!0)}))}componentWillLoad(){this.sectionsList=this.sections.split(",").map((n=>n.trim()));const n=new URL(`${this.endpoint}/${this.language}/footer-raw-data`);return n.searchParams.append("env",this.env),n.searchParams.append("device",this.platform),n.searchParams.append("userroles",this.userRoles),this.validateMandatoryFields(),fetch(n.href).then((n=>n.json())).then((n=>{this.footerContent=(n=>{const e={repeaters:{vendors:{categoryTitle:n.gameVendorsLinksTitle,content:[]},"link-section":{categoryTitle:n.helpLinksTitle,content:[]},helpLinks:{categoryTitle:n.helpLinksTitle,content:[]},licenses:{categoryTitle:n.licensesLinksTitle,content:[]},sponsors:{categoryTitle:n.sponsorsLinksTitle,content:[]},payment:{categoryTitle:n.paymentLinksTitle,content:[]},social:{categoryTitle:n.socialLinksTitle,content:[]},downloadApp:{categoryTitle:n.downloadAppLinksTitle,content:[]}},wysiwyg:{copyright:{categoryTitle:"test",content:"test"},download:{categoryTitle:"test",content:"test"},downloadApp:{categoryTitle:"test",content:"test"},"license-description":{categoryTitle:"test",content:"test"}}},t={helpLinks:{repeaterName:"helpLinksRepeater",isExternalLink:"helpLinkType",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},"link-section":{repeaterName:"helpLinksRepeater",isExternalLink:"helpLinkType",linkCategory:"helpLinkCategory",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},social:{repeaterName:"socialLinksRepeater",isExternalLink:"isExternalLink",image:"socialLinkImage",title:"socialLinkTitle",url:"socialLinkUrl",target:"target"},vendors:{repeaterName:"gameVendorsRepeater",isExternalLink:"isExternalLink",image:"gameVendorImage",title:"gameVendorTitle",url:"gameVendorUrl",target:"target"},licenses:{repeaterName:"licensesRepeater",isExternalLink:"isExternalLink",image:"licenseImage",title:"licenseTitle",url:"licenseUrl",target:"target"},payment:{repeaterName:"paymentMethodsRepeater",isExternalLink:"isExternalLink",image:"paymentMethodImage",title:"paymentTitle",url:"paymentUrl",target:"target"},sponsors:{repeaterName:"sponsorsRepeater",isExternalLink:"isExternalLink",image:"sponsorImage",title:"sponsorTitle",url:"sponsorUrl",target:"target"}};return Object.entries(e.repeaters).forEach((e=>{var o,i,r;t[e[0]]&&n[null===(o=t[e[0]])||void 0===o?void 0:o.repeaterName]&&(e[1].content=null===(r=n[null===(i=t[e[0]])||void 0===i?void 0:i.repeaterName])||void 0===r?void 0:r.map((n=>{var o,i,r,a,s,l;return{isExternalLink:null!==(o=n[t[e[0]].isExternalLink])&&void 0!==o?o:null,linkCategory:null!==(i=n[t[e[0]].linkCategory])&&void 0!==i?i:null,image:null!==(r=n[t[e[0]].image])&&void 0!==r?r:null,title:null!==(a=n[t[e[0]].title])&&void 0!==a?a:null,url:null!==(s=n[t[e[0]].url])&&void 0!==s?s:null,target:null!==(l=n[t[e[0]].target])&&void 0!==l?l:null}})))})),e.repeaters.downloadApp.content=n.downloadInfos.imageArea,e.wysiwyg.downloadApp.content=n.downloadInfos.downloadDescription,e.wysiwyg.copyright.content=n.copyright,e.wysiwyg["license-description"].content=n.licenseDesc,e})(n)}))}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}render(){const n=this.sectionsList.map(((n,o)=>{const i=t[n].component,r=this.footerContent.repeaters.hasOwnProperty(n),a=this.footerContent.wysiwyg.hasOwnProperty(n);return e(i,{class:`${n} FooterSectionContainer FooterSectionContainer${o+1}`,userid:this.userid,session:this.session,"base-url":this.baseUrl,language:this.language,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent,ruleset:t[n],repeaterContent:r?this.footerContent.repeaters[n]:null,customContent:a?this.footerContent.wysiwyg[n].content:null})}));return this.hasErrors?e("div",null,"There was an error while bootstraping the widget"):e("footer",{class:"FooterContainer",ref:n=>this.stylingContainer=n},e("div",{class:"FooterGrid customStyle"},n))}};o.style=':host {\n display: block;\n}\n\n/* $-background-primary: #14202d; */\n\n* {\n font-family: sans-serif;\n}\n\nhtml,\nbody {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\n.FooterSectionContainer {\n color: #fff;\n padding: 12px;\n}\n\n/* // FOOTER CONTAINER - only serves to be read as a container */\n.FooterContainer {\n container-type: inline-size;\n container-name: footerContainer;\n}\n\n\n.FooterGrid {\n background-color: #14202D;\n display: grid;\n padding: 8px 24px 0 24px;\n grid-template-rows: repeat(9, auto);\n grid-template-areas: "one"\n "two"\n "three"\n "four"\n "five"\n "six"\n "seven";\n}\n\n \n\n.FooterSectionContainer1 {\n position: relative;\n grid-area: one;\n \n}\n.FooterSectionContainer2 {\n position: relative;\n grid-area: two;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n}\n.FooterSectionContainer3 {\n position: relative;\n grid-area: three;\n \n}\n.FooterSectionContainer4 {\n position: relative;\n grid-area: four;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n}\n.FooterSectionContainer5 {\n grid-area: five;\n /* border-bottom: 1px solid #444; */\n}\n.FooterSectionContainer6 {\n padding-top: 22px;\n grid-area: six;\n}\n.FooterSectionContainer7 {\n grid-area: seven;\n}\n\n/* // remove paddings */\n.FooterSectionContainer7 div{\n padding: 0;\n}\n\n.FooterSectionContainer3:after {\n position: absolute;\n content: "";\n left: 30%;\n bottom: -20px;\n height: 1px;\n width: 40%;\n background-color: #444;\n}\n\n\n\n/* // STYLES FOR TABLET / DESKTOP */\n@container (min-width: 750px) {\n .FooterGrid {\n background: $-background-primary;\n display: grid;\n grid-template-rows: repeat(5, auto);\n grid-template-columns: 2fr 1fr;\n grid-template-areas: "one two"\n "three four"\n "five five"\n "six six"\n "seven seven";\n }\n \n \n .FooterSectionContainer1 {\n grid-area: one;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n }\n .FooterSectionContainer2 {\n grid-area: two;\n\n }\n .FooterSectionContainer3 {\n grid-area: three;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n }\n .FooterSectionContainer4 {\n grid-area: four;\n }\n .FooterSectionContainer5 {\n grid-area: five;\n }\n .FooterSectionContainer6 {\n grid-area: six;\n padding: 0;\n }\n .FooterSectionContainer7 {\n grid-area: seven;\n padding: 0;\n }\n\n /* VERTICAL BARS */\n .FooterSectionContainer3:after {\n position: absolute;\n content: "";\n left: initial;\n bottom:initial;\n top: 30%;\n right: 20px;\n width: 1px;\n height: 40%;\n background-color: #444;\n }\n\n /* // remove paddings */\n .FooterSectionContainer5 .CustomContentSectionWrapper {\n padding: 0;\n }\n\n .FooterSectionContainer5 .CustomContentSectionWrapper div {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .FooterSectionContainer5 .CustomContentSectionWrapper div p {\n margin: 5px;\n text-align: center;\n }\n\n .FooterSectionContainer6 .CustomContentSectionWrapper div p {\n text-align: center;\n }\n\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n }\n\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n /* padding-bottom: 22px; */\n /* font-size: 14px; */\n }\n\n .FooterSectionContainer7 .CustomContentSectionWrapper {\n padding: 0;\n padding-bottom: 22px;\n font-size: 14px;\n }\n}';export{o as general_footer_template}
@@ -1 +0,0 @@
1
- import{r as i,h as t}from"./p-76d9f15a.js";const e=class{constructor(t){i(this,t),this.navigateViaEvent=!1,this.postMessageEvent="",this.navigateLink=(i,t,e)=>{window.postMessage({type:this.postMessageEvent,url:i,target:t,externalLink:e},window.location.href)}}render(){return t("div",{class:"ImageListContainer"},t("div",{class:"ImageListWrapper"},t("div",{class:"ImageListSectionTitle"},this.repeaterContent.categoryTitle),t("div",{class:"ImageListLineup"},this.repeaterContent.content.map((i=>t("div",{class:"ImageListIcon"},!0===this.navigateViaEvent?t("div",{class:"ImageListIcon",style:{cursor:"pointer"},onClick:()=>this.navigateLink(i.url,i.target,i.isExternalLink)},t("img",{src:i.image,alt:""}),t("p",null,i.title)):t("a",{href:i.url||"javascript:void(0)",target:i.target||"_parent"},t("div",{class:"ImageListPositioner"},t("img",{src:i.image,alt:""})),t("p",null,i.title))))))))}};e.style=".sc-image-list-h{display:block;margin:0;padding:0}.ImageListContainer.sc-image-list{height:100%}.ImageListWrapper.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-direction:column;padding:20px 0;justify-content:center;align-items:center}.ImageListSectionTitle.sc-image-list{width:100%;display:flex;justify-content:center;align-content:center;padding-bottom:14px;color:#fff}.ImageListLineup.sc-image-list{box-sizing:border-box;height:100%;display:flex;flex-wrap:wrap;gap:30px;justify-content:center;align-items:center}.ImageListIcon.sc-image-list img.sc-image-list{width:auto;height:auto}a.sc-image-list{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-decoration:none}a.sc-image-list p.sc-image-list{text-decoration:none;color:#666;margin:0}";export{e as image_list}
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;