@undrr/undrr-mangrove 2.0.1 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +1 -1
  2. package/components/BookCard.js +1 -1
  3. package/components/Breadcrumbs.js +1 -1
  4. package/components/Checkbox.js +1 -1
  5. package/components/Chips.js +1 -1
  6. package/components/CopyButton.js +1 -1
  7. package/components/CtaButton.js +1 -1
  8. package/components/Drawer.js +2 -2
  9. package/components/EmbedContainer.js +1 -1
  10. package/components/Footer.js +1 -1
  11. package/components/FormAction.js +1 -1
  12. package/components/FormErrorSummary.js +1 -1
  13. package/components/FormGroup.js +1 -1
  14. package/components/FullWidth.js +1 -1
  15. package/components/Gallery.js +2 -2
  16. package/components/Hero.js +2 -2
  17. package/components/HighlightBox.js +1 -1
  18. package/components/HorizontalBookCard.js +1 -1
  19. package/components/HorizontalCard.js +1 -1
  20. package/components/IconCard.js +1 -1
  21. package/components/Legend.js +1 -1
  22. package/components/Loader.js +2 -2
  23. package/components/MegaMenu.js +2 -2
  24. package/components/Notice.js +1 -1
  25. package/components/PageHeader.js +1 -1
  26. package/components/Pager.js +1 -1
  27. package/components/ProgressBar.js +2 -2
  28. package/components/QuoteHighlight.js +1 -1
  29. package/components/Radio.js +1 -1
  30. package/components/Range.js +1 -1
  31. package/components/ScrollContainer.js +1 -1
  32. package/components/SegmentedControl.js +1 -1
  33. package/components/Select.js +1 -1
  34. package/components/ServiceNotice.js +1 -1
  35. package/components/ShareButtons.js +1 -1
  36. package/components/ShowMore.js +2 -2
  37. package/components/SkipLink.js +1 -1
  38. package/components/StatsCard.js +1 -1
  39. package/components/SyndicationSearchWidget.js +2 -2
  40. package/components/Tab.js +1 -1
  41. package/components/TextCta.js +1 -1
  42. package/components/TextInput.js +1 -1
  43. package/components/Textarea.js +1 -1
  44. package/components/Tree.js +1 -1
  45. package/components/UserFeedback.js +1 -1
  46. package/components/VerticalCard.js +1 -1
  47. package/components/hydrate.js +2 -2
  48. package/css/style-all.css +41 -42
  49. package/css/style-all.css.map +1 -1
  50. package/css/style-delta.css +41 -42
  51. package/css/style-delta.css.map +1 -1
  52. package/css/style-gutenberg.css +4 -4
  53. package/css/style-gutenberg.css.map +1 -1
  54. package/css/style-irp.css +41 -42
  55. package/css/style-irp.css.map +1 -1
  56. package/css/style-mcr.css +41 -42
  57. package/css/style-mcr.css.map +1 -1
  58. package/css/style-preventionweb.css +41 -42
  59. package/css/style-preventionweb.css.map +1 -1
  60. package/css/style.css +41 -42
  61. package/css/style.css.map +1 -1
  62. package/docs/EDITORIAL-MANUAL.md +1 -1
  63. package/docs/llms-motion.txt +125 -0
  64. package/error-pages/401.html +1 -1
  65. package/error-pages/403.html +1 -1
  66. package/error-pages/404.html +1 -1
  67. package/error-pages/429.html +1 -1
  68. package/error-pages/500.html +1 -1
  69. package/error-pages/502.html +1 -1
  70. package/error-pages/503.html +1 -1
  71. package/error-pages/504.html +1 -1
  72. package/error-pages/5xx.html +1 -1
  73. package/error-pages/challenge.html +1 -1
  74. package/error-pages/managed-challenge.html +1 -1
  75. package/js/cite-this.js +685 -43
  76. package/js/on-this-page-nav.js +80 -1
  77. package/js/show-more.js +149 -21
  78. package/package.json +1 -1
  79. package/scss/Atom/Images/AuthorImage/author-image.scss +9 -2
  80. package/scss/Atom/ReachElement/Details/details.scss +4 -2
  81. package/scss/Components/Cards/Card/card.scss +8 -2
  82. package/scss/Components/Cards/StatsCard/stats-card.scss +8 -1
  83. package/scss/Components/CiteThis/cite-this.scss +162 -9
  84. package/scss/Components/Gallery/gallery.scss +40 -15
  85. package/scss/Components/Hero/hero.scss +165 -0
  86. package/scss/Components/MegaMenu/mega-menu.scss +42 -121
  87. package/scss/Components/Navigation/Drawer/drawer.scss +10 -0
  88. package/scss/Components/OnThisPageNav/on-this-page-nav.scss +108 -3
  89. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +258 -127
  90. package/scss/Components/Tab/tab.scss +2 -1
  91. package/scss/Patterns/RichContent/rich-content.scss +177 -0
  92. package/scss/Patterns/_shared/pattern-demo.scss +5 -0
  93. package/scss/Utilities/Loader/loader.scss +89 -11
  94. package/scss/Utilities/ShowMore/show-more.scss +6 -0
  95. package/scss/assets/scss/_components.scss +3 -0
  96. package/scss/assets/scss/_foundational.scss +23 -8
  97. package/scss/assets/scss/_mixins.scss +5 -0
  98. package/scss/assets/scss/_variables.scss +1 -1
