@undrr/undrr-mangrove 1.7.0 → 1.8.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.
- package/README.md +5 -5
- package/components/BookCard.js +2 -2
- package/components/BookCard.js.LICENSE.txt +1 -1
- package/components/Breadcrumbs.js +2 -2
- package/components/Checkbox.js +1 -1
- package/components/Chips.js +1 -1
- package/components/CtaButton.js +1 -1
- package/components/EmbedContainer.js +1 -1
- package/components/Footer.js +1 -1
- package/components/FormErrorSummary.js +1 -1
- package/components/FormGroup.js +1 -1
- package/components/FullWidth.js +1 -1
- package/components/Gallery.js +2 -2
- package/components/Hero.js +1 -1
- package/components/HighlightBox.js +1 -1
- package/components/HorizontalBookCard.js +2 -2
- package/components/HorizontalBookCard.js.LICENSE.txt +1 -1
- package/components/HorizontalCard.js +2 -2
- package/components/HorizontalCard.js.LICENSE.txt +1 -1
- package/components/IconCard.js +2 -2
- package/components/IconCard.js.LICENSE.txt +1 -1
- package/components/Loader.js +1 -1
- package/components/MegaMenu.js +2 -2
- package/components/PageHeader.js +2 -2
- package/components/Pager.js +2 -2
- package/components/QuoteHighlight.js +1 -1
- package/components/Radio.js +1 -1
- package/components/ScrollContainer.js +2 -2
- package/components/Select.js +1 -1
- package/components/ShareButtons.js +2 -2
- package/components/ShowMore.js +1 -1
- package/components/StatsCard.js +2 -2
- package/components/StatsCard.js.LICENSE.txt +2 -0
- package/components/SyndicationSearchWidget.js +2 -2
- package/components/Tab.js +2 -2
- package/components/TextCta.js +2 -2
- package/components/TextCta.js.LICENSE.txt +1 -1
- package/components/TextInput.js +1 -1
- package/components/Textarea.js +1 -1
- package/components/VerticalCard.js +2 -2
- package/components/VerticalCard.js.LICENSE.txt +1 -1
- package/components/hydrate.js +2 -2
- package/css/style-delta.css +12 -10
- package/css/style-delta.css.map +1 -1
- package/css/style-irp-legacy.css +12 -10
- package/css/style-irp-legacy.css.map +1 -1
- package/css/style-irp.css +12 -10
- package/css/style-irp.css.map +1 -1
- package/css/style-legacy.css +12 -10
- package/css/style-legacy.css.map +1 -1
- package/css/style-mcr-legacy.css +12 -10
- package/css/style-mcr-legacy.css.map +1 -1
- package/css/style-mcr.css +12 -10
- package/css/style-mcr.css.map +1 -1
- package/css/style-preventionweb-legacy.css +12 -10
- package/css/style-preventionweb-legacy.css.map +1 -1
- package/css/style-preventionweb.css +12 -10
- package/css/style-preventionweb.css.map +1 -1
- package/css/style.css +12 -10
- package/css/style.css.map +1 -1
- package/error-pages/401.html +1 -1
- package/error-pages/403.html +1 -1
- package/error-pages/404.html +1 -1
- package/error-pages/429.html +1 -1
- package/error-pages/500.html +1 -1
- package/error-pages/502.html +1 -1
- package/error-pages/503.html +1 -1
- package/error-pages/504.html +1 -1
- package/error-pages/5xx.html +1 -1
- package/error-pages/challenge.html +1 -1
- package/error-pages/managed-challenge.html +1 -1
- package/package.json +1 -1
- package/scss/Atom/BaseTypography/Code/code.scss +172 -5
- package/scss/Atom/Icons/_icon-definitions.scss +1 -1
- package/scss/Atom/ReachElement/Details/details.scss +52 -18
- package/scss/Components/Breadcrumbs/breadcrumbs.scss +6 -1
- package/scss/Components/SyndicationSearchWidget/SyndicationSearchWidget.scss +1 -1
- package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +35 -37
- package/scss/assets/scss/_foundational.scss +8 -1
- package/components/64859daad6c1e719d2b3.png +0 -1
- package/components/871deead6fbe28d9b668.png +0 -1
- package/components/BarChart.js +0 -6
- package/components/BarChart.js.LICENSE.txt +0 -9
- package/components/Fetcher.js +0 -6
- package/components/Fetcher.js.LICENSE.txt +0 -9
- package/components/MapComponent.js +0 -6
- package/components/MapComponent.js.LICENSE.txt +0 -14
- package/components/assets/2b3e1faf89f94a4835397e7a43b4f77d.png +0 -0
- package/components/assets/416d91365b44e4b4f4777663e6f009f3.png +0 -0
- package/components/assets/680f69f3c2e6b90c1812a813edf67fd7.png +0 -0
- package/components/assets/8f2c4d11474275fbc1614b9098334eae.png +0 -0
- package/components/assets/a0c6cc1401c107b501efee6477816891.png +0 -0
- package/components/cab155b6ee25ecd4541b.png +0 -1
|
@@ -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-
|
|
3
|
+
* Compiled on: 2026-06-19T12:53:34.453Z
|
|
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=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&>===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};
|
|
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);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const c=Object.entries,s=Object.setPrototypeOf,u=Object.isFrozen,m=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor;let f=Object.freeze,d=Object.seal,h=Object.create,g="undefined"!=typeof Reflect&&Reflect,y=g.apply,T=g.construct;f||(f=function(e){return e}),d||(d=function(e){return e}),y||(y=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)}),T||(T=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 b=j(Array.prototype.forEach),_=j(Array.prototype.lastIndexOf),S=j(Array.prototype.pop),A=j(Array.prototype.push),E=j(Array.prototype.splice),N=Array.isArray,O=j(String.prototype.toLowerCase),v=j(String.prototype.toString),x=j(String.prototype.match),D=j(String.prototype.replace),R=j(String.prototype.indexOf),w=j(String.prototype.trim),k=j(Number.prototype.toString),I=j(Boolean.prototype.toString),C="undefined"==typeof BigInt?null:j(BigInt.prototype.toString),L="undefined"==typeof Symbol?null:j(Symbol.prototype.toString),M=j(Object.prototype.hasOwnProperty),P=j(Object.prototype.toString),F=j(RegExp.prototype.test),z=(U=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(U,t)});var U;function j(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 y(e,t,r)}}function H(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;if(s&&s(e,null),!N(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(u(t)||(t[r]=e),o=e)}e[o]=!0}return e}function B(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}function W(e){const t=h(null);for(const r of c(e)){var n=l(r,2);const o=n[0],a=n[1];M(e,o)&&(N(a)?t[o]=B(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=W(a):t[o]=a)}return t}function G(e,t){for(;null!==e;){const n=p(e,t);if(n){if(n.get)return j(n.get);if("function"==typeof n.value)return j(n.value)}e=m(e)}return function(){return null}}const Y=f(["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"]),q=f(["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"]),$=f(["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"]),X=f(["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"]),K=f(["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"]),V=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z=f(["#text"]),J=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),Q=f(["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"]),ee=f(["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"]),te=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ne=d(/{{[\w\W]*|^[\w\W]*}}/g),re=d(/<%[\w\W]*|^[\w\W]*%>/g),oe=d(/\${[\w\W]*/g),ae=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),ie=d(/^aria-[\-\w]+$/),le=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ce=d(/^(?:\w+script|data):/i),se=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ue=d(/^html$/i),me=d(/^[a-z][.\w]*(-[.\w]+)+$/i),pe=function(){return"undefined"==typeof window?null:window};var fe=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe();const n=t=>e(t);if(n.version="3.4.5",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,a=o.currentScript,i=t.DocumentFragment,l=t.HTMLTemplateElement,s=t.Node,u=t.Element,m=t.NodeFilter,p=t.NamedNodeMap,d=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,g=t.HTMLFormElement,y=t.DOMParser,T=t.trustedTypes,U=u.prototype,j=G(U,"cloneNode"),B=G(U,"remove"),fe=G(U,"nextSibling"),de=G(U,"childNodes"),he=G(U,"parentNode"),ge=s&&s.prototype?G(s.prototype,"nodeType"):null;if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ye,Te="";const be=r,_e=be.implementation,Se=be.createNodeIterator,Ae=be.createDocumentFragment,Ee=be.getElementsByTagName,Ne=o.importNode;let Oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof c&&"function"==typeof he&&_e&&void 0!==_e.createHTMLDocument;const ve=ne,xe=re,De=oe,Re=ae,we=ie,ke=ce,Ie=se,Ce=me;let Le=le,Me=null;const Pe=H({},[...Y,...q,...$,...K,...Z]);let Fe=null;const ze=H({},[...J,...Q,...ee,...te]);let Ue=Object.seal(h(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}})),je=null,He=null;const Be=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let We=!0,Ge=!0,Ye=!1,qe=!0,$e=!1,Xe=!0,Ke=!1,Ve=!1,Ze=!1,Je=!1,Qe=!1,et=!1,tt=!0,nt=!1;const rt="user-content-";let ot=!0,at=!1,it={},lt=null;const ct=H({},["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 st=null;const ut=H({},["audio","video","img","source","image","track"]);let mt=null;const pt=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ft="http://www.w3.org/1998/Math/MathML",dt="http://www.w3.org/2000/svg",ht="http://www.w3.org/1999/xhtml";let gt=ht,yt=!1,Tt=null;const bt=H({},[ft,dt,ht],v);let _t=H({},["mi","mo","mn","ms","mtext"]),St=H({},["annotation-xml"]);const At=H({},["title","style","font","a","script"]);let Et=null;const Nt=["application/xhtml+xml","text/html"];let Ot=null,vt=null;const xt=r.createElement("form"),Dt=function(e){return e instanceof RegExp||e instanceof Function},Rt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(vt&&vt===e)return;e&&"object"==typeof e||(e={}),e=W(e),Et=-1===Nt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ot="application/xhtml+xml"===Et?v:O,Me=M(e,"ALLOWED_TAGS")&&N(e.ALLOWED_TAGS)?H({},e.ALLOWED_TAGS,Ot):Pe,Fe=M(e,"ALLOWED_ATTR")&&N(e.ALLOWED_ATTR)?H({},e.ALLOWED_ATTR,Ot):ze,Tt=M(e,"ALLOWED_NAMESPACES")&&N(e.ALLOWED_NAMESPACES)?H({},e.ALLOWED_NAMESPACES,v):bt,mt=M(e,"ADD_URI_SAFE_ATTR")&&N(e.ADD_URI_SAFE_ATTR)?H(W(pt),e.ADD_URI_SAFE_ATTR,Ot):pt,st=M(e,"ADD_DATA_URI_TAGS")&&N(e.ADD_DATA_URI_TAGS)?H(W(ut),e.ADD_DATA_URI_TAGS,Ot):ut,lt=M(e,"FORBID_CONTENTS")&&N(e.FORBID_CONTENTS)?H({},e.FORBID_CONTENTS,Ot):ct,je=M(e,"FORBID_TAGS")&&N(e.FORBID_TAGS)?H({},e.FORBID_TAGS,Ot):W({}),He=M(e,"FORBID_ATTR")&&N(e.FORBID_ATTR)?H({},e.FORBID_ATTR,Ot):W({}),it=!!M(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?W(e.USE_PROFILES):e.USE_PROFILES),We=!1!==e.ALLOW_ARIA_ATTR,Ge=!1!==e.ALLOW_DATA_ATTR,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,$e=e.SAFE_FOR_TEMPLATES||!1,Xe=!1!==e.SAFE_FOR_XML,Ke=e.WHOLE_DOCUMENT||!1,Je=e.RETURN_DOM||!1,Qe=e.RETURN_DOM_FRAGMENT||!1,et=e.RETURN_TRUSTED_TYPE||!1,Ze=e.FORCE_BODY||!1,tt=!1!==e.SANITIZE_DOM,nt=e.SANITIZE_NAMED_PROPS||!1,ot=!1!==e.KEEP_CONTENT,at=e.IN_PLACE||!1,Le=function(e){try{return F(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:le,gt="string"==typeof e.NAMESPACE?e.NAMESPACE:ht,_t=M(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?W(e.MATHML_TEXT_INTEGRATION_POINTS):H({},["mi","mo","mn","ms","mtext"]),St=M(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?W(e.HTML_INTEGRATION_POINTS):H({},["annotation-xml"]);const t=M(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?W(e.CUSTOM_ELEMENT_HANDLING):h(null);if(Ue=h(null),M(t,"tagNameCheck")&&Dt(t.tagNameCheck)&&(Ue.tagNameCheck=t.tagNameCheck),M(t,"attributeNameCheck")&&Dt(t.attributeNameCheck)&&(Ue.attributeNameCheck=t.attributeNameCheck),M(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ue.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),$e&&(Ge=!1),Qe&&(Je=!0),it&&(Me=H({},Z),Fe=h(null),!0===it.html&&(H(Me,Y),H(Fe,J)),!0===it.svg&&(H(Me,q),H(Fe,Q),H(Fe,te)),!0===it.svgFilters&&(H(Me,$),H(Fe,Q),H(Fe,te)),!0===it.mathMl&&(H(Me,K),H(Fe,ee),H(Fe,te))),Be.tagCheck=null,Be.attributeCheck=null,M(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Be.tagCheck=e.ADD_TAGS:N(e.ADD_TAGS)&&(Me===Pe&&(Me=W(Me)),H(Me,e.ADD_TAGS,Ot))),M(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Be.attributeCheck=e.ADD_ATTR:N(e.ADD_ATTR)&&(Fe===ze&&(Fe=W(Fe)),H(Fe,e.ADD_ATTR,Ot))),M(e,"ADD_URI_SAFE_ATTR")&&N(e.ADD_URI_SAFE_ATTR)&&H(mt,e.ADD_URI_SAFE_ATTR,Ot),M(e,"FORBID_CONTENTS")&&N(e.FORBID_CONTENTS)&&(lt===ct&&(lt=W(lt)),H(lt,e.FORBID_CONTENTS,Ot)),M(e,"ADD_FORBID_CONTENTS")&&N(e.ADD_FORBID_CONTENTS)&&(lt===ct&&(lt=W(lt)),H(lt,e.ADD_FORBID_CONTENTS,Ot)),ot&&(Me["#text"]=!0),Ke&&H(Me,["html","head","body"]),Me.table&&(H(Me,["tbody"]),delete je.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ye=e.TRUSTED_TYPES_POLICY,Te=ye.createHTML("")}else void 0===ye&&(ye=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}}(T,a)),null!==ye&&"string"==typeof Te&&(Te=ye.createHTML(""));f&&f(e),vt=e},wt=H({},[...q,...$,...X]),kt=H({},[...K,...V]),It=function(e){A(n.removed,{element:e});try{he(e).removeChild(e)}catch(t){B(e)}},Ct=function(e,t){try{A(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){A(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Je||Qe)try{It(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Lt=function(e){let t=null,n=null;if(Ze)e="<remove></remove>"+e;else{const t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Et&>===ht&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ye?ye.createHTML(e):e;if(gt===ht)try{t=(new y).parseFromString(o,Et)}catch(e){}if(!t||!t.documentElement){t=_e.createDocument(gt,"template",null);try{t.documentElement.innerHTML=yt?Te:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),gt===ht?Ee.call(t,Ke?"html":"body")[0]:Ke?t.documentElement:a},Mt=function(e){return Se.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Pt=function(e){e.normalize();const t=Se.call(e.ownerDocument||e,e,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let n=t.nextNode();for(;n;){let e=n.data;b([ve,xe,De],t=>{e=D(e,t," ")}),n.data=e,n=t.nextNode()}},Ft=function(e){return e instanceof g&&("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)},zt=function(e){if(!ge||"object"!=typeof e||null===e)return!1;try{return"number"==typeof ge(e)}catch(e){return!1}};function Ut(e,t,r){b(e,e=>{e.call(n,t,r,vt)})}const jt=function(e){let t=null;if(Ut(Oe.beforeSanitizeElements,e,null),Ft(e))return It(e),!0;const r=Ot(e.nodeName);if(Ut(Oe.uponSanitizeElement,e,{tagName:r,allowedTags:Me}),Xe&&e.hasChildNodes()&&!zt(e.firstElementChild)&&F(/<[/\w!]/g,e.innerHTML)&&F(/<[/\w!]/g,e.textContent))return It(e),!0;if(Xe&&e.namespaceURI===ht&&"style"===r&&zt(e.firstElementChild))return It(e),!0;if(7===e.nodeType)return It(e),!0;if(Xe&&8===e.nodeType&&F(/<[/\w]/g,e.data))return It(e),!0;if(je[r]||!(Be.tagCheck instanceof Function&&Be.tagCheck(r))&&!Me[r]){if(!je[r]&&Wt(r)){if(Ue.tagNameCheck instanceof RegExp&&F(Ue.tagNameCheck,r))return!1;if(Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(r))return!1}if(ot&&!lt[r]){const t=he(e)||e.parentNode,n=de(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=j(n[r],!0);t.insertBefore(o,fe(e))}}return It(e),!0}return e instanceof u&&!function(e){let t=he(e);t&&t.tagName||(t={namespaceURI:gt,tagName:"template"});const n=O(e.tagName),r=O(t.tagName);return!!Tt[e.namespaceURI]&&(e.namespaceURI===dt?t.namespaceURI===ht?"svg"===n:t.namespaceURI===ft?"svg"===n&&("annotation-xml"===r||_t[r]):Boolean(wt[n]):e.namespaceURI===ft?t.namespaceURI===ht?"math"===n:t.namespaceURI===dt?"math"===n&&St[r]:Boolean(kt[n]):e.namespaceURI===ht?!(t.namespaceURI===dt&&!St[r])&&!(t.namespaceURI===ft&&!_t[r])&&!kt[n]&&(At[n]||!wt[n]):!("application/xhtml+xml"!==Et||!Tt[e.namespaceURI]))}(e)?(It(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!F(/<\/no(script|embed|frames)/i,e.innerHTML)?($e&&3===e.nodeType&&(t=e.textContent,b([ve,xe,De],e=>{t=D(t,e," ")}),e.textContent!==t&&(A(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ut(Oe.afterSanitizeElements,e,null),!1):(It(e),!0)},Ht=function(e,t,n){if(He[t])return!1;if(tt&&("id"===t||"name"===t)&&(n in r||n in xt))return!1;const o=Fe[t]||Be.attributeCheck instanceof Function&&Be.attributeCheck(t,e);if(Ge&&!He[t]&&F(Re,t));else if(We&&F(we,t));else if(!o||He[t]){if(!(Wt(e)&&(Ue.tagNameCheck instanceof RegExp&&F(Ue.tagNameCheck,e)||Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(e))&&(Ue.attributeNameCheck instanceof RegExp&&F(Ue.attributeNameCheck,t)||Ue.attributeNameCheck instanceof Function&&Ue.attributeNameCheck(t,e))||"is"===t&&Ue.allowCustomizedBuiltInElements&&(Ue.tagNameCheck instanceof RegExp&&F(Ue.tagNameCheck,n)||Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(n))))return!1}else if(mt[t]);else if(F(Le,D(n,Ie,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==R(n,"data:")||!st[e])if(Ye&&!F(ke,D(n,Ie,"")));else if(n)return!1;return!0},Bt=H({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wt=function(e){return!Bt[O(e)]&&F(Ce,e)},Gt=function(e){Ut(Oe.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Ft(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Fe,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],i=a.name,l=a.namespaceURI,c=a.value,s=Ot(i),u=c;let m="value"===i?u:w(u);if(r.attrName=s,r.attrValue=m,r.keepAttr=!0,r.forceKeepAttr=void 0,Ut(Oe.uponSanitizeAttribute,e,r),m=r.attrValue,!nt||"id"!==s&&"name"!==s||0===R(m,rt)||(Ct(i,e),m=rt+m),Xe&&F(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){Ct(i,e);continue}if("attributename"===s&&x(m,"href")){Ct(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ct(i,e);continue}if(!qe&&F(/\/>/i,m)){Ct(i,e);continue}$e&&b([ve,xe,De],e=>{m=D(m,e," ")});const p=Ot(e.nodeName);if(Ht(p,s,m)){if(ye&&"object"==typeof T&&"function"==typeof T.getAttributeType)if(l);else switch(T.getAttributeType(p,s)){case"TrustedHTML":m=ye.createHTML(m);break;case"TrustedScriptURL":m=ye.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,i,m):e.setAttribute(i,m),Ft(e)?It(e):S(n.removed)}catch(t){Ct(i,e)}}else Ct(i,e)}Ut(Oe.afterSanitizeAttributes,e,null)},Yt=function(e){let t=null;const n=Mt(e);for(Ut(Oe.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)Ut(Oe.uponSanitizeShadowNode,t,null),jt(t),Gt(t),t.content instanceof i&&Yt(t.content);Ut(Oe.afterSanitizeShadowDOM,e,null)},qt=function(e){if(1===e.nodeType&&e.shadowRoot instanceof i){const t=e.shadowRoot;qt(t),Yt(t)}const t=e.childNodes;if(!t)return;const n=[];b(t,e=>{A(n,e)});for(const e of n)qt(e)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,l=null,c=null;if(yt=!e,yt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!zt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return k(e);case"boolean":return I(e);case"bigint":return C?C(e):"0";case"symbol":return L?L(e):"Symbol()";case"undefined":default:return P(e);case"function":case"object":{if(null===e)return P(e);const t=e,n=G(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:P(e)}return P(e)}}}(e)))throw z("dirty is not a string, aborting");if(!n.isSupported)return e;if(Ve||Rt(t),n.removed=[],"string"==typeof e&&(at=!1),at){const t=e.nodeName;if("string"==typeof t){const e=Ot(t);if(!Me[e]||je[e])throw z("root node is forbidden and cannot be sanitized in-place")}qt(e)}else if(zt(e))r=Lt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),qt(a);else{if(!Je&&!$e&&!Ke&&-1===e.indexOf("<"))return ye&&et?ye.createHTML(e):e;if(r=Lt(e),!r)return Je?null:et?Te:""}r&&Ze&&It(r.firstChild);const s=Mt(at?e:r);for(;l=s.nextNode();)jt(l),Gt(l),l.content instanceof i&&Yt(l.content);if(at)return $e&&Pt(e),e;if(Je){if($e&&Pt(r),Qe)for(c=Ae.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Fe.shadowroot||Fe.shadowrootmode)&&(c=Ne.call(o,c,!0)),c}let u=Ke?r.outerHTML:r.innerHTML;return Ke&&Me["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&F(ue,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),$e&&b([ve,xe,De],e=>{u=D(u,e," ")}),ye&&et?ye.createHTML(u):u},n.setConfig=function(){Rt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ve=!0},n.clearConfig=function(){vt=null,Ve=!1},n.isValidAttribute=function(e,t,n){vt||Rt({});const r=Ot(e),o=Ot(t);return Ht(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&A(Oe[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=_(Oe[e],t);return-1===n?void 0:E(Oe[e],n,1)[0]}return S(Oe[e])},n.removeHooks=function(e){Oe[e]=[]},n.removeAllHooks=function(){Oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),de=r(6145),he=r(4848);const ge=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function ye({data:e,variant:t="primary",className:n}){const r=t&&"primary"!==t?`mg-card--${t}`:null;return(0,he.jsx)(he.Fragment,{children:e.map((e,t)=>(0,he.jsxs)("article",{className:ge("mg-card","mg-card__hc","mg-card-book__hc",r,n),children:[e.imgback&&(0,he.jsx)("div",{className:"mg-card__visual",children:(0,he.jsx)("img",{src:e.imgback,alt:e.imgalt,className:"mg-card__image"})}),(0,he.jsxs)("div",{className:"mg-card__content",children:[e.label1&&(0,he.jsxs)("div",{className:"mg-card__meta",children:[(0,he.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label1}),(0,he.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label2})]}),(0,he.jsx)("header",{className:"mg-card__title",children:(0,he.jsx)("a",{href:e.link,children:e.title?.trim()})}),(0,he.jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:fe.sanitize(e.summaryText)}}),e.link&&(0,he.jsx)(de.F,{type:"Primary",label:e.button,href:e.link})]})]},t))})}ye.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{ye as HorizontalBookCard};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @license DOMPurify 3.4.
|
|
1
|
+
/*! @license DOMPurify 3.4.5 | (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.5/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-
|
|
3
|
+
* Compiled on: 2026-06-19T12:53:34.453Z
|
|
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=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&>===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};
|
|
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);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const c=Object.entries,s=Object.setPrototypeOf,u=Object.isFrozen,m=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor;let f=Object.freeze,d=Object.seal,h=Object.create,g="undefined"!=typeof Reflect&&Reflect,y=g.apply,T=g.construct;f||(f=function(e){return e}),d||(d=function(e){return e}),y||(y=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)}),T||(T=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 b=j(Array.prototype.forEach),_=j(Array.prototype.lastIndexOf),S=j(Array.prototype.pop),A=j(Array.prototype.push),E=j(Array.prototype.splice),N=Array.isArray,O=j(String.prototype.toLowerCase),v=j(String.prototype.toString),x=j(String.prototype.match),D=j(String.prototype.replace),R=j(String.prototype.indexOf),w=j(String.prototype.trim),I=j(Number.prototype.toString),k=j(Boolean.prototype.toString),C="undefined"==typeof BigInt?null:j(BigInt.prototype.toString),L="undefined"==typeof Symbol?null:j(Symbol.prototype.toString),M=j(Object.prototype.hasOwnProperty),P=j(Object.prototype.toString),F=j(RegExp.prototype.test),z=(U=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(U,t)});var U;function j(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 y(e,t,r)}}function H(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;if(s&&s(e,null),!N(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(u(t)||(t[r]=e),o=e)}e[o]=!0}return e}function B(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}function W(e){const t=h(null);for(const r of c(e)){var n=l(r,2);const o=n[0],a=n[1];M(e,o)&&(N(a)?t[o]=B(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=W(a):t[o]=a)}return t}function G(e,t){for(;null!==e;){const n=p(e,t);if(n){if(n.get)return j(n.get);if("function"==typeof n.value)return j(n.value)}e=m(e)}return function(){return null}}const Y=f(["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"]),q=f(["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"]),$=f(["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"]),X=f(["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"]),K=f(["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"]),V=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z=f(["#text"]),J=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),Q=f(["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"]),ee=f(["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"]),te=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ne=d(/{{[\w\W]*|^[\w\W]*}}/g),re=d(/<%[\w\W]*|^[\w\W]*%>/g),oe=d(/\${[\w\W]*/g),ae=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),ie=d(/^aria-[\-\w]+$/),le=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ce=d(/^(?:\w+script|data):/i),se=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ue=d(/^html$/i),me=d(/^[a-z][.\w]*(-[.\w]+)+$/i),pe=function(){return"undefined"==typeof window?null:window};var fe=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe();const n=t=>e(t);if(n.version="3.4.5",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,a=o.currentScript,i=t.DocumentFragment,l=t.HTMLTemplateElement,s=t.Node,u=t.Element,m=t.NodeFilter,p=t.NamedNodeMap,d=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,g=t.HTMLFormElement,y=t.DOMParser,T=t.trustedTypes,U=u.prototype,j=G(U,"cloneNode"),B=G(U,"remove"),fe=G(U,"nextSibling"),de=G(U,"childNodes"),he=G(U,"parentNode"),ge=s&&s.prototype?G(s.prototype,"nodeType"):null;if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ye,Te="";const be=r,_e=be.implementation,Se=be.createNodeIterator,Ae=be.createDocumentFragment,Ee=be.getElementsByTagName,Ne=o.importNode;let Oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof c&&"function"==typeof he&&_e&&void 0!==_e.createHTMLDocument;const ve=ne,xe=re,De=oe,Re=ae,we=ie,Ie=ce,ke=se,Ce=me;let Le=le,Me=null;const Pe=H({},[...Y,...q,...$,...K,...Z]);let Fe=null;const ze=H({},[...J,...Q,...ee,...te]);let Ue=Object.seal(h(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}})),je=null,He=null;const Be=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let We=!0,Ge=!0,Ye=!1,qe=!0,$e=!1,Xe=!0,Ke=!1,Ve=!1,Ze=!1,Je=!1,Qe=!1,et=!1,tt=!0,nt=!1;const rt="user-content-";let ot=!0,at=!1,it={},lt=null;const ct=H({},["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 st=null;const ut=H({},["audio","video","img","source","image","track"]);let mt=null;const pt=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ft="http://www.w3.org/1998/Math/MathML",dt="http://www.w3.org/2000/svg",ht="http://www.w3.org/1999/xhtml";let gt=ht,yt=!1,Tt=null;const bt=H({},[ft,dt,ht],v);let _t=H({},["mi","mo","mn","ms","mtext"]),St=H({},["annotation-xml"]);const At=H({},["title","style","font","a","script"]);let Et=null;const Nt=["application/xhtml+xml","text/html"];let Ot=null,vt=null;const xt=r.createElement("form"),Dt=function(e){return e instanceof RegExp||e instanceof Function},Rt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(vt&&vt===e)return;e&&"object"==typeof e||(e={}),e=W(e),Et=-1===Nt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ot="application/xhtml+xml"===Et?v:O,Me=M(e,"ALLOWED_TAGS")&&N(e.ALLOWED_TAGS)?H({},e.ALLOWED_TAGS,Ot):Pe,Fe=M(e,"ALLOWED_ATTR")&&N(e.ALLOWED_ATTR)?H({},e.ALLOWED_ATTR,Ot):ze,Tt=M(e,"ALLOWED_NAMESPACES")&&N(e.ALLOWED_NAMESPACES)?H({},e.ALLOWED_NAMESPACES,v):bt,mt=M(e,"ADD_URI_SAFE_ATTR")&&N(e.ADD_URI_SAFE_ATTR)?H(W(pt),e.ADD_URI_SAFE_ATTR,Ot):pt,st=M(e,"ADD_DATA_URI_TAGS")&&N(e.ADD_DATA_URI_TAGS)?H(W(ut),e.ADD_DATA_URI_TAGS,Ot):ut,lt=M(e,"FORBID_CONTENTS")&&N(e.FORBID_CONTENTS)?H({},e.FORBID_CONTENTS,Ot):ct,je=M(e,"FORBID_TAGS")&&N(e.FORBID_TAGS)?H({},e.FORBID_TAGS,Ot):W({}),He=M(e,"FORBID_ATTR")&&N(e.FORBID_ATTR)?H({},e.FORBID_ATTR,Ot):W({}),it=!!M(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?W(e.USE_PROFILES):e.USE_PROFILES),We=!1!==e.ALLOW_ARIA_ATTR,Ge=!1!==e.ALLOW_DATA_ATTR,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,$e=e.SAFE_FOR_TEMPLATES||!1,Xe=!1!==e.SAFE_FOR_XML,Ke=e.WHOLE_DOCUMENT||!1,Je=e.RETURN_DOM||!1,Qe=e.RETURN_DOM_FRAGMENT||!1,et=e.RETURN_TRUSTED_TYPE||!1,Ze=e.FORCE_BODY||!1,tt=!1!==e.SANITIZE_DOM,nt=e.SANITIZE_NAMED_PROPS||!1,ot=!1!==e.KEEP_CONTENT,at=e.IN_PLACE||!1,Le=function(e){try{return F(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:le,gt="string"==typeof e.NAMESPACE?e.NAMESPACE:ht,_t=M(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?W(e.MATHML_TEXT_INTEGRATION_POINTS):H({},["mi","mo","mn","ms","mtext"]),St=M(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?W(e.HTML_INTEGRATION_POINTS):H({},["annotation-xml"]);const t=M(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?W(e.CUSTOM_ELEMENT_HANDLING):h(null);if(Ue=h(null),M(t,"tagNameCheck")&&Dt(t.tagNameCheck)&&(Ue.tagNameCheck=t.tagNameCheck),M(t,"attributeNameCheck")&&Dt(t.attributeNameCheck)&&(Ue.attributeNameCheck=t.attributeNameCheck),M(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ue.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),$e&&(Ge=!1),Qe&&(Je=!0),it&&(Me=H({},Z),Fe=h(null),!0===it.html&&(H(Me,Y),H(Fe,J)),!0===it.svg&&(H(Me,q),H(Fe,Q),H(Fe,te)),!0===it.svgFilters&&(H(Me,$),H(Fe,Q),H(Fe,te)),!0===it.mathMl&&(H(Me,K),H(Fe,ee),H(Fe,te))),Be.tagCheck=null,Be.attributeCheck=null,M(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Be.tagCheck=e.ADD_TAGS:N(e.ADD_TAGS)&&(Me===Pe&&(Me=W(Me)),H(Me,e.ADD_TAGS,Ot))),M(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Be.attributeCheck=e.ADD_ATTR:N(e.ADD_ATTR)&&(Fe===ze&&(Fe=W(Fe)),H(Fe,e.ADD_ATTR,Ot))),M(e,"ADD_URI_SAFE_ATTR")&&N(e.ADD_URI_SAFE_ATTR)&&H(mt,e.ADD_URI_SAFE_ATTR,Ot),M(e,"FORBID_CONTENTS")&&N(e.FORBID_CONTENTS)&&(lt===ct&&(lt=W(lt)),H(lt,e.FORBID_CONTENTS,Ot)),M(e,"ADD_FORBID_CONTENTS")&&N(e.ADD_FORBID_CONTENTS)&&(lt===ct&&(lt=W(lt)),H(lt,e.ADD_FORBID_CONTENTS,Ot)),ot&&(Me["#text"]=!0),Ke&&H(Me,["html","head","body"]),Me.table&&(H(Me,["tbody"]),delete je.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ye=e.TRUSTED_TYPES_POLICY,Te=ye.createHTML("")}else void 0===ye&&(ye=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}}(T,a)),null!==ye&&"string"==typeof Te&&(Te=ye.createHTML(""));f&&f(e),vt=e},wt=H({},[...q,...$,...X]),It=H({},[...K,...V]),kt=function(e){A(n.removed,{element:e});try{he(e).removeChild(e)}catch(t){B(e)}},Ct=function(e,t){try{A(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){A(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Je||Qe)try{kt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Lt=function(e){let t=null,n=null;if(Ze)e="<remove></remove>"+e;else{const t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Et&>===ht&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ye?ye.createHTML(e):e;if(gt===ht)try{t=(new y).parseFromString(o,Et)}catch(e){}if(!t||!t.documentElement){t=_e.createDocument(gt,"template",null);try{t.documentElement.innerHTML=yt?Te:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),gt===ht?Ee.call(t,Ke?"html":"body")[0]:Ke?t.documentElement:a},Mt=function(e){return Se.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Pt=function(e){e.normalize();const t=Se.call(e.ownerDocument||e,e,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let n=t.nextNode();for(;n;){let e=n.data;b([ve,xe,De],t=>{e=D(e,t," ")}),n.data=e,n=t.nextNode()}},Ft=function(e){return e instanceof g&&("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)},zt=function(e){if(!ge||"object"!=typeof e||null===e)return!1;try{return"number"==typeof ge(e)}catch(e){return!1}};function Ut(e,t,r){b(e,e=>{e.call(n,t,r,vt)})}const jt=function(e){let t=null;if(Ut(Oe.beforeSanitizeElements,e,null),Ft(e))return kt(e),!0;const r=Ot(e.nodeName);if(Ut(Oe.uponSanitizeElement,e,{tagName:r,allowedTags:Me}),Xe&&e.hasChildNodes()&&!zt(e.firstElementChild)&&F(/<[/\w!]/g,e.innerHTML)&&F(/<[/\w!]/g,e.textContent))return kt(e),!0;if(Xe&&e.namespaceURI===ht&&"style"===r&&zt(e.firstElementChild))return kt(e),!0;if(7===e.nodeType)return kt(e),!0;if(Xe&&8===e.nodeType&&F(/<[/\w]/g,e.data))return kt(e),!0;if(je[r]||!(Be.tagCheck instanceof Function&&Be.tagCheck(r))&&!Me[r]){if(!je[r]&&Wt(r)){if(Ue.tagNameCheck instanceof RegExp&&F(Ue.tagNameCheck,r))return!1;if(Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(r))return!1}if(ot&&!lt[r]){const t=he(e)||e.parentNode,n=de(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=j(n[r],!0);t.insertBefore(o,fe(e))}}return kt(e),!0}return e instanceof u&&!function(e){let t=he(e);t&&t.tagName||(t={namespaceURI:gt,tagName:"template"});const n=O(e.tagName),r=O(t.tagName);return!!Tt[e.namespaceURI]&&(e.namespaceURI===dt?t.namespaceURI===ht?"svg"===n:t.namespaceURI===ft?"svg"===n&&("annotation-xml"===r||_t[r]):Boolean(wt[n]):e.namespaceURI===ft?t.namespaceURI===ht?"math"===n:t.namespaceURI===dt?"math"===n&&St[r]:Boolean(It[n]):e.namespaceURI===ht?!(t.namespaceURI===dt&&!St[r])&&!(t.namespaceURI===ft&&!_t[r])&&!It[n]&&(At[n]||!wt[n]):!("application/xhtml+xml"!==Et||!Tt[e.namespaceURI]))}(e)?(kt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!F(/<\/no(script|embed|frames)/i,e.innerHTML)?($e&&3===e.nodeType&&(t=e.textContent,b([ve,xe,De],e=>{t=D(t,e," ")}),e.textContent!==t&&(A(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ut(Oe.afterSanitizeElements,e,null),!1):(kt(e),!0)},Ht=function(e,t,n){if(He[t])return!1;if(tt&&("id"===t||"name"===t)&&(n in r||n in xt))return!1;const o=Fe[t]||Be.attributeCheck instanceof Function&&Be.attributeCheck(t,e);if(Ge&&!He[t]&&F(Re,t));else if(We&&F(we,t));else if(!o||He[t]){if(!(Wt(e)&&(Ue.tagNameCheck instanceof RegExp&&F(Ue.tagNameCheck,e)||Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(e))&&(Ue.attributeNameCheck instanceof RegExp&&F(Ue.attributeNameCheck,t)||Ue.attributeNameCheck instanceof Function&&Ue.attributeNameCheck(t,e))||"is"===t&&Ue.allowCustomizedBuiltInElements&&(Ue.tagNameCheck instanceof RegExp&&F(Ue.tagNameCheck,n)||Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(n))))return!1}else if(mt[t]);else if(F(Le,D(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==R(n,"data:")||!st[e])if(Ye&&!F(Ie,D(n,ke,"")));else if(n)return!1;return!0},Bt=H({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wt=function(e){return!Bt[O(e)]&&F(Ce,e)},Gt=function(e){Ut(Oe.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Ft(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Fe,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],i=a.name,l=a.namespaceURI,c=a.value,s=Ot(i),u=c;let m="value"===i?u:w(u);if(r.attrName=s,r.attrValue=m,r.keepAttr=!0,r.forceKeepAttr=void 0,Ut(Oe.uponSanitizeAttribute,e,r),m=r.attrValue,!nt||"id"!==s&&"name"!==s||0===R(m,rt)||(Ct(i,e),m=rt+m),Xe&&F(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){Ct(i,e);continue}if("attributename"===s&&x(m,"href")){Ct(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ct(i,e);continue}if(!qe&&F(/\/>/i,m)){Ct(i,e);continue}$e&&b([ve,xe,De],e=>{m=D(m,e," ")});const p=Ot(e.nodeName);if(Ht(p,s,m)){if(ye&&"object"==typeof T&&"function"==typeof T.getAttributeType)if(l);else switch(T.getAttributeType(p,s)){case"TrustedHTML":m=ye.createHTML(m);break;case"TrustedScriptURL":m=ye.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,i,m):e.setAttribute(i,m),Ft(e)?kt(e):S(n.removed)}catch(t){Ct(i,e)}}else Ct(i,e)}Ut(Oe.afterSanitizeAttributes,e,null)},Yt=function(e){let t=null;const n=Mt(e);for(Ut(Oe.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)Ut(Oe.uponSanitizeShadowNode,t,null),jt(t),Gt(t),t.content instanceof i&&Yt(t.content);Ut(Oe.afterSanitizeShadowDOM,e,null)},qt=function(e){if(1===e.nodeType&&e.shadowRoot instanceof i){const t=e.shadowRoot;qt(t),Yt(t)}const t=e.childNodes;if(!t)return;const n=[];b(t,e=>{A(n,e)});for(const e of n)qt(e)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,l=null,c=null;if(yt=!e,yt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!zt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return I(e);case"boolean":return k(e);case"bigint":return C?C(e):"0";case"symbol":return L?L(e):"Symbol()";case"undefined":default:return P(e);case"function":case"object":{if(null===e)return P(e);const t=e,n=G(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:P(e)}return P(e)}}}(e)))throw z("dirty is not a string, aborting");if(!n.isSupported)return e;if(Ve||Rt(t),n.removed=[],"string"==typeof e&&(at=!1),at){const t=e.nodeName;if("string"==typeof t){const e=Ot(t);if(!Me[e]||je[e])throw z("root node is forbidden and cannot be sanitized in-place")}qt(e)}else if(zt(e))r=Lt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),qt(a);else{if(!Je&&!$e&&!Ke&&-1===e.indexOf("<"))return ye&&et?ye.createHTML(e):e;if(r=Lt(e),!r)return Je?null:et?Te:""}r&&Ze&&kt(r.firstChild);const s=Mt(at?e:r);for(;l=s.nextNode();)jt(l),Gt(l),l.content instanceof i&&Yt(l.content);if(at)return $e&&Pt(e),e;if(Je){if($e&&Pt(r),Qe)for(c=Ae.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Fe.shadowroot||Fe.shadowrootmode)&&(c=Ne.call(o,c,!0)),c}let u=Ke?r.outerHTML:r.innerHTML;return Ke&&Me["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&F(ue,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),$e&&b([ve,xe,De],e=>{u=D(u,e," ")}),ye&&et?ye.createHTML(u):u},n.setConfig=function(){Rt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ve=!0},n.clearConfig=function(){vt=null,Ve=!1},n.isValidAttribute=function(e,t,n){vt||Rt({});const r=Ot(e),o=Ot(t);return Ht(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&A(Oe[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=_(Oe[e],t);return-1===n?void 0:E(Oe[e],n,1)[0]}return S(Oe[e])},n.removeHooks=function(e){Oe[e]=[]},n.removeAllHooks=function(){Oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),de=r(6145),he=r(4848);const ge=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function ye({data:e,variant:t="primary",className:n}){const r=t&&"primary"!==t?`mg-card--${t}`:null;return(0,he.jsx)(he.Fragment,{children:e.map((e,t)=>(0,he.jsxs)("article",{className:ge("mg-card","mg-card__hc",r,n),children:[(0,he.jsx)("div",{className:"mg-card__visual",children:(0,he.jsx)("img",{src:e.imgback,alt:e.imgalt,className:"mg-card__image"})}),(0,he.jsxs)("div",{className:"mg-card__content",children:[(0,he.jsxs)("div",{className:"mg-card__meta",children:[(0,he.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label1}),(0,he.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label2})]}),(0,he.jsx)("header",{className:"mg-card__title",children:(0,he.jsx)("a",{href:e.link,children:e.title?.trim()})}),(0,he.jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:fe.sanitize(e.summaryText)}}),(0,he.jsx)(de.F,{type:"Primary",label:e.button,href:e.link})]})]},t))})}ye.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{ye as HorizontalCard};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @license DOMPurify 3.4.
|
|
1
|
+
/*! @license DOMPurify 3.4.5 | (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.5/LICENSE */
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
package/components/IconCard.js
CHANGED
|
@@ -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-
|
|
3
|
+
* Compiled on: 2026-06-19T12:53:34.453Z
|
|
4
4
|
*/
|
|
5
5
|
/*! For license information please see IconCard.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:g}="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)}),g||(g=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 h=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,S=F(String.prototype.toLowerCase),E=F(String.prototype.toString),N=F(String.prototype.match),O=F(String.prototype.replace),R=F(String.prototype.indexOf),x=F(String.prototype.trim),v=F(Number.prototype.toString),D=F(Boolean.prototype.toString),C="undefined"==typeof BigInt?null:F(BigInt.prototype.toString),k="undefined"==typeof Symbol?null:F(Symbol.prototype.toString),I=F(Object.prototype.hasOwnProperty),w=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 g(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 z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;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 U(e){for(let t=0;t<e.length;t++)I(e,t)||(e[t]=null);return e}function j(e){const t=f(null);for(const[n,r]of i(e))I(e,n)&&(A(r)?t[n]=U(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=j(r):t[n]=r);return t}function H(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:g,DOMParser:P,trustedTypes:F}=t,U=u.prototype,Q=H(U,"cloneNode"),ee=H(U,"remove"),te=H(U,"nextSibling"),ne=H(U,"childNodes"),re=H(U,"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 ge={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:he,ERB_EXPR:Te,TMPLIT_EXPR:ye,DATA_ATTR:_e,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:Ae,ATTR_WHITESPACE:Se,CUSTOM_ELEMENT:Ee}=se;let{IS_ALLOWED_URI:Ne}=se,Oe=null;const Re=z({},[...B,...W,...G,...X,...$]);let xe=null;const ve=z({},[...K,...V,...Z,...J]);let De=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}})),Ce=null,ke=null;const Ie=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,Le=!0,Me=!1,Pe=!0,Fe=!1,ze=!0,Ue=!1,je=!1,He=!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=z({},["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=z({},["audio","video","img","source","image","track"]);let tt=null;const nt=z({},["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=z({},[rt,ot,at],E);let ut=z({},["mi","mo","mn","ms","mtext"]),mt=z({},["annotation-xml"]);const pt=z({},["title","style","font","a","script"]);let ft=null;const dt=["application/xhtml+xml","text/html"];let gt=null,ht=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(ht&&ht===e)return;e&&"object"==typeof e||(e={}),e=j(e),ft=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,gt="application/xhtml+xml"===ft?E:S,Oe=I(e,"ALLOWED_TAGS")&&A(e.ALLOWED_TAGS)?z({},e.ALLOWED_TAGS,gt):Re,xe=I(e,"ALLOWED_ATTR")&&A(e.ALLOWED_ATTR)?z({},e.ALLOWED_ATTR,gt):ve,ct=I(e,"ALLOWED_NAMESPACES")&&A(e.ALLOWED_NAMESPACES)?z({},e.ALLOWED_NAMESPACES,E):st,tt=I(e,"ADD_URI_SAFE_ATTR")&&A(e.ADD_URI_SAFE_ATTR)?z(j(nt),e.ADD_URI_SAFE_ATTR,gt):nt,Qe=I(e,"ADD_DATA_URI_TAGS")&&A(e.ADD_DATA_URI_TAGS)?z(j(et),e.ADD_DATA_URI_TAGS,gt):et,Ze=I(e,"FORBID_CONTENTS")&&A(e.FORBID_CONTENTS)?z({},e.FORBID_CONTENTS,gt):Je,Ce=I(e,"FORBID_TAGS")&&A(e.FORBID_TAGS)?z({},e.FORBID_TAGS,gt):j({}),ke=I(e,"FORBID_ATTR")&&A(e.FORBID_ATTR)?z({},e.FORBID_ATTR,gt):j({}),Ve=!!I(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?j(e.USE_PROFILES):e.USE_PROFILES),we=!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,ze=!1!==e.SAFE_FOR_XML,Ue=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,Ge=e.RETURN_TRUSTED_TYPE||!1,He=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=I(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?j(e.MATHML_TEXT_INTEGRATION_POINTS):z({},["mi","mo","mn","ms","mtext"]),mt=I(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?j(e.HTML_INTEGRATION_POINTS):z({},["annotation-xml"]);const t=I(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?j(e.CUSTOM_ELEMENT_HANDLING):f(null);if(De=f(null),I(t,"tagNameCheck")&&yt(t.tagNameCheck)&&(De.tagNameCheck=t.tagNameCheck),I(t,"attributeNameCheck")&&yt(t.attributeNameCheck)&&(De.attributeNameCheck=t.attributeNameCheck),I(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(De.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Fe&&(Le=!1),We&&(Be=!0),Ve&&(Oe=z({},$),xe=f(null),!0===Ve.html&&(z(Oe,B),z(xe,K)),!0===Ve.svg&&(z(Oe,W),z(xe,V),z(xe,J)),!0===Ve.svgFilters&&(z(Oe,G),z(xe,V),z(xe,J)),!0===Ve.mathMl&&(z(Oe,X),z(xe,Z),z(xe,J))),Ie.tagCheck=null,Ie.attributeCheck=null,I(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Ie.tagCheck=e.ADD_TAGS:A(e.ADD_TAGS)&&(Oe===Re&&(Oe=j(Oe)),z(Oe,e.ADD_TAGS,gt))),I(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Ie.attributeCheck=e.ADD_ATTR:A(e.ADD_ATTR)&&(xe===ve&&(xe=j(xe)),z(xe,e.ADD_ATTR,gt))),I(e,"ADD_URI_SAFE_ATTR")&&A(e.ADD_URI_SAFE_ATTR)&&z(tt,e.ADD_URI_SAFE_ATTR,gt),I(e,"FORBID_CONTENTS")&&A(e.FORBID_CONTENTS)&&(Ze===Je&&(Ze=j(Ze)),z(Ze,e.FORBID_CONTENTS,gt)),I(e,"ADD_FORBID_CONTENTS")&&A(e.ADD_FORBID_CONTENTS)&&(Ze===Je&&(Ze=j(Ze)),z(Ze,e.ADD_FORBID_CONTENTS,gt)),$e&&(Oe["#text"]=!0),Ue&&z(Oe,["html","head","body"]),Oe.table&&(z(Oe,["tbody"]),delete Ce.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),ht=e},bt=z({},[...W,...G,...Y]),At=z({},[...X,...q]),St=function(e){_(n.removed,{element:e});try{re(e).removeChild(e)}catch(t){ee(e)}},Et=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{St(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Nt=function(e){let t=null,n=null;if(He)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,Ue?"html":"body")[0]:Ue?t.documentElement:a},Ot=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)},Rt=function(e){return e instanceof g&&("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)},xt=function(e){return"function"==typeof s&&e instanceof s};function vt(e,t,r){h(e,e=>{e.call(n,t,r,ht)})}const Dt=function(e){let t=null;if(vt(ge.beforeSanitizeElements,e,null),Rt(e))return St(e),!0;const r=gt(e.nodeName);if(vt(ge.uponSanitizeElement,e,{tagName:r,allowedTags:Oe}),ze&&e.hasChildNodes()&&!xt(e.firstElementChild)&&L(/<[/\w!]/g,e.innerHTML)&&L(/<[/\w!]/g,e.textContent))return St(e),!0;if(ze&&e.namespaceURI===at&&"style"===r&&xt(e.firstElementChild))return St(e),!0;if(7===e.nodeType)return St(e),!0;if(ze&&8===e.nodeType&&L(/<[/\w]/g,e.data))return St(e),!0;if(Ce[r]||!(Ie.tagCheck instanceof Function&&Ie.tagCheck(r))&&!Oe[r]){if(!Ce[r]&&It(r)){if(De.tagNameCheck instanceof RegExp&&L(De.tagNameCheck,r))return!1;if(De.tagNameCheck instanceof Function&&De.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 St(e),!0}return e instanceof u&&!function(e){let t=re(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=S(e.tagName),r=S(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)?(St(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!L(/<\/no(script|embed|frames)/i,e.innerHTML)?(Fe&&3===e.nodeType&&(t=e.textContent,h([he,Te,ye],e=>{t=O(t,e," ")}),e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt(ge.afterSanitizeElements,e,null),!1):(St(e),!0)},Ct=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=xe[t]||Ie.attributeCheck instanceof Function&&Ie.attributeCheck(t,e);if(Le&&!ke[t]&&L(_e,t));else if(we&&L(be,t));else if(!o||ke[t]){if(!(It(e)&&(De.tagNameCheck instanceof RegExp&&L(De.tagNameCheck,e)||De.tagNameCheck instanceof Function&&De.tagNameCheck(e))&&(De.attributeNameCheck instanceof RegExp&&L(De.attributeNameCheck,t)||De.attributeNameCheck instanceof Function&&De.attributeNameCheck(t,e))||"is"===t&&De.allowCustomizedBuiltInElements&&(De.tagNameCheck instanceof RegExp&&L(De.tagNameCheck,n)||De.tagNameCheck instanceof Function&&De.tagNameCheck(n))))return!1}else if(tt[t]);else if(L(Ne,O(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==R(n,"data:")||!Qe[e])if(Me&&!L(Ae,O(n,Se,"")));else if(n)return!1;return!0},kt=z({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),It=function(e){return!kt[S(e)]&&L(Ee,e)},wt=function(e){vt(ge.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Rt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:l,value:c}=a,s=gt(i),u=c;let m="value"===i?u:x(u);if(r.attrName=s,r.attrValue=m,r.keepAttr=!0,r.forceKeepAttr=void 0,vt(ge.uponSanitizeAttribute,e,r),m=r.attrValue,!Xe||"id"!==s&&"name"!==s||0===R(m,qe)||(Et(i,e),m=qe+m),ze&&L(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){Et(i,e);continue}if("attributename"===s&&N(m,"href")){Et(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Et(i,e);continue}if(!Pe&&L(/\/>/i,m)){Et(i,e);continue}Fe&&h([he,Te,ye],e=>{m=O(m,e," ")});const p=gt(e.nodeName);if(Ct(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),Rt(e)?St(e):y(n.removed)}catch(t){Et(i,e)}}else Et(i,e)}vt(ge.afterSanitizeAttributes,e,null)},Lt=function(e){let t=null;const n=Ot(e);for(vt(ge.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)vt(ge.uponSanitizeShadowNode,t,null),Dt(t),wt(t),t.content instanceof l&&Lt(t.content);vt(ge.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&&!xt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return v(e);case"boolean":return D(e);case"bigint":return C?C(e):"0";case"symbol":return k?k(e):"Symbol()";case"undefined":default:return w(e);case"function":case"object":{if(null===e)return w(e);const t=e,n=H(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:w(e)}return w(e)}}}(e)))throw M("dirty is not a string, aborting");if(!n.isSupported)return e;if(je||_t(t),n.removed=[],"string"==typeof e&&(Ke=!1),Ke){const t=e.nodeName;if("string"==typeof t){const e=gt(t);if(!Oe[e]||Ce[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&&!Ue&&-1===e.indexOf("<"))return ae&&Ge?ae.createHTML(e):e;if(r=Nt(e),!r)return Be?null:Ge?ie:""}r&&He&&St(r.firstChild);const u=Ot(Ke?e:r);for(;i=u.nextNode();)Dt(i),wt(i),i.content instanceof l&&Lt(i.content);if(Ke)return e;if(Be){if(Fe){r.normalize();let e=r.innerHTML;h([he,Te,ye],t=>{e=O(e,t," ")}),r.innerHTML=e}if(We)for(c=pe.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(xe.shadowroot||xe.shadowrootmode)&&(c=de.call(o,c,!0)),c}let m=Ue?r.outerHTML:r.innerHTML;return Ue&&Oe["!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&&h([he,Te,ye],e=>{m=O(m,e," ")}),ae&&Ge?ae.createHTML(m):m},n.setConfig=function(){_t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),je=!0},n.clearConfig=function(){ht=null,je=!1},n.isValidAttribute=function(e,t,n){ht||_t({});const r=gt(e),o=gt(t);return Ct(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&_(ge[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=T(ge[e],t);return-1===n?void 0:b(ge[e],n,1)[0]}return y(ge[e])},n.removeHooks=function(e){ge[e]=[]},n.removeAllHooks=function(){ge={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 ge({item:e}){return e.imgback?(0,fe.jsx)("img",{src:e.imgback,alt:e.imgalt||"",className:de("mg-card__image",e.imageScale&&`mg-card__image--${e.imageScale}`),...!e.imageScale&&{width:e.iconSize||72,height:e.iconSize||72}}):e.icon||e.iconColor?(0,fe.jsx)("span",{className:de("mg-card__icon-wrap",e.imageScale&&`mg-card__icon-wrap--${e.imageScale}`,e.iconColor&&"mg-card__icon-wrap--colored"),"aria-hidden":"true",...(e.iconColor||e.iconFgColor)&&{style:{...e.iconColor&&{"--mg-icon-bg":e.iconColor},...e.iconFgColor&&{"--mg-icon-fg":e.iconFgColor}}},children:e.icon&&(0,fe.jsx)("span",{className:e.icon})}):null}function he({data:e,centered:t=!1,variant:n="default"}){return(0,fe.jsx)(fe.Fragment,{children:e.map((e,r)=>(0,fe.jsxs)("article",{className:de("mg-card","mg-card__icon",t&&"mg-card__icon--centered",n&&"default"!==n&&`mg-card__icon--${n}`,e.borderColor&&"mg-card__icon--bordered"),...e.borderColor&&{style:{"--mg-card-border":e.borderColor}},children:[(e.icon||e.imgback||e.iconColor)&&(0,fe.jsxs)("div",{className:"mg-card__visual",children:[e.visualLabel&&(0,fe.jsx)("span",{className:"mg-card__visual-label",children:e.visualLabel}),e.srOnlyTitle&&e.link?(0,fe.jsx)("a",{href:e.link,className:"mg-card__visual-link",children:(0,fe.jsx)(ge,{item:e})}):(0,fe.jsx)(ge,{item:e})]}),(0,fe.jsxs)("div",{className:"mg-card__content",children:[e.label&&(0,fe.jsx)("div",{className:"mg-card__meta",children:(0,fe.jsx)("span",{className:"mg-card__label",children:e.label})}),e.title&&(0,fe.jsx)("header",{className:de("mg-card__title",e.srOnlyTitle&&"mg-u-sr-only"),children:!e.link||e.button||e.srOnlyTitle?e.title?.trim():(0,fe.jsx)("a",{href:e.link,children:e.title?.trim()})}),e.summaryText&&(0,fe.jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:me.sanitize(e.summaryText)}}),e.button&&(0,fe.jsx)("div",{className:"mg-card__cta",children:(0,fe.jsx)(pe.F,{type:e.buttonType||"Primary",label:e.button,href:e.link})}),e.linkText&&!e.button&&(0,fe.jsx)("p",{className:"mg-card__link",children:(0,fe.jsx)("a",{href:e.link,children:e.linkText})})]})]},e.id||e.title||`icon-card-${r}`))})}function Te(e){const{dataset:t}=e,n={centered:"true"===t.centered,variant:t.variant||"default"};try{n.data=t.items?JSON.parse(t.items):[]}catch{n.data=[]}return n}he.propTypes={data:a().arrayOf(a().shape({id:a().oneOfType([a().string,a().number]),icon:a().string,imgback:a().string,imgalt:a().string,iconSize:a().number,imageScale:a().oneOf(["small","medium","large","full"]),iconColor:a().string,iconFgColor:a().string,borderColor:a().string,label:a().string,visualLabel:a().string,title:a().string.isRequired,srOnlyTitle:a().bool,summaryText:a().string,link:a().string,linkText:a().string,button:a().string,buttonType:a().oneOf(["Primary","Secondary"])})).isRequired,centered:a().bool,variant:a().oneOf(["default","negative"])};export{he as IconCard,he as default,Te as fromElement};
|
|
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);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const c=Object.entries,s=Object.setPrototypeOf,u=Object.isFrozen,m=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor;let f=Object.freeze,d=Object.seal,g=Object.create,h="undefined"!=typeof Reflect&&Reflect,y=h.apply,T=h.construct;f||(f=function(e){return e}),d||(d=function(e){return e}),y||(y=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)}),T||(T=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 b=U(Array.prototype.forEach),_=U(Array.prototype.lastIndexOf),S=U(Array.prototype.pop),A=U(Array.prototype.push),N=U(Array.prototype.splice),E=Array.isArray,O=U(String.prototype.toLowerCase),v=U(String.prototype.toString),x=U(String.prototype.match),D=U(String.prototype.replace),R=U(String.prototype.indexOf),k=U(String.prototype.trim),w=U(Number.prototype.toString),C=U(Boolean.prototype.toString),I="undefined"==typeof BigInt?null:U(BigInt.prototype.toString),L="undefined"==typeof Symbol?null:U(Symbol.prototype.toString),M=U(Object.prototype.hasOwnProperty),F=U(Object.prototype.toString),P=U(RegExp.prototype.test),j=(z=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(z,t)});var z;function U(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 y(e,t,r)}}function H(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;if(s&&s(e,null),!E(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(u(t)||(t[r]=e),o=e)}e[o]=!0}return e}function B(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}function W(e){const t=g(null);for(const r of c(e)){var n=l(r,2);const o=n[0],a=n[1];M(e,o)&&(E(a)?t[o]=B(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=W(a):t[o]=a)}return t}function G(e,t){for(;null!==e;){const n=p(e,t);if(n){if(n.get)return U(n.get);if("function"==typeof n.value)return U(n.value)}e=m(e)}return function(){return null}}const Y=f(["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"]),$=f(["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"]),q=f(["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"]),X=f(["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"]),K=f(["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"]),V=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z=f(["#text"]),J=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),Q=f(["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"]),ee=f(["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"]),te=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ne=d(/{{[\w\W]*|^[\w\W]*}}/g),re=d(/<%[\w\W]*|^[\w\W]*%>/g),oe=d(/\${[\w\W]*/g),ae=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),ie=d(/^aria-[\-\w]+$/),le=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ce=d(/^(?:\w+script|data):/i),se=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ue=d(/^html$/i),me=d(/^[a-z][.\w]*(-[.\w]+)+$/i),pe=function(){return"undefined"==typeof window?null:window};var fe=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe();const n=t=>e(t);if(n.version="3.4.5",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,a=o.currentScript,i=t.DocumentFragment,l=t.HTMLTemplateElement,s=t.Node,u=t.Element,m=t.NodeFilter,p=t.NamedNodeMap,d=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,h=t.HTMLFormElement,y=t.DOMParser,T=t.trustedTypes,z=u.prototype,U=G(z,"cloneNode"),B=G(z,"remove"),fe=G(z,"nextSibling"),de=G(z,"childNodes"),ge=G(z,"parentNode"),he=s&&s.prototype?G(s.prototype,"nodeType"):null;if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ye,Te="";const be=r,_e=be.implementation,Se=be.createNodeIterator,Ae=be.createDocumentFragment,Ne=be.getElementsByTagName,Ee=o.importNode;let Oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof c&&"function"==typeof ge&&_e&&void 0!==_e.createHTMLDocument;const ve=ne,xe=re,De=oe,Re=ae,ke=ie,we=ce,Ce=se,Ie=me;let Le=le,Me=null;const Fe=H({},[...Y,...$,...q,...K,...Z]);let Pe=null;const je=H({},[...J,...Q,...ee,...te]);let ze=Object.seal(g(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}})),Ue=null,He=null;const Be=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let We=!0,Ge=!0,Ye=!1,$e=!0,qe=!1,Xe=!0,Ke=!1,Ve=!1,Ze=!1,Je=!1,Qe=!1,et=!1,tt=!0,nt=!1;const rt="user-content-";let ot=!0,at=!1,it={},lt=null;const ct=H({},["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 st=null;const ut=H({},["audio","video","img","source","image","track"]);let mt=null;const pt=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ft="http://www.w3.org/1998/Math/MathML",dt="http://www.w3.org/2000/svg",gt="http://www.w3.org/1999/xhtml";let ht=gt,yt=!1,Tt=null;const bt=H({},[ft,dt,gt],v);let _t=H({},["mi","mo","mn","ms","mtext"]),St=H({},["annotation-xml"]);const At=H({},["title","style","font","a","script"]);let Nt=null;const Et=["application/xhtml+xml","text/html"];let Ot=null,vt=null;const xt=r.createElement("form"),Dt=function(e){return e instanceof RegExp||e instanceof Function},Rt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(vt&&vt===e)return;e&&"object"==typeof e||(e={}),e=W(e),Nt=-1===Et.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ot="application/xhtml+xml"===Nt?v:O,Me=M(e,"ALLOWED_TAGS")&&E(e.ALLOWED_TAGS)?H({},e.ALLOWED_TAGS,Ot):Fe,Pe=M(e,"ALLOWED_ATTR")&&E(e.ALLOWED_ATTR)?H({},e.ALLOWED_ATTR,Ot):je,Tt=M(e,"ALLOWED_NAMESPACES")&&E(e.ALLOWED_NAMESPACES)?H({},e.ALLOWED_NAMESPACES,v):bt,mt=M(e,"ADD_URI_SAFE_ATTR")&&E(e.ADD_URI_SAFE_ATTR)?H(W(pt),e.ADD_URI_SAFE_ATTR,Ot):pt,st=M(e,"ADD_DATA_URI_TAGS")&&E(e.ADD_DATA_URI_TAGS)?H(W(ut),e.ADD_DATA_URI_TAGS,Ot):ut,lt=M(e,"FORBID_CONTENTS")&&E(e.FORBID_CONTENTS)?H({},e.FORBID_CONTENTS,Ot):ct,Ue=M(e,"FORBID_TAGS")&&E(e.FORBID_TAGS)?H({},e.FORBID_TAGS,Ot):W({}),He=M(e,"FORBID_ATTR")&&E(e.FORBID_ATTR)?H({},e.FORBID_ATTR,Ot):W({}),it=!!M(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?W(e.USE_PROFILES):e.USE_PROFILES),We=!1!==e.ALLOW_ARIA_ATTR,Ge=!1!==e.ALLOW_DATA_ATTR,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,qe=e.SAFE_FOR_TEMPLATES||!1,Xe=!1!==e.SAFE_FOR_XML,Ke=e.WHOLE_DOCUMENT||!1,Je=e.RETURN_DOM||!1,Qe=e.RETURN_DOM_FRAGMENT||!1,et=e.RETURN_TRUSTED_TYPE||!1,Ze=e.FORCE_BODY||!1,tt=!1!==e.SANITIZE_DOM,nt=e.SANITIZE_NAMED_PROPS||!1,ot=!1!==e.KEEP_CONTENT,at=e.IN_PLACE||!1,Le=function(e){try{return P(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:le,ht="string"==typeof e.NAMESPACE?e.NAMESPACE:gt,_t=M(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?W(e.MATHML_TEXT_INTEGRATION_POINTS):H({},["mi","mo","mn","ms","mtext"]),St=M(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?W(e.HTML_INTEGRATION_POINTS):H({},["annotation-xml"]);const t=M(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?W(e.CUSTOM_ELEMENT_HANDLING):g(null);if(ze=g(null),M(t,"tagNameCheck")&&Dt(t.tagNameCheck)&&(ze.tagNameCheck=t.tagNameCheck),M(t,"attributeNameCheck")&&Dt(t.attributeNameCheck)&&(ze.attributeNameCheck=t.attributeNameCheck),M(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(ze.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),qe&&(Ge=!1),Qe&&(Je=!0),it&&(Me=H({},Z),Pe=g(null),!0===it.html&&(H(Me,Y),H(Pe,J)),!0===it.svg&&(H(Me,$),H(Pe,Q),H(Pe,te)),!0===it.svgFilters&&(H(Me,q),H(Pe,Q),H(Pe,te)),!0===it.mathMl&&(H(Me,K),H(Pe,ee),H(Pe,te))),Be.tagCheck=null,Be.attributeCheck=null,M(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Be.tagCheck=e.ADD_TAGS:E(e.ADD_TAGS)&&(Me===Fe&&(Me=W(Me)),H(Me,e.ADD_TAGS,Ot))),M(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Be.attributeCheck=e.ADD_ATTR:E(e.ADD_ATTR)&&(Pe===je&&(Pe=W(Pe)),H(Pe,e.ADD_ATTR,Ot))),M(e,"ADD_URI_SAFE_ATTR")&&E(e.ADD_URI_SAFE_ATTR)&&H(mt,e.ADD_URI_SAFE_ATTR,Ot),M(e,"FORBID_CONTENTS")&&E(e.FORBID_CONTENTS)&&(lt===ct&&(lt=W(lt)),H(lt,e.FORBID_CONTENTS,Ot)),M(e,"ADD_FORBID_CONTENTS")&&E(e.ADD_FORBID_CONTENTS)&&(lt===ct&&(lt=W(lt)),H(lt,e.ADD_FORBID_CONTENTS,Ot)),ot&&(Me["#text"]=!0),Ke&&H(Me,["html","head","body"]),Me.table&&(H(Me,["tbody"]),delete Ue.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ye=e.TRUSTED_TYPES_POLICY,Te=ye.createHTML("")}else void 0===ye&&(ye=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}}(T,a)),null!==ye&&"string"==typeof Te&&(Te=ye.createHTML(""));f&&f(e),vt=e},kt=H({},[...$,...q,...X]),wt=H({},[...K,...V]),Ct=function(e){A(n.removed,{element:e});try{ge(e).removeChild(e)}catch(t){B(e)}},It=function(e,t){try{A(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){A(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Je||Qe)try{Ct(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Lt=function(e){let t=null,n=null;if(Ze)e="<remove></remove>"+e;else{const t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Nt&&ht===gt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ye?ye.createHTML(e):e;if(ht===gt)try{t=(new y).parseFromString(o,Nt)}catch(e){}if(!t||!t.documentElement){t=_e.createDocument(ht,"template",null);try{t.documentElement.innerHTML=yt?Te:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),ht===gt?Ne.call(t,Ke?"html":"body")[0]:Ke?t.documentElement:a},Mt=function(e){return Se.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Ft=function(e){e.normalize();const t=Se.call(e.ownerDocument||e,e,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let n=t.nextNode();for(;n;){let e=n.data;b([ve,xe,De],t=>{e=D(e,t," ")}),n.data=e,n=t.nextNode()}},Pt=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)},jt=function(e){if(!he||"object"!=typeof e||null===e)return!1;try{return"number"==typeof he(e)}catch(e){return!1}};function zt(e,t,r){b(e,e=>{e.call(n,t,r,vt)})}const Ut=function(e){let t=null;if(zt(Oe.beforeSanitizeElements,e,null),Pt(e))return Ct(e),!0;const r=Ot(e.nodeName);if(zt(Oe.uponSanitizeElement,e,{tagName:r,allowedTags:Me}),Xe&&e.hasChildNodes()&&!jt(e.firstElementChild)&&P(/<[/\w!]/g,e.innerHTML)&&P(/<[/\w!]/g,e.textContent))return Ct(e),!0;if(Xe&&e.namespaceURI===gt&&"style"===r&&jt(e.firstElementChild))return Ct(e),!0;if(7===e.nodeType)return Ct(e),!0;if(Xe&&8===e.nodeType&&P(/<[/\w]/g,e.data))return Ct(e),!0;if(Ue[r]||!(Be.tagCheck instanceof Function&&Be.tagCheck(r))&&!Me[r]){if(!Ue[r]&&Wt(r)){if(ze.tagNameCheck instanceof RegExp&&P(ze.tagNameCheck,r))return!1;if(ze.tagNameCheck instanceof Function&&ze.tagNameCheck(r))return!1}if(ot&&!lt[r]){const t=ge(e)||e.parentNode,n=de(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=U(n[r],!0);t.insertBefore(o,fe(e))}}return Ct(e),!0}return e instanceof u&&!function(e){let t=ge(e);t&&t.tagName||(t={namespaceURI:ht,tagName:"template"});const n=O(e.tagName),r=O(t.tagName);return!!Tt[e.namespaceURI]&&(e.namespaceURI===dt?t.namespaceURI===gt?"svg"===n:t.namespaceURI===ft?"svg"===n&&("annotation-xml"===r||_t[r]):Boolean(kt[n]):e.namespaceURI===ft?t.namespaceURI===gt?"math"===n:t.namespaceURI===dt?"math"===n&&St[r]:Boolean(wt[n]):e.namespaceURI===gt?!(t.namespaceURI===dt&&!St[r])&&!(t.namespaceURI===ft&&!_t[r])&&!wt[n]&&(At[n]||!kt[n]):!("application/xhtml+xml"!==Nt||!Tt[e.namespaceURI]))}(e)?(Ct(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!P(/<\/no(script|embed|frames)/i,e.innerHTML)?(qe&&3===e.nodeType&&(t=e.textContent,b([ve,xe,De],e=>{t=D(t,e," ")}),e.textContent!==t&&(A(n.removed,{element:e.cloneNode()}),e.textContent=t)),zt(Oe.afterSanitizeElements,e,null),!1):(Ct(e),!0)},Ht=function(e,t,n){if(He[t])return!1;if(tt&&("id"===t||"name"===t)&&(n in r||n in xt))return!1;const o=Pe[t]||Be.attributeCheck instanceof Function&&Be.attributeCheck(t,e);if(Ge&&!He[t]&&P(Re,t));else if(We&&P(ke,t));else if(!o||He[t]){if(!(Wt(e)&&(ze.tagNameCheck instanceof RegExp&&P(ze.tagNameCheck,e)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(e))&&(ze.attributeNameCheck instanceof RegExp&&P(ze.attributeNameCheck,t)||ze.attributeNameCheck instanceof Function&&ze.attributeNameCheck(t,e))||"is"===t&&ze.allowCustomizedBuiltInElements&&(ze.tagNameCheck instanceof RegExp&&P(ze.tagNameCheck,n)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(n))))return!1}else if(mt[t]);else if(P(Le,D(n,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==R(n,"data:")||!st[e])if(Ye&&!P(we,D(n,Ce,"")));else if(n)return!1;return!0},Bt=H({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wt=function(e){return!Bt[O(e)]&&P(Ie,e)},Gt=function(e){zt(Oe.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Pt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],i=a.name,l=a.namespaceURI,c=a.value,s=Ot(i),u=c;let m="value"===i?u:k(u);if(r.attrName=s,r.attrValue=m,r.keepAttr=!0,r.forceKeepAttr=void 0,zt(Oe.uponSanitizeAttribute,e,r),m=r.attrValue,!nt||"id"!==s&&"name"!==s||0===R(m,rt)||(It(i,e),m=rt+m),Xe&&P(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){It(i,e);continue}if("attributename"===s&&x(m,"href")){It(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){It(i,e);continue}if(!$e&&P(/\/>/i,m)){It(i,e);continue}qe&&b([ve,xe,De],e=>{m=D(m,e," ")});const p=Ot(e.nodeName);if(Ht(p,s,m)){if(ye&&"object"==typeof T&&"function"==typeof T.getAttributeType)if(l);else switch(T.getAttributeType(p,s)){case"TrustedHTML":m=ye.createHTML(m);break;case"TrustedScriptURL":m=ye.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,i,m):e.setAttribute(i,m),Pt(e)?Ct(e):S(n.removed)}catch(t){It(i,e)}}else It(i,e)}zt(Oe.afterSanitizeAttributes,e,null)},Yt=function(e){let t=null;const n=Mt(e);for(zt(Oe.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)zt(Oe.uponSanitizeShadowNode,t,null),Ut(t),Gt(t),t.content instanceof i&&Yt(t.content);zt(Oe.afterSanitizeShadowDOM,e,null)},$t=function(e){if(1===e.nodeType&&e.shadowRoot instanceof i){const t=e.shadowRoot;$t(t),Yt(t)}const t=e.childNodes;if(!t)return;const n=[];b(t,e=>{A(n,e)});for(const e of n)$t(e)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,l=null,c=null;if(yt=!e,yt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!jt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return w(e);case"boolean":return C(e);case"bigint":return I?I(e):"0";case"symbol":return L?L(e):"Symbol()";case"undefined":default:return F(e);case"function":case"object":{if(null===e)return F(e);const t=e,n=G(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:F(e)}return F(e)}}}(e)))throw j("dirty is not a string, aborting");if(!n.isSupported)return e;if(Ve||Rt(t),n.removed=[],"string"==typeof e&&(at=!1),at){const t=e.nodeName;if("string"==typeof t){const e=Ot(t);if(!Me[e]||Ue[e])throw j("root node is forbidden and cannot be sanitized in-place")}$t(e)}else if(jt(e))r=Lt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),$t(a);else{if(!Je&&!qe&&!Ke&&-1===e.indexOf("<"))return ye&&et?ye.createHTML(e):e;if(r=Lt(e),!r)return Je?null:et?Te:""}r&&Ze&&Ct(r.firstChild);const s=Mt(at?e:r);for(;l=s.nextNode();)Ut(l),Gt(l),l.content instanceof i&&Yt(l.content);if(at)return qe&&Ft(e),e;if(Je){if(qe&&Ft(r),Qe)for(c=Ae.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Pe.shadowroot||Pe.shadowrootmode)&&(c=Ee.call(o,c,!0)),c}let u=Ke?r.outerHTML:r.innerHTML;return Ke&&Me["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&P(ue,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),qe&&b([ve,xe,De],e=>{u=D(u,e," ")}),ye&&et?ye.createHTML(u):u},n.setConfig=function(){Rt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ve=!0},n.clearConfig=function(){vt=null,Ve=!1},n.isValidAttribute=function(e,t,n){vt||Rt({});const r=Ot(e),o=Ot(t);return Ht(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&A(Oe[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=_(Oe[e],t);return-1===n?void 0:N(Oe[e],n,1)[0]}return S(Oe[e])},n.removeHooks=function(e){Oe[e]=[]},n.removeAllHooks=function(){Oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),de=r(6145),ge=r(4848);const he=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function ye({item:e}){return e.imgback?(0,ge.jsx)("img",{src:e.imgback,alt:e.imgalt||"",className:he("mg-card__image",e.imageScale&&`mg-card__image--${e.imageScale}`),...!e.imageScale&&{width:e.iconSize||72,height:e.iconSize||72}}):e.icon||e.iconColor?(0,ge.jsx)("span",{className:he("mg-card__icon-wrap",e.imageScale&&`mg-card__icon-wrap--${e.imageScale}`,e.iconColor&&"mg-card__icon-wrap--colored"),"aria-hidden":"true",...(e.iconColor||e.iconFgColor)&&{style:{...e.iconColor&&{"--mg-icon-bg":e.iconColor},...e.iconFgColor&&{"--mg-icon-fg":e.iconFgColor}}},children:e.icon&&(0,ge.jsx)("span",{className:e.icon})}):null}function Te({data:e,centered:t=!1,variant:n="default"}){return(0,ge.jsx)(ge.Fragment,{children:e.map((e,r)=>(0,ge.jsxs)("article",{className:he("mg-card","mg-card__icon",t&&"mg-card__icon--centered",n&&"default"!==n&&`mg-card__icon--${n}`,e.borderColor&&"mg-card__icon--bordered"),...e.borderColor&&{style:{"--mg-card-border":e.borderColor}},children:[(e.icon||e.imgback||e.iconColor)&&(0,ge.jsxs)("div",{className:"mg-card__visual",children:[e.visualLabel&&(0,ge.jsx)("span",{className:"mg-card__visual-label",children:e.visualLabel}),e.srOnlyTitle&&e.link?(0,ge.jsx)("a",{href:e.link,className:"mg-card__visual-link",children:(0,ge.jsx)(ye,{item:e})}):(0,ge.jsx)(ye,{item:e})]}),(0,ge.jsxs)("div",{className:"mg-card__content",children:[e.label&&(0,ge.jsx)("div",{className:"mg-card__meta",children:(0,ge.jsx)("span",{className:"mg-card__label",children:e.label})}),e.title&&(0,ge.jsx)("header",{className:he("mg-card__title",e.srOnlyTitle&&"mg-u-sr-only"),children:!e.link||e.button||e.srOnlyTitle?e.title?.trim():(0,ge.jsx)("a",{href:e.link,children:e.title?.trim()})}),e.summaryText&&(0,ge.jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:fe.sanitize(e.summaryText)}}),e.button&&(0,ge.jsx)("div",{className:"mg-card__cta",children:(0,ge.jsx)(de.F,{type:e.buttonType||"Primary",label:e.button,href:e.link})}),e.linkText&&!e.button&&(0,ge.jsx)("p",{className:"mg-card__link",children:(0,ge.jsx)("a",{href:e.link,children:e.linkText})})]})]},e.id||e.title||`icon-card-${r}`))})}function be(e){const{dataset:t}=e,n={centered:"true"===t.centered,variant:t.variant||"default"};try{n.data=t.items?JSON.parse(t.items):[]}catch{n.data=[]}return n}Te.propTypes={data:a().arrayOf(a().shape({id:a().oneOfType([a().string,a().number]),icon:a().string,imgback:a().string,imgalt:a().string,iconSize:a().number,imageScale:a().oneOf(["small","medium","large","full"]),iconColor:a().string,iconFgColor:a().string,borderColor:a().string,label:a().string,visualLabel:a().string,title:a().string.isRequired,srOnlyTitle:a().bool,summaryText:a().string,link:a().string,linkText:a().string,button:a().string,buttonType:a().oneOf(["Primary","Secondary"])})).isRequired,centered:a().bool,variant:a().oneOf(["default","negative"])};export{Te as IconCard,Te as default,be as fromElement};
|