@undrr/undrr-mangrove 1.5.0 → 1.7.0

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 (94) hide show
  1. package/README.md +6 -4
  2. package/components/BarChart.js +2 -2
  3. package/components/BookCard.js +2 -2
  4. package/components/BookCard.js.LICENSE.txt +1 -1
  5. package/components/Breadcrumbs.js +1 -1
  6. package/components/Checkbox.js +1 -1
  7. package/components/Chips.js +1 -1
  8. package/components/CtaButton.js +1 -1
  9. package/components/EmbedContainer.js +1 -1
  10. package/components/Fetcher.js +2 -2
  11. package/components/Footer.js +2 -2
  12. package/components/FormErrorSummary.js +1 -1
  13. package/components/FormGroup.js +1 -1
  14. package/components/FullWidth.js +1 -1
  15. package/components/Gallery.js +1 -1
  16. package/components/Hero.js +2 -2
  17. package/components/HighlightBox.js +1 -1
  18. package/components/HorizontalBookCard.js +2 -2
  19. package/components/HorizontalBookCard.js.LICENSE.txt +1 -1
  20. package/components/HorizontalCard.js +2 -2
  21. package/components/HorizontalCard.js.LICENSE.txt +1 -1
  22. package/components/IconCard.js +2 -2
  23. package/components/IconCard.js.LICENSE.txt +1 -1
  24. package/components/Loader.js +1 -1
  25. package/components/MapComponent.js +2 -2
  26. package/components/MegaMenu.js +2 -2
  27. package/components/PageHeader.js +1 -1
  28. package/components/Pager.js +1 -1
  29. package/components/QuoteHighlight.js +1 -1
  30. package/components/Radio.js +1 -1
  31. package/components/ScrollContainer.js +2 -2
  32. package/components/Select.js +2 -2
  33. package/components/ShareButtons.js +2 -2
  34. package/components/ShowMore.js +2 -2
  35. package/components/StatsCard.js +2 -2
  36. package/components/SyndicationSearchWidget.js +2 -2
  37. package/components/Tab.js +1 -1
  38. package/components/TextCta.js +2 -2
  39. package/components/TextCta.js.LICENSE.txt +1 -1
  40. package/components/TextInput.js +1 -1
  41. package/components/Textarea.js +1 -1
  42. package/components/VerticalCard.js +2 -2
  43. package/components/VerticalCard.js.LICENSE.txt +1 -1
  44. package/components/hydrate.js +1 -1
  45. package/css/style-delta.css +19 -17
  46. package/css/style-delta.css.map +1 -1
  47. package/css/style-gutenberg.css +7 -5
  48. package/css/style-gutenberg.css.map +1 -1
  49. package/css/style-irp-legacy.css +19 -17
  50. package/css/style-irp-legacy.css.map +1 -1
  51. package/css/style-irp.css +19 -17
  52. package/css/style-irp.css.map +1 -1
  53. package/css/style-legacy.css +19 -17
  54. package/css/style-legacy.css.map +1 -1
  55. package/css/style-mcr-legacy.css +19 -17
  56. package/css/style-mcr-legacy.css.map +1 -1
  57. package/css/style-mcr.css +19 -17
  58. package/css/style-mcr.css.map +1 -1
  59. package/css/style-preventionweb-legacy.css +19 -17
  60. package/css/style-preventionweb-legacy.css.map +1 -1
  61. package/css/style-preventionweb.css +19 -17
  62. package/css/style-preventionweb.css.map +1 -1
  63. package/css/style.css +19 -17
  64. package/css/style.css.map +1 -1
  65. package/error-pages/401.html +1 -1
  66. package/error-pages/403.html +1 -1
  67. package/error-pages/404.html +1 -1
  68. package/error-pages/429.html +1 -1
  69. package/error-pages/500.html +1 -1
  70. package/error-pages/502.html +1 -1
  71. package/error-pages/503.html +1 -1
  72. package/error-pages/504.html +1 -1
  73. package/error-pages/5xx.html +1 -1
  74. package/error-pages/challenge.html +1 -1
  75. package/error-pages/managed-challenge.html +1 -1
  76. package/js/preview-access.js +302 -0
  77. package/package.json +1 -1
  78. package/scss/Atom/Tag/tag.scss +8 -0
  79. package/scss/Components/Buttons/CtaButton/cta-button.scss +1 -0
  80. package/scss/Components/Cards/Card/card.scss +12 -0
  81. package/scss/Components/Cards/StatsCard/stats-card.scss +16 -0
  82. package/scss/Components/Footer/footer.scss +8 -0
  83. package/scss/Components/Forms/_form-legacy.scss +0 -1
  84. package/scss/Components/Gallery/gallery.scss +8 -0
  85. package/scss/Components/Hero/hero.scss +180 -2
  86. package/scss/Components/HighlightBox/highlight-box.scss +7 -5
  87. package/scss/Components/MegaMenu/mega-menu.scss +42 -7
  88. package/scss/Components/OnThisPageNav/on-this-page-nav.scss +4 -4
  89. package/scss/Components/PreviewAccess/preview-access.scss +174 -0
  90. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +72 -82
  91. package/scss/Components/Tab/tab.scss +2 -2
  92. package/scss/assets/scss/_components.scss +1 -0
  93. package/scss/assets/scss/_foundational.scss +6 -1
  94. package/scss/assets/scss/_variables.scss +19 -11
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-04-10T06:58:26.685Z
3
+ * Compiled on: 2026-05-11T09:13:25.318Z
4
4
  */
5
5
  /*! For license information please see FormGroup.js.LICENSE.txt */
