@undrr/undrr-mangrove 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) 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/ContentCard.js +1 -1
  7. package/components/ContentTeaser.js +1 -1
  8. package/components/CopyButton.js +2 -2
  9. package/components/CtaButton.js +1 -1
  10. package/components/Drawer.js +2 -2
  11. package/components/Drawer.js.LICENSE.txt +1 -1
  12. package/components/DrupalContentPatterns.js +1 -1
  13. package/components/EmbedContainer.js +1 -1
  14. package/components/Footer.js +1 -1
  15. package/components/FormAction.js +1 -1
  16. package/components/FormErrorSummary.js +1 -1
  17. package/components/FormGroup.js +1 -1
  18. package/components/FullWidth.js +1 -1
  19. package/components/Gallery.js +2 -2
  20. package/components/Hero.js +1 -1
  21. package/components/HighlightBox.js +1 -1
  22. package/components/HorizontalBookCard.js +2 -2
  23. package/components/HorizontalBookCard.js.LICENSE.txt +1 -1
  24. package/components/HorizontalCard.js +2 -2
  25. package/components/HorizontalCard.js.LICENSE.txt +1 -1
  26. package/components/IconCard.js +2 -2
  27. package/components/IconCard.js.LICENSE.txt +1 -1
  28. package/components/Legend.js +1 -1
  29. package/components/Loader.js +1 -1
  30. package/components/MegaMenu.js +2 -2
  31. package/components/Notice.js +1 -1
  32. package/components/PageHeader.js +1 -1
  33. package/components/Pager.js +1 -1
  34. package/components/ProgressBar.js +1 -1
  35. package/components/QuoteHighlight.js +2 -2
  36. package/components/QuoteHighlight.js.LICENSE.txt +1 -1
  37. package/components/Radio.js +1 -1
  38. package/components/Range.js +1 -1
  39. package/components/ScrollContainer.js +2 -2
  40. package/components/SegmentedControl.js +1 -1
  41. package/components/Select.js +1 -1
  42. package/components/ServiceNotice.js +2 -2
  43. package/components/ShareButtons.js +2 -2
  44. package/components/ShowMore.js +1 -1
  45. package/components/SkipLink.js +1 -1
  46. package/components/StatsCard.js +2 -2
  47. package/components/StatsCard.js.LICENSE.txt +1 -1
  48. package/components/SyndicationSearchWidget.js +2 -2
  49. package/components/Tab.js +2 -2
  50. package/components/TextCta.js +2 -2
  51. package/components/TextCta.js.LICENSE.txt +1 -1
  52. package/components/TextInput.js +1 -1
  53. package/components/Textarea.js +1 -1
  54. package/components/Tree.js +1 -1
  55. package/components/UserFeedback.js +2 -2
  56. package/components/VerticalCard.js +2 -2
  57. package/components/VerticalCard.js.LICENSE.txt +1 -1
  58. package/components/hydrate.js +1 -1
  59. package/css/style-all.css +4 -4
  60. package/css/style-all.css.map +1 -1
  61. package/css/style-delta.css +4 -4
  62. package/css/style-delta.css.map +1 -1
  63. package/css/style-gutenberg.css +1 -1
  64. package/css/style-irp.css +4 -4
  65. package/css/style-irp.css.map +1 -1
  66. package/css/style-mcr.css +4 -4
  67. package/css/style-mcr.css.map +1 -1
  68. package/css/style-preventionweb.css +4 -4
  69. package/css/style-preventionweb.css.map +1 -1
  70. package/css/style.css +4 -4
  71. package/css/style.css.map +1 -1
  72. package/docs/EDITORIAL-MANUAL.md +1 -1
  73. package/error-pages/401.html +1 -1
  74. package/error-pages/403.html +1 -1
  75. package/error-pages/404.html +1 -1
  76. package/error-pages/429.html +1 -1
  77. package/error-pages/500.html +1 -1
  78. package/error-pages/502.html +1 -1
  79. package/error-pages/503.html +1 -1
  80. package/error-pages/504.html +1 -1
  81. package/error-pages/5xx.html +1 -1
  82. package/error-pages/challenge.html +1 -1
  83. package/error-pages/managed-challenge.html +1 -1
  84. package/package.json +1 -1
  85. package/scss/Components/MegaMenu/mega-menu.scss +57 -33
  86. 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-17T14:23:48.871Z
6
+ * Compiled on: 2026-10-27T09:44:34.250Z
7
7
  */
8
8
  /*! For license information please see ShareButtons.js.LICENSE.txt */