@@ -3,7 +3,7 @@
3
3
  * Storybook: https://mangrove.undrr.org/
4
4
  * LLMs context: https://mangrove.undrr.org/llms.txt
5
5
  * Repository: https://github.com/PreventionWeb/undrr-mangrove
6
- * Compiled on: 2026-10-12T16:04:17.202Z
6
+ * Compiled on: 2026-10-16T08:00:36.994Z
7
7
  */
8
8
  /*! For license information please see StatsCard.js.LICENSE.txt */
9
9
  import"react";var t={2694(t,e,n){var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==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 e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556(t,e,n){t.exports=n(2694)()},6925(t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.cw=t=>{var e;return()=>{if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n.cw(function(t,e){var n=Symbol.for("react.transitional.element");function r(t,e,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==e.key&&(o=""+e.key),"key"in e)for(var i in r={},e)"key"!==i&&(r[i]=e[i]);else r=e;return e=r.ref,{$$typeof:n,type:t,key:o,ref:void 0!==e?e:null,props:r}}Symbol.for("react.fragment"),e.jsx=r,e.jsxs=r}),o=n.cw(function(t,e){t.exports=r()}),i=n(5556),a=n.n(i);o();const l=({type:t=2,children:e,className:n,tabIndex:o,...i})=>{const a=`h${Math.min(Math.max(parseInt(t,10)||2,1),6)}`;return(0,r().jsx)(a,{className:n,tabIndex:o,...i,children:e})};function c(t,e){this.v=t,this.k=e}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t,e)||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.")}()}function f(t){var e,n;function r(e,n){try{var i=t[e](n),a=i.value,l=a instanceof c;Promise.resolve(l?a.v:a).then(function(n){if(l){var c="return"===e&&a.k?e:"next";if(!a.k||n.done)return r(c,n);n=t[c](n).value}o(!!i.done,n)},function(t){r("throw",t)})}catch(t){o(2,t)}}function o(t,o){2===t?e.reject(o):e.resolve({value:o,done:t}),(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,o){return new Promise(function(i,a){var l={key:t,arg:o,resolve:i,reject:a,next:null};n?n=n.next=l:(e=n=l,r(t,o))})},"function"!=typeof t.return&&(this.return=void 0)}f.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},f.prototype.next=function(t){return this._invoke("next",t)},f.prototype.throw=function(t){return this._invoke("throw",t)},f.prototype.return=function(t){return this._invoke("return",t)};const p=Object.entries,m=Object.setPrototypeOf,d=Object.isFrozen,h=Object.getPrototypeOf,y=Object.getOwnPropertyDescriptor;let g=Object.freeze,b=Object.seal,v=Object.create,T="undefined"!=typeof Reflect&&Reflect,S=T.apply,x=T.construct;g||(g=function(t){return t}),b||(b=function(t){return t}),S||(S=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}),x||(x=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const w=Y(Array.prototype.forEach);Array.prototype.indexOf;const A=Y(Array.prototype.lastIndexOf),E=Y(Array.prototype.pop),_=Y(Array.prototype.push);Array.prototype.slice;const N=Y(Array.prototype.splice),O=Array.isArray,k=Y(String.prototype.toLowerCase),D=Y(String.prototype.toString),R=Y(String.prototype.match),C=Y(String.prototype.replace),I=Y(String.prototype.indexOf),L=Y(String.prototype.trim),M=Y(Number.prototype.toString),z=Y(Boolean.prototype.toString),P="undefined"==typeof BigInt?null:Y(BigInt.prototype.toString),j="undefined"==typeof Symbol?null:Y(Symbol.prototype.toString),U=Y(Object.prototype.hasOwnProperty),F=Y(Object.prototype.toString),H=Y(RegExp.prototype.test),B=(W=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return x(W,e)});var W;function Y(t){return function(e){e instanceof RegExp&&(e.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 S(t,e,r)}}function $(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;if(m&&m(t,null),!O(e))return t;let r=e.length;for(;r--;){let o=e[r];if("string"==typeof o){const t=n(o);t!==o&&(d(e)||(e[r]=t),o=t)}t[o]=!0}return t}function G(t){for(let e=0;e<t.length;e++)U(t,e)||(t[e]=null);return t}function q(t){const e=v(null);for(const r of p(t)){var n=u(r,2);const o=n[0],i=n[1];U(t,o)&&(O(i)?e[o]=G(i):i&&"object"==typeof i&&i.constructor===Object?e[o]=q(i):e[o]=i)}return e}function X(t,e){for(;null!==t;){const n=y(t,e);if(n){if(n.get)return Y(n.get);if("function"==typeof n.value)return Y(n.value)}t=h(t)}return function(){return null}}const K=g(["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"]),V=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Z=g(["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"]),J=g(["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"]),Q=g(["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"]),tt=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),et=g(["#text"]),nt=g(["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"]),rt=g(["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","dominant-baseline","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","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),ot=g(["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"]),it=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),at=b(/{{[\w\W]*|^[\w\W]*}}/g),lt=b(/<%[\w\W]*|^[\w\W]*%>/g),ct=b(/\${[\w\W]*/g),st=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),ut=b(/^aria-[\-\w]+$/),ft=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pt=b(/^(?:\w+script|data):/i),mt=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dt=b(/^html$/i),ht=b(/^[a-z][.\w]*(-[.\w]+)+$/i),yt=b(/<[/\w!]/g),gt=b(/<[/\w]/g),bt=b(/<\/no(script|embed|frames)/i),vt=b(/\/>/i),Tt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],St=g($({},Tt)),xt=function(){const t={};return w(Tt,e=>{t[e]=b(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),g(t)}(),wt=function(){return"undefined"==typeof window?null:window},At=function(t,e,n,r){return U(t,e)&&O(t[e])?$(r.base?q(r.base):{},t[e],r.transform):n},Et=function(t,e,n){const r=U(t,e)?t[e]:void 0;return r&&"object"==typeof r?q(r):n()};var _t=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wt();const n=e=>t(e);if(n.version="3.4.16",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let r=e.document;const o=r,i=o.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,f=e.trustedTypes,m=c.prototype,d=X(m,"cloneNode"),h=X(m,"remove"),y=X(m,"removeAttributeNode"),T=X(m,"nextSibling"),S=X(m,"childNodes"),x=X(m,"parentNode"),W=X(m,"shadowRoot"),Y=X(m,"attributes"),G=l&&l.prototype?X(l.prototype,"nodeType"):null,Tt=l&&l.prototype?X(l.prototype,"nodeName"):null,_t=l&&l.prototype?X(l.prototype,"ownerDocument"):null,Nt=function(t){return G?G(t):t.nodeType},Ot=function(t){return Tt?Tt(t):t.nodeName};if("function"==typeof a){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let kt,Dt,Rt="",Ct=!1,It=0;const Lt=function(){if(It>0)throw B('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Mt=function(t){Lt(),It++;try{return kt.createHTML(t)}finally{It--}},zt=r,Pt=zt.implementation,jt=zt.createNodeIterator,Ut=zt.createDocumentFragment,Ft=zt.getElementsByTagName,Ht=o.importNode;let Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof p&&"function"==typeof x&&Pt&&void 0!==Pt.createHTMLDocument;const Wt=at,Yt=lt,$t=ct,Gt=st,qt=ut,Xt=pt,Kt=mt,Vt=ht;let Zt=ft,Jt=null;const Qt=$({},[...K,...V,...Z,...Q,...et]);let te=null;const ee=$({},[...nt,...rt,...ot,...it]);let ne=Object.seal(v(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}})),re=null,oe=null;const ie=Object.seal(v(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ae=!0,le=!0,ce=!1,se=!0,ue=!1,fe=!0,pe=!1,me=!1,de=null,he=null,ye=!1,ge=!1,be=!1,ve=!1,Te=!0,Se=!1;const xe="user-content-";let we=!0,Ae=!1,Ee={},_e=null;const Ne=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Oe=null;const ke=$({},["audio","video","img","source","image","track"]);let De=null;const Re=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let Me=Le,ze=!1,Pe=null;const je=$({},[Ce,Ie,Le],D),Ue=g(["mi","mo","mn","ms","mtext"]);let Fe=$({},Ue);const He=g(["annotation-xml"]);let Be=$({},He);const We=$({},["title","style","font","a","script"]);let Ye=null;const $e=["application/xhtml+xml","text/html"];let Ge=null,qe=null;const Xe=r.createElement("form"),Ke=function(t){return t instanceof RegExp||t instanceof Function},Ve=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(qe&&qe===t)return;t&&"object"==typeof t||(t={}),t=q(t),Ye=-1===$e.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Ge="application/xhtml+xml"===Ye?D:k,Jt=At(t,"ALLOWED_TAGS",Qt,{transform:Ge}),te=At(t,"ALLOWED_ATTR",ee,{transform:Ge}),Pe=At(t,"ALLOWED_NAMESPACES",je,{transform:D}),De=At(t,"ADD_URI_SAFE_ATTR",Re,{transform:Ge,base:Re}),Oe=At(t,"ADD_DATA_URI_TAGS",ke,{transform:Ge,base:ke}),_e=At(t,"FORBID_CONTENTS",Ne,{transform:Ge}),re=At(t,"FORBID_TAGS",q({}),{transform:Ge}),oe=At(t,"FORBID_ATTR",q({}),{transform:Ge}),Ee=!!U(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?q(t.USE_PROFILES):t.USE_PROFILES),ae=!1!==t.ALLOW_ARIA_ATTR,le=!1!==t.ALLOW_DATA_ATTR,ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,se=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ue=t.SAFE_FOR_TEMPLATES||!1,fe=!1!==t.SAFE_FOR_XML,pe=t.WHOLE_DOCUMENT||!1,ge=t.RETURN_DOM||!1,be=t.RETURN_DOM_FRAGMENT||!1,ve=t.RETURN_TRUSTED_TYPE||!1,ye=t.FORCE_BODY||!1,Te=!1!==t.SANITIZE_DOM,Se=t.SANITIZE_NAMED_PROPS||!1,we=!1!==t.KEEP_CONTENT,Ae=t.IN_PLACE||!1,Zt=function(t){try{return H(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:ft,Me="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,Fe=Et(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>$({},Ue)),Be=Et(t,"HTML_INTEGRATION_POINTS",()=>$({},He));const e=Et(t,"CUSTOM_ELEMENT_HANDLING",()=>v(null));if(ne=v(null),U(e,"tagNameCheck")&&Ke(e.tagNameCheck)&&(ne.tagNameCheck=e.tagNameCheck),U(e,"attributeNameCheck")&&Ke(e.attributeNameCheck)&&(ne.attributeNameCheck=e.attributeNameCheck),U(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ne.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),b(ne),ue&&(le=!1),be&&(ge=!0),Ee&&(Jt=$({},et),te=v(null),!0===Ee.html&&($(Jt,K),$(te,nt)),!0===Ee.svg&&($(Jt,V),$(te,rt),$(te,it)),!0===Ee.svgFilters&&($(Jt,Z),$(te,rt),$(te,it)),!0===Ee.mathMl&&($(Jt,Q),$(te,ot),$(te,it))),ie.tagCheck=null,ie.attributeCheck=null,U(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ie.tagCheck=t.ADD_TAGS:O(t.ADD_TAGS)&&(Jt===Qt&&(Jt=q(Jt)),$(Jt,t.ADD_TAGS,Ge))),U(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ie.attributeCheck=t.ADD_ATTR:O(t.ADD_ATTR)&&(te===ee&&(te=q(te)),$(te,t.ADD_ATTR,Ge))),U(t,"ADD_FORBID_CONTENTS")&&O(t.ADD_FORBID_CONTENTS)&&(_e===Ne&&(_e=q(_e)),$(_e,t.ADD_FORBID_CONTENTS,Ge)),we&&(Jt["#text"]=!0),pe&&$(Jt,["html","head","body"]),Jt.table&&($(Jt,["tbody"]),delete re.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=kt;kt=t.TRUSTED_TYPES_POLICY;try{Rt=Mt("")}catch(t){throw kt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(kt=void 0,Rt=""):(void 0===kt&&(Ct||(Dt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(f,i),Ct=!0),kt=Dt),kt&&"string"==typeof Rt&&(Rt=Mt("")));g&&g(t),qe=t},Ze=$({},[...V,...Z,...J]),Je=$({},[...Q,...tt]),Qe=function(t){_(n.removed,{element:t});try{x(t).removeChild(t)}catch(e){if(h(t),!x(t))throw B("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tn=function(t,e,n){try{y(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},en=function(t){on(t);const e=S(t);if(e){const t=[];w(e,e=>{_(t,e)}),w(t,t=>{try{h(t)}catch(t){}})}const n=Y(t);if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&tn(t,r,o)}},nn=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}_(n.removed,{attribute:r||null,from:e});try{r?y(e,r):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ge||be)try{Qe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},rn=function(t){const e=Y(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||te[Ge(o)]||tn(t,r,o)}},on=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===Nt(t)&&rn(t);const n=S(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},an=function(t,e){return!!fe&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},ln=function(t){let e=null,n=null;if(ye)t="<remove></remove>"+t;else{const e=R(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ye&&Me===Le&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=kt?Mt(t):t;if(Me===Le)try{e=(new u).parseFromString(o,Ye)}catch(t){}if(!e||!e.documentElement){e=Pt.createDocument(Me,"template",null);try{e.documentElement.innerHTML=ze?Rt:o}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Me===Le?Ft.call(e,pe?"html":"body")[0]:pe?e.documentElement:i},cn=function(t){const e=_t?_t(t):t.ownerDocument;return jt.call(e||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},sn=function(t){return t=C(t,Wt," "),t=C(t,Yt," "),C(t,$t," ")},un=function(t){var e;t.normalize();const n=_t?_t(t):t.ownerDocument,r=jt.call(n||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=sn(o.data),o=r.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&w(i,t=>{pn(t.content)&&un(t.content)})},fn=function(t){const e=Tt?Tt(t):null;return"string"==typeof e&&"form"===Ge(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==Y(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==G(t)||t.childNodes!==S(t))},pn=function(t){if(!G||"object"!=typeof t||null===t)return!1;try{return 11===G(t)}catch(t){return!1}},mn=function(t){if(!G||"object"!=typeof t||null===t)return!1;try{return"number"==typeof G(t)}catch(t){return!1}};function dn(t,e,r){0!==t.length&&w(t,t=>{t.call(n,e,r,qe)})}const hn=function(t,e){if(t instanceof RegExp)return H(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(t(e,...r))}return!1},yn=function(t,e,n,r){return 0===t.length?e:e===n||e===r?q(e):e},gn=function(t,e){return t!==e&&null===x(t)&&(Ae&&on(t),!0)},bn=function(t,e){if(dn(Bt.beforeSanitizeElements,t,null),gn(t,e))return!0;if(fn(t))return Qe(t),!0;const r=Ge(Ot(t));if(Jt=yn(Bt.uponSanitizeElement,Jt,Qt,de),dn(Bt.uponSanitizeElement,t,{tagName:r,allowedTags:Jt}),gn(t,e))return!0;if(function(t,e){return!!(fe&&t.hasChildNodes()&&!mn(t.firstElementChild)&&H(yt,t.textContent)&&H(yt,t.innerHTML))||!!(fe&&t.namespaceURI===Le&&St[e]&&(mn(t.firstElementChild)||"string"==typeof t.textContent&&H(xt[e],t.textContent)))||7===t.nodeType||!(!fe||8!==t.nodeType||!H(gt,t.data))}(t,r))return Qe(t),!0;if(re[r]||!(ie.tagCheck instanceof Function&&ie.tagCheck(r))&&!Jt[r]){const n=function(t,e,n){if(!re[e]&&Sn(e)&&hn(ne.tagNameCheck,e))return!1;if(we&&!_e[e]){const e=x(t),r=S(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const i=t===n?d(r[o],!0):r[o];e.insertBefore(i,T(t))}}return Qe(t),!0}(t,r,e);return!(!1!==n||(dn(Bt.afterSanitizeElements,t,null),!gn(t,e)))||n}if(1===Nt(t)&&!function(t){let e=x(t);e&&e.tagName||(e={namespaceURI:Me,tagName:"template"});const n=k(t.tagName),r=k(e.tagName);return!!Pe[t.namespaceURI]&&(t.namespaceURI===Ie?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===Ce?"svg"===t&&("annotation-xml"===n||Fe[n]):Boolean(Ze[t])}(n,e,r):t.namespaceURI===Ce?function(t,e,n){return e.namespaceURI===Le?"math"===t:e.namespaceURI===Ie?"math"===t&&Be[n]:Boolean(Je[t])}(n,e,r):t.namespaceURI===Le?function(t,e,n){return!(e.namespaceURI===Ie&&!Be[n])&&!(e.namespaceURI===Ce&&!Fe[n])&&!Je[t]&&(We[t]||!Ze[t])}(n,e,r):!("application/xhtml+xml"!==Ye||!Pe[t.namespaceURI]))}(t))return Qe(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&H(bt,t.innerHTML))return Qe(t),!0;if(ue&&3===t.nodeType){const e=sn(t.textContent);t.textContent!==e&&(_(n.removed,{element:t.cloneNode()}),t.textContent=e)}return dn(Bt.afterSanitizeElements,t,null),gn(t,e)},vn=function(t,e,n){if(oe[e])return!1;if(an(e,t))return!1;if(Te&&("id"===e||"name"===e)&&(n in r||n in Xe))return!1;const o=te[e]||ie.attributeCheck instanceof Function&&ie.attributeCheck(e,t);return!(!le||!H(Gt,e))||!(!ae||!H(qt,e))||(o?!(!De[e]&&!H(Zt,C(n,Kt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==I(n,"data:")||!Oe[t])&&(!ce||H(Xt,C(n,Kt,"")))&&n):Sn(t)&&hn(ne.tagNameCheck,t)&&hn(ne.attributeNameCheck,e,t)||"is"===e&&ne.allowCustomizedBuiltInElements&&hn(ne.tagNameCheck,n))},Tn=$({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Sn=function(t){return!Tn[k(t)]&&H(Vt,t)},xn=function(t,e,n,r){if(kt&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!n)switch(f.getAttributeType(t,e)){case"TrustedHTML":return Mt(r);case"TrustedScriptURL":return function(t){Lt(),It++;try{return kt.createScriptURL(t)}finally{It--}}(r)}return r},wn=function(t,e,n,r){try{return n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),!fn(t)||(Qe(t),!1)}catch(n){return nn(e,t),!1}},An=function(t,e){if(dn(Bt.beforeSanitizeAttributes,t,null),gn(t,e))return;const r=t.attributes;if(!r||fn(t))return;te=yn(Bt.uponSanitizeAttribute,te,ee,he);const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let i=r.length;const a=Ge(t.nodeName);for(;i--;){const e=r[i],l=e.name,c=e.namespaceURI,s=e.value,u=Ge(l),f=s;let p="value"===l?f:L(f),m=!1;o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,dn(Bt.uponSanitizeAttribute,t,o),p=o.attrValue,!Se||"id"!==u&&"name"!==u||0===I(p,xe)||(nn(l,t,e),p=xe+p,m=!0),fe&&H(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&R(p,"href")?nn(l,t,e):o.forceKeepAttr||(!o.keepAttr||!se&&H(vt,p)?nn(l,t,e):(ue&&(p=sn(p)),vn(a,u,p)?(p=xn(a,u,c,p),p!==f&&wn(t,l,c,p)&&m&&E(n.removed)):nn(l,t,e)))}dn(Bt.afterSanitizeAttributes,t,null),gn(t,e)},En=function(t){let e=null;const n=cn(t);for(dn(Bt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(dn(Bt.uponSanitizeShadowNode,e,null),bn(e,t),An(e,t),pn(e.content)&&En(e.content),1===Nt(e)){const t=W(e);pn(t)&&(_n(t),En(t))}dn(Bt.afterSanitizeShadowDOM,t,null)},_n=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){En(t.shadow);continue}const n=t.node,r=1===Nt(n),o=S(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=Tt?Tt(n):null;if("string"==typeof t&&"template"===Ge(t)){const t=n.content;pn(t)&&e.push({node:t,shadow:null})}}if(r){const t=W(n);pn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(ze=!t,ze&&(t="\x3c!--\x3e"),"string"!=typeof t&&!mn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return M(t);case"boolean":return z(t);case"bigint":return P?P(t):"0";case"symbol":return j?j(t):"Symbol()";case"undefined":default:return F(t);case"function":case"object":{if(null===t)return F(t);const e=t,n=X(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:F(t)}return F(t)}}}(t)))throw B("dirty is not a string, aborting");if(!n.isSupported)return t;me?(Jt=de,te=he):Ve(e),(Bt.uponSanitizeElement.length>0||Bt.uponSanitizeAttribute.length>0)&&(Jt=q(Jt)),Bt.uponSanitizeAttribute.length>0&&(te=q(te)),n.removed=[];const c=Ae&&"string"!=typeof t&&mn(t);if(c){!function(t){if(!fe)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Nt(t);if(7===n||8===n&&H(gt,t.data)){try{h(t)}catch(t){}continue}if(1===n){const e=t,n=Ge(Ot(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&an("for",n)&&e.removeAttribute("for")}catch(t){}}const r=S(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}}(t);const e=Ot(t);if("string"==typeof e){const n=Ge(e);if(!Jt[n]||re[n])throw en(t),B("root node is forbidden and cannot be sanitized in-place")}if(fn(t))throw en(t),B("root node is clobbered and cannot be sanitized in-place");try{_n(t)}catch(e){throw en(t),e}}else if(mn(t))r=ln("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),_n(r);else{if(!ge&&!ue&&!pe&&-1===t.indexOf("<"))return kt&&ve?Mt(t):t;if(r=ln(t),!r)return ge?null:ve?Rt:""}r&&ye&&Qe(r.firstChild);const s=c?t:r;try{const t=cn(s);for(;a=t.nextNode();)bn(a,s),An(a,s),pn(a.content)&&En(a.content)}catch(e){throw c&&(en(t),w(n.removed,t=>{t.element&&on(t.element)})),e}if(c){let e=!1;if(w(n.removed,n=>{n.element&&(n.element===t&&(e=!0),on(n.element))}),e)throw B("a node selected for removal could not be safely returned; refusing to sanitize in place");return ue&&un(t),t}if(ge){if(ue&&un(r),be)for(l=Ut.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(te.shadowroot||te.shadowrootmode)&&(l=Ht.call(o,l,!0)),l}let u=pe?r.outerHTML:r.innerHTML;return pe&&Jt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&H(dt,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ue&&(u=sn(u)),kt&&ve?Mt(u):u},n.setConfig=function(){Ve(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),me=!0,de=Jt,he=te},n.clearConfig=function(){qe=null,me=!1,de=null,he=null,kt=Dt,Rt=""},n.isValidAttribute=function(t,e,n){qe||Ve({});const r=Ge(t),o=Ge(e);return vn(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&U(Bt,t)&&_(Bt[t],e)},n.removeHook=function(t,e){if(U(Bt,t)){if(void 0!==e){const n=A(Bt[t],e);return-1===n?void 0:N(Bt[t],n,1)[0]}return E(Bt[t])}},n.removeHooks=function(t){U(Bt,t)&&(Bt[t]=[])},n.removeAllHooks=function(){Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Nt({icon:t,label:e,value:n,bottomLabel:o,summaryText:i,link:a,className:l="",...c}){const s="mg-stats-card-item",u=["mg-card",s,a&&`${s}--linked`,l].filter(Boolean).join(" "),f=a?(0,r().jsx)("a",{href:a,className:`${s}__value`,children:n}):(0,r().jsx)("data",{className:`${s}__value`,value:n,children:n});return(0,r().jsxs)("article",{className:u,...c,children:[t&&(0,r().jsx)("span",{className:`${s}__icon`,"aria-hidden":"true",children:(0,r().jsx)("span",{className:t})}),e&&(0,r().jsx)("span",{className:`${s}__label`,children:e}),f,o&&(0,r().jsx)("strong",{className:`${s}__bottom-label`,children:o}),i&&(0,r().jsx)("p",{className:`${s}__summary`,dangerouslySetInnerHTML:{__html:_t.sanitize(i)}})]})}Nt.propTypes={icon:a().string,label:a().string,value:a().oneOfType([a().string,a().number]).isRequired,bottomLabel:a().string,summaryText:a().string,link:a().string,className:a().string};const Ot=[];function kt({title:t,stats:e=Ot,variant:n="default",className:o="",...i}){const a="mg-stats-card",c=e.length;let s="mg-grid";c>0&&c<=12?s=`mg-grid mg-grid__col-${c}`:c>12&&(s="mg-grid mg-grid--auto-fit");const u=[a,n&&`${a}--${n}`,o].filter(Boolean).join(" ");return(0,r().jsxs)("section",{className:u,"aria-label":t||"Statistics",...i,children:[t&&(0,r().jsx)(l,{type:"2",children:t}),(0,r().jsx)("div",{className:s,children:e.map((t,e)=>(0,r().jsx)(Nt,{icon:t.icon,label:t.label,value:t.value,bottomLabel:t.bottomLabel,summaryText:t.summaryText,link:t.link},e))})]})}kt.propTypes={title:a().string,stats:a().arrayOf(a().shape({icon:a().string,label:a().string,value:a().oneOfType([a().string,a().number]).isRequired,bottomLabel:a().string,summaryText:a().string,link:a().string})),variant:a().oneOf(["default","compact","highlighted","negative"]),className:a().string};const Dt=kt;function Rt(t){const{dataset:e}=t,n={title:e.title||void 0,variant:e.variant||"default",className:e.className||""};try{n.stats=e.stats?JSON.parse(e.stats):[]}catch{n.stats=[]}return n}export{kt as StatsCard,Dt as default,Rt as fromElement};