6
6
  import{useId as e}from"react";var r={2694(e,r,o){var n=o(6925);function t(){}function a(){}a.resetWarningCache=t,e.exports=function(){function e(e,r,o,t,a,s){if(s!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:t};return o.PropTypes=o,o}},5556(e,r,o){e.exports=o(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,r){var o=Symbol.for("react.transitional.element");function n(e,r,n){var t=null;if(void 0!==n&&(t=""+n),void 0!==r.key&&(t=""+r.key),"key"in r)for(var a in n={},r)"key"!==a&&(n[a]=r[a]);else n=r;return r=n.ref,{$$typeof:o,type:e,key:t,ref:void 0!==r?r:null,props:n}}Symbol.for("react.fragment"),r.jsx=n,r.jsxs=n},4848(e,r,o){e.exports=o(9698)}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var o in r)n.o(r,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var t=n(5556),a=n.n(t),s=n(4848);function i({children:r,legend:o,disabled:n=!1,error:t=!1,errorText:a,hideLegend:i=!1,className:l,...p}){const d=e(),c=t&&a?`${d}-error`:void 0,f=["mg-form-group",n&&"mg-form-group--disabled",t&&"mg-form-group--error",l].filter(Boolean).join(" "),u=["mg-form-group__legend",i&&"mg-u-sr-only"].filter(Boolean).join(" ");return(0,s.jsxs)("fieldset",{className:f,disabled:n,"aria-describedby":c,...p,children:[(0,s.jsx)("legend",{className:u,children:o}),r,t&&a&&(0,s.jsx)("p",{className:"mg-form-error",id:c,role:"alert",children:a})]})}i.propTypes={children:a().node.isRequired,legend:a().string.isRequired,disabled:a().bool,error:a().bool,errorText:a().string,hideLegend:a().bool,className:a().string};const l=i;export{i as FormGroup,l as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-04-10T06:58:26.685Z
3
+ * Compiled on: 2026-05-11T09:13:25.318Z
4
4
  */
5
5
  /*! For license information please see FullWidth.js.LICENSE.txt */
6
6
  import"react";var e={2694(e,r,t){var n=t(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,r,t,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:o};return t.PropTypes=t,t}},5556(e,r,t){e.exports=t(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,r){var t=Symbol.for("react.transitional.element");Symbol.for("react.fragment"),r.jsx=function(e,r,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==r.key&&(o=""+r.key),"key"in r)for(var a in n={},r)"key"!==a&&(n[a]=r[a]);else n=r;return r=n.ref,{$$typeof:t,type:e,key:o,ref:void 0!==r?r:null,props:n}}},4848(e,r,t){e.exports=t(9698)}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var a=r[n]={exports:{}};return e[n](a,a.exports,t),a.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var n=t(5556),o=t.n(n),a=t(4848);function i({children:e,className:r=""}){const t=["mg-container-full-width",r].filter(Boolean).join(" ");return(0,a.jsx)("section",{className:t,children:e})}i.propTypes={children:o().node,className:o().string};const s=i;export{i as FullWidth,s as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-04-10T06:58:26.685Z
3
+ * Compiled on: 2026-05-11T09:13:25.318Z
4
4
  */
5
5
  /*! For license information please see Gallery.js.LICENSE.txt */
6
6
  import{default as e,useCallback as r,useEffect as a,useRef as t,useState as l}from"react";var n={2694(e,r,a){var t=a(6925);function l(){}function n(){}n.resetWarningCache=l,e.exports=function(){function e(e,r,a,l,n,i){if(i!==t){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function r(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:l};return a.PropTypes=a,a}},5556(e,r,a){e.exports=a(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,r){var a=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function l(e,r,t){var l=null;if(void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),"key"in r)for(var n in t={},r)"key"!==n&&(t[n]=r[n]);else t=r;return r=t.ref,{$$typeof:a,type:e,key:l,ref:void 0!==r?r:null,props:t}}r.Fragment=t,r.jsx=l,r.jsxs=l},4848(e,r,a){e.exports=a(9698)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var a=i[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var a in r)o.o(r,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var s=o(5556),c=o.n(s),m=o(4848);const d=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function g({media:e,initialIndex:n=0,showThumbnails:i=!0,thumbnailPosition:o="left",showArrows:s=!0,arrowStyle:c="overlay",showDescription:g=!0,enableKeyboard:u=!0,loop:p=!1,onMediaChange:y}){const[h,b]=l(n),[_,f]=l(!1),v=t(null),x=t(null),w=t(null),j=t([]),N=t(null),k=t(null),T=e[h];a(()=>{"video"===T.type||"embed"===T.type?f(!0):f(!1)},[h,T.type]);const O=r(r=>{b(r),y&&y(r,e[r]),j.current[r]&&j.current[r].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[e,y]),S=r(()=>{h<e.length-1?O(h+1):p&&O(0)},[h,e.length,O,p]),I=r(()=>{h>0?O(h-1):p&&O(e.length-1)},[h,O,p,e.length]),P=r(r=>{if(u)switch(r.key){case"ArrowLeft":r.preventDefault(),I();break;case"ArrowRight":r.preventDefault(),S();break;case"Home":r.preventDefault(),O(0);break;case"End":r.preventDefault(),O(e.length-1)}},[u,S,I,O,e.length]),C=d("mg-gallery","bottom"===o&&"mg-gallery--thumbnails-bottom");return(0,m.jsxs)("div",{ref:v,className:C,role:"region","aria-label":"Gallery",tabIndex:u?0:void 0,onKeyDown:P,children:[(0,m.jsxs)("div",{className:"mg-gallery__main",role:"group",children:[(0,m.jsxs)("div",{className:"mg-gallery__image-wrapper",onTouchStart:e=>{N.current=e.touches[0].clientX,k.current=null},onTouchMove:e=>{k.current=e.touches[0].clientX},onTouchEnd:()=>{if(!N.current||!k.current)return;const e=N.current-k.current;Math.abs(e)>50&&(e>0?S():I()),N.current=null,k.current=null},children:[(!T.type||"image"===T.type)&&(0,m.jsx)("img",{ref:x,src:T.src,alt:T.alt,className:"mg-gallery__image","aria-describedby":g&&T.description?"gallery-description":void 0}),"video"===T.type&&(0,m.jsxs)("video",{ref:x,src:T.src,className:"mg-gallery__image mg-gallery__video",controls:!0,poster:T.poster,onLoadedData:()=>f(!1),onLoadStart:()=>f(!0),"aria-describedby":g&&T.description?"gallery-description":void 0,children:[(0,m.jsx)("track",{kind:"captions"}),"Your browser does not support the video tag."]}),"embed"===T.type&&(0,m.jsx)("iframe",{ref:x,src:T.embedUrl||T.src,className:"mg-gallery__image mg-gallery__embed",title:T.title||T.alt,allowFullScreen:!0,onLoad:()=>f(!1),"aria-describedby":g&&T.description?"gallery-description":void 0}),"html"===T.type&&(0,m.jsx)("div",{ref:x,className:"mg-gallery__image mg-gallery__html",dangerouslySetInnerHTML:{__html:T.html},"aria-describedby":g&&T.description?"gallery-description":void 0}),_&&(0,m.jsx)("div",{className:"mg-gallery__loading","aria-live":"polite","aria-label":"Loading media",children:(0,m.jsx)("div",{className:"mg-gallery__spinner"})})]}),s&&"overlay"===c&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("button",{className:"mg-gallery__arrow mg-gallery__arrow--prev",onClick:I,disabled:!p&&0===h,"aria-label":"Previous item",type:"button",children:"‹"}),(0,m.jsx)("button",{className:"mg-gallery__arrow mg-gallery__arrow--next",onClick:S,disabled:!p&&h===e.length-1,"aria-label":"Next item",type:"button",children:"›"})]}),s&&"corner"===c&&(0,m.jsxs)("div",{className:"mg-gallery__arrow-controls",children:[(0,m.jsx)("button",{className:"mg-gallery__arrow-button mg-gallery__arrow-button--prev",onClick:I,disabled:!p&&0===h,"aria-label":"Previous item",type:"button",children:"‹"}),(0,m.jsx)("button",{className:"mg-gallery__arrow-button mg-gallery__arrow-button--next",onClick:S,disabled:!p&&h===e.length-1,"aria-label":"Next item",type:"button",children:"›"})]})]}),g&&(T.title||T.description)&&(0,m.jsxs)("div",{className:"mg-gallery__description",id:"gallery-description",children:[T.title&&(0,m.jsx)("div",{className:"mg-gallery__title",children:T.title}),T.description&&(0,m.jsx)("p",{className:"mg-gallery__caption",children:T.description})]}),i&&(0,m.jsx)("div",{ref:w,className:"mg-gallery__thumbnails",role:"tablist","aria-label":"Gallery thumbnails",children:e.map((e,r)=>(0,m.jsxs)("button",{ref:e=>j.current[r]=e,className:d("mg-gallery__thumbnail",r===h&&"mg-gallery__thumbnail--active","html"===e.type&&!e.thumbnail&&"mg-gallery__thumbnail--html"),onClick:()=>O(r),role:"tab","aria-selected":r===h,"aria-current":r===h?"true":void 0,"aria-label":`View ${e.title||e.alt||"content"}`,type:"button",children:["html"===e.type&&!e.thumbnail&&e.html?(0,m.jsx)("div",{className:"mg-gallery__thumbnail-html-preview","aria-hidden":"true",children:(0,m.jsx)("div",{className:"mg-gallery__thumbnail-html-content",dangerouslySetInnerHTML:{__html:e.html}})}):e.thumbnail||e.src?(0,m.jsx)("img",{src:e.thumbnail||e.src,alt:"",loading:"lazy"}):(0,m.jsx)("span",{className:"mg-gallery__thumbnail-placeholder","aria-hidden":"true",children:"◫"}),("video"===e.type||"embed"===e.type)&&(0,m.jsx)("span",{className:"mg-gallery__thumbnail-indicator","aria-hidden":"true",children:"▶"})]},e.id))})]})}g.propTypes={media:c().arrayOf(c().shape({id:c().string.isRequired,type:c().oneOf(["image","video","embed","html"]),src:c().string,alt:c().string,title:c().string,description:c().string,thumbnail:c().string,poster:c().string,embedUrl:c().string,html:c().string})).isRequired,initialIndex:c().number,showThumbnails:c().bool,thumbnailPosition:c().oneOf(["left","bottom"]),showArrows:c().bool,arrowStyle:c().oneOf(["overlay","corner"]),showDescription:c().bool,enableKeyboard:c().bool,loop:c().bool,onMediaChange:c().func};const u=e.memo(g);function p(e){const{dataset:r}=e,a={initialIndex:r.initialIndex?parseInt(r.initialIndex,10):0,showThumbnails:"false"!==r.showThumbnails,thumbnailPosition:r.thumbnailPosition||"left",showArrows:"false"!==r.showArrows,arrowStyle:r.arrowStyle||"overlay",showDescription:"false"!==r.showDescription,enableKeyboard:"false"!==r.enableKeyboard,loop:"true"===r.loop};try{a.media=r.media?JSON.parse(r.media):[]}catch{a.media=[]}return a}export{u as Gallery,u as default,p as fromElement};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-04-10T06:58:26.685Z
3
+ * Compiled on: 2026-05-11T09:13:25.318Z
4
4
  */
5
5
  /*! For license information please see Hero.js.LICENSE.txt */
6
- import*as e from"react";var r={6145(e,r,a){a.d(r,{F:()=>o}),a(1649);var t=a(5556),n=a.n(t),s=a(4848);function o({label:e,Type:r="Primary",State:a="Default",...t}){const n="Disabled"===a,o=["mg-button","mg-button-"+("Secondary"===r?"secondary":"primary"),n&&"disabled"].filter(Boolean).join(" ");return(0,s.jsx)("a",{className:o,...n?{"aria-disabled":"true"}:{href:"#"},...t,children:e})}o.propTypes={label:n().string.isRequired,Type:n().oneOf(["Primary","Secondary"]),State:n().oneOf(["Default","Disabled"])}},2694(e,r,a){var t=a(6925);function n(){}function s(){}s.resetWarningCache=n,e.exports=function(){function e(e,r,a,n,s,o){if(o!==t){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:s,resetWarningCache:n};return a.PropTypes=a,a}},5556(e,r,a){e.exports=a(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,r){var a=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(e,r,t){var n=null;if(void 0!==t&&(n=""+t),void 0!==r.key&&(n=""+r.key),"key"in r)for(var s in t={},r)"key"!==s&&(t[s]=r[s]);else t=r;return r=t.ref,{$$typeof:a,type:e,key:n,ref:void 0!==r?r:null,props:t}}r.Fragment=t,r.jsx=n,r.jsxs=n},4848(e,r,a){e.exports=a(9698)},1649(e,r,a){var t;e.exports=(t={},a.d(t,{}),t)}},a={};function t(e){var n=a[e];if(void 0!==n)return n.exports;var s=a[e]={exports:{}};return r[e](s,s.exports,t),s.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var n={};t.d(n,{M:()=>m,l:()=>d}),t(1649);var s=t(5556),o=t.n(s),i=t(6145),l=t(4848);const c=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null,m={primary:"",secondary:"secondary",tertiary:"tertiary",quaternary:"quaternary"};function d({data:e,variant:r="primary"}){let a=m[`${r}`];return(0,l.jsx)(l.Fragment,{children:e.map((e,r)=>(0,l.jsx)("section",{className:c("mg-hero",`mg-hero--${a}`),style:{backgroundImage:`url(${e.imgback})`},children:(0,l.jsx)("div",{className:"mg-hero__overlay",children:(0,l.jsxs)("article",{className:"mg-hero__content",children:[(0,l.jsx)("div",{className:"mg-hero__meta",children:e.label&&(0,l.jsx)("span",{className:"mg-hero__label",children:e.label})}),(0,l.jsx)("header",{className:"mg-hero__title",children:e.link?(0,l.jsx)("a",{href:e.link,className:"text-xxl",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})}):(0,l.jsx)("h1",{className:"text-xxl",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})})}),(0,l.jsx)("div",{className:"mg-hero__summaryText",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.summaryText}})}),(0,l.jsx)("div",{className:"mg-hero__meta meta-detail",children:e.detail&&(0,l.jsx)("span",{className:"mg-hero__label detail",children:e.detail})}),(0,l.jsxs)("div",{className:"mg-hero__buttons",children:[e.primary_button&&(0,l.jsx)(i.F,{Type:"Primary",label:e.primary_button}),e.secondary_button&&(0,l.jsx)(i.F,{Type:"Secondary",label:e.secondary_button})]})]})})},r))})}d.propTypes={data:o().arrayOf(o().shape({imgback:o().string,label:o().string,title:o().string.isRequired,link:o().string,summaryText:o().string,detail:o().string,primary_button:o().string,secondary_button:o().string})).isRequired,variant:o().oneOf(["primary","secondary","tertiary","quaternary"])};const y=n.l,p=n.M;export{y as Hero,p as variantOptions};
6
+ import*as e from"react";var r={6145(e,r,a){a.d(r,{F:()=>s}),a(1649);var t=a(5556),n=a.n(t),i=a(4848);function s({label:e,Type:r="Primary",State:a="Default",...t}){const n="Disabled"===a,s=["mg-button","mg-button-"+("Secondary"===r?"secondary":"primary"),n&&"disabled"].filter(Boolean).join(" ");return(0,i.jsx)("a",{className:s,...n?{"aria-disabled":"true"}:{href:"#"},...t,children:e})}s.propTypes={label:n().string.isRequired,Type:n().oneOf(["Primary","Secondary"]),State:n().oneOf(["Default","Disabled"])}},2694(e,r,a){var t=a(6925);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,r,a,n,i,s){if(s!==t){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function r(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:n};return a.PropTypes=a,a}},5556(e,r,a){e.exports=a(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,r){var a=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(e,r,t){var n=null;if(void 0!==t&&(n=""+t),void 0!==r.key&&(n=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:a,type:e,key:n,ref:void 0!==r?r:null,props:t}}r.Fragment=t,r.jsx=n,r.jsxs=n},4848(e,r,a){e.exports=a(9698)},1649(e,r,a){var t;e.exports=(t={},a.d(t,{}),t)}},a={};function t(e){var n=a[e];if(void 0!==n)return n.exports;var i=a[e]={exports:{}};return r[e](i,i.exports,t),i.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var n={};t.d(n,{M:()=>c,l:()=>h}),t(1649);var i=t(5556),s=t.n(i),o=t(6145),l=t(4848);const m=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null,c={primary:"",secondary:"secondary",tertiary:"tertiary",quaternary:"quaternary"},d={"2/3":"2-3","1/2":"1-2","1/3":"1-3"};function p({item:e,HeadingTag:r}){return(0,l.jsx)("header",{className:"mg-hero__title",children:(0,l.jsx)(r,{className:"text-xxl",children:e.link?(0,l.jsx)("a",{href:e.link,children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})}):(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})})})}function g({media:e}){if(!e)return null;const r=e.type||"image";return"video"===r?(0,l.jsx)("div",{className:"mg-hero__media mg-hero__media--video",children:(0,l.jsx)("iframe",{src:e.src,title:e.title||"Embedded video",className:"mg-hero__media-iframe",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})}):"html"===r?(0,l.jsx)("div",{className:"mg-hero__media mg-hero__media--html",dangerouslySetInnerHTML:{__html:e.html||""}}):(0,l.jsx)("div",{className:"mg-hero__media",children:(0,l.jsx)("img",{src:e.src,alt:e.alt||"",className:"mg-hero__media-img"})})}function y({item:e,HeadingTag:r}){return(0,l.jsxs)("article",{className:"mg-hero__content",children:[(0,l.jsx)("div",{className:"mg-hero__meta",children:e.label&&(0,l.jsx)("span",{className:"mg-hero__label",children:e.label})}),(0,l.jsx)(p,{item:e,HeadingTag:r}),(0,l.jsx)("div",{className:"mg-hero__summaryText",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.summaryText}})}),(0,l.jsx)("div",{className:"mg-hero__meta meta-detail",children:e.detail&&(0,l.jsx)("span",{className:"mg-hero__label detail",children:e.detail})}),(0,l.jsxs)("div",{className:"mg-hero__buttons",children:[e.primary_button&&(0,l.jsx)(o.F,{Type:"Primary",label:e.primary_button}),e.secondary_button&&(0,l.jsx)(o.F,{Type:"Secondary",label:e.secondary_button})]})]})}function h({data:e,variant:r="primary",layout:a="background",headingLevel:t="h1",split:n="2/3"}){const i=c[r],s=t;if("split"===a){const r=d[n]||"2-3";return(0,l.jsx)(l.Fragment,{children:e.map((e,a)=>(0,l.jsx)("section",{className:m("mg-hero","mg-hero--split",`mg-hero--split-${r}`,i&&`mg-hero--${i}`),children:(0,l.jsxs)("div",{className:"mg-hero__split-grid",children:[(0,l.jsx)(y,{item:e,HeadingTag:s}),(0,l.jsx)(g,{media:e.media})]})},a))})}return(0,l.jsx)(l.Fragment,{children:e.map((e,r)=>(0,l.jsx)("section",{className:m("mg-hero",`mg-hero--${i}`),style:{backgroundImage:`url(${e.imgback})`},children:(0,l.jsx)("div",{className:"mg-hero__overlay",children:(0,l.jsx)(y,{item:e,HeadingTag:s})})},r))})}h.propTypes={data:s().arrayOf(s().shape({imgback:s().string,label:s().string,title:s().string.isRequired,link:s().string,summaryText:s().string,detail:s().string,primary_button:s().string,secondary_button:s().string,media:s().shape({type:s().oneOf(["image","video","html"]),src:s().string,alt:s().string,title:s().string,html:s().string})})).isRequired,variant:s().oneOf(["primary","secondary","tertiary","quaternary"]),layout:s().oneOf(["background","split"]),headingLevel:s().oneOf(["h1","h2","h3"]),split:s().oneOf(["2/3","1/2","1/3"])};const u=n.l,_=n.M;export{u as Hero,_ as variantOptions};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-04-10T06:58:26.685Z
3
+ * Compiled on: 2026-05-11T09:13:25.318Z
4
4
  */
5
5
  /*! For license information please see HighlightBox.js.LICENSE.txt */
6
6
  import"react";var e={2694(e,r,t){var o=t(6925);function n(){}function a(){}a.resetWarningCache=n,e.exports=function(){function e(e,r,t,n,a,i){if(i!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function r(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:n};return t.PropTypes=t,t}},5556(e,r,t){e.exports=t(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,r){var t=Symbol.for("react.transitional.element");Symbol.for("react.fragment"),r.jsx=function(e,r,o){var n=null;if(void 0!==o&&(n=""+o),void 0!==r.key&&(n=""+r.key),"key"in r)for(var a in o={},r)"key"!==a&&(o[a]=r[a]);else o=r;return r=o.ref,{$$typeof:t,type:e,key:n,ref:void 0!==r?r:null,props:o}}},4848(e,r,t){e.exports=t(9698)}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var a=r[o]={exports:{}};return e[o](a,a.exports,t),a.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var o=t(5556),n=t.n(o),a=t(4848);function i({children:e,variant:r="default",centered:t=!1,float:o=null,className:n=""}){const i=["mg-highlight-box","default"!==r&&`mg-highlight-box--${r}`,t&&"mg-highlight-box--centered",o&&`mg-highlight-box--float-${o}`,n].filter(Boolean).join(" ");return(0,a.jsx)("div",{className:i,children:e})}i.propTypes={children:n().node,variant:n().oneOf(["default","primary","secondary"]),centered:n().bool,float:n().oneOf(["start","end"]),className:n().string};const l=i;export{i as HighlightBox,l as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-04-10T06:58:26.685Z
3
+ * Compiled on: 2026-05-11T09:13:25.318Z
4
4
  */
5
5
  /*! For license information please see HorizontalBookCard.js.LICENSE.txt */
6
- import*as e from"react";var t={6145(e,t,n){n.d(t,{F:()=>i}),n(1649);var r=n(5556),o=n.n(r),a=n(4848);function i({label:e,Type:t="Primary",State:n="Default",...r}){const o="Disabled"===n,i=["mg-button","mg-button-"+("Secondary"===t?"secondary":"primary"),o&&"disabled"].filter(Boolean).join(" ");return(0,a.jsx)("a",{className:i,...o?{"aria-disabled":"true"}:{href:"#"},...r,children:e})}i.propTypes={label:o().string.isRequired,Type:o().oneOf(["Primary","Secondary"]),State:o().oneOf(["Default","Disabled"])}},2694(e,t,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},4848(e,t,n){e.exports=n(9698)},1649(e,t,n){var r;e.exports=(r={},n.d(r,{}),r)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r(1649);var o=r(5556),a=r.n(o);const{entries:i,setPrototypeOf:l,isFrozen:c,getPrototypeOf:s,getOwnPropertyDescriptor:u}=Object;let{freeze:m,seal:p,create:f}=Object,{apply:d,construct:h}="undefined"!=typeof Reflect&&Reflect;m||(m=function(e){return e}),p||(p=function(e){return e}),d||(d=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),h||(h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const g=w(Array.prototype.forEach),y=w(Array.prototype.lastIndexOf),T=w(Array.prototype.pop),_=w(Array.prototype.push),b=w(Array.prototype.splice),E=w(String.prototype.toLowerCase),A=w(String.prototype.toString),S=w(String.prototype.match),N=w(String.prototype.replace),v=w(String.prototype.indexOf),x=w(String.prototype.trim),D=w(Object.prototype.hasOwnProperty),R=w(RegExp.prototype.test),O=(k=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(k,t)});var k;function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return d(e,t,r)}}function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;l&&l(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(c(t)||(t[r]=e),o=e)}e[o]=!0}return e}function L(e){for(let t=0;t<e.length;t++)D(e,t)||(e[t]=null);return e}function I(e){const t=f(null);for(const[n,r]of i(e))D(e,n)&&(Array.isArray(r)?t[n]=L(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=I(r):t[n]=r);return t}function M(e,t){for(;null!==e;){const n=u(e,t);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}e=s(e)}return function(){return null}}const P=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=m(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=m(["#text"]),W=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),G=m(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Y=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=p(/<%[\w\W]*|[\w\W]*%>/gm),K=p(/\$\{[\w\W]*/gm),V=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),Z=p(/^aria-[\-\w]+$/),J=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=p(/^(?:\w+script|data):/i),ee=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),te=p(/^html$/i),ne=p(/^[a-z][.\w]*(-[.\w]+)+$/i);var re=Object.freeze({__proto__:null,ARIA_ATTR:Z,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:ne,DATA_ATTR:V,DOCTYPE_NAME:te,ERB_EXPR:$,IS_ALLOWED_URI:J,IS_SCRIPT_OR_DATA:Q,MUSTACHE_EXPR:X,TMPLIT_EXPR:K});const oe=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:s,Element:u,NodeFilter:p,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:k,trustedTypes:w}=t,L=u.prototype,X=M(L,"cloneNode"),$=M(L,"remove"),K=M(L,"nextSibling"),V=M(L,"childNodes"),Z=M(L,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Q,ee="";const{implementation:ne,createNodeIterator:ae,createDocumentFragment:ie,getElementsByTagName:le}=r,{importNode:ce}=o;let se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof Z&&ne&&void 0!==ne.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:me,TMPLIT_EXPR:pe,DATA_ATTR:fe,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ye}=re;let{IS_ALLOWED_URI:Te}=re,_e=null;const be=C({},[...P,...U,...z,...H,...B]);let Ee=null;const Ae=C({},[...W,...G,...Y,...q]);let Se=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,ve=null;const xe=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let De=!0,Re=!0,Oe=!1,ke=!0,we=!1,Ce=!0,Le=!1,Ie=!1,Me=!1,Pe=!1,Ue=!1,ze=!1,Fe=!0,He=!1,je=!0,Be=!1,We={},Ge=null;const Ye=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const Xe=C({},["audio","video","img","source","image","track"]);let $e=null;const Ke=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Qe=Je,et=!1,tt=null;const nt=C({},[Ve,Ze,Je],A);let rt=C({},["mi","mo","mn","ms","mtext"]),ot=C({},["annotation-xml"]);const at=C({},["title","style","font","a","script"]);let it=null;const lt=["application/xhtml+xml","text/html"];let ct=null,st=null;const ut=r.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=I(e),it=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ct="application/xhtml+xml"===it?A:E,_e=D(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,ct):be,Ee=D(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,ct):Ae,tt=D(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,A):nt,$e=D(e,"ADD_URI_SAFE_ATTR")?C(I(Ke),e.ADD_URI_SAFE_ATTR,ct):Ke,qe=D(e,"ADD_DATA_URI_TAGS")?C(I(Xe),e.ADD_DATA_URI_TAGS,ct):Xe,Ge=D(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,ct):Ye,Ne=D(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,ct):I({}),ve=D(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,ct):I({}),We=!!D(e,"USE_PROFILES")&&e.USE_PROFILES,De=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,we=e.SAFE_FOR_TEMPLATES||!1,Ce=!1!==e.SAFE_FOR_XML,Le=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||J,Qe=e.NAMESPACE||Je,rt=e.MATHML_TEXT_INTEGRATION_POINTS||rt,ot=e.HTML_INTEGRATION_POINTS||ot,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(Re=!1),Ue&&(Pe=!0),We&&(_e=C({},B),Ee=f(null),!0===We.html&&(C(_e,P),C(Ee,W)),!0===We.svg&&(C(_e,U),C(Ee,G),C(Ee,q)),!0===We.svgFilters&&(C(_e,z),C(Ee,G),C(Ee,q)),!0===We.mathMl&&(C(_e,H),C(Ee,Y),C(Ee,q))),D(e,"ADD_TAGS")||(xe.tagCheck=null),D(e,"ADD_ATTR")||(xe.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?xe.tagCheck=e.ADD_TAGS:(_e===be&&(_e=I(_e)),C(_e,e.ADD_TAGS,ct))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?xe.attributeCheck=e.ADD_ATTR:(Ee===Ae&&(Ee=I(Ee)),C(Ee,e.ADD_ATTR,ct))),e.ADD_URI_SAFE_ATTR&&C($e,e.ADD_URI_SAFE_ATTR,ct),e.FORBID_CONTENTS&&(Ge===Ye&&(Ge=I(Ge)),C(Ge,e.FORBID_CONTENTS,ct)),e.ADD_FORBID_CONTENTS&&(Ge===Ye&&(Ge=I(Ge)),C(Ge,e.ADD_FORBID_CONTENTS,ct)),je&&(_e["#text"]=!0),Le&&C(_e,["html","head","body"]),_e.table&&(C(_e,["tbody"]),delete Ne.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,ee=Q.createHTML("")}else void 0===Q&&(Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(w,a)),null!==Q&&"string"==typeof ee&&(ee=Q.createHTML(""));m&&m(e),st=e}},ft=C({},[...U,...z,...F]),dt=C({},[...H,...j]),ht=function(e){_(n.removed,{element:e});try{Z(e).removeChild(e)}catch(t){$(e)}},gt=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Pe||Ue)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=S(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&Qe===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Q?Q.createHTML(e):e;if(Qe===Je)try{t=(new k).parseFromString(o,it)}catch(e){}if(!t||!t.documentElement){t=ne.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?ee:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Qe===Je?le.call(t,Le?"html":"body")[0]:Le?t.documentElement:a},Tt=function(e){return ae.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},_t=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof s&&e instanceof s};function Et(e,t,r){g(e,e=>{e.call(n,t,r,st)})}const At=function(e){let t=null;if(Et(se.beforeSanitizeElements,e,null),_t(e))return ht(e),!0;const r=ct(e.nodeName);if(Et(se.uponSanitizeElement,e,{tagName:r,allowedTags:_e}),Ce&&e.hasChildNodes()&&!bt(e.firstElementChild)&&R(/<[/\w!]/g,e.innerHTML)&&R(/<[/\w!]/g,e.textContent))return ht(e),!0;if(7===e.nodeType)return ht(e),!0;if(Ce&&8===e.nodeType&&R(/<[/\w]/g,e.data))return ht(e),!0;if(!(xe.tagCheck instanceof Function&&xe.tagCheck(r))&&(!_e[r]||Ne[r])){if(!Ne[r]&&Nt(r)){if(Se.tagNameCheck instanceof RegExp&&R(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(je&&!Ge[r]){const t=Z(e)||e.parentNode,n=V(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=X(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,K(e))}}return ht(e),!0}return e instanceof u&&!function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=E(e.tagName),r=E(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===r||rt[r]):Boolean(ft[n]):e.namespaceURI===Ve?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ze?"math"===n&&ot[r]:Boolean(dt[n]):e.namespaceURI===Je?!(t.namespaceURI===Ze&&!ot[r])&&!(t.namespaceURI===Ve&&!rt[r])&&!dt[n]&&(at[n]||!ft[n]):!("application/xhtml+xml"!==it||!tt[e.namespaceURI]))}(e)?(ht(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!R(/<\/no(script|embed|frames)/i,e.innerHTML)?(we&&3===e.nodeType&&(t=e.textContent,g([ue,me,pe],e=>{t=N(t,e," ")}),e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)),Et(se.afterSanitizeElements,e,null),!1):(ht(e),!0)},St=function(e,t,n){if(ve[t])return!1;if(Fe&&("id"===t||"name"===t)&&(n in r||n in ut))return!1;if(Re&&!ve[t]&&R(fe,t));else if(De&&R(de,t));else if(xe.attributeCheck instanceof Function&&xe.attributeCheck(t,e));else if(!Ee[t]||ve[t]){if(!(Nt(e)&&(Se.tagNameCheck instanceof RegExp&&R(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&R(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t,e))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&R(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if($e[t]);else if(R(Te,N(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!qe[e])if(Oe&&!R(he,N(n,ge,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&S(e,ye)},vt=function(e){Et(se.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||_t(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:l,value:c}=a,s=ct(i),u=c;let m="value"===i?u:x(u);if(r.attrName=s,r.attrValue=m,r.keepAttr=!0,r.forceKeepAttr=void 0,Et(se.uponSanitizeAttribute,e,r),m=r.attrValue,!He||"id"!==s&&"name"!==s||(gt(i,e),m="user-content-"+m),Ce&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){gt(i,e);continue}if("attributename"===s&&S(m,"href")){gt(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){gt(i,e);continue}if(!ke&&R(/\/>/i,m)){gt(i,e);continue}we&&g([ue,me,pe],e=>{m=N(m,e," ")});const p=ct(e.nodeName);if(St(p,s,m)){if(Q&&"object"==typeof w&&"function"==typeof w.getAttributeType)if(l);else switch(w.getAttributeType(p,s)){case"TrustedHTML":m=Q.createHTML(m);break;case"TrustedScriptURL":m=Q.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,i,m):e.setAttribute(i,m),_t(e)?ht(e):T(n.removed)}catch(t){gt(i,e)}}else gt(i,e)}Et(se.afterSanitizeAttributes,e,null)},xt=function e(t){let n=null;const r=Tt(t);for(Et(se.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Et(se.uponSanitizeShadowNode,n,null),At(n),vt(n),n.content instanceof l&&e(n.content);Et(se.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,c=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw O("toString is not a function");if("string"!=typeof(e=e.toString()))throw O("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ie||pt(t),n.removed=[],"string"==typeof e&&(Be=!1),Be){if(e.nodeName){const t=ct(e.nodeName);if(!_e[t]||Ne[t])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)r=yt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Pe&&!we&&!Le&&-1===e.indexOf("<"))return Q&&ze?Q.createHTML(e):e;if(r=yt(e),!r)return Pe?null:ze?ee:""}r&&Me&&ht(r.firstChild);const u=Tt(Be?e:r);for(;i=u.nextNode();)At(i),vt(i),i.content instanceof l&&xt(i.content);if(Be)return e;if(Pe){if(Ue)for(c=ie.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Ee.shadowroot||Ee.shadowrootmode)&&(c=ce.call(o,c,!0)),c}let m=Le?r.outerHTML:r.innerHTML;return Le&&_e["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&R(te,r.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+m),we&&g([ue,me,pe],e=>{m=N(m,e," ")}),Q&&ze?Q.createHTML(m):m},n.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ie=!0},n.clearConfig=function(){st=null,Ie=!1},n.isValidAttribute=function(e,t,n){st||pt({});const r=ct(e),o=ct(t);return St(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&_(se[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=y(se[e],t);return-1===n?void 0:b(se[e],n,1)[0]}return T(se[e])},n.removeHooks=function(e){se[e]=[]},n.removeAllHooks=function(){se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),ie=r(6145),le=r(4848);const ce=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function se({data:e,variant:t="primary",className:n}){const r=t&&"primary"!==t?`mg-card--${t}`:null;return(0,le.jsx)(le.Fragment,{children:e.map((e,t)=>(0,le.jsxs)("article",{className:ce("mg-card","mg-card__hc","mg-card-book__hc",r,n),children:[e.imgback&&(0,le.jsx)("div",{className:"mg-card__visual",children:(0,le.jsx)("img",{src:e.imgback,alt:e.imgalt,className:"mg-card__image"})}),(0,le.jsxs)("div",{className:"mg-card__content",children:[e.label1&&(0,le.jsxs)("div",{className:"mg-card__meta",children:[(0,le.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label1}),(0,le.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label2})]}),(0,le.jsx)("header",{className:"mg-card__title",children:(0,le.jsx)("a",{href:e.link,children:e.title?.trim()})}),(0,le.jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:ae.sanitize(e.summaryText)}}),e.link&&(0,le.jsx)(ie.F,{type:"Primary",label:e.button,href:e.link})]})]},t))})}se.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{se as HorizontalBookCard};
6
+ import*as e from"react";var t={6145(e,t,n){n.d(t,{F:()=>i}),n(1649);var r=n(5556),o=n.n(r),a=n(4848);function i({label:e,Type:t="Primary",State:n="Default",...r}){const o="Disabled"===n,i=["mg-button","mg-button-"+("Secondary"===t?"secondary":"primary"),o&&"disabled"].filter(Boolean).join(" ");return(0,a.jsx)("a",{className:i,...o?{"aria-disabled":"true"}:{href:"#"},...r,children:e})}i.propTypes={label:o().string.isRequired,Type:o().oneOf(["Primary","Secondary"]),State:o().oneOf(["Default","Disabled"])}},2694(e,t,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},4848(e,t,n){e.exports=n(9698)},1649(e,t,n){var r;e.exports=(r={},n.d(r,{}),r)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r(1649);var o=r(5556),a=r.n(o);const{entries:i,setPrototypeOf:l,isFrozen:c,getPrototypeOf:s,getOwnPropertyDescriptor:u}=Object;let{freeze:m,seal:p,create:f}=Object,{apply:d,construct:h}="undefined"!=typeof Reflect&&Reflect;m||(m=function(e){return e}),p||(p=function(e){return e}),d||(d=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),h||(h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const g=F(Array.prototype.forEach),T=F(Array.prototype.lastIndexOf),y=F(Array.prototype.pop),_=F(Array.prototype.push),b=F(Array.prototype.splice),A=Array.isArray,E=F(String.prototype.toLowerCase),S=F(String.prototype.toString),N=F(String.prototype.match),R=F(String.prototype.replace),O=F(String.prototype.indexOf),D=F(String.prototype.trim),v=F(Number.prototype.toString),x=F(Boolean.prototype.toString),I="undefined"==typeof BigInt?null:F(BigInt.prototype.toString),k="undefined"==typeof Symbol?null:F(Symbol.prototype.toString),w=F(Object.prototype.hasOwnProperty),C=F(Object.prototype.toString),L=F(RegExp.prototype.test),M=(P=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(P,t)});var P;function F(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return d(e,t,r)}}function U(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;if(l&&l(e,null),!A(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(c(t)||(t[r]=e),o=e)}e[o]=!0}return e}function z(e){for(let t=0;t<e.length;t++)w(e,t)||(e[t]=null);return e}function H(e){const t=f(null);for(const[n,r]of i(e))w(e,n)&&(A(r)?t[n]=z(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=H(r):t[n]=r);return t}function j(e,t){for(;null!==e;){const n=u(e,t);if(n){if(n.get)return F(n.get);if("function"==typeof n.value)return F(n.value)}e=s(e)}return function(){return null}}const B=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),W=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),G=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Y=m(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),X=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),q=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$=m(["#text"]),K=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),V=m(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Z=m(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),J=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Q=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ee=p(/<%[\w\W]*|[\w\W]*%>/gm),te=p(/\$\{[\w\W]*/gm),ne=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),re=p(/^aria-[\-\w]+$/),oe=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ae=p(/^(?:\w+script|data):/i),ie=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),le=p(/^html$/i),ce=p(/^[a-z][.\w]*(-[.\w]+)+$/i);var se=Object.freeze({__proto__:null,ARIA_ATTR:re,ATTR_WHITESPACE:ie,CUSTOM_ELEMENT:ce,DATA_ATTR:ne,DOCTYPE_NAME:le,ERB_EXPR:ee,IS_ALLOWED_URI:oe,IS_SCRIPT_OR_DATA:ae,MUSTACHE_EXPR:Q,TMPLIT_EXPR:te});const ue=function(){return"undefined"==typeof window?null:window};var me=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue();const n=t=>e(t);if(n.version="3.4.2",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:s,Element:u,NodeFilter:p,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:P,trustedTypes:F}=t,z=u.prototype,Q=j(z,"cloneNode"),ee=j(z,"remove"),te=j(z,"nextSibling"),ne=j(z,"childNodes"),re=j(z,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ae,ie="";const{implementation:ce,createNodeIterator:me,createDocumentFragment:pe,getElementsByTagName:fe}=r,{importNode:de}=o;let he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof re&&ce&&void 0!==ce.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:Te,TMPLIT_EXPR:ye,DATA_ATTR:_e,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:Ae,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:Se}=se;let{IS_ALLOWED_URI:Ne}=se,Re=null;const Oe=U({},[...B,...W,...G,...X,...$]);let De=null;const ve=U({},[...K,...V,...Z,...J]);let xe=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ie=null,ke=null;const we=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ce=!0,Le=!0,Me=!1,Pe=!0,Fe=!1,Ue=!0,ze=!1,He=!1,je=!1,Be=!1,We=!1,Ge=!1,Ye=!0,Xe=!1;const qe="user-content-";let $e=!0,Ke=!1,Ve={},Ze=null;const Je=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const et=U({},["audio","video","img","source","image","track"]);let tt=null;const nt=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml";let it=at,lt=!1,ct=null;const st=U({},[rt,ot,at],S);let ut=U({},["mi","mo","mn","ms","mtext"]),mt=U({},["annotation-xml"]);const pt=U({},["title","style","font","a","script"]);let ft=null;const dt=["application/xhtml+xml","text/html"];let ht=null,gt=null;const Tt=r.createElement("form"),yt=function(e){return e instanceof RegExp||e instanceof Function},_t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(gt&&gt===e)return;e&&"object"==typeof e||(e={}),e=H(e),ft=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===ft?S:E,Re=w(e,"ALLOWED_TAGS")&&A(e.ALLOWED_TAGS)?U({},e.ALLOWED_TAGS,ht):Oe,De=w(e,"ALLOWED_ATTR")&&A(e.ALLOWED_ATTR)?U({},e.ALLOWED_ATTR,ht):ve,ct=w(e,"ALLOWED_NAMESPACES")&&A(e.ALLOWED_NAMESPACES)?U({},e.ALLOWED_NAMESPACES,S):st,tt=w(e,"ADD_URI_SAFE_ATTR")&&A(e.ADD_URI_SAFE_ATTR)?U(H(nt),e.ADD_URI_SAFE_ATTR,ht):nt,Qe=w(e,"ADD_DATA_URI_TAGS")&&A(e.ADD_DATA_URI_TAGS)?U(H(et),e.ADD_DATA_URI_TAGS,ht):et,Ze=w(e,"FORBID_CONTENTS")&&A(e.FORBID_CONTENTS)?U({},e.FORBID_CONTENTS,ht):Je,Ie=w(e,"FORBID_TAGS")&&A(e.FORBID_TAGS)?U({},e.FORBID_TAGS,ht):H({}),ke=w(e,"FORBID_ATTR")&&A(e.FORBID_ATTR)?U({},e.FORBID_ATTR,ht):H({}),Ve=!!w(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?H(e.USE_PROFILES):e.USE_PROFILES),Ce=!1!==e.ALLOW_ARIA_ATTR,Le=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Fe=e.SAFE_FOR_TEMPLATES||!1,Ue=!1!==e.SAFE_FOR_XML,ze=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,Ge=e.RETURN_TRUSTED_TYPE||!1,je=e.FORCE_BODY||!1,Ye=!1!==e.SANITIZE_DOM,Xe=e.SANITIZE_NAMED_PROPS||!1,$e=!1!==e.KEEP_CONTENT,Ke=e.IN_PLACE||!1,Ne=function(e){try{return L(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:oe,it="string"==typeof e.NAMESPACE?e.NAMESPACE:at,ut=w(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?H(e.MATHML_TEXT_INTEGRATION_POINTS):U({},["mi","mo","mn","ms","mtext"]),mt=w(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?H(e.HTML_INTEGRATION_POINTS):U({},["annotation-xml"]);const t=w(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?H(e.CUSTOM_ELEMENT_HANDLING):f(null);if(xe=f(null),w(t,"tagNameCheck")&&yt(t.tagNameCheck)&&(xe.tagNameCheck=t.tagNameCheck),w(t,"attributeNameCheck")&&yt(t.attributeNameCheck)&&(xe.attributeNameCheck=t.attributeNameCheck),w(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Fe&&(Le=!1),We&&(Be=!0),Ve&&(Re=U({},$),De=f(null),!0===Ve.html&&(U(Re,B),U(De,K)),!0===Ve.svg&&(U(Re,W),U(De,V),U(De,J)),!0===Ve.svgFilters&&(U(Re,G),U(De,V),U(De,J)),!0===Ve.mathMl&&(U(Re,X),U(De,Z),U(De,J))),we.tagCheck=null,we.attributeCheck=null,w(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?we.tagCheck=e.ADD_TAGS:A(e.ADD_TAGS)&&(Re===Oe&&(Re=H(Re)),U(Re,e.ADD_TAGS,ht))),w(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?we.attributeCheck=e.ADD_ATTR:A(e.ADD_ATTR)&&(De===ve&&(De=H(De)),U(De,e.ADD_ATTR,ht))),w(e,"ADD_URI_SAFE_ATTR")&&A(e.ADD_URI_SAFE_ATTR)&&U(tt,e.ADD_URI_SAFE_ATTR,ht),w(e,"FORBID_CONTENTS")&&A(e.FORBID_CONTENTS)&&(Ze===Je&&(Ze=H(Ze)),U(Ze,e.FORBID_CONTENTS,ht)),w(e,"ADD_FORBID_CONTENTS")&&A(e.ADD_FORBID_CONTENTS)&&(Ze===Je&&(Ze=H(Ze)),U(Ze,e.ADD_FORBID_CONTENTS,ht)),$e&&(Re["#text"]=!0),ze&&U(Re,["html","head","body"]),Re.table&&(U(Re,["tbody"]),delete Ie.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,ie=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(F,a)),null!==ae&&"string"==typeof ie&&(ie=ae.createHTML(""));m&&m(e),gt=e},bt=U({},[...W,...G,...Y]),At=U({},[...X,...q]),Et=function(e){_(n.removed,{element:e});try{re(e).removeChild(e)}catch(t){ee(e)}},St=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Be||We)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Nt=function(e){let t=null,n=null;if(je)e="<remove></remove>"+e;else{const t=N(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ft&&it===at&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ae?ae.createHTML(e):e;if(it===at)try{t=(new P).parseFromString(o,ft)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(it,"template",null);try{t.documentElement.innerHTML=lt?ie:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),it===at?fe.call(t,ze?"html":"body")[0]:ze?t.documentElement:a},Rt=function(e){return me.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Ot=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Dt=function(e){return"function"==typeof s&&e instanceof s};function vt(e,t,r){g(e,e=>{e.call(n,t,r,gt)})}const xt=function(e){let t=null;if(vt(he.beforeSanitizeElements,e,null),Ot(e))return Et(e),!0;const r=ht(e.nodeName);if(vt(he.uponSanitizeElement,e,{tagName:r,allowedTags:Re}),Ue&&e.hasChildNodes()&&!Dt(e.firstElementChild)&&L(/<[/\w!]/g,e.innerHTML)&&L(/<[/\w!]/g,e.textContent))return Et(e),!0;if(Ue&&e.namespaceURI===at&&"style"===r&&Dt(e.firstElementChild))return Et(e),!0;if(7===e.nodeType)return Et(e),!0;if(Ue&&8===e.nodeType&&L(/<[/\w]/g,e.data))return Et(e),!0;if(Ie[r]||!(we.tagCheck instanceof Function&&we.tagCheck(r))&&!Re[r]){if(!Ie[r]&&wt(r)){if(xe.tagNameCheck instanceof RegExp&&L(xe.tagNameCheck,r))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(r))return!1}if($e&&!Ze[r]){const t=re(e)||e.parentNode,n=ne(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=Q(n[r],!0);t.insertBefore(o,te(e))}}return Et(e),!0}return e instanceof u&&!function(e){let t=re(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=E(e.tagName),r=E(t.tagName);return!!ct[e.namespaceURI]&&(e.namespaceURI===ot?t.namespaceURI===at?"svg"===n:t.namespaceURI===rt?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(bt[n]):e.namespaceURI===rt?t.namespaceURI===at?"math"===n:t.namespaceURI===ot?"math"===n&&mt[r]:Boolean(At[n]):e.namespaceURI===at?!(t.namespaceURI===ot&&!mt[r])&&!(t.namespaceURI===rt&&!ut[r])&&!At[n]&&(pt[n]||!bt[n]):!("application/xhtml+xml"!==ft||!ct[e.namespaceURI]))}(e)?(Et(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!L(/<\/no(script|embed|frames)/i,e.innerHTML)?(Fe&&3===e.nodeType&&(t=e.textContent,g([ge,Te,ye],e=>{t=R(t,e," ")}),e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt(he.afterSanitizeElements,e,null),!1):(Et(e),!0)},It=function(e,t,n){if(ke[t])return!1;if(Ye&&("id"===t||"name"===t)&&(n in r||n in Tt))return!1;const o=De[t]||we.attributeCheck instanceof Function&&we.attributeCheck(t,e);if(Le&&!ke[t]&&L(_e,t));else if(Ce&&L(be,t));else if(!o||ke[t]){if(!(wt(e)&&(xe.tagNameCheck instanceof RegExp&&L(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&L(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t,e))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&L(xe.tagNameCheck,n)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))))return!1}else if(tt[t]);else if(L(Ne,R(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!Qe[e])if(Me&&!L(Ae,R(n,Ee,"")));else if(n)return!1;return!0},kt=U({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wt=function(e){return!kt[E(e)]&&L(Se,e)},Ct=function(e){vt(he.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ot(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:De,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:l,value:c}=a,s=ht(i),u=c;let m="value"===i?u:D(u);if(r.attrName=s,r.attrValue=m,r.keepAttr=!0,r.forceKeepAttr=void 0,vt(he.uponSanitizeAttribute,e,r),m=r.attrValue,!Xe||"id"!==s&&"name"!==s||0===O(m,qe)||(St(i,e),m=qe+m),Ue&&L(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){St(i,e);continue}if("attributename"===s&&N(m,"href")){St(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){St(i,e);continue}if(!Pe&&L(/\/>/i,m)){St(i,e);continue}Fe&&g([ge,Te,ye],e=>{m=R(m,e," ")});const p=ht(e.nodeName);if(It(p,s,m)){if(ae&&"object"==typeof F&&"function"==typeof F.getAttributeType)if(l);else switch(F.getAttributeType(p,s)){case"TrustedHTML":m=ae.createHTML(m);break;case"TrustedScriptURL":m=ae.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,i,m):e.setAttribute(i,m),Ot(e)?Et(e):y(n.removed)}catch(t){St(i,e)}}else St(i,e)}vt(he.afterSanitizeAttributes,e,null)},Lt=function(e){let t=null;const n=Rt(e);for(vt(he.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)vt(he.uponSanitizeShadowNode,t,null),xt(t),Ct(t),t.content instanceof l&&Lt(t.content);vt(he.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,c=null;if(lt=!e,lt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Dt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return v(e);case"boolean":return x(e);case"bigint":return I?I(e):"0";case"symbol":return k?k(e):"Symbol()";case"undefined":default:return C(e);case"function":case"object":{if(null===e)return C(e);const t=e,n=j(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:C(e)}return C(e)}}}(e)))throw M("dirty is not a string, aborting");if(!n.isSupported)return e;if(He||_t(t),n.removed=[],"string"==typeof e&&(Ke=!1),Ke){const t=e.nodeName;if("string"==typeof t){const e=ht(t);if(!Re[e]||Ie[e])throw M("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)r=Nt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Be&&!Fe&&!ze&&-1===e.indexOf("<"))return ae&&Ge?ae.createHTML(e):e;if(r=Nt(e),!r)return Be?null:Ge?ie:""}r&&je&&Et(r.firstChild);const u=Rt(Ke?e:r);for(;i=u.nextNode();)xt(i),Ct(i),i.content instanceof l&&Lt(i.content);if(Ke)return e;if(Be){if(Fe){r.normalize();let e=r.innerHTML;g([ge,Te,ye],t=>{e=R(e,t," ")}),r.innerHTML=e}if(We)for(c=pe.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(De.shadowroot||De.shadowrootmode)&&(c=de.call(o,c,!0)),c}let m=ze?r.outerHTML:r.innerHTML;return ze&&Re["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&L(le,r.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+m),Fe&&g([ge,Te,ye],e=>{m=R(m,e," ")}),ae&&Ge?ae.createHTML(m):m},n.setConfig=function(){_t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),He=!0},n.clearConfig=function(){gt=null,He=!1},n.isValidAttribute=function(e,t,n){gt||_t({});const r=ht(e),o=ht(t);return It(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&_(he[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=T(he[e],t);return-1===n?void 0:b(he[e],n,1)[0]}return y(he[e])},n.removeHooks=function(e){he[e]=[]},n.removeAllHooks=function(){he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),pe=r(6145),fe=r(4848);const de=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function he({data:e,variant:t="primary",className:n}){const r=t&&"primary"!==t?`mg-card--${t}`:null;return(0,fe.jsx)(fe.Fragment,{children:e.map((e,t)=>(0,fe.jsxs)("article",{className:de("mg-card","mg-card__hc","mg-card-book__hc",r,n),children:[e.imgback&&(0,fe.jsx)("div",{className:"mg-card__visual",children:(0,fe.jsx)("img",{src:e.imgback,alt:e.imgalt,className:"mg-card__image"})}),(0,fe.jsxs)("div",{className:"mg-card__content",children:[e.label1&&(0,fe.jsxs)("div",{className:"mg-card__meta",children:[(0,fe.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label1}),(0,fe.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label2})]}),(0,fe.jsx)("header",{className:"mg-card__title",children:(0,fe.jsx)("a",{href:e.link,children:e.title?.trim()})}),(0,fe.jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:me.sanitize(e.summaryText)}}),e.link&&(0,fe.jsx)(pe.F,{type:"Primary",label:e.button,href:e.link})]})]},t))})}he.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{he as HorizontalBookCard};
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
1
+ /*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
2
2
 
3
3
  /**
4
4
  * @license React
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-04-10T06:58:26.685Z
3
+ * Compiled on: 2026-05-11T09:13:25.318Z
4
4
  */
5
5
  /*! For license information please see HorizontalCard.js.LICENSE.txt */
6
- import*as e from"react";var t={6145(e,t,n){n.d(t,{F:()=>i}),n(1649);var r=n(5556),o=n.n(r),a=n(4848);function i({label:e,Type:t="Primary",State:n="Default",...r}){const o="Disabled"===n,i=["mg-button","mg-button-"+("Secondary"===t?"secondary":"primary"),o&&"disabled"].filter(Boolean).join(" ");return(0,a.jsx)("a",{className:i,...o?{"aria-disabled":"true"}:{href:"#"},...r,children:e})}i.propTypes={label:o().string.isRequired,Type:o().oneOf(["Primary","Secondary"]),State:o().oneOf(["Default","Disabled"])}},2694(e,t,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},4848(e,t,n){e.exports=n(9698)},1649(e,t,n){var r;e.exports=(r={},n.d(r,{}),r)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r(1649);var o=r(5556),a=r.n(o);const{entries:i,setPrototypeOf:l,isFrozen:c,getPrototypeOf:s,getOwnPropertyDescriptor:u}=Object;let{freeze:m,seal:p,create:f}=Object,{apply:d,construct:h}="undefined"!=typeof Reflect&&Reflect;m||(m=function(e){return e}),p||(p=function(e){return e}),d||(d=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),h||(h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const g=k(Array.prototype.forEach),y=k(Array.prototype.lastIndexOf),T=k(Array.prototype.pop),_=k(Array.prototype.push),b=k(Array.prototype.splice),E=k(String.prototype.toLowerCase),A=k(String.prototype.toString),S=k(String.prototype.match),N=k(String.prototype.replace),v=k(String.prototype.indexOf),x=k(String.prototype.trim),D=k(Object.prototype.hasOwnProperty),R=k(RegExp.prototype.test),O=(w=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(w,t)});var w;function k(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return d(e,t,r)}}function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;l&&l(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(c(t)||(t[r]=e),o=e)}e[o]=!0}return e}function L(e){for(let t=0;t<e.length;t++)D(e,t)||(e[t]=null);return e}function I(e){const t=f(null);for(const[n,r]of i(e))D(e,n)&&(Array.isArray(r)?t[n]=L(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=I(r):t[n]=r);return t}function M(e,t){for(;null!==e;){const n=u(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=s(e)}return function(){return null}}const P=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=m(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=m(["#text"]),W=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),G=m(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Y=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=p(/<%[\w\W]*|[\w\W]*%>/gm),K=p(/\$\{[\w\W]*/gm),V=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),Z=p(/^aria-[\-\w]+$/),J=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=p(/^(?:\w+script|data):/i),ee=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),te=p(/^html$/i),ne=p(/^[a-z][.\w]*(-[.\w]+)+$/i);var re=Object.freeze({__proto__:null,ARIA_ATTR:Z,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:ne,DATA_ATTR:V,DOCTYPE_NAME:te,ERB_EXPR:$,IS_ALLOWED_URI:J,IS_SCRIPT_OR_DATA:Q,MUSTACHE_EXPR:X,TMPLIT_EXPR:K});const oe=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:s,Element:u,NodeFilter:p,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:w,trustedTypes:k}=t,L=u.prototype,X=M(L,"cloneNode"),$=M(L,"remove"),K=M(L,"nextSibling"),V=M(L,"childNodes"),Z=M(L,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Q,ee="";const{implementation:ne,createNodeIterator:ae,createDocumentFragment:ie,getElementsByTagName:le}=r,{importNode:ce}=o;let se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof Z&&ne&&void 0!==ne.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:me,TMPLIT_EXPR:pe,DATA_ATTR:fe,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ye}=re;let{IS_ALLOWED_URI:Te}=re,_e=null;const be=C({},[...P,...U,...z,...H,...B]);let Ee=null;const Ae=C({},[...W,...G,...Y,...q]);let Se=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,ve=null;const xe=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let De=!0,Re=!0,Oe=!1,we=!0,ke=!1,Ce=!0,Le=!1,Ie=!1,Me=!1,Pe=!1,Ue=!1,ze=!1,Fe=!0,He=!1,je=!0,Be=!1,We={},Ge=null;const Ye=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const Xe=C({},["audio","video","img","source","image","track"]);let $e=null;const Ke=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Qe=Je,et=!1,tt=null;const nt=C({},[Ve,Ze,Je],A);let rt=C({},["mi","mo","mn","ms","mtext"]),ot=C({},["annotation-xml"]);const at=C({},["title","style","font","a","script"]);let it=null;const lt=["application/xhtml+xml","text/html"];let ct=null,st=null;const ut=r.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=I(e),it=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ct="application/xhtml+xml"===it?A:E,_e=D(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,ct):be,Ee=D(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,ct):Ae,tt=D(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,A):nt,$e=D(e,"ADD_URI_SAFE_ATTR")?C(I(Ke),e.ADD_URI_SAFE_ATTR,ct):Ke,qe=D(e,"ADD_DATA_URI_TAGS")?C(I(Xe),e.ADD_DATA_URI_TAGS,ct):Xe,Ge=D(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,ct):Ye,Ne=D(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,ct):I({}),ve=D(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,ct):I({}),We=!!D(e,"USE_PROFILES")&&e.USE_PROFILES,De=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,we=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,Ce=!1!==e.SAFE_FOR_XML,Le=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||J,Qe=e.NAMESPACE||Je,rt=e.MATHML_TEXT_INTEGRATION_POINTS||rt,ot=e.HTML_INTEGRATION_POINTS||ot,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(Re=!1),Ue&&(Pe=!0),We&&(_e=C({},B),Ee=f(null),!0===We.html&&(C(_e,P),C(Ee,W)),!0===We.svg&&(C(_e,U),C(Ee,G),C(Ee,q)),!0===We.svgFilters&&(C(_e,z),C(Ee,G),C(Ee,q)),!0===We.mathMl&&(C(_e,H),C(Ee,Y),C(Ee,q))),D(e,"ADD_TAGS")||(xe.tagCheck=null),D(e,"ADD_ATTR")||(xe.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?xe.tagCheck=e.ADD_TAGS:(_e===be&&(_e=I(_e)),C(_e,e.ADD_TAGS,ct))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?xe.attributeCheck=e.ADD_ATTR:(Ee===Ae&&(Ee=I(Ee)),C(Ee,e.ADD_ATTR,ct))),e.ADD_URI_SAFE_ATTR&&C($e,e.ADD_URI_SAFE_ATTR,ct),e.FORBID_CONTENTS&&(Ge===Ye&&(Ge=I(Ge)),C(Ge,e.FORBID_CONTENTS,ct)),e.ADD_FORBID_CONTENTS&&(Ge===Ye&&(Ge=I(Ge)),C(Ge,e.ADD_FORBID_CONTENTS,ct)),je&&(_e["#text"]=!0),Le&&C(_e,["html","head","body"]),_e.table&&(C(_e,["tbody"]),delete Ne.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,ee=Q.createHTML("")}else void 0===Q&&(Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(k,a)),null!==Q&&"string"==typeof ee&&(ee=Q.createHTML(""));m&&m(e),st=e}},ft=C({},[...U,...z,...F]),dt=C({},[...H,...j]),ht=function(e){_(n.removed,{element:e});try{Z(e).removeChild(e)}catch(t){$(e)}},gt=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Pe||Ue)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=S(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&Qe===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Q?Q.createHTML(e):e;if(Qe===Je)try{t=(new w).parseFromString(o,it)}catch(e){}if(!t||!t.documentElement){t=ne.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?ee:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Qe===Je?le.call(t,Le?"html":"body")[0]:Le?t.documentElement:a},Tt=function(e){return ae.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},_t=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof s&&e instanceof s};function Et(e,t,r){g(e,e=>{e.call(n,t,r,st)})}const At=function(e){let t=null;if(Et(se.beforeSanitizeElements,e,null),_t(e))return ht(e),!0;const r=ct(e.nodeName);if(Et(se.uponSanitizeElement,e,{tagName:r,allowedTags:_e}),Ce&&e.hasChildNodes()&&!bt(e.firstElementChild)&&R(/<[/\w!]/g,e.innerHTML)&&R(/<[/\w!]/g,e.textContent))return ht(e),!0;if(7===e.nodeType)return ht(e),!0;if(Ce&&8===e.nodeType&&R(/<[/\w]/g,e.data))return ht(e),!0;if(!(xe.tagCheck instanceof Function&&xe.tagCheck(r))&&(!_e[r]||Ne[r])){if(!Ne[r]&&Nt(r)){if(Se.tagNameCheck instanceof RegExp&&R(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(je&&!Ge[r]){const t=Z(e)||e.parentNode,n=V(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=X(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,K(e))}}return ht(e),!0}return e instanceof u&&!function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=E(e.tagName),r=E(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===r||rt[r]):Boolean(ft[n]):e.namespaceURI===Ve?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ze?"math"===n&&ot[r]:Boolean(dt[n]):e.namespaceURI===Je?!(t.namespaceURI===Ze&&!ot[r])&&!(t.namespaceURI===Ve&&!rt[r])&&!dt[n]&&(at[n]||!ft[n]):!("application/xhtml+xml"!==it||!tt[e.namespaceURI]))}(e)?(ht(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!R(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&3===e.nodeType&&(t=e.textContent,g([ue,me,pe],e=>{t=N(t,e," ")}),e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)),Et(se.afterSanitizeElements,e,null),!1):(ht(e),!0)},St=function(e,t,n){if(ve[t])return!1;if(Fe&&("id"===t||"name"===t)&&(n in r||n in ut))return!1;if(Re&&!ve[t]&&R(fe,t));else if(De&&R(de,t));else if(xe.attributeCheck instanceof Function&&xe.attributeCheck(t,e));else if(!Ee[t]||ve[t]){if(!(Nt(e)&&(Se.tagNameCheck instanceof RegExp&&R(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&R(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t,e))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&R(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if($e[t]);else if(R(Te,N(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!qe[e])if(Oe&&!R(he,N(n,ge,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&S(e,ye)},vt=function(e){Et(se.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||_t(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:l,value:c}=a,s=ct(i),u=c;let m="value"===i?u:x(u);if(r.attrName=s,r.attrValue=m,r.keepAttr=!0,r.forceKeepAttr=void 0,Et(se.uponSanitizeAttribute,e,r),m=r.attrValue,!He||"id"!==s&&"name"!==s||(gt(i,e),m="user-content-"+m),Ce&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){gt(i,e);continue}if("attributename"===s&&S(m,"href")){gt(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){gt(i,e);continue}if(!we&&R(/\/>/i,m)){gt(i,e);continue}ke&&g([ue,me,pe],e=>{m=N(m,e," ")});const p=ct(e.nodeName);if(St(p,s,m)){if(Q&&"object"==typeof k&&"function"==typeof k.getAttributeType)if(l);else switch(k.getAttributeType(p,s)){case"TrustedHTML":m=Q.createHTML(m);break;case"TrustedScriptURL":m=Q.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,i,m):e.setAttribute(i,m),_t(e)?ht(e):T(n.removed)}catch(t){gt(i,e)}}else gt(i,e)}Et(se.afterSanitizeAttributes,e,null)},xt=function e(t){let n=null;const r=Tt(t);for(Et(se.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Et(se.uponSanitizeShadowNode,n,null),At(n),vt(n),n.content instanceof l&&e(n.content);Et(se.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,c=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw O("toString is not a function");if("string"!=typeof(e=e.toString()))throw O("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ie||pt(t),n.removed=[],"string"==typeof e&&(Be=!1),Be){if(e.nodeName){const t=ct(e.nodeName);if(!_e[t]||Ne[t])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)r=yt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Pe&&!ke&&!Le&&-1===e.indexOf("<"))return Q&&ze?Q.createHTML(e):e;if(r=yt(e),!r)return Pe?null:ze?ee:""}r&&Me&&ht(r.firstChild);const u=Tt(Be?e:r);for(;i=u.nextNode();)At(i),vt(i),i.content instanceof l&&xt(i.content);if(Be)return e;if(Pe){if(Ue)for(c=ie.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Ee.shadowroot||Ee.shadowrootmode)&&(c=ce.call(o,c,!0)),c}let m=Le?r.outerHTML:r.innerHTML;return Le&&_e["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&R(te,r.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+m),ke&&g([ue,me,pe],e=>{m=N(m,e," ")}),Q&&ze?Q.createHTML(m):m},n.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ie=!0},n.clearConfig=function(){st=null,Ie=!1},n.isValidAttribute=function(e,t,n){st||pt({});const r=ct(e),o=ct(t);return St(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&_(se[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=y(se[e],t);return-1===n?void 0:b(se[e],n,1)[0]}return T(se[e])},n.removeHooks=function(e){se[e]=[]},n.removeAllHooks=function(){se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),ie=r(6145),le=r(4848);const ce=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function se({data:e,variant:t="primary",className:n}){const r=t&&"primary"!==t?`mg-card--${t}`:null;return(0,le.jsx)(le.Fragment,{children:e.map((e,t)=>(0,le.jsxs)("article",{className:ce("mg-card","mg-card__hc",r,n),children:[(0,le.jsx)("div",{className:"mg-card__visual",children:(0,le.jsx)("img",{src:e.imgback,alt:e.imgalt,className:"mg-card__image"})}),(0,le.jsxs)("div",{className:"mg-card__content",children:[(0,le.jsxs)("div",{className:"mg-card__meta",children:[(0,le.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label1}),(0,le.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label2})]}),(0,le.jsx)("header",{className:"mg-card__title",children:(0,le.jsx)("a",{href:e.link,children:e.title?.trim()})}),(0,le.jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:ae.sanitize(e.summaryText)}}),(0,le.jsx)(ie.F,{type:"Primary",label:e.button,href:e.link})]})]},t))})}se.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{se as HorizontalCard};
6
+ import*as e from"react";var t={6145(e,t,n){n.d(t,{F:()=>i}),n(1649);var r=n(5556),o=n.n(r),a=n(4848);function i({label:e,Type:t="Primary",State:n="Default",...r}){const o="Disabled"===n,i=["mg-button","mg-button-"+("Secondary"===t?"secondary":"primary"),o&&"disabled"].filter(Boolean).join(" ");return(0,a.jsx)("a",{className:i,...o?{"aria-disabled":"true"}:{href:"#"},...r,children:e})}i.propTypes={label:o().string.isRequired,Type:o().oneOf(["Primary","Secondary"]),State:o().oneOf(["Default","Disabled"])}},2694(e,t,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},4848(e,t,n){e.exports=n(9698)},1649(e,t,n){var r;e.exports=(r={},n.d(r,{}),r)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r(1649);var o=r(5556),a=r.n(o);const{entries:i,setPrototypeOf:l,isFrozen:c,getPrototypeOf:s,getOwnPropertyDescriptor:u}=Object;let{freeze:m,seal:p,create:f}=Object,{apply:d,construct:h}="undefined"!=typeof Reflect&&Reflect;m||(m=function(e){return e}),p||(p=function(e){return e}),d||(d=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),h||(h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const g=F(Array.prototype.forEach),T=F(Array.prototype.lastIndexOf),y=F(Array.prototype.pop),_=F(Array.prototype.push),A=F(Array.prototype.splice),b=Array.isArray,E=F(String.prototype.toLowerCase),S=F(String.prototype.toString),N=F(String.prototype.match),R=F(String.prototype.replace),O=F(String.prototype.indexOf),D=F(String.prototype.trim),v=F(Number.prototype.toString),x=F(Boolean.prototype.toString),I="undefined"==typeof BigInt?null:F(BigInt.prototype.toString),k="undefined"==typeof Symbol?null:F(Symbol.prototype.toString),w=F(Object.prototype.hasOwnProperty),C=F(Object.prototype.toString),L=F(RegExp.prototype.test),M=(P=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(P,t)});var P;function F(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return d(e,t,r)}}function U(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;if(l&&l(e,null),!b(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(c(t)||(t[r]=e),o=e)}e[o]=!0}return e}function z(e){for(let t=0;t<e.length;t++)w(e,t)||(e[t]=null);return e}function H(e){const t=f(null);for(const[n,r]of i(e))w(e,n)&&(b(r)?t[n]=z(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=H(r):t[n]=r);return t}function j(e,t){for(;null!==e;){const n=u(e,t);if(n){if(n.get)return F(n.get);if("function"==typeof n.value)return F(n.value)}e=s(e)}return function(){return null}}const B=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),W=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),G=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Y=m(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),X=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),q=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$=m(["#text"]),K=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),V=m(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Z=m(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),J=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Q=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ee=p(/<%[\w\W]*|[\w\W]*%>/gm),te=p(/\$\{[\w\W]*/gm),ne=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),re=p(/^aria-[\-\w]+$/),oe=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ae=p(/^(?:\w+script|data):/i),ie=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),le=p(/^html$/i),ce=p(/^[a-z][.\w]*(-[.\w]+)+$/i);var se=Object.freeze({__proto__:null,ARIA_ATTR:re,ATTR_WHITESPACE:ie,CUSTOM_ELEMENT:ce,DATA_ATTR:ne,DOCTYPE_NAME:le,ERB_EXPR:ee,IS_ALLOWED_URI:oe,IS_SCRIPT_OR_DATA:ae,MUSTACHE_EXPR:Q,TMPLIT_EXPR:te});const ue=function(){return"undefined"==typeof window?null:window};var me=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue();const n=t=>e(t);if(n.version="3.4.2",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:s,Element:u,NodeFilter:p,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:P,trustedTypes:F}=t,z=u.prototype,Q=j(z,"cloneNode"),ee=j(z,"remove"),te=j(z,"nextSibling"),ne=j(z,"childNodes"),re=j(z,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ae,ie="";const{implementation:ce,createNodeIterator:me,createDocumentFragment:pe,getElementsByTagName:fe}=r,{importNode:de}=o;let he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof re&&ce&&void 0!==ce.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:Te,TMPLIT_EXPR:ye,DATA_ATTR:_e,ARIA_ATTR:Ae,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:Se}=se;let{IS_ALLOWED_URI:Ne}=se,Re=null;const Oe=U({},[...B,...W,...G,...X,...$]);let De=null;const ve=U({},[...K,...V,...Z,...J]);let xe=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ie=null,ke=null;const we=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ce=!0,Le=!0,Me=!1,Pe=!0,Fe=!1,Ue=!0,ze=!1,He=!1,je=!1,Be=!1,We=!1,Ge=!1,Ye=!0,Xe=!1;const qe="user-content-";let $e=!0,Ke=!1,Ve={},Ze=null;const Je=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const et=U({},["audio","video","img","source","image","track"]);let tt=null;const nt=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml";let it=at,lt=!1,ct=null;const st=U({},[rt,ot,at],S);let ut=U({},["mi","mo","mn","ms","mtext"]),mt=U({},["annotation-xml"]);const pt=U({},["title","style","font","a","script"]);let ft=null;const dt=["application/xhtml+xml","text/html"];let ht=null,gt=null;const Tt=r.createElement("form"),yt=function(e){return e instanceof RegExp||e instanceof Function},_t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(gt&&gt===e)return;e&&"object"==typeof e||(e={}),e=H(e),ft=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===ft?S:E,Re=w(e,"ALLOWED_TAGS")&&b(e.ALLOWED_TAGS)?U({},e.ALLOWED_TAGS,ht):Oe,De=w(e,"ALLOWED_ATTR")&&b(e.ALLOWED_ATTR)?U({},e.ALLOWED_ATTR,ht):ve,ct=w(e,"ALLOWED_NAMESPACES")&&b(e.ALLOWED_NAMESPACES)?U({},e.ALLOWED_NAMESPACES,S):st,tt=w(e,"ADD_URI_SAFE_ATTR")&&b(e.ADD_URI_SAFE_ATTR)?U(H(nt),e.ADD_URI_SAFE_ATTR,ht):nt,Qe=w(e,"ADD_DATA_URI_TAGS")&&b(e.ADD_DATA_URI_TAGS)?U(H(et),e.ADD_DATA_URI_TAGS,ht):et,Ze=w(e,"FORBID_CONTENTS")&&b(e.FORBID_CONTENTS)?U({},e.FORBID_CONTENTS,ht):Je,Ie=w(e,"FORBID_TAGS")&&b(e.FORBID_TAGS)?U({},e.FORBID_TAGS,ht):H({}),ke=w(e,"FORBID_ATTR")&&b(e.FORBID_ATTR)?U({},e.FORBID_ATTR,ht):H({}),Ve=!!w(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?H(e.USE_PROFILES):e.USE_PROFILES),Ce=!1!==e.ALLOW_ARIA_ATTR,Le=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Fe=e.SAFE_FOR_TEMPLATES||!1,Ue=!1!==e.SAFE_FOR_XML,ze=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,Ge=e.RETURN_TRUSTED_TYPE||!1,je=e.FORCE_BODY||!1,Ye=!1!==e.SANITIZE_DOM,Xe=e.SANITIZE_NAMED_PROPS||!1,$e=!1!==e.KEEP_CONTENT,Ke=e.IN_PLACE||!1,Ne=function(e){try{return L(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:oe,it="string"==typeof e.NAMESPACE?e.NAMESPACE:at,ut=w(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?H(e.MATHML_TEXT_INTEGRATION_POINTS):U({},["mi","mo","mn","ms","mtext"]),mt=w(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?H(e.HTML_INTEGRATION_POINTS):U({},["annotation-xml"]);const t=w(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?H(e.CUSTOM_ELEMENT_HANDLING):f(null);if(xe=f(null),w(t,"tagNameCheck")&&yt(t.tagNameCheck)&&(xe.tagNameCheck=t.tagNameCheck),w(t,"attributeNameCheck")&&yt(t.attributeNameCheck)&&(xe.attributeNameCheck=t.attributeNameCheck),w(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Fe&&(Le=!1),We&&(Be=!0),Ve&&(Re=U({},$),De=f(null),!0===Ve.html&&(U(Re,B),U(De,K)),!0===Ve.svg&&(U(Re,W),U(De,V),U(De,J)),!0===Ve.svgFilters&&(U(Re,G),U(De,V),U(De,J)),!0===Ve.mathMl&&(U(Re,X),U(De,Z),U(De,J))),we.tagCheck=null,we.attributeCheck=null,w(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?we.tagCheck=e.ADD_TAGS:b(e.ADD_TAGS)&&(Re===Oe&&(Re=H(Re)),U(Re,e.ADD_TAGS,ht))),w(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?we.attributeCheck=e.ADD_ATTR:b(e.ADD_ATTR)&&(De===ve&&(De=H(De)),U(De,e.ADD_ATTR,ht))),w(e,"ADD_URI_SAFE_ATTR")&&b(e.ADD_URI_SAFE_ATTR)&&U(tt,e.ADD_URI_SAFE_ATTR,ht),w(e,"FORBID_CONTENTS")&&b(e.FORBID_CONTENTS)&&(Ze===Je&&(Ze=H(Ze)),U(Ze,e.FORBID_CONTENTS,ht)),w(e,"ADD_FORBID_CONTENTS")&&b(e.ADD_FORBID_CONTENTS)&&(Ze===Je&&(Ze=H(Ze)),U(Ze,e.ADD_FORBID_CONTENTS,ht)),$e&&(Re["#text"]=!0),ze&&U(Re,["html","head","body"]),Re.table&&(U(Re,["tbody"]),delete Ie.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,ie=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(F,a)),null!==ae&&"string"==typeof ie&&(ie=ae.createHTML(""));m&&m(e),gt=e},At=U({},[...W,...G,...Y]),bt=U({},[...X,...q]),Et=function(e){_(n.removed,{element:e});try{re(e).removeChild(e)}catch(t){ee(e)}},St=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Be||We)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Nt=function(e){let t=null,n=null;if(je)e="<remove></remove>"+e;else{const t=N(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ft&&it===at&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ae?ae.createHTML(e):e;if(it===at)try{t=(new P).parseFromString(o,ft)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(it,"template",null);try{t.documentElement.innerHTML=lt?ie:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),it===at?fe.call(t,ze?"html":"body")[0]:ze?t.documentElement:a},Rt=function(e){return me.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Ot=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Dt=function(e){return"function"==typeof s&&e instanceof s};function vt(e,t,r){g(e,e=>{e.call(n,t,r,gt)})}const xt=function(e){let t=null;if(vt(he.beforeSanitizeElements,e,null),Ot(e))return Et(e),!0;const r=ht(e.nodeName);if(vt(he.uponSanitizeElement,e,{tagName:r,allowedTags:Re}),Ue&&e.hasChildNodes()&&!Dt(e.firstElementChild)&&L(/<[/\w!]/g,e.innerHTML)&&L(/<[/\w!]/g,e.textContent))return Et(e),!0;if(Ue&&e.namespaceURI===at&&"style"===r&&Dt(e.firstElementChild))return Et(e),!0;if(7===e.nodeType)return Et(e),!0;if(Ue&&8===e.nodeType&&L(/<[/\w]/g,e.data))return Et(e),!0;if(Ie[r]||!(we.tagCheck instanceof Function&&we.tagCheck(r))&&!Re[r]){if(!Ie[r]&&wt(r)){if(xe.tagNameCheck instanceof RegExp&&L(xe.tagNameCheck,r))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(r))return!1}if($e&&!Ze[r]){const t=re(e)||e.parentNode,n=ne(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=Q(n[r],!0);t.insertBefore(o,te(e))}}return Et(e),!0}return e instanceof u&&!function(e){let t=re(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=E(e.tagName),r=E(t.tagName);return!!ct[e.namespaceURI]&&(e.namespaceURI===ot?t.namespaceURI===at?"svg"===n:t.namespaceURI===rt?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(At[n]):e.namespaceURI===rt?t.namespaceURI===at?"math"===n:t.namespaceURI===ot?"math"===n&&mt[r]:Boolean(bt[n]):e.namespaceURI===at?!(t.namespaceURI===ot&&!mt[r])&&!(t.namespaceURI===rt&&!ut[r])&&!bt[n]&&(pt[n]||!At[n]):!("application/xhtml+xml"!==ft||!ct[e.namespaceURI]))}(e)?(Et(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!L(/<\/no(script|embed|frames)/i,e.innerHTML)?(Fe&&3===e.nodeType&&(t=e.textContent,g([ge,Te,ye],e=>{t=R(t,e," ")}),e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt(he.afterSanitizeElements,e,null),!1):(Et(e),!0)},It=function(e,t,n){if(ke[t])return!1;if(Ye&&("id"===t||"name"===t)&&(n in r||n in Tt))return!1;const o=De[t]||we.attributeCheck instanceof Function&&we.attributeCheck(t,e);if(Le&&!ke[t]&&L(_e,t));else if(Ce&&L(Ae,t));else if(!o||ke[t]){if(!(wt(e)&&(xe.tagNameCheck instanceof RegExp&&L(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&L(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t,e))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&L(xe.tagNameCheck,n)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))))return!1}else if(tt[t]);else if(L(Ne,R(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!Qe[e])if(Me&&!L(be,R(n,Ee,"")));else if(n)return!1;return!0},kt=U({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wt=function(e){return!kt[E(e)]&&L(Se,e)},Ct=function(e){vt(he.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ot(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:De,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:l,value:c}=a,s=ht(i),u=c;let m="value"===i?u:D(u);if(r.attrName=s,r.attrValue=m,r.keepAttr=!0,r.forceKeepAttr=void 0,vt(he.uponSanitizeAttribute,e,r),m=r.attrValue,!Xe||"id"!==s&&"name"!==s||0===O(m,qe)||(St(i,e),m=qe+m),Ue&&L(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){St(i,e);continue}if("attributename"===s&&N(m,"href")){St(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){St(i,e);continue}if(!Pe&&L(/\/>/i,m)){St(i,e);continue}Fe&&g([ge,Te,ye],e=>{m=R(m,e," ")});const p=ht(e.nodeName);if(It(p,s,m)){if(ae&&"object"==typeof F&&"function"==typeof F.getAttributeType)if(l);else switch(F.getAttributeType(p,s)){case"TrustedHTML":m=ae.createHTML(m);break;case"TrustedScriptURL":m=ae.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,i,m):e.setAttribute(i,m),Ot(e)?Et(e):y(n.removed)}catch(t){St(i,e)}}else St(i,e)}vt(he.afterSanitizeAttributes,e,null)},Lt=function(e){let t=null;const n=Rt(e);for(vt(he.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)vt(he.uponSanitizeShadowNode,t,null),xt(t),Ct(t),t.content instanceof l&&Lt(t.content);vt(he.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,c=null;if(lt=!e,lt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Dt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return v(e);case"boolean":return x(e);case"bigint":return I?I(e):"0";case"symbol":return k?k(e):"Symbol()";case"undefined":default:return C(e);case"function":case"object":{if(null===e)return C(e);const t=e,n=j(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:C(e)}return C(e)}}}(e)))throw M("dirty is not a string, aborting");if(!n.isSupported)return e;if(He||_t(t),n.removed=[],"string"==typeof e&&(Ke=!1),Ke){const t=e.nodeName;if("string"==typeof t){const e=ht(t);if(!Re[e]||Ie[e])throw M("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)r=Nt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Be&&!Fe&&!ze&&-1===e.indexOf("<"))return ae&&Ge?ae.createHTML(e):e;if(r=Nt(e),!r)return Be?null:Ge?ie:""}r&&je&&Et(r.firstChild);const u=Rt(Ke?e:r);for(;i=u.nextNode();)xt(i),Ct(i),i.content instanceof l&&Lt(i.content);if(Ke)return e;if(Be){if(Fe){r.normalize();let e=r.innerHTML;g([ge,Te,ye],t=>{e=R(e,t," ")}),r.innerHTML=e}if(We)for(c=pe.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(De.shadowroot||De.shadowrootmode)&&(c=de.call(o,c,!0)),c}let m=ze?r.outerHTML:r.innerHTML;return ze&&Re["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&L(le,r.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+m),Fe&&g([ge,Te,ye],e=>{m=R(m,e," ")}),ae&&Ge?ae.createHTML(m):m},n.setConfig=function(){_t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),He=!0},n.clearConfig=function(){gt=null,He=!1},n.isValidAttribute=function(e,t,n){gt||_t({});const r=ht(e),o=ht(t);return It(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&_(he[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=T(he[e],t);return-1===n?void 0:A(he[e],n,1)[0]}return y(he[e])},n.removeHooks=function(e){he[e]=[]},n.removeAllHooks=function(){he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),pe=r(6145),fe=r(4848);const de=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function he({data:e,variant:t="primary",className:n}){const r=t&&"primary"!==t?`mg-card--${t}`:null;return(0,fe.jsx)(fe.Fragment,{children:e.map((e,t)=>(0,fe.jsxs)("article",{className:de("mg-card","mg-card__hc",r,n),children:[(0,fe.jsx)("div",{className:"mg-card__visual",children:(0,fe.jsx)("img",{src:e.imgback,alt:e.imgalt,className:"mg-card__image"})}),(0,fe.jsxs)("div",{className:"mg-card__content",children:[(0,fe.jsxs)("div",{className:"mg-card__meta",children:[(0,fe.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label1}),(0,fe.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label2})]}),(0,fe.jsx)("header",{className:"mg-card__title",children:(0,fe.jsx)("a",{href:e.link,children:e.title?.trim()})}),(0,fe.jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:me.sanitize(e.summaryText)}}),(0,fe.jsx)(pe.F,{type:"Primary",label:e.button,href:e.link})]})]},t))})}he.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{he as HorizontalCard};
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
1
+ /*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
2
2
 
3
3
  /**
4
4
  * @license React