9
- import{useEffect as t,useId as e,useRef as n,useState as r}from"react";var o={6320(t){var e={single_source_shortest_paths:function(t,n,r){var o={},a={};a[n]=0;var i,s,c,l,u,d,h,g=e.PriorityQueue.make();for(g.push(n,0);!g.empty();)for(c in s=(i=g.pop()).value,l=i.cost,u=t[s]||{})u.hasOwnProperty(c)&&(d=l+u[c],h=a[c],(void 0===a[c]||h>d)&&(a[c]=d,g.push(c,d),o[c]=s));if(void 0!==r&&void 0===a[r]){var f=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,n,r){var o=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(t){var n,r=e.PriorityQueue,o={};for(n in t=t||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=t.sorter||r.default_sorter,o},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},2694(t,e,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function 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:a,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"},7583(t,e,n){const r=n(1333),o=n(157),a=n(7899),i=n(6756);function s(t,e,n,a,i){const s=[].slice.call(arguments,1),c=s.length,l="function"==typeof s[c-1];if(!l&&!r())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=e,e=a=void 0):2!==c||e.getContext||(a=n,n=e,e=void 0),new Promise(function(r,i){try{const i=o.create(n,a);r(t(i,e,a))}catch(t){i(t)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(i=n,n=e,e=a=void 0):3===c&&(e.getContext&&void 0===i?(i=a,a=void 0):(i=a,a=n,n=e,e=void 0));try{const r=o.create(n,a);i(null,t(r,e,a))}catch(t){i(t)}}e.create=o.create,e.toCanvas=s.bind(null,a.render),e.toDataURL=s.bind(null,a.renderToDataURL),e.toString=s.bind(null,function(t,e,n){return i.render(t,n)})},1333(t){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6421(t,e,n){const r=n(6886).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,n=r(t),o=145===n?26:2*Math.ceil((n-13)/(2*e-2)),a=[n-7];for(let t=1;t<e-1;t++)a[t]=a[t-1]-o;return a.push(6),a.reverse()},e.getPositions=function(t){const n=[],r=e.getRowColCoords(t),o=r.length;for(let t=0;t<o;t++)for(let e=0;e<o;e++)0===t&&0===e||0===t&&e===o-1||t===o-1&&0===e||n.push([r[t],r[e]]);return n}},1433(t,e,n){const r=n(208),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(t){this.mode=r.ALPHANUMERIC,this.data=t}a.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*o.indexOf(this.data[e]);n+=o.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},t.exports=a},9899(t){function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},8820(t){function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,n,r){const o=t*this.size+e;this.data[o]=n,r&&(this.reservedBit[o]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},5822(t,e,n){const r=n(208);function o(t){this.mode=r.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(let e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},t.exports=o},7518(t,e,n){const r=n(9953),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case r.L:return o[4*(t-1)+0];case r.M:return o[4*(t-1)+1];case r.Q:return o[4*(t-1)+2];case r.H:return o[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case r.L:return a[4*(t-1)+0];case r.M:return a[4*(t-1)+1];case r.Q:return a[4*(t-1)+2];case r.H:return a[4*(t-1)+3];default:return}}},9953(t,e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return n}}},7756(t,e,n){const r=n(6886).getSymbolSize;e.getPositions=function(t){const e=r(t);return[[0,0],[e-7,0],[0,e-7]]}},4565(t,e,n){const r=n(6886),o=r.getBCHDigit(1335);e.getEncodedBits=function(t,e){const n=t.bit<<3|e;let a=n<<10;for(;r.getBCHDigit(a)-o>=0;)a^=1335<<r.getBCHDigit(a)-o;return 21522^(n<<10|a)}},2731(t,e){const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)n[e]=t,r[t]=e,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[r[t]+r[e]]}},4861(t,e,n){const r=n(208),o=n(6886);function a(t){this.mode=r.KANJI,this.data=t}a.getBitsLength=function(t){return 13*t},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=o.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},t.exports=a},1332(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let n=0,r=0,o=0,a=null,i=null;for(let s=0;s<e;s++){r=o=0,a=i=null;for(let c=0;c<e;c++){let e=t.get(s,c);e===a?r++:(r>=5&&(n+=r-5+3),a=e,r=1),e=t.get(c,s),e===i?o++:(o>=5&&(n+=o-5+3),i=e,o=1)}r>=5&&(n+=r-5+3),o>=5&&(n+=o-5+3)}return n},e.getPenaltyN2=function(t){const e=t.size;let n=0;for(let r=0;r<e-1;r++)for(let o=0;o<e-1;o++){const e=t.get(r,o)+t.get(r,o+1)+t.get(r+1,o)+t.get(r+1,o+1);4!==e&&0!==e||n++}return 3*n},e.getPenaltyN3=function(t){const e=t.size;let n=0,r=0,o=0;for(let a=0;a<e;a++){r=o=0;for(let i=0;i<e;i++)r=r<<1&2047|t.get(a,i),i>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|t.get(i,a),i>=10&&(1488===o||93===o)&&n++}return 40*n},e.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let r=0;r<n;r++)e+=t.data[r];return 10*Math.abs(Math.ceil(100*e/n/5)-10)},e.applyMask=function(t,e){const r=e.size;for(let o=0;o<r;o++)for(let a=0;a<r;a++)e.isReserved(a,o)||e.xor(a,o,n(t,a,o))},e.getBestMask=function(t,n){const r=Object.keys(e.Patterns).length;let o=0,a=1/0;for(let i=0;i<r;i++){n(i),e.applyMask(i,t);const r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(i,t),r<a&&(a=r,o=i)}return o}},208(t,e,n){const r=n(1878),o=n(7044);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!r.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return o.testNumeric(t)?e.NUMERIC:o.testAlphanumeric(t)?e.ALPHANUMERIC:o.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return n}}},4357(t,e,n){const r=n(208);function o(t){this.mode=r.NUMERIC,this.data=t.toString()}o.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e,n,r;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),r=parseInt(n,10),t.put(r,10);const o=this.data.length-e;o>0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*o+1))},t.exports=o},4713(t,e,n){const r=n(2731);e.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let o=0;o<t.length;o++)for(let a=0;a<e.length;a++)n[o+a]^=r.mul(t[o],e[a]);return n},e.mod=function(t,e){let n=new Uint8Array(t);for(;n.length-e.length>=0;){const t=n[0];for(let o=0;o<e.length;o++)n[o]^=r.mul(e[o],t);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},e.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let o=0;o<t;o++)n=e.mul(n,new Uint8Array([1,r.exp(o)]));return n}},157(t,e,n){const r=n(6886),o=n(9953),a=n(9899),i=n(8820),s=n(6421),c=n(7756),l=n(1332),u=n(7518),d=n(4764),h=n(1427),g=n(4565),f=n(208),p=n(9801);function m(t,e,n){const r=t.size,o=g.getEncodedBits(e,n);let a,i;for(a=0;a<15;a++)i=1==(o>>a&1),a<6?t.set(a,8,i,!0):a<8?t.set(a+1,8,i,!0):t.set(r-15+a,8,i,!0),a<8?t.set(8,r-a-1,i,!0):a<9?t.set(8,15-a-1+1,i,!0):t.set(8,15-a-1,i,!0);t.set(r-8,8,1,!0)}function y(t,e,n,o){let g;if(Array.isArray(t))g=p.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let r=e;if(!r){const e=p.rawSplit(t);r=h.getBestVersionForData(e,n)}g=p.fromString(t,r||40)}}const y=h.getBestVersionForData(g,n);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<y)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else e=y;const b=function(t,e,n){const o=new a;n.forEach(function(e){o.put(e.mode.bit,4),o.put(e.getLength(),f.getCharCountIndicator(e.mode,t)),e.write(o)});const i=8*(r.getSymbolTotalCodewords(t)-u.getTotalCodewordsCount(t,e));for(o.getLengthInBits()+4<=i&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const s=(i-o.getLengthInBits())/8;for(let t=0;t<s;t++)o.put(t%2?17:236,8);return function(t,e,n){const o=r.getSymbolTotalCodewords(e),a=o-u.getTotalCodewordsCount(e,n),i=u.getBlocksCount(e,n),s=i-o%i,c=Math.floor(o/i),l=Math.floor(a/i),h=l+1,g=c-l,f=new d(g);let p=0;const m=new Array(i),y=new Array(i);let b=0;const w=new Uint8Array(t.buffer);for(let t=0;t<i;t++){const e=t<s?l:h;m[t]=w.slice(p,p+e),y[t]=f.encode(m[t]),p+=e,b=Math.max(b,e)}const C=new Uint8Array(o);let E,v,T=0;for(E=0;E<b;E++)for(v=0;v<i;v++)E<m[v].length&&(C[T++]=m[v][E]);for(E=0;E<g;E++)for(v=0;v<i;v++)C[T++]=y[v][E];return C}(o,t,e)}(e,n,g),w=r.getSymbolSize(e),C=new i(w);return function(t,e){const n=t.size,r=c.getPositions(e);for(let e=0;e<r.length;e++){const o=r[e][0],a=r[e][1];for(let e=-1;e<=7;e++)if(!(o+e<=-1||n<=o+e))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(e>=0&&e<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===e||6===e)||e>=2&&e<=4&&r>=2&&r<=4?t.set(o+e,a+r,!0,!0):t.set(o+e,a+r,!1,!0))}}(C,e),function(t){const e=t.size;for(let n=8;n<e-8;n++){const e=n%2==0;t.set(n,6,e,!0),t.set(6,n,e,!0)}}(C),function(t,e){const n=s.getPositions(e);for(let e=0;e<n.length;e++){const r=n[e][0],o=n[e][1];for(let e=-2;e<=2;e++)for(let n=-2;n<=2;n++)-2===e||2===e||-2===n||2===n||0===e&&0===n?t.set(r+e,o+n,!0,!0):t.set(r+e,o+n,!1,!0)}}(C,e),m(C,n,0),e>=7&&function(t,e){const n=t.size,r=h.getEncodedBits(e);let o,a,i;for(let e=0;e<18;e++)o=Math.floor(e/3),a=e%3+n-8-3,i=1==(r>>e&1),t.set(o,a,i,!0),t.set(a,o,i,!0)}(C,e),function(t,e){const n=t.size;let r=-1,o=n-1,a=7,i=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!t.isReserved(o,s-n)){let r=!1;i<e.length&&(r=1==(e[i]>>>a&1)),t.set(o,s-n,r),a--,-1===a&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(C,b),isNaN(o)&&(o=l.getBestMask(C,m.bind(null,C,n))),l.applyMask(o,C),m(C,n,o),{modules:C,version:e,errorCorrectionLevel:n,maskPattern:o,segments:g}}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let n,a,i=o.M;return void 0!==e&&(i=o.from(e.errorCorrectionLevel,o.M),n=h.from(e.version),a=l.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),y(t,n,i,a)}},4764(t,e,n){const r=n(4713);function o(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=r.mod(e,this.genPoly),o=this.degree-n.length;if(o>0){const t=new Uint8Array(this.degree);return t.set(n,o),t}return n},t.exports=o},7044(t,e){const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";e.KANJI=new RegExp(r,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(o,"g"),e.NUMERIC=new RegExp(n,"g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const a=new RegExp("^"+r+"$"),i=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return a.test(t)},e.testNumeric=function(t){return i.test(t)},e.testAlphanumeric=function(t){return s.test(t)}},9801(t,e,n){const r=n(208),o=n(4357),a=n(1433),i=n(5822),s=n(4861),c=n(7044),l=n(6886),u=n(6320);function d(t){return unescape(encodeURIComponent(t)).length}function h(t,e,n){const r=[];let o;for(;null!==(o=t.exec(n));)r.push({data:o[0],index:o.index,mode:e,length:o[0].length});return r}function g(t){const e=h(c.NUMERIC,r.NUMERIC,t),n=h(c.ALPHANUMERIC,r.ALPHANUMERIC,t);let o,a;return l.isKanjiModeEnabled()?(o=h(c.BYTE,r.BYTE,t),a=h(c.KANJI,r.KANJI,t)):(o=h(c.BYTE_KANJI,r.BYTE,t),a=[]),e.concat(n,o,a).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function f(t,e){switch(e){case r.NUMERIC:return o.getBitsLength(t);case r.ALPHANUMERIC:return a.getBitsLength(t);case r.KANJI:return s.getBitsLength(t);case r.BYTE:return i.getBitsLength(t)}}function p(t,e){let n;const c=r.getBestModeForData(t);if(n=r.from(e,c),n!==r.BYTE&&n.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(c));switch(n!==r.KANJI||l.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(t);case r.ALPHANUMERIC:return new a(t);case r.KANJI:return new s(t);case r.BYTE:return new i(t)}}e.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(p(e,null)):e.data&&t.push(p(e.data,e.mode)),t},[])},e.fromString=function(t,n){const o=function(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];switch(o.mode){case r.NUMERIC:e.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:e.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:e.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:e.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return e}(g(t,l.isKanjiModeEnabled())),a=function(t,e){const n={},o={start:{}};let a=["start"];for(let i=0;i<t.length;i++){const s=t[i],c=[];for(let t=0;t<s.length;t++){const l=s[t],u=""+i+t;c.push(u),n[u]={node:l,lastCount:0},o[u]={};for(let t=0;t<a.length;t++){const i=a[t];n[i]&&n[i].node.mode===l.mode?(o[i][u]=f(n[i].lastCount+l.length,l.mode)-f(n[i].lastCount,l.mode),n[i].lastCount+=l.length):(n[i]&&(n[i].lastCount=l.length),o[i][u]=f(l.length,l.mode)+4+r.getCharCountIndicator(l.mode,e))}}a=c}for(let t=0;t<a.length;t++)o[a[t]].end=0;return{map:o,table:n}}(o,n),i=u.find_path(a.map,"start","end"),s=[];for(let t=1;t<i.length-1;t++)s.push(a.table[i[t]].node);return e.fromArray(s.reduce(function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[]))},e.rawSplit=function(t){return e.fromArray(g(t,l.isKanjiModeEnabled()))}},6886(t,e){let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return r[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(t){return n(t)}},1878(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},1427(t,e,n){const r=n(6886),o=n(7518),a=n(9953),i=n(208),s=n(1878),c=r.getBCHDigit(7973);function l(t,e){return i.getCharCountIndicator(t,e)+4}function u(t,e){let n=0;return t.forEach(function(t){const r=l(t.mode,e);n+=r+t.getBitsLength()}),n}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw new Error("Invalid QR Code version");void 0===n&&(n=i.BYTE);const a=8*(r.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,e));if(n===i.MIXED)return a;const c=a-l(n,t);switch(n){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,n){let r;const o=a.from(n,a.M);if(Array.isArray(t)){if(t.length>1)return function(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}(t,o);if(0===t.length)return 1;r=t[0]}else r=t;return function(t,n,r){for(let o=1;o<=40;o++)if(n<=e.getCapacity(o,r,t))return o}(r.mode,r.getLength(),o)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;r.getBCHDigit(e)-c>=0;)e^=7973<<r.getBCHDigit(e)-c;return t<<12|e}},7899(t,e,n){const r=n(2726);e.render=function(t,e,n){let o=n,a=e;void 0!==o||e&&e.getContext||(o=e,e=void 0),e||(a=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);const i=r.getImageWidth(t.modules.size,o),s=a.getContext("2d"),c=s.createImageData(i,i);return r.qrToImageData(c.data,t,o),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(s,a,i),s.putImageData(c,0,0),a},e.renderToDataURL=function(t,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const a=e.render(t,n,o),i=o.type||"image/png",s=o.rendererOpts||{};return a.toDataURL(i,s.quality)}},6756(t,e,n){const r=n(2726);function o(t,e){const n=t.a/255,r=e+'="'+t.hex+'"';return n<1?r+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function a(t,e,n){let r=t+e;return void 0!==n&&(r+=" "+n),r}e.render=function(t,e,n){const i=r.getOptions(e),s=t.modules.size,c=t.modules.data,l=s+2*i.margin,u=i.color.light.a?"<path "+o(i.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",d="<path "+o(i.color.dark,"stroke")+' d="'+function(t,e,n){let r="",o=0,i=!1,s=0;for(let c=0;c<t.length;c++){const l=Math.floor(c%e),u=Math.floor(c/e);l||i||(i=!0),t[c]?(s++,c>0&&l>0&&t[c-1]||(r+=i?a("M",l+n,.5+u+n):a("m",o,0),o=0,i=!1),l+1<e&&t[c+1]||(r+=a("h",s),s=0)):o++}return r}(c,s,i.margin)+'"/>',h='viewBox="0 0 '+l+" "+l+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof n&&n(null,g),g}},2726(t,e){function n(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){const r=e.getScale(t,n);return Math.floor((t+2*n.margin)*r)},e.qrToImageData=function(t,n,r){const o=n.modules.size,a=n.modules.data,i=e.getScale(o,r),s=Math.floor((o+2*r.margin)*i),c=r.margin*i,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=4*(e*s+n),d=r.color.light;e>=c&&n>=c&&e<s-c&&n<s-c&&(d=l[a[Math.floor((e-c)/i)*o+Math.floor((n-c)/i)]?1:0]),t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}}};const a={};function i(t){const e=a[t];if(void 0!==e)return e.exports;const n=a[t]={exports:{}};return o[t](n,n.exports,i),n.exports}i.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.cw=t=>{var e;return()=>{if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var s=i.cw(function(t,e){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(t,e,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==e.key&&(o=""+e.key),"key"in e)for(var a in r={},e)"key"!==a&&(r[a]=e[a]);else r=e;return e=r.ref,{$$typeof:n,type:t,key:o,ref:void 0!==e?e:null,props:r}}e.Fragment=r,e.jsx=o,e.jsxs=o}),c=i.cw(function(t,e){t.exports=s()}),l=i(5556),u=i.n(l),d=i(7583);const h=JSON.parse('{"Mail":"mailto:?subject=[SHARING_TEXT_SUBJECT]&body=[SHARING_TEXT_BODY]","Facebook":"https://facebook.com/sharer/sharer.php?u=[SHARING_TEXT_BODY]","LinkedIn":"https://www.linkedin.com/sharing/share-offsite/?url=[SHARING_TEXT_BODY]","Twitter":"https://twitter.com/intent/tweet?text=[SHARING_TEXT_BODY]"}');c();const g="Check out this link: ",f="Sharing Link",p={mainLabel:"Share this",onCopy:"Copied",qrCodeTitle:"QR code",qrCodeDescription:"This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModal:"Close modal",copyImage:"Copy image",downloadImage:"Download image",closeMessage:"Close message",shareUsingDevice:"Share using your device",shareOnLinkedIn:"Share on LinkedIn",shareOnFacebook:"Share on Facebook",shareOnX:"Share on X",shareViaEmail:"Share via Email",generateQRCode:"Generate QR Code",copyToClipboard:"Copy to Clipboard"},m=({isOpen:o,onClose:a,qrCodeDataUrl:i,onCopy:c,onDownload:l,sharedLink:u,copiedLabel:d="Image copied",titleLabel:h="QR code",descriptionLabel:g="This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModalLabel:f="Close modal",copyImageLabel:p="Copy image",downloadImageLabel:m="Download image",closeMessageLabel:y="Close message"})=>{const b=n(null),w=e(),C=e(),[E,v]=r(!1),T=n(o);if(o!==T.current&&(T.current=o,o&&v(!1)),t(()=>{if(!o)return;const t=b.current,e=document.body.style.overflow;return document.body.style.overflow="hidden",t.showModal(),()=>{t.open&&t.close(),document.body.style.overflow=e}},[o]),t(()=>{if(!E)return;const t=setTimeout(()=>v(!1),2e3);return()=>clearTimeout(t)},[E]),!o)return null;const N=()=>b.current?.close();return(0,s().jsxs)("dialog",{ref:b,"data-vf-google-analytics-region":"share-qr-code",className:"mg-share__dialog","aria-labelledby":w,"aria-describedby":C,onClose:a,onClick:t=>{if(t.target!==b.current)return;const e=b.current.getBoundingClientRect();(t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom)&&N()},children:[(0,s().jsxs)("div",{className:"mg-share__dialog-header",children:[(0,s().jsx)("h2",{id:w,className:"mg-share__dialog-title",children:h}),(0,s().jsx)("button",{type:"button",onClick:N,className:"mg-icon-button mg-share__dialog-close","aria-label":f,children:(0,s().jsx)("span",{className:"mg-icon mg-icon-close","aria-hidden":"true"})})]}),(0,s().jsx)("p",{id:C,className:"mg-share__dialog-description",children:g}),(0,s().jsx)("div",{className:"mg-share__dialog-content",children:i&&(0,s().jsxs)("div",{children:[(0,s().jsx)("img",{src:i,alt:"",className:"mg-share__dialog-image"}),(0,s().jsx)("div",{className:"mg-share__dialog-url",children:(0,s().jsx)("code",{className:"mg-code--block",children:(()=>{const t=new URL(u);return t.searchParams.set("utm_source","qr"),t.searchParams.set("utm_medium","web"),t.searchParams.set("utm_campaign","share_box"),t.toString()})()})})]})}),(0,s().jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"mg-share__visually-hidden",children:E?`${d}`:""}),(0,s().jsxs)("div",{className:"mg-share__dialog-actions",children:[(0,s().jsxs)("div",{className:"mg-share__dialog-actions-primary",children:[(0,s().jsx)("button",{type:"button",onClick:async()=>{try{await c(),v(!0)}catch(t){console.error("Copy failed:",t)}},className:"mg-button mg-button-primary",disabled:E,children:E?d:p}),(0,s().jsx)("button",{type:"button",onClick:l,className:"mg-button mg-button-secondary",children:m})]}),(0,s().jsx)("button",{type:"button",onClick:N,className:"mg-button mg-button-secondary",children:y})]})]})},y=({labels:t={},SharingSubject:e,SharingTextBody:o,...a})=>{const i={...p,...t},[c,l]=r(!1),[u,y]=r(null),w=n(null),C=(()=>{const t=document.querySelector('link[rel="shortlink"]');return t?t.href:window.location.href})(),E=t=>{if("QRCode"===t)v();else if("WebShare"===t&&navigator.share)navigator.share({title:e??f,text:o??g,url:C}).catch(t=>console.error("Error sharing",t));else{var n=(t=>{const n=h[t],r=encodeURIComponent(e??f),a=encodeURIComponent(o??g)+encodeURIComponent(C);return n.replace("[SHARING_TEXT_SUBJECT]",r).replace("[SHARING_TEXT_BODY]",a)})(t);"Mail"===t?window.location.href=n:window.open(n,"_blank","width=600,height=300")}},v=async()=>{try{const t=new URL(C);t.searchParams.set("utm_source","qr"),t.searchParams.set("utm_medium","web"),t.searchParams.set("utm_campaign","share_box");const e=t.toString(),n=await d.toDataURL(e,{width:1024,margin:2,color:{dark:"#000000",light:"#FFFFFF"}});y(n),l(!0)}catch(t){console.error("Error generating QR code:",t),alert("Failed to generate QR code. Please try again.")}};return(0,s().jsxs)(s().Fragment,{children:[(0,s().jsxs)("section",{"data-vf-google-analytics-region":"share-this",className:"mg-share",...a,children:[(0,s().jsx)("header",{className:"mg-share__header",children:i.mainLabel}),(0,s().jsxs)("div",{className:"mg-share__buttons",children:[navigator.share&&(0,s().jsx)("button",{"data-vf-analytics-label":"Social share: Web Share API",onClick:()=>E("WebShare"),"aria-label":i.shareUsingDevice,title:i.shareUsingDevice,className:"mg-share__button",children:(0,s().jsx)("span",{className:"mg-icon mg-icon-share","aria-hidden":"true"})}),(0,s().jsx)("button",{"data-vf-analytics-label":"Social share: LinkedIn",onClick:()=>E("LinkedIn"),"aria-label":i.shareOnLinkedIn,className:"mg-share__button",title:i.shareOnLinkedIn,children:(0,s().jsx)("span",{className:"mg-icon mg-icon-linkedin","aria-hidden":"true"})}),(0,s().jsx)("button",{"data-vf-analytics-label":"Social share: Facebook",onClick:()=>E("Facebook"),"aria-label":i.shareOnFacebook,title:i.shareOnFacebook,className:"mg-share__button",children:(0,s().jsx)("span",{className:"mg-icon mg-icon-facebook","aria-hidden":"true"})}),(0,s().jsx)("button",{"data-vf-analytics-label":"Social share: X",onClick:()=>E("Twitter"),"aria-label":i.shareOnX,className:"mg-share__button",title:i.shareOnX,children:(0,s().jsx)("span",{className:"mg-icon mg-icon-x-social","aria-hidden":"true"})}),(0,s().jsx)("button",{"data-vf-analytics-label":"Social share: Mail",onClick:()=>E("Mail"),"aria-label":i.shareViaEmail,className:"mg-share__button",title:i.shareViaEmail,children:(0,s().jsx)("span",{className:"mg-icon mg-icon-envelope","aria-hidden":"true"})}),(0,s().jsx)("button",{ref:w,"data-vf-analytics-label":"Social share: QR Code",onClick:()=>E("QRCode"),"aria-label":i.generateQRCode,className:"mg-share__button",title:i.generateQRCode,children:(0,s().jsx)("span",{className:"mg-icon mg-icon-qrcode","aria-hidden":"true"})})]}),(0,s().jsx)(b,{className:"mg-share__copy-button",copiedLabel:i.onCopy,copyToClipboardLabel:i.copyToClipboard,sharedLink:C})]}),(0,s().jsx)(m,{isOpen:c,onClose:()=>{l(!1),y(null),w.current?.focus()},qrCodeDataUrl:u,onCopy:async()=>{try{if(u){const t=await fetch(u),e=await t.blob(),n=new ClipboardItem({"image/png":e});await navigator.clipboard.write([n])}}catch(t){console.error("Error copying QR code to clipboard:",t),alert("Failed to copy QR code to clipboard. Please check browser permissions.")}},onDownload:async()=>{try{if(u){const t=await fetch(u),e=await t.blob(),n=new URL(C);let r="qr-code";if(n.hostname&&(r+=`-${n.hostname.replace(/^www\./,"").replace(/\./g,"-")}`),n.pathname&&"/"!==n.pathname){const t=n.pathname.replace(/^\//,"").replace(/\/$/,"").replace(/[^a-zA-Z0-9-_]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");t&&(r+=`-${t}`)}r=r.substring(0,100)+".png";const o=URL.createObjectURL(e),a=document.createElement("a");a.href=o,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}}catch(t){console.error("Error downloading QR code:",t),alert("Failed to download QR code. Please try again.")}},sharedLink:C,copiedLabel:i.onCopy,titleLabel:i.qrCodeTitle,descriptionLabel:i.qrCodeDescription,closeModalLabel:i.closeModal,copyImageLabel:i.copyImage,downloadImageLabel:i.downloadImage,closeMessageLabel:i.closeMessage})]})};function b({copiedLabel:t,sharedLink:e,className:n,copyToClipboardLabel:o="Copy to Clipboard"}){const[a,i]=r(!1);let c=e;return e.startsWith("https://")?c=e.replace("https://",""):e.startsWith("http://")&&(c=e.replace("http://","")),(0,s().jsxs)("button",{"data-vf-analytics-label":"Quick link copy","aria-label":o,title:o,className:n,onClick:()=>(navigator.clipboard.writeText(e),void i(!0)),children:[(0,s().jsx)("div",{className:"mg-share__clip-icon",children:(0,s().jsx)("span",{className:"mg-icon mg-icon-link","aria-hidden":"true"})}),(0,s().jsx)("div",{className:"mg-share__copy-text",children:a?t:c}),(0,s().jsx)("div",{className:"mg-share__stack-icon",children:(0,s().jsx)("span",{className:"mg-icon mg-icon-clone","aria-hidden":"true"})})]})}m.propTypes={isOpen:u().bool.isRequired,onClose:u().func.isRequired,qrCodeDataUrl:u().string,onCopy:u().func.isRequired,onDownload:u().func.isRequired,sharedLink:u().string.isRequired,copiedLabel:u().string},y.propTypes={labels:u().shape({mainLabel:u().string,onCopy:u().string,qrCodeTitle:u().string,qrCodeDescription:u().string,closeModal:u().string,copyImage:u().string,downloadImage:u().string,closeMessage:u().string,shareUsingDevice:u().string,shareOnLinkedIn:u().string,shareOnFacebook:u().string,shareOnX:u().string,shareViaEmail:u().string,generateQRCode:u().string,copyToClipboard:u().string}),SharingSubject:u().string,SharingTextBody:u().string},b.propTypes={copiedLabel:u().string.isRequired,sharedLink:u().string.isRequired,className:u().string,copyToClipboardLabel:u().string};const w=y;function C(t){const{dataset:e}=t;return{labels:{mainLabel:e.mainLabel||"Share this",onCopy:e.onCopyLabel||"Link copied"},SharingSubject:e.sharingSubject||"Sharing Link",SharingTextBody:e.sharingBody||""}}export{b as CopyButton,w as default,C as fromElement};
9
+ import{useEffect as e,useId as t,useRef as n,useState as r}from"react";var o={6320(e){var t={single_source_shortest_paths:function(e,n,r){var o={},a={};a[n]=0;var i,s,c,l,d,u,h,g=t.PriorityQueue.make();for(g.push(n,0);!g.empty();)for(c in s=(i=g.pop()).value,l=i.cost,d=e[s]||{})d.hasOwnProperty(c)&&(u=l+d[c],h=a[c],(void 0===a[c]||h>u)&&(a[c]=u,g.push(c,u),o[c]=s));if(void 0!==r&&void 0===a[r]){var f=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},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 s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function 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"},7583(e,t,n){const r=n(1333),o=n(157),a=n(7899),i=n(6756);function s(e,t,n,a,i){const s=[].slice.call(arguments,1),c=s.length,l="function"==typeof s[c-1];if(!l&&!r())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=a=void 0):2!==c||t.getContext||(a=n,n=t,t=void 0),new Promise(function(r,i){try{const i=o.create(n,a);r(e(i,t,a))}catch(e){i(e)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(i=n,n=t,t=a=void 0):3===c&&(t.getContext&&void 0===i?(i=a,a=void 0):(i=a,a=n,n=t,t=void 0));try{const r=o.create(n,a);i(null,e(r,t,a))}catch(e){i(e)}}t.create=o.create,t.toCanvas=s.bind(null,a.render),t.toDataURL=s.bind(null,a.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return i.render(e,n)})},1333(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6421(e,t,n){const r=n(6886).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),a=[n-7];for(let e=1;e<t-1;e++)a[e]=a[e-1]-o;return a.push(6),a.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||n.push([r[e],r[t]]);return n}},1433(e,t,n){const r=n(208),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(e){this.mode=r.ALPHANUMERIC,this.data=e}a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=a},9899(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},8820(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},5822(e,t,n){const r=n(208);function o(e){this.mode=r.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=o},7518(e,t,n){const r=n(9953),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return a[4*(e-1)+0];case r.M:return a[4*(e-1)+1];case r.Q:return a[4*(e-1)+2];case r.H:return a[4*(e-1)+3];default:return}}},9953(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},7756(e,t,n){const r=n(6886).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},4565(e,t,n){const r=n(6886),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let a=n<<10;for(;r.getBCHDigit(a)-o>=0;)a^=1335<<r.getBCHDigit(a)-o;return 21522^(n<<10|a)}},2731(e,t){const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},4861(e,t,n){const r=n(208),o=n(6886);function a(e){this.mode=r.KANJI,this.data=e}a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=a},1332(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,r=0,o=0,a=null,i=null;for(let s=0;s<t;s++){r=o=0,a=i=null;for(let c=0;c<t;c++){let t=e.get(s,c);t===a?r++:(r>=5&&(n+=r-5+3),a=t,r=1),t=e.get(c,s),t===i?o++:(o>=5&&(n+=o-5+3),i=t,o=1)}r>=5&&(n+=r-5+3),o>=5&&(n+=o-5+3)}return n},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==t&&0!==t||n++}return 3*n},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let a=0;a<t;a++){r=o=0;for(let i=0;i<t;i++)r=r<<1&2047|e.get(a,i),i>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(i,a),i>=10&&(1488===o||93===o)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){const r=t.size;for(let o=0;o<r;o++)for(let a=0;a<r;a++)t.isReserved(a,o)||t.xor(a,o,n(e,a,o))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,a=1/0;for(let i=0;i<r;i++){n(i),t.applyMask(i,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(i,e),r<a&&(a=r,o=i)}return o}},208(e,t,n){const r=n(1878),o=n(7044);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},4357(e,t,n){const r=n(208);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},4713(e,t,n){const r=n(2731);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let a=0;a<t.length;a++)n[o+a]^=r.mul(e[o],t[a]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},157(e,t,n){const r=n(6886),o=n(9953),a=n(9899),i=n(8820),s=n(6421),c=n(7756),l=n(1332),d=n(7518),u=n(4764),h=n(1427),g=n(4565),f=n(208),p=n(9801);function m(e,t,n){const r=e.size,o=g.getEncodedBits(t,n);let a,i;for(a=0;a<15;a++)i=1==(o>>a&1),a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(r-15+a,8,i,!0),a<8?e.set(8,r-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(r-8,8,1,!0)}function y(e,t,n,o){let g;if(Array.isArray(e))g=p.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=p.rawSplit(e);r=h.getBestVersionForData(t,n)}g=p.fromString(e,r||40)}}const y=h.getBestVersionForData(g,n);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<y)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y;const b=function(e,t,n){const o=new a;n.forEach(function(t){o.put(t.mode.bit,4),o.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(o)});const i=8*(r.getSymbolTotalCodewords(e)-d.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=i&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const s=(i-o.getLengthInBits())/8;for(let e=0;e<s;e++)o.put(e%2?17:236,8);return function(e,t,n){const o=r.getSymbolTotalCodewords(t),a=o-d.getTotalCodewordsCount(t,n),i=d.getBlocksCount(t,n),s=i-o%i,c=Math.floor(o/i),l=Math.floor(a/i),h=l+1,g=c-l,f=new u(g);let p=0;const m=new Array(i),y=new Array(i);let b=0;const w=new Uint8Array(e.buffer);for(let e=0;e<i;e++){const t=e<s?l:h;m[e]=w.slice(p,p+t),y[e]=f.encode(m[e]),p+=t,b=Math.max(b,t)}const C=new Uint8Array(o);let E,v,I=0;for(E=0;E<b;E++)for(v=0;v<i;v++)E<m[v].length&&(C[I++]=m[v][E]);for(E=0;E<g;E++)for(v=0;v<i;v++)C[I++]=y[v][E];return C}(o,e,t)}(t,n,g),w=r.getSymbolSize(t),C=new i(w);return function(e,t){const n=e.size,r=c.getPositions(t);for(let t=0;t<r.length;t++){const o=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||n<=o+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,a+r,!0,!0):e.set(o+t,a+r,!1,!0))}}(C,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(C),function(e,t){const n=s.getPositions(t);for(let t=0;t<n.length;t++){const r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(C,t),m(C,n,0),t>=7&&function(e,t){const n=e.size,r=h.getEncodedBits(t);let o,a,i;for(let t=0;t<18;t++)o=Math.floor(t/3),a=t%3+n-8-3,i=1==(r>>t&1),e.set(o,a,i,!0),e.set(a,o,i,!0)}(C,t),function(e,t){const n=e.size;let r=-1,o=n-1,a=7,i=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,s-n)){let r=!1;i<t.length&&(r=1==(t[i]>>>a&1)),e.set(o,s-n,r),a--,-1===a&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(C,b),isNaN(o)&&(o=l.getBestMask(C,m.bind(null,C,n))),l.applyMask(o,C),m(C,n,o),{modules:C,version:t,errorCorrectionLevel:n,maskPattern:o,segments:g}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,a,i=o.M;return void 0!==t&&(i=o.from(t.errorCorrectionLevel,o.M),n=h.from(t.version),a=l.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,i,a)}},4764(e,t,n){const r=n(4713);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},7044(e,t){const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const a=new RegExp("^"+r+"$"),i=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},9801(e,t,n){const r=n(208),o=n(4357),a=n(1433),i=n(5822),s=n(4861),c=n(7044),l=n(6886),d=n(6320);function u(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){const r=[];let o;for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function g(e){const t=h(c.NUMERIC,r.NUMERIC,e),n=h(c.ALPHANUMERIC,r.ALPHANUMERIC,e);let o,a;return l.isKanjiModeEnabled()?(o=h(c.BYTE,r.BYTE,e),a=h(c.KANJI,r.KANJI,e)):(o=h(c.BYTE_KANJI,r.BYTE,e),a=[]),t.concat(n,o,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return a.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return i.getBitsLength(e)}}function p(e,t){let n;const c=r.getBestModeForData(e);if(n=r.from(t,c),n!==r.BYTE&&n.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(c));switch(n!==r.KANJI||l.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new a(e);case r.KANJI:return new s(e);case r.BYTE:return new i(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},t.fromString=function(e,n){const o=function(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:u(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:u(o.data)}])}}return t}(g(e,l.isKanjiModeEnabled())),a=function(e,t){const n={},o={start:{}};let a=["start"];for(let i=0;i<e.length;i++){const s=e[i],c=[];for(let e=0;e<s.length;e++){const l=s[e],d=""+i+e;c.push(d),n[d]={node:l,lastCount:0},o[d]={};for(let e=0;e<a.length;e++){const i=a[e];n[i]&&n[i].node.mode===l.mode?(o[i][d]=f(n[i].lastCount+l.length,l.mode)-f(n[i].lastCount,l.mode),n[i].lastCount+=l.length):(n[i]&&(n[i].lastCount=l.length),o[i][d]=f(l.length,l.mode)+4+r.getCharCountIndicator(l.mode,t))}}a=c}for(let e=0;e<a.length;e++)o[a[e]].end=0;return{map:o,table:n}}(o,n),i=d.find_path(a.map,"start","end"),s=[];for(let e=1;e<i.length-1;e++)s.push(a.table[i[e]].node);return t.fromArray(s.reduce(function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[]))},t.rawSplit=function(e){return t.fromArray(g(e,l.isKanjiModeEnabled()))}},6886(e,t){let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},1878(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},1427(e,t,n){const r=n(6886),o=n(7518),a=n(9953),i=n(208),s=n(1878),c=r.getBCHDigit(7973);function l(e,t){return i.getCharCountIndicator(e,t)+4}function d(e,t){let n=0;return e.forEach(function(e){const r=l(e.mode,t);n+=r+e.getBitsLength()}),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=i.BYTE);const a=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===i.MIXED)return a;const c=a-l(n,e);switch(n){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){let r;const o=a.from(n,a.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(d(e,r)<=t.getCapacity(r,n,i.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-c>=0;)t^=7973<<r.getBCHDigit(t)-c;return e<<12|t}},7899(e,t,n){const r=n(2726);t.render=function(e,t,n){let o=n,a=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);const i=r.getImageWidth(e.modules.size,o),s=a.getContext("2d"),c=s.createImageData(i,i);return r.qrToImageData(c.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,a,i),s.putImageData(c,0,0),a},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const a=t.render(e,n,o),i=o.type||"image/png",s=o.rendererOpts||{};return a.toDataURL(i,s.quality)}},6756(e,t,n){const r=n(2726);function o(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function a(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){const i=r.getOptions(t),s=e.modules.size,c=e.modules.data,l=s+2*i.margin,d=i.color.light.a?"<path "+o(i.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",u="<path "+o(i.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,i=!1,s=0;for(let c=0;c<e.length;c++){const l=Math.floor(c%t),d=Math.floor(c/t);l||i||(i=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(r+=i?a("M",l+n,.5+d+n):a("m",o,0),o=0,i=!1),l+1<t&&e[c+1]||(r+=a("h",s),s=0)):o++}return r}(c,s,i.margin)+'"/>',h='viewBox="0 0 '+l+" "+l+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+h+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof n&&n(null,g),g}},2726(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,a=n.modules.data,i=t.getScale(o,r),s=Math.floor((o+2*r.margin)*i),c=r.margin*i,l=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let d=4*(t*s+n),u=r.color.light;t>=c&&n>=c&&t<s-c&&n<s-c&&(u=l[a[Math.floor((t-c)/i)*o+Math.floor((n-c)/i)]?1:0]),e[d++]=u.r,e[d++]=u.g,e[d++]=u.b,e[d]=u.a}}}};const a={};function i(e){const t=a[e];if(void 0!==t)return t.exports;const n=a[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s=i.cw(function(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}),c=i.cw(function(e,t){e.exports=s()});const l={en:"ltr",ar:"rtl",es:"ltr",fr:"ltr",ja:"ltr",ru:"ltr",zh:"ltr"};function d(e="en"){return String(e).trim().toLowerCase().split(/[-_]/)[0]}function u(e,t){const n=d(e),r=void 0!==e&&Object.hasOwn(l,n)?l[n]:void 0,o=void 0===t?r:t;return{...void 0===e?{}:{lang:e},...void 0===o?{}:{dir:o}}}function h(e){try{const t=JSON.parse(e.dataset.labels);return t&&"object"==typeof t&&!Array.isArray(t)?t:void 0}catch{return}}const g=(f={mainLabel:"Share this",onCopy:"Copied",qrCodeTitle:"QR code",qrCodeDescription:"This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModal:"Close modal",copyImage:"Copy image",downloadImage:"Download image",closeMessage:"Close message",shareUsingDevice:"Share using your device",shareOnLinkedIn:"Share on LinkedIn",shareOnFacebook:"Share on Facebook",shareOnX:"Share on X",shareViaEmail:"Share via Email",generateQRCode:"Generate QR Code",copyToClipboard:"Copy to Clipboard"},p={ar:{mainLabel:"مشاركة",onCopy:"تم النسخ",qrCodeTitle:"رمز QR",qrCodeDescription:"يحتوي رمز QR هذا على الرابط أدناه. يمكنك نسخ الصورة أو إضافتها إلى موادك المطبوعة أو المعروضة.",closeModal:"إغلاق مربع الحوار",copyImage:"نسخ الصورة",downloadImage:"تنزيل الصورة",closeMessage:"إغلاق الرسالة",shareUsingDevice:"المشاركة عبر الجهاز",shareOnLinkedIn:"المشاركة على LinkedIn",shareOnFacebook:"المشاركة على Facebook",shareOnX:"المشاركة على X",shareViaEmail:"المشاركة عبر البريد الإلكتروني",generateQRCode:"إنشاء رمز QR",copyToClipboard:"نسخ إلى الحافظة"},es:{mainLabel:"Compartir",onCopy:"Copiado",qrCodeTitle:"Código QR",qrCodeDescription:"Este código QR contiene el enlace a continuación. Puede copiar la imagen o añadirla a sus materiales impresos o de presentación.",closeModal:"Cerrar cuadro de diálogo",copyImage:"Copiar imagen",downloadImage:"Descargar imagen",closeMessage:"Cerrar mensaje",shareUsingDevice:"Compartir con su dispositivo",shareOnLinkedIn:"Compartir en LinkedIn",shareOnFacebook:"Compartir en Facebook",shareOnX:"Compartir en X",shareViaEmail:"Compartir por correo electrónico",generateQRCode:"Generar código QR",copyToClipboard:"Copiar al portapapeles"},fr:{mainLabel:"Partager",onCopy:"Copié",qrCodeTitle:"Code QR",qrCodeDescription:"Ce code QR contient le lien ci-dessous. Vous pouvez copier l'image ou l'ajouter à vos supports imprimés ou d'affichage.",closeModal:"Fermer la boîte de dialogue",copyImage:"Copier l'image",downloadImage:"Télécharger l'image",closeMessage:"Fermer le message",shareUsingDevice:"Partager avec votre appareil",shareOnLinkedIn:"Partager sur LinkedIn",shareOnFacebook:"Partager sur Facebook",shareOnX:"Partager sur X",shareViaEmail:"Partager par courriel",generateQRCode:"Générer un code QR",copyToClipboard:"Copier dans le presse-papiers"},ja:{mainLabel:"シェア",onCopy:"コピーしました",qrCodeTitle:"QRコード",qrCodeDescription:"このQRコードには以下のリンクが含まれています。画像をコピーするか、印刷物や展示物に追加できます。",closeModal:"閉じる",copyImage:"画像をコピー",downloadImage:"画像をダウンロード",closeMessage:"メッセージを閉じる",shareUsingDevice:"デバイスでシェア",shareOnLinkedIn:"LinkedInでシェア",shareOnFacebook:"Facebookでシェア",shareOnX:"Xでシェア",shareViaEmail:"メールでシェア",generateQRCode:"QRコードを生成",copyToClipboard:"クリップボードにコピー"},ru:{mainLabel:"Поделиться",onCopy:"Скопировано",qrCodeTitle:"QR-код",qrCodeDescription:"Этот QR-код содержит ссылку ниже. Вы можете скопировать изображение или добавить его в печатные или демонстрационные материалы.",closeModal:"Закрыть диалог",copyImage:"Скопировать изображение",downloadImage:"Скачать изображение",closeMessage:"Закрыть сообщение",shareUsingDevice:"Поделиться через устройство",shareOnLinkedIn:"Поделиться в LinkedIn",shareOnFacebook:"Поделиться в Facebook",shareOnX:"Поделиться в X",shareViaEmail:"Поделиться по электронной почте",generateQRCode:"Создать QR-код",copyToClipboard:"Скопировать в буфер обмена"},zh:{mainLabel:"分享",onCopy:"已复制",qrCodeTitle:"二维码",qrCodeDescription:"此二维码包含以下链接。您可以复制图片,或将其添加到印刷品或展示材料中。",closeModal:"关闭弹窗",copyImage:"复制图片",downloadImage:"下载图片",closeMessage:"关闭消息",shareUsingDevice:"通过设备分享",shareOnLinkedIn:"在 LinkedIn 上分享",shareOnFacebook:"在 Facebook 上分享",shareOnX:"在 X 上分享",shareViaEmail:"通过电子邮件分享",generateQRCode:"生成二维码",copyToClipboard:"复制到剪贴板"}},(e,t)=>{const n=d(e),r=Object.hasOwn(p,n)?p[n]:void 0,o=Object.fromEntries(Object.entries(t??{}).filter(([,e])=>void 0!==e));return{...f,...r,...o}});var f,p,m=i(5556),y=i.n(m),b=i(7583);const w=JSON.parse('{"Mail":"mailto:?subject=[SHARING_TEXT_SUBJECT]&body=[SHARING_TEXT_BODY]","Facebook":"https://facebook.com/sharer/sharer.php?u=[SHARING_TEXT_BODY]","LinkedIn":"https://www.linkedin.com/sharing/share-offsite/?url=[SHARING_TEXT_BODY]","Twitter":"https://twitter.com/intent/tweet?text=[SHARING_TEXT_BODY]"}');c();const C="Check out this link: ",E="Sharing Link",v=({lang:o,dir:a,isOpen:i,onClose:c,qrCodeDataUrl:l,onCopy:d,onDownload:h,sharedLink:g,copiedLabel:f="Image copied",titleLabel:p="QR code",descriptionLabel:m="This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModalLabel:y="Close modal",copyImageLabel:b="Copy image",downloadImageLabel:w="Download image",closeMessageLabel:C="Close message"})=>{const E=n(null),v=t(),I=t(),[T,R]=r(!1),L=n(i);if(i!==L.current&&(L.current=i,i&&R(!1)),e(()=>{if(!i)return;const e=E.current,t=document.body.style.overflow;return document.body.style.overflow="hidden",e.showModal(),()=>{e.open&&e.close(),document.body.style.overflow=t}},[i]),e(()=>{if(!T)return;const e=setTimeout(()=>R(!1),2e3);return()=>clearTimeout(e)},[T]),!i)return null;const N=()=>E.current?.close();return(0,s().jsxs)("dialog",{...u(o,a),ref:E,"data-vf-google-analytics-region":"share-qr-code",className:"mg-share__dialog","aria-labelledby":v,"aria-describedby":I,onClose:c,onClick:e=>{if(e.target!==E.current)return;const t=E.current.getBoundingClientRect();(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)&&N()},children:[(0,s().jsxs)("div",{className:"mg-share__dialog-header",children:[(0,s().jsx)("h2",{id:v,className:"mg-share__dialog-title",children:p}),(0,s().jsx)("button",{type:"button",onClick:N,className:"mg-icon-button mg-share__dialog-close","aria-label":y,children:(0,s().jsx)("span",{className:"mg-icon mg-icon-close","aria-hidden":"true"})})]}),(0,s().jsx)("p",{id:I,className:"mg-share__dialog-description",children:m}),(0,s().jsx)("div",{className:"mg-share__dialog-content",children:l&&(0,s().jsxs)("div",{children:[(0,s().jsx)("img",{src:l,alt:"",className:"mg-share__dialog-image"}),(0,s().jsx)("div",{className:"mg-share__dialog-url",children:(0,s().jsx)("code",{className:"mg-code--block",children:(()=>{const e=new URL(g);return e.searchParams.set("utm_source","qr"),e.searchParams.set("utm_medium","web"),e.searchParams.set("utm_campaign","share_box"),e.toString()})()})})]})}),(0,s().jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"mg-share__visually-hidden",children:T?`${f}`:""}),(0,s().jsxs)("div",{className:"mg-share__dialog-actions",children:[(0,s().jsxs)("div",{className:"mg-share__dialog-actions-primary",children:[(0,s().jsx)("button",{type:"button",onClick:async()=>{try{await d(),R(!0)}catch(e){console.error("Copy failed:",e)}},className:"mg-button mg-button-primary",disabled:T,children:T?f:b}),(0,s().jsx)("button",{type:"button",onClick:h,className:"mg-button mg-button-secondary",children:w})]}),(0,s().jsx)("button",{type:"button",onClick:N,className:"mg-button mg-button-secondary",children:C})]})]})},I=({lang:e,dir:t,labels:o,SharingSubject:a,SharingTextBody:i,...c})=>{const l=g(e,o),[d,h]=r(!1),[f,p]=r(null),m=n(null),y=(()=>{const e=document.querySelector('link[rel="shortlink"]');return e?e.href:window.location.href})(),I=e=>{if("QRCode"===e)R();else if("WebShare"===e&&navigator.share)navigator.share({title:a??E,text:i??C,url:y}).catch(e=>console.error("Error sharing",e));else{var t=(e=>{const t=w[e],n=encodeURIComponent(a??E),r=encodeURIComponent(i??C)+encodeURIComponent(y);return t.replace("[SHARING_TEXT_SUBJECT]",n).replace("[SHARING_TEXT_BODY]",r)})(e);"Mail"===e?window.location.href=t:window.open(t,"_blank","width=600,height=300")}},R=async()=>{try{const e=new URL(y);e.searchParams.set("utm_source","qr"),e.searchParams.set("utm_medium","web"),e.searchParams.set("utm_campaign","share_box");const t=e.toString(),n=await b.toDataURL(t,{width:1024,margin:2,color:{dark:"#000000",light:"#FFFFFF"}});p(n),h(!0)}catch(e){console.error("Error generating QR code:",e),alert("Failed to generate QR code. Please try again.")}};return(0,s().jsxs)(s().Fragment,{children:[(0,s().jsxs)("section",{...u(e,t),"data-vf-google-analytics-region":"share-this",className:"mg-share",...c,children:[(0,s().jsx)("header",{className:"mg-share__header",children:l.mainLabel}),(0,s().jsxs)("div",{className:"mg-share__buttons",children:[navigator.share&&(0,s().jsx)("button",{"data-vf-analytics-label":"Social share: Web Share API",onClick:()=>I("WebShare"),"aria-label":l.shareUsingDevice,title:l.shareUsingDevice,className:"mg-share__button",children:(0,s().jsx)("span",{className:"mg-icon mg-icon-share","aria-hidden":"true"})}),(0,s().jsx)("button",{"data-vf-analytics-label":"Social share: LinkedIn",onClick:()=>I("LinkedIn"),"aria-label":l.shareOnLinkedIn,className:"mg-share__button",title:l.shareOnLinkedIn,children:(0,s().jsx)("span",{className:"mg-icon mg-icon-linkedin","aria-hidden":"true"})}),(0,s().jsx)("button",{"data-vf-analytics-label":"Social share: Facebook",onClick:()=>I("Facebook"),"aria-label":l.shareOnFacebook,title:l.shareOnFacebook,className:"mg-share__button",children:(0,s().jsx)("span",{className:"mg-icon mg-icon-facebook","aria-hidden":"true"})}),(0,s().jsx)("button",{"data-vf-analytics-label":"Social share: X",onClick:()=>I("Twitter"),"aria-label":l.shareOnX,className:"mg-share__button",title:l.shareOnX,children:(0,s().jsx)("span",{className:"mg-icon mg-icon-x-social","aria-hidden":"true"})}),(0,s().jsx)("button",{"data-vf-analytics-label":"Social share: Mail",onClick:()=>I("Mail"),"aria-label":l.shareViaEmail,className:"mg-share__button",title:l.shareViaEmail,children:(0,s().jsx)("span",{className:"mg-icon mg-icon-envelope","aria-hidden":"true"})}),(0,s().jsx)("button",{ref:m,"data-vf-analytics-label":"Social share: QR Code",onClick:()=>I("QRCode"),"aria-label":l.generateQRCode,className:"mg-share__button",title:l.generateQRCode,children:(0,s().jsx)("span",{className:"mg-icon mg-icon-qrcode","aria-hidden":"true"})})]}),(0,s().jsx)(T,{className:"mg-share__copy-button",copiedLabel:l.onCopy,copyToClipboardLabel:l.copyToClipboard,sharedLink:y})]}),(0,s().jsx)(v,{lang:e,dir:t,isOpen:d,onClose:()=>{h(!1),p(null),m.current?.focus()},qrCodeDataUrl:f,onCopy:async()=>{try{if(f){const e=await fetch(f),t=await e.blob(),n=new ClipboardItem({"image/png":t});await navigator.clipboard.write([n])}}catch(e){console.error("Error copying QR code to clipboard:",e),alert("Failed to copy QR code to clipboard. Please check browser permissions.")}},onDownload:async()=>{try{if(f){const e=await fetch(f),t=await e.blob(),n=new URL(y);let r="qr-code";if(n.hostname&&(r+=`-${n.hostname.replace(/^www\./,"").replace(/\./g,"-")}`),n.pathname&&"/"!==n.pathname){const e=n.pathname.replace(/^\//,"").replace(/\/$/,"").replace(/[^a-zA-Z0-9-_]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");e&&(r+=`-${e}`)}r=r.substring(0,100)+".png";const o=URL.createObjectURL(t),a=document.createElement("a");a.href=o,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}}catch(e){console.error("Error downloading QR code:",e),alert("Failed to download QR code. Please try again.")}},sharedLink:y,copiedLabel:l.onCopy,titleLabel:l.qrCodeTitle,descriptionLabel:l.qrCodeDescription,closeModalLabel:l.closeModal,copyImageLabel:l.copyImage,downloadImageLabel:l.downloadImage,closeMessageLabel:l.closeMessage})]})};function T({copiedLabel:e,sharedLink:t,className:n,copyToClipboardLabel:o="Copy to Clipboard"}){const[a,i]=r(!1);let c=t;return t.startsWith("https://")?c=t.replace("https://",""):t.startsWith("http://")&&(c=t.replace("http://","")),(0,s().jsxs)("button",{"data-vf-analytics-label":"Quick link copy","aria-label":o,title:o,className:n,onClick:()=>(navigator.clipboard.writeText(t),void i(!0)),children:[(0,s().jsx)("div",{className:"mg-share__clip-icon",children:(0,s().jsx)("span",{className:"mg-icon mg-icon-link","aria-hidden":"true"})}),(0,s().jsx)("div",{className:"mg-share__copy-text",children:a?e:c}),(0,s().jsx)("div",{className:"mg-share__stack-icon",children:(0,s().jsx)("span",{className:"mg-icon mg-icon-clone","aria-hidden":"true"})})]})}v.propTypes={isOpen:y().bool.isRequired,onClose:y().func.isRequired,qrCodeDataUrl:y().string,onCopy:y().func.isRequired,onDownload:y().func.isRequired,sharedLink:y().string.isRequired,copiedLabel:y().string},I.propTypes={lang:y().string,dir:y().oneOf(["ltr","rtl","auto"]),labels:y().shape({mainLabel:y().string,onCopy:y().string,qrCodeTitle:y().string,qrCodeDescription:y().string,closeModal:y().string,copyImage:y().string,downloadImage:y().string,closeMessage:y().string,shareUsingDevice:y().string,shareOnLinkedIn:y().string,shareOnFacebook:y().string,shareOnX:y().string,shareViaEmail:y().string,generateQRCode:y().string,copyToClipboard:y().string}),SharingSubject:y().string,SharingTextBody:y().string},T.propTypes={copiedLabel:y().string.isRequired,sharedLink:y().string.isRequired,className:y().string,copyToClipboardLabel:y().string};const R=I;function L(e){const{dataset:t}=e,n=function(e){const t=e.dataset.lang??e.closest("[lang]")?.getAttribute("lang"),n=e.getAttribute("dir")?.toLowerCase();return{...null==t?{}:{lang:t},...["ltr","rtl","auto"].includes(n)?{dir:n}:{}}}(e);return{...n,labels:{...void 0===n.lang?{mainLabel:"Share this",onCopy:"Link copied"}:{},...h(e),...void 0===t.mainLabel?{}:{mainLabel:t.mainLabel},...void 0===t.onCopyLabel?{}:{onCopy:t.onCopyLabel}},SharingSubject:t.sharingSubject||"Sharing Link",SharingTextBody:t.sharingBody||""}}export{T as CopyButton,R as default,L as fromElement,g as getShareButtonsLabels};
@@ -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-17T14:23:48.871Z
6
+ * Compiled on: 2026-10-27T09:44:34.250Z
7
7
  */
8
8
  /*! For license information please see ShowMore.js.LICENSE.txt */
9
9
  import{default as e,useEffect as t,useId as o,useRef as n}from"react";var r={2694(e,t,o){var n=o(6925);function r(){}function s(){}s.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,s,a){if(a!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:r};return o.PropTypes=o,o}},5556(e,t,o){e.exports=o(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const s={};function a(e){const t=s[e];if(void 0!==t)return t.exports;const o=s[e]={exports:{}};return r[e](o,o.exports,a),o.exports}a.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.cw=e=>{var t;return()=>{if(e){var o=e;e=0,t={exports:{}},o.call(t.exports,t,t.exports)}return t.exports}},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i=a.cw(function(e,t){var o=Symbol.for("react.transitional.element");function n(e,t,n){var r=null;if(void 0!==n&&(r=""+n),void 0!==t.key&&(r=""+t.key),"key"in t)for(var s in n={},t)"key"!==s&&(n[s]=t[s]);else n=t;return t=n.ref,{$$typeof:o,type:e,key:r,ref:void 0!==t?t:null,props:n}}Symbol.for("react.fragment"),t.jsx=n,t.jsxs=n}),l=a.cw(function(e,t){e.exports=i()}),c=a(5556),d=a.n(c);const m=Symbol.for("undrr.mangrove.showMore.targetCounter");function u(e){const t=[];return(e?e instanceof HTMLElement?[e]:e:document.querySelectorAll("[data-mg-show-more]")).forEach(o=>{if(!e&&o.hasAttribute("data-mg-show-more-skip-auto-init"))return;if(o.dataset.mgShowMoreInitialized)return;const n=o.dataset.mgShowMoreTarget||".mg-show-more--container",r=function(e,t){for(let o=e.parentElement;o;o=o.parentElement){const e=o.querySelector(t);if(e)return e}return document.querySelector(t)}(o,n);if(!r)return void console.warn(`[mg-show-more] Target not found: "${n}"`);o.dataset.mgShowMoreInitialized="true";const s=r.classList.contains("mg-show-more--collapsed"),a=o.classList.contains("mg-show-more--button--open"),i=o.getAttribute("aria-controls"),l=o.getAttribute("role"),c=e=>{" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),o.click())},d="mg-show-more--collapsed",u=o.getAttribute("data-vf-analytics-label"),{mgShowMoreAnalyticsCollapsed:p,mgShowMoreAnalyticsOpen:g}=o.dataset,h=p||g||!u?{collapsed:p||"Show more",open:g||"Show less"}:null,f=o.querySelector("[data-mg-show-more-label]")||o,b=f.textContent,w=o.hidden;""===r.id&&(r.id=function(){for(;;){const e=globalThis[m],t=Number.isSafeInteger(e)&&e>=0?e:0;globalThis[m]=t+1;const o=`mg-show-more-target-${t}`;if(!document.getElementById(o))return o}}()),o.setAttribute("aria-controls",r.id),"BUTTON"!==o.tagName&&(o.setAttribute("role","button"),o.addEventListener("keydown",c));const y=e=>{r.classList.toggle(d,e),f.textContent=e?o.dataset.mgShowMoreLabelCollapsed||"Show more":o.dataset.mgShowMoreLabelOpen||"Show less",o.classList.toggle("mg-show-more--button--open",!e),h&&o.setAttribute("data-vf-analytics-label",e?h.collapsed:h.open)};let v=!1;const L=e=>{e.preventDefault(),v=!0;const t=!r.classList.contains(d);y(t),t&&function(e,t){const o=e.getBoundingClientRect();if(o.bottom>0&&o.top<window.innerHeight)return;const n=t.previousElementSibling,r=n?.matches("h1, h2, h3, h4, h5, h6")?n:t,s="function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;r.scrollIntoView?.({block:"start",behavior:s?"auto":"smooth"})}(o,r)};o.addEventListener("click",L);const S=e=>{o===e.target||o.contains(e.target)||r.classList.contains(d)&&o.click()};r.addEventListener("focusin",S);const x=()=>{r.classList.contains(d)&&o.click()};r.addEventListener("click",x),o.hidden=!1,y(!s);let O=null,k=0;if(o.hasAttribute("data-mg-show-more-min-hidden-lines")){const e=parseFloat(o.dataset.mgShowMoreMinHiddenLines)>0?parseFloat(o.dataset.mgShowMoreMinHiddenLines):1,t=()=>{if(k=0,v||0===r.scrollHeight)return;const t=function(e){const t=e.classList.contains("mg-show-more--collapsed");t||e.classList.add("mg-show-more--collapsed");const o=parseFloat(getComputedStyle(e).maxHeight);return t||e.classList.remove("mg-show-more--collapsed"),o}(r),n=function(e){const t=getComputedStyle(e),o=parseFloat(t.lineHeight);return Number.isFinite(o)?o:1.2*parseFloat(t.fontSize)}(r);if(!Number.isFinite(t)||!Number.isFinite(n))return;const s=r.scrollHeight-t>=e*n;y(s),o.hidden=!s};t(),"function"==typeof ResizeObserver&&(O=new ResizeObserver(()=>{k&&cancelAnimationFrame(k),k=requestAnimationFrame(t)}),O.observe(r))}t.push(()=>{O?.disconnect(),k&&cancelAnimationFrame(k),o.hidden=w,null===u?o.removeAttribute("data-vf-analytics-label"):o.setAttribute("data-vf-analytics-label",u),o.removeEventListener("click",L),o.removeEventListener("keydown",c),r.removeEventListener("focusin",S),r.removeEventListener("click",x),r.classList.toggle("mg-show-more--collapsed",s),o.classList.toggle("mg-show-more--button--open",a),f.textContent=b;for(const[e,t]of[["aria-controls",i],["role",l]])null===t?o.removeAttribute(e):o.setAttribute(e,t);delete o.dataset.mgShowMoreInitialized})}),()=>t.splice(0).forEach(e=>e())}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>u(),!1):u(),l();const p=[];function g({item:o,id:r,labelOpen:s,labelCollapsed:a,minHiddenLines:l}){const c=n(null);return t(()=>u(c.current),[]),t(()=>{const e=c.current,t=document.getElementById(r);e.textContent=t.classList.contains("mg-show-more--collapsed")?a:s},[r,s,a]),(0,i().jsxs)(e.Fragment,{children:[(0,i().jsx)("div",{id:r,className:o.collapsable_wrapper_class,children:o.collapsable_text}),(0,i().jsx)("button",{ref:c,type:"button",className:"mg-button mg-button-primary mg-show-more--button","data-mg-show-more":"true","data-mg-show-more-skip-auto-init":"true","data-mg-show-more-target":`#${r}`,"data-mg-show-more-label-open":s,"data-mg-show-more-label-collapsed":a,"data-mg-show-more-min-hidden-lines":l,children:a})]})}const h=d().shape({button_text:d().string,collapsable_wrapper_class:d().string.isRequired,collapsable_text:d().string.isRequired});function f({data:t=p,labelOpen:n="Show less",labelCollapsed:r="Show more",minHiddenLines:s}){const a=o().replace(/[^a-zA-Z0-9_-]/g,"");return(0,i().jsx)(e.Fragment,{children:t.map((e,t)=>(0,i().jsx)(g,{item:e,id:`mg-show-more-${a}-${t}`,labelOpen:n,labelCollapsed:r,minHiddenLines:s},t))})}g.propTypes={item:h.isRequired,id:d().string.isRequired,labelOpen:d().string.isRequired,labelCollapsed:d().string.isRequired,minHiddenLines:d().number},f.propTypes={data:d().arrayOf(h).isRequired,labelOpen:d().string,labelCollapsed:d().string,minHiddenLines:d().number};const b=f;export{f as ShowMore,b as default};
@@ -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-17T14:23:48.871Z
6
+ * Compiled on: 2026-10-27T09:44:34.250Z
7
7
  */
8
8
  /*! For license information please see SkipLink.js.LICENSE.txt */
9
9
  import"react";var e={2694(e,t,r){var n=r(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,s){if(s!==n){var c=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 c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={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 r.PropTypes=r,r}},5556(e,t,r){e.exports=r(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.cw=e=>{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},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);var n=r.cw(function(e,t){var r=Symbol.for("react.transitional.element");Symbol.for("react.fragment"),t.jsx=function(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in n={},t)"key"!==a&&(n[a]=t[a]);else n=t;return t=n.ref,{$$typeof:r,type:e,key:o,ref:void 0!==t?t:null,props:n}}}),o=r.cw(function(e,t){e.exports=n()}),a=r(5556),s=r.n(a);function c({targetId:e="main-content",label:t="Skip to main content",className:r,onClick:o,...a}){const s=["mg-skip-link",r].filter(Boolean).join(" ");return(0,n().jsx)("a",{className:s,href:`#${e}`,onClick:t=>{const r="undefined"==typeof document?null:document.getElementById(e);r&&r.focus(),o&&o(t)},...a,children:t})}o(),c.propTypes={targetId:s().string,label:s().string,className:s().string,onClick:s().func};const i=c;export{c as SkipLink,i as default};
@@ -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-17T14:23:48.871Z
6
+ * Compiled on: 2026-10-27T09:44:34.250Z
7
7
  */
8
8
  /*! For license information please see StatsCard.js.LICENSE.txt */
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};
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,S="undefined"!=typeof Reflect&&Reflect,T=S.apply,x=S.construct;g||(g=function(t){return t}),b||(b=function(t){return t}),T||(T=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=q(Array.prototype.forEach);Array.prototype.indexOf;const A=q(Array.prototype.lastIndexOf),E=q(Array.prototype.pop),_=q(Array.prototype.push),O=q(Array.prototype.slice),N=q(Array.prototype.splice),k=Array.isArray,D=X(Set),R=q(Set.prototype.add),C=q(Set.prototype.has),I=q(String.prototype.toLowerCase),L=q(String.prototype.toString),z=q(String.prototype.match),M=q(String.prototype.replace),P=q(String.prototype.indexOf),j=q(String.prototype.trim),U=q(Number.prototype.toString),F=q(Boolean.prototype.toString),H="undefined"==typeof BigInt?null:q(BigInt.prototype.toString),B="undefined"==typeof Symbol?null:q(Symbol.prototype.toString),W=q(Object.prototype.hasOwnProperty),Y=q(Object.prototype.toString),$=q(RegExp.prototype.test),G=X(TypeError);function q(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 T(t,e,r)}}function X(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return x(t,n)}}function K(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I;if(m&&m(t,null),!k(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 V(t){for(let e=0;e<t.length;e++)W(t,e)||(t[e]=null);return t}function Z(t){const e=v(null);for(const r of p(t)){var n=u(r,2);const o=n[0],i=n[1];W(t,o)&&(k(i)?e[o]=V(i):i&&"object"==typeof i&&i.constructor===Object?e[o]=Z(i):e[o]=i)}return e}function J(t,e){for(;null!==t;){const n=y(t,e);if(n){if(n.get)return q(n.get);if("function"==typeof n.value)return q(n.value)}t=h(t)}return function(){return null}}const Q=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"]),tt=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"]),et=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"]),nt=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"]),rt=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"]),ot=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),it=g(["#text"]),at=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"]),lt=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"]),ct=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"]),st=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ut=b(/{{[\w\W]*|^[\w\W]*}}/g),ft=b(/<%[\w\W]*|^[\w\W]*%>/g),pt=b(/\${[\w\W]*/g),mt=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),dt=b(/^aria-[\-\w]+$/),ht=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yt=b(/^(?:\w+script|data):/i),gt=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bt=b(/^html$/i),vt=b(/^[a-z][.\w]*(-[.\w]+)+$/i),St=b(/<[/\w!]/g),Tt=b(/<[/\w]/g),xt=b(/<\/no(script|embed|frames)/i),wt=b(/\/>/i),At=g(K({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Et=function(){return"undefined"==typeof window?null:window},_t=function(t,e,n,r){return W(t,e)&&k(t[e])?K(r.base?Z(r.base):{},t[e],r.transform):n},Ot=function(t,e,n){const r=W(t,e)?t[e]:void 0;return r&&"object"==typeof r?Z(r):n()};var Nt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Et();const n=e=>t(e);if(n.version="3.4.17",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=J(m,"cloneNode"),S=J(m,"remove"),T=J(m,"removeAttributeNode"),x=J(m,"nextSibling"),X=J(m,"childNodes"),V=J(m,"parentNode"),Nt=J(m,"shadowRoot"),kt=J(m,"attributes"),Dt=l&&l.prototype?J(l.prototype,"nodeType"):null,Rt=l&&l.prototype?J(l.prototype,"nodeName"):null,Ct=l&&l.prototype?J(l.prototype,"ownerDocument"):null,It=function(t){return Dt?Dt(t):t.nodeType},Lt=function(t){return Rt?Rt(t):t.nodeName},zt=function(t){for(;null!==t;){const e=y(t,"namespaceURI");if(e)return e.get?q(e.get):null;t=h(t)}return null}(m),Mt=function(t){return zt?zt(t):t.namespaceURI};if("function"==typeof a){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let Pt,jt,Ut="",Ft=!1,Ht=0;const Bt=function(){if(Ht>0)throw G('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.')},Wt=function(t){Bt(),Ht++;try{return Pt.createHTML(t)}finally{Ht--}},Yt=r,$t=Yt.implementation,Gt=Yt.createNodeIterator,qt=Yt.createDocumentFragment,Xt=Yt.getElementsByTagName,Kt=o.importNode;let Vt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof p&&"function"==typeof V&&$t&&void 0!==$t.createHTMLDocument;const Zt=ut,Jt=ft,Qt=pt,te=mt,ee=dt,ne=yt,re=gt,oe=vt;let ie=ht,ae=null;const le=K({},[...Q,...tt,...et,...rt,...it]);let ce=null;const se=K({},[...at,...lt,...ct,...st]);let ue=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}})),fe=null,pe=null;const me=Object.seal(v(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let de=!0,he=!0,ye=!1,ge=!0,be=!1,ve=!0,Se=!1,Te=!1,xe=null,we=null,Ae=!1,Ee=!1,_e=!1,Oe=!1,Ne=!0,ke=!1;const De="user-content-";let Re=!0,Ce=!1,Ie=null,Le={},ze=null;const Me=K({},["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 Pe=null;const je=K({},["audio","video","img","source","image","track"]);let Ue=null;const Fe=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),He="http://www.w3.org/1998/Math/MathML",Be="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let Ye=We,$e=!1,Ge=null;const qe=K({},[He,Be,We],L),Xe=g(["mi","mo","mn","ms","mtext"]);let Ke=K({},Xe);const Ve=g(["annotation-xml"]);let Ze=K({},Ve);const Je=K({},["title","style","font","a","script"]);let Qe=null;const tn=["application/xhtml+xml","text/html"];let en=null,nn=null;const rn=r.createElement("form"),on=function(t){return t instanceof RegExp||t instanceof Function},an=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(nn&&nn===t)return;t&&"object"==typeof t||(t={}),t=Z(t),Qe=-1===tn.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,en="application/xhtml+xml"===Qe?L:I,ae=_t(t,"ALLOWED_TAGS",le,{transform:en}),ce=_t(t,"ALLOWED_ATTR",se,{transform:en}),Ge=_t(t,"ALLOWED_NAMESPACES",qe,{transform:L}),Ue=_t(t,"ADD_URI_SAFE_ATTR",Fe,{transform:en,base:Fe}),Pe=_t(t,"ADD_DATA_URI_TAGS",je,{transform:en,base:je}),ze=_t(t,"FORBID_CONTENTS",Me,{transform:en}),fe=_t(t,"FORBID_TAGS",Z({}),{transform:en}),pe=_t(t,"FORBID_ATTR",Z({}),{transform:en}),Le=!!W(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?Z(t.USE_PROFILES):t.USE_PROFILES),de=!1!==t.ALLOW_ARIA_ATTR,he=!1!==t.ALLOW_DATA_ATTR,ye=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,be=t.SAFE_FOR_TEMPLATES||!1,ve=!1!==t.SAFE_FOR_XML,Se=t.WHOLE_DOCUMENT||!1,Ee=t.RETURN_DOM||!1,_e=t.RETURN_DOM_FRAGMENT||!1,Oe=t.RETURN_TRUSTED_TYPE||!1,Ae=t.FORCE_BODY||!1,Ne=!1!==t.SANITIZE_DOM,ke=t.SANITIZE_NAMED_PROPS||!1,Re=!1!==t.KEEP_CONTENT,Ce=t.IN_PLACE||!1,ie=function(t){try{return $(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:ht,Ye="string"==typeof t.NAMESPACE?t.NAMESPACE:We,Ke=Ot(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>K({},Xe)),Ze=Ot(t,"HTML_INTEGRATION_POINTS",()=>K({},Ve));const e=Ot(t,"CUSTOM_ELEMENT_HANDLING",()=>v(null));if(ue=v(null),W(e,"tagNameCheck")&&on(e.tagNameCheck)&&(ue.tagNameCheck=e.tagNameCheck),W(e,"attributeNameCheck")&&on(e.attributeNameCheck)&&(ue.attributeNameCheck=e.attributeNameCheck),W(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ue.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),b(ue),be&&(he=!1),_e&&(Ee=!0),Le&&(ae=K({},it),ce=v(null),!0===Le.html&&(K(ae,Q),K(ce,at)),!0===Le.svg&&(K(ae,tt),K(ce,lt),K(ce,st)),!0===Le.svgFilters&&(K(ae,et),K(ce,lt),K(ce,st)),!0===Le.mathMl&&(K(ae,rt),K(ce,ct),K(ce,st))),me.tagCheck=null,me.attributeCheck=null,W(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?me.tagCheck=t.ADD_TAGS:k(t.ADD_TAGS)&&(ae===le&&(ae=Z(ae)),K(ae,t.ADD_TAGS,en))),W(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?me.attributeCheck=t.ADD_ATTR:k(t.ADD_ATTR)&&(ce===se&&(ce=Z(ce)),K(ce,t.ADD_ATTR,en))),W(t,"ADD_FORBID_CONTENTS")&&k(t.ADD_FORBID_CONTENTS)&&(ze===Me&&(ze=Z(ze)),K(ze,t.ADD_FORBID_CONTENTS,en)),Re&&(ae["#text"]=!0),Se&&K(ae,["html","head","body"]),ae.table&&(K(ae,["tbody"]),delete fe.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Pt;Pt=t.TRUSTED_TYPES_POLICY;try{Ut=Wt("")}catch(t){throw Pt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Pt=void 0,Ut=""):(void 0===Pt&&(Ft||(jt=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),Ft=!0),Pt=jt),Pt&&"string"==typeof Ut&&(Ut=Wt("")));g&&g(t),nn=t},ln=K({},[...tt,...et,...nt]),cn=K({},[...rt,...ot]),sn=function(t){_(n.removed,{element:t});try{V(t).removeChild(t)}catch(e){if(S(t),!V(t))throw G("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},un=function(t,e,n){try{T(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},fn=function(t){hn(t);const e=X(t);e&&w(O(e),t=>{try{S(t)}catch(t){}});const n=1===It(t)?kt(t):null;if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&un(t,r,o)}},pn=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}_(n.removed,{attribute:r||null,from:e});try{r?T(e,r):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(Ee||_e)try{sn(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},mn=function(t){const e=kt(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||ce[en(o)]||un(t,r,o)}},dn=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=[t];for(;r.length>0;){const t=r.pop();if(!1===e(t))continue;if(n&&1===It(t)){const e=Nt(t);_n(e)&&r.push(e)}const o=X(t);if(o)for(let t=o.length-1;t>=0;--t)r.push(o[t])}},hn=function(t){dn(t,t=>{1===It(t)&&mn(t)})},yn=function(t){const e=[];return dn(t,t=>{e.push(t)},!0),e},gn=function(t,e){let r=!1;return w(n.removed,e=>{e.element&&(r=r||e.element===t,hn(e.element))}),function(t,e){const n=D();w(yn(t),t=>{1===It(t)&&R(n,t)}),w(e,t=>{1!==It(t)||C(n,t)||mn(t)})}(t,e),r},bn=function(t,e,n,r){const o=Tn(t);let i;for(;i=o.nextNode();)C(r,i)&&!C(Ie,i)&&(e&&Nn(Vt.uponSanitizeShadowNode,i,null),Cn(i,n),Un(i,n),_n(i.content)&&Fn(i.content))},vn=function(t,e){return!!ve&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},Sn=function(t){let e=null,n=null;if(Ae)t="<remove></remove>"+t;else{const e=z(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Qe&&Ye===We&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=Pt?Wt(t):t;if(Ye===We)try{e=(new u).parseFromString(o,Qe)}catch(t){}if(!e||!e.documentElement){e=$t.createDocument(Ye,"template",null);try{e.documentElement.innerHTML=$e?Ut:o}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ye===We?Xt.call(e,Se?"html":"body")[0]:Se?e.documentElement:i},Tn=function(t){const e=Ct?Ct(t):t.ownerDocument;return Gt.call(e||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},xn=function(t){return t=M(t,Zt," "),t=M(t,Jt," "),M(t,Qt," ")},wn=function(t){var e;An(t);const n=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");n&&w(n,t=>{_n(t.content)&&wn(t.content)})},An=function(t){t.normalize();const e=Ct?Ct(t):t.ownerDocument,n=Gt.call(e||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let r=n.nextNode();for(;r;)r.data=xn(r.data),r=n.nextNode()},En=function(t){const e=Rt?Rt(t):null;return"string"==typeof e&&"form"===en(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==kt(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!==Dt(t)||t.childNodes!==X(t))},_n=function(t){if(!Dt||"object"!=typeof t||null===t)return!1;try{return 11===Dt(t)}catch(t){return!1}},On=function(t){if(!Dt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Dt(t)}catch(t){return!1}};function Nn(t,e,r){0!==t.length&&w(t,t=>{t.call(n,e,r,nn)})}const kn=function(t,e){if(t instanceof RegExp)return $(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},Dn=function(t,e,n,r){return 0===t.length?e:e===n||e===r?Z(e):e},Rn=function(t,e){return t!==e&&null===V(t)&&(Ce&&hn(t),!0)},Cn=function(t,e){if(Ie&&R(Ie,t),Nn(Vt.beforeSanitizeElements,t,null),Rn(t,e))return!0;if(En(t))return sn(t),!0;const r=en(Lt(t));if(ae=Dn(Vt.uponSanitizeElement,ae,le,xe),Nn(Vt.uponSanitizeElement,t,{tagName:r,allowedTags:ae}),Rn(t,e))return!0;if(function(t,e){return!!(ve&&t.hasChildNodes()&&!On(t.firstElementChild)&&$(St,t.textContent)&&$(St,t.innerHTML))||!!(ve&&At[e]&&1===It(t)&&Mt(t)===We&&(On(t.firstElementChild)||"string"==typeof t.textContent&&$(St,t.textContent)))||7===t.nodeType||!(!ve||8!==t.nodeType||!$(Tt,t.data))}(t,r))return sn(t),!0;if(fe[r]||!(me.tagCheck instanceof Function&&me.tagCheck(r))&&!ae[r]){const n=function(t,e,n){if(!fe[e]&&zn(e)&&kn(ue.tagNameCheck,e))return!1;if(Re&&!ze[e]&&!ze[I(e)]){const e=V(t),r=X(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,x(t))}}return sn(t),!0}(t,r,e);return!(!1!==n||(Nn(Vt.afterSanitizeElements,t,null),!Rn(t,e)))||n}if(1===It(t)&&!function(t){const e=Mt(t),n=I(Lt(t)),r=V(t);let o,i;return r&&1===It(r)?(o={namespaceURI:Mt(r)},i=I(Lt(r))):(o={namespaceURI:Ye},i="template"),!!Ge[e]&&(e===Be?function(t,e,n){return e.namespaceURI===We?"svg"===t:e.namespaceURI===He?"svg"===t&&("annotation-xml"===n||Ke[n]):Boolean(ln[t])}(n,o,i):e===He?function(t,e,n){return e.namespaceURI===We?"math"===t:e.namespaceURI===Be?"math"===t&&Ze[n]:Boolean(cn[t])}(n,o,i):e===We?function(t,e,n){return!(e.namespaceURI===Be&&!Ze[n])&&!(e.namespaceURI===He&&!Ke[n])&&!cn[t]&&(Je[t]||!ln[t])}(n,o,i):!("application/xhtml+xml"!==Qe||!Ge[e]))}(t))return sn(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&$(xt,t.innerHTML))return sn(t),!0;if(be&&3===t.nodeType){const e=xn(t.textContent);t.textContent!==e&&(_(n.removed,{element:t.cloneNode()}),t.textContent=e)}return Nn(Vt.afterSanitizeElements,t,null),Rn(t,e)},In=function(t,e,n){if(pe[e])return!1;if(vn(e,t))return!1;if(Ne&&("id"===e||"name"===e)&&(n in r||n in rn))return!1;const o=ce[e]||me.attributeCheck instanceof Function&&me.attributeCheck(e,t);return!(!he||!$(te,e))||!(!de||!$(ee,e))||(o?!(!Ue[e]&&!$(ie,M(n,re,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==P(n,"data:")||!Pe[t])&&(!ye||$(ne,M(n,re,"")))&&n):zn(t)&&kn(ue.tagNameCheck,t)&&kn(ue.attributeNameCheck,e,t)||"is"===e&&ue.allowCustomizedBuiltInElements&&kn(ue.tagNameCheck,n))},Ln=K({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),zn=function(t){return!Ln[I(t)]&&$(oe,t)},Mn=function(t,e,n,r){if(Pt&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!n)switch(f.getAttributeType(t,e)){case"TrustedHTML":return Wt(r);case"TrustedScriptURL":return function(t){Bt(),Ht++;try{return Pt.createScriptURL(t)}finally{Ht--}}(r)}return r},Pn=function(t,e,n,r){try{return n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),!En(t)||(sn(t),!1)}catch(n){return pn(e,t),!1}},jn=function(t,e){return!(!ve||!$(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e))||"attributename"===I(t)&&null!==z(e,"href")},Un=function(t,e){if(Nn(Vt.beforeSanitizeAttributes,t,null),Rn(t,e))return;const r=t.attributes;if(!r||En(t))return;ce=Dn(Vt.uponSanitizeAttribute,ce,se,we);const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce,forceKeepAttr:void 0};let i=r.length;const a=en(t.nodeName);for(;i--;){const e=r[i],l=e.name,c=e.namespaceURI,s=e.value,u=en(l),f=s;let p="value"===l?f:j(f),m=!1;o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,Nn(Vt.uponSanitizeAttribute,t,o),p=o.attrValue,!ke||"id"!==u&&"name"!==u||0===P(p,De)||(pn(l,t,e),p=De+p,m=!0),jn(l,p)?pn(l,t,e):o.forceKeepAttr||(!o.keepAttr||!ge&&$(wt,p)?pn(l,t,e):(be&&(p=xn(p)),In(a,u,p)?(p=Mn(a,u,c,p),p!==f&&Pn(t,l,c,p)&&m&&E(n.removed)):pn(l,t,e)))}Nn(Vt.afterSanitizeAttributes,t,null),Rn(t,e)},Fn=function(t){let e=null;const n=Tn(t);for(Nn(Vt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(Nn(Vt.uponSanitizeShadowNode,e,null),Cn(e,t),Un(e,t),_n(e.content)&&Fn(e.content),1===It(e)){const t=Nt(e);_n(t)&&(Hn(t),Fn(t))}be&&An(t),Nn(Vt.afterSanitizeShadowDOM,t,null)},Hn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){Fn(t.shadow);continue}const n=t.node,r=1===It(n),o=X(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=Rt?Rt(n):null;if("string"==typeof t&&"template"===en(t)){const t=n.content;_n(t)&&e.push({node:t,shadow:null})}}if(r){const t=Nt(n);_n(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($e=!t,$e&&(t="\x3c!--\x3e"),"string"!=typeof t&&!On(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return U(t);case"boolean":return F(t);case"bigint":return H?H(t):"0";case"symbol":return B?B(t):"Symbol()";case"undefined":default:return Y(t);case"function":case"object":{if(null===t)return Y(t);const e=t,n=J(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:Y(t)}return Y(t)}}}(t)))throw G("dirty is not a string, aborting");if(!n.isSupported)return t;Te?(ae=xe,ce=we):an(e),(Vt.uponSanitizeElement.length>0||Vt.uponSanitizeAttribute.length>0)&&(ae=Z(ae)),Vt.uponSanitizeAttribute.length>0&&(ce=Z(ce)),n.removed=[];const c=Ce&&"string"!=typeof t&&On(t);let s=[];const u=Ie;if(c){ve&&dn(t,t=>{const e=It(t);if(7===e||8===e&&$(Tt,t.data)){try{S(t)}catch(t){}return!1}if(1===e){const e=t,n=en(Lt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&vn("for",n)&&e.removeAttribute("for")}catch(t){}}return!0});const e=Lt(t);if("string"==typeof e){const n=en(e);if(!ae[n]||fe[n])throw fn(t),G("root node is forbidden and cannot be sanitized in-place")}if(En(t))throw fn(t),G("root node is clobbered and cannot be sanitized in-place");s=yn(t),Ie=D()}else if(On(t))r=Sn("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),Hn(r);else{if(!Ee&&!be&&!Se&&-1===t.indexOf("<"))return Pt&&Oe?Wt(t):t;if(r=Sn(t),!r)return Ee?null:Oe?Ut:""}r&&Ae&&sn(r.firstChild);const f=c?t:r;try{c&&Hn(t);const e=Tn(f);for(;a=e.nextNode();)Cn(a,f),Un(a,f),_n(a.content)&&Fn(a.content);c&&function(t,e){const n=Ie;let r=null;const o=()=>(r||(r=D(),w(e,t=>{R(r,t)})),r);for(let e=0;;e++){const r=yn(t),i=[t];let a=!1;if(w(r,t=>{11===It(t)?_(i,t):a||C(n,t)||(a=C(o(),t))}),!a)return;if(e>=8)throw G("the tree kept changing during in-place sanitization; refusing to return it");w(i,(e,n)=>{bn(e,n>0,t,o())})}}(t,s)}catch(e){throw c&&(fn(t),gn(t,s)),e}finally{Ie=u}if(c){if(gn(t,s))throw G("a node selected for removal could not be safely returned; refusing to sanitize in place");return be&&wn(t),t}if(Ee){if(be&&wn(r),_e)for(l=qt.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(ce.shadowroot||ce.shadowrootmode)&&(l=Kt.call(o,l,!0)),l}let p=Se?r.outerHTML:r.innerHTML;return Se&&ae["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&$(bt,r.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+p),be&&(p=xn(p)),Pt&&Oe?Wt(p):p},n.setConfig=function(){an(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Te=!0,xe=ae,we=ce},n.clearConfig=function(){nn=null,Te=!1,xe=null,we=null,Pt=jt,Ut=""},n.isValidAttribute=function(t,e,n){nn||an({});const r=en(t),o=en(e);return("string"!=typeof n||!(jn(e,n)||!ge&&$(wt,n)))&&In(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&W(Vt,t)&&_(Vt[t],e)},n.removeHook=function(t,e){if(W(Vt,t)){if(void 0!==e){const n=A(Vt[t],e);return-1===n?void 0:N(Vt[t],n,1)[0]}return E(Vt[t])}},n.removeHooks=function(t){W(Vt,t)&&(Vt[t]=[])},n.removeAllHooks=function(){Vt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function kt({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:Nt.sanitize(i)}})]})}kt.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 Dt=[];function Rt({title:t,stats:e=Dt,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)(kt,{icon:t.icon,label:t.label,value:t.value,bottomLabel:t.bottomLabel,summaryText:t.summaryText,link:t.link},e))})]})}Rt.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 Ct=Rt;function It(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{Rt as StatsCard,Ct as default,It as fromElement};
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 3.4.16 | (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.16/LICENSE */
1
+ /*! @license DOMPurify 3.4.17 | (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.17/LICENSE */
2
2
 
3
3
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
4
4