@mgdis/mg-components 6.0.0 → 6.2.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 (230) hide show
  1. package/dist/cjs/{index-08ee93bf.js → index-52d5f3d4.js} +19 -4
  2. package/dist/cjs/index-52d5f3d4.js.map +1 -0
  3. package/dist/{esm/index-cc97a562.js → cjs/index-cc11af95.js} +6 -116
  4. package/dist/cjs/index-cc11af95.js.map +1 -0
  5. package/dist/cjs/index.es-ac7c22e3.js +152 -0
  6. package/dist/cjs/index.es-ac7c22e3.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/mg-action-more_36.cjs.entry.js +410 -234
  9. package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
  10. package/dist/cjs/mg-alert.cjs.entry.js +7 -6
  11. package/dist/cjs/mg-alert.cjs.entry.js.map +1 -1
  12. package/dist/cjs/mg-components.cjs.js +3 -3
  13. package/dist/cjs/mg-components.cjs.js.map +1 -1
  14. package/dist/cjs/mg-loader.cjs.entry.js +5 -4
  15. package/dist/cjs/mg-loader.cjs.entry.js.map +1 -1
  16. package/dist/cjs/mg-progress.cjs.entry.js +82 -0
  17. package/dist/cjs/mg-progress.cjs.entry.js.map +1 -0
  18. package/dist/collection/assets/icons/index.js +1 -1
  19. package/dist/collection/assets/icons/index.js.map +1 -1
  20. package/dist/collection/collection-manifest.json +3 -2
  21. package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +11 -2
  22. package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js.map +1 -1
  23. package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +5 -2
  24. package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js.map +1 -1
  25. package/dist/collection/components/atoms/mg-button/mg-button.js +8 -2
  26. package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
  27. package/dist/collection/components/atoms/mg-icon/mg-icon.js +1 -1
  28. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +12 -7
  29. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
  30. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js.map +1 -1
  31. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +14 -2
  32. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js.map +1 -1
  33. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +1 -1
  34. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +1 -1
  35. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +1 -1
  36. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
  37. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -1
  38. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +33 -26
  39. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
  40. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +30 -1
  41. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -1
  42. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js +1 -1
  43. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js.map +1 -1
  44. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +85 -4
  45. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
  46. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +29 -1
  47. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
  48. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +31 -4
  49. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
  50. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +29 -3
  51. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
  52. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +30 -3
  53. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
  54. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +29 -1
  55. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
  56. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +30 -3
  57. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
  58. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +8 -9
  59. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js.map +1 -1
  60. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +12 -3
  61. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
  62. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +4 -4
  63. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
  64. package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
  65. package/dist/collection/components/molecules/mg-details/mg-details.js.map +1 -1
  66. package/dist/collection/components/molecules/mg-form/mg-form.conf.js.map +1 -1
  67. package/dist/collection/components/molecules/mg-form/mg-form.js +42 -3
  68. package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
  69. package/dist/collection/components/molecules/mg-modal/mg-modal.js +13 -4
  70. package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +1 -1
  71. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +13 -4
  72. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
  73. package/dist/collection/components/molecules/mg-panel/mg-panel.js +11 -2
  74. package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -1
  75. package/dist/collection/components/molecules/mg-popover/mg-popover.js +10 -5
  76. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
  77. package/dist/collection/components/molecules/mg-progress/mg-progress.conf.js +5 -0
  78. package/dist/collection/components/molecules/mg-progress/mg-progress.conf.js.map +1 -0
  79. package/dist/collection/components/molecules/mg-progress/mg-progress.js +187 -0
  80. package/dist/collection/components/molecules/mg-progress/mg-progress.js.map +1 -0
  81. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
  82. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +11 -2
  83. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +1 -1
  84. package/dist/collection/types/index.js.map +1 -1
  85. package/dist/components/index.es.js +36 -23
  86. package/dist/components/index.es.js.map +1 -1
  87. package/dist/components/index2.js +2 -2
  88. package/dist/components/mg-action-more.js +8 -8
  89. package/dist/components/mg-action-more.js.map +1 -1
  90. package/dist/components/mg-alert.js +5 -5
  91. package/dist/components/mg-badge2.js +6 -6
  92. package/dist/components/mg-button2.js +13 -7
  93. package/dist/components/mg-button2.js.map +1 -1
  94. package/dist/components/mg-character-left2.js +11 -3
  95. package/dist/components/mg-character-left2.js.map +1 -1
  96. package/dist/components/mg-details.js +4 -4
  97. package/dist/components/mg-details.js.map +1 -1
  98. package/dist/components/mg-form.js +30 -8
  99. package/dist/components/mg-form.js.map +1 -1
  100. package/dist/components/mg-icon2.js +7 -7
  101. package/dist/components/mg-icon2.js.map +1 -1
  102. package/dist/components/mg-illustrated-message.js +2 -2
  103. package/dist/components/mg-input-checkbox-paginated2.js +2 -2
  104. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  105. package/dist/components/mg-input-checkbox.js +27 -36
  106. package/dist/components/mg-input-checkbox.js.map +1 -1
  107. package/dist/components/mg-input-date.js +27 -14
  108. package/dist/components/mg-input-date.js.map +1 -1
  109. package/dist/components/mg-input-numeric.js +36 -14
  110. package/dist/components/mg-input-numeric.js.map +1 -1
  111. package/dist/components/mg-input-password.js +18 -6
  112. package/dist/components/mg-input-password.js.map +1 -1
  113. package/dist/components/mg-input-radio.js +23 -10
  114. package/dist/components/mg-input-radio.js.map +1 -1
  115. package/dist/components/mg-input-select2.js +22 -10
  116. package/dist/components/mg-input-select2.js.map +1 -1
  117. package/dist/components/mg-input-text2.js +24 -12
  118. package/dist/components/mg-input-text2.js.map +1 -1
  119. package/dist/components/mg-input-textarea.js +22 -10
  120. package/dist/components/mg-input-textarea.js.map +1 -1
  121. package/dist/components/mg-input-title2.js +6 -3
  122. package/dist/components/mg-input-title2.js.map +1 -1
  123. package/dist/components/mg-input-toggle.js +21 -8
  124. package/dist/components/mg-input-toggle.js.map +1 -1
  125. package/dist/components/mg-input2.js +18 -9
  126. package/dist/components/mg-input2.js.map +1 -1
  127. package/dist/components/mg-item-more2.js +16 -17
  128. package/dist/components/mg-item-more2.js.map +1 -1
  129. package/dist/components/mg-loader.js +3 -3
  130. package/dist/components/mg-menu-item2.js +17 -9
  131. package/dist/components/mg-menu-item2.js.map +1 -1
  132. package/dist/components/mg-message2.js +4 -4
  133. package/dist/components/mg-modal.js +17 -9
  134. package/dist/components/mg-modal.js.map +1 -1
  135. package/dist/components/mg-pagination2.js +15 -7
  136. package/dist/components/mg-pagination2.js.map +1 -1
  137. package/dist/components/mg-panel.js +16 -8
  138. package/dist/components/mg-panel.js.map +1 -1
  139. package/dist/components/mg-popover-content2.js +3 -3
  140. package/dist/components/mg-popover2.js +12 -7
  141. package/dist/components/mg-popover2.js.map +1 -1
  142. package/dist/components/mg-progress.d.ts +11 -0
  143. package/dist/components/mg-progress.js +109 -0
  144. package/dist/components/mg-progress.js.map +1 -0
  145. package/dist/components/mg-skip-links.js +4 -4
  146. package/dist/components/mg-skip-links.js.map +1 -1
  147. package/dist/components/mg-tabs.js +19 -11
  148. package/dist/components/mg-tabs.js.map +1 -1
  149. package/dist/components/mg-tag.js +4 -4
  150. package/dist/components/mg-tooltip2.js +18 -13
  151. package/dist/components/mg-tooltip2.js.map +1 -1
  152. package/dist/esm/{index-089d0323.js → index-81752ffe.js} +19 -4
  153. package/dist/esm/index-81752ffe.js.map +1 -0
  154. package/dist/{cjs/index-d57c96a9.js → esm/index-f3d3fb70.js} +4 -134
  155. package/dist/esm/index-f3d3fb70.js.map +1 -0
  156. package/dist/esm/index.es-940821a9.js +130 -0
  157. package/dist/esm/index.es-940821a9.js.map +1 -0
  158. package/dist/esm/loader.js +3 -3
  159. package/dist/esm/mg-action-more_36.entry.js +410 -234
  160. package/dist/esm/mg-action-more_36.entry.js.map +1 -1
  161. package/dist/esm/mg-alert.entry.js +7 -6
  162. package/dist/esm/mg-alert.entry.js.map +1 -1
  163. package/dist/esm/mg-components.js +4 -4
  164. package/dist/esm/mg-components.js.map +1 -1
  165. package/dist/esm/mg-loader.entry.js +5 -4
  166. package/dist/esm/mg-loader.entry.js.map +1 -1
  167. package/dist/esm/mg-progress.entry.js +78 -0
  168. package/dist/esm/mg-progress.entry.js.map +1 -0
  169. package/dist/mg-components/mg-components.css +1 -1
  170. package/dist/mg-components/mg-components.esm.js +1 -1
  171. package/dist/mg-components/mg-components.esm.js.map +1 -1
  172. package/dist/mg-components/p-2298352f.js +3 -0
  173. package/dist/mg-components/p-2298352f.js.map +1 -0
  174. package/dist/mg-components/p-31e6c1a7.entry.js +2 -0
  175. package/dist/mg-components/{p-6f5c7ec5.entry.js.map → p-31e6c1a7.entry.js.map} +1 -1
  176. package/dist/mg-components/p-67c9be27.entry.js +2 -0
  177. package/dist/mg-components/p-67c9be27.entry.js.map +1 -0
  178. package/dist/mg-components/p-95895169.entry.js +2 -0
  179. package/dist/mg-components/{p-26b67dfd.entry.js.map → p-95895169.entry.js.map} +1 -1
  180. package/dist/mg-components/p-a49e2b74.js +2 -0
  181. package/dist/mg-components/p-a49e2b74.js.map +1 -0
  182. package/dist/mg-components/p-abddacc2.entry.js +2 -0
  183. package/dist/mg-components/p-abddacc2.entry.js.map +1 -0
  184. package/dist/mg-components/p-ee51ec5e.js +2 -0
  185. package/dist/mg-components/p-ee51ec5e.js.map +1 -0
  186. package/dist/types/assets/icons/index.d.ts +12 -0
  187. package/dist/types/components/atoms/internals/mg-character-left/mg-character-left.d.ts +1 -0
  188. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +1 -1
  189. package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +13 -11
  190. package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +4 -4
  191. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +0 -2
  192. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +4 -9
  193. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +4 -0
  194. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.d.ts +1 -1
  195. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +12 -0
  196. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +4 -0
  197. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +4 -0
  198. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +4 -0
  199. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +4 -0
  200. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +4 -0
  201. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +4 -0
  202. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +1 -0
  203. package/dist/types/components/molecules/mg-form/mg-form.conf.d.ts +2 -1
  204. package/dist/types/components/molecules/mg-form/mg-form.d.ts +5 -0
  205. package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +1 -0
  206. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +1 -0
  207. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +1 -0
  208. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +1 -1
  209. package/dist/types/components/molecules/mg-progress/mg-progress.conf.d.ts +9 -0
  210. package/dist/types/components/molecules/mg-progress/mg-progress.d.ts +47 -0
  211. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +1 -0
  212. package/dist/types/components.d.ts +111 -0
  213. package/dist/types/stencil-public-runtime.d.ts +6 -0
  214. package/dist/types/types/index.d.ts +4 -0
  215. package/ide/intellij/web-types.json +195 -27
  216. package/ide/vscode/css-custom-data.json +16 -0
  217. package/ide/vscode/html-custom-data.json +232 -21
  218. package/package.json +30 -30
  219. package/dist/cjs/index-08ee93bf.js.map +0 -1
  220. package/dist/cjs/index-d57c96a9.js.map +0 -1
  221. package/dist/esm/index-089d0323.js.map +0 -1
  222. package/dist/esm/index-cc97a562.js.map +0 -1
  223. package/dist/mg-components/p-26b67dfd.entry.js +0 -2
  224. package/dist/mg-components/p-2b89fe8b.entry.js +0 -2
  225. package/dist/mg-components/p-2b89fe8b.entry.js.map +0 -1
  226. package/dist/mg-components/p-48e033cf.js +0 -3
  227. package/dist/mg-components/p-48e033cf.js.map +0 -1
  228. package/dist/mg-components/p-6f5c7ec5.entry.js +0 -2
  229. package/dist/mg-components/p-898d194f.js +0 -2
  230. package/dist/mg-components/p-898d194f.js.map +0 -1
@@ -1,2 +0,0 @@
1
- import{r as t,h as i,H as e,g as n,c as a}from"./p-48e033cf.js";import{z as o,Z as r,i as s,I as l,Q as c,V as h,X as d,Y as g,W as m,H as u,a as p,b as v,c as f,f as b,G as w,K as _,J as x}from"./p-898d194f.js";const z={VISIBLE:"visible",HIDDEN:"hidden",DISABLED:"disabled",ACTIVE:"active"};const y=["_blank","_self","_parent","_top"];const k={VERTICAL:"vertical",HORIZONTAL:"horizontal"};const M=["medium","large","xlarge"];const H=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}:host{--mg-c-popover-padding-vertical:var(--mg-b-size-8);--mg-c-popover-padding-horizontal:0;--mg-c-popover-max-width:unset}.mg-c-action-more__divider{--mg-c-divider-spacing-vertical:var(--mg-b-size-4)}.mg-c-action-more__chevron{transition:200ms}.mg-c-action-more__chevron--rotate.mg-c-action-more__chevron{transform:rotate(180deg)}";const C=H;const V=t=>{const i=t;return typeof i==="object"&&i.every((t=>typeof t==="object"&&typeof t.label==="string"&&typeof t.mouseEventHandler==="function"||L(t)))};const L=t=>typeof t==="object"&&t.isDivider;const B=t=>{const i=t;return typeof i==="object"&&typeof i.variant==="string"&&typeof i.isIcon==="boolean"};const D=t=>{const i=t;return typeof i==="object"&&typeof i.icon==="string"};const $=class{constructor(i){t(this,i);this.name="mg-action-more";this.classBase="mg-c-action-more";this.mgPopoverIdentifier=o(this.name);this.toggleExpanded=()=>{this.expanded=!this.expanded};this.handleDisplayChange=t=>{this.expanded=t.detail};this.handleButton=()=>{this.toggleExpanded()};this.handleItemClick=(t,i)=>{this.expanded=false;i(t)};this.items=undefined;this.icon=undefined;this.button={variant:"flat",isIcon:true};this.displayChevron=undefined;this.expanded=false}validateItems(t){if(!V(t)){throw new Error(`<${this.name}> prop "items" is required and all values must be the same type, MgActionMoreItemType or MgActionMoreDividerType. Passed value: ${r(t)}.`)}else if(V(t)&&t.length>0&&(L(t[0])||L(t[t.length-1]))){throw new Error(`<${this.name}> prop "items" can’t have a divider at the beginning or the end of the array. Passed value: ${r(t)}.`)}}validateIcon(t){if(t&&!D(t)){throw new Error(`<${this.name}> prop "icon" must match MgActionMoreIconType. Passed value: ${r(t)}.`)}else if((t===null||t===void 0?void 0:t.icon)===undefined&&Boolean(this.button.isIcon)){this.icon={icon:"ellipsis"}}}validateButton(t){if(t&&!B(t)){throw new Error(`<${this.name}> prop "button" must match MgActionMoreButtonType. Passed value: ${r(t)}.`)}}validateDisplayChevron(t){if(t&&this.button.isIcon===true){throw new Error(`<${this.name}> prop "displayChevron" can't be used with a 'button" prop "isIcon" attribute.`)}}componentWillLoad(){this.messages=s(this.element).messages.actionMore;this.validateItems(this.items);this.validateButton(this.button);this.validateIcon(this.icon);this.validateDisplayChevron(this.displayChevron)}render(){const t=this.button.label||this.messages.label;const n=[t];if(!this.button.isIcon&&this.displayChevron){n.push(i("span",{class:{[`${this.classBase}__chevron`]:true,[`${this.classBase}__chevron--rotate`]:this.expanded===true}},i("mg-icon",{icon:"chevron-down",size:"small"})))}return i(e,{key:"ad081e085753770cfdf1d922d7a2dd574e31a632","data-mg-popover-guard":this.mgPopoverIdentifier},i("span",{key:"abb29bf36c86f205dd3893709473523f6263506c",class:this.classBase},i("mg-popover",{key:"5604deaf66f1316aaccf40b90945982f840081d2",identifier:this.mgPopoverIdentifier,display:this.expanded,"onDisplay-change":this.handleDisplayChange},i("mg-button",{key:"22adde17802161738698deca40d94b9e12a8d406",variant:this.button.variant,isIcon:this.button.isIcon,disabled:this.button.disabled,type:"button",label:t,onClick:this.handleButton},this.icon&&i("mg-icon",Object.assign({key:"18f31a4008af5dc74d1306dc9ebbbe566aefa0b7"},this.icon)),!this.button.isIcon&&n),i("div",{key:"a3b9d6de82629fbb1253eb0338e3186f43bc7583",slot:"content"},i("mg-menu",{key:"67793ea91ade7c31ed4aa55a507c86bf221bd094",direction:k.VERTICAL,label:this.messages.label},this.items.map((t=>{var e,n;return L(t)?i("mg-divider",{class:"mg-c-action-more__divider",key:"divider"}):i("mg-menu-item",{key:t.label,status:t.status||z.VISIBLE,target:t.target,href:t.href,onClick:i=>this.handleItemClick(i,t.mouseEventHandler)},((e=t.icon)===null||e===void 0?void 0:e.icon)&&i("mg-icon",{icon:t.icon.icon,variant:t.icon.variant,variantStyle:t.icon.variantStyle,slot:"image"}),i("span",{slot:"label"},t.label),((n=t.badge)===null||n===void 0?void 0:n.label)&&i("mg-badge",{label:t.badge.label,value:t.badge.value,slot:"information",variant:"text-color"}))})))))))}get element(){return n(this)}static get watchers(){return{items:["validateItems"],icon:["validateIcon"],button:["validateButton"],displayChevron:["validateDisplayChevron"]}}};$.style=C;const E=["info","primary","secondary","success","warning","danger","text-color"];const A=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-badge-size: Defines the height and minimum width of the badge. The default value is `--mg-b-size-16`.\n * @prop --mg-c-badge-font-size: Defines the font size of the badge. The default value is `--mg-b-font-size-small`.\n * @prop --mg-c-badge-color-text: Defines the font color of the badge when used with the `text-color` variant and without `outline`. The default value is `--mg-b-color-light`.\n */.mg-c-badge{min-width:var(--mg-c-badge-size);height:var(--mg-c-badge-size);box-sizing:border-box;padding:0 var(--mg-b-size-4);border:var(--mg-b-size-border) solid;border-radius:calc(var(--mg-c-badge-size)/2);font-size:var(--mg-c-badge-font-size);font-weight:600;line-height:var(--mg-c-badge-size);text-align:center}.mg-c-badge.mg-c-badge--primary{border-color:var(--mg-b-color-primary);background-color:var(--mg-b-color-primary);color:var(--mg-b-color-text-on-primary)}.mg-c-badge.mg-c-badge--primary.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-primary)}.mg-c-badge.mg-c-badge--secondary{border-color:var(--mg-b-color-secondary);background-color:var(--mg-b-color-secondary);color:var(--mg-b-color-text-on-secondary)}.mg-c-badge.mg-c-badge--secondary.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-secondary)}.mg-c-badge.mg-c-badge--danger{border-color:var(--mg-b-color-danger);background-color:var(--mg-b-color-danger);color:var(--mg-b-color-text-on-danger)}.mg-c-badge.mg-c-badge--danger.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-danger)}.mg-c-badge.mg-c-badge--info{border-color:var(--mg-b-color-info);background-color:var(--mg-b-color-info);color:var(--mg-b-color-text-on-info)}.mg-c-badge.mg-c-badge--info.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-info)}.mg-c-badge.mg-c-badge--success{border-color:var(--mg-b-color-success);background-color:var(--mg-b-color-success);color:var(--mg-b-color-text-on-success)}.mg-c-badge.mg-c-badge--success.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-success)}.mg-c-badge.mg-c-badge--warning{border-color:var(--mg-b-color-warning);background-color:var(--mg-b-color-warning);color:var(--mg-b-color-text-on-warning)}.mg-c-badge.mg-c-badge--warning.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-warning)}.mg-c-badge.mg-c-badge--text-color{border-color:currentcolor;background-color:currentcolor}.mg-c-badge.mg-c-badge--text-color .mg-c-badge__value{color:var(--mg-c-badge-color-text, var(--mg-b-color-light))}.mg-c-badge.mg-c-badge--text-color.mg-c-badge--outline{background-color:rgba(0,0,0,0)}.mg-c-badge.mg-c-badge--text-color.mg-c-badge--outline .mg-c-badge__value{color:currentcolor}.mg-c-badge,mg-badge{display:inline-flex;align-items:center;justify-content:center}";const q=A;const T=class{constructor(i){t(this,i);this.classOutline=`mg-c-badge--outline`;this.value=undefined;this.label=undefined;this.variant=E[0];this.outline=undefined;this.classCollection=new l(["mg-c-badge"])}validateValue(t){if(/^[^A-Z]+$/i.exec(`${t}`)===null){throw new Error(`<mg-badge> prop "value" is required and must be integer and/or special character. Passed value: ${r(t)}.`)}}validateLabel(t){if(!c(t)){throw new Error(`<mg-badge> prop "label" is required and must be a string. Passed value: ${r(t)}.`)}}validateVariant(t,i){if(!E.includes(t)){throw new Error(`<mg-badge> prop "variant" must be one of: ${E.join(", ")}. Passed value: ${r(t)}.`)}else{if(i!==undefined){this.classCollection.delete(`mg-c-badge--${i}`)}this.classCollection.add(`mg-c-badge--${t}`)}}validateOutline(t){if(t)this.classCollection.add(this.classOutline);else this.classCollection.delete(this.classOutline)}componentWillLoad(){this.validateValue(this.value);this.validateLabel(this.label);this.validateVariant(this.variant);this.validateOutline(this.outline)}render(){return i("span",{key:"db20118c3cfbc79ca65bcbbda1029857211615b2",class:this.classCollection.join()},i("span",{key:"1898f1b56935c4acdab79f8c794025009f2d943c",class:"mg-c-badge__value"},this.value),i("span",{key:"2ca8814b685441f11c8a1804c1e98d3e58f26d84",class:"mg-u-visually-hidden"},this.label))}static get watchers(){return{value:["validateValue"],label:["validateLabel"],variant:["validateVariant"],outline:["validateOutline"]}}};T.style=q;const P=["primary","secondary","danger","danger-alt","info","flat","success","link"];const I="/*!\n * @prop --mg-c-button-border-radius: Defines the border radius of the button. The default value is `--mg-b-size-radius`.\n * @prop --mg-c-button-border-top-width: Defines the top border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-right-width: Defines the right border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-bottom-width: Defines the bottom border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-left-width: Defines the left border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-radius-top-left: Defines the top left border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-top-right: Defines the top right border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-bottom-right: Defines the bottom right border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-bottom-left: Defines the bottom left border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-font-weight: Defines the font weight of the button. Unset by default, fallback on `normal`.\n * @prop --mg-c-button-icon-border-radius: Defines the border radius of the button in icon mode. The default value is `--mg-b-size-min-height`.\n */:host{display:inline-block;max-width:100%;vertical-align:middle}:host(:hover) .mg-c-button--flat:not(.mg-c-button--disabled){background:color-mix(in srgb, var(--mg-b-color-dark), transparent 90%)}:host([full-width]){display:block}:host([disabled]),:host([aria-disabled=true]){pointer-events:none}.mg-c-button.mg-c-button--primary{/*!\n * @prop --mg-c-button-color-background-primary: Defines the background color for the primary variant button.\n * @prop --mg-c-button-color-border-primary: Defines the border color for the primary variant button.\n * @prop --mg-c-button-color-gradient-primary: Defines the gradient color for the primary variant button.\n * @prop --mg-c-button-color-text-primary: Defines the font color for the primary variant button.\n */border-color:var(--mg-c-button-color-border-primary);background:linear-gradient(to bottom, var(--mg-c-button-color-background-primary), var(--mg-c-button-color-gradient-primary));color:var(--mg-c-button-color-text-primary)}:host(:hover) .mg-c-button.mg-c-button--primary:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-primary)}.mg-c-button.mg-c-button--secondary{/*!\n * @prop --mg-c-button-color-background-secondary: Defines the background color for the secondary variant button.\n * @prop --mg-c-button-color-border-secondary: Defines the border color for the secondary variant button.\n * @prop --mg-c-button-color-gradient-secondary: Defines the gradient color for the secondary variant button.\n * @prop --mg-c-button-color-text-secondary: Defines the font color for the secondary variant button.\n */border-color:var(--mg-c-button-color-border-secondary);background:linear-gradient(to bottom, var(--mg-c-button-color-background-secondary), var(--mg-c-button-color-gradient-secondary));color:var(--mg-c-button-color-text-secondary)}:host(:hover) .mg-c-button.mg-c-button--secondary:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-secondary)}.mg-c-button.mg-c-button--danger{/*!\n * @prop --mg-c-button-color-background-danger: Defines the background color for the danger variant button.\n * @prop --mg-c-button-color-border-danger: Defines the border color for the danger variant button.\n * @prop --mg-c-button-color-gradient-danger: Defines the gradient color for the danger variant button.\n * @prop --mg-c-button-color-text-danger: Defines the font color for the danger variant button.\n */border-color:var(--mg-c-button-color-border-danger);background:linear-gradient(to bottom, var(--mg-c-button-color-background-danger), var(--mg-c-button-color-gradient-danger));color:var(--mg-c-button-color-text-danger)}:host(:hover) .mg-c-button.mg-c-button--danger:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-danger)}.mg-c-button.mg-c-button--info{/*!\n * @prop --mg-c-button-color-background-info: Defines the background color for the info variant button.\n * @prop --mg-c-button-color-border-info: Defines the border color for the info variant button.\n * @prop --mg-c-button-color-gradient-info: Defines the gradient color for the info variant button.\n * @prop --mg-c-button-color-text-info: Defines the font color for the info variant button.\n */border-color:var(--mg-c-button-color-border-info);background:linear-gradient(to bottom, var(--mg-c-button-color-background-info), var(--mg-c-button-color-gradient-info));color:var(--mg-c-button-color-text-info)}:host(:hover) .mg-c-button.mg-c-button--info:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-info)}.mg-c-button.mg-c-button--success{/*!\n * @prop --mg-c-button-color-background-success: Defines the background color for the success variant button.\n * @prop --mg-c-button-color-border-success: Defines the border color for the success variant button.\n * @prop --mg-c-button-color-gradient-success: Defines the gradient color for the success variant button.\n * @prop --mg-c-button-color-text-success: Defines the font color for the success variant button.\n */border-color:var(--mg-c-button-color-border-success);background:linear-gradient(to bottom, var(--mg-c-button-color-background-success), var(--mg-c-button-color-gradient-success));color:var(--mg-c-button-color-text-success)}:host(:hover) .mg-c-button.mg-c-button--success:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-success)}.mg-c-button.mg-c-button--warning{/*!\n * @prop --mg-c-button-color-background-warning: Defines the background color for the warning variant button.\n * @prop --mg-c-button-color-border-warning: Defines the border color for the warning variant button.\n * @prop --mg-c-button-color-gradient-warning: Defines the gradient color for the warning variant button.\n * @prop --mg-c-button-color-text-warning: Defines the font color for the warning variant button.\n */border-color:var(--mg-c-button-color-border-warning);background:linear-gradient(to bottom, var(--mg-c-button-color-background-warning), var(--mg-c-button-color-gradient-warning));color:var(--mg-c-button-color-text-warning)}:host(:hover) .mg-c-button.mg-c-button--warning:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-warning)}.mg-c-button.mg-c-button--danger-alt{/*!\n * @prop --mg-c-button-color-background-danger-alt: Defines the background color for the danger-alt variant button.\n * @prop --mg-c-button-color-border-danger-alt: Defines the border color for the danger-alt variant button.\n * @prop --mg-c-button-color-gradient-danger-alt: Defines the gradient color for the danger-alt variant button.\n * @prop --mg-c-button-color-text-danger-alt: Defines the font color for the danger-alt variant button.\n */border-color:var(--mg-c-button-color-border-danger-alt);background:linear-gradient(to bottom, var(--mg-c-button-color-background-danger-alt), var(--mg-c-button-color-gradient-danger-alt));color:var(--mg-c-button-color-text-danger-alt)}:host(:hover) .mg-c-button.mg-c-button--danger-alt:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-danger-alt)}.mg-c-button{position:relative;display:inline-flex;min-height:var(--mg-b-size-min-height);box-sizing:border-box;align-items:center;padding:calc((var(--mg-b-size-min-height) - 2*var(--mg-b-size-border) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-12);border-width:var(--mg-c-button-border-top-width, var(--mg-b-size-border)) var(--mg-c-button-border-right-width, var(--mg-b-size-border)) var(--mg-c-button-border-bottom-width, var(--mg-b-size-border)) var(--mg-c-button-border-left-width, var(--mg-b-size-border));border-style:solid;border-radius:var(--mg-c-button-border-radius-top-left, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-top-right, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-bottom-right, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-bottom-left, var(--mg-c-button-border-radius));background-image:none;column-gap:var(--mg-b-size-8);cursor:pointer;touch-action:manipulation;font-family:inherit;font-size:var(--mg-b-font-size);font-weight:var(--mg-c-button-font-weight, normal);text-align:left;text-decoration:none}.mg-c-button.mg-c-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-button.mg-c-button--icon{width:var(--mg-b-size-min-height);height:var(--mg-b-size-min-height);justify-content:center;padding:0;border-radius:var(--mg-c-button-border-radius-top-left, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-top-right, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-bottom-right, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-bottom-left, var(--mg-c-button-icon-border-radius));font-size:var(--mg-b-font-size);line-height:var(--mg-b-font-size)}.mg-c-button.mg-c-button--flat{border:none;background:none}.mg-c-button slot,.mg-c-button ::slotted(*:not(mg-icon)){font-family:inherit;font-size:var(--mg-b-font-size);font-weight:var(--mg-c-button-font-weight, normal);text-align:left;text-decoration:none;display:flex;align-items:center;column-gap:var(--mg-b-size-8)}.mg-c-button.mg-c-button--link{min-height:unset;padding:unset;border:unset;border-radius:unset;background:unset;text-decoration:underline}.mg-c-button.mg-c-button--link slot{font-weight:600}.mg-c-button.mg-c-button--link:hover{text-decoration:none}.mg-c-button.mg-c-button--full-width{display:flex;justify-content:center}.mg-c-button mg-icon:only-child,.mg-c-button ::slotted(mg-icon){display:inline-flex;flex-shrink:0;margin:auto 0;line-height:1}.mg-c-button.mg-c-button--loading>mg-icon:first-of-type{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mg-c-button.mg-c-button--loading .mg-c-button__content{opacity:0}:host(:focus-visible){outline:0}:host(:focus-visible) .mg-c-button{outline-color:-webkit-focus-ring-color;outline-style:auto;outline-width:.2rem}";const O=I;const j=class{constructor(i){t(this,i);this.disabledChange=a(this,"disabled-change",7);this.onClickElementFn=null;this.classDisabled="mg-c-button--disabled";this.classLoading="mg-c-button--loading";this.classFullWidth="mg-c-button--full-width";this.handleClick=t=>{if(this.disabled)t.stopPropagation();else if(this.disableOnClick){this.loading=true;this.disabled=true}};this.handleKeydown=t=>{if(!this.disabled&&t.key===" "){t.preventDefault()}else if(!this.disabled&&["Enter","NumpadEnter","Space"].includes(t.key)){t.preventDefault();this.element.dispatchEvent(new MouseEvent("click",{bubbles:true}))}};this.handleKeyup=t=>{if(!this.disabled&&t.key===" "){t.preventDefault();this.element.dispatchEvent(new MouseEvent("click",{bubbles:true}))}};this.variant=P[0];this.label=undefined;this.type=undefined;this.fullWidth=false;this.form=undefined;this.disabled=undefined;this.isIcon=false;this.disableOnClick=false;this.loading=false;this.classCollection=new l(["mg-c-button"])}validateVariant(t,i){if(!P.includes(t)){throw new Error(`<mg-button> prop "variant" must be one of: ${P.join(", ")}. Passed value: ${r(t)}.`)}else{if(i!==undefined){this.classCollection.delete(`mg-c-button--${i}`)}this.classCollection.add(`mg-c-button--${t}`)}}validateFullWidth(t){if(t&&this.isIcon){throw new Error('<mg-button> prop "fullWidth" cannot be used with prop "isIcon".')}else if(t){this.classCollection.add(this.classFullWidth)}else{this.classCollection.delete(this.classFullWidth)}}disabledHandler(t){if(!t&&this.disableOnClick){this.loading=false}this.element.onclick=t?undefined:this.onClickElementFn;if(t){this.classCollection.add(this.classDisabled)}else{this.classCollection.delete(this.classDisabled)}this.disabledChange.emit(t)}loadingHandler(t){if(t){this.classCollection.add(this.classLoading)}else{this.classCollection.delete(this.classLoading)}}componentWillLoad(){this.validateVariant(this.variant);this.validateFullWidth(this.fullWidth);if(this.isIcon){this.classCollection.add(`mg-c-button--icon`);if(!c(this.label)){throw new Error(`<mg-button> prop "label" is mandatory when prop "isIcon" is set to true.`)}}this.onClickElementFn=this.element.onclick;this.disabledHandler(this.disabled)}componentDidLoad(){h((()=>{var t;const i=this.element.closest("form")||((t=this.element.closest("mg-form"))===null||t===void 0?void 0:t.shadowRoot.querySelector("form"));if(i&&["submit",undefined].includes(this.type)){this.element.addEventListener("click",(()=>{i.dispatchEvent(new SubmitEvent("submit",{bubbles:true,cancelable:true}))}))}}))}render(){var t;return i(e,{key:"59b7b2a977668ff6e653143cdbf86c0bea8414c4",role:"button",tabIndex:0,type:this.type,form:this.form,"full-width":this.fullWidth,"aria-label":this.label,"aria-disabled":(t=this.disabled)===null||t===void 0?void 0:t.toString(),onClick:this.handleClick,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},i("div",{key:"464d14800685dd56d7dfc1ca2928274daf5118c6",class:this.classCollection.join()},this.loading&&i("mg-icon",{key:"af20cf2a34003698058cc1e26e24b20d9444835c",icon:"loader",spin:true}),i("div",{key:"50378b929ad1357c9d03d957dc8eeaac24f7c589",class:"mg-c-button__content"},i("slot",{key:"41b511009e31064a911b7855a5c71a1104442525"}))))}get element(){return n(this)}static get watchers(){return{variant:["validateVariant"],fullWidth:["validateFullWidth"],disabled:["disabledHandler"],loading:["loadingHandler"]}}};j.style=O;const S="/*!\n * @prop --mg-c-card-overflow: Defines the overflow property for the card. Unset by default, fallback on `--mg-c-card-overflow-default`.\n * @prop --mg-c-card-overflow-default: Defines the default overflow property for the card. Unset by default.\n * @prop --mg-c-card-max-width: Defines the max-width property for the card. Unset by default.\n * @prop --mg-c-card-spacing: Defines the padding property for the card. Unset by default, fallback on `--mg-c-card-spacing-default`.\n * @prop --mg-c-card-spacing-default: Defines the default padding property for the card. Default value: `--mg-b-size-16`.\n * @prop --mg-c-card-border: Defines the border property for the card. Unset by default, fallback on `--mg-c-card-border-default`.\n * @prop --mg-c-card-border-default: Defines the default border property for the card. Default value: `var(--mg-b-size-border) solid color-mix(in srgb, var(--mg-b-color-dark), transparent 95%)`.\n * @prop --mg-c-card-border-radius: Defines the border radius property for the card. Unset by default, fallback on `--mg-c-card-border-radius-default`.\n * @prop --mg-c-card-border-radius-default: Defines the default border radius property for the card. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-card-color-background: Defines the background property for the card. Unset by default, fallback on `--mg-c-card-color-background-default`.\n * @prop --mg-c-card-color-background-default: Defines the default background property for the card. Default value: `--mg-b-color-light`.\n * @prop --mg-c-card-box-shadow: Defines the box shadow property for the card. Unset by default, fallback on `--mg-c-card-box-shadow-default`.\n * @prop --mg-c-card-box-shadow-default: Defines the default box shadow property for the card. Default value: `--mg-b-box-shadow`.\n */.mg-c-card{position:relative;z-index:inherit;overflow:var(--mg-c-card-overflow, var(--mg-c-card-overflow-default));width:100%;min-width:var(--mg-c-card-min-width);max-width:var(--mg-c-card-max-width);box-sizing:border-box;padding:var(--mg-c-card-spacing, var(--mg-c-card-spacing-default));border:var(--mg-c-card-border, var(--mg-c-card-border-default));border-radius:var(--mg-c-card-border-radius, var(--mg-c-card-border-radius-default));background:var(--mg-c-card-color-background, var(--mg-c-card-color-background-default));box-shadow:var(--mg-c-card-box-shadow, var(--mg-c-card-box-shadow-default))}.mg-c-card ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const W=S;const R=class{constructor(i){t(this,i)}render(){return i("div",{key:"b8de627bd3018342b2e33f62e1779de8c53fa61e",class:"mg-c-card"},i("slot",{key:"210e9b12485a345ab50d4ddb85d091cde58551a8"}))}};R.style=W;const U=".mg-u-visually-hidden.sc-mg-character-left{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*.sc-mg-character-left:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*.sc-mg-character-left{animation:none !important;transition:none !important}}mg-character-left.sc-mg-character-left{display:block}";const N=U;const G=class{constructor(i){t(this,i);this.identifier=undefined;this.characters="";this.maxlength=undefined}validateMaxlength(t){if(typeof t!=="number"){throw new Error(`<mg-character-left> prop "maxlength" is required and must be a number. Passed value: ${r(t)}.`)}}componentWillLoad(){this.validateMaxlength(this.maxlength);this.messages=s(this.element).messages}render(){return i("span",{key:"8702ae39ff70f27de2ffc6988f13836a4b43f169",id:this.identifier,"aria-live":"polite"},i("span",{key:"0e75b76afb2cf700fa5fff1d565b4236c3d664a1","aria-hidden":"true"},this.maxlength-this.characters.length,"/",this.maxlength),i("span",{key:"f4c4a7b46c0d0879d7ee046f2ea33a686cd91adb",class:"mg-u-visually-hidden"},this.messages.nbCharLeft.replace("{counter}",this.maxlength-this.characters.length)))}get element(){return n(this)}static get watchers(){return{maxlength:["validateMaxlength"]}}};G.style=N;const F=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-details-spacing: Defines the spacing between the summary and the details. Default value: `--mg-b-size-8`.\n */.mg-c-details summary{display:flex;align-items:baseline;cursor:pointer}.mg-c-details__toggle{display:flex;min-height:calc(var(--mg-b-font-size)*var(--mg-b-line-height));flex-shrink:0;align-items:center;align-self:flex-start;margin-left:var(--mg-b-size-16);gap:var(--mg-b-size-4)}.mg-c-details__toggle-icon.mg-c-details__toggle-icon--reverse{transform:rotate(180deg)}.mg-c-details__details{margin-top:var(--mg-c-details-spacing)}@media (width < 43.75rem){.mg-c-details__toggle>span{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}}";const K=F;const Y=class{constructor(i){t(this,i);this.expandedChange=a(this,"expanded-change",7);this.handleToggle=()=>{this.expanded=this.details.open};this.toggleClosed=undefined;this.toggleOpened=undefined;this.hideSummary=false;this.expanded=false}validateTitles(t){if(!c(t)){throw new Error(`<mg-details> prop "toggleClosed" and "toggleOpened" is required and must be a valid string. Passed value: "toggleClosed='${this.toggleClosed}'" and "toggleOpened='${this.toggleOpened}'".`)}}handleExpanded(t){this.expandedChange.emit(t)}componentWillLoad(){this.validateTitles(this.toggleClosed);this.validateTitles(this.toggleOpened)}render(){return i("details",{key:"d9bd05ca12f405dd25dda244ec0260691d340223",class:"mg-c-details",onToggle:this.handleToggle,open:this.expanded,ref:t=>this.details=t},i("summary",{key:"2b7893cc0c54d94981d6500776eb22723e1fb5f2"},i("slot",{key:"714054624ffc1b6b7261edd166bfd16a256e06ce",name:"summary"}),i("span",{key:"a257d98ed1e8243eae76d259b09bf7fabbfa66e0",class:"mg-c-details__toggle"},i("mg-icon",{key:"3ebf16455d25acb3806d4c68e4a2947954f8ff87",icon:"chevron-up",size:"small",class:{"mg-c-details__toggle-icon":true,"mg-c-details__toggle-icon--reverse":!this.expanded}}),i("span",{key:"bc0760888996b7cdf92efe7d7db9efc80acc5d61",class:{"mg-u-visually-hidden":this.hideSummary}},this.expanded?this.toggleOpened:this.toggleClosed))),i("div",{key:"9a8974cc18e8d9d0f7a26d9ddd168e4c2ca08bcb",class:"mg-c-details__details"},i("slot",{key:"daed5ab23c0394f3342fb7f15e9a631840a19a75",name:"details"})))}static get watchers(){return{toggleClosed:["validateTitles"],toggleOpened:["validateTitles"],expanded:["handleExpanded"]}}};Y.style=K;const J="/*!\n * @prop --mg-c-divider-color-background: Defines the background color of the divider. The default value is `color-mix(in srgb, var(--mg-b-color-dark), transparent 85%)`.\n * @prop --mg-c-divider-thickness: Defines the thickness of the divider. The default value is `--mg-b-size-border`.\n * @prop --mg-c-divider-spacing-vertical: Defines the vertical spacing of the divider. The default value is `--mg-b-size-40`.\n */.mg-c-divider{width:var(--mg-b-size-120);height:var(--mg-c-divider-thickness);margin:var(--mg-c-divider-spacing-vertical) auto;background-color:var(--mg-c-divider-color-background)}.mg-c-divider.mg-c-divider--full-width{width:100%}";const X=J;const Z=class{constructor(i){t(this,i);this.fullWidth=false}render(){return i("div",{key:"b7d74c11f15700cbffa553bf4d688ad291473087",class:{"mg-c-divider":true,"mg-c-divider--full-width":this.fullWidth}})}};Z.style=X;const Q=["form","search","none","presentation"];const tt=["default","hide"];const it=".mg-u-form-legacy{--mg-c-form-inputs-title-width:calc(100% / 3 - 20px)}.mg-u-is-asterisk{color:var(--mg-b-color-danger)}/*!\n * @prop --mg-c-form-inputs-title-width: Defines the width of the input title. Fallback on `calc(28 * var(--mg-b-size-8))`.\n */.mg-c-form{--mg-c-input-title-width:var(--mg-c-form-inputs-title-width, calc(28 * var(--mg-b-size-8)));--mg-c-input-margin-bottom:var(--mg-b-size-16);--mg-c-input-title-horizontal-space:var(--mg-b-size-32)}.mg-c-form.mg-c-form--all-required{--mg-c-input-title-display:none}.mg-c-form.mg-c-form--label-on-top{--mg-c-input-margin-bottom:var(--mg-b-size-24)}.mg-c-form>p{font-size:var(--mg-b-font-size-small)}";const et=it;const nt=class{constructor(i){t(this,i);this.formValid=a(this,"form-valid",7);this.formSubmit=a(this,"form-submit",7);this.classAllRequired="mg-c-form--all-required";this.classLabelOnTop="mg-c-form--label-on-top";this.setRequiredMessage=()=>{this.requiredMessageText=null;this.classCollection.delete(this.classAllRequired);if(this.requiredMessage==="hide")return;else if(this.requiredMessage==="default"){this.requiredMessageText=this.messages.form.required;return}const t=t=>!(t.disabled||t.readonly);const i=t=>t.nodeName==="MG-INPUT-TOGGLE";if(!this.disabled&&!this.readonly&&this.mgInputs.some((e=>t(e)&&!i(e)))){const e=this.mgInputs.filter(t);const n=e.filter((t=>!i(t)&&t.required));if([n.length,e.length].every((t=>t===1))||n.length>1&&n.length===e.filter((t=>!i(t))).length){this.requiredMessageText=this.getRequiredMessageBasedOnCount(n,"allRequiredSingle","allRequired");this.classCollection.add(this.classAllRequired)}else if(n.length>0){this.requiredMessageText=this.getRequiredMessageBasedOnCount(n,"requiredSingle","required")}}};this.getRequiredMessageBasedOnCount=(t,i,e)=>this.messages.form[t.length===1?i:e];this.checkValidity=()=>{this.setRequiredMessage();this.valid=!this.mgInputs.some((t=>t.invalid));this.invalid=!this.valid;this.formValid.emit(this.valid)};this.handleFormSubmit=t=>{t.preventDefault();this.formSubmit.emit()};this.setMgInputs=()=>{this.mgInputs=Array.from(this.element.querySelectorAll("*")).filter((t=>t.nodeName.startsWith("MG-INPUT-")));this.mgInputs.forEach((t=>{if(this.labelOnTop){t.labelOnTop=true}if(this.readonly){t.readonly=true}else if(this.disabled){t.disabled=true}else{t.addEventListener("input-valid",this.checkValidity)}}))};this.identifier=o("mg-form");this.name=this.identifier;this.readonly=false;this.requiredMessage=undefined;this.ariaRole=undefined;this.labelOnTop=undefined;this.disabled=false;this.valid=undefined;this.invalid=undefined;this.classCollection=new l(["mg-c-form"]);this.requiredMessageText=undefined}validateRequiredMessage(t){if(t&&!tt.includes(t)){throw new Error(`<mg-form> prop "requiredMessage" must be one of: ${tt.join(", ")}. Passed value: ${r(t)}.`)}}validateAriaRole(t){if(t&&!Q.includes(t)){throw new Error(`<mg-form> prop "ariaRole" must be one of: ${Q.join(", ")}. Passed value: ${r(t)}.`)}}handlelabelOnTop(t){if(t){this.classCollection.add(this.classLabelOnTop)}else{this.classCollection.delete(this.classLabelOnTop)}}handleAttributeChange(){this.setMgInputs();this.setRequiredMessage()}async displayError(){if(!this.readonly){this.mgInputs.forEach((t=>{var i;(i=t.displayError)===null||i===void 0?void 0:i.call(t)}));this.checkValidity()}}componentWillLoad(){this.messages=s(this.element).messages;this.validateAriaRole(this.ariaRole);this.validateRequiredMessage(this.requiredMessage);this.handlelabelOnTop(this.labelOnTop);this.mgButtons=Array.from(this.element.querySelectorAll("mg-button"));this.mgButtons.forEach((t=>{t.setAttribute("form",this.identifier)}));this.setMgInputs();Promise.all(this.mgInputs.map((async t=>{try{await t.componentOnReady()}catch(t){}}))).then((()=>{this.checkValidity()}))}componentDidLoad(){new MutationObserver((()=>{this.setMgInputs()})).observe(this.element,{childList:true})}render(){return i("form",{key:"6c3071735d3ec06f215600c682455a8927f19cab",class:this.classCollection.join(),id:this.identifier,name:this.name,onSubmit:this.handleFormSubmit,role:this.ariaRole},this.requiredMessageText&&i("p",{key:"e8914a58d0b9c10d3510fe8f3001b3f84afbd732",innerHTML:this.requiredMessageText}),i("slot",{key:"abf559e3999042712b7fa5cbe1c9d8143cd21e70"}),!this.readonly&&!this.disabled&&i("slot",{key:"0a83d6babfa0252a1ffed634737ce012d8304f2d",name:"actions"}))}get element(){return n(this)}static get watchers(){return{requiredMessage:["validateRequiredMessage","handleAttributeChange"],ariaRole:["validateAriaRole"],labelOnTop:["handlelabelOnTop"],readonly:["handleAttributeChange"],disabled:["handleAttributeChange"]}}};nt.style=et;const at=["small","medium","large","xlarge","xxlarge"];const ot=["success","warning","danger","info","app"];const rt=["icon","background","full"];const st={"address-card":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.21 2.67H1.79c-.63 0-1.14.51-1.14 1.14v8.38c0 .63.51 1.14 1.14 1.14h12.42c.63 0 1.14-.51 1.14-1.14V3.81c0-.63-.51-1.14-1.14-1.14M5.35 5c.84 0 1.53.69 1.53 1.53s-.69 1.53-1.53 1.53-1.53-.69-1.53-1.53v-.05c.02-.83.7-1.49 1.53-1.48M8 10.59a.5.5 0 0 1-.53.46H3.21a.5.5 0 0 1-.53-.46v-.46c.07-.81.78-1.42 1.6-1.37h.12c.61.26 1.29.26 1.9 0h.12c.81-.04 1.51.56 1.58 1.37zm5.34-1.26c0 .1-.09.19-.19.19H9.73c-.1 0-.18-.07-.19-.17V9c0-.1.09-.19.19-.19h3.43c.1 0 .18.09.19.19v.33zm0-1.52c0 .1-.09.18-.19.19H9.73c-.1 0-.19-.09-.19-.19v-.38c0-.1.07-.18.17-.19h3.45c.1 0 .19.09.19.19v.38zm0-1.52c0 .1-.09.18-.19.19H9.73c-.1 0-.19-.09-.19-.19V5.9c0-.1.09-.19.19-.19h3.43c.11 0 .19.09.19.2v.38z"/></svg>',"align-center":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 3h8v1H4zm-2 9h12v1H2zm12-6H2v1h12zM4 9h8v1H4z"/></svg>',"align-justify":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3h12v1H2zm0 9h12v1H2zm12-6H2v1h12zM2 9h12v1H2z"/></svg>',"align-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3h8v1H2zm0 9h12v1H2zm12-6H2v1h12zM2 9h8v1H2z"/></svg>',"align-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6 3h8v1H6zm-4 9h12v1H2zm12-6H2v1h12zM6 9h8v1H6z"/></svg>',api:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.44 11.47h-.02l-.66-.1-.02-.08c-.03-.11-.08-.21-.13-.31l-.04-.07.4-.54v-.02l-.52-.52h-.02l-.54.41-.07-.04c-.1-.05-.2-.09-.31-.13l-.08-.02-.1-.67v-.01h-.73v.02l-.1.66-.08.02c-.11.03-.21.08-.31.13l-.07.04-.55-.41-.52.52v.02l.41.54-.04.07c-.05.1-.09.2-.13.31l-.02.08-.67.1h-.01v.73h.02l.66.1.02.08c.03.1.08.21.13.3l.04.07-.41.55.52.52h.02l.54-.41.07.04c.1.05.2.09.31.13l.08.02.1.67v.01h.73v-.02l.1-.66.08-.02c.11-.03.21-.08.31-.13l.07-.04.55.41.52-.52v-.02l-.4-.54.04-.07c.05-.1.09-.2.13-.31l.02-.08.67-.1h.01v-.73zm-2.46 1.38c-.56 0-1.01-.45-1.01-1.01s.45-1.01 1.01-1.01 1.01.45 1.01 1.01-.45 1.01-1.01 1.01M8.51 5.81c-.11-.09-.27-.14-.5-.14h-.38v1.17h.27c.26 0 .45-.05.58-.15s.19-.25.19-.44-.05-.34-.16-.43zm1.57 5.13-.3-.4c-.1-.1-.09-.27 0-.37l.52-.52c.1-.1.26-.1.37 0l.4.29c.06-.03.13-.06.2-.08l.07-.49c0-.14.12-.25.26-.25h.45a5.44 5.44 0 1 0-10.5-1.99 5.44 5.44 0 0 0 5.44 5.44c.78 0 1.54-.17 2.25-.49v-.6c0-.14.11-.26.26-.26l.49-.07c.02-.07.05-.13.08-.2zm.18-5.96h.84v3.94h-.84zM5.4 8.92l-.29-.94H3.67l-.29.94h-.9l1.39-3.96h1.02l1.4 3.96h-.9zm3.72-1.74c-.26.23-.64.34-1.13.34h-.36v1.4h-.84V4.98h1.26c.48 0 .84.1 1.09.31s.37.51.37.92c0 .42-.13.75-.4.97zM4.4 5.57q-.09.345-.51 1.71h1.03q-.39-1.275-.45-1.44c-.03-.11-.06-.2-.07-.26z"/></svg>',archive:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 6v6.96c0 .57.46 1.04 1.04 1.04H12c.55 0 1-.45 1-1V6zm7 2H6V7h4zm3-3H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h10c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1"/></svg>',"archive-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 2H3c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1v6.96c0 .57.46 1.04 1.04 1.04H12c.55 0 1-.45 1-1V6c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m-1 11H4.04S4 12.98 4 12.96V6h8zm1-8H3V3h10zm-3 3H6V7h4z"/></svg>',"arrow-clock":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.26 12.225a6 6 0 1 1 .863-7.348L12 6h3V3l-1.152 1.152a7 7 0 1 0-.88 8.78z"/><path fill="currentColor" d="m10.351 10.321.005-.005v.01zm-.705.705.705-.705-2.445-2.445v-3.59h-1v4z"/></svg>',"arrow-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 10.1h-2.77c-.16 0-.3-.12-.32-.28V.94c0-.17-.14-.3-.31-.29H6.37A.325.325 0 0 0 6 .92v8.89c0 .16-.13.29-.29.29H3c-.17 0-.3.12-.31.29 0 .08.02.16.08.22l5.06 4.58c.13.11.33.11.46 0l5-4.58c.12-.11.12-.29.01-.41h-.01c-.07-.1-.17-.1-.29-.1"/></svg>',"arrow-down-a-z":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.53 10.9-1.41 1.41-.71.71-2.12-2.12.71-.71.88.88V3.02h1v8.12l.95-.95.71.71zM12.29 6H10.5l-.36 1H9.08l1.79-5h1.05l1.79 5h-1.06zm-.36-1.02-.53-1.49-.53 1.49zm1.79 5.18V9H9.09v1h3.29l-3.29 2.84V14h4.63v-1h-3.29z"/></svg>',"arrow-down-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m1.98 3.47 8.75 8.75H6.94c-.58 0-1.05.47-1.05 1.06s.47 1.05 1.05 1.05h6.33c.58 0 1.05-.47 1.05-1.05V6.94a1.05 1.05 0 1 0-2.1 0v3.79L3.47 1.98c-.41-.41-1.08-.41-1.49 0s-.41 1.08 0 1.49"/></svg>',"arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.88 12.93v-2.75c-.01-.17.11-.31.28-.32H15c.17-.01.3-.16.29-.33V6.32A.31.31 0 0 0 15 6H6.17c-.16-.02-.29-.15-.29-.31V2.93a.295.295 0 0 0-.28-.32c-.09 0-.17.03-.23.09L.79 7.76c-.11.13-.11.33 0 .46l4.58 5c.12.12.31.12.43 0 .06-.08.09-.19.08-.29"/></svg>',"arrow-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10.12 2.99v2.75c.01.17-.11.31-.28.32H1c-.17.01-.3.16-.29.33V9.6c0 .17.12.31.29.32h8.83c.16.02.29.15.29.31v2.76c-.01.17.11.31.28.32.09 0 .17-.03.23-.09l4.58-5.06c.11-.13.11-.33 0-.46l-4.58-5a.3.3 0 0 0-.43 0c-.06.08-.09.19-.08.29"/></svg>',"arrow-rotate":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.02 1.67c-1.6 0-3.15.59-4.33 1.67a6.316 6.316 0 0 0-.38 8.94 6.324 6.324 0 0 0 8.94.37.29.29 0 0 0 0-.42l-1-1a.296.296 0 0 0-.41 0 4.3 4.3 0 0 1-5.76-.09 4.276 4.276 0 0 1-.21-6.06 4.276 4.276 0 0 1 6.06-.21L9.86 5.95c-.11.12-.18.27-.18.43 0 .34.28.62.62.62h3.44c.34-.01.6-.29.59-.63V2.94a.62.62 0 0 0-.18-.44.61.61 0 0 0-.85 0l-.91.91a6.37 6.37 0 0 0-4.38-1.75h.02z"/></svg>',"arrow-rotate-backward":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1.67c-1.63 0-3.2.63-4.38 1.75l-.91-.91a.6.6 0 0 0-.85-.01h-.01a.62.62 0 0 0-.18.44v3.43c-.01.34.25.62.59.63H5.7c.34 0 .62-.28.62-.62 0-.16-.07-.31-.18-.43L5.07 4.87a4.276 4.276 0 0 1 6.06.21 4.276 4.276 0 0 1-.21 6.06 4.3 4.3 0 0 1-5.76.09.296.296 0 0 0-.41 0l-1 1a.29.29 0 0 0 0 .42 6.324 6.324 0 0 0 8.94-.37 6.316 6.316 0 0 0-.38-8.94 6.37 6.37 0 0 0-4.33-1.67z"/></svg>',"arrow-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.06 5.82h2.75c.16 0 .3.12.32.28V15c.01.17.16.3.33.29h3.21c.16.02.31-.1.33-.27V6.11c0-.17.14-.3.31-.29h2.75c.17 0 .31-.12.32-.28 0-.08-.03-.17-.09-.23L8.23.73a.36.36 0 0 0-.46 0l-5 4.58a.29.29 0 0 0 0 .42c.05.1.15.09.29.09"/></svg>',"arrow-up-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m3.47 14.02 8.75-8.75v3.78c0 .58.47 1.05 1.06 1.05s1.05-.47 1.05-1.05V2.72c0-.58-.47-1.05-1.05-1.05H6.94a1.05 1.05 0 1 0 0 2.1h3.78l-8.74 8.76c-.41.41-.41 1.08 0 1.49s1.08.41 1.49 0"/></svg>',"arrow-up-right-square":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.33 3v10c0 .73-.6 1.32-1.33 1.33H3c-.73 0-1.32-.6-1.33-1.33V3c0-.73.6-1.32 1.33-1.33h10c.73 0 1.32.6 1.33 1.33m-2.48.46H8.68c-.37 0-.67.29-.68.66v.04c0 .18.07.35.2.47l.91.91-5.53 5.53c-.13.13-.14.33-.01.47h.01l.87.88c.13.13.33.14.47.01h.01l5.53-5.53.91.9c.26.28.7.29.98.02l.02-.02c.12-.13.19-.3.19-.48V4.15c0-.37-.3-.67-.67-.67z"/></svg>',"arrow-up-z-a":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m5.82 5.85-.94-.94v8.11h-1V4.96l-.89.89-.71-.71 1.41-1.41.71-.71.71.71 1.41 1.41-.71.71zM12.29 13H10.5l-.36 1H9.08l1.79-5h1.05l1.79 5h-1.06zm-.36-1.02-.53-1.49-.53 1.49zm1.79-8.82V2H9.09v1h3.29L9.09 5.84V7h4.63V6h-3.29z"/></svg>',"arrows-compare":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.81 9.47H.67v1.47h5.14v2.2l2.93-2.93-2.93-2.93v2.2zm4.39-.73v-2.2h5.14V5.07H10.2v-2.2L7.27 5.8l2.93 2.93z"/></svg>',"arrows-right-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10.68 10.78c.16.17.16.45-.02.61l-2.8 2.78a.43.43 0 0 1-.31.12.42.42 0 0 1-.31-.12l-2.8-2.78a.44.44 0 0 1 0-.62.44.44 0 0 1 .62 0l2.06 2.05V5.38H2.11c-.24 0-.44-.19-.44-.44 0-.24.2-.44.44-.44H8v8.32l2.06-2.05a.44.44 0 0 1 .62 0zm3.53-6.14-2.78-2.8a.44.44 0 0 0-.61-.02.44.44 0 0 0 0 .62l2.05 2.06H8.89v.88h3.98l-2.05 2.06a.44.44 0 0 0 0 .62c.17.17.45.17.62 0l2.78-2.8s.07-.09.09-.14.03-.11.03-.17c0-.11-.04-.23-.12-.31z"/></svg>',"arrows-right-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M.73 5.65v-.42a.64.64 0 0 1 .64-.64H12V3.31a.64.64 0 0 1 .64-.64.63.63 0 0 1 .45.18L15.19 5a.63.63 0 0 1 0 .9L13.05 8A.65.65 0 0 1 12 7.57V6.29H1.37a.64.64 0 0 1-.64-.64m14 4.06H4.09V8.43A.64.64 0 0 0 3 8L.87 10.11a.63.63 0 0 0 0 .9L3 13.15a.64.64 0 0 0 1.047-.206.6.6 0 0 0 .043-.244v-1.29h10.64a.63.63 0 0 0 .64-.64v-.42a.63.63 0 0 0-.64-.64"/></svg>',"arrows-rotate":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.7 7h-3.4c-.3 0-.6-.3-.6-.6 0-.1.1-.3.2-.4l1-1.1c-1.7-1.6-4.4-1.5-6 .2-.5.5-.8 1.2-1 1.9H1.8c.6-3.5 3.9-5.8 7.4-5.2 1.1.2 2.3.8 3.1 1.6l1-.9c.2-.2.6-.2.8 0 .1.1.2.3.2.4v3.4c0 .4-.3.7-.6.7M2.3 9h3.4c.3 0 .6.3.6.6 0 .2-.1.3-.2.4L5 11.1c1.7 1.6 4.4 1.5 6-.2.6-.5 1-1.2 1.2-1.9h2.1c-.6 3.5-3.8 5.8-7.3 5.2-1.3-.2-2.4-.8-3.4-1.7l-.9.9c-.2.2-.6.2-.9 0-.1-.1-.2-.3-.2-.4V9.6c.1-.3.3-.6.7-.6"/></svg>',"arrows-rotate-backward":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2.3 7h3.4c.3 0 .6-.3.6-.6 0-.1-.1-.3-.2-.4l-1-1.1c1.7-1.6 4.4-1.5 6 .2.5.5.8 1.2 1 1.9h2.1c-.6-3.5-3.9-5.8-7.4-5.2-1.1.2-2.3.8-3.1 1.6l-1-.9c-.2-.2-.6-.2-.8 0-.1.1-.2.3-.2.4v3.4c0 .4.3.7.6.7m11.4 2h-3.4c-.3 0-.6.3-.6.6 0 .2.1.3.2.4l1.1 1.1c-1.7 1.6-4.4 1.5-6-.2-.6-.5-1-1.2-1.2-1.9H1.7c.6 3.5 3.8 5.8 7.3 5.2 1.3-.2 2.4-.8 3.4-1.7l.9.9c.2.2.6.2.9 0 .1-.1.2-.3.2-.4V9.6c-.1-.3-.3-.6-.7-.6"/></svg>',ban:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M8 .67a7.33 7.33 0 1 0 0 14.66A7.33 7.33 0 0 0 8 .67m3.85 3.48a5.46 5.46 0 0 1 .61 7L4.88 3.54a5.46 5.46 0 0 1 6.97.61m-7.7 7.7a5.45 5.45 0 0 1-.61-7l7.58 7.58a5.46 5.46 0 0 1-7-.61z"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',bell:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.97 6a4 4 0 0 1 8 0v2.3l1.507.822c.91.496.558 1.878-.478 1.878H3.002c-1.027 0-1.387-1.362-.494-1.87l1.461-.83zm2.027 6a2 2 0 1 0 4 0z"/></svg>',"bell-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" d="M11.47 8.3v.297l.26.142 1.508.822c.455.248.28.939-.239.939H3.002c-.514 0-.694-.681-.247-.935l1.461-.83.253-.144V6a3.5 3.5 0 0 1 7 0zm-3.473 5.2a1.5 1.5 0 0 1-1.415-1h2.83a1.5 1.5 0 0 1-1.415 1Z"/></svg>',book:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2H1.5a.5.5 0 0 1 0-1H3V9H1.5a.5.5 0 0 1 0-1H3V7H1.5a.5.5 0 0 1 0-1H3zm8 0H9v4h2z" clip-rule="evenodd"/></svg>',"book-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4 2a1 1 0 0 0-1 1v3H1.5a.5.5 0 0 0 0 1H3v1H1.5a.5.5 0 0 0 0 1H3v1H1.5a.5.5 0 0 0 0 1H3v2a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm5 1H4v3h.5a.5.5 0 0 1 0 1H4v1h.5a.5.5 0 0 1 0 1H4v1h.5a.5.5 0 0 1 0 1H4v2h8V3h-1v4H9z" clip-rule="evenodd"/></svg>',briefcase:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 4v1H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-3V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1m5 1V4H6v1z" clip-rule="evenodd"/></svg>',"briefcase-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 5V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1h3a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1-1h4v1H6zM2 6v7h12V6z" clip-rule="evenodd"/></svg>',"building-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4 2h8v12H9v-1a1 1 0 1 0-2 0v1H4zm4 13h4a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1zM7 4H5v2h2zm2 0h2v2H9zm2 4H9v2h2zM5 8h2v2H5z" clip-rule="evenodd"/></svg>',calculator:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.8.7H3.2c-.3 0-.5.2-.5.5v13.7c0 .3.2.5.5.5h9.7c.3 0 .5-.2.5-.5V1.2c-.1-.3-.3-.5-.6-.5M5.6 13.4q0 .3-.3.3H4.1q-.3 0-.3-.3v-1.2q0-.3.3-.3h1.2q.3 0 .3.3zm0-3.3q0 .3-.3.3H4.1q-.3 0-.3-.3V8.9q0-.3.3-.3h1.2q.3 0 .3.3zm3.3 3.3q0 .3-.3.3H7.4q-.3 0-.3-.3v-1.2q0-.3.3-.3h1.2q.3 0 .3.3zm0-3.3q0 .3-.3.3H7.4q-.3 0-.3-.3V8.9q0-.3.3-.3h1.2q.3 0 .3.3zm3.3 3.3q0 .3-.3.3h-1.2q-.3 0-.3-.3V8.9q0-.3.3-.3h1.2q.3 0 .3.3zm0-7.2q0 .3-.3.3H4.1q-.3 0-.3-.3V2.6q0-.3.3-.3h7.8q.3 0 .3.3z"/></svg>',calendar:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 3.5c0-.55-.45-1-1-1h-1v-1h-1v1H5v-1H4v1H3c-.55 0-1 .45-1 1v.98s0 .02.02.02H2v9c0 .55.45 1 1 1h10c.55 0 1-.45 1-1v-9h-.02s.02 0 .02-.02zm-11 10v-8h10v8z"/></svg>',"calendar-euro":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 2.5h1c.6 0 1 .4 1 1v10c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1v-10c0-.6.4-1 1-1h1v-1h1v1h6v-1h1zm-9 3v8h10v-8zm7.5 6.24-.71-.71c-.35.3-.8.49-1.29.49-.74 0-1.4-.41-1.74-1.02h1.77v-.75H6.51c-.01-.07-.01-.15-.01-.23 0-.09.01-.18.02-.27h2.01V8.5H6.78c.35-.59.99-.98 1.72-.98.49 0 .94.19 1.29.49l.71-.71a2.974 2.974 0 0 0-4.81 1.2H4.5v.75h1.02c-.02.09-.02.18-.02.27 0 .08 0 .16.02.23H4.5v.75h1.17c.4 1.17 1.52 2.02 2.83 2.02.77 0 1.47-.3 2-.78" clip-rule="evenodd"/></svg>',"calendar-euro-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m9.79 11.02.71.71a2.976 2.976 0 0 1-4.83-1.24H4.5v-.75h1.01c-.01-.08-.01-.15-.01-.23 0-.09 0-.18.02-.27H4.5v-.75h1.19a2.974 2.974 0 0 1 4.81-1.2L9.79 8c-.35-.3-.8-.49-1.29-.49-.73 0-1.37.39-1.72.98h1.75v.75H6.52c-.01.09-.02.18-.02.27 0 .08 0 .16.01.23h2.02v.75H6.76c.34.61 1 1.02 1.74 1.02.49 0 .94-.19 1.29-.49M13 3.5v1H3v-1zm-1-2h-1v1H5v-1H4v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1v-10c0-.55-.45-1-1-1h-1zm-9 12v-8h10v8z"/></svg>',"calendar-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 2.5h-1v-1h-1v1H5v-1H4v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1v-10c0-.55-.45-1-1-1m-10 11v-8h10v8zm0-9v-1h10v1z"/></svg>',check:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m15.27 4.23-1.11-1.18c-.11-.1-.27-.1-.38 0L6 10.36l-3.76-4a.187.187 0 0 0-.26 0L.71 7.6c-.07.07-.07.19 0 .26l5.12 5.41c.07.07.18.07.25 0l1.3-1.23 7.87-7.45c.1-.1.11-.26.01-.37h.01z"/></svg>',"check-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m-1 9.795-2.5-2.5.795-.795L7 9.205 10.705 5.5l.798.793z"/></svg>',"check-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m4.5 8.207 2.5 2.5 4.5-4.5-.707-.707L7 9.293 5.207 7.5z"/><path fill="currentColor" fill-rule="evenodd" d="M4.111 2.18a7 7 0 1 1 7.778 11.64A7 7 0 0 1 4.111 2.18m.556 10.809a6 6 0 1 0 6.666-9.978 6 6 0 0 0-6.666 9.978" clip-rule="evenodd"/></svg>',"chevron-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.43 12.21.9 5.69a.81.81 0 0 1 0-1.14l.76-.77a.81.81 0 0 1 1.14 0L8 9l5.2-5.18a.81.81 0 0 1 1.14 0l.76.77a.8.8 0 0 1 0 1.13l-6.53 6.49a.79.79 0 0 1-1.13 0z"/></svg>',"chevron-down-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M15.33 8A7.33 7.33 0 1 1 .67 8a7.33 7.33 0 0 1 14.66 0M8.5 11.37l4-4a.7.7 0 0 0 0-1l-.5-.52a.72.72 0 0 0-1 0l-3 3-3-3a.72.72 0 0 0-1 0l-.5.51a.7.7 0 0 0 0 1l4 4a.7.7 0 0 0 1 0z"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',"chevron-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.79 7.43 10.31.9c.32-.31.82-.31 1.14 0l.77.76c.31.32.31.82 0 1.14L7 8l5.18 5.2c.31.32.31.82 0 1.14l-.77.76c-.31.31-.82.31-1.13 0L3.79 8.57a.79.79 0 0 1-.01-1.12h.01z"/></svg>',"chevron-left-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M8 15.33C3.95 15.33.67 12.05.67 8S3.95.67 8 .67 15.33 3.95 15.33 8 12.05 15.33 8 15.33M4.63 8.5l4 4c.27.28.71.28.99.01h.01l.52-.51c.27-.28.27-.72 0-1l-3-3 3-3c.27-.28.27-.72 0-1l-.51-.5a.697.697 0 0 0-.99-.01h-.01l-4 4.01c-.28.27-.28.71-.01.99z"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',"chevron-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.21 8.57 5.69 15.1c-.32.31-.82.31-1.14 0l-.77-.76a.815.815 0 0 1 0-1.14L9 8 3.78 2.8a.815.815 0 0 1 0-1.14L4.55.9c.31-.31.82-.31 1.13 0l6.53 6.53c.31.3.32.81.01 1.12h-.01z"/></svg>',"chevron-right-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M8 .67c4.05 0 7.33 3.28 7.33 7.33S12.05 15.33 8 15.33.67 12.05.67 8 3.95.67 8 .67m3.37 6.83-4-4a.697.697 0 0 0-.99-.01h-.01L5.85 4c-.27.28-.27.72 0 1l3 3-3 3c-.27.28-.27.72 0 1l.51.5c.27.28.71.28.99.01h.01l4-4.01c.28-.27.28-.71.01-.99z"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',"chevron-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m8.57 3.79 6.53 6.52a.81.81 0 0 1 0 1.14l-.76.77a.81.81 0 0 1-1.14 0L8 7l-5.2 5.22a.81.81 0 0 1-1.14 0l-.76-.77a.8.8 0 0 1 0-1.13l6.53-6.53a.79.79 0 0 1 1.13 0z"/></svg>',"chevron-up-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M.67 8C.67 3.95 3.95.67 8 .67S15.33 3.95 15.33 8 12.05 15.33 8 15.33.67 12.05.67 8M7.5 4.63l-4 4c-.28.27-.28.71-.01.99h.01l.5.53c.28.27.72.27 1 0l3-3 3 3c.28.27.72.27 1 0l.5-.51c.28-.27.28-.71.01-.99h-.01l-4-4.01a.697.697 0 0 0-.99-.01z"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',circle:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8"/></svg>',clock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-.5-6.795L10.295 11l.705-.705L8.5 7.79V3.5h-1z" clip-rule="evenodd"/></svg>',"clock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m10.95 10.04-.71.71L7.5 8.01v-4h1V7.6l2.45 2.45zM8 2C4.69 2 2 4.69 2 8s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0-1c3.87 0 7 3.13 7 7s-3.13 7-7 7-7-3.13-7-7 3.13-7 7-7"/></svg>',"code-square-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.32 10.28.73-.73L5.5 8l1.53-1.53-.73-.73-2.27 2.27 2.28 2.28zm3.37 0L11.97 8 9.69 5.72l-.73.73L10.51 8 8.96 9.55zM3.01 14c-.27 0-.5-.1-.7-.3s-.3-.43-.3-.7V3c0-.27.1-.5.3-.7s.43-.3.7-.3h10c.27 0 .5.1.7.3s.3.43.3.7v10c0 .27-.1.5-.3.7s-.43.3-.7.3H3zm0-1h10V3H3v10z"/></svg>',cog:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M6.062 2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.416c.345.15.67.34.97.56l1.226-.708a1 1 0 0 1 1.366.366l1 1.732a1 1 0 0 1-.366 1.366l-1.227.709a5 5 0 0 1 0 1.119l1.227.708a1 1 0 0 1 .366 1.366l-1 1.732a1 1 0 0 1-1.366.366l-1.227-.708c-.3.22-.624.41-.969.56V14a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1.416a5 5 0 0 1-.969-.56l-1.227.708a1 1 0 0 1-1.366-.366l-1-1.732a1 1 0 0 1 .366-1.366l1.227-.709a5 5 0 0 1 0-1.118l-1.227-.709A1 1 0 0 1 1.5 5.366l1-1.732a1 1 0 0 1 1.366-.366l1.227.709q.45-.334.97-.561zm2 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4" clip-rule="evenodd"/></svg>',"cog-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.438 8a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0m2.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M10 3.416V2a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v1.416c-.345.15-.67.34-.969.56l-1.227-.708a1 1 0 0 0-1.366.366l-1 1.732a1 1 0 0 0 .366 1.366l1.227.709a5 5 0 0 0 0 1.118l-1.227.709a1 1 0 0 0-.366 1.366l1 1.732a1 1 0 0 0 1.366.366l1.227-.708a5 5 0 0 0 .969.56V14a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-1.416c.345-.15.67-.34.969-.56l1.227.708a1 1 0 0 0 1.366-.366l1-1.732a1 1 0 0 0-.366-1.366l-1.227-.709a5 5 0 0 0 0-1.118l1.227-.709a1 1 0 0 0 .366-1.366l-1-1.732a1 1 0 0 0-1.366-.366l-1.227.708c-.3-.22-.624-.41-.97-.56M7 4.07l-.6.262q-.414.182-.775.449l-.527.39-1.794-1.037-1 1.732 1.793 1.035-.072.65a4 4 0 0 0 0 .898l.072.65-1.793 1.035 1 1.732 1.794-1.036.527.39q.361.265.775.448l.6.262V14h2v-2.07l.6-.262q.414-.182.774-.449l.527-.39 1.795 1.037 1-1.732-1.793-1.035.072-.65a4 4 0 0 0 0-.898l-.072-.65 1.793-1.035-1-1.732-1.795 1.036-.527-.39q-.36-.265-.774-.448L9 4.07V2H7z" clip-rule="evenodd"/></svg>',comment:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.5 2A5.5 5.5 0 0 0 4 11.743V14l3.5-1h1a5.5 5.5 0 1 0 0-11zM5 6h6v1H5zm3 2H5v1h3z" clip-rule="evenodd"/></svg>',"comment-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6h6v1H5zm0 2h3v1H5z"/><path fill="currentColor" fill-rule="evenodd" d="m4 14 3.5-1h1a5.5 5.5 0 1 0 0-11h-1A5.5 5.5 0 0 0 4 11.743zm1-2.728-.363-.3A4.5 4.5 0 0 1 7.5 3h1a4.5 4.5 0 1 1 0 9H7.36L5 12.674z" clip-rule="evenodd"/></svg>',"comment-sms":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 2.67c-3.37 0-6.1 2.21-6.1 4.95.02 1.18.51 2.3 1.36 3.11-.26.85-.71 1.62-1.3 2.28a.2.2 0 0 0-.04.21c.03.07.1.11.17.11 1.22-.02 2.4-.45 3.34-1.22.82.31 1.68.46 2.56.46 3.37 0 6.1-2.22 6.1-4.95S11.37 2.67 8 2.67M4.95 8.39a.76.76 0 1 1 0-1.52.76.76 0 0 1 0 1.52m3.05 0a.76.76 0 1 1 0-1.52.76.76 0 0 1 0 1.52m3.05 0a.76.76 0 1 1-.02-1.52c.42 0 .77.33.77.75v.01c0 .42-.34.76-.76.76"/></svg>',conversation:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.01 6.51c0-1.93 2.23-3.5 4.99-3.5s4.99 1.57 4.99 3.5-2.23 3.5-4.99 3.5c-.36 0-.71-.03-1.05-.08l-2.26 1.05c-.06.03-.11.03-.17.03-.27 0-.5-.21-.5-.5V8.6c-.62-.58-1.01-1.3-1.01-2.09m10.48-.01c0-.5-.13-.97-.36-1.41h.01c2.22.36 3.88 1.75 3.88 3.41 0 .79-.39 1.5-1.02 2.09v1.91a.5.5 0 0 1-.67.47l-2.26-1.05c-.34.05-.69.08-1.05.08-1.69 0-3.19-.59-4.09-1.5h.12c3.03 0 5.44-1.81 5.44-4" clip-rule="evenodd"/></svg>',"conversation-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 6.5C10 5.14 8.17 4 6 4l-.01.01c-2.17 0-4 1.14-4 2.5 0 .59.38 1.06.7 1.36l.32.3v1.55l1.51-.7.27-.13.3.04c.31.05.62.07.91.07 2.17 0 4-1.14 4-2.5m-9.01.01c0-1.929 2.237-3.498 4.995-3.5 2.758.002 4.995 1.571 4.995 3.5s-2.24 3.5-5 3.5c-.36 0-.71-.03-1.05-.08l-2.26 1.05c-.06.03-.11.03-.17.03-.26 0-.5-.21-.5-.5V8.6C1.38 8.02.99 7.3.99 6.51m4.995-3.5h.005-.01zm8.005 7.58c.62-.58 1.01-1.3 1.01-2.09q0-.18-.03-.36c-.01-.11-.04-.22-.07-.33a2.3 2.3 0 0 0-.17-.45 3.55 3.55 0 0 0-1.1-1.26c-.1-.07-.19-.13-.3-.2a5 5 0 0 0-.65-.35c-.23-.1-.48-.19-.73-.27a4 4 0 0 1-.19-.06c.14.36.22.74.23 1.13C13.18 6.78 14 7.59 14 8.5c0 .59-.38 1.07-.7 1.36l-.31.3-.01.43v1.12l-1.5-.7-.28-.12-.29.04c-.31.05-.62.07-.91.07-.67 0-1.3-.1-1.86-.29-.51.15-1.06.24-1.64.27.06.05.12.09.18.13l.42.24c.36.18.76.33 1.18.43.15.04.3.08.46.1.02.01.03.01.05.01.17.04.34.07.52.07.22.03.46.04.69.04.36 0 .71-.03 1.05-.08l2.26 1.05q.09.03.18.03c.26 0 .49-.21.5-.5z" clip-rule="evenodd"/></svg>',copy:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/><path fill="currentColor" d="M5 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z"/></svg>',"copy-file":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/><path fill="currentColor" d="M6 3h3v4h4v7a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"/><path fill="currentColor" d="m13 6-3-3v3z"/></svg>',"copy-file-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10 3 3 3v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm0 1.414V6h1.586zM12 7H9V4H6v10h6z" clip-rule="evenodd"/><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/></svg>',"copy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10 2H4v9H3V2a1 1 0 0 1 1-1h6z"/><path fill="currentColor" fill-rule="evenodd" d="M5 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1zm1 0h6v10H6z" clip-rule="evenodd"/></svg>',"credit-card":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 9h3v2H3z"/><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1zm0-9h12v1H2zm12 3v5H2V7z" clip-rule="evenodd"/></svg>',cross:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 3.05 12.95 2 8 6.95 3.05 2 2 3.05 6.95 8 2 12.95 3.05 14 8 9.05 12.95 14 14 12.95 9.05 8z"/></svg>',"cross-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7m2.7 10.5L8 8.8l-2.7 2.7-.8-.8L7.2 8 4.5 5.3l.8-.8L8 7.2l2.7-2.7.8.8L8.8 8l2.7 2.7z"/></svg>',"cross-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 8c0-3.9 3.1-7 7-7s7 3.1 7 7-3.1 7-7 7-7-3.1-7-7m1 0c0 3.3 2.7 6 6 6s6-2.7 6-6-2.7-6-6-6-6 2.7-6 6m6 .8 2.7 2.7.8-.8L8.8 8l2.7-2.7-.8-.8L8 7.2 5.3 4.5l-.8.8L7.2 8l-2.7 2.7.8.8z" clip-rule="evenodd"/></svg>',dashboard:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M1.67 8.7H7.3V1.67H1.67v7.04zm0 5.63H7.3v-4.22H1.67zm7.04 0h5.63V7.3H8.71v7.04zm0-12.67v4.23h5.63V1.67H8.71z"/></svg>',"dashboard-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.33 2.67v2.22H9.7V2.67zm-7.04 0V7.7H2.67V2.67H6.3m7.04 5.63v5.04H9.71V8.3zM6.3 11.11v2.22H2.67v-2.22zm8.03-9.44H8.7v4.22h5.63zm-7.04 0H1.67v7.04H7.3V1.67zm7.04 5.63H8.7v7.04h5.63zm-7.04 2.81H1.67v4.22H7.3v-4.22z"/></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.4 2v4.1q0 .3-.3.3H4q-.3 0-.3.3c0 .1 0 .2.1.2l4 4c.1.1.3.1.4 0l4-4c.1-.1.1-.3 0-.4s-.1-.1-.2-.1H9.9q-.3 0-.3-.3V2q0-.3-.3-.3H6.7c-.1 0-.3.1-.3.3m7.9 11v1q0 .3-.3.3H2q-.3 0-.3-.3v-1q0-.3.3-.3h12q.3 0 .3.3"/></svg>',earth:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-1.224-2.553-.63 1.261A6.003 6.003 0 0 1 4.501 3.126l1.6.4a1 1 0 0 1 .742 1.14L6.41 7.19a1 1 0 0 1-.986.83H4.47a1 1 0 0 0-.77.362l-.185.223A1 1 0 0 0 3.5 9.862l.273.348a1 1 0 0 0 .59.362l1.658.332a1 1 0 0 1 .699.533l.057.116a1 1 0 0 1 0 .894m3.543-9.983V4.53a1 1 0 0 0 1 1h1.234a1 1 0 0 0 .664-.252l.09-.08a6.02 6.02 0 0 0-2.988-2.733m3.612 4.622-.012-.075h-3.05a1 1 0 0 0-.884.535l-.773 1.469a1 1 0 0 0-.115.465v.964a1 1 0 0 0 .408.806l.353.259a1 1 0 0 1 .408.806v1.242a6 6 0 0 0 3.665-6.47" clip-rule="evenodd"/></svg>',"earth-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m0-1a6 6 0 0 0 1.766-.264v-1.421a.5.5 0 0 0-.204-.403l-.353-.26a1.5 1.5 0 0 1-.612-1.208V9.48c0-.243.06-.483.173-.698l.772-1.469a1.5 1.5 0 0 1 1.328-.802h2.944a6 6 0 0 0-.284-.844 1.5 1.5 0 0 1-.977.362h-1.235a1.5 1.5 0 0 1-1.5-1.5V2.28A6 6 0 0 0 8 2a6 6 0 0 0-2.918.756l1.14.286A1.5 1.5 0 0 1 7.336 4.75l-.433 2.525a1.5 1.5 0 0 1-1.479 1.247H4.47a.5.5 0 0 0-.385.18l-.185.223a.5.5 0 0 0-.008.628l.273.348a.5.5 0 0 0 .295.181l1.658.332a1.5 1.5 0 0 1 1.048.8l.058.115a1.5 1.5 0 0 1 0 1.342l-.587 1.174A6 6 0 0 0 8 14m6-6q0-.247-.02-.489h-3.11a.5.5 0 0 0-.443.268l-.772 1.468a.5.5 0 0 0-.058.233v.964a.5.5 0 0 0 .204.403l.353.259a1.5 1.5 0 0 1 .612 1.209v1.01A6 6 0 0 0 14 8m-8.402 5.5h.093l.638-1.276a.5.5 0 0 0 0-.448l-.057-.115a.5.5 0 0 0-.35-.267l-1.658-.331a1.5 1.5 0 0 1-.885-.545l-.273-.347a1.5 1.5 0 0 1 .025-1.884l.184-.223a1.5 1.5 0 0 1 1.155-.542h.954a.5.5 0 0 0 .493-.416l.433-2.525a.5.5 0 0 0-.37-.57l-1.95-.487-.046.018A6.002 6.002 0 0 0 5.598 13.5m7.287-8.597.164-.146a6 6 0 0 0-1.458-1.564 6 6 0 0 0-.772-.457V4.53a.5.5 0 0 0 .5.5h1.234a.5.5 0 0 0 .332-.126" clip-rule="evenodd"/></svg>',ellipsis:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 8a1 1 0 1 1 2 0 1 1 0 0 1-2 0m4 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0m4 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0"/></svg>',"ellipsis-vertical":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0 4a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0 4a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/></svg>',euro:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.08 11.02 1.42 1.42a5.95 5.95 0 0 1-4 1.56c-2.6 0-4.8-1.64-5.62-3.94H1.5v-1.5h2.04C3.5 8.38 3.5 8.18 3.5 8c0-.16 0-.34.04-.5H1.5V6h2.36c.8-2.34 3.02-4 5.64-4 1.54 0 2.94.6 4 1.56l-1.42 1.42c-.7-.6-1.6-.98-2.58-.98-1.48 0-2.76.8-3.46 2h3.52v1.5H5.54c-.02.16-.04.32-.04.5 0 .2.02.38.04.56h4.02v1.5H6.08C6.78 11.22 8.06 12 9.5 12c.98 0 1.88-.38 2.58-.98"/></svg>',"euro-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M8 .67C3.95.67.67 3.95.67 8S3.95 15.33 8 15.33s7.33-3.28 7.33-7.33S12.05.67 8 .67m2.27 11.4c-.38.09-.76.14-1.15.14a4.04 4.04 0 0 1-3.99-2.92h-.58c-.12 0-.23-.09-.23-.22v-.54c0-.12.11-.22.23-.22h.41a5 5 0 0 1 0-.8h-.41c-.12 0-.23-.09-.23-.22v-.58c0-.12.1-.22.23-.22h.63c.6-1.65 2.18-2.74 3.94-2.71.34 0 .68.03 1.02.1.12.03.19.16.16.28l-.23.84c-.03.12-.15.19-.27.17-.24-.05-.48-.08-.73-.08A2.42 2.42 0 0 0 6.81 6.5h2.71c.12.03.2.15.17.27l-.13.58c-.02.1-.11.18-.22.18H6.52c-.03.27-.03.53 0 .8h2.63c.12.03.2.15.17.27l-.11.52c-.03.1-.12.17-.22.18H6.8c.36.96 1.28 1.6 2.31 1.61.3 0 .59-.04.88-.1.12-.02.24.06.27.18l.17.84c.02.12-.05.24-.17.27v-.03z"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',"exclamation-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8m7.75-4v5h-1.5V4zm0 8v-1.5h-1.5V12z" clip-rule="evenodd"/></svg>',"exclamation-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.75 4v5h-1.5V4zm0 8v-1.5h-1.5V12z"/><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1M2 8a6 6 0 1 0 12 0A6 6 0 0 0 2 8" clip-rule="evenodd"/></svg>',"exclamation-stamp":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m15 8-1.55-1.86.22-2.46-2.3-.55L10.17 1 8 1.98 5.84 1 4.63 3.13l-2.29.54.22 2.46L1.01 8l1.55 1.86-.22 2.47 2.3.55 1.2 2.13L8 14.03l2.17.98 1.2-2.13 2.3-.55-.22-2.46L15 8.01zm-6.36 3.35H7.36v-1.34h1.28zm0-2.67H7.36V4.67h1.28z"/></svg>',"exclamation-triangle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m8 2 7 12H1zm-.75 4.5h1.5V10h-1.5zm1.5 6V11h-1.5v1.5z" clip-rule="evenodd"/></svg>',"exclamation-triangle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.75 6.5V10h-1.5V6.5zm0 6V11h-1.5v1.5z"/><path fill="currentColor" fill-rule="evenodd" d="M8 2 1 14h14zm0 1.985L2.741 13h10.518z" clip-rule="evenodd"/></svg>',eye:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12.34 4.07a8.1 8.1 0 0 1 2.9 3.52 1 1 0 0 1 0 .82A8.12 8.12 0 0 1 8 13.33 8.12 8.12 0 0 1 .76 8.41a1 1 0 0 1 0-.82A8.12 8.12 0 0 1 8 2.67a8.1 8.1 0 0 1 4.34 1.4m-6.375 6.925a3.66 3.66 0 1 0 4.09-6.07 3.66 3.66 0 0 0-4.09 6.07M10.45 7.96a2.44 2.44 0 1 1-4.88 0 2.44 2.44 0 0 1 4.88 0" clip-rule="evenodd"/></svg>',"eye-slash":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.51 5 .81 3.84l.82-1.17 13.5 9.47-.81 1.17-2-1.38A8 8 0 0 1 8 13.33 8.13 8.13 0 0 1 .76 8.41a1 1 0 0 1 0-.82A8.2 8.2 0 0 1 2.51 5m2.922 5.559A3.66 3.66 0 0 0 8 11.619a3.65 3.65 0 0 0 2.49-.93l-1.068-.75a2.43 2.43 0 0 1-3.746-2.631L4.64 6.58A3.8 3.8 0 0 0 4.35 8c.01.962.4 1.881 1.082 2.559m9.808-2.97A8.13 8.13 0 0 0 8 2.67a8.1 8.1 0 0 0-2.89.64l1.72 1.2A3.6 3.6 0 0 1 8 4.3a3.65 3.65 0 0 1 3.64 3.6l2.77 1.93c.318-.443.59-.919.81-1.42a1 1 0 0 0 .02-.82M9.416 5.977c.367.258.656.612.834 1.024L8.17 5.54a2.43 2.43 0 0 1 1.246.436" clip-rule="evenodd"/></svg>',fax:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13 14H6V2h7v3a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1M7 3h5v2H7zm0 4h5v1H7zm1 2H7v1h1zm-1 2h1v1H7zm3-2H9v1h1zm-1 2h1v1H9zm3-2h-1v1h1zm-1 2h1v1h-1z" clip-rule="evenodd"/><path fill="currentColor" d="M2 5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z"/></svg>',"fax-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 3H7v2h5zM6 3v2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1V2H6zm6 3h1v7H6V6zM3 5h2v8H3zm9 2H7v1h5zM7 9h1v1H7zm1 2H7v1h1zm1-2h1v1H9zm1 2H9v1h1zm1-2h1v1h-1zm1 2h-1v1h1z" clip-rule="evenodd"/></svg>',file:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm1-1V1l3 3z" clip-rule="evenodd"/></svg>',"file-cog":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 10.06c-.03.53-.47.94-1 .94-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1zm.55-4.81h3.76v9.4a.68.68 0 0 1-.66.66h-9.3c-.37 0-.67-.31-.66-.68V1.33c.01-.36.3-.65.66-.66h5.54v3.89c-.01.37.28.68.65.69zM10 8l-.51.29c-.21-.18-.46-.32-.72-.41v-.57c0-.06-.05-.12-.11-.14-.43-.09-.87-.09-1.3 0a.14.14 0 0 0-.12.14v.59q-.405.135-.72.42L6 8a.135.135 0 0 0-.17 0c-.3.32-.52.71-.65 1.13-.02.06 0 .13.06.16l.51.29q-.075.42 0 .84l-.51.29c-.05.03-.08.1-.06.16.13.42.35.81.65 1.13.05.04.12.04.17 0l.51-.29c.22.18.46.32.73.41v.59c0 .07.04.13.11.14.43.09.87.09 1.3 0 .07-.01.12-.07.11-.14v-.51c.27-.09.51-.23.73-.41l.51.29c.05.04.12.04.17 0 .3-.32.52-.71.65-1.13.02-.06 0-.13-.06-.16l-.5-.3c.05-.27.05-.56 0-.83l.5-.3c.06-.03.09-.1.07-.16a2.9 2.9 0 0 0-.65-1.13A.16.16 0 0 0 10 8m3.12-4.33L10.41.87a.63.63 0 0 0-.47-.2h-.17v3.66h3.54v-.17c0-.18-.06-.36-.19-.49"/></svg>',"file-download":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10.41.87 2.71 2.8a.7.7 0 0 1 .19.49v.17H9.77V.67h.17a.63.63 0 0 1 .47.2m2.9 4.38v9.42a.67.67 0 0 1-.66.66h-9.3a.67.67 0 0 1-.66-.68V1.33a.67.67 0 0 1 .66-.66h5.54v3.9a.67.67 0 0 0 .66.68zm-5.45 7.69 2.54-2.53a.19.19 0 0 0 .01-.27.16.16 0 0 0-.14-.06H8.93a.2.2 0 0 1-.2-.2v-2.6a.18.18 0 0 0-.18-.19H6.92a.19.19 0 0 0-.19.18v2.61a.2.2 0 0 1-.2.2H5.19a.18.18 0 0 0-.19.18.2.2 0 0 0 .06.15l2.54 2.53a.18.18 0 0 0 .26 0" clip-rule="evenodd"/></svg>',"file-excel":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm-.018 7h1.335L8.776 9.48l1.5-2.48H9.02l-.795 1.485a5 5 0 0 0-.157.436h-.014a2.6 2.6 0 0 0-.15-.422L7.19 7H5.82l1.457 2.5L5.683 12h1.342l.865-1.614q.09-.234.115-.349h.014q.053.244.101.335z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-excel-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.982 12h1.335L8.776 9.48l1.5-2.48H9.02l-.795 1.485a5 5 0 0 0-.157.436h-.014a2.6 2.6 0 0 0-.15-.422L7.19 7H5.82l1.457 2.5L5.683 12h1.342l.865-1.614q.09-.234.115-.349h.014q.053.244.101.335z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4l-3-3zm6 3V2.537L11.254 4zm2 1v9H4V2h5v3z" clip-rule="evenodd"/></svg>',"file-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10 1 3 3v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 1.415V4h1.585zM12 5H9V2H4v12h8z" clip-rule="evenodd"/></svg>',"file-pdf":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.464 11.274a4 4 0 0 0-.393.207c-.223.137-.37.27-.444.387-.072.11-.073.19-.03.273l.019.034.027-.01c.103-.042.268-.177.48-.433q.18-.22.34-.458m1.243-1.007q.378-.09.764-.146a9 9 0 0 1-.386-.65 16 16 0 0 1-.378.796m1.873.363a3 3 0 0 0 .341.314c.164.123.28.165.344.168a.1.1 0 0 0 .053-.012.23.23 0 0 0 .07-.094.3.3 0 0 0 .045-.152.07.07 0 0 0-.02-.047c-.039-.047-.15-.116-.391-.159a3 3 0 0 0-.463-.04zM8.051 7.952q.096-.308.151-.626.035-.213.029-.352a.5.5 0 0 0-.024-.15.4.4 0 0 0-.11.03c-.066.027-.12.08-.148.215l-.01.057q-.029.213.044.565.027.126.068.26"/><path fill="currentColor" fill-rule="evenodd" d="M9 1v4h4v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM5.42 12.713a.6.6 0 0 1-.332-.318c-.147-.294-.098-.588.06-.834.15-.233.4-.43.68-.596a6 6 0 0 1 1.122-.489q.454-.817.804-1.686a5.6 5.6 0 0 1-.326-.98c-.065-.303-.09-.603-.034-.86.056-.268.207-.509.492-.623l.055-.02a.75.75 0 0 1 .4-.038.53.53 0 0 1 .362.276c.066.124.09.27.096.407.005.142-.01.3-.036.465-.063.386-.204.859-.394 1.358q.316.672.742 1.277a4.5 4.5 0 0 1 1.01.038c.276.049.556.147.727.352a.64.64 0 0 1 .151.392.9.9 0 0 1-.104.426.8.8 0 0 1-.312.341.65.65 0 0 1-.342.078c-.25-.01-.495-.148-.706-.315l-.095-.081a4.3 4.3 0 0 1-.595-.638 9 9 0 0 0-1.512.307 8.6 8.6 0 0 1-.773 1.143c-.22.265-.46.496-.701.596a.6.6 0 0 1-.44.022" clip-rule="evenodd"/><path fill="currentColor" d="M10 1v3h3z"/></svg>',"file-pdf-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.42 12.713a.6.6 0 0 1-.332-.318c-.147-.294-.098-.588.06-.834.15-.233.4-.43.68-.596a6 6 0 0 1 1.122-.489q.454-.817.804-1.686a5.5 5.5 0 0 1-.326-.98c-.065-.303-.09-.603-.034-.86.056-.268.207-.509.492-.623.145-.058.303-.09.455-.058a.53.53 0 0 1 .362.276c.066.124.09.27.096.407.005.142-.01.3-.036.465-.063.386-.204.859-.394 1.358q.316.672.742 1.277a4.4 4.4 0 0 1 1.01.038c.276.049.556.147.727.352a.64.64 0 0 1 .151.392.9.9 0 0 1-.104.426.8.8 0 0 1-.268.315.65.65 0 0 1-.386.104c-.25-.01-.495-.148-.706-.315a4.3 4.3 0 0 1-.69-.72 9 9 0 0 0-1.512.308 8.6 8.6 0 0 1-.773 1.143c-.22.265-.46.496-.701.596a.6.6 0 0 1-.44.022m1.044-1.44a4 4 0 0 0-.348.18c-.248.148-.41.29-.49.415-.07.11-.072.19-.03.273l.02.034.027-.01c.103-.042.268-.177.48-.433q.18-.22.34-.458m1.242-1.006q.378-.09.764-.146a9 9 0 0 1-.386-.65 16 16 0 0 1-.378.796m2.18.65a3 3 0 0 1-.328-.309q.233.002.463.04c.24.043.352.112.392.159q.019.02.02.047a.3.3 0 0 1-.045.152.23.23 0 0 1-.071.094.1.1 0 0 1-.053.012c-.07-.003-.196-.05-.377-.194m-1.684-3.59q-.056.316-.15.625a3 3 0 0 1-.069-.26c-.057-.268-.065-.478-.034-.623.028-.134.082-.188.148-.214a.4.4 0 0 1 .11-.03.5.5 0 0 1 .024.15q.006.138-.029.351" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h6l3 3v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm7 .537V4h1.254zM12 14V5H9V2H4v12z" clip-rule="evenodd"/></svg>',"file-text":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm2 2H5v1h6zM5 9h6v1H5zm6 2H5v1h6z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-text-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11 7H5v1h6zM5 9h6v1H5zm6 2H5v1h6z"/><path fill="currentColor" fill-rule="evenodd" d="m13 4-3-3H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1zm-3 0V2.415L11.585 4zM9 5h3v9H4V2h5z" clip-rule="evenodd"/></svg>',"file-upload":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.12 3.67 10.41.87a.63.63 0 0 0-.47-.2h-.17v3.66h3.54v-.17c0-.18-.06-.36-.19-.49m.19 11V5.25H9.55c-.37 0-.67-.31-.66-.68V.67H3.35a.68.68 0 0 0-.66.66v13.32c0 .37.29.67.66.68h9.3c.36-.01.65-.3.66-.66m-3-4.64H8.93c-.1 0-.19.07-.2.18v2.61c0 .1-.09.18-.19.18H6.91a.18.18 0 0 1-.18-.18V10.2c0-.1-.07-.19-.18-.2H5.19s-.09.01-.14 0a.19.19 0 0 1 0-.27L7.6 7.14c.07-.07.19-.07.26 0l2.54 2.54s.06.09.06.14c0 .1-.09.18-.19.18z"/></svg>',"file-word":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zM5 7l1.091 5h1.002L8 8.262 8.91 12h.98L11 7h-.93l-.701 3.492L8.568 7H7.47l-.836 3.435L5.944 7z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-word-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m5 7 1.091 5h1.002L8 8.262 8.91 12h.98L11 7h-.93l-.701 3.492L8.568 7H7.47l-.836 3.435L5.944 7z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4l-3-3zm6 3V2.537L11.254 4zm2 1v9H4V2h5v3z" clip-rule="evenodd"/></svg>',filter:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 0-1 1v1.586a1 1 0 0 0 .293.707L6 9v2.5a1 1 0 0 0 .4.8l2 1.5A1 1 0 0 0 10 13V9l3.707-3.707A1 1 0 0 0 14 4.586V3a1 1 0 0 0-1-1z" clip-rule="evenodd"/></svg>',"filter-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 3h10v1.586l-4 4V13l-2-1.5V8.586l-4-4zm3 7V9L2.293 5.293A1 1 0 0 1 2 4.586V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1.586a1 1 0 0 1-.293.707L10 9v4a1 1 0 0 1-1.6.8l-2-1.5a1 1 0 0 1-.4-.8z" clip-rule="evenodd"/></svg>',"floppy-disk":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 3a1 1 0 0 1 1-1h7.586a1 1 0 0 1 .707.293l2.414 2.414a1 1 0 0 1 .293.707V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm2 0h6v3H4zm4 5a2 2 0 1 0 0 4 2 2 0 0 0 0-4" clip-rule="evenodd"/></svg>',"floppy-disk-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 3v10h10V5.414l-1.207-1.207L10.586 3H10v3H4V3zm2 0h4v2H5zm4-1h1.586a1 1 0 0 1 .707.293L12.5 3.5l1.207 1.207a1 1 0 0 1 .293.707V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm-1 9a1 1 0 1 1 0-2 1 1 0 0 1 0 2m-2-1a2 2 0 1 1 4 0 2 2 0 0 1-4 0" clip-rule="evenodd"/></svg>',folder:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 4h7c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h4z"/></svg>',"folder-check":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M14 4H7L6 3H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1M5.705 8.185 7 9.48l3.295-3.295.705.705-4 4-2-2z" clip-rule="evenodd"/></svg>',"folder-check-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.705 8.185 7 9.48l3.295-3.295.705.705-4 4-2-2z"/><path fill="currentColor" fill-rule="evenodd" d="m6 3 1 1.001h7c.55 0 1 .45 1 1.001v6.997c0 .55-.45 1.001-1 1.001H2c-.55 0-1-.45-1-1.001V4.001C1 3.451 1.45 3 2 3zm-.41 1.001H2v8.008h12V5.002H6.59z" clip-rule="evenodd"/></svg>',"folder-lines":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4H7L6 3H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1m-5 6H4V9h5zm3-2H4V7h8z"/></svg>',"folder-lines-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12 8.005H4V7.004h8zM9 9.006H4v1.001h5zM5.59 4.001H2v8.008h12V5.002H6.59l-.29-.29zM6 3l1 1.001h7c.55 0 1 .45 1 1.001v6.997c0 .55-.45 1.001-1 1.001H2c-.55 0-1-.45-1-1.001V4.001C1 3.451 1.45 3 2 3z"/></svg>',"folder-link":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.44H8.46L6.62 2.67H2C1.27 2.67.68 3.27.67 4v8c0 .73.6 1.32 1.33 1.33h12c.73 0 1.32-.6 1.33-1.33V5.78c0-.73-.6-1.33-1.33-1.34m-6.82 6.88H5.65c-1.34 0-2.42-1.08-2.42-2.42s1.08-2.42 2.42-2.42h.84c.14 0 .25.11.25.25 0 .06-.02.13-.06.17-.2.21-.36.45-.49.71-.04.07-.11.13-.19.14h-.33c-.62-.15-1.24.22-1.39.84s.22 1.24.84 1.39c.15.04.31.04.47.02h1.58c.62 0 1.12-.48 1.15-1.1v-.22c-.02-.08 0-.16.06-.22.12-.13.29-.2.47-.2h.45c.12 0 .23.09.25.21.02.14.02.29 0 .43 0 1.32-1.05 2.39-2.37 2.42m3.17 0h-.84c-.06 0-.13-.02-.17-.07-.1-.1-.1-.25 0-.35.2-.21.36-.45.49-.71.02-.09.08-.16.17-.19h.36c.63.04 1.18-.43 1.23-1.07.04-.63-.43-1.18-1.07-1.23H8.83c-.64 0-1.15.51-1.15 1.15v.25c.02.08 0 .16-.06.22-.12.13-.29.21-.47.21H6.7c-.13 0-.24-.09-.26-.22-.01-.14-.01-.27 0-.41a2.41 2.41 0 0 1 2.38-2.43h1.52c1.34 0 2.42 1.07 2.43 2.41 0 1.34-1.09 2.42-2.42 2.43z"/></svg>',"folder-link-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.22 3.67 1.55 1.49.29.28h5.93c.19 0 .34.16.34.34v6.21c0 .18-.15.34-.33.34H2.01c-.18 0-.34-.15-.34-.33V4.01c0-.18.15-.34.33-.34zm.4-1H2C1.27 2.67.68 3.27.67 4v8c0 .73.6 1.32 1.33 1.33h12c.73 0 1.32-.6 1.33-1.33V5.78c0-.73-.6-1.33-1.33-1.34H8.46z"/><path fill="currentColor" d="M9.555 8.848a2.37 2.37 0 0 1-2.372 2.372l-1.486.006a2.366 2.366 0 0 1-2.37-2.37 2.38 2.38 0 0 1 2.376-2.377h.82c.135 0 .25.106.25.249q-.001.094-.062.17a3 3 0 0 0-.474.687.26.26 0 0 1-.223.143h-.286a1.13 1.13 0 0 0-1.165 1.086 1.123 1.123 0 0 0 1.082 1.163c.023.005.045 0 .063 0l1.481-.002A1.123 1.123 0 0 0 8.292 8.64a.25.25 0 0 1 .063-.214.62.62 0 0 1 .46-.201l.464-.001c.125 0 .223.089.245.21q.034.206.035.419zm3.11.001a2.365 2.365 0 0 0-2.371-2.37l-1.481.001a2.387 2.387 0 0 0-2.337 2.8c.022.12.125.205.245.21l.464-.001a.6.6 0 0 0 .46-.201.24.24 0 0 0 .063-.214 1.123 1.123 0 0 1 1.104-1.335l1.48-.002a1.12 1.12 0 0 1 1.15 1.096 1.13 1.13 0 0 1-1.099 1.152c-.022.004-.045 0-.062 0h-.286a.25.25 0 0 0-.223.143c-.125.25-.286.482-.474.688a.244.244 0 0 0 .013.352.24.24 0 0 0 .17.063l.82-.001a2.38 2.38 0 0 0 2.377-2.376z"/></svg>',"folder-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7 4.001 6 3H2c-.55 0-1 .45-1 1.001v7.998C1 12.549 1.45 13 2 13h12c.55 0 1-.45 1-1.001V5.002c0-.55-.45-1.001-1-1.001zm-5 0h3.59l1 1.001H14v7.007H2z" clip-rule="evenodd"/></svg>',"folder-star":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.44H8.46L6.62 2.67H2A1.35 1.35 0 0 0 .67 4v8A1.35 1.35 0 0 0 2 13.33h12A1.35 1.35 0 0 0 15.33 12V5.78A1.36 1.36 0 0 0 14 4.44m-.2 3.89L12 9.66l.69 2a.22.22 0 0 1-.08.27.26.26 0 0 1-.13.06.4.4 0 0 1-.15-.06l-1.77-1.26L8.75 12a.34.34 0 0 1-.15 0 .3.3 0 0 1-.13 0 .23.23 0 0 1-.08-.27l.69-2-1.81-1.35a.23.23 0 0 1-.1-.17.24.24 0 0 1 .24-.24h2.21l.67-2a.26.26 0 0 1 .243-.156.24.24 0 0 1 .217.156l.67 2h2.2a.26.26 0 0 1 .26.24.3.3 0 0 1-.08.12"/></svg>',folders:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 3h4c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1h-1V8a2 2 0 0 0-2-2H6.414l-1-1H5V3c0-.55.45-1 1-1h2z"/><path fill="currentColor" d="M10 7a1 1 0 0 1 1 1v5c0 .55-.45 1-1 1H3c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h2l1 1z"/></svg>',"folders-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 3 8 2H6c-.55 0-1 .45-1 1v2h1V3h1.59l1 1H13v5.01h-1V10h1c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"/><path fill="currentColor" fill-rule="evenodd" d="m5 6 1 1h4c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1H3c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1zm-.41 1H3v6.01h7V8H5.59z" clip-rule="evenodd"/></svg>',gavel:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.908 5.012a.59.59 0 0 0 .59 1.02l.138-.08.59 1.02-5.892 3.402a.59.59 0 0 0 .589 1.02l5.892-3.4.589 1.02-.14.08a.59.59 0 0 0 .59 1.02l3.31-1.91a.59.59 0 0 0-.59-1.02l-.139.08-1.768-3.062.14-.08a.59.59 0 0 0-.59-1.021zm3.631 7.01a.5.5 0 1 0 0 1h5a.5.5 0 0 0 0-1z"/></svg>',"gavel-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.869 4.99a.59.59 0 0 0 .59 1.02l.138-.08.59 1.02-5.892 3.402a.59.59 0 1 0 .589 1.02l5.892-3.4.59 1.02-.14.08a.59.59 0 0 0 .589 1.02l3.31-1.91a.59.59 0 0 0-.59-1.02l-.139.08L9.628 4.18l.14-.08a.59.59 0 0 0-.59-1.021zm1.594.44 1.3-.75 1.767 3.062-1.299.75z" clip-rule="evenodd"/><path fill="currentColor" d="M9.5 12a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1z"/></svg>',"graduation-cap":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m1 6 7-3 7 3v5h-1V6.429L8 9z"/><path fill="currentColor" d="M3 7.945V11l5 2 5-2V7.945l-5 2.143z"/></svg>',"graduation-cap-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m1 6 2 .857V11l5 2 5-2V6.857l1-.428V11h1V6L8 3zm3 4.323V7.286L8 9l4-1.714v3.037l-4 1.6zM3.539 6 8 7.912 12.461 6 8 4.088z" clip-rule="evenodd"/></svg>',"hand-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.75 3.5c-.41 0-.75.34-.75.75v3.5c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-4c0-.41-.34-.75-.75-.75s-.75.34-.75.75v4c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-5c0-.41-.34-.75-.75-.75S8 2.34 8 2.75v5c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-4c0-.41-.34-.75-.75-.75S6 3.34 6 3.75V11L3.97 9.54a.845.845 0 0 0-1.21 0c-.33.34-.34.88 0 1.21l2.22 2.22c.66.66 1.55 1.03 2.47 1.03H11a2.5 2.5 0 0 0 2.5-2.5V4.25c0-.41-.34-.75-.75-.75"/></svg>',history:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1.67c-1.64 0-3.21.62-4.4 1.75l-.91-.91a.6.6 0 0 0-.85 0c-.12.11-.18.27-.18.43v3.43c0 .33.25.61.58.63h3.44c.34 0 .62-.28.62-.62A.7.7 0 0 0 6.12 6L5.05 4.87a4.276 4.276 0 0 1 6.06.21 4.276 4.276 0 0 1-.21 6.06 4.303 4.303 0 0 1-5.76.09.296.296 0 0 0-.41 0l-1 1c-.11.12-.11.3 0 .42a6.324 6.324 0 0 0 8.94-.36 6.324 6.324 0 0 0-.36-8.94 6.33 6.33 0 0 0-4.33-1.68zM9.85 9.3l-.36.36c-.12.11-.3.11-.42 0L7.45 8V5.15c0-.16.12-.29.28-.3h.52c.16 0 .29.12.3.28v2.45l1.3 1.3c.11.12.11.3 0 .42"/></svg>',home:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m13.55 5.5-5-3.33C8.38 2.06 8.19 2 7.99 2s-.39.06-.56.17L2.45 5.5c-.28.19-.45.5-.45.83v6.66c0 .55.45 1 1 1h4V12c0-.56.45-1.01 1-1.01s1 .45 1 1.01v1.99h4c.55 0 1-.45 1-1V6.33c0-.33-.17-.65-.45-.83"/></svg>',"home-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m13.55 5.5-5-3.33C8.38 2.06 8.19 2 7.99 2s-.39.06-.56.17L2.45 5.5c-.28.19-.45.5-.45.83v6.66c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V6.33c0-.33-.17-.65-.45-.83m-.56 7.5h-4v-1c0-.55-.45-1-1-1s-1 .45-1 1v1H3V6.33L8 3l5 3.33V13z"/></svg>',"info-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-7.75 4V7h1.5v5zm0-8v1.5h1.5V4z" clip-rule="evenodd"/></svg>',"info-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.25 12V7h1.5v5zm0-8v1.5h1.5V4z"/><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m6-7A6 6 0 1 0 2 8a6 6 0 0 0 12 0" clip-rule="evenodd"/></svg>',"interrogation-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15.039 8.146a7 7 0 1 1-14 0 7 7 0 0 1 14 0m-6.974-.5a1 1 0 1 0-.942-1.335l-1.43-.458A2.501 2.501 0 1 1 8.79 9.04v.606h-1.5v-2zm-.026 3a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5" clip-rule="evenodd"/></svg>',"interrogation-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.824 7.646a1 1 0 1 0-.943-1.335l-1.429-.458A2.501 2.501 0 1 1 8.548 9.04v.606h-1.5v-2zm-.776 3.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0"/><path fill="currentColor" fill-rule="evenodd" d="M7.798 15.146a7 7 0 1 0 0-14 7 7 0 0 0 0 14m0-1a6 6 0 1 0 0-12 6 6 0 0 0 0 12" clip-rule="evenodd"/></svg>',key:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.44 6.67a3.994 3.994 0 0 0-5.1-2.44A3.986 3.986 0 0 0 .9 9.33 3.994 3.994 0 0 0 6 11.77c1.14-.4 2.04-1.3 2.44-2.44h2.89V12H14V9.33h1.33V6.67zM4.67 9.33c-.73 0-1.33-.6-1.33-1.33s.6-1.33 1.33-1.33S6 7.27 6 8s-.58 1.32-1.31 1.33z"/></svg>',laptop:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.5 5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z"/><path fill="currentColor" fill-rule="evenodd" d="M3 3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1H1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1h-2a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm10 1H3v7h10z" clip-rule="evenodd"/></svg>',"life-ring":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M8 .67a7.33 7.33 0 1 0 0 14.66A7.33 7.33 0 0 0 8 .67m5.14 3.53-1.88 1.88a3.9 3.9 0 0 0-1.34-1.34l1.88-1.88c.51.38.96.83 1.34 1.34M8 10.84a2.84 2.84 0 1 1 0-5.68 2.84 2.84 0 0 1 0 5.68m-3.8-8 1.88 1.9c-.55.33-1.01.79-1.34 1.34L2.86 4.2c.38-.51.83-.96 1.34-1.34zM2.86 11.8l1.88-1.88c.33.55.79 1.01 1.34 1.34L4.2 13.14c-.51-.38-.96-.83-1.34-1.34m8.94 1.34-1.88-1.88a3.9 3.9 0 0 0 1.34-1.34l1.88 1.88c-.38.51-.83.96-1.34 1.34"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',"lines-rectangle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm2 4h6v1H5zm4 3H5v1h4z" clip-rule="evenodd"/></svg>',"lines-rectangle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6h6v1H5zm4 3H5v1h4z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm8 1H4v12h8z" clip-rule="evenodd"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9.75 6.25a3.75 3.75 0 0 1 0 5.31l-1.66 1.67a3.76 3.76 0 0 1-5.32 0 3.76 3.76 0 0 1 0-5.32l.92-.92c.15-.15.4-.16.56 0 .07.07.11.16.12.26.02.44.1.88.24 1.3.05.14.01.3-.09.41l-.32.32c-.72.67-.76 1.8-.09 2.52s1.8.76 2.52.09c.03-.02.05-.05.07-.07l1.66-1.66a1.775 1.775 0 0 0-.26-2.73.4.4 0 0 1-.17-.31.98.98 0 0 1 .29-.74l.52-.52c.14-.14.35-.15.51-.04.18.13.35.27.51.43zm3.49-3.48a3.76 3.76 0 0 0-5.32 0L6.26 4.43a3.772 3.772 0 0 0 .52 5.75c.16.11.37.09.51-.04l.52-.52c.2-.19.3-.46.29-.74a.38.38 0 0 0-.17-.31 1.775 1.775 0 0 1-.26-2.73l1.66-1.66c.68-.71 1.81-.74 2.52-.06s.74 1.81.06 2.52c-.02.03-.05.05-.07.07l-.32.32c-.11.11-.14.27-.09.41.14.42.22.86.24 1.3 0 .22.19.39.41.38.1 0 .19-.05.26-.12l.92-.92a3.76 3.76 0 0 0 0-5.32z"/></svg>',list:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M1.9 2.68c-.67 0-1.22.56-1.21 1.23 0 .67.56 1.22 1.23 1.21.67 0 1.22-.56 1.21-1.23 0-.32-.13-.63-.36-.86s-.54-.36-.87-.35m0 4.09a1.23 1.23 0 1 0 0 2.46 1.23 1.23 0 1 0 0-2.46m0 4.09a1.23 1.23 0 1 0 0 2.46 1.23 1.23 0 1 0 0-2.46m13 .41H5.18c-.23 0-.41.18-.41.41v.82c0 .23.18.41.41.41h9.75c.23 0 .41-.18.41-.41v-.82c0-.23-.18-.41-.41-.41zm0-8.18H5.18c-.23 0-.41.18-.41.41v.81c0 .23.18.41.41.41h9.75c.23 0 .41-.18.41-.41V3.5c0-.23-.18-.41-.41-.41zm0 4.09H5.18c-.23 0-.41.18-.41.41v.82c0 .23.18.41.41.41h9.75c.23 0 .41-.18.41-.41v-.82c0-.23-.18-.41-.41-.41z"/></svg>',loader:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-opacity=".2" d="M13.657 8A5.657 5.657 0 1 1 2.343 8a5.657 5.657 0 0 1 11.314 0M3.475 8a4.526 4.526 0 1 0 9.05 0 4.526 4.526 0 0 0-9.05 0"/><path fill="currentColor" d="M2.343 8A5.657 5.657 0 0 1 8 2.343v1.132A4.525 4.525 0 0 0 3.475 8z"/></svg>',location:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 14.997c2.5-2.5 5-6.236 5-8.997A5 5 0 0 0 3 6c0 2.761 2.5 6.496 5 8.997m0-7.499a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',"location-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 6.002a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M13 6.002c0 2.506-2.06 5.814-4.309 8.273q-.344.376-.691.723a23 23 0 0 1-.691-.723C5.059 11.816 3 8.508 3 6.002a5 5 0 0 1 10 0m-1 0c0 1.116-.52 2.554-1.424 4.088A21.5 21.5 0 0 1 8 13.55a21.5 21.5 0 0 1-2.576-3.459C4.52 8.556 4 7.118 4 6.002a4 4 0 1 1 8 0" clip-rule="evenodd"/></svg>',lock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0m5 3V4a2 2 0 1 0-4 0v3zm-2 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2" clip-rule="evenodd"/></svg>',"lock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M5 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0m5 3V4a2 2 0 1 0-4 0v3zm2 1v6H4V8z" clip-rule="evenodd"/></svg>',"log-in":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m10.97 7.78-4-4a.29.29 0 0 0-.42 0c-.07.06-.12.15-.13.24v2.07c0 .17-.13.3-.3.32H1.97c-.16 0-.29.12-.3.28v2.58c0 .16.12.29.28.3h4.16c.17 0 .3.14.3.31v2.14c0 .16.12.29.28.3.11.01.21-.03.28-.11l4-4c.11-.12.11-.3 0-.42zm1.81 4.96V3.26H9.31a.3.3 0 0 1-.3-.3v-.97c0-.16.13-.3.3-.3h4.74c.16 0 .3.13.3.3v12.03a.3.3 0 0 1-.3.3H9.31a.3.3 0 0 1-.3-.3v-.97c0-.16.13-.3.3-.3h3.47z"/></svg>',"log-out":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m14.23 7.79-4-4a.29.29 0 0 0-.42 0c-.07.06-.12.15-.13.24V6.1c0 .17-.13.3-.3.32H5.23c-.16 0-.29.12-.3.28v2.58c0 .16.12.29.28.3h4.16c.17 0 .3.14.3.31v2.14c0 .16.12.29.28.3.11.01.21-.03.28-.11l4-4c.11-.12.11-.3 0-.42zm-11-4.53v9.5H6.7c.16 0 .3.13.3.3v.97a.3.3 0 0 1-.3.3H1.97a.3.3 0 0 1-.3-.3V1.99c0-.16.13-.3.3-.3H6.7c.16 0 .3.13.3.3v.97a.3.3 0 0 1-.3.3z"/></svg>',"magnifying-glass":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 7a5 5 0 1 1 8.872 3.164l3.127 3.128-.707.707-3.128-3.128A5 5 0 0 1 2 7m5 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8" clip-rule="evenodd"/></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M1.007 4.002v8.011a1 1 0 0 0 1 1h11.997a1 1 0 0 0 1-1V4l-7 5z"/><path fill="currentColor" d="m1.52 3.14 6.484 4.63 6.485-4.632a1 1 0 0 0-.486-.126H2.008a1 1 0 0 0-.487.127"/></svg>',"mail-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 3.999v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-8A1 1 0 0 0 14.001 3H2a1 1 0 0 0-1 .999m13 .713-6 4.28-6-4.28V12h12zM2.724 4 8 7.764 13.276 4z" clip-rule="evenodd"/></svg>',"messages-square":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 10v1.017a1 1 0 0 1-1.006 1L8 12l-4 2v-1.978H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1zm1-6H5v1h6a1 1 0 0 1 1 1v3h1zm-3 3H4v1h6zM4 9h3v1H4z" clip-rule="evenodd"/></svg>',"messages-square-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 7h6v1H4zm0 2h3v1H4z"/><path fill="currentColor" fill-rule="evenodd" d="M12 10v1.017a1 1 0 0 1-1.006 1L8 12l-4 2v-1.978H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1zm1-6H5v1h6a1 1 0 0 1 1 1v3h1zm-5.233 6.999L5 12.382v-1.36H3V6h8v5.017z" clip-rule="evenodd"/></svg>',mobile:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm4 10a1 1 0 1 1 2 0 1 1 0 0 1-2 0M6 3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5" clip-rule="evenodd"/></svg>',"mobile-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0M6 3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm8 1H4v12h8z" clip-rule="evenodd"/></svg>',notes:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2.5 12.1c-.7 0-1.2-.5-1.2-1.2V2.5c0-.7.5-1.2 1.2-1.2h8.4c.7 0 1.2.5 1.2 1.2H3c-.3 0-.5.2-.5.5zm11.8-7.4v6h-3.6v3.6h-6c-.7 0-1.2-.5-1.2-1.2V4.7c0-.7.5-1.2 1.2-1.2h8.4c.7 0 1.2.5 1.2 1.2M8.9 8.9h-3v1.2h3zm3-2.4h-6v1.2h6zm-.7 7.3v-2.6h2.6"/></svg>',"notes-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.11 4.74v5.38h-3v3H4.73V4.74zm0-1.2H4.73a1.2 1.2 0 0 0-1.2 1.2v8.38a1.2 1.2 0 0 0 1.2 1.19h6l3.59-3.59v-6a1.2 1.2 0 0 0-1.21-1.18m-4.19 6.58h-3V8.93h3zm3-2.39h-6v-1.2h6zM3.8 11.19h-1V2.81h8.38v1h1.2v-1a1.2 1.2 0 0 0-1.2-1.2H2.81a1.2 1.2 0 0 0-1.2 1.2v8.38a1.2 1.2 0 0 0 1.2 1.2h1z"/></svg>',"paper-plane":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 1.69 1.84 7a.28.28 0 0 0-.15.36.3.3 0 0 0 .16.15l3.27 1.82a.57.57 0 0 0 .61-.06l6.45-5.57c.05 0 .15-.1.19-.06s0 .14-.06.18l-5.59 6.29a.52.52 0 0 0 0 .63l2.09 3.44a.28.28 0 0 0 .37.12.3.3 0 0 0 .13-.12l5-12.11a.3.3 0 0 0-.14-.37.3.3 0 0 0-.17-.01"/></svg>',"paper-plane-slash":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m2.67 1.69 11.59 11.59-1 1-2.79-2.8-1.1 2.67c-.03.05-.08.09-.13.12-.14.07-.3.01-.37-.12l-2.12-3.41a.525.525 0 0 1 0-.63L7.82 8.9l-.76-.76-1.3 1.13c-.17.14-.41.16-.61.06L1.88 7.51a.3.3 0 0 1-.16-.15c-.06-.14.01-.3.15-.36l2.81-1.24-3-3zm11.53 0a.28.28 0 0 0-.22 0L7.53 4.51l1.73 1.73 3-2.54s.15-.1.19-.06 0 .14-.06.18L9.75 6.73l1.88 1.88 2.71-6.54c.05-.14 0-.3-.14-.37z"/></svg>',paperclip:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.57 12.358 6.09-6.09a1.035 1.035 0 1 0-1.465-1.463l-5.32 5.32-.733-.731 5.321-5.321A2.07 2.07 0 1 1 13.391 7l-5.339 5.34-.006.006-.744.744A3.106 3.106 0 0 1 2.91 8.698L9.608 2l.732.732L3.642 9.43a2.07 2.07 0 1 0 2.928 2.928"/></svg>',pen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10.88 2.293a1 1 0 0 1 1.415 0l1.414 1.414a1 1 0 0 1 0 1.414l-1.414 1.415-2.828-2.829zm.705 4.953L8.756 4.417 2 11.174l.003 2.825 2.825.003z"/></svg>',"pen-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-3.692-3.307v-1.54l4.538-4.539 1.54 1.54-4.538 4.539zm7.268-6.312a.42.42 0 0 1 0 .583l-.753.753-1.54-1.54.747-.753a.42.42 0 0 1 .583 0z" clip-rule="evenodd"/></svg>',"pen-fancy":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.63 8.65c-.24.07-.43.26-.5.5l-1.46 4.37.11.12 2.3-2.3v-.19c0-.44.35-.8.79-.81.44 0 .8.35.81.79 0 .44-.35.8-.79.81h-.21l-2.3 2.3.12.11 4.37-1.46c.24-.07.43-.26.5-.5l.82-2.08L5.7 7.83zm7.17-6.3L6.27 7.28 8.69 9.7l4.94-4.52c2.1-1.86-.99-4.92-2.83-2.83"/></svg>',"pen-fancy-files-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 2H6v10h6V8.946l.023-.058.085-.078.892-.813V12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v.112a2.3 2.3 0 0 0-.974.66L12 2.8zm1 4.643-1 .913-.566.515-1.528-1.524L12 4.275l.767-.832q.113-.127.233-.215c1.167-.857 2.797.9 1.555 1.997zM4 3H3v11.5a.5.5 0 0 0 .5.5H11v-1H4zm4.238 4.41a.47.47 0 0 0-.316.315L7 10.477l.07.076 1.452-1.449v-.12a.51.51 0 0 1 .5-.51.51.51 0 0 1 .511.498.51.51 0 0 1-.499.51h-.133L7.45 10.931l.075.069 2.76-.92a.47.47 0 0 0 .317-.314l.518-1.31-1.573-1.562z" clip-rule="evenodd"/></svg>',"pen-fancy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.24 1.67c-.49 0-1 .21-1.44.7L6.27 7.3l2.42 2.42 4.94-4.52c1.6-1.42.19-3.53-1.39-3.53M8.72 8.34 7.66 7.28l3.9-4.24c.22-.24.44-.36.69-.36.41 0 .87.34 1.03.78.14.37.04.7-.32 1.02L8.73 8.36zM5.7 7.86l-2.08.82c-.24.08-.42.26-.5.5l-1.46 4.37.12.12.56.56.12.12 4.37-1.46c.24-.08.42-.26.5-.5l.81-2.08L5.7 7.87zm-2.57 4.46L4 9.72c.03-.08.09-.15.17-.18l1.29-.51 1.52 1.52-.5 1.29c-.03.08-.1.15-.19.18l-2.6.87.95-.95c.06.02.12.04.19.04.44 0 .79-.35.79-.79s-.35-.79-.79-.79-.79.35-.79.79c0 .07.02.13.04.19l-.95.95z"/></svg>',"pen-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.295 2.293a1 1 0 0 0-1.414 0L9.467 3.707l2.828 2.829 1.414-1.415a1 1 0 0 0 0-1.414z"/><path fill="currentColor" fill-rule="evenodd" d="m2.003 13.999 2.825.003 6.757-6.756-2.829-2.829L2 11.174zM3 11.587l5.756-5.755 1.414 1.414-5.755 5.756L3.002 13z" clip-rule="evenodd"/></svg>',phone:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m10 10.53 1.034-1.035a1.01 1.01 0 0 1 1.08-.221l1.259.503A1.01 1.01 0 0 1 14 10.7v2.308a1 1 0 0 1-1.052.992C4.124 13.45 2.343 5.974 2.006 3.112A1.002 1.002 0 0 1 3.007 2h2.228a1 1 0 0 1 .923.628l.503 1.26a1 1 0 0 1-.217 1.08L5.41 6.002s.595 4.029 4.59 4.527"/></svg>',"phone-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.62 14h-.079C3.472 13.479 2.184 5.826 2.004 3.49A1.384 1.384 0 0 1 3.278 2h2.543a.92.92 0 0 1 .859.582l.701 1.726a.92.92 0 0 1-.203.997l-.983.992a4.325 4.325 0 0 0 3.499 3.508l1.001-.993a.92.92 0 0 1 1.002-.189l1.74.697a.92.92 0 0 1 .567.858v2.437A1.385 1.385 0 0 1 12.62 14M3.389 2.923a.46.46 0 0 0-.462.462v.037c.213 2.732 1.574 9.193 9.665 9.655a.46.46 0 0 0 .49-.434v-2.465l-1.74-.696-1.325 1.315-.222-.028c-4.015-.503-4.56-4.518-4.56-4.56l-.028-.221 1.311-1.325-.692-1.74z"/></svg>',picture:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M14 3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1zM4 5a1 1 0 1 0 2 0 1 1 0 0 0-2 0m7.134 2.514L13 10.023V13H3v-2.494l.896-1.064c.203-.242.305-.362.425-.408a.5.5 0 0 1 .358 0c.12.046.222.166.425.408l1.767 2.098 2.995-4.026c.21-.282.316-.423.444-.476a.5.5 0 0 1 .38 0c.129.053.234.194.444.476" clip-rule="evenodd"/></svg>',"picture-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2"/><path fill="currentColor" fill-rule="evenodd" d="M14 13a1 1 0 0 1-1 1H2h.994A1 1 0 0 1 2 13V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1zM3 3h10v5.315l-1.069-1.43a6 6 0 0 0-.29-.368 1.5 1.5 0 0 0-.555-.41 1.5 1.5 0 0 0-1.14-.001c-.27.11-.448.288-.556.408-.098.11-.2.246-.291.366L6.822 9.911l-.974-1.14a5 5 0 0 0-.283-.314 1.5 1.5 0 0 0-.53-.353 1.5 1.5 0 0 0-1.064 0c-.248.094-.42.245-.529.352a5 5 0 0 0-.283.314L3 8.956zm0 10v-2.506l.903-1.055c.202-.237.303-.355.423-.4a.5.5 0 0 1 .355 0c.12.045.22.164.422.4l1.769 2.07 3.01-4.006c.21-.28.315-.42.443-.472a.5.5 0 0 1 .38 0c.127.053.232.193.441.474L13 9.985V13z" clip-rule="evenodd"/></svg>',"play-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m3.724 7.447-6 3A.5.5 0 0 1 5 11V5a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894"/></svg>',plus:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9.41 6.59V1.92a.24.24 0 0 0-.24-.25H6.84a.24.24 0 0 0-.25.24v4.68H1.92a.24.24 0 0 0-.25.24v2.33a.24.24 0 0 0 .24.25h4.68v4.67a.24.24 0 0 0 .24.25h2.33a.24.24 0 0 0 .25-.24V9.41h4.67a.24.24 0 0 0 .25-.24V6.84a.24.24 0 0 0-.24-.25z"/></svg>',"plus-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M8 .67C3.95.67.67 3.95.67 8S3.95 15.33 8 15.33s7.33-3.28 7.33-7.33S12.05.67 8 .67m4.26 8.16c0 .19-.17.35-.36.35H9.18v2.72c0 .19-.16.35-.35.36H7.17c-.19 0-.35-.17-.35-.36V9.18H4.1a.37.37 0 0 1-.36-.35V7.17c0-.19.17-.35.36-.35h2.72V4.1c0-.19.16-.35.35-.36h1.66c.19 0 .35.17.35.36v2.72h2.72c.19 0 .35.16.36.35z"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',share:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.5a2.5 2.5 0 0 1-4.467 1.543L6.915 7.35a2.5 2.5 0 0 1 0 1.298l2.618 1.308a2.5 2.5 0 1 1-.448.894L6.467 9.544a2.5 2.5 0 1 1 0-3.085l2.618-1.31A2.503 2.503 0 0 1 11.5 2 2.5 2.5 0 0 1 14 4.5"/></svg>',"share-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m1 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0M6 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m.623 1.32a2.5 2.5 0 1 1-.156-2.863L9.085 5.15c.088.33.243.633.448.894L6.915 7.35a2.5 2.5 0 0 1 0 1.298l2.618 1.308a2.5 2.5 0 1 1-.448.894L6.467 9.544q.084-.107.156-.223M11.5 13a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',shuffle:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M15.13 10.45a.51.51 0 0 1 0 .81l-2.29 1.91c-.29.24-.71.24-1 0-.12-.1-.2-.24-.2-.4v-.95H10c-.09 0-.18-.03-.25-.09l-2-1.8 1.49-1.37 1.51 1.35h.92V9c.04-.35.34-.6.69-.57.18 0 .35.06.48.17l2.29 1.9zM1 6.09h2.42l1.51 1.35 1.53-1.36-2-1.8a.4.4 0 0 0-.26-.09H1a.33.33 0 0 0-.34.29v1.33c.02.17.17.3.34.28m10.66 0v1c.04.35.34.6.69.57.18 0 .35-.06.48-.17l2.29-1.9a.51.51 0 0 0 0-.81l-2.28-1.95a.81.81 0 0 0-1 0c-.12.1-.2.25-.2.41v1H10c-.09 0-.18.03-.25.09L3.42 9.91H1a.313.313 0 0 0-.34.28v1.33c.02.17.17.3.34.29h3.18c.09 0 .19-.03.26-.09l6.31-5.62h.91z"/></svg>',sitemap:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.33 10h-2c-.37 0-.66.3-.66.67v2c0 .36.3.65.66.66h2c.37 0 .66-.29.67-.66v-2c0-.37-.3-.67-.67-.67m-.5-1.67H7.5v1h1v-1h4.67v1h1v-1.2c0-.44-.36-.8-.8-.8H8.5V6h.83c.37 0 .67-.3.67-.67v-2c0-.37-.3-.66-.67-.66H6.67c-.37 0-.66.29-.67.66v2c0 .37.3.67.67.67h.83v1.33H2.63c-.44 0-.8.36-.8.8v1.2h1zM9 10H7c-.37 0-.67.3-.67.67v2c0 .37.3.66.67.66h2c.37 0 .66-.29.67-.66v-2c0-.37-.3-.67-.67-.67m5.67 0h-2c-.37 0-.67.3-.67.67v2c0 .37.3.66.67.66h2c.36 0 .65-.3.66-.66v-2c0-.37-.29-.66-.66-.67"/></svg>',sliders:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.95 4H15v1h-2.05v.002a2.5 2.5 0 0 1-2.672 1.988A2.52 2.52 0 0 1 8.05 5.002V5H1V4h7.05v-.002a2.5 2.5 0 0 1 2.672-1.988 2.52 2.52 0 0 1 2.228 1.988zm-9.9 8H1v-1h2.05v-.002A2.52 2.52 0 0 1 5.5 9a2.5 2.5 0 0 1 2.45 1.999V11H15v1H7.95v.002A2.52 2.52 0 0 1 5.5 14a2.5 2.5 0 0 1-2.45-1.998z"/></svg>',"sliders-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12.95 4H15v1h-2.05c-.25 1.15-1.25 2-2.45 2s-2.2-.85-2.45-2H1V4h7.05C8.3 2.85 9.3 2 10.5 2s2.2.85 2.45 2M9 4.5c0 .85.65 1.5 1.5 1.5S12 5.35 12 4.5 11.35 3 10.5 3 9 3.65 9 4.5M3.05 12H1v-1h2.05C3.3 9.85 4.3 9 5.5 9s2.2.85 2.45 2H15v1H7.95c-.25 1.15-1.25 2-2.45 2s-2.2-.85-2.45-2M7 11.5c0-.85-.65-1.5-1.5-1.5S4 10.65 4 11.5 4.65 13 5.5 13 7 12.35 7 11.5" clip-rule="evenodd"/></svg>',squares:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm7 0a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1zm0 7a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1zm-7 0a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z"/></svg>',star:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" stroke="currentColor" d="m8 2.472 1.715 3.475.116.235.26.038 3.835.557-2.775 2.705-.188.183.044.26.655 3.818-3.43-1.803L8 11.818l-.233.122-3.43 1.803.656-3.818.044-.26-.188-.183-2.775-2.705L5.91 6.22l.26-.038.116-.235z"/></svg>',"star-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" d="m8 2.472 1.715 3.475.116.235.26.038 3.835.557-2.775 2.705-.188.183.044.26.655 3.818-3.43-1.803L8 11.818l-.233.122-3.43 1.803.656-3.818.044-.26-.188-.183-2.775-2.705L5.91 6.22l.26-.038.116-.235z"/></svg>',table:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1zm1-3v3h3v-3zm4 0v3h6v-3zm6-1H7V6h6zM6 9H3V6h3zM3 5V3h10v2z" clip-rule="evenodd"/></svg>',tag:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M1.67 7.9V2.85a1.18 1.18 0 0 1 1.18-1.18H7.9a1.18 1.18 0 0 1 .84.33L14 7.26a1.2 1.2 0 0 1 0 1.68L8.94 14a1.2 1.2 0 0 1-1.68 0L2 8.74a1.18 1.18 0 0 1-.33-.84m2.77-4.65a1.19 1.19 0 1 0-.02 2.38 1.19 1.19 0 0 0 .02-2.38"/></svg>',tags:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m7.22 3 4.86 4.37a.94.94 0 0 1 0 1.38L7.4 13a1.17 1.17 0 0 1-1.55 0L1 8.63a1 1 0 0 1-.33-.71V3.71a1 1 0 0 1 1.1-1h4.67a1.12 1.12 0 0 1 .78.29M2.602 5.94a1.13 1.13 0 1 0 1.256-1.88 1.13 1.13 0 0 0-1.256 1.88M10.15 3 15 7.37a.94.94 0 0 1 0 1.42L10.32 13a1.17 1.17 0 0 1-1.55 0l3.99-3.55a1.758 1.758 0 0 0 0-2.65l-4.5-4.09h1.12c.284-.005.56.1.77.29" clip-rule="evenodd"/></svg>',"thumb-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11.202 11.934a1.506 1.506 0 0 1-2.438 1.651L5.5 10.461V2h4.922c1.081 0 2.058.715 2.484 1.818l.944 3.394c.51 1.32-.362 2.788-1.656 2.788h-1.772zM4.5 10H2V2h2.5z"/></svg>',"thumb-down-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11.204 11.934 10.424 10h1.772c1.294 0 2.166-1.468 1.656-2.788l-.944-3.394C12.484 2.715 11.507 2 10.426 2H5v.003H2v8h3.023l3.744 3.582a1.506 1.506 0 0 0 2.437-1.651m.755-7.797C11.657 3.4 11.033 3 10.425 3H6.002l.017 6.572 3.439 3.29a.506.506 0 0 0 .819-.554L8.943 9h3.253c.24 0 .48-.131.645-.41.167-.28.218-.657.079-1.018l-.018-.045zM3 9.003h2v-6H3z" clip-rule="evenodd"/></svg>',"thumb-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11.202 4.069a1.506 1.506 0 0 0-2.438-1.651L5.5 5.542v8.46h4.922c1.081 0 2.058-.714 2.484-1.817l.944-3.394c.51-1.32-.362-2.788-1.656-2.788h-1.772zM4.5 6.003H2v8h2.5z"/></svg>',"thumb-up-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m11.204 4.069-.78 1.934h1.772c1.294 0 2.166 1.468 1.656 2.788l-.944 3.394c-.425 1.103-1.402 1.818-2.483 1.818H5V14H2V6h3.023l3.744-3.582a1.506 1.506 0 0 1 2.437 1.65m.755 7.797c-.302.738-.926 1.137-1.534 1.137H6.002L6.02 6.43l3.439-3.29a.506.506 0 0 1 .819.554L8.943 7.003h3.253c.24 0 .48.13.645.41.167.28.218.657.079 1.018l-.018.045zM3 7h2v6H3z" clip-rule="evenodd"/></svg>',thumbtack:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m8.91 2-1.2 3.594L2.364 7.09 5.274 10l-.707.706-1.687 1.687-.264.264-.09.09-.209.498L2 14l.755-.317.498-.21.09-.089.264-.264 1.687-1.687.706-.706 2.91 2.908 1.496-5.347L14 7.09z" clip-rule="evenodd"/></svg>',"thumbtack-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m5.273 10-2.91 2.91L2 14l1.09-.364L6 10.727l2.91 2.91 1.496-5.348L14 7.09 8.91 2l-1.2 3.594L2.364 7.09zm3.241-3.563-4.18 1.17 4.059 4.059 1.17-4.18 2.533-.845-2.737-2.737z" clip-rule="evenodd"/></svg>',trash:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11 2v1h3v1h-1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4H2V3h3V2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1M6 3V2h4v1zm1 3H6v6h1zm2 0h1v6H9z" clip-rule="evenodd"/></svg>',"trash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 6H6v6h1zm2 0h1v6H9z"/><path fill="currentColor" fill-rule="evenodd" d="M11 3V2a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v1H2v1h1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4h1V3zM6 2v1h4V2zm6 2v10H4V4z" clip-rule="evenodd"/></svg>',"universal-access":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M8 15.33A7.33 7.33 0 1 1 15.33 8 7.34 7.34 0 0 1 8 15.33M8 1.71a6.29 6.29 0 1 0 0 12.58A6.29 6.29 0 0 0 8 1.71M13.74 8A5.74 5.74 0 1 1 8 2.25 5.75 5.75 0 0 1 13.74 8M8 3.77a1.07 1.07 0 1 0 0 2.14 1.07 1.07 0 0 0 0-2.14M4.67 5.63c-.6-.14-.87.86-.32 1s1.79.43 2.57.55a11.25 11.25 0 0 1-.72 4.47.54.54 0 0 0 .85.65 6.9 6.9 0 0 0 .78-2.42c0-.07.31-.11.33 0 .11.768.322 1.518.63 2.23.3.65 1.31.26 1-.38a11.5 11.5 0 0 1-.76-4.58 21 21 0 0 0 2.41-.45.55.55 0 1 0-.2-1.08 11.47 11.47 0 0 1-6.57.01"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',unlink:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9.74 6.25c-.16-.17-.32-.3-.5-.43-.14-.09-.31-.1-.44 0l1.81 1.81c-.17-.5-.47-.98-.87-1.38m-1.1 3.51c-.07.15-.17.28-.29.4l-1.66 1.66s-.04.05-.07.07c-.72.67-1.85.63-2.52-.09s-.63-1.85.09-2.52l.32-.32c.1-.11.14-.27.09-.41-.14-.42-.22-.86-.24-1.3a.42.42 0 0 0-.12-.26.395.395 0 0 0-.56 0l-.92.92a3.76 3.76 0 0 0 0 5.32 3.76 3.76 0 0 0 5.32 0l1.66-1.67c.12-.12.23-.25.32-.38zm4.61-7h-.02a3.78 3.78 0 0 0-5.32 0L6.83 3.84l1.41 1.41 1.08-1.08c.68-.71 1.81-.74 2.52-.06s.74 1.81.06 2.52c-.02.03-.05.05-.07.07l-.32.32c-.11.11-.14.27-.09.41.13.4.21.81.23 1.23l.44.44c.09 0 .18-.05.24-.11l.92-.92a3.76 3.76 0 0 0 0-5.32zm.97 10.52-1.03 1.03-5.14-5.14c-.04.17-.12.33-.25.45l-.52.52c-.14.13-.35.15-.51.04-.18-.13-.35-.27-.5-.42-.74-.74-1.11-1.7-1.11-2.67 0-.24.02-.49.08-.73l-3.6-3.6 1.03-1.03z"/></svg>',unlock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 7V4a2 2 0 1 0-4 0v1H5V4a3 3 0 0 1 6 0v3h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm-3 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0" clip-rule="evenodd"/></svg>',"unlock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M10 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0v1h1V4a2 2 0 1 1 4 0m2 4v6H4V8z" clip-rule="evenodd"/></svg>',upload:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9.58 10.74V6.59a.31.31 0 0 1 .31-.3H12a.3.3 0 0 0 .21-.52l-4-4a.29.29 0 0 0-.42 0l-4 4a.3.3 0 0 0 .21.52h2.11a.31.31 0 0 1 .31.3v4.15a.3.3 0 0 0 .3.3h2.56a.3.3 0 0 0 .3-.3M14.33 14v-1a.29.29 0 0 0-.29-.3H2a.29.29 0 0 0-.29.3v1a.29.29 0 0 0 .29.29h12a.29.29 0 0 0 .33-.29"/></svg>',user:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6M6 9a4 4 0 0 0-4 4 1 1 0 0 0 1 1h10a1 1 0 0 0 1-1 4 4 0 0 0-4-4z" clip-rule="evenodd"/></svg>',"user-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M8 .62C3.95.61.66 3.9.65 7.95c0 4.05 3.28 7.34 7.33 7.35 4.04 0 7.33-3.26 7.35-7.3.02-4.05-3.25-7.36-7.3-7.38zm0 .75c3.64 0 6.59 2.96 6.58 6.6V8c0 1.35-.41 2.66-1.19 3.76a2.71 2.71 0 0 0-2.66-2.37H9.54c-.98.46-2.1.46-3.08 0H5.28c-1.36 0-2.5 1.02-2.67 2.37A6.5 6.5 0 0 1 1.42 8a6.59 6.59 0 0 1 6.55-6.63zM5 5.63c0-1.68 1.37-3.05 3.05-3.05s3.05 1.37 3.05 3.05-1.37 3.05-3.05 3.05H8c-1.66-.03-3-1.39-3-3.05"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',"user-group":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.15 4.12c-.81-.01-1.47.65-1.48 1.46 0 .82.65 1.47 1.46 1.48s1.47-.65 1.48-1.46-.65-1.47-1.46-1.48m-10.04.01a1.47 1.47 0 0 0-1.58 1.59c.06.71.62 1.28 1.34 1.34.81.07 1.52-.53 1.59-1.34.06-.81-.54-1.52-1.35-1.59m7.36.39c-.22-.84-.87-1.51-1.71-1.75-1.36-.41-2.8.36-3.22 1.72-.18.61-.13 1.27.14 1.85.41.9 1.33 1.48 2.32 1.45 1.41.01 2.56-1.14 2.57-2.55 0-.24-.03-.49-.1-.72m-.71 4h-.19c-.99.49-2.14.49-3.13 0h-.19c-1.46 0-2.64 1.18-2.64 2.64v2.69c1.23.93 2.74 1.47 4.39 1.47s3.17-.55 4.4-1.48v-2.68c0-1.46-1.18-2.64-2.64-2.64m5.52.25a7.3 7.3 0 0 1-1.65 3.91c-.08.1-.16.19-.25.28-.08.09-.17.18-.25.27v-.55h.03v-.72s.01-.07 0-.1v-.66c.01-1.25-.66-2.4-1.76-3 .27-.26.63-.41 1-.41h1.51c.63.01 1.17.41 1.37.98M2.86 11.16v1.52h.01v.55l-.28-.31c-.08-.08-.15-.16-.22-.24A7.24 7.24 0 0 1 .74 8.86c.16-.62.72-1.07 1.4-1.07h1.47c.37-.01.73.12 1.01.37-1.1.6-1.77 1.75-1.76 3"/></svg>',"user-lock":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.5 7a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5M5 8a4 4 0 0 0-4 4 1 1 0 0 0 1 1h7v-1.5a1.5 1.5 0 0 1 1.036-1.427c.109-.63.452-1.178.938-1.553A4 4 0 0 0 9 8z"/><path fill="currentColor" fill-rule="evenodd" d="M10.5 11h.5v-.5a1.5 1.5 0 0 1 3 0v.5h.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m2.75-.5v.5h-1.5v-.5a.75.75 0 0 1 1.5 0" clip-rule="evenodd"/></svg>',"user-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 5a2 2 0 1 1-4 0 2 2 0 0 1 4 0m1 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0m-8 8a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3zm-1 0a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4 1 1 0 0 1-1 1H3a1 1 0 0 1-1-1" clip-rule="evenodd"/></svg>',"user-pen-fancy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.5 7a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5m0-4C6.67 3 6 3.67 6 4.5S6.67 6 7.5 6 9 5.33 9 4.5 8.33 3 7.5 3m3.62 8.46-.22.54-.3.77s-.04.09-.06.13c-.03.04-.06.07-.1.1-.05.04-.1.07-.16.08L7.52 14l-.07-.07 1.45-1.45h.13c.15 0 .27-.06.36-.16a.6.6 0 0 0 .1-.15c.01-.02.02-.04.03-.07v-.02s.01-.05.01-.08v-.03c0-.28-.23-.5-.51-.5-.28.01-.5.24-.5.51v.14l-.76.75-.14.13-.55.55-.07-.07.16-.48.1-.29.24-.71.42-1.27c.05-.16.17-.28.32-.32l1.31-.52zm3.44-3.24-2.05 1.87-.7.64-.06.05-.32.29-1.52-1.52.28-.31.06-.06.64-.7 1.88-2.04c1.16-1.31 3.11.61 1.79 1.78"/><path fill="currentColor" fill-rule="evenodd" d="M9 8H6c-2.21 0-4 1.79-4 4 0 .55.45 1 1 1h3.11l.33-1H3c0-1.66 1.34-3 3-3h3.05l.83-.9C9.6 8.03 9.3 8 9 8" clip-rule="evenodd"/></svg>',"user-plus":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 3.33h-1.35V2c-.02-.18-.17-.33-.35-.33h-.65c-.18 0-.33.15-.35.33v1.33H10c-.18 0-.33.16-.33.34v.66c0 .18.15.33.33.34h1.3V6c.02.18.17.32.35.33h.65c.18 0 .33-.15.35-.33V4.67H14a.34.34 0 0 0 .32-.34v-.66a.34.34 0 0 0-.32-.34M9.28 9.77h-.2c-1.25.51-2.66.51-3.91 0H5a3.006 3.006 0 0 0-3.3 2.67v.74c.06.67.63 1.17 1.3 1.15h8.25c.69.06 1.3-.45 1.36-1.14v-.68a3 3 0 0 0-3.23-2.75h-.1zM7.13 3.7c1.46 0 2.64 1.17 2.65 2.63 0 1.46-1.17 2.64-2.63 2.65-1.46 0-2.64-1.17-2.65-2.63A2.65 2.65 0 0 1 7.13 3.7"/></svg>',"user-question-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.23 11.14c.86-.66 1.01-1.9.35-2.75s-1.9-1.01-2.75-.35a1.96 1.96 0 0 0 0 3.1c-.72.42-1.16 1.2-1.16 2.03v.8c0 .2.17.37.37.37h3.98c.2 0 .37-.17.37-.37v-.8c0-.83-.44-1.61-1.16-2.03M2.81 9.59c0-.67.55-1.22 1.22-1.22s1.22.55 1.22 1.22-.55 1.22-1.22 1.22-1.22-.55-1.22-1.22m2.83 4H2.41v-.42c0-.89.72-1.62 1.62-1.62s1.62.72 1.62 1.62v.42zm7.13-11.93H8c-.86 0-1.56.7-1.56 1.56v7.16c0 .21.17.37.37.37.08 0 .16-.03.22-.07l1.49-1.12h4.25c.86 0 1.56-.7 1.56-1.56V3.22c0-.86-.7-1.56-1.56-1.56m.82 6.33c0 .45-.37.82-.82.82H8.4a.4.4 0 0 0-.22.07l-1 .75V3.22c0-.45.37-.82.82-.82h4.77c.45 0 .82.37.82.82zm-2.8-.42c0 .23-.18.41-.41.41s-.41-.18-.41-.41.18-.41.41-.41.41.18.41.41m-.41-4.34c-.83 0-1.5.67-1.5 1.5 0 .23.18.41.41.41s.41-.18.41-.41c0-.38.31-.68.69-.68s.68.31.68.69-.31.68-.68.68c-.23 0-.41.18-.41.41v.44c0 .23.18.41.41.41s.41-.18.41-.41v-.09c.8-.23 1.26-1.06 1.04-1.85-.18-.65-.77-1.09-1.44-1.09z"/></svg>',"user-shield-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 8.92c-1.5 0-2.72-1.22-2.72-2.72S6.5 3.48 8 3.48s2.72 1.22 2.72 2.72S9.5 8.92 8 8.92m0-4.64a1.92 1.92 0 1 0 .001 3.841A1.92 1.92 0 0 0 8 4.281m4.97-1.84L8.56.78C8.2.65 7.81.65 7.45.78L3.03 2.43C2.41 2.66 2 3.26 2 3.92V8c0 3.82 4.23 6.47 5.52 7.2.15.08.31.13.48.13s.33-.04.48-.13C9.78 14.48 14 11.82 14 8V3.92c0-.66-.41-1.25-1.03-1.48M8.08 14.5c-.05.03-.12.03-.17 0-.49-.28-2.12-1.24-3.4-2.68.62-.82 1.94-1.39 3.47-1.39s2.84.61 3.49 1.4c-1.29 1.43-2.9 2.39-3.39 2.67M13.19 8c0 1.2-.51 2.28-1.22 3.22-.83-.91-2.34-1.59-4-1.59s-3.16.64-3.98 1.58c-.7-.93-1.2-2.01-1.2-3.2V3.93c0-.33.21-.62.51-.74l4.43-1.66c.09-.03.18-.05.27-.05s.19.02.27.05l4.42 1.66c.3.11.51.41.51.73V8z"/></svg>',users:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.25 3.335a2.5 2.5 0 1 0 0 4.33A3.5 3.5 0 0 1 6.5 5.5c0-.818.28-1.57.75-2.165M10 3a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m-5 9.2A3.2 3.2 0 0 1 8.2 9h3.6a3.2 3.2 0 0 1 3.2 3.2.8.8 0 0 1-.8.8H5.8a.8.8 0 0 1-.8-.8M5.48 9H4.2A3.2 3.2 0 0 0 1 12.2a.8.8 0 0 0 .8.8h2.387A1.8 1.8 0 0 1 4 12.2 4.19 4.19 0 0 1 5.48 9"/></svg>',"users-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.5 5.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0M10 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3" clip-rule="evenodd"/><path fill="currentColor" d="M4.2 9h1.28a4.2 4.2 0 0 0-.858 1H4.2a2.2 2.2 0 0 0-2.191 2h1.996a4 4 0 0 0-.005.2c0 .287.067.559.187.8H1.8a.8.8 0 0 1-.8-.8A3.2 3.2 0 0 1 4.2 9"/><path fill="currentColor" fill-rule="evenodd" d="M5 12.2A3.2 3.2 0 0 1 8.2 9h3.6a3.2 3.2 0 0 1 3.2 3.2.8.8 0 0 1-.8.8H5.8a.8.8 0 0 1-.8-.8m6.8-2.2a2.2 2.2 0 0 1 2.191 2H6.009A2.2 2.2 0 0 1 8.2 10z" clip-rule="evenodd"/><path fill="currentColor" d="M6 3c.455 0 .882.122 1.25.335a3.5 3.5 0 0 0-.5.865 1.5 1.5 0 1 0 0 2.6c.125.313.294.604.5.865A2.5 2.5 0 1 1 6 3"/></svg>',wallet:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm1 0h11v1H2zm9 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0" clip-rule="evenodd"/></svg>',"wallet-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11 9a1 1 0 1 1 2 0 1 1 0 0 1-2 0"/><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1zm0-9h11v1H2zm12 2H2v6h12z" clip-rule="evenodd"/></svg>'};const lt=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-icon-border-radius: Defines the border radius of icons. Default value is `50%`.\n */:host{display:inline-flex;vertical-align:middle}.mg-c-icon{color:currentcolor}.mg-c-icon[size=small],.mg-c-icon.mg-c-icon--size-small{width:var(--mg-b-size-12);height:var(--mg-b-size-12)}.mg-c-icon[size=small][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-small[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-16) - var(--mg-b-size-12))/2)}.mg-c-icon[size=medium],.mg-c-icon.mg-c-icon--size-medium{width:var(--mg-b-size-16);height:var(--mg-b-size-16)}.mg-c-icon[size=medium][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-medium[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-24) - var(--mg-b-size-16))/2)}.mg-c-icon[size=large],.mg-c-icon.mg-c-icon--size-large{width:var(--mg-b-size-20);height:var(--mg-b-size-20)}.mg-c-icon[size=large][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-large[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-32) - var(--mg-b-size-20))/2)}.mg-c-icon[size=xlarge],.mg-c-icon.mg-c-icon--size-xlarge{width:var(--mg-b-size-24);height:var(--mg-b-size-24)}.mg-c-icon[size=xlarge][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-xlarge[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-40) - var(--mg-b-size-24))/2)}.mg-c-icon[size=xxlarge],.mg-c-icon.mg-c-icon--size-xxlarge{width:var(--mg-b-size-32);height:var(--mg-b-size-32)}.mg-c-icon[size=xxlarge][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-xxlarge[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-48) - var(--mg-b-size-32))/2)}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-icon{color:var(--mg-b-color-app)}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-icon{color:var(--mg-b-color-blue)}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-icon{color:var(--mg-b-color-80)}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-icon{color:var(--mg-b-color-danger)}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-icon{color:var(--mg-b-color-info)}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-icon{color:var(--mg-b-color-success)}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-icon{color:var(--mg-b-color-warning)}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-app), white 80%))}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-blue), white 80%))}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-80), white 80%))}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-full{color:var(--mg-b-color-app);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-app), white 80%))}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-full{color:var(--mg-b-color-blue);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-blue), white 80%))}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-full{color:var(--mg-b-color-80);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-80), white 80%))}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-full{color:var(--mg-b-color-danger);background-color:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-full{color:var(--mg-b-color-info);background-color:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-full{color:var(--mg-b-color-success);background-color:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-full{color:var(--mg-b-color-warning);background-color:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-icon[class*=mg-c-icon--variant-]{overflow:visible;border-radius:var(--mg-c-icon-border-radius)}.mg-c-icon--spin{animation-duration:.75s;animation-iteration-count:infinite;animation-name:rotate}@keyframes rotate{to{transform:rotate(360deg)}}";const ct=lt;const ht=class{constructor(i){t(this,i);this.setDefaultVariantStyle=()=>{if(this.variantStyle===undefined)this.variantStyle="background"};this.renderIcon=t=>{this.element.shadowRoot.innerHTML=st[t];this.svg=this.element.shadowRoot.querySelector("svg");this.svg.setAttribute("aria-hidden","true");this.svg.setAttribute("focusable","false");this.svg.setAttribute("class",this.classCollection.join())};this.icon=undefined;this.size="medium";this.variant=undefined;this.variantStyle=undefined;this.spin=false;this.classCollection=new l(["mg-c-icon"])}validateIcon(t,i){if(!Object.keys(st).includes(t))throw new Error(`<mg-icon> prop "icon" must be one of: ${Object.keys(st).join(", ")}. Passed value: ${r(t)}.`);else{if(i!==undefined)this.classCollection.delete(`mg-c-icon--${i}`);this.classCollection.add(`mg-c-icon--${t}`);this.renderIcon(t)}}validateSize(t,i){if(!at.includes(t))throw new Error(`<mg-icon> prop "size" must be one of: ${at.join(", ")}. Passed value: ${r(t)}.`);else{if(i!==undefined)this.classCollection.delete(`mg-c-icon--size-${i}`);this.classCollection.add(`mg-c-icon--size-${t}`)}}validateVariant(t,i){if(t!==undefined){if(!ot.includes(t))throw new Error(`<mg-icon> prop "variant" must be one of: ${ot.join(", ")}. Passed value: ${r(t)}.`);else{this.setDefaultVariantStyle();if(i!==undefined)this.classCollection.delete(`mg-c-icon--variant-${i}`);this.classCollection.add(`mg-c-icon--variant-${t}`)}}}validateVariantStyle(t,i){if(t!==undefined){if(!rt.includes(t))throw new Error(`<mg-icon> prop "variantStyle" must be one of: ${rt.join(", ")}. Passed value: ${r(t)}.`);else{if(i!==undefined)this.classCollection.delete(`mg-c-icon--variant-style-${i}`);this.classCollection.add(`mg-c-icon--variant-style-${t}`)}}}handleSpin(t){if(t){this.classCollection.add("mg-c-icon--spin")}else{this.classCollection.delete("mg-c-icon--spin")}}componentWillLoad(){this.validateIcon(this.icon);this.validateSize(this.size);this.validateVariant(this.variant);this.validateVariantStyle(this.variantStyle);this.handleSpin(this.spin);this.renderIcon(this.icon)}componentWillUpdate(){this.svg.setAttribute("class",this.classCollection.join())}get element(){return n(this)}static get watchers(){return{icon:["validateIcon"],size:["validateSize"],variant:["validateVariant"],variantStyle:["validateVariantStyle"],spin:["handleSpin"]}}};ht.style=ct;const dt="/*!\n * @prop --mg-c-illustrated-message-spacing-vertical: Defines the vertical padding of the illustrated message. Default value: `--mg-b-size-40`.\n */.mg-c-illustrated-message{display:flex;max-width:calc(60*var(--mg-b-size-8));box-sizing:border-box;flex-direction:column;justify-content:center;padding:var(--mg-c-illustrated-message-spacing-vertical) var(--mg-b-size-16);margin:auto;gap:var(--mg-b-size-32) var(--mg-b-size-64);text-align:center}.mg-c-illustrated-message__illustration{max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration ::slotted([slot=illustration]){width:auto;max-width:100%;height:auto;max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration.mg-c-illustrated-message__illustration--small{max-height:var(--mg-b-size-64)}.mg-c-illustrated-message__illustration.mg-c-illustrated-message__illustration--small ::slotted([slot=illustration]){max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--horizontal{max-width:unset;flex-flow:row wrap;align-items:center}.mg-c-illustrated-message.mg-c-illustrated-message--horizontal .mg-c-illustrated-message__slots,.mg-c-illustrated-message.mg-c-illustrated-message--horizontal .mg-c-illustrated-message__illustration{max-width:calc(60*var(--mg-b-size-8))}.mg-c-illustrated-message__title ::slotted([slot=title]){margin:0;font-family:var(--mg-b-font-family) !important;font-size:var(--mg-b-font-size-h2) !important;font-weight:400 !important}.mg-c-illustrated-message__details ::slotted([slot=details]){margin:var(--mg-b-size-16) 0 0}";const gt=dt;const mt=class{constructor(i){t(this,i);this.size="medium";this.direction="vertical"}componentDidLoad(){const t=["h1","h2","h3","h4","h5","h6"];const i=this.element.querySelectorAll('[slot="illustration"]');if(!d(this.element.querySelector('[slot="title"]'),t)){throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${t.join(", ")}.`)}else if(i.length!==1){throw new Error("<mg-illustrated-message> Slotted illustration must be present and unique.")}i[0].setAttribute("aria-hidden","true")}render(){return i("div",{key:"475cdb177405fc41e5dde86d9a3884de5fb88bef",class:{"mg-c-illustrated-message":true,"mg-c-illustrated-message--horizontal":this.direction==="horizontal"}},i("div",{key:"0e007f09bcdcd85d50bd16ed37f9f4d399c14e28",class:{"mg-c-illustrated-message__illustration":true,"mg-c-illustrated-message__illustration--small":this.size==="small"}},i("slot",{key:"41190bb4bc5d13cecbf7b847c58af7975ffc0255",name:"illustration"})),i("div",{key:"c338cba5ecac003b1642800441139e497f3c3769",class:"mg-c-illustrated-message__slots"},i("div",{key:"804f5fc5a96d87d4e533d64eb80d275377dec0cf",class:"mg-c-illustrated-message__title"},i("slot",{key:"c5db8d1c61b0b85bc94905dc4b4bfe3ce44d48d1",name:"title"})),i("div",{key:"e5be01c4e24a60a039a072946d12275bf46b681d",class:"mg-c-illustrated-message__details"},i("slot",{key:"76eaf55622ed37c42f40ec832ec48ca6ab66e42c",name:"details"}))))}get element(){return n(this)}};mt.style=gt;const ut=[2,4,16,"full"];const pt=["input","label"];const vt="mg-c-input--fieldset";const ft="mg-c-input--disabled";const bt="mg-c-input--readonly";const wt="mg-c-input--vertical-list";const _t=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-input-border-width: Defines the width of the input border. Default value is `--mg-b-size-border`.\n * @prop --mg-c-input-border-radius: Defines the border radius of the input. Default value is `--mg-b-size-radius`.\n * @prop --mg-c-input-color-border: Defines the color of the input border. Default value is `rgb(181, 194, 201)`.\n * @prop --mg-c-input-placeholder-color-text: Defines the color of the placeholder text. Default value is `rgb(181, 194, 201)`.\n * @prop --mg-c-input-color-box-shadow-focus: Defines the shadow color of the input when focused. Default value is `rgba(0, 221, 255, 0.5)`.\n * @prop --mg-c-input-error-color-background: Defines the background color of the input error message. Default value is `color-mix(in srgb, var(--mg-b-color-danger), white 95%)`.\n * @prop --mg-c-input-toggle-border-radius-ratio: Defines the border radius ratio of the input toggle. Default value is `2`.\n * @prop --mg-c-input-check-size: Defines the size of the input check. Default value is `--mg-b-size-16`.\n */:host{display:block}.mg-c-input__input mg-icon,.mg-c-input__error mg-icon{display:flex}.mg-c-input{display:flex;min-height:var(--mg-b-size-min-height);align-items:flex-start}.mg-c-input__input-container{width:100%;min-height:var(--mg-b-size-min-height)}.mg-c-input__input-container mg-tooltip{display:inline-flex;width:var(--mg-b-size-16);height:var(--mg-b-size-16);margin-left:var(--mg-b-size-8)}@media print{.mg-c-input__input-container mg-tooltip{display:none}}.mg-c-input__input{display:flex;min-height:var(--mg-b-size-min-height);align-items:center;justify-content:start}.mg-c-input__input mg-tooltip{align-self:baseline;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__input ::slotted(.mg-c-input__button-toggle:disabled){opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input__title{display:flex;width:var(--mg-c-input-title-width, auto);flex-shrink:0;align-items:baseline;justify-content:flex-end;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);margin-right:var(--mg-c-input-title-horizontal-space, var(--mg-b-size-8));text-align:right}.mg-c-input__title slot[name=label]+mg-tooltip{margin-left:var(--mg-b-size-4)}.mg-c-input__title mg-icon{display:inline-flex;vertical-align:text-bottom}.mg-c-input__error{display:inline-block;padding:var(--mg-b-size-4) var(--mg-b-size-8);border-radius:var(--mg-b-size-radius);background:var(--mg-c-input-error-color-background);color:var(--mg-b-color-danger)}.mg-c-input__error ::slotted(*),.mg-c-input__help-text ::slotted(*){font-size:var(--mg-b-font-size-small);text-align:start}:host(:not(.mg-c-input--textarea)) .mg-c-input__input+.mg-c-input__error,:host(:not(.mg-c-input--textarea)) .mg-c-input__input+.mg-c-input__help-text{margin-top:var(--mg-b-size-4)}:host(.mg-c-input.mg-c-input--readonly) .mg-c-input__input mg-tooltip{margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}:host(.mg-c-input){display:flex;margin-bottom:var(--mg-c-input-margin-bottom, 0)}:host(.mg-c-input.mg-c-input--checkbox) .mg-c-input__input,:host(.mg-c-input.mg-c-input--radio) .mg-c-input__input{min-height:unset;align-items:flex-start}:host(.mg-c-input.mg-c-input--checkbox,.mg-c-input.mg-c-input--radio) .mg-c-input__input{min-height:unset}:host(.mg-c-input.mg-c-input--fieldset:not(.mg-c-input--checkbox-multi,.mg-c-input--readonly)) .mg-c-input__input-container mg-tooltip{margin-left:var(--mg-b-size-32)}:host(.mg-c-input.mg-c-input--label-on-top){flex-direction:column}:host(.mg-c-input.mg-c-input--label-on-top) .mg-c-input__title{width:100%;flex:0;justify-content:flex-start;margin-top:0;margin-right:0;margin-bottom:var(--mg-b-size-4);text-align:left}:host(.mg-c-input.mg-c-input--label-on-top) .mg-c-input__title ::slotted(mg-input-title){flex-shrink:1}@media screen and (max-width: 767px){:host(.mg-c-input){flex-direction:column}:host(.mg-c-input) .mg-c-input__title{width:100%;flex:0;justify-content:flex-start;margin-top:0;margin-right:0;margin-bottom:var(--mg-b-size-4);text-align:left}:host(.mg-c-input) .mg-c-input__title ::slotted(mg-input-title){flex-shrink:1}}";const xt=_t;const zt=class{constructor(e){t(this,e);this.slotLabel="label";this.slotError="error";this.slotHelpText="help-text";this.classInput="mg-c-input";this.classHasError="mg-c-input--has-error";this.classLabelOnTop="mg-c-input--label-on-top";this.renderTooltip=()=>i("mg-tooltip",{identifier:`${this.identifier}-tooltip`,message:this.tooltip},i("mg-icon",{icon:"info-circle"}));this.identifier=undefined;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.tooltip=undefined;this.tooltipPosition="input";this.required=false;this.errorMessage=undefined;this.helpText=undefined;this.ariaDescribedbyIDs=undefined;this.isFieldset=false;this.isReadonly=false;this.isDisabled=false;this.isVerticalList=false}watchIdentifier(t){if(!c(t)){throw new Error(`<mg-input> prop "identifier" is required and must be a string. Passed value: ${r(t)}.`)}else{this.helpTextId=`${this.identifier}-help-text`;this.helpTextErrorId=`${this.identifier}-error`}}watchLabelOnTop(t){if(t){this.element.classList.add(this.classLabelOnTop)}else{this.element.classList.remove(this.classLabelOnTop)}}watchLabelConfig(){if(this.labelHide&&this.labelOnTop){throw new Error('<mg-input> prop "labelOnTop" must not be paired with the prop "labelHide".')}}watchTooltipPosition(t){if(!pt.includes(t)){throw new Error(`<mg-input> prop "tooltipPosition" must be one of: ${pt.join(", ")}. Passed value: ${r(t)}.`)}}watchErrorMessage(t){var i;if(t!==undefined){this.element.classList.add(this.classHasError);this.renderErrorMessage()}else{this.element.classList.remove(this.classHasError);(i=this.errorMessageSlotElement)===null||i===void 0?void 0:i.remove();this.errorMessageSlotElement=undefined}}watchHelpText(t){var i;if(t&&!this.isReadonly){this.renderHelpText()}else{(i=this.helptextMessageSlotElement)===null||i===void 0?void 0:i.remove();this.helptextMessageSlotElement=undefined}}watchAriaDescribedbyIDs(){if(this.isReadonly)return;const t=new Set(this.ariaDescribedbyIDs);if(this.helpText!==undefined){this.renderHelpText();if(!t.has(this.helpTextId))t.add(this.helpTextId)}if(this.errorMessage!==undefined){this.renderErrorMessage();if(!t.has(this.helpTextErrorId))t.add(this.helpTextErrorId)}this.element.querySelectorAll('input,select,textarea,[role="switch"]').forEach((i=>{i.setAttribute("aria-describedby",Array.from(t).join(" "))}))}watchClass(){if(!this.element.classList.contains(this.classInput)){this.element.classList.add(this.classInput)}this.isFieldset=this.element.classList.contains(vt);this.isReadonly=this.element.classList.contains(bt);this.isDisabled=this.element.classList.contains(ft);this.isVerticalList=this.element.classList.contains(wt)}watchLabel(){if(!c(this.label)){throw new Error(`<mg-input> prop "label" is required and must be a string. Passed value: ${r(this.label)}.`)}else{this.watchAriaDescribedbyIDs();this.renderLabel()}}renderLabel(){let t=this.element.querySelector(`[slot=${this.slotLabel}]`);t===null||t===void 0?void 0:t.remove();t=document.createElement("mg-input-title");[["slot",this.slotLabel],["identifier",this.identifier],["readonly",this.isReadonly.toString()],["required",(this.required&&!this.isDisabled||false).toString()],["is-legend",this.isFieldset.toString()]].forEach((([i,e])=>{t.setAttribute(i,e)}));const i=document.createElement("span");i.classList.add("mg-c-input-title__text");i.textContent=this.label;t.appendChild(i);this.element.appendChild(t)}renderErrorMessage(){this.errorMessageSlotElement=this.element.querySelector(`[slot=${this.slotError}]`);if(this.errorMessageSlotElement===null){this.errorMessageSlotElement=document.createElement("div");this.errorMessageSlotElement.setAttribute("slot",this.slotError);this.element.appendChild(this.errorMessageSlotElement)}this.errorMessageSlotElement.setAttribute("id",this.helpTextErrorId);this.errorMessageSlotElement.innerHTML=this.errorMessage}renderHelpText(){this.helptextMessageSlotElement=this.element.querySelector(`[slot=${this.slotHelpText}]`);if(this.helptextMessageSlotElement===null){this.helptextMessageSlotElement=document.createElement("div");this.helptextMessageSlotElement.setAttribute("slot",this.slotHelpText);this.element.appendChild(this.helptextMessageSlotElement)}this.helptextMessageSlotElement.setAttribute("id",this.helpTextId);this.helptextMessageSlotElement.innerHTML=this.helpText}componentWillLoad(){this.watchIdentifier(this.identifier);this.watchLabel();this.watchClass();this.watchLabelOnTop(this.labelOnTop);this.watchLabelConfig();this.watchTooltipPosition(this.tooltipPosition);this.watchHelpText(this.helpText);this.watchErrorMessage(this.errorMessage)}componentDidLoad(){this.watchAriaDescribedbyIDs();if(!this.isReadonly&&!this.isFieldset&&this.element.querySelector(`#${this.identifier}`)===null){throw new Error(`<mg-input> "identifier" prop has no target for id: ${this.identifier}. Add an id to the targeted input.`)}}render(){const t=this.isFieldset&&!this.isReadonly;return i(e,{key:"de2441ca25015a07653e09f5cda0d9588062840d",class:this.element.classList.toString(),role:t?"group":undefined,"aria-labelledby":t?`${this.identifier}-title`:undefined},i("div",{key:"39cfcc83a6965e55310220f05334d3f364c502c1",class:{"mg-c-input__title":true,"mg-u-visually-hidden":this.labelHide}},i("slot",{key:"6413efe7254806a84e283cd15365dc0d78c18afe",name:this.slotLabel}),this.tooltip&&(this.tooltipPosition==="label"||this.labelOnTop)&&!this.labelHide&&this.renderTooltip()),i("div",{key:"7047fbaff93f273d134745e4d991eb91c28ef7f5",class:"mg-c-input__input-container"},i("div",{key:"3cb904222def3d4f68cf000ae292e0dc221a954c",class:"mg-c-input__input"},i("slot",{key:"552f670ef98a4ce43dbbf6bb54038152c87b6472"}),this.tooltip&&!this.labelOnTop&&(this.tooltipPosition==="input"||this.labelHide)&&this.renderTooltip()),this.helptextMessageSlotElement&&i("div",{key:"945232348ed6d14f6f018dcb8003ef46c68c6b44",class:"mg-c-input__help-text"},i("slot",{key:"782770bebf5600f75f59930b5d9665ef93a0404b",name:this.slotHelpText})),!this.isDisabled&&this.errorMessage&&i("div",{key:"96398b6849c7c26474037c1f783dc02d70f1ad65",class:"mg-c-input__error","aria-live":"assertive"},i("slot",{key:"dc7cf70f5145e790f246b9ac0955f24105927adc",name:this.slotError}))))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier","watchAriaDescribedbyIDs"],labelOnTop:["watchLabelOnTop","watchLabelConfig"],labelHide:["watchLabelConfig"],tooltipPosition:["watchTooltipPosition"],errorMessage:["watchErrorMessage","watchAriaDescribedbyIDs"],helpText:["watchHelpText","watchAriaDescribedbyIDs"],ariaDescribedbyIDs:["watchAriaDescribedbyIDs"],class:["watchClass","watchLabel"],label:["watchLabel"]}}};zt.style=xt;const yt=["checkbox","multi"];const kt={SELECTED:"selected",NOT_SELECTED:"not-selected"};const Mt=t=>i("ul",{class:"mg-c-input__input-group-container",role:"list","aria-describedby":t.displaySearchInput?"search-results":undefined,"aria-label":t.displaySearchInput?t.messages.searchResults:undefined,"aria-live":t.displaySearchInput?"polite":undefined,id:t.id},t.checkboxes.map((e=>{var n,a;return i("li",{key:e._id,class:{"mg-c-input__input-group":true,"mg-c-input__input-group--disabled":t.disabled||e.disabled}},i("input",{type:"checkbox",id:e._id,name:t.name,value:(n=e.value)===null||n===void 0?void 0:n.toString(),checked:Boolean(e.value),required:e.required,"aria-invalid":((a=t.invalid)===null||a===void 0?void 0:a.toString())||"false",disabled:t.disabled||e.disabled,indeterminate:e.value===null,onInput:e._handleInput,onBlur:e._handleBlur,onKeyDown:e._handleKeydown}),i("label",{htmlFor:e._id,onMouseEnter:e._handleMouseEnter,onMouseLeave:e._handleMouseLeave},e.title))})));const Ht=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--fieldset{padding:0;border:0;margin-right:0;margin-left:0}.mg-c-input.mg-c-input--fieldset input[type=radio],.mg-c-input.mg-c-input--fieldset input[type=checkbox]{width:var(--mg-c-input-check-size);height:var(--mg-c-input-check-size);flex-shrink:0;margin:calc((var(--mg-b-font-size)*var(--mg-b-line-height) - var(--mg-c-input-check-size))/2) var(--mg-b-size-8) 0 0}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group{display:flex;align-items:start}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group-container{display:flex;flex-wrap:wrap;padding:0;margin:0;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);gap:var(--mg-b-size-12) var(--mg-b-size-24);list-style:none}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group.mg-c-input__input-group--disabled label{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--fieldset.mg-c-input--vertical-list .mg-c-input__input-group-container,.mg-c-input.mg-c-input--fieldset.mg-c-input--checkbox-multi .mg-c-input__input-group-container{flex-direction:column}.mg-c-input.mg-c-input--fieldset.mg-c-input--label-on-top .mg-c-input__input-group-container{margin-top:var(--mg-b-size-8)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-group-container{padding:var(--mg-b-size-4) var(--mg-b-size-8);margin:0}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-container{display:flex;width:unset;flex:unset;flex-wrap:wrap;column-gap:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-container-list{display:flex;flex-flow:row wrap;padding:0;margin:0;gap:var(--mg-b-size-4);list-style:none}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__sections{max-height:80vh;padding-right:var(--mg-b-size-8);overflow-y:auto}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header{display:flex;min-height:var(--mg-b-size-min-height);flex-wrap:wrap;flex-wrap:nowrap;align-items:center;gap:var(--mg-b-size-8);text-wrap:nowrap}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-tootlip{display:inline-block;width:auto;height:auto;margin:0}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title{display:inline;margin:0;color:var(--mg-b-color-neutral-80)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title-label{font-size:var(--mg-b-font-size)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title--static.mg-c-input__section-header-title{margin:0 var(--mg-b-size-12)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-value{display:inline-flex;min-width:var(--mg-b-size-min-height);min-height:var(--mg-b-size-min-height);box-sizing:border-box;align-items:center;justify-content:center;padding:calc((var(--mg-b-size-min-height) - 2*var(--mg-b-size-border) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-12);border-radius:var(--mg-b-size-4);background-color:var(--mg-b-color-neutral-20);font-size:var(--mg-b-font-size)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-no-result{text-align:center}.mg-c-input.mg-c-input--checkbox-multi b{margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--disabled .mg-c-input__input-container b{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--with-values .mg-c-input__input-container{gap:var(--mg-b-size-4)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--search-mode .mg-c-input__content{display:flex;width:calc(var(--mg-b-size-floating-element-max-width) - var(--mg-b-size-16));height:calc(50*var(--mg-b-size-8));flex-direction:column;gap:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi:not(.mg-c-input--label-on-top) mg-tooltip:not(.mg-c-input__section-header-tootlip){margin-left:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi mg-popover{--mg-c-card-spacing:var(--mg-b-size-8)}.mg-c-input.mg-c-input--readonly ul{display:flex;min-height:var(--mg-b-font-size);flex-flow:column wrap;padding:0;margin:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) 0 0;list-style:none;row-gap:var(--mg-b-size-8)}";const Ct=Ht;const Vt=t=>Array.isArray(t)&&t.every((t=>typeof t==="object"&&typeof t.title==="string"&&(t.value===null||typeof t.value==="boolean")&&t.value!==undefined));const Lt=class{constructor(e){t(this,e);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.hasDisplayedError=false;this.mode="custom";this.baseClassName="mg-c-input--checkbox";this.classTypeMulti="mg-c-input--checkbox-multi";this.classWithValues="mg-c-input--with-values";this.classSearchMode="mg-c-input--search-mode";this.multiStart=5;this.searchStart=10;this.hasOpenedPopover=false;this.handleInput=t=>{this.updateCheckboxItems("value",Boolean(t.target.checked),(i=>i._id===t.target.id));this.updateValues();this.checkValidity()};this.handleKeydown=t=>{var i;if(t.key==="Tab"&&((i=this.mgPopover)===null||i===void 0?void 0:i.display)){if(Boolean(this.searchInput)&&t.shiftKey&&this.searchInput.id===t.target.id){this.mgPopover.display=false;return}const i=Array.from(this.element.shadowRoot.querySelectorAll("input")).filter((t=>!t.hasAttribute("disabled"))).map((({id:t})=>t));const e=i.findIndex((i=>i===t.target.id));if(e+1>=i.length&&!t.shiftKey||e===0&&t.shiftKey&&this.searchInput===undefined)this.mgPopover.display=false}};this.handleBlur=t=>{if(this.handlerInProgress==="mouseenter"){t.preventDefault();return}this.handlerInProgress="blur";this.checkValidity();this.setErrorMessage();this.handlerInProgress=undefined};this.handleSearchChange=t=>{this.searchValue=t.detail;t.stopPropagation()};this.handleMgPopoverDisplayChange=t=>{this.hasOpenedPopover=t.detail;this.setButtonTextKey();if(!t.detail){this.searchValue="";Array.from(this.element.shadowRoot.querySelectorAll("mg-input-checkbox-paginated")).forEach((t=>{t.currentPage=1}));this.checkValidity()}};this.handleMassAction=t=>{const i=this.getDisplayItems();i.forEach((i=>{i.value=t.detail!==kt.SELECTED}));this.updateValues()};this.handleMouseEnter=()=>{this.handlerInProgress="mouseenter"};this.handleMouseLeave=()=>{this.handlerInProgress=undefined};this.updateValues=()=>{this.value=this.checkboxItems.map((t=>{delete t._handleBlur;delete t._handleInput;delete t._handleKeydown;delete t._handleMouseEnter;delete t._handleMouseLeave;delete t._id;return t}))};this.hasInvalidInput=()=>Array.from(this.element.shadowRoot.querySelectorAll('input[type="checkbox"]')).some((t=>!t.disabled&&!t.checkValidity()));this.updateSearchResults=()=>{this.searchResults=this.checkboxItems.filter((t=>g(t.title).includes(g(this.searchValue))))};this.validateRequired=()=>!this.required||this.checkboxItems.some((({value:t})=>t));this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||!this.hasInvalidInput()&&this.validateRequired())};this.setButtonTextKey=()=>{if(this.hasOpenedPopover)return;let t="editButton";if(this.disabled)t="showButton";else if(this.getSelectedItems().length<1)t="selectButton";this.selectValuesButtonKey=t};this.getSelectValuesButtonMessage=()=>{if(this.selectValuesButtonKey==="editButton"&&c(this.editButtonMessage)){return this.editButtonMessage}else if(this.selectValuesButtonKey==="showButton"&&c(this.showButtonMessage)){return this.showButtonMessage}else if(this.selectValuesButtonKey==="selectButton"&&c(this.selectButtonMessage)){return this.selectButtonMessage}else{return this.messages.input.checkbox[this.selectValuesButtonKey]}};this.setErrorMessage=(t=true,i)=>{this.errorMessage=undefined;if(t&&!this.valid){if(i!==undefined)this.errorMessage=i;else if(!this.validateRequired())this.errorMessage=this.messages.errors.required}};this.getMgPopoverIdentifier=()=>`${this.identifier}-input-mg-popover`;this.getDisplayItems=()=>this.searchValue.length>0?this.searchResults:this.checkboxItems;this.getSelectedItems=()=>this.checkboxItems.filter((({value:t})=>t));this.renderReadonly=t=>this.inputVerticalList?i("ul",{class:"mg-c-input__readonly-value"},t.map((t=>i("li",{key:t},i("b",null,t))))):i("b",{class:"mg-c-input__readonly-value"},t.join(", "));this.renderMgInputCheckboxList=()=>i(Mt,{checkboxes:this.checkboxItems,displaySearchInput:this.displaySearchInput,messages:this.messages.input.checkbox,id:"checkboxes-list",disabled:this.disabled,name:this.name,invalid:this.invalid});this.value=undefined;this.type=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.inputVerticalList=false;this.required=false;this.readonly=false;this.displaySelectedValues=undefined;this.disabled=false;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.editButtonMessage=undefined;this.showButtonMessage=undefined;this.selectButtonMessage=undefined;this.classCollection=new l([this.baseClassName,vt]);this.errorMessage=undefined;this.checkboxItems=[];this.displaySearchInput=undefined;this.searchValue="";this.searchResults=[];this.selectValuesButtonKey="editButton"}validateValue(t){if(Vt(t)){this.checkboxItems=t.map(((t,i)=>Object.assign(Object.assign({},t),{_id:`${this.identifier}_${i}`,_handleInput:this.handleInput.bind(this),_handleBlur:this.handleBlur.bind(this),_handleKeydown:this.handleKeydown.bind(this),_handleMouseEnter:this.handleMouseEnter.bind(this),_handleMouseLeave:this.handleMouseLeave.bind(this)})));this.valueChange.emit(t)}else{throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${r(t)}.`)}}validateType(t){if(t!==undefined&&!yt.includes(t)){throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${r(t)}.`)}else if(t===undefined){this.mode="auto";this.type=yt[0]}else if(t==="multi"){this.classCollection.add(this.classTypeMulti);this.element.dataset.mgPopoverGuard=this.getMgPopoverIdentifier()}else{this.classCollection.delete(this.classTypeMulti)}}watchInputVerticalList(t){if(t)this.classCollection.add(wt);else this.classCollection.delete(wt)}watchReadonly(t){if(t)this.classCollection.add(bt);else this.classCollection.delete(bt)}watchDisplaySelectedValues(t){if(t)this.classCollection.add(this.classWithValues);else this.classCollection.delete(this.classWithValues)}handleValidityChange(t,i,e){if(e!=="readonly")this.updateCheckboxItems(e,t);this.checkValidity();if(this.hasDisplayedError){this.hasDisplayedError=e!=="required";this.setErrorMessage(this.hasDisplayedError)}this.setButtonTextKey()}validateDisabled(t){if(t)this.classCollection.add(ft);else this.classCollection.delete(ft)}validateCheckboxItems(t){if(this.mode==="auto")this.type=t.length>this.multiStart?"multi":"checkbox";this.displaySearchInput=this.type==="multi"&&t.length>this.searchStart;if(this.displaySearchInput)this.updateSearchResults();this.setButtonTextKey()}watchDisplaySearchInput(t){if(t)this.classCollection.add(this.classSearchMode);else this.classCollection.delete(this.classSearchMode)}validateSearchValue(){this.updateSearchResults()}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,i){if(typeof t!=="boolean"){throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean.')}else if(!c(i)){throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(undefined,t?undefined:i);this.hasDisplayedError=this.invalid}}setValidity(t){const i=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==i)this.inputValid.emit(this.valid)}updateCheckboxItems(t,i,e){this.checkboxItems=this.checkboxItems.map((n=>{if(typeof e==="function"&&e(n)||e===undefined)n[t]=i;return n}))}componentWillLoad(){this.messages=s(this.element).messages;this.validateType(this.type);this.validateValue(this.value);this.validateDisabled(this.disabled);this.watchReadonly(this.readonly);this.watchInputVerticalList(this.inputVerticalList);this.watchDisplaySelectedValues(this.displaySelectedValues);this.watchDisplaySearchInput(this.displaySearchInput);return setTimeout((()=>{this.checkValidity()}),0)}componentDidLoad(){var t,i;if(!this.readonly){this.searchInput=(t=this.element.shadowRoot.querySelector("mg-input-text"))===null||t===void 0?void 0:t.shadowRoot.querySelector("input");(i=this.searchInput)===null||i===void 0?void 0:i.addEventListener("keydown",this.handleKeydown)}}renderCheckboxBySection(t){const[e,n]=t.reduce(((t,i)=>{t[i.value?0:1].push(i);return t}),[[],[]]);const a={readonly:this.readonly,disabled:this.disabled,identifier:this.identifier};const o=[Object.assign(Object.assign({},a),{checkboxes:e,messages:this.messages.input.checkbox.sections.selected}),Object.assign(Object.assign({},a),{checkboxes:n,messages:this.messages.input.checkbox.sections.notSelected})];return o.filter((t=>t.checkboxes.length)).map((t=>i("mg-input-checkbox-paginated",Object.assign({},t,{"onMass-action":this.handleMassAction,key:t.messages}))))}renderCheckboxMulti(){const t=this.getSelectedItems().length;const e=this.getDisplayItems();return i("div",{class:"mg-c-input__input-container"},i("mg-popover",{arrowHide:true,identifier:this.getMgPopoverIdentifier(),display:this.hasOpenedPopover,"onDisplay-change":this.handleMgPopoverDisplayChange,ref:t=>{if(t!==null)this.mgPopover=t}},i("mg-button",{variant:"secondary","aria-describedby":`${this.identifier}-title`},i("mg-icon",{icon:"list"}),this.getSelectValuesButtonMessage()),i("div",{slot:"content",class:"mg-c-input__content"},this.displaySearchInput?[i("mg-input-text",{key:"input-search",identifier:`${this.identifier}-input-search`,icon:"magnifying-glass",type:"search",placeholder:this.messages.input.checkbox.label,label:this.messages.input.checkbox.label,mgWidth:"full",value:this.searchValue,labelHide:true,characterLeftHide:true,name:"q","onValue-change":this.handleSearchChange,"aria-controls":"search-results items-list"}),i("p",{key:"search-results",role:"status",class:"mg-u-visually-hidden",id:"search-results"},`${e.length} ${this.messages.input.checkbox[e.length>0?"results":"result"]}`),i("div",{key:"sections-container",class:"mg-c-input__sections"},this.renderCheckboxBySection(e))]:i(Mt,{checkboxes:e,displaySearchInput:this.displaySearchInput,messages:this.messages.input.checkbox,id:"checkboxes-list",disabled:this.disabled,name:this.name,invalid:this.invalid}),this.displaySearchInput&&e.length===0&&i("p",{class:"mg-c-input__input-no-result"},this.messages.input.checkbox.noResult))),this.displaySelectedValues?t>0&&i("ul",{role:"list",class:"mg-c-input__input-container-list"},this.getSelectedItems().map((({title:t})=>i("li",{class:"mg-c-input__input-value",key:t},t)))):i("b",null,this.messages.input.checkbox[t>1?"selectedValues":"selectedValue"].replace("{nb}",t)))}render(){let t;const e=this.value.filter((({value:t})=>t)).map((({title:t})=>t));if(this.readonly){t=this.renderReadonly(e)}else if(this.type==="checkbox"){t=this.renderMgInputCheckboxList()}else{t=this.renderCheckboxMulti()}return i("mg-input",{key:"2fb4ad15854041720f0810f0bcb1897f8f441f07",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:!this.readonly?this.required:undefined,tooltip:this.tooltip,tooltipPosition:this.readonly&&e.length===0?"label":this.tooltipPosition,helpText:!this.readonly?this.helpText:undefined,errorMessage:!this.readonly?this.errorMessage:undefined},t)}get element(){return n(this)}static get watchers(){return{value:["validateValue"],type:["validateType"],inputVerticalList:["watchInputVerticalList"],readonly:["watchReadonly","handleValidityChange"],displaySelectedValues:["watchDisplaySelectedValues"],required:["handleValidityChange"],disabled:["handleValidityChange","validateDisabled"],checkboxItems:["validateCheckboxItems"],displaySearchInput:["watchDisplaySearchInput"],searchValue:["validateSearchValue"]}}};Lt.style=Ct;const Bt=class{constructor(i){t(this,i);this.massAction=a(this,"mass-action",7);this.offset=10;this.massActionHandler=()=>{this.massAction.emit(this.sectionKind)};this.handleToggleClick=()=>{this.expanded=!this.expanded};this.getArrayRange=(t,i,e)=>t.slice(i,e);this.getPageCount=t=>(t===null||t===void 0?void 0:t.length)>0?Math.ceil(t.length/this.offset):0;this.handleCurrentPageChange=t=>{this.currentPage=Number(t.detail)};this.readonly=undefined;this.disabled=undefined;this.name=undefined;this.invalid=undefined;this.currentPage=1;this.checkboxes=[];this.messages=undefined;this.expanded=true}watchCheckboxes(t,i){const e=this.getPageCount(t);const n=this.getPageCount(i);if(e===1||e!==0&&this.currentPage===0){this.currentPage=1}else if(n===this.currentPage&&e<this.currentPage){this.currentPage--}this.sectionKind=t[0].value?kt.SELECTED:kt.NOT_SELECTED}getFromToIndexes(){const t=this.currentPage===1;const i=t?0:(this.currentPage-1)*this.offset;const e=t?this.offset:this.currentPage*this.offset;return[i,e]}componentWillLoad(){this.watchCheckboxes(this.checkboxes)}render(){const t=t=>i("em",{key:"05d577bded8e2602d1dedf9a36f695904d491242",class:"mg-c-input__section-header-title-label"},`${this.messages[t.length>1?"titlePlurial":"title"]} (${t.length})`);const[n,a]=this.getFromToIndexes();const o=`items-${this.sectionKind}-container`;return i(e,{key:"49b95a0882cc475aab4a810ccd8f292d83b59a9a",hidden:this.checkboxes.length<1},i("div",{key:"2db5103f9784add1effb7a5dcafa8f8196601d14",class:"mg-c-input__section-header"},this.sectionKind===kt.SELECTED?i("mg-button",{variant:"flat",onClick:this.handleToggleClick,"aria-controls":o,"aria-expanded":this.expanded.toString()},i("mg-icon",{icon:this.expanded?"chevron-up":"chevron-down",size:"small"}),i("span",{class:"mg-c-input__section-header-title"},t(this.checkboxes))):i("p",{class:"mg-c-input__section-header-title mg-c-input__section-header-title--static"},t(this.checkboxes)),(this.sectionKind===kt.SELECTED&&this.expanded||this.sectionKind===kt.NOT_SELECTED)&&i("mg-tooltip",{key:"1bf161092691a606697a543de71e78c574b0dea0",class:"mg-c-input__section-header-tootlip",message:this.messages.tooltip},i("mg-button",{key:"3f9090d137c2ea967e098b06a4ed2bd36da34267",variant:"link",onClick:this.massActionHandler},this.messages.action)),this.expanded&&this.getPageCount(this.checkboxes)>1&&i("mg-pagination",{key:"search-pagination",totalPages:this.getPageCount(this.checkboxes),currentPage:this.currentPage,"onCurrent-page-change":this.handleCurrentPageChange,hideNavigationLabels:true,hidePageCount:true,identifier:`input-checkbox-pagination-${this.sectionKind}`})),i("div",{key:"6b405d35f0ffba82352dbf1a9a1e9abed274b5f2",hidden:!this.expanded,id:o,class:"mg-c-input__section-content"},i(Mt,{key:"d3ef36cc9431352bedff1de8fa5f1cfc8070bfa5",checkboxes:this.getArrayRange(this.checkboxes,n,a),displaySearchInput:true,messages:this.messages,id:`items-${this.sectionKind}`,disabled:this.disabled,name:this.name,invalid:this.invalid})))}static get watchers(){return{checkboxes:["watchCheckboxes"]}}};const Dt=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}";const $t=Dt;const Et=class{constructor(i){t(this,i);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.hasDisplayedError=false;this.isValidPattern=t=>c(t)&&m.test(t);this.formatHelpText=t=>{const i="{defaultHelpText}";let e=c(t)?t:this.messages.input.date.helpText;if(e.includes(i))e=e.replace(i,this.formatHelpText(this.messages.input.date.helpText));return e.replace("{pattern}",this.renderPattern()).replace("{date}",u(p(new Date("2023-12-24")),this.systemLocale))};this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.handleKeyDown=t=>{if(["Delete","Backspace"].includes(t.key)){t.preventDefault();this.value="";this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}}};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity()&&(["",undefined].includes(this.value)||this.isValidPattern(this.value)))};this.getInputError=()=>{var t;let i=null;if(this.input.validity.valueMissing){i="required"}else if(this.value&&!this.isValidPattern(this.value)){i="badInput"}else if((this.input.validity.rangeUnderflow||this.input.validity.rangeOverflow)&&((t=this.min)===null||t===void 0?void 0:t.length)>0&&this.max!=="9999-12-31"){i="minMax"}else if(this.input.validity.rangeUnderflow){i="min"}else if(this.input.validity.rangeOverflow){i="max"}return i};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){const i=this.getInputError();if(t!==undefined){this.errorMessage=t}else if(i==="required"){this.errorMessage=this.messages.errors[i]}else if(["min","max","minMax"].includes(i)){this.errorMessage=this.messages.errors.date[i].replace("{min}",u(this.min,this.systemLocale)).replace("{max}",u(this.max,this.systemLocale))}else{this.errorMessage=this.messages.errors.date.badInput.replace("{pattern}",this.renderPattern())}}};this.renderPattern=()=>{let t=v(this.systemLocale);for(const i in this.messages.input.date.pattern){t=t.replace(i,this.messages.input.date.pattern[i])}return`<span aria-hidden="true">${t}</span><span class="mg-u-visually-hidden">${[...t].join(" ")}</span>`};this.value=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.required=false;this.readonly=false;this.min=undefined;this.max="9999-12-31";this.disabled=false;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.classCollection=new l(["mg-c-input--date"]);this.errorMessage=undefined}validateValue(t){if(t==="")t=null;if(t&&!c(t)){throw new Error(`<mg-input-date> props 'value' must be a valid string. Passed value: ${r(t)}.`)}else if([null,undefined].includes(t)||this.isValidPattern(t)){this.valueChange.emit(t)}else{console.error("<mg-input-date> props 'value' doesn't match pattern: 'yyyy-mm-dd'.")}}watchReadonly(t){if(t)this.classCollection.add(bt);else this.classCollection.delete(bt)}validateMinMax(t){if(t&&!this.isValidPattern(t)){throw new Error(`<mg-input-date> props 'min/max' doesn't match pattern: 'yyyy-mm-dd'. Passed value: ${r(t)}.`)}}handleValidityChange(t,i,e){if(this.input!==undefined){this.input[e]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(ft);else this.classCollection.delete(ft)}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,i){if(typeof t!=="boolean"){throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean.')}else if(!c(i)){throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:i);this.hasDisplayedError=this.invalid}}setValidity(t){const i=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==i)this.inputValid.emit(this.valid)}componentWillLoad(){const t=s(this.element);this.locale=t.locale;this.messages=t.messages;this.systemLocale=Intl.DateTimeFormat().resolvedOptions().locale;this.validateValue(this.value);this.validateMinMax(this.min);this.validateMinMax(this.max);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return i("mg-input",{key:"38bcc2503040b03e17e49f3cb1ac27209aa50a1b",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&["",undefined].includes(this.value)?"label":this.tooltipPosition,helpText:this.formatHelpText(this.helpText),errorMessage:this.errorMessage},this.readonly?this.value&&i("b",{class:"mg-c-input__readonly-value"},u(this.value,this.locale)):i("input",{type:"date",class:"mg-c-input__box",min:this.min,max:this.max,value:this.value,id:this.identifier,name:this.name,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>{if(t!==null)this.input=t}}))}get element(){return n(this)}static get watchers(){return{value:["validateValue"],readonly:["watchReadonly","handleValidityChange"],min:["validateMinMax","handleValidityChange"],max:["validateMinMax","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"]}}};Et.style=$t;const At=["decimal","integer"];const qt=["none","number","currency"];const Tt=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-2 .mg-c-input__box,.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left{max-width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-4 .mg-c-input__box,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left{max-width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-16 .mg-c-input__box,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{max-width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%;max-width:100%}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-2 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-2 .mg-c-input__with-character-left{max-width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-4 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-4 .mg-c-input__with-character-left{max-width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-16 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-16 .mg-c-input__with-character-left{max-width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-full .mg-c-input__box{width:100%;max-width:100%}.mg-c-input.mg-c-input--label-on-top .mg-c-input__box{width:auto}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input .mg-c-input__box{width:auto;text-align:var(--mg-c-input-text-align, right)}";const Pt=Tt;const It=class{constructor(e){t(this,e);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.hasDisplayedError=false;this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.hasFocus=true};this.handleBlur=()=>{if(this.value==="-")this.value="";this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined;this.hasFocus=false}))};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.getInputError()===null)};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){const i=this.getInputError();if(t!==undefined){this.errorMessage=t}else if(i==="required"){this.errorMessage=this.messages.errors[i]}else{this.errorMessage=this.messages.errors.numeric[i].replace("{min}",`${this.formatValue(this.min)}`).replace("{max}",`${this.formatValue(this.max)}`)}}};this.getInputError=()=>{let t=null;const i=t=>!t.some((t=>[null,undefined].includes(t)));if(!this.input.checkValidity()&&this.input.validity.valueMissing){t="required"}else if(i([this.min,this.numericValue])&&this.numericValue<this.min&&this.max===undefined){t="min"}else if(i([this.max,this.numericValue])&&this.numericValue>this.max&&this.min===undefined){t="max"}else if(i([this.min,this.max,this.numericValue])&&(this.numericValue<this.min||this.numericValue>this.max)){t="minMax"}return t};this.formatValue=t=>{switch(this.format){case"number":return b(t,this.locale,this.type==="decimal"?this.decimalLength:undefined);case"currency":return f(t,this.locale,this.currency);case"none":return t.toString()}};this.validateAppendSlot=()=>{const t=this.element.querySelector('[slot="append-input"]');if(t!==null){if(t.nodeName==="MG-BUTTON"){this.classCollection.add("mg-c-input--is-input-group-append")}else{this.classCollection.add("mg-c-input--is-append-input-slot-content");this.slotContent=t.textContent}}};this.renderReadonly=()=>this.slotContent!==undefined?i("span",{class:"mg-c-input__readonly-value"},i("b",null,this.readonlyValue),this.slotContent):i("b",{class:"mg-c-input__readonly-value"},this.readonlyValue);this.value=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.placeholder=undefined;this.required=false;this.readonly=false;this.max=undefined;this.min=undefined;this.disabled=false;this.mgWidth=undefined;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.type="decimal";this.format="number";this.currency="EUR";this.integerLength=13;this.decimalLength=2;this.valid=undefined;this.invalid=undefined;this.classCollection=new l(["mg-c-input--numeric"]);this.errorMessage=undefined;this.hasFocus=undefined}validateValue(t){if(typeof t==="string"){const[i,e=""]=t.replace("-","").split(/[.,]/);const n=this.type==="integer"?/^-?\d+$/:/^-?\d+(?:[.,]\d*)?$/;if(this.isValidValue(t,n,i,e)){this.storedValue=t}else{t=this.handleInvalidValue()}this.updateValues(t)}}watchReadonly(t){if(t)this.classCollection.add(bt);else this.classCollection.delete(bt)}handleValidityChange(t,i,e){if(this.input!==undefined){this.input[e]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(ft);else this.classCollection.delete(ft)}watchMgWidth(t){ut.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validateType(t){if(!At.includes(t)){throw new Error(`<mg-input-numeric> prop "type" must be one of: ${At.join(", ")}. Passed value: ${r(t)}.`)}}watchFormat(t){if(!qt.includes(t)){throw new Error(`<mg-input-numeric> prop "format" must be one of: ${qt.join(", ")}. Passed value: ${r(t)}.`)}}validateIntegerLength(t){if(t<1){throw new Error(`<mg-input-numeric> prop "integer-length" must be a positive number. Passed value: ${r(t)}.`)}}validateDecimalLength(t){if(t<1){throw new Error(`<mg-input-numeric> prop "decimal-length" must be a positive number, consider using prop "type" to "integer" instead. Passed value: ${r(t)}.`)}}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,i){if(typeof t!=="boolean"){throw new Error('<mg-input-numeric> method "setError()" param "valid" must be a boolean.')}else if(!c(i)){throw new Error('<mg-input-numeric> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:i);this.hasDisplayedError=this.invalid}}setValidity(t){const i=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==i)this.inputValid.emit(this.valid)}isValidValue(t,i,e,n){return["","-"].includes(t)||i.exec(t)!==null&&e.length<=this.integerLength&&n.length<=(this.type==="integer"?0:this.decimalLength)}handleInvalidValue(){var t;return(t=this.storedValue)!==null&&t!==void 0?t:null}updateValues(t){this.value=t;if(this.input!==undefined)this.input.value=this.value;this.numericValue=!["",null].includes(this.value)?parseFloat(this.value.replace(",",".")):null;this.valueChange.emit(this.numericValue);this.readonlyValue=this.numericValue!==null?this.formatValue(this.numericValue):""}displayValue(){return this.hasFocus?this.value:this.readonlyValue}componentWillLoad(){const t=s(this.element);this.locale=t.locale;this.messages=t.messages;this.watchFormat(this.format);this.validateType(this.type);this.validateIntegerLength(this.integerLength);this.validateDecimalLength(this.decimalLength);this.validateValue(this.value);this.validateAppendSlot();this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchMgWidth(this.mgWidth);return setTimeout((()=>{this.checkValidity()}),0)}render(){return i("mg-input",{key:"9b48fe7bf2a16f084ebddc050d90938c5d4e4b23",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&this.renderReadonly():[i("input",{key:"input",type:"text",class:"mg-c-input__box mg-c-input__box--width",value:this.displayValue(),id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),i("slot",{key:"slot",name:"append-input"})])}get element(){return n(this)}static get watchers(){return{value:["validateValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],min:["handleValidityChange"],max:["handleValidityChange"],mgWidth:["watchMgWidth"],type:["validateType"],format:["watchFormat"],integerLength:["validateIntegerLength"],decimalLength:["validateDecimalLength"]}}};It.style=Pt;const Ot=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-2 .mg-c-input__box,.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left{max-width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-4 .mg-c-input__box,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left{max-width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-16 .mg-c-input__box,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{max-width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%;max-width:100%}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-2 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-2 .mg-c-input__with-character-left{max-width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-4 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-4 .mg-c-input__with-character-left{max-width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-16 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-16 .mg-c-input__with-character-left{max-width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-full .mg-c-input__box{width:100%;max-width:100%}.mg-c-input.mg-c-input--label-on-top .mg-c-input__box{width:auto}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input.mg-c-input--password .mg-c-input__input-icon{color:var(--mg-b-color-dark)}.mg-c-input.mg-c-input--password .mg-c-input__input-group{position:relative;flex-grow:1}.mg-c-input.mg-c-input--password .mg-c-input__append-button{position:absolute;right:0}.mg-c-input.mg-c-input--password .mg-c-input__box{padding-right:calc(var(--mg-b-size-min-height) + var(--mg-b-size-8))}";const jt=Ot;const St=class{constructor(i){t(this,i);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.hasDisplayedError=false;this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.toggleDisplayPassword=()=>{this.displayPassword=!this.displayPassword};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.value=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.placeholder=undefined;this.maxlength=undefined;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.classCollection=new l(["mg-c-input--password"]);this.errorMessage=undefined;this.displayPassword=false}handleValue(t){this.valueChange.emit(t)}watchReadonly(t){if(t)this.classCollection.add(bt);else this.classCollection.delete(bt)}handleValidityChange(t,i,e){if(this.input!==undefined){this.input[e]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(ft);else this.classCollection.delete(ft)}watchMgWidth(t){ut.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,i){if(typeof t!=="boolean"){throw new Error('<mg-input-password> method "setError()" param "valid" must be a boolean.')}else if(!c(i)){throw new Error('<mg-input-password> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:i);this.hasDisplayedError=this.invalid}}setValidity(t){const i=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==i)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=s(this.element).messages;this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchMgWidth(this.mgWidth);return setTimeout((()=>{this.checkValidity()}),0)}render(){return i("mg-input",{key:"6459a70869ba217a29ad57b79aac2e5bf2aaddfb",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value!==undefined&&i("b",{class:"mg-c-input__readonly-value"},"•".repeat(this.value.length)):i("span",{class:"mg-c-input__input-group"},i("input",{type:this.displayPassword?"text":"password",class:"mg-c-input__box mg-c-input__box--width",value:this.value,id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,disabled:this.disabled,required:this.required,maxlength:this.maxlength,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),i("mg-button",{label:this.messages.input.password[this.displayPassword?"hide":"display"],disabled:this.disabled,variant:"flat",class:"mg-c-input__append-button","is-icon":true,onClick:this.toggleDisplayPassword,"aria-controls":this.identifier},i("mg-icon",{class:"mg-c-input__input-icon",icon:this.displayPassword?"eye-slash":"eye"}))))}get element(){return n(this)}static get watchers(){return{value:["handleValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"]}}};St.style=jt;const Wt=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--fieldset{padding:0;border:0;margin-right:0;margin-left:0}.mg-c-input.mg-c-input--fieldset input[type=radio],.mg-c-input.mg-c-input--fieldset input[type=checkbox]{width:var(--mg-c-input-check-size);height:var(--mg-c-input-check-size);flex-shrink:0;margin:calc((var(--mg-b-font-size)*var(--mg-b-line-height) - var(--mg-c-input-check-size))/2) var(--mg-b-size-8) 0 0}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group{display:flex;align-items:start}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group-container{display:flex;flex-wrap:wrap;padding:0;margin:0;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);gap:var(--mg-b-size-12) var(--mg-b-size-24);list-style:none}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group.mg-c-input__input-group--disabled label{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--fieldset.mg-c-input--vertical-list .mg-c-input__input-group-container,.mg-c-input.mg-c-input--fieldset.mg-c-input--checkbox-multi .mg-c-input__input-group-container{flex-direction:column}.mg-c-input.mg-c-input--fieldset.mg-c-input--label-on-top .mg-c-input__input-group-container{margin-top:var(--mg-b-size-8)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}";const Rt=Wt;const Ut=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const Nt=class{constructor(i){t(this,i);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.inputs=[];this.classVerticalList="mg-c-input--vertical-list";this.hasDisplayedError=false;this.handleInput=t=>{this.checkValidity();this.value=this.options[t.target.value].value};this.handleBlur=()=>{this.handlerInProgress="blur";this.checkValidity();this.setErrorMessage();this.handlerInProgress=undefined};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.getInvalidElement()===undefined)};this.setErrorMessage=t=>{const i=this.getInvalidElement();this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(i.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.getInvalidElement=()=>this.inputs.find((t=>!t.disabled&&!t.readOnly&&!t.checkValidity()));this.value=undefined;this.items=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=false;this.labelHide=false;this.inputVerticalList=false;this.required=false;this.readonly=false;this.disabled=false;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.classCollection=new l(["mg-c-input--radio",vt]);this.errorMessage=undefined;this.options=undefined;this.readonlyValue=undefined}watchValue(t){var i;if(w(this.items)&&typeof t==="string"){this.readonlyValue=t}else if(this.items.every(Ut)){this.readonlyValue=(i=this.items.find((i=>i.value===t)))===null||i===void 0?void 0:i.title}else{this.readonlyValue=null}this.valueChange.emit(t)}validateItems(t){if(typeof t==="object"&&t.length<2){throw new Error(`<mg-input-radio> prop "items" require at least 2 items. Passed value: ${r(t)}.`)}else if(w(t)){this.options=t.map((t=>({title:t,value:t,disabled:this.disabled})))}else if(t&&t.every((t=>Ut(t)))){this.options=t}else{throw new Error(`<mg-input-radio> prop "items" is required and all items must be the same type, string or RadioOption. Passed value: ${r(t)}.`)}}watchInputVerticalList(t){if(t)this.classCollection.add(this.classVerticalList);else this.classCollection.delete(this.classVerticalList)}watchReadonly(t){if(t)this.classCollection.add(bt);else this.classCollection.delete(bt)}handleValidityChange(t,i,e){this.inputs.forEach((i=>{i[e]=t}));this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}watchDisabled(t){if(t)this.classCollection.add(ft);else this.classCollection.delete(ft)}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,i){if(typeof t!=="boolean"){throw new Error('<mg-input-radio> method "setError()" param "valid" must be a boolean.')}else if(!c(i)){throw new Error('<mg-input-radio> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:i);this.hasDisplayedError=this.invalid}}setValidity(t){const i=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==i)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=s(this.element).messages;this.validateItems(this.items);this.watchInputVerticalList(this.inputVerticalList);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchValue(this.value);return setTimeout((()=>{this.checkValidity()}),0)}render(){return i("mg-input",{key:"1a623fa76a9c4c3079ae5cd9da3d4396bc9bee30",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&!this.value?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&i("b",{class:"mg-c-input__readonly-value"},this.readonlyValue):i("ul",{class:"mg-c-input__input-group-container",role:"list"},this.options.map(((t,e)=>i("li",{key:t.title,class:{"mg-c-input__input-group":true,"mg-c-input__input-group--disabled":this.disabled||t.disabled}},i("input",{type:"radio",id:this.identifier+"_"+e,name:this.identifier,value:e,checked:JSON.stringify(this.value)===JSON.stringify(this.options[e].value),disabled:this.disabled||t.disabled,required:this.required,onBlur:this.handleBlur,onInput:this.handleInput,ref:t=>{if(t!==null)this.inputs[e]=t}}),i("label",{htmlFor:this.identifier+"_"+e},t.title))))))}get element(){return n(this)}static get watchers(){return{value:["watchValue"],items:["validateItems"],inputVerticalList:["watchInputVerticalList"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"]}}};Nt.style=Rt;const Gt=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-2 .mg-c-input__box,.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left{max-width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-4 .mg-c-input__box,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left{max-width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-16 .mg-c-input__box,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{max-width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%;max-width:100%}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-2 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-2 .mg-c-input__with-character-left{max-width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-4 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-4 .mg-c-input__with-character-left{max-width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-16 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-16 .mg-c-input__with-character-left{max-width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-full .mg-c-input__box{width:100%;max-width:100%}.mg-c-input.mg-c-input--label-on-top .mg-c-input__box{width:auto}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__box{padding-top:0;padding-right:var(--mg-b-size-8);padding-bottom:0}@media screen and (max-width: 767px){.mg-c-input__box{width:100%}}";const Ft=Gt;const Kt=t=>typeof t==="object"&&typeof t.title==="string";const Yt=t=>Array.isArray(t)&&t.every((t=>Kt(t)));const Jt=t=>typeof t==="object"&&typeof t.group==="string"&&Yt(t.options);const Xt=(t,{group:i,title:e,value:n,disabled:a})=>{if(i!==undefined){const o=t.find((t=>t.group===i));if(o!==undefined){o.options.push({title:e,value:n,disabled:a})}else{t.push({group:i,options:[{title:e,value:n,disabled:a}]})}}else{t.push({title:e,value:n,disabled:a})}return t};const Zt=class{constructor(e){t(this,e);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.hasDisplayedError=false;this.handleInput=()=>{this.updateValue();if(this.hasDisplayedError)this.setErrorMessage()};this.isInputValue=t=>{var i;return t.title===((i=this.input)===null||i===void 0?void 0:i.value)};this.setValue=t=>{this.checkValidity();this.value=t};this.updateValue=()=>{if(this.input.value===""){this.setValue(null)}else if(w(this.items)&&this.items.includes(this.input.value)){this.setValue(this.input.value)}else if(Yt(this.items)&&typeof this.input.value==="string"&&this.items.some(this.isInputValue)){this.setValue(this.items.find(this.isInputValue).value)}else{this.options.push({title:this.input.value,value:this.input.value,disabled:true});this.setValue(this.input.value)}};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.isDisabledValue=()=>{var t;return Yt(this.options)&&((t=this.options.find(this.isInputValue))===null||t===void 0?void 0:t.disabled)===true};this.checkValidity=()=>{this.setValidity(!this.isDisabledValue()&&(this.readonly||this.disabled||this.input.checkValidity()))};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.renderOption=t=>i("option",{key:t.title,value:t.title,selected:JSON.stringify(this.value)===JSON.stringify(t.value),disabled:t.disabled},t.title);this.value=undefined;this.items=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.placeholder=undefined;this.placeholderHide=false;this.placeholderDisabled=false;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth=undefined;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.classCollection=new l(["mg-c-input--select"]);this.errorMessage=undefined;this.options=undefined;this.valueExist=undefined;this.readonlyValue=undefined}validateValue(t){var i,e;if(w(this.items)&&typeof t==="string"){this.readonlyValue=((i=this.input)===null||i===void 0?void 0:i.value)!==undefined?this.input.value:t}else if(Yt(this.items)){this.readonlyValue=(e=this.items.find((i=>i.value===t)))===null||e===void 0?void 0:e.title}else{this.readonlyValue=null}this.valueChange.emit(t)}validateItems(t){if(t.length===0){this.options=[]}else if(w(t)){if(typeof this.value==="string")this.valueExist=t.includes(this.value);this.options=t.map((t=>({title:t,value:t})))}else if(Yt(t)){this.valueExist=t.map((t=>t.value)).includes(this.value);if(t.some((t=>Boolean(t.group)))){this.options=t.reduce(Xt,[])}else{this.options=t}}else{throw new Error(`<mg-input-select> prop "items" is required, can be an empty Array or all items must be the same type: string or Option. Passed value: ${r(t)}.`)}}watchReadonly(t){if(t)this.classCollection.add(bt);else this.classCollection.delete(bt)}handleValidityChange(t,i,e){if(this.input!==undefined){this.input[e]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(ft);else this.classCollection.delete(ft)}watchMgWidth(t){ut.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,i){if(typeof t!=="boolean"){throw new Error('<mg-input-select> method "setError()" param "valid" must be a boolean.')}else if(!c(i)){throw new Error('<mg-input-select> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:i);this.hasDisplayedError=this.invalid}}setValidity(t){const i=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==i)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=s(this.element).messages;this.validateItems(this.items);this.validateValue(this.value);this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);if(this.placeholder===undefined||this.placeholder===""){this.placeholder=this.messages.input.select.placeholder}return setTimeout((()=>{this.checkValidity()}),0)}render(){return i("mg-input",{key:"a8d381dbc10d8a2274be86c13bf570faacbeceda",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.readonlyValue===null?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&i("b",{class:"mg-c-input__readonly-value"},this.readonlyValue):i("select",{class:"mg-c-input__box",id:this.identifier,name:this.name,title:this.placeholder,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}},(!this.placeholderHide||!this.valueExist)&&i("option",{value:"",disabled:this.placeholderDisabled&&this.valueExist},this.placeholder),this.options.map((t=>Jt(t)?i("optgroup",{label:t.group,key:t.group},t.options.map(this.renderOption)):Kt(t)&&this.renderOption(t)))))}get element(){return n(this)}static get watchers(){return{value:["validateValue"],items:["validateItems"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"]}}};Zt.style=Ft;const Qt=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-2 .mg-c-input__box,.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left{max-width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-4 .mg-c-input__box,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left{max-width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-16 .mg-c-input__box,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{max-width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%;max-width:100%}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-2 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-2 .mg-c-input__with-character-left{max-width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-4 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-4 .mg-c-input__with-character-left{max-width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-16 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-16 .mg-c-input__with-character-left{max-width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-full .mg-c-input__box{width:100%;max-width:100%}.mg-c-input.mg-c-input--label-on-top .mg-c-input__box{width:auto}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--display-character-left mg-character-left{font-size:var(--mg-b-font-size-small);opacity:.6}.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__help-text ::slotted(*),.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__error ::slotted(*){margin-top:0}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__with-character-left{position:relative;width:100%}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left .mg-c-input__box{padding-right:calc(var(--mg-c-character-left-message-length)*1ch + var(--mg-b-size-8))}.mg-c-input__with-character-left mg-character-left{position:absolute;top:50%;right:var(--mg-b-size-8);display:none;font-size:var(--mg-b-font-size-small);opacity:.6;transform:translateY(-50%)}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left mg-character-left{display:block}.mg-c-input.mg-c-input--readonly b{min-height:var(--mg-b-font-size);margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left>mg-icon{position:absolute;top:50%;left:var(--mg-b-size-8);color:var(--mg-c-input-color-icon);transform:translateY(-50%)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left .mg-c-input__box{padding-left:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2)}";const ti=Qt;const ii=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const ei=t=>w(t)||Array.isArray(t)&&t.every(ii);const ni=class{constructor(e){t(this,e);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.classFocus="mg-u-is-focused";this.classIsInputGroupAppend="mg-c-input--is-input-group-append";this.classHasIcon="mg-c-input--has-icon";this.classHasButtonsGroupAppend="mg-c-input--has-buttons-group-append";this.classIsAppendInputSlotContent="mg-c-input--is-append-input-slot-content";this.hasDisplayedError=false;this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.classCollection.add(this.classFocus);this.classCollection=new l(this.classCollection.classes)};this.handleBlur=()=>{this.classCollection.delete(this.classFocus);this.classCollection=new l(this.classCollection.classes);this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid&&t!==undefined){this.errorMessage=t}else if(!this.valid&&this.input.validity.patternMismatch){this.errorMessage=this.patternErrorMessage}else if(!this.valid&&this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}};this.validateAppendSlot=()=>{const t=Array.from(this.element.querySelectorAll('[slot="append-input"]'));if(t.length===1){if(t[0].nodeName==="MG-BUTTON"){this.classCollection.add(this.classIsInputGroupAppend)}else{this.classCollection.add(this.classIsAppendInputSlotContent);this.slotContent=t[0].textContent}}else if(t.filter((t=>t.nodeName==="MG-BUTTON")).length>1){this.classCollection.add(this.classIsInputGroupAppend);this.classCollection.add(this.classHasButtonsGroupAppend)}};this.hasDatalist=()=>ei(this.datalistoptions)&&this.datalistoptions.length>0;this.renderReadonly=()=>this.slotContent!==undefined?i("span",{class:"mg-c-input__readonly-value"},i("b",null,this.value),this.slotContent):i("b",{class:"mg-c-input__readonly-value"},this.value);this.value=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.type="text";this.icon=undefined;this.labelOnTop=undefined;this.labelHide=false;this.placeholder=undefined;this.datalistoptions=undefined;this.maxlength=400;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.pattern=undefined;this.patternErrorMessage=undefined;this.tooltip=undefined;this.tooltipPosition="input";this.characterLeftHide=false;this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.classCollection=new l(["mg-c-input--text"]);this.errorMessage=undefined}handleValue(t){var i,e;if((i=this.datalistoptions)===null||i===void 0?void 0:i.every(ii)){this.valueChange.emit(((e=this.datalistoptions.find((i=>i.title===t)))===null||e===void 0?void 0:e.value)||t)}else{this.valueChange.emit(t)}}validateIcon(t){if(t!==undefined){this.classCollection.add(this.classHasIcon)}else{this.classCollection.delete(this.classHasIcon)}}validateDatalistoptions(t){if(Boolean(t)&&!ei(t)){throw new Error(`<mg-input-text> prop "datalistoptions" values must be the same type, string or OptionType. Passed value: ${r(t)}.`)}}watchReadonly(t){if(t)this.classCollection.add(bt);else this.classCollection.delete(bt)}handleValidityChange(t,i,e){if(this.input!==undefined){this.input[e]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(ft);else this.classCollection.delete(ft)}watchMgWidth(t){ut.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validatePattern(t){if(t!==undefined&&!(c(this.pattern)&&c(this.patternErrorMessage))){throw new Error(`<mg-input-text> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${r(this.pattern)}'" and "patternErrorMessage='${r(this.patternErrorMessage)}'".`)}}async setFocus(){this.input.focus()}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,i){if(typeof t!=="boolean"){throw new Error('<mg-input-text> method "setError()" param "valid" must be a boolean.')}else if(!c(i)){throw new Error('<mg-input-text> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:i);this.hasDisplayedError=this.invalid}}setValidity(t){const i=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==i)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=s(this.element).messages;this.characterLeftId=`${this.identifier}-character-left`;this.datalistId=`${this.identifier}-datalist`;this.validateIcon(this.icon);this.validateDatalistoptions(this.datalistoptions);this.validatePattern(this.pattern);this.validatePattern(this.patternErrorMessage);this.validateAppendSlot();this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return i("mg-input",{key:"717239fc622bd6d122897031a2144bd3441947d5",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[this.characterLeftId],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value&&this.renderReadonly():[i("div",{key:"input",class:"mg-c-input__with-character-left",style:{"--mg-c-character-left-message-length":(!this.characterLeftHide?(this.maxlength-(this.value||"").length).toString().length+this.maxlength.toString().length+1:0).toString()}},this.icon!==undefined&&i("mg-icon",{icon:this.icon}),i("input",{type:this.type,class:"mg-c-input__box mg-c-input__box--width",value:this.value,id:this.identifier,list:this.hasDatalist()?this.datalistId:undefined,autocomplete:this.hasDatalist()?"off":undefined,name:this.name,placeholder:this.placeholder,title:this.placeholder,maxlength:this.maxlength,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),pattern:this.pattern,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),this.hasDatalist()&&i("datalist",{id:this.datalistId},this.datalistoptions.map((t=>i("option",{value:ii(t)?t.title:t,key:t})))),!this.characterLeftHide&&this.maxlength>0&&i("mg-character-left",{identifier:this.characterLeftId,characters:this.value,maxlength:this.maxlength})),i("slot",{key:"slot",name:"append-input"})])}get element(){return n(this)}static get watchers(){return{value:["handleValue"],icon:["validateIcon"],datalistoptions:["validateDatalistoptions"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"],pattern:["validatePattern"],patternErrorMessage:["validatePattern"]}}};ni.style=ti;const ai=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-2 .mg-c-input__box,.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left{max-width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-4 .mg-c-input__box,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left{max-width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-16 .mg-c-input__box,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{max-width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%;max-width:100%}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-2 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-2 .mg-c-input__with-character-left{max-width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-4 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-4 .mg-c-input__with-character-left{max-width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-16 .mg-c-input__box,.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-16 .mg-c-input__with-character-left{max-width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--label-on-top.mg-c-input--width-full .mg-c-input__box{width:100%;max-width:100%}.mg-c-input.mg-c-input--label-on-top .mg-c-input__box{width:auto}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--display-character-left mg-character-left{font-size:var(--mg-b-font-size-small);opacity:.6}.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__help-text ::slotted(*),.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__error ::slotted(*){margin-top:0}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__input{align-items:start}.mg-c-input__box{display:block;height:auto;resize:none}.mg-c-input__box.mg-c-input__box--resizable{resize:both}.mg-c-input__box.mg-c-input__box--resizable-horizontal{resize:horizontal}.mg-c-input__box.mg-c-input__box--resizable-vertical{resize:vertical}.mg-c-input__readonly-value{white-space:pre-line}.mg-c-input__with-character-left{flex-grow:1}.mg-c-input__with-character-left mg-character-left{display:block;text-align:end;visibility:hidden}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left mg-character-left{visibility:visible}@-moz-document url-prefix(){.mg-c-input__box{overflow-x:hidden}}";const oi=ai;const ri=class{constructor(i){t(this,i);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.classFocus="mg-u-is-focused";this.classDisplayCharacterLeft="mg-c-input--display-character-left";this.hasDisplayedError=false;this.handleInput=()=>{if(this.hasDisplayedError){this.checkValidity();this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.classCollection.add(this.classFocus);this.classCollection=new l(this.classCollection.classes)};this.handleBlur=()=>{this.classCollection.delete(this.classFocus);this.classCollection=new l(this.classCollection.classes);this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.getPatternValidity=()=>this.pattern===undefined||new RegExp(`^${this.pattern}$`,"u").test(this.value);this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity()&&this.getPatternValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(!this.getPatternValidity()){this.errorMessage=this.patternErrorMessage}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.value=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.placeholder=undefined;this.maxlength=4e3;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.pattern=undefined;this.patternErrorMessage=undefined;this.rows=3;this.tooltip=undefined;this.tooltipPosition="input";this.characterLeftHide=false;this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.resizable="none";this.classCollection=new l(["mg-c-input--textarea"]);this.errorMessage=undefined}handleValue(t){this.checkValidity();this.valueChange.emit(t)}watchReadonly(t){if(t)this.classCollection.add(bt);else this.classCollection.delete(bt)}handleValidityChange(t,i,e){if(this.input!==undefined){this.input[e]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}validateDisabled(t){if(t)this.classCollection.add(ft);else this.classCollection.delete(ft)}watchMgWidth(t){ut.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validatePattern(t){if(t!==undefined&&!(c(this.pattern)&&c(this.patternErrorMessage))){throw new Error(`<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${r(this.pattern)}'" and "patternErrorMessage='${r(this.patternErrorMessage)}'".`)}}validatecharacterLeftHide(t){if(t){this.classCollection.delete(this.classDisplayCharacterLeft)}else{this.classCollection.add(this.classDisplayCharacterLeft)}}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,i){if(typeof t!=="boolean"){throw new Error('<mg-input-textarea> method "setError()" param "valid" must be a boolean.')}else if(!c(i)){throw new Error('<mg-input-textarea> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:i);this.hasDisplayedError=this.invalid}}setValidity(t){const i=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==i)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=s(this.element).messages;this.characterLeftId=`${this.identifier}-character-left`;this.validatecharacterLeftHide(this.characterLeftHide);this.validatePattern(this.pattern);this.validatePattern(this.patternErrorMessage);this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.validateDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return i("mg-input",{key:"434d00b8d1b5f066b416f777572bfae84797e79d",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[this.characterLeftId],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value&&i("b",{class:"mg-c-input__readonly-value"},this.value):i("div",{class:"mg-c-input__with-character-left"},i("textarea",{class:{"mg-c-input__box":true,"mg-c-input__box--width":true,"mg-c-input__box--resizable":this.resizable==="both","mg-c-input__box--resizable-horizontal":this.resizable==="horizontal","mg-c-input__box--resizable-vertical":this.resizable==="vertical"},value:this.value,id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,rows:this.rows,maxlength:this.maxlength,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),!this.characterLeftHide&&this.maxlength>0&&i("mg-character-left",{identifier:this.characterLeftId,characters:this.value,maxlength:this.maxlength})))}get element(){return n(this)}static get watchers(){return{value:["handleValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","validateDisabled"],mgWidth:["watchMgWidth"],pattern:["validatePattern"],patternErrorMessage:["validatePattern"],characterLeftHide:["validatecharacterLeftHide"]}}};ri.style=oi;const si=".mg-u-form-legacy.sc-mg-input-title{--mg-c-form-inputs-title-width:calc(100% / 3 - 20px)}.mg-u-is-asterisk.sc-mg-input-title{color:var(--mg-b-color-danger)}legend.mg-c-input-title.sc-mg-input-title{padding-right:0;padding-left:0}.mg-c-input-title__required.sc-mg-input-title{display:var(--mg-c-input-title-display, unset)}";const li=si;const ci=class{constructor(i){t(this,i);this.identifier=undefined;this.required=undefined;this.readonly=undefined;this.isLegend=false;this.tagName="label"}validateIdentifier(t){if(!c(t)){throw new Error('<mg-input-title> prop "identifier" is required.')}}validateIsLegend(t){this.tagName=t?"legend":"label"}componentWillLoad(){this.validateIdentifier(this.identifier);this.validateIsLegend(this.isLegend)}render(){const t=this.readonly?"span":this.tagName;return i(t,{key:"2b9a091bea26abed3179e0af163c4622f5d5bdc3",class:"mg-c-input-title",htmlFor:!this.isLegend&&this.identifier,id:this.isLegend?`${this.identifier}-title`:undefined},i("slot",{key:"a167a4309b176c4a896f50764a8d3df53ad6f0b6"}),this.required&&!this.readonly&&i("span",{key:"c2b32a0101b2f43fdb45d8f074297c5f9250c628",class:"mg-c-input-title__required"}," ",i("span",{key:"f9932b7ba646b5e904f33a88d8dfce0e471141dc",class:"mg-u-is-asterisk"},"*")))}static get watchers(){return{identifier:["validateIdentifier"],isLegend:["validateIsLegend"]}}};ci.style=li;const hi=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__toggle-item-container{overflow:hidden;box-sizing:border-box;padding:var(--mg-b-size-4) var(--mg-b-size-8);border:0;border-radius:calc((var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4))/var(--mg-c-input-toggle-border-radius-ratio));background-color:unset;color:var(--mg-b-color-dark);font-weight:unset;text-overflow:ellipsis;white-space:nowrap}.mg-c-input__toggle-item-container:first-of-type{background-color:color-mix(in srgb, var(--mg-b-color-app), white 80%);color:var(--mg-b-color-app);font-weight:600}.mg-c-input__button-toggle{display:flex;min-width:0;padding:var(--mg-b-size-4);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:calc((var(--mg-b-font-size)*var(--mg-b-line-height) + 2*(var(--mg-b-size-4) + var(--mg-b-size-4) + var(--mg-c-input-border-width)))/var(--mg-c-input-toggle-border-radius-ratio));background-color:var(--mg-b-color-light);cursor:pointer;font-family:var(--mg-b-font-family);font-size:inherit;line-height:inherit}.mg-c-input__button-toggle:disabled{cursor:default}.mg-c-input.mg-c-input--toggle .mg-c-input__input-container{min-width:0;flex:auto}.mg-c-input.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{background-color:unset;color:var(--mg-b-color-dark);font-weight:unset}.mg-c-input.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:last-of-type{background-color:color-mix(in srgb, var(--mg-b-color-app), white 80%);color:var(--mg-b-color-info);font-weight:600}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container{display:flex;width:calc(var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4));height:calc(var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4));align-items:center;justify-content:center;padding:0;visibility:hidden}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container:first-of-type{visibility:visible}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container ::slotted(mg-icon){display:flex}.mg-c-input.mg-c-input--toggle-icon.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{visibility:hidden}.mg-c-input.mg-c-input--toggle-icon.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:last-of-type{visibility:visible}.mg-c-input.mg-c-input--toggle-on-off .mg-c-input__toggle-item-container:first-of-type{background-color:var(--mg-b-color-neutral-30);color:var(--mg-b-color-dark);font-weight:600}.mg-c-input.mg-c-input--toggle-on-off.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{background-color:unset;color:var(--mg-b-color-dark);font-weight:unset}";const di=hi;const gi=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const mi=class{constructor(i){t(this,i);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.classIsActive="mg-c-input--toggle-is-active";this.classOnOff="mg-c-input--toggle-on-off";this.classIcon="mg-c-input--toggle-icon";this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid&&t!==undefined){this.errorMessage=t}};this.toggleChecked=()=>{this.checked=!this.checked};this.validateSlots=()=>{const t=Array.from(this.element.children);if(t.length!==2){throw new Error("<mg-input-toggle> 2 slots are required.")}else if(!this.isIcon){t.forEach((t=>t.setAttribute("title",t.textContent)))}};this.getCheckedItem=t=>{var i;if(((i=this.options)===null||i===void 0?void 0:i.length)===2){return this.options[t?1:0]}else{return null}};this.value=undefined;this.items=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.isOnOff=false;this.isIcon=false;this.readonly=false;this.disabled=false;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.classCollection=new l(["mg-c-input--toggle"]);this.options=undefined;this.errorMessage=undefined;this.valid=undefined;this.checked=false}handleValue(t){this.setChecked();this.valueChange.emit(t)}validateItems(t){if(typeof t==="object"&&this.items.length!==2){throw new Error(`<mg-input-toggle> prop "items" require 2 items. Passed value: ${r(t)}.`)}else if(w(t)){this.options=t.map((t=>({title:t,value:t})))}else if(Array.isArray(t)&&t.every(gi)){this.options=t}else{throw new Error(`<mg-input-toggle> prop "items" is required and all items must be the same type: ToggleValue. Passed value: ${r(t)}.`)}}watchIsOnOff(t){if(t)this.classCollection.add(this.classOnOff);else this.classCollection.delete(this.classOnOff)}watchIsIcon(t){if(t)this.classCollection.add(this.classIcon);else this.classCollection.delete(this.classIcon)}watchReadonly(t){if(t)this.classCollection.add(bt);else this.classCollection.delete(bt)}watchDisabled(t){if(t)this.classCollection.add(ft);else this.classCollection.delete(ft)}handleChecked(t){if(t)this.classCollection.add(this.classIsActive);else this.classCollection.delete(this.classIsActive);this.value=this.getCheckedItem(t).value}async setError(t,i){if(typeof t!=="boolean"){throw new Error('<mg-input-toggle> method "setError()" param "valid" must be a boolean.')}else if(!c(i)){throw new Error('<mg-input-toggle> method "setError()" param "errorMessage" must be a string.')}else{this.valid=t;this.inputValid.emit(t);this.setErrorMessage(t?undefined:i)}}setChecked(){const t=this.options.map((t=>t.value)).findIndex((t=>t===true));if([0,1].includes(t)){if(["","true"].includes(this.value)&&this.options.find((t=>t.value))!==undefined){this.value=true}const i=this.value===this.options[t].value;this.checked=t===0?!i:i}else{this.checked=this.value===this.options[1].value}}componentWillLoad(){this.validateItems(this.items);this.validateSlots();this.setChecked();this.watchIsIcon(this.isIcon);this.watchIsOnOff(this.isOnOff);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled)}render(){const t=this.getCheckedItem(this.checked);return i("mg-input",{key:"803566335b26e4cf70cbb4cb397db4c9688314de",label:this.label,helpText:this.helpText,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:undefined,tooltip:this.tooltip,tooltipPosition:this.tooltipPosition,errorMessage:this.errorMessage},this.readonly?t&&i("b",{class:"mg-c-input__readonly-value"},t.title):i("button",{type:"button",role:"switch","aria-checked":this.checked.toString(),"aria-readonly":this.disabled||this.readonly,id:this.identifier,class:"mg-c-input__button-toggle",disabled:this.disabled||this.readonly,onClick:this.toggleChecked},i("span",{"aria-hidden":"true",class:"mg-c-input__toggle-item-container"},i("slot",{name:"item-1"})),i("span",{"aria-hidden":"true",class:"mg-c-input__toggle-item-container"},i("slot",{name:"item-2"}))))}get element(){return n(this)}static get watchers(){return{value:["handleValue"],items:["validateItems"],isOnOff:["watchIsOnOff"],isIcon:["watchIsIcon"],readonly:["watchReadonly"],disabled:["watchDisabled"],checked:["handleChecked"]}}};mi.style=di;const ui=t=>t.nodeName==="MG-ITEM-MORE";const pi={BASE_INDEX:"data-overflow-base-index",PROXY_INDEX:"data-overflow-proxy-index"};class vi{constructor(t,i){this.element=t;this.render=i;this.disconnect=()=>{this._resizeObserver.disconnect()};this.run=t=>{if(this._moreElement===undefined){this._moreElement=this.render();this._baseChildren=this.getInteractiveItems(this.element);if(ui(this._moreElement)){this._proxyChildren=this.getInteractiveItems(this._moreElement.shadowRoot.querySelector("mg-menu"))}this._baseChildren.forEach(((t,i)=>{t.setAttribute(pi.BASE_INDEX,`${i}`);this._proxyChildren[i].setAttribute(pi.PROXY_INDEX,`${i}`)}))}if(t!==undefined)this.updateDisplayedItems(t)};this.getInteractiveItems=t=>{var i;return(((i=t.children)===null||i===void 0?void 0:i.length)>0?Array.from(t.children):[]).filter((t=>["MG-MENU-ITEM","MG-BUTTON"].includes(t.nodeName)))};this.updateDisplayedItems=t=>{this.restoreItems();const i={accWidth:0,previousItem:null};[...this._baseChildren,this._moreElement].forEach((e=>{i.accWidth+=e.offsetWidth;const n=i.previousItem!==null;const a=n&&i.previousItem.hasAttribute("hidden");this.toggleItem(e,a&&!this.isMoreElement(e)||this.isOverflowElement(i.accWidth,e,t)||this.isMoreElement(e)&&!a);i.previousItem=e}))};this.isOverflowElement=(t,i,e)=>{if(i.previousElementSibling===null||this.isMoreElement(i))return false;else if(!this.isMoreElement(i.nextElementSibling))return t+this._moreElement.offsetWidth>e;else return t>e};this.isMoreElement=t=>t.nodeName==="MG-ITEM-MORE";this.toggleItem=(t,i)=>{const e=Number(t.getAttribute(pi.BASE_INDEX));if(this.isMoreElement(t))this.toggleElement(this._moreElement,i);else if(e>=0){this.toggleElement(t,i);this.toggleElement(this._proxyChildren[e],!i)}};this.toggleElement=(t,i)=>{if(i)t.setAttribute("hidden","");else t.removeAttribute("hidden")};this.restoreItems=()=>{[...this._baseChildren,this._moreElement].forEach((t=>t.removeAttribute("hidden")))};if(this._resizeObserver===undefined){this._resizeObserver=new ResizeObserver((t=>{t.forEach((t=>{this.run(t.contentRect.width)}))}));this._resizeObserver.observe(this.element)}this.run()}}const fi=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}:host:not([hidden]){display:flex}";const bi=fi;const wi=class{constructor(i){t(this,i);this.name="mg-item-more";this.setProxyElement=t=>{const i=this.moreElementMenuItem.querySelector(`[identifier="${t.identifier}"]`);if(i===null)return;if(c(i.id))i.id="";const e=()=>{this.parentMenu.querySelector(`[identifier="${i.identifier}"]`).shadowRoot.querySelector("a, button").dispatchEvent(new MouseEvent("click",{bubbles:true}))};const n=t=>{for(const e in t){if(["identifier","href","targer","status","expanded"].includes(e))t[e]?i.setAttribute(e,t[e]):i.removeAttribute(e)}i.innerHTML=t.innerHTML;setTimeout((()=>{const t=i.shadowRoot.querySelector("a, button");t.removeEventListener("click",e);t.addEventListener("click",e)}))};n(t);t.addEventListener("item-updated",(t=>{n(t.target)}));i.addEventListener("item-loaded",(()=>{n(t)}))};this.renderMgMenuItemOverflowElement=()=>{this.parentMenuItems.forEach((t=>{this.moreElementMenuItem.querySelector("mg-menu").appendChild(t.cloneNode(true));h((()=>{if(t.querySelector("mg-menu")!==null){t.querySelectorAll("mg-menu-item").forEach(this.setProxyElement)}else{this.setProxyElement(t)}}))}));return this.element};this.icon={icon:"ellipsis-vertical"};this.slotlabel={display:false};this.size=undefined;this.parentMenu=undefined}validateIcon(t){if(typeof t!=="object"||typeof t==="object"&&typeof t.icon!=="string")throw new Error(`<${this.name}> prop "icon" must match MgItemMore['icon'] type. Passed value: ${r(t)}.`)}validateSlotLabel(t){if(typeof t!=="object"||typeof t==="object"&&typeof t.display!=="boolean")throw new Error(`<${this.name}> prop "slotlabel" must match MgItemMore['slotlabel'] type. Passed value: ${r(t)}.`);else if(typeof t.label!=="string")this.slotlabel.label=this.messages.menuLabel}validateSize(t){if(t&&!M.includes(t))throw new Error(`<${this.name}> prop "size" must match MgItemMore['size'] type. Passed value: ${r(t)}.`)}componentWillLoad(){this.messages=s(this.element).messages.itemMore;this.validateIcon(this.icon);this.validateSlotLabel(this.slotlabel);this.validateSize(this.size)}componentDidLoad(){return setTimeout((()=>{this.parentMenu=this.element.closest("mg-menu")}))}componentDidUpdate(){if(this.parentMenu&&this.overflowBehavior===undefined){this.parentMenuItems=Array.from(this.parentMenu.children).filter((t=>t.nodeName==="MG-MENU-ITEM"));this.overflowBehavior=new vi(this.parentMenu,this.renderMgMenuItemOverflowElement)}}disconnectedCallback(){var t;(t=this.overflowBehavior)===null||t===void 0?void 0:t.disconnect()}render(){return i(e,{key:"57dda64ff7dcb6dbf50bcd1e887fd6fb7733d533",role:"listitem"},this.parentMenu&&i("mg-menu-item",{key:"b975001df7dfeae4ea14b3e208245240e9868ae4","data-overflow-more":true,"data-size":this.parentMenu.size,identifier:"mg-item-more",ref:t=>{if(t!==null){this.moreElementMenuItem=t}}},i("mg-icon",{key:"f0837050757fe920e71c6060e4fb873c8bab43b7",icon:this.icon.icon,size:this.size,slot:"image"}),i("span",{key:"7155b47f84cc2193dec65bcccbbaa93776e5daa1",class:{"mg-u-visually-hidden":!this.slotlabel.display},slot:"label"},this.slotlabel.label),i("mg-menu",{key:"9295f68e1799a313cc93cdbf6bd75cea3aa1ecd0",direction:k.VERTICAL,label:this.messages.menuLabel,size:this.size})))}get element(){return n(this)}static get watchers(){return{icon:["validateIcon"],slotlabel:["validateSlotLabel"],size:["validateSize"]}}};wi.style=bi;const _i=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-menu-color-background: Defines the background color of the menu. Unset by default, fallback on `--mg-b-color-light`.\n */:host{display:flex;background-color:var(--mg-c-menu-color-background, var(--mg-b-color-light))}:host([direction=vertical]){height:100%;flex-direction:column;overflow-y:auto}";const xi=_i;const zi=class{constructor(i){t(this,i);this.name="mg-menu";this.menuItems=[];this.focusedMenuItem=0;this.closeMenuItem=(t,i)=>{if(!this.isChildMenu&&i){t.expanded=false}};this.getItemMoreMenuItem=()=>{var t,i;return(i=(t=this.itemMoreElement)===null||t===void 0?void 0:t.shadowRoot)===null||i===void 0?void 0:i.querySelector("mg-menu-item")};this.setItemListener=(t,i)=>{["click","focus"].forEach((e=>{t.shadowRoot.querySelector("button,a").addEventListener(e,(()=>{this.focusedMenuItem=i;const t=this.getItemMoreMenuItem();(![null,undefined].includes(t)?[...this.menuItems,t]:this.menuItems).forEach(((t,i)=>{this.closeMenuItem(t,i!==this.focusedMenuItem)}))}))}))};this.initMenuItemsListeners=()=>{this.menuItems.forEach(((t,i)=>{this.setItemListener(t,i)}))};this.handleItemLoaded=()=>{this.setItemListener(this.getItemMoreMenuItem(),this.menuItems.length)};this.renderMgItemMore=()=>{var t;if(this.direction!==k.HORIZONTAL||this.isChildMenu||this.element.children.length<=1){return}if(this.itemMoreElement===undefined){this.itemMoreElement=document.createElement("mg-item-more");this.itemMoreElement.addEventListener("item-loaded",this.handleItemLoaded);this.element.appendChild(this.itemMoreElement)}for(const t in this.itemmore){const i=this.itemmore[t];if(["string","number"].includes(typeof i)){this.itemMoreElement.setAttribute(t,i)}else{this.itemMoreElement[t]=i}}if(((t=this.itemmore)===null||t===void 0?void 0:t.size)===undefined)this.itemMoreElement.size=this.size};this.label=undefined;this.direction=k.HORIZONTAL;this.itemmore=undefined;this.size="medium";this.isChildMenu=undefined}validateLabel(t){if(t===undefined&&!this.element.hasAttribute("aria-label")){throw new Error(`<${this.name}> prop "label" is required. Passed value: ${r(t)}.`)}}validateDirection(t){if(![k.VERTICAL,k.HORIZONTAL].includes(t)){throw new Error(`<${this.name}> prop "direction" must be one of: ${k.HORIZONTAL}, ${k.VERTICAL}. Passed value: ${r(t)}.`)}}validateItemMore(t){if(t!==undefined&&this.direction!==k.HORIZONTAL){throw new Error(`<${this.name}> prop "itemmore" must be paired with direction ${k.HORIZONTAL}.`)}else if(t!==undefined){this.renderMgItemMore()}}validateSize(t){if(!M.includes(t)){throw new Error(`<${this.name}> prop "size" must be one of: ${M.join(", ")}. Passed value: ${r(t)}.`)}}componentWillLoad(){this.validateDirection(this.direction);this.validateLabel(this.label);this.validateItemMore(this.itemmore);this.validateSize(this.size)}componentDidLoad(){return setTimeout((()=>{this.menuItems=Array.from(this.element.children).filter((t=>t.nodeName==="MG-MENU-ITEM"));this.isChildMenu=this.element.closest("mg-menu-item")!==null;this.renderMgItemMore();new MutationObserver((()=>{this.renderMgItemMore()})).observe(this.element,{childList:true})}))}componentDidRender(){this.initMenuItemsListeners()}render(){return i(e,{key:"550624e40ec66eeb90f8bc4ac1590adcbaa20dfd",role:"list","aria-label":this.label},i("slot",{key:"bf6f5ac748fd45e250c02d93cc7cf72e4580de3b"}))}get element(){return n(this)}static get watchers(){return{label:["validateLabel"],direction:["validateDirection"],itemmore:["validateItemMore"],size:["validateSize"]}}};zi.style=xi;const yi='.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-menu-item-color: Defines menu item global color, used for bottom line and active tabs. Default value: `--mg-b-color-app`.\n * @prop --mg-c-menu-item-color-text: Defines the color of the menu item. Unset by default, fallback on `--mg-b-color-dark`.\n * @prop --mg-c-menu-item-navigation-button-max-width: Defines the max-width property for the navigation button. Unset by default.\n */.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{height:var(--mg-b-size-40);padding:var(--mg-b-size-12) var(--mg-b-size-16)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=metadata]){font-size:var(--mg-b-font-size)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-16)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{height:var(--mg-b-size-48);padding:var(--mg-b-size-12) var(--mg-b-size-32)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-32)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{height:var(--mg-b-size-72);padding:var(--mg-b-size-12) var(--mg-b-size-40)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-40)}.mg-c-menu-item__navigation-button{display:flex;box-sizing:border-box;align-items:center;border:none;background-color:unset;color:var(--mg-c-menu-item-color-text, var(--mg-b-color-dark));column-gap:var(--mg-c-menu-item-navigation-button-column-gap, var(--mg-b-size-8));cursor:pointer;font-family:var(--mg-b-font-family);font-weight:400;line-height:var(--mg-b-line-height);text-decoration:none;white-space:nowrap}.mg-c-menu-item__navigation-button:disabled,.mg-c-menu-item__navigation-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-menu-item__navigation-button:focus-visible{z-index:10}.mg-c-menu-item__navigation-button:hover:not(.mg-c-menu-item__navigation-button--disabled),.mg-c-menu-item__navigation-button:focus-visible:not(.mg-c-menu-item__navigation-button--disabled){background-color:color-mix(in srgb, var(--mg-c-menu-item-color), transparent 90%)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active{color:var(--mg-c-menu-item-color);font-weight:600}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--horizontal{box-shadow:inset 0 calc(-1*var(--mg-b-size-4)) var(--mg-c-menu-item-color)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--vertical{box-shadow:inset var(--mg-b-size-4) 0 var(--mg-c-menu-item-color)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--hidden{display:none}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(1*var(--mg-b-size-16))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(2*var(--mg-b-size-16))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(3*var(--mg-b-size-16))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(4*var(--mg-b-size-16))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(5*var(--mg-b-size-16))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(6*var(--mg-b-size-16))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(1*var(--mg-b-size-32))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(2*var(--mg-b-size-32))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(3*var(--mg-b-size-32))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(4*var(--mg-b-size-32))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(5*var(--mg-b-size-32))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(6*var(--mg-b-size-32))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(1*var(--mg-b-size-40))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(2*var(--mg-b-size-40))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(3*var(--mg-b-size-40))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(4*var(--mg-b-size-40))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(5*var(--mg-b-size-40))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(6*var(--mg-b-size-40))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}.mg-c-menu-item{max-width:var(--mg-c-menu-item-navigation-button-max-width)}.mg-c-menu-item__collapse-container{z-index:10;width:max-content}.mg-c-menu-item__navigation-button-center{min-width:0}.mg-c-menu-item__navigation-button-text-content{display:flex;width:100%;align-items:center}.mg-c-menu-item__navigation-button-text-content-notification,.mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:var(--mg-b-size-8);font-size:var(--mg-b-font-size)}.mg-c-menu-item__navigation-button-new-tab{margin-left:var(--mg-b-size-4)}.mg-c-menu-item__navigation-button-chevron{display:var(--mg-c-menu-item-chevron-display);margin-left:auto;transition:200ms}.mg-c-menu-item__navigation-button-chevron--rotate.mg-c-menu-item__navigation-button-chevron{transform:rotate(180deg)}:host{position:relative;display:flex;--mg-c-popover-padding-vertical:0;--mg-c-popover-padding-horizontal:0;--mg-c-popover-max-width:unset}:host([data-style-direction=vertical]){flex-direction:column}:host([data-style-direction=vertical]) .mg-c-menu-item__navigation-button{width:100%}:host([data-style-direction=vertical]) .mg-c-menu-item__collapse-container{position:unset;top:unset;left:unset;width:unset}:host([data-style-direction=vertical]) .mg-c-menu-item-chevron{margin-left:auto}:host([data-overflow-more]){--mg-c-menu-item-navigation-button-column-gap:0}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-chevron{--mg-c-menu-item-chevron-display:none}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:0}:host([data-overflow-more]) ::slotted(mg-menu){--mg-c-menu-item-navigation-button-column-gap:var(--mg-b-size-8)}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level,:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level{background-color:var(--mg-b-color-light)}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu),:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu){padding:var(--mg-b-size-8) 0}::slotted([slot=label]),::slotted([slot=metadata]){display:block;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}::slotted(*){display:flex;flex-direction:column}:host([status=disabled]){pointer-events:none}:host([hidden]){display:none}';const ki=yi;const Mi=class{constructor(e){t(this,e);this.statusChange=a(this,"status-change",7);this.itemLoaded=a(this,"item-loaded",7);this.itemUpdated=a(this,"item-updated",7);this.name="mg-menu-item";this.navigationButton="mg-c-menu-item__navigation-button";this.toggleExpanded=()=>{this.expanded=!this.expanded};this.hasStatus=(t,i)=>t.status===i;this.isDirection=(t,i=this.direction)=>t===i;this.updateDisplayNotificationBadge=()=>{const t=this.element.querySelector("mg-menu");this.displayNotificationBadge=t!==null&&Array.from(t.children).some((t=>t.querySelector("mg-badge")!==null&&!t.hasAttribute("hidden")))};this.hasActiveChild=()=>{var t;return Array.from(((t=this.element.querySelector("mg-menu"))===null||t===void 0?void 0:t.children)||[]).some((t=>t.nodeName==="MG-MENU-ITEM"&&this.hasStatus(t,z.ACTIVE)&&!t.hasAttribute("hidden")))};this.validateSlot=(t=false)=>{if(Array.from(this.element.children).find((t=>t.getAttribute("slot")==="label"))===undefined)throw new Error(`<${this.name}> slot "label" is required.`);["label","metadata"].forEach((i=>{Array.from(this.element.querySelectorAll(`[slot="${i}"]`)).forEach((e=>{if(!c(e.textContent))throw new Error(`<${this.name}> slot "${i}" must have text content.`);if(t&&!e.hasAttribute("title")||!t)e.setAttribute("title",e.textContent)}))}))};this.updateStatus=(t=[])=>{if(![z.HIDDEN,z.DISABLED,...t].includes(this.status)){this.status=this.hasActiveChild()?z.ACTIVE:z.VISIBLE}};this.initListeners=()=>{var t;Array.from(((t=this.element.querySelector("mg-menu"))===null||t===void 0?void 0:t.children)||[]).forEach((t=>{if(t.nodeName==="MG-MENU-ITEM"){t.addEventListener("status-change",(()=>{this.updateStatus()}))}}))};this.getPopoverIdentifier=()=>`${this.identifier}-popover`;this.displayPopover=()=>this.isDirection(k.HORIZONTAL)&&this.hasChildren&&this.href===undefined;this.handleElementCLick=t=>{if(this.hasChildren&&!this.isInMainMenu||this.status===z.DISABLED){t.preventDefault();t.stopPropagation()}if(this.hasChildren)this.toggleExpanded()};this.handlePopoverDisplay=t=>{this.expanded=t.detail};this.renderSlot=()=>i("slot",null);this.identifier=o("mg-menu-item");this.href=undefined;this.target=undefined;this.status=z.VISIBLE;this.expanded=false;this.size="medium";this.navigationButtonClassList=new l([this.navigationButton]);this.direction=undefined;this.isInMainMenu=undefined;this.isItemMore=undefined;this.hasChildren=false;this.displayNotificationBadge=undefined}watchTarget(t){if(t&&!y.includes(t)){throw new Error(`<mg-link> prop "target" must be one of: ${y.join(", ")}. Passed value: ${r(t)}.`)}}validateStatus(t,i){if(i!==undefined){this.navigationButtonClassList.delete(`${this.navigationButton}--${i}`)}this.navigationButtonClassList.add(`${this.navigationButton}--${t}`);this.statusChange.emit(t)}validateExpanded(t){if(typeof t!=="boolean")throw new Error(`<${this.name}> prop "expanded" must be a boolean. Passed value: ${r(t)}.`);if(this.hasChildren){const i=Array.from(this.element.querySelectorAll(this.name));if(!t){i.forEach((t=>{t.expanded=false}))}else if(this.element.querySelector(`${this.name}[status="${z.ACTIVE}"]`)!==null){i.forEach((t=>{if(this.hasStatus(t,z.ACTIVE)){t.expanded=true}}))}}}validateSize(t,i){this.navigationButtonClassList.delete(`${this.navigationButton}--size-${i}`);this.navigationButtonClassList.add(`${this.navigationButton}--size-${t}`)}validateDirection(t){this.element.setAttribute("data-style-direction",t);this.navigationButtonClassList.add(`${this.navigationButton}--${t}`);if(this.isDirection(k.VERTICAL,t)){Array.from(this.element.querySelectorAll("mg-menu-item")).forEach((t=>{t.dataset.level=`${(Number(t.dataset.level)||1)+1}`}))}}validateHasChildren(t){if(t&&this.element.href!==undefined){throw new Error(`<${this.name}> prop "href" is unauthorizied when element is a parent.`)}}updatePopoverGuard(){if(this.displayPopover())Array.from(this.element.children).filter((t=>!t.hasAttribute("slot")&&t.nodeName!=="MG-MENU"&&Boolean(t.dataset))).forEach((t=>t.dataset.mgPopoverGuard=this.getPopoverIdentifier()))}componentWillLoad(){this.hasChildren=Array.from(this.element.children).some((t=>!["image","information","label","metadata"].includes(t.getAttribute("slot"))));this.messages=s(this.element).messages.menuItem;this.isItemMore=this.element.dataset.overflowMore!==undefined;this.validateStatus(this.status);this.validateExpanded(this.expanded);this.watchTarget(this.target);this.validateSize(this.size)}componentDidLoad(){this.validateSlot(true);return setTimeout((()=>{const t=this.element.closest("mg-menu");this.direction=this.isItemMore||t===null?k.HORIZONTAL:t.direction;this.isInMainMenu=t!==null&&this.element.parentElement.closest("mg-menu-item")===null;if((t===null||t===void 0?void 0:t.size)!==undefined)this.size=t.size;if(this.isItemMore)this.size=this.element.dataset.size;if(this.hasActiveChild()&&this.isInMainMenu)this.expanded=this.isDirection(k.VERTICAL);this.updateStatus([z.ACTIVE]);this.updateDisplayNotificationBadge();this.updatePopoverGuard();this.initListeners();this.itemLoaded.emit();new MutationObserver((t=>{if(t.some((t=>t.attributeName==="hidden")))this.updateStatus(this.hasChildren?undefined:[z.ACTIVE]);if(t.some((t=>t.type==="characterData")))this.validateSlot();this.updateDisplayNotificationBadge();this.itemUpdated.emit()})).observe(this.element,{attributes:true,childList:true,characterData:true,subtree:true})}),0)}renderInteractiveElement(){const t=this.href!==undefined?"a":"button";return i(t,{href:this.href,class:this.navigationButtonClassList.join(),tabindex:[z.DISABLED,z.HIDDEN].includes(this.status)?-1:undefined,disabled:this.status===z.DISABLED,hidden:this.status===z.HIDDEN,target:this.href!==undefined&&this.target!==undefined?this.target:undefined,"aria-expanded":this.hasChildren&&this.expanded.toString(),"aria-current":this.status===z.ACTIVE&&"page",onClick:this.handleElementCLick},i("slot",{name:"image"}),i("div",{class:`${this.navigationButton}-center`},i("div",{class:`${this.navigationButton}-text-content`},i("slot",{name:"label"}),!this.displayNotificationBadge&&i("slot",{name:"information"}),this.displayNotificationBadge&&i("span",{class:`${this.navigationButton}-text-content-notification`},i("mg-badge",{label:this.messages.badgeLabel,value:"!",variant:"text-color",slot:"information"})),this.target==="_blank"&&[i("mg-icon",{key:"icon-new-tab",class:`${this.navigationButton}-new-tab`,icon:"arrow-up-right-square"}),i("span",{key:"a11y-new-tab",class:"mg-u-visually-hidden"},this.messages.openNewTab)]),this.size!=="medium"&&i("slot",{name:"metadata"})),this.hasChildren&&this.href===undefined&&i("span",{class:{[`${this.navigationButton}-chevron`]:true,[`${this.navigationButton}-chevron--rotate`]:this.expanded===true}},i("mg-icon",{icon:"chevron-down",size:"small"})))}componentShouldUpdate(){return h((()=>{this.itemUpdated.emit()}))}render(){const t=()=>({["mg-c-menu-item__collapse-container"]:true,["mg-c-menu-item__collapse-container--first-level"]:(this.isInMainMenu||this.isItemMore)&&this.isDirection(k.HORIZONTAL)});return i(e,{key:"be4538374c9b944ee6492805817d58b1dbb18e4b",role:this.isItemMore?"presentation":"listitem"},this.displayPopover()?i("mg-popover",{display:this.expanded,placement:"bottom-start",arrowHide:true,"onDisplay-change":this.handlePopoverDisplay,identifier:this.getPopoverIdentifier(),"data-fallback-placement":"bottom-end"},this.renderInteractiveElement(),i("div",{class:t(),slot:"content"},this.renderSlot())):[this.renderInteractiveElement(),i("div",{key:"vertical-container",class:t(),hidden:!this.expanded},this.renderSlot())])}get element(){return n(this)}static get watchers(){return{target:["watchTarget"],status:["validateStatus"],expanded:["validateExpanded"],size:["validateSize"],direction:["validateDirection"],hasChildren:["validateHasChildren"]}}};Mi.style=ki;const Hi=["info","warning","success","danger"];const Ci=["bar-left","background"];const Vi="/*!\n * @prop --mg-c-message-border-radius: Defines the border radius of the message. Default value: `--mg-b-size-radius`.\n */:host{--mg-c-card-spacing:0;--mg-c-card-border-radius:var(--mg-c-message-border-radius);--mg-c-card-border:none;--mg-c-card-overflow:hidden}.mg-c-message{display:inline-block;min-height:var(--mg-b-size-min-height)}.mg-c-message.mg-c-message--danger .mg-c-message__icon{color:var(--mg-b-color-danger)}.mg-c-message.mg-c-message--danger.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-danger)}.mg-c-message.mg-c-message--danger.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-message.mg-c-message--info .mg-c-message__icon{color:var(--mg-b-color-info)}.mg-c-message.mg-c-message--info.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-info)}.mg-c-message.mg-c-message--info.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-message.mg-c-message--success .mg-c-message__icon{color:var(--mg-b-color-success)}.mg-c-message.mg-c-message--success.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-success)}.mg-c-message.mg-c-message--success.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-message.mg-c-message--warning .mg-c-message__icon{color:var(--mg-b-color-warning)}.mg-c-message.mg-c-message--warning.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-warning)}.mg-c-message.mg-c-message--warning.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-message ::slotted(*){padding:0;margin:0}.mg-c-message__icon{position:absolute;top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2);left:calc(var(--mg-b-size-4) + var(--mg-b-size-8));line-height:1}.mg-c-message__content{display:flex;flex-wrap:wrap;padding:0 var(--mg-b-size-8) 0 calc(var(--mg-b-size-4) + var(--mg-b-size-8) + var(--mg-b-size-16) + var(--mg-b-size-8));place-content:stretch flex-end}.mg-c-message__content-slot{flex-grow:1;margin:var(--mg-b-size-8) 0}.mg-c-message__content-separator{display:inline-block;width:var(--mg-b-size-40);height:0}.mg-c-message__content-actions-slot{padding:var(--mg-b-size-8) 0;text-align:right}.mg-c-message__bar{position:absolute;top:0;left:0;width:var(--mg-b-size-4);height:100%}.mg-c-message ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}.mg-c-message,.mg-c-message mg-message{max-width:100%}";const Li=Vi;const Bi=class{constructor(i){t(this,i);this.classBase="mg-c-message";this.getIcon=()=>{switch(this.variant){case"info":return"info-circle";case"warning":return"exclamation-triangle";case"success":return"check-circle";case"danger":return"exclamation-circle"}};this.variant="info";this.variantStyle="bar-left";this.classCollection=new l(["mg-c-message"]);this.hasActions=false}watchVariant(t,i){if(!Hi.includes(t)){throw new Error(`<mg-message> prop "variant" must be one of: ${Hi.join(", ")}. Passed value: ${r(t)}.`)}else{if(t!==undefined)this.classCollection.add(`${this.classBase}--${t}`);if(i!==undefined)this.classCollection.delete(`${this.classBase}--${i}`)}}watchVariantStyle(t,i){if(!Ci.includes(t)){throw new Error(`<mg-message> prop "variantStyle" must be one of: ${Ci.join(", ")}. Passed value: ${r(t)}.`)}else{if(t!==undefined)this.classCollection.add(`${this.classBase}--${t}`);if(i!==undefined)this.classCollection.delete(`${this.classBase}--${i}`)}}componentWillLoad(){this.watchVariant(this.variant);this.watchVariantStyle(this.variantStyle);this.hasActions=this.element.querySelector('[slot="actions"]')!==null}render(){return i("div",{key:"9ce1d7b25bf12d974a7b0b296d9d71b9b2c984e1",class:this.classCollection.join()},i("mg-card",{key:"7c7c1d5891d988adc7c5090b02d809aab32565f8"},this.variantStyle==="bar-left"&&i("span",{key:"d6c291fcf93ab6e84ba0288a1a0c4ec405b57e78",class:"mg-c-message__bar"}),i("span",{key:"afc3dcf95dbf4ee96ca1041c54c0d4c37d435601",class:"mg-c-message__icon"},i("mg-icon",{key:"d9b79cb3be22fedee6a04cf43c72641202cc80f7",icon:this.getIcon()})),i("div",{key:"f70d488459d28a464a3714b122b7a708c3562741",class:"mg-c-message__content"},i("span",{key:"d24b0ed1c326cb04bc7944f0c4f1fe19efa3fc9c",class:"mg-c-message__content-slot"},i("slot",{key:"bb491533bc09600c04699d561c7af608ee1567e5"})),this.hasActions&&[i("span",{class:"mg-c-message__content-separator",key:"content-separator"}),i("span",{class:"mg-c-message__content-actions-slot",key:"content-actions-slot"},i("slot",{key:"43547919e1ec8b34f23ea1ad5e75d5b0da23c831",name:"actions"}))])))}get element(){return n(this)}static get watchers(){return{variant:["watchVariant"],variantStyle:["watchVariantStyle"]}}};Bi.style=Li;const Di=["dialog","alertdialog"];const $i="/*!\n * @prop --mg-c-modal-border-radius: Defines the border radius of the modal. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-modal-title-font-size: Defines the font size of the modal title. Default value: `--mg-b-font-size-h3`.\n */:host{--mg-c-card-border-radius:var(--mg-c-modal-border-radius);--mg-c-card-spacing:var(--mg-b-size-16) var(--mg-b-size-24);--mg-c-card-border:none}.mg-c-modal{border:none;background:none}.mg-c-modal[open]{display:flex;padding:var(--mg-b-size-24) var(--mg-b-size-8)}.mg-c-modal::backdrop{background-color:var(--mg-b-color-light);opacity:.85}.mg-c-modal mg-card{display:flex;width:calc(75*var(--mg-b-size-8));max-width:100%;max-height:100%}.mg-c-modal__dialog{position:relative;display:flex;height:fit-content;max-height:100%;flex-direction:column;align-self:center;row-gap:var(--mg-b-size-24)}.mg-c-modal__title{margin:0;font-family:var(--mg-b-font-family-heading);font-size:var(--mg-c-modal-title-font-size);font-weight:600}.mg-c-modal__close-button{height:var(--mg-c-modal-title-font-size);margin-top:calc((var(--mg-b-size-min-height) - var(--mg-c-modal-title-font-size)*var(--mg-b-line-height))/2*-1);margin-right:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2*-1);margin-left:var(--mg-b-size-16);float:right}.mg-c-modal__content{padding:var(--mg-b-size-16);margin:calc(var(--mg-b-size-16)*-1);overflow-y:auto}.mg-c-modal ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const Ei=$i;const Ai=class{constructor(i){t(this,i);this.componentShow=a(this,"component-show",7);this.componentHide=a(this,"component-hide",7);this.titleId="";this.handleClose=()=>{this.open=false};this.identifier=o("mg-modal");this.dialogRole=Di[0];this.modalTitle=undefined;this.closeButton=false;this.open=false;this.hasActions=false;this.classCollection=new l(["mg-c-modal"])}validateDialogRole(t){if(!Di.includes(t))throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${Di.join(", ")}. Passed value: ${r(t)}.`)}validateModalTitle(t){if(!c(t)){throw new Error(`<mg-modal> prop "modalTitle" is required. Passed value: ${r(t)}.`)}}watchOpen(t){if(t){this.dialog.showModal();this.componentShow.emit();document.body.style.overflow="hidden"}else{this.dialog.close();this.componentHide.emit();document.body.style.overflow=this.bodyOverflow}}componentWillLoad(){this.bodyOverflow=document.body.style.overflow;this.messages=s(this.element).messages;this.hasActions=this.element.querySelector('[slot="actions"]')!==null;this.titleId=`${this.identifier}-title`;this.validateModalTitle(this.modalTitle);this.validateDialogRole(this.dialogRole)}componentDidLoad(){this.watchOpen(this.open);this.dialog.addEventListener("close",(()=>{this.open=false}))}render(){return i("dialog",{key:"1b3de14b6dddfc77dc5906353a93689d3af9d8c8",role:this.dialogRole,id:this.identifier,class:this.classCollection.join(),"aria-labelledby":this.titleId,ref:t=>{if(t!==null){this.dialog=t}}},i("mg-card",{key:"e3d8e671d49f39a0173663fbae37f93c50c0a028"},i("div",{key:"249b985c471aca4b06548b7e89f68f94a7ee2976",class:"mg-c-modal__dialog"},i("header",{key:"1c5a329670e1b789c55806a044fa73330582313e",class:"mg-c-modal__header"},this.closeButton&&i("span",{key:"a0d0b831d05ef09e78b31dc579df2c204a38b41a",class:"mg-c-modal__close-button"},i("mg-button",{key:"26d93a8bc8a3fc7578ad4127acad645da28a035c","is-icon":true,variant:"flat",label:this.messages.modal.closeButton,onClick:this.handleClose},i("mg-icon",{key:"adbbd878cf4967f02d636bbf815a79a8fe4c08b1",icon:"cross"}))),i("h1",{key:"274ad2b5d4f030725d6bf6201945d668b9ba056e",class:"mg-c-modal__title",id:this.titleId},this.modalTitle)),i("article",{key:"d0bf1bee2472a49da0826a8013fc7f84262d2b4b",class:"mg-c-modal__content"},i("slot",{key:"83901bde6eeab22c14873e5b8d714826d194cff0"})),this.hasActions&&i("footer",{key:"16ea5be07e639f12373b79be575f9bd142b4c426",class:"mg-c-modal__footer"},i("slot",{key:"ca1204b8f12322795a28cadece382be9001b4684",name:"actions"})))))}get element(){return n(this)}static get watchers(){return{dialogRole:["validateDialogRole"],modalTitle:["validateModalTitle"],open:["watchOpen"]}}};Ai.style=Ei;const qi={NEXT:"next",PREVIOUS:"previous"};const Ti=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-pagination{display:flex;align-items:center;gap:var(--mg-b-spacing-actions)}.mg-c-pagination__page-count{display:flex;align-items:center;gap:var(--mg-b-size-4)}.mg-c-pagination.mg-c-pagination--hide-page-count{gap:0}";const Pi=Ti;const Ii=(t,i,e=1)=>Array.from(Array(Math.ceil((i+1-t)/e)).keys()).map((i=>t+i*e));const Oi=class{constructor(i){t(this,i);this.currentPageChange=a(this,"current-page-change",7);this.goToPage=t=>{this.currentPage=t};this.handleSelect=t=>{const i=Number(t.target.value);this.goToPage(i>0?i:1)};this.handleGoToPage=(t,i)=>{!i&&this.goToPage(t===qi.NEXT?this.currentPage+1:this.currentPage-1)};this.identifier=o("mg-pagination");this.label=undefined;this.hideNavigationLabels=undefined;this.hidePageCount=undefined;this.totalPages=1;this.currentPage=1}validateTotalPages(t){if(t<1){throw new Error(`<mg-pagination> prop "totalPages" must be greater than 0. Passed value: ${r(t)}.`)}}validateCurrentPage(t){if(t<1){throw new Error(`<mg-pagination> prop "currentPage" must be greater than 0. Passed value: ${r(t)}.`)}else if(t>this.totalPages){throw new Error('<mg-pagination> prop "currentPage" can not be greater than total page.')}this.currentPageChange.emit(t)}componentWillLoad(){this.messages=s(this.element).messages;this.validateTotalPages(this.totalPages);this.validateCurrentPage(this.currentPage);if(this.label===undefined||this.label===""){this.label=this.messages.pagination.label}}render(){const t=(t,e)=>i("mg-button",{key:"76bdc93c328042ef6d6d8dafce5a701629f59903",label:this.messages.pagination[`${e}Page`],onClick:()=>this.handleGoToPage(e,t),disabled:t,variant:"flat",isIcon:this.hideNavigationLabels},e===qi.PREVIOUS&&i("mg-icon",{key:"336f048488682bfbdd7510d52519ed495ff5f1b6",icon:"chevron-left"}),!this.hideNavigationLabels&&this.messages.general[e],e===qi.NEXT&&i("mg-icon",{key:"454f119cb4a20e794be2f708e4f4f5df198da114",icon:"chevron-right"}));return i(e,{key:"b260a359ad34cc05ed6304f6d3312dcecc940f1c",hidden:this.totalPages<2},i("nav",{key:"66e2400d787d7decaabf8bb982842fdc07a7be56",role:"navigation","aria-label":this.label,id:this.identifier,class:{"mg-c-pagination":true,"mg-c-pagination--hide-page-count":this.hidePageCount}},t(this.currentPage<=1,qi.PREVIOUS),!this.hidePageCount&&i("div",{key:"9cea1e9d1e65f15a1e96bb36e924c99f0b383348",class:"mg-c-pagination__page-count"},i("mg-input-select",{key:"8232db02df5ce94af250b00ccf000bead9897f88",identifier:`${this.identifier}-select`,items:Ii(1,this.totalPages).map((t=>t.toString())),label:this.messages.pagination.selectPage,"label-hide":true,"on-value-change":this.handleSelect,value:this.currentPage.toString(),"placeholder-hide":true}),i("span",{key:"449f4c3790d159a9703135dd0e9c3e2e09df44a7",class:"mg-u-visually-hidden"},this.messages.pagination.page," ",this.currentPage),"/ ",this.totalPages," ",this.totalPages>1?this.messages.pagination.pages:this.messages.pagination.page),t(this.currentPage>=this.totalPages,qi.NEXT)))}get element(){return n(this)}static get watchers(){return{totalPages:["validateTotalPages"],currentPage:["validateCurrentPage"]}}};Oi.style=Pi;const ji=["text","icon"];const Si=["left","right"];const Wi="/*!\n * @prop --mg-c-panel-border-radius: Defines the border radius of the panel. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-panel-color-background: Defines the background of the panel. Default value: `color-mix(in srgb, var(--mg-b-color-info), white 97%)`.\n * @prop --mg-c-panel-box-shadow: Defines the box shadow of the panel. Default value: `--mg-b-box-shadow`.\n * @prop --mg-c-panel-content-spacing: Defines the padding of the panel content. Default value: `--mg-b-size-16`.\n */:host{--mg-c-card-border:none;--mg-c-card-spacing:0;--mg-c-card-border-radius:var(--mg-c-panel-border-radius);--mg-c-card-color-background:var(--mg-c-panel-color-background);--mg-c-card-box-shadow:var(--mg-c-panel-box-shadow)}.mg-c-panel__header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;padding:0 var(--mg-b-size-4)}.mg-c-panel__header-title,.mg-c-panel__header-content{display:flex;margin:var(--mg-b-size-4) 0}.mg-c-panel__header-content{min-height:var(--mg-b-size-min-height);flex:1 auto;align-items:center;padding-left:var(--mg-b-size-4)}.mg-c-panel__header-title mg-input-text{flex-grow:1;margin-left:var(--mg-b-size-4)}.mg-c-panel__header-title mg-button+mg-button:not([slot=append-input]){margin-left:var(--mg-b-size-4)}.mg-c-panel__header-title.mg-c-panel__header-title--full{flex:1 1 auto}.mg-c-panel__collapse-button-content{--mg-b-font-size:var(--mg-b-font-size-h5);--mg-c-button-font-weight:600}.mg-c-panel__collapse-button-icon.mg-c-panel__collapse-button-icon--reverse{transform:rotate(180deg)}.mg-c-panel__content{padding:var(--mg-c-panel-content-spacing)}.mg-c-panel ::slotted([slot=header-right]){display:flex;flex-wrap:wrap;margin-left:auto;gap:var(--mg-b-spacing-actions)}.mg-c-panel ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const Ri=Wi;const Ui=class{constructor(e){t(this,e);this.titleChange=a(this,"title-change",7);this.expandedChange=a(this,"expanded-change",7);this.toggleIsEditing=()=>{this.isEditing=!this.isEditing};this.handleCollapseButton=()=>{if(!this.expandToggleDisabled)this.expanded=!this.expanded};this.handleEditButton=()=>{this.toggleIsEditing()};this.handleUpdateTitle=t=>{this.updatedPanelTitle=t.detail};this.handleCancelEditButton=()=>{this.updatedPanelTitle=undefined;this.toggleIsEditing()};this.handleValidateEditButton=()=>{if(!this.editInputElement.valid)return;if(this.updatedPanelTitle!==undefined)this.panelTitle=this.updatedPanelTitle;this.toggleIsEditing()};this.renderCollapseButton=()=>i("mg-button",{onClick:this.handleCollapseButton,variant:"flat","aria-expanded":this.expanded.toString(),"aria-controls":`${this.identifier}-content`,disabled:this.expandToggleDisabled,isIcon:this.expandToggleDisplay==="icon",label:this.panelTitle},i("span",{class:"mg-c-panel__collapse-button-content"},i("mg-icon",{icon:"chevron-up",class:{"mg-c-panel__collapse-button-icon":true,"mg-c-panel__collapse-button-icon--reverse":!this.expanded}}),!this.isEditing&&this.expandToggleDisplay!=="icon"&&this.panelTitle));this.renderEditButton=()=>i("mg-button",{key:"edit-button","is-icon":true,variant:"flat",label:this.messages.panel.editLabel,onClick:this.handleEditButton},i("mg-icon",{icon:"pen"}));this.renderEditInput=()=>i("mg-input-text",{key:"edition-input",label:this.messages.panel.editLabel,"label-hide":true,value:this.panelTitle,"onValue-change":this.handleUpdateTitle,characterLeftHide:true,pattern:this.titlePattern,"pattern-error-message":this.titlePatternErrorMessage,identifier:`${this.identifier}-edition-input`,ref:t=>this.editInputElement=t},i("mg-button",{slot:"append-input",label:this.messages.general.cancel,"is-icon":true,variant:"secondary",onClick:this.handleCancelEditButton},i("mg-icon",{icon:"cross"})),i("mg-button",{slot:"append-input",label:this.messages.general.confirm,"is-icon":true,variant:"secondary",onClick:this.handleValidateEditButton},i("mg-icon",{icon:"check"})));this.renderTitle=()=>{const t=[this.renderCollapseButton()];if(this.titleEditable){if(!this.isEditing)t.push(this.renderEditButton());else t.push(this.renderEditInput())}return this.titlePosition==="right"?t.reverse():t};this.renderHeaderChildren=()=>{const t=[i("div",{class:{"mg-c-panel__header-title":true,"mg-c-panel__header-title--full":this.isEditing,"mg-c-panel__header-title--reverse":this.titlePosition==="right"},key:this.panelTitle},this.renderTitle()),i("div",{class:"mg-c-panel__header-content",key:"slot-header"},i("slot",{name:"header-right"}))];return this.titlePosition==="right"?t.reverse():t};this.identifier=o("mg-panel");this.panelTitle=undefined;this.titlePattern=undefined;this.titlePatternErrorMessage=undefined;this.titleEditable=false;this.titlePosition=Si[0];this.expanded=false;this.expandToggleDisplay=ji[0];this.expandToggleDisabled=undefined;this.classCollection=new l(["mg-c-panel"]);this.isEditing=false;this.updatedPanelTitle=undefined}validatePanelTitle(t){if(!c(t))throw new Error(`<mg-panel> prop "panelTitle" is required and must be a string. Passed value: ${r(t)}.`);this.titleChange.emit(t)}validateTitlePattern(t){if(t!==undefined&&!this.titleEditable)throw new Error(`<mg-panel> prop "titleEditable" must be set to "true".`)}validateTitlePosition(t){if(!Si.includes(t))throw new Error(`<mg-panel> prop "titlePosition" must be one of: ${Si.join(", ")}. Passed value: ${r(t)}.`)}handleExpanded(t){this.expandedChange.emit(t)}validateExpandToggleDisplay(t){if(!ji.includes(t))throw new Error(`<mg-panel> prop "expandToggleDisplay" must be one of: ${ji.join(", ")}. Passed value: ${r(t)}.`);if(t==="icon"&&this.titleEditable)this.titleEditable=false}componentWillLoad(){this.messages=s(this.element).messages;this.validateTitlePattern(this.titlePattern);this.validateTitlePattern(this.titlePatternErrorMessage);this.validatePanelTitle(this.panelTitle);this.validateExpandToggleDisplay(this.expandToggleDisplay);this.validateTitlePosition(this.titlePosition)}componentDidRender(){if(this.isEditing)this.editInputElement.setFocus()}render(){const t=`${this.identifier}-header`;return i("section",{key:"3999a8ed86a5b7eb4329e4c2aa9064535f6fad99",class:this.classCollection.join(),id:this.identifier},i("mg-card",{key:"bc777219b2e11f08975d6daa911b237a5a71f0b1"},i("header",{key:"8e740323476aaa2f7c4f10c52b2107f05e156f1a",class:{"mg-c-panel__header":true,"mg-c-panel__header--reverse":this.titlePosition==="right"},id:t},this.renderHeaderChildren()),i("article",{key:"9afe2db9371628027e8c2feff6b11235432f98d2",class:"mg-c-panel__content",id:`${this.identifier}-content`,"aria-labelledby":t,hidden:!this.expanded},i("slot",{key:"3a6592a91938b6dee66e7b59f7a7e490256582eb"}))))}get element(){return n(this)}static get watchers(){return{panelTitle:["validatePanelTitle"],titlePattern:["validateTitlePattern"],titlePatternErrorMessage:["validateTitlePattern"],titlePosition:["validateTitlePosition"],expanded:["handleExpanded"],expandToggleDisplay:["validateExpandToggleDisplay"]}}};Ui.style=Ri;var Ni="top";var Gi="bottom";var Fi="right";var Ki="left";var Yi="auto";var Ji=[Ni,Gi,Fi,Ki];var Xi="start";var Zi="end";var Qi="clippingParents";var te="viewport";var ie="popper";var ee="reference";var ne=Ji.reduce((function(t,i){return t.concat([i+"-"+Xi,i+"-"+Zi])}),[]);var ae=[].concat(Ji,[Yi]).reduce((function(t,i){return t.concat([i,i+"-"+Xi,i+"-"+Zi])}),[]);var oe="beforeRead";var re="read";var se="afterRead";var le="beforeMain";var ce="main";var he="afterMain";var de="beforeWrite";var ge="write";var me="afterWrite";var ue=[oe,re,se,le,ce,he,de,ge,me];function pe(t){return t?(t.nodeName||"").toLowerCase():null}function ve(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var i=t.ownerDocument;return i?i.defaultView||window:window}return t}function fe(t){var i=ve(t).Element;return t instanceof i||t instanceof Element}function be(t){var i=ve(t).HTMLElement;return t instanceof i||t instanceof HTMLElement}function we(t){if(typeof ShadowRoot==="undefined"){return false}var i=ve(t).ShadowRoot;return t instanceof i||t instanceof ShadowRoot}function _e(t){var i=t.state;Object.keys(i.elements).forEach((function(t){var e=i.styles[t]||{};var n=i.attributes[t]||{};var a=i.elements[t];if(!be(a)||!pe(a)){return}Object.assign(a.style,e);Object.keys(n).forEach((function(t){var i=n[t];if(i===false){a.removeAttribute(t)}else{a.setAttribute(t,i===true?"":i)}}))}))}function xe(t){var i=t.state;var e={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(i.elements.popper.style,e.popper);i.styles=e;if(i.elements.arrow){Object.assign(i.elements.arrow.style,e.arrow)}return function(){Object.keys(i.elements).forEach((function(t){var n=i.elements[t];var a=i.attributes[t]||{};var o=Object.keys(i.styles.hasOwnProperty(t)?i.styles[t]:e[t]);var r=o.reduce((function(t,i){t[i]="";return t}),{});if(!be(n)||!pe(n)){return}Object.assign(n.style,r);Object.keys(a).forEach((function(t){n.removeAttribute(t)}))}))}}const ze={name:"applyStyles",enabled:true,phase:"write",fn:_e,effect:xe,requires:["computeStyles"]};function ye(t){return t.split("-")[0]}var ke=Math.max;var Me=Math.min;var He=Math.round;function Ce(){var t=navigator.userAgentData;if(t!=null&&t.brands&&Array.isArray(t.brands)){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function Ve(){return!/^((?!chrome|android).)*safari/i.test(Ce())}function Le(t,i,e){if(i===void 0){i=false}if(e===void 0){e=false}var n=t.getBoundingClientRect();var a=1;var o=1;if(i&&be(t)){a=t.offsetWidth>0?He(n.width)/t.offsetWidth||1:1;o=t.offsetHeight>0?He(n.height)/t.offsetHeight||1:1}var r=fe(t)?ve(t):window,s=r.visualViewport;var l=!Ve()&&e;var c=(n.left+(l&&s?s.offsetLeft:0))/a;var h=(n.top+(l&&s?s.offsetTop:0))/o;var d=n.width/a;var g=n.height/o;return{width:d,height:g,top:h,right:c+d,bottom:h+g,left:c,x:c,y:h}}function Be(t){var i=Le(t);var e=t.offsetWidth;var n=t.offsetHeight;if(Math.abs(i.width-e)<=1){e=i.width}if(Math.abs(i.height-n)<=1){n=i.height}return{x:t.offsetLeft,y:t.offsetTop,width:e,height:n}}function De(t,i){var e=i.getRootNode&&i.getRootNode();if(t.contains(i)){return true}else if(e&&we(e)){var n=i;do{if(n&&t.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function $e(t){return ve(t).getComputedStyle(t)}function Ee(t){return["table","td","th"].indexOf(pe(t))>=0}function Ae(t){return((fe(t)?t.ownerDocument:t.document)||window.document).documentElement}function qe(t){if(pe(t)==="html"){return t}return t.assignedSlot||t.parentNode||(we(t)?t.host:null)||Ae(t)}function Te(t){if(!be(t)||$e(t).position==="fixed"){return null}return t.offsetParent}function Pe(t){var i=/firefox/i.test(Ce());var e=/Trident/i.test(Ce());if(e&&be(t)){var n=$e(t);if(n.position==="fixed"){return null}}var a=qe(t);if(we(a)){a=a.host}while(be(a)&&["html","body"].indexOf(pe(a))<0){var o=$e(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||i&&o.willChange==="filter"||i&&o.filter&&o.filter!=="none"){return a}else{a=a.parentNode}}return null}function Ie(t){var i=ve(t);var e=Te(t);while(e&&Ee(e)&&$e(e).position==="static"){e=Te(e)}if(e&&(pe(e)==="html"||pe(e)==="body"&&$e(e).position==="static")){return i}return e||Pe(t)||i}function Oe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function je(t,i,e){return ke(t,Me(i,e))}function Se(t,i,e){var n=je(t,i,e);return n>e?e:n}function We(){return{top:0,right:0,bottom:0,left:0}}function Re(t){return Object.assign({},We(),t)}function Ue(t,i){return i.reduce((function(i,e){i[e]=t;return i}),{})}var Ne=function t(i,e){i=typeof i==="function"?i(Object.assign({},e.rects,{placement:e.placement})):i;return Re(typeof i!=="number"?i:Ue(i,Ji))};function Ge(t){var i;var e=t.state,n=t.name,a=t.options;var o=e.elements.arrow;var r=e.modifiersData.popperOffsets;var s=ye(e.placement);var l=Oe(s);var c=[Ki,Fi].indexOf(s)>=0;var h=c?"height":"width";if(!o||!r){return}var d=Ne(a.padding,e);var g=Be(o);var m=l==="y"?Ni:Ki;var u=l==="y"?Gi:Fi;var p=e.rects.reference[h]+e.rects.reference[l]-r[l]-e.rects.popper[h];var v=r[l]-e.rects.reference[l];var f=Ie(o);var b=f?l==="y"?f.clientHeight||0:f.clientWidth||0:0;var w=p/2-v/2;var _=d[m];var x=b-g[h]-d[u];var z=b/2-g[h]/2+w;var y=je(_,z,x);var k=l;e.modifiersData[n]=(i={},i[k]=y,i.centerOffset=y-z,i)}function Fe(t){var i=t.state,e=t.options;var n=e.element,a=n===void 0?"[data-popper-arrow]":n;if(a==null){return}if(typeof a==="string"){a=i.elements.popper.querySelector(a);if(!a){return}}if(!De(i.elements.popper,a)){return}i.elements.arrow=a}const Ke={name:"arrow",enabled:true,phase:"main",fn:Ge,effect:Fe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ye(t){return t.split("-")[1]}var Je={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xe(t,i){var e=t.x,n=t.y;var a=i.devicePixelRatio||1;return{x:He(e*a)/a||0,y:He(n*a)/a||0}}function Ze(t){var i;var e=t.popper,n=t.popperRect,a=t.placement,o=t.variation,r=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,d=t.isFixed;var g=r.x,m=g===void 0?0:g,u=r.y,p=u===void 0?0:u;var v=typeof h==="function"?h({x:m,y:p}):{x:m,y:p};m=v.x;p=v.y;var f=r.hasOwnProperty("x");var b=r.hasOwnProperty("y");var w=Ki;var _=Ni;var x=window;if(c){var z=Ie(e);var y="clientHeight";var k="clientWidth";if(z===ve(e)){z=Ae(e);if($e(z).position!=="static"&&s==="absolute"){y="scrollHeight";k="scrollWidth"}}z=z;if(a===Ni||(a===Ki||a===Fi)&&o===Zi){_=Gi;var M=d&&z===x&&x.visualViewport?x.visualViewport.height:z[y];p-=M-n.height;p*=l?1:-1}if(a===Ki||(a===Ni||a===Gi)&&o===Zi){w=Fi;var H=d&&z===x&&x.visualViewport?x.visualViewport.width:z[k];m-=H-n.width;m*=l?1:-1}}var C=Object.assign({position:s},c&&Je);var V=h===true?Xe({x:m,y:p},ve(e)):{x:m,y:p};m=V.x;p=V.y;if(l){var L;return Object.assign({},C,(L={},L[_]=b?"0":"",L[w]=f?"0":"",L.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+p+"px)":"translate3d("+m+"px, "+p+"px, 0)",L))}return Object.assign({},C,(i={},i[_]=b?p+"px":"",i[w]=f?m+"px":"",i.transform="",i))}function Qe(t){var i=t.state,e=t.options;var n=e.gpuAcceleration,a=n===void 0?true:n,o=e.adaptive,r=o===void 0?true:o,s=e.roundOffsets,l=s===void 0?true:s;var c={placement:ye(i.placement),variation:Ye(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:a,isFixed:i.options.strategy==="fixed"};if(i.modifiersData.popperOffsets!=null){i.styles.popper=Object.assign({},i.styles.popper,Ze(Object.assign({},c,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:r,roundOffsets:l})))}if(i.modifiersData.arrow!=null){i.styles.arrow=Object.assign({},i.styles.arrow,Ze(Object.assign({},c,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:l})))}i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}const tn={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Qe,data:{}};var en={passive:true};function nn(t){var i=t.state,e=t.instance,n=t.options;var a=n.scroll,o=a===void 0?true:a,r=n.resize,s=r===void 0?true:r;var l=ve(i.elements.popper);var c=[].concat(i.scrollParents.reference,i.scrollParents.popper);if(o){c.forEach((function(t){t.addEventListener("scroll",e.update,en)}))}if(s){l.addEventListener("resize",e.update,en)}return function(){if(o){c.forEach((function(t){t.removeEventListener("scroll",e.update,en)}))}if(s){l.removeEventListener("resize",e.update,en)}}}const an={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:nn,data:{}};var on={left:"right",right:"left",bottom:"top",top:"bottom"};function rn(t){return t.replace(/left|right|bottom|top/g,(function(t){return on[t]}))}var sn={start:"end",end:"start"};function ln(t){return t.replace(/start|end/g,(function(t){return sn[t]}))}function cn(t){var i=ve(t);var e=i.pageXOffset;var n=i.pageYOffset;return{scrollLeft:e,scrollTop:n}}function hn(t){return Le(Ae(t)).left+cn(t).scrollLeft}function dn(t,i){var e=ve(t);var n=Ae(t);var a=e.visualViewport;var o=n.clientWidth;var r=n.clientHeight;var s=0;var l=0;if(a){o=a.width;r=a.height;var c=Ve();if(c||!c&&i==="fixed"){s=a.offsetLeft;l=a.offsetTop}}return{width:o,height:r,x:s+hn(t),y:l}}function gn(t){var i;var e=Ae(t);var n=cn(t);var a=(i=t.ownerDocument)==null?void 0:i.body;var o=ke(e.scrollWidth,e.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0);var r=ke(e.scrollHeight,e.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);var s=-n.scrollLeft+hn(t);var l=-n.scrollTop;if($e(a||e).direction==="rtl"){s+=ke(e.clientWidth,a?a.clientWidth:0)-o}return{width:o,height:r,x:s,y:l}}function mn(t){var i=$e(t),e=i.overflow,n=i.overflowX,a=i.overflowY;return/auto|scroll|overlay|hidden/.test(e+a+n)}function un(t){if(["html","body","#document"].indexOf(pe(t))>=0){return t.ownerDocument.body}if(be(t)&&mn(t)){return t}return un(qe(t))}function pn(t,i){var e;if(i===void 0){i=[]}var n=un(t);var a=n===((e=t.ownerDocument)==null?void 0:e.body);var o=ve(n);var r=a?[o].concat(o.visualViewport||[],mn(n)?n:[]):n;var s=i.concat(r);return a?s:s.concat(pn(qe(r)))}function vn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function fn(t,i){var e=Le(t,false,i==="fixed");e.top=e.top+t.clientTop;e.left=e.left+t.clientLeft;e.bottom=e.top+t.clientHeight;e.right=e.left+t.clientWidth;e.width=t.clientWidth;e.height=t.clientHeight;e.x=e.left;e.y=e.top;return e}function bn(t,i,e){return i===te?vn(dn(t,e)):fe(i)?fn(i,e):vn(gn(Ae(t)))}function wn(t){var i=pn(qe(t));var e=["absolute","fixed"].indexOf($e(t).position)>=0;var n=e&&be(t)?Ie(t):t;if(!fe(n)){return[]}return i.filter((function(t){return fe(t)&&De(t,n)&&pe(t)!=="body"}))}function _n(t,i,e,n){var a=i==="clippingParents"?wn(t):[].concat(i);var o=[].concat(a,[e]);var r=o[0];var s=o.reduce((function(i,e){var a=bn(t,e,n);i.top=ke(a.top,i.top);i.right=Me(a.right,i.right);i.bottom=Me(a.bottom,i.bottom);i.left=ke(a.left,i.left);return i}),bn(t,r,n));s.width=s.right-s.left;s.height=s.bottom-s.top;s.x=s.left;s.y=s.top;return s}function xn(t){var i=t.reference,e=t.element,n=t.placement;var a=n?ye(n):null;var o=n?Ye(n):null;var r=i.x+i.width/2-e.width/2;var s=i.y+i.height/2-e.height/2;var l;switch(a){case Ni:l={x:r,y:i.y-e.height};break;case Gi:l={x:r,y:i.y+i.height};break;case Fi:l={x:i.x+i.width,y:s};break;case Ki:l={x:i.x-e.width,y:s};break;default:l={x:i.x,y:i.y}}var c=a?Oe(a):null;if(c!=null){var h=c==="y"?"height":"width";switch(o){case Xi:l[c]=l[c]-(i[h]/2-e[h]/2);break;case Zi:l[c]=l[c]+(i[h]/2-e[h]/2);break}}return l}function zn(t,i){if(i===void 0){i={}}var e=i,n=e.placement,a=n===void 0?t.placement:n,o=e.strategy,r=o===void 0?t.strategy:o,s=e.boundary,l=s===void 0?Qi:s,c=e.rootBoundary,h=c===void 0?te:c,d=e.elementContext,g=d===void 0?ie:d,m=e.altBoundary,u=m===void 0?false:m,p=e.padding,v=p===void 0?0:p;var f=Re(typeof v!=="number"?v:Ue(v,Ji));var b=g===ie?ee:ie;var w=t.rects.popper;var _=t.elements[u?b:g];var x=_n(fe(_)?_:_.contextElement||Ae(t.elements.popper),l,h,r);var z=Le(t.elements.reference);var y=xn({reference:z,element:w,strategy:"absolute",placement:a});var k=vn(Object.assign({},w,y));var M=g===ie?k:z;var H={top:x.top-M.top+f.top,bottom:M.bottom-x.bottom+f.bottom,left:x.left-M.left+f.left,right:M.right-x.right+f.right};var C=t.modifiersData.offset;if(g===ie&&C){var V=C[a];Object.keys(H).forEach((function(t){var i=[Fi,Gi].indexOf(t)>=0?1:-1;var e=[Ni,Gi].indexOf(t)>=0?"y":"x";H[t]+=V[e]*i}))}return H}function yn(t,i){if(i===void 0){i={}}var e=i,n=e.placement,a=e.boundary,o=e.rootBoundary,r=e.padding,s=e.flipVariations,l=e.allowedAutoPlacements,c=l===void 0?ae:l;var h=Ye(n);var d=h?s?ne:ne.filter((function(t){return Ye(t)===h})):Ji;var g=d.filter((function(t){return c.indexOf(t)>=0}));if(g.length===0){g=d}var m=g.reduce((function(i,e){i[e]=zn(t,{placement:e,boundary:a,rootBoundary:o,padding:r})[ye(e)];return i}),{});return Object.keys(m).sort((function(t,i){return m[t]-m[i]}))}function kn(t){if(ye(t)===Yi){return[]}var i=rn(t);return[ln(t),i,ln(i)]}function Mn(t){var i=t.state,e=t.options,n=t.name;if(i.modifiersData[n]._skip){return}var a=e.mainAxis,o=a===void 0?true:a,r=e.altAxis,s=r===void 0?true:r,l=e.fallbackPlacements,c=e.padding,h=e.boundary,d=e.rootBoundary,g=e.altBoundary,m=e.flipVariations,u=m===void 0?true:m,p=e.allowedAutoPlacements;var v=i.options.placement;var f=ye(v);var b=f===v;var w=l||(b||!u?[rn(v)]:kn(v));var _=[v].concat(w).reduce((function(t,e){return t.concat(ye(e)===Yi?yn(i,{placement:e,boundary:h,rootBoundary:d,padding:c,flipVariations:u,allowedAutoPlacements:p}):e)}),[]);var x=i.rects.reference;var z=i.rects.popper;var y=new Map;var k=true;var M=_[0];for(var H=0;H<_.length;H++){var C=_[H];var V=ye(C);var L=Ye(C)===Xi;var B=[Ni,Gi].indexOf(V)>=0;var D=B?"width":"height";var $=zn(i,{placement:C,boundary:h,rootBoundary:d,altBoundary:g,padding:c});var E=B?L?Fi:Ki:L?Gi:Ni;if(x[D]>z[D]){E=rn(E)}var A=rn(E);var q=[];if(o){q.push($[V]<=0)}if(s){q.push($[E]<=0,$[A]<=0)}if(q.every((function(t){return t}))){M=C;k=false;break}y.set(C,q)}if(k){var T=u?3:1;var P=function t(i){var e=_.find((function(t){var e=y.get(t);if(e){return e.slice(0,i).every((function(t){return t}))}}));if(e){M=e;return"break"}};for(var I=T;I>0;I--){var O=P(I);if(O==="break")break}}if(i.placement!==M){i.modifiersData[n]._skip=true;i.placement=M;i.reset=true}}const Hn={name:"flip",enabled:true,phase:"main",fn:Mn,requiresIfExists:["offset"],data:{_skip:false}};function Cn(t,i,e){if(e===void 0){e={x:0,y:0}}return{top:t.top-i.height-e.y,right:t.right-i.width+e.x,bottom:t.bottom-i.height+e.y,left:t.left-i.width-e.x}}function Vn(t){return[Ni,Fi,Gi,Ki].some((function(i){return t[i]>=0}))}function Ln(t){var i=t.state,e=t.name;var n=i.rects.reference;var a=i.rects.popper;var o=i.modifiersData.preventOverflow;var r=zn(i,{elementContext:"reference"});var s=zn(i,{altBoundary:true});var l=Cn(r,n);var c=Cn(s,a,o);var h=Vn(l);var d=Vn(c);i.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d};i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const Bn={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:Ln};function Dn(t,i,e){var n=ye(t);var a=[Ki,Ni].indexOf(n)>=0?-1:1;var o=typeof e==="function"?e(Object.assign({},i,{placement:t})):e,r=o[0],s=o[1];r=r||0;s=(s||0)*a;return[Ki,Fi].indexOf(n)>=0?{x:s,y:r}:{x:r,y:s}}function $n(t){var i=t.state,e=t.options,n=t.name;var a=e.offset,o=a===void 0?[0,0]:a;var r=ae.reduce((function(t,e){t[e]=Dn(e,i.rects,o);return t}),{});var s=r[i.placement],l=s.x,c=s.y;if(i.modifiersData.popperOffsets!=null){i.modifiersData.popperOffsets.x+=l;i.modifiersData.popperOffsets.y+=c}i.modifiersData[n]=r}const En={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:$n};function An(t){var i=t.state,e=t.name;i.modifiersData[e]=xn({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}const qn={name:"popperOffsets",enabled:true,phase:"read",fn:An,data:{}};function Tn(t){return t==="x"?"y":"x"}function Pn(t){var i=t.state,e=t.options,n=t.name;var a=e.mainAxis,o=a===void 0?true:a,r=e.altAxis,s=r===void 0?false:r,l=e.boundary,c=e.rootBoundary,h=e.altBoundary,d=e.padding,g=e.tether,m=g===void 0?true:g,u=e.tetherOffset,p=u===void 0?0:u;var v=zn(i,{boundary:l,rootBoundary:c,padding:d,altBoundary:h});var f=ye(i.placement);var b=Ye(i.placement);var w=!b;var _=Oe(f);var x=Tn(_);var z=i.modifiersData.popperOffsets;var y=i.rects.reference;var k=i.rects.popper;var M=typeof p==="function"?p(Object.assign({},i.rects,{placement:i.placement})):p;var H=typeof M==="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M);var C=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null;var V={x:0,y:0};if(!z){return}if(o){var L;var B=_==="y"?Ni:Ki;var D=_==="y"?Gi:Fi;var $=_==="y"?"height":"width";var E=z[_];var A=E+v[B];var q=E-v[D];var T=m?-k[$]/2:0;var P=b===Xi?y[$]:k[$];var I=b===Xi?-k[$]:-y[$];var O=i.elements.arrow;var j=m&&O?Be(O):{width:0,height:0};var S=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:We();var W=S[B];var R=S[D];var U=je(0,y[$],j[$]);var N=w?y[$]/2-T-U-W-H.mainAxis:P-U-W-H.mainAxis;var G=w?-y[$]/2+T+U+R+H.mainAxis:I+U+R+H.mainAxis;var F=i.elements.arrow&&Ie(i.elements.arrow);var K=F?_==="y"?F.clientTop||0:F.clientLeft||0:0;var Y=(L=C==null?void 0:C[_])!=null?L:0;var J=E+N-Y-K;var X=E+G-Y;var Z=je(m?Me(A,J):A,E,m?ke(q,X):q);z[_]=Z;V[_]=Z-E}if(s){var Q;var tt=_==="x"?Ni:Ki;var it=_==="x"?Gi:Fi;var et=z[x];var nt=x==="y"?"height":"width";var at=et+v[tt];var ot=et-v[it];var rt=[Ni,Ki].indexOf(f)!==-1;var st=(Q=C==null?void 0:C[x])!=null?Q:0;var lt=rt?at:et-y[nt]-k[nt]-st+H.altAxis;var ct=rt?et+y[nt]+k[nt]-st-H.altAxis:ot;var ht=m&&rt?Se(lt,et,ct):je(m?lt:at,et,m?ct:ot);z[x]=ht;V[x]=ht-et}i.modifiersData[n]=V}const In={name:"preventOverflow",enabled:true,phase:"main",fn:Pn,requiresIfExists:["offset"]};function On(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function jn(t){if(t===ve(t)||!be(t)){return cn(t)}else{return On(t)}}function Sn(t){var i=t.getBoundingClientRect();var e=He(i.width)/t.offsetWidth||1;var n=He(i.height)/t.offsetHeight||1;return e!==1||n!==1}function Wn(t,i,e){if(e===void 0){e=false}var n=be(i);var a=be(i)&&Sn(i);var o=Ae(i);var r=Le(t,a,e);var s={scrollLeft:0,scrollTop:0};var l={x:0,y:0};if(n||!n&&!e){if(pe(i)!=="body"||mn(o)){s=jn(i)}if(be(i)){l=Le(i,true);l.x+=i.clientLeft;l.y+=i.clientTop}else if(o){l.x=hn(o)}}return{x:r.left+s.scrollLeft-l.x,y:r.top+s.scrollTop-l.y,width:r.width,height:r.height}}function Rn(t){var i=new Map;var e=new Set;var n=[];t.forEach((function(t){i.set(t.name,t)}));function a(t){e.add(t.name);var o=[].concat(t.requires||[],t.requiresIfExists||[]);o.forEach((function(t){if(!e.has(t)){var n=i.get(t);if(n){a(n)}}}));n.push(t)}t.forEach((function(t){if(!e.has(t.name)){a(t)}}));return n}function Un(t){var i=Rn(t);return ue.reduce((function(t,e){return t.concat(i.filter((function(t){return t.phase===e})))}),[])}function Nn(t){var i;return function(){if(!i){i=new Promise((function(e){Promise.resolve().then((function(){i=undefined;e(t())}))}))}return i}}function Gn(t){var i=t.reduce((function(t,i){var e=t[i.name];t[i.name]=e?Object.assign({},e,i,{options:Object.assign({},e.options,i.options),data:Object.assign({},e.data,i.data)}):i;return t}),{});return Object.keys(i).map((function(t){return i[t]}))}var Fn={placement:"bottom",modifiers:[],strategy:"absolute"};function Kn(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++){i[e]=arguments[e]}return!i.some((function(t){return!(t&&typeof t.getBoundingClientRect==="function")}))}function Yn(t){if(t===void 0){t={}}var i=t,e=i.defaultModifiers,n=e===void 0?[]:e,a=i.defaultOptions,o=a===void 0?Fn:a;return function t(i,e,a){if(a===void 0){a=o}var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fn,o),modifiersData:{},elements:{reference:i,popper:e},attributes:{},styles:{}};var s=[];var l=false;var c={state:r,setOptions:function t(a){var s=typeof a==="function"?a(r.options):a;d();r.options=Object.assign({},o,r.options,s);r.scrollParents={reference:fe(i)?pn(i):i.contextElement?pn(i.contextElement):[],popper:pn(e)};var l=Un(Gn([].concat(n,r.options.modifiers)));r.orderedModifiers=l.filter((function(t){return t.enabled}));h();return c.update()},forceUpdate:function t(){if(l){return}var i=r.elements,e=i.reference,n=i.popper;if(!Kn(e,n)){return}r.rects={reference:Wn(e,Ie(n),r.options.strategy==="fixed"),popper:Be(n)};r.reset=false;r.placement=r.options.placement;r.orderedModifiers.forEach((function(t){return r.modifiersData[t.name]=Object.assign({},t.data)}));for(var a=0;a<r.orderedModifiers.length;a++){if(r.reset===true){r.reset=false;a=-1;continue}var o=r.orderedModifiers[a],s=o.fn,h=o.options,d=h===void 0?{}:h,g=o.name;if(typeof s==="function"){r=s({state:r,options:d,name:g,instance:c})||r}}},update:Nn((function(){return new Promise((function(t){c.forceUpdate();t(r)}))})),destroy:function t(){d();l=true}};if(!Kn(i,e)){return c}c.setOptions(a).then((function(t){if(!l&&a.onFirstUpdate){a.onFirstUpdate(t)}}));function h(){r.orderedModifiers.forEach((function(t){var i=t.name,e=t.options,n=e===void 0?{}:e,a=t.effect;if(typeof a==="function"){var o=a({state:r,name:i,instance:c,options:n});var l=function t(){};s.push(o||l)}}))}function d(){s.forEach((function(t){return t()}));s=[]}return c}}var Jn=[an,qn,tn,ze,En,Hn,In,Ke,Bn];var Xn=Yn({defaultModifiers:Jn});const Zn="/*!\n * @prop --mg-c-popover-color-background: Defines the background color of the popover. Default value: `--mg-b-color-light`.\n * @prop --mg-c-popover-color-text: Defines the font color of the popover. Default value: `--mg-b-color-font-dark`.\n * @prop --mg-c-popover-title-font-size: Defines the font size of the popover title. Default value: `--mg-b-font-size-h5`.\n * @prop --mg-c-popover-padding-vertical: Defines the vertical padding of the popover. Default value: `unset`, fallback to `--mg-b-size-16`.\n * @prop --mg-c-popover-padding-horizontal: Defines the horizontal padding of the popover. Default value: `unset`, fallback to `--mg-b-size-16`.\n * @prop --mg-c-popover-max-width: Defines the max-width of the popover. Default value: `--mg-b-size-floating-element-max-width`.\n * @prop --mg-c-popover-min-width: Defines the min-width of the popover. Default value: `unset`.\n */:host{--mg-c-card-spacing:var(--mg-c-popover-padding-vertical, var(--mg-b-size-16)) var(--mg-c-popover-padding-horizontal, var(--mg-b-size-16));--mg-c-card-border:none;--mg-c-card-border-radius:var(--mg-b-size-radius);--mg-c-card-color-background:var(--mg-c-popover-color-background);position:relative;display:contents}:host::slotted(*){display:inline-block}";const Qn=Zn;const ta=class{constructor(i){t(this,i);this.displayChange=a(this,"display-change",7);this.clickOutside=t=>{if(!this.disabled&&t.target.closest("mg-popover")!==this.element&&t.target.closest(`[data-mg-popover-guard="${this.identifier}"]`)===null){this.display=false}};this.show=()=>{this.mgPopover.dataset.show="";this.setPopperListeners(true);setTimeout((()=>{this.manageClickOutsideListeners("addEventListener")}))};this.hide=()=>{this.mgPopover.removeAttribute("data-show");this.setPopperListeners(false);this.manageClickOutsideListeners("removeEventListener")};this.setPopperListeners=t=>{this.popper.setOptions((i=>Object.assign(Object.assign({},i),{modifiers:[...i.modifiers,{name:"eventListeners",enabled:t}]})))};this.manageClickOutsideListeners=t=>{var i,e;const n=Array.from(((e=(i=document.querySelector(`[data-mg-popover-guard="${this.identifier}"]`))===null||i===void 0?void 0:i.shadowRoot)===null||e===void 0?void 0:e.children)||new Set);[...n,...this.windows].forEach((i=>{i[t]("click",this.clickOutside,false)}))};this.handleHideContent=()=>{this.display=false};this.renderPopoverContent=()=>{const t=this.element.querySelector("mg-popover-content");if(t===null){this.mgPopoverContent=document.createElement("mg-popover-content");this.mgPopoverContent.setAttribute("slot","content");this.mgPopoverContent.setAttribute("id",this.identifier);this.mgPopoverContent.addEventListener("hide-content",this.handleHideContent);const t=document.createElement("div");t.setAttribute("slot","arrow");t.dataset.popperArrow="";this.mgPopoverContent.appendChild(t);['[slot="title"]','[slot="content"]:not(mg-popover-content)'].forEach((t=>{Array.from(this.element.querySelectorAll(t)).forEach((t=>{this.mgPopoverContent.appendChild(t)}))}));this.element.appendChild(this.mgPopoverContent)}else{t.setAttribute("id",this.identifier)}};this.identifier=o("mg-popover");this.placement="bottom";this.arrowHide=false;this.closeButton=false;this.display=false;this.disabled=false}validateIdentifier(){this.renderPopoverContent()}validateArrowHide(t){if(t)this.mgPopoverContent.dataset.arrowHide="";else delete this.mgPopoverContent.dataset.arrowHide}validateCloseButton(t){this.mgPopoverContent.closeButton=t}handleDisplay(t){if(t){this.show()}else{this.hide()}this.displayChange.emit(t)}componentDidUpdate(){this.popper.update()}componentWillLoad(){this.windows=_(window);this.renderPopoverContent();this.validateCloseButton(this.closeButton);this.validateIdentifier();this.validateArrowHide(this.arrowHide)}componentDidLoad(){this.mgPopover=this.element.querySelector(`#${this.identifier}`);const t=this.element.querySelector(":not([slot])");t.setAttribute("aria-controls",this.identifier);t.setAttribute("aria-expanded",`${this.display}`);const i=[];if(this.element.dataset.fallbackPlacement!==undefined){i.push(this.element.dataset.fallbackPlacement)}this.popper=Xn(t,this.mgPopover,{placement:this.placement,strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"flip",options:{fallbackPlacements:[...i,"auto"]}}]});[t,this.element.querySelector("mg-popover-content")].forEach((t=>{new ResizeObserver((()=>{this.popper.update()})).observe(t)}));t.addEventListener("click",(()=>{if(!this.disabled)this.display=!this.display}));this.element.addEventListener("keydown",(i=>{if(!this.disabled&&i.code==="Escape"){this.display=false;t.focus()}}));this.handleDisplay(this.display)}render(){return i(e,{key:"15fa5513044a120adeb819495d416812bb4ffcbd"},i("slot",{key:"12494b7755e17c52358b520fca56fdf9d73916a0"}),i("slot",{key:"75476669b6b75c9325e0142dac613bdb8140ff17",name:"content"}))}get element(){return n(this)}static get watchers(){return{identifier:["validateIdentifier"],arrowHide:["validateArrowHide"],closeButton:["validateCloseButton"],display:["handleDisplay"]}}};ta.style=Qn;const ia=':host{position:relative;z-index:2000;display:none;padding:var(--mg-b-size-8);color:var(--mg-c-popover-color-text)}:host([data-show]){display:block}:host([data-popper-placement^=left-start]),:host([data-popper-placement^=left-end]),:host([data-popper-placement^=right-start]),:host([data-popper-placement^=right-end]){padding:0 var(--mg-b-size-8)}.mg-c-popover-content{--mg-c-card-max-width:var(--mg-c-popover-max-width);--mg-c-card-min-width:var(--mg-c-popover-min-width)}.mg-c-popover-content mg-button{margin-top:calc(-1*(var(--mg-b-size-min-height) - var(--mg-c-popover-title-font-size)*var(--mg-b-line-height))/2);margin-right:calc(-1*(var(--mg-b-size-min-height) - var(--mg-b-size-16))/2);margin-left:var(--mg-b-size-32);float:right}.mg-c-popover-content__title ::slotted([slot=title]){margin:0 0 var(--mg-b-size-8) !important;font-size:var(--mg-c-popover-title-font-size) !important;font-weight:600 !important}.mg-c-popover-content ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}:host([data-popper-placement^=top][data-arrow-hide]){padding-bottom:0}:host([data-popper-placement^=bottom][data-arrow-hide]){padding-top:0}:host([data-popper-placement$=end][data-arrow-hide]),:host([data-popper-placement^=left][data-arrow-hide]){padding-right:0}:host([data-popper-placement$=start][data-arrow-hide]),:host([data-popper-placement^=right][data-arrow-hide]){padding-left:0}::slotted([slot=arrow]){position:absolute;width:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius) + 2*var(--mg-b-size-8));height:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius) + 2*var(--mg-b-size-8));visibility:hidden}::slotted([slot=arrow])::before{position:absolute;content:"";visibility:visible}:host([data-arrow-hide]) ::slotted([slot=arrow]){display:none}:host([data-popper-placement^=top]) ::slotted([slot=arrow]),:host([data-popper-placement^=bottom]) ::slotted([slot=arrow]){height:var(--mg-b-size-8)}:host([data-popper-placement^=top]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=bottom]) ::slotted([slot=arrow])::before{left:calc(var(--mg-c-card-border-radius) + var(--mg-b-size-8));border-right:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0);border-left:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0)}:host([data-popper-placement^=top]) ::slotted([slot=arrow]){bottom:var(--mg-b-size-border);filter:drop-shadow(0 0.5rem 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=top]) ::slotted([slot=arrow])::before{border-top:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=bottom]) ::slotted([slot=arrow]){top:var(--mg-b-size-border);filter:drop-shadow(0 -0.5rem 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=bottom]) ::slotted([slot=arrow])::before{border-bottom:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=left]) ::slotted([slot=arrow]),:host([data-popper-placement^=right]) ::slotted([slot=arrow]){width:var(--mg-b-size-8)}:host([data-popper-placement^=left]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=right]) ::slotted([slot=arrow])::before{top:calc(var(--mg-c-card-border-radius) + var(--mg-b-size-8));border-top:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0);border-bottom:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0)}:host([data-popper-placement^=left]) ::slotted([slot=arrow]){right:var(--mg-b-size-border);filter:drop-shadow(0.5rem 0 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=left]) ::slotted([slot=arrow])::before{border-left:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=right]) ::slotted([slot=arrow]){left:var(--mg-b-size-border);filter:drop-shadow(-0.5rem 0 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=right]) ::slotted([slot=arrow])::before{border-right:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=left-start]) ::slotted([slot=arrow]),:host([data-popper-placement^=left-end]) ::slotted([slot=arrow]),:host([data-popper-placement^=right-start]) ::slotted([slot=arrow]),:host([data-popper-placement^=right-end]) ::slotted([slot=arrow]){height:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius))}:host([data-popper-placement^=left-start]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=left-end]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=right-start]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=right-end]) ::slotted([slot=arrow])::before{top:var(--mg-c-card-border-radius)}';const ea=ia;const na=class{constructor(i){t(this,i);this.hideContent=a(this,"hide-content",7);this.handleCloseButton=()=>{this.hideContent.emit()};this.closeButton=false;this.classCollection=new l(["mg-c-popover-content"])}componentWillLoad(){this.messages=s(this.element).messages}componentDidLoad(){const t=["h1","h2","h3","h4","h5","h6"];const i=this.element.querySelector('[slot="title"]');if(i&&!d(i,t)){throw new Error(`<mg-popover> Slotted title must be a heading: ${t.join(", ")}.`)}}render(){return i(e,{key:"8d2dd7d21518de744c18f0280b7b418f3a76acca"},i("mg-card",{key:"8beab7c9fb692c1983515709a1ee888dc7e5157a",class:this.classCollection.join()},this.closeButton&&i("mg-button",{key:"e636569be26b0c741e0b03e806787d91b47ded5c","is-icon":true,variant:"flat",label:this.messages.general.close,onClick:this.handleCloseButton},i("mg-icon",{key:"3edc717cbe542494d892566c182883e20b1ca4cb",icon:"cross"})),i("div",{key:"d18525218972d92b6932984edb50844658e12970",class:"mg-c-popover-content__title"},i("slot",{key:"2cceb41fd4ebb00b889e71cab211431e5894d04c",name:"title"})),i("slot",{key:"a6615d9d7c85b32fb63d3d89db02fae2f8d5c1b2",name:"content"})),i("slot",{key:"0ff4bf72de19a3d56aafb64391cfc276d70e2f18",name:"arrow"}))}get element(){return n(this)}};na.style=ea;const aa=".mg-c-skip-links{position:absolute;display:flex;min-height:var(--mg-b-size-56);align-items:center;background:var(--mg-b-color-light);opacity:0;transform:translateY(-100%)}.mg-c-skip-links:focus-within{position:relative;opacity:1;transform:translateY(0)}.mg-c-skip-links__list{display:flex;flex-wrap:wrap;align-items:center;padding:0 var(--mg-b-size-16);margin:0;gap:var(--mg-b-spacing-actions);list-style:none}.mg-c-skip-links__link{display:inline-block;padding:var(--mg-b-size-8) var(--mg-b-size-16);color:var(--mg-b-color-dark)}.mg-c-skip-links__link:hover{background:hsl(var(--mg-b-color-dark-h) var(--mg-b-color-dark-s) var(--mg-b-color-dark-l)/10%)}";const oa=aa;const ra=class{constructor(i){t(this,i);this.goToAnchor=a(this,"go-to-anchor",7);this.handleLinkCLick=t=>{t.currentTarget.blur();this.goToAnchor.emit(t.currentTarget.getAttribute("href"))};this.links=undefined}validateLinks(t){if(t===undefined||t.length===0||t.some((t=>!c(t.href)||!t.href.startsWith("#")||!c(t.label)))){throw new Error(`<mg-skip-links> prop "links": Cannot be empty and each link must contains an href starting with a "#" and a non empty label attributes.`)}}componentWillLoad(){this.validateLinks(this.links);this.messages=s(this.element).messages}render(){return i("nav",{key:"dc5eeedabd3189f40a246bd5fe6da930928e3f22",class:"mg-c-skip-links",role:"navigation","aria-label":this.messages.skipLinks.navLabel},i("ul",{key:"178d8c46d62d8db10d43d6609efb15cbf429c207",class:"mg-c-skip-links__list",role:"list"},this.links.map((t=>i("li",{key:t.href},i("a",{class:"mg-c-skip-links__link",href:t.href,onClick:this.handleLinkCLick},t.label))))))}get element(){return n(this)}static get watchers(){return{links:["validateLinks"]}}};ra.style=oa;const sa={VISIBLE:"visible",HIDDEN:"hidden",DISABLED:"disabled",ACTIVE:"active"};const la=["medium","large"];const ca="/*!\n * @prop --mg-c-tabs-color: Defines tabs global color, used for bottom line and active tabs. Default value: `--mg-b-color-app`.\n * @prop --mg-c-tabs-color-text: Defines tabs text color. Unset by default, fallback on `--mg-b-color-dark`.\n */.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium{padding:var(--mg-b-size-12) var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button,.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button ::slotted([slot=label]),.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button ::slotted([slot=metadata]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium ::slotted([slot=label]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium ::slotted([slot=metadata]){font-size:var(--mg-b-font-size)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--horizontal,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium.mg-c-tabs__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--vertical,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium.mg-c-tabs__navigation-button--vertical{padding-left:var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large{padding:var(--mg-b-size-16) var(--mg-b-size-32)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button,.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button ::slotted([slot=label]),.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button ::slotted([slot=metadata]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large ::slotted([slot=label]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--horizontal,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large.mg-c-tabs__navigation-button--horizontal{padding-bottom:var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--vertical,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large.mg-c-tabs__navigation-button--vertical{padding-left:var(--mg-b-size-32)}.mg-c-tabs__navigation-button{display:flex;box-sizing:border-box;align-items:center;border:none;background-color:unset;color:var(--mg-c-tabs-color-text, var(--mg-b-color-dark));column-gap:var(--mg-c-tabs-navigation-button-column-gap, var(--mg-b-size-8));cursor:pointer;font-family:var(--mg-b-font-family);font-weight:400;line-height:var(--mg-b-line-height);text-decoration:none;white-space:nowrap}.mg-c-tabs__navigation-button:disabled,.mg-c-tabs__navigation-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-tabs__navigation-button:focus-visible{z-index:10}.mg-c-tabs__navigation-button:hover:not(.mg-c-tabs__navigation-button--disabled),.mg-c-tabs__navigation-button:focus-visible:not(.mg-c-tabs__navigation-button--disabled){background-color:color-mix(in srgb, var(--mg-c-tabs-color), transparent 90%)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active{color:var(--mg-c-tabs-color);font-weight:600}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active.mg-c-tabs__navigation-button--horizontal{box-shadow:inset 0 calc(-1*var(--mg-b-size-4)) var(--mg-c-tabs-color)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active.mg-c-tabs__navigation-button--vertical{box-shadow:inset var(--mg-b-size-4) 0 var(--mg-c-tabs-color)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--hidden{display:none}.mg-c-tabs__header{display:flex;flex-flow:row wrap;border-bottom:var(--mg-b-size-border) solid color-mix(in srgb, var(--mg-c-tabs-color), transparent 90%)}.mg-c-tabs__content-container:focus-visible{outline:none}.mg-c-tabs__navigation-button-text{flex:0 0 content}";const ha=ca;const da=t=>typeof t==="object"&&typeof t.label==="string";const ga=class{constructor(i){t(this,i);this.activeTabChange=a(this,"active-tab-change",7);this.tabPanel="panel";this.buttonTabBaseClass="mg-c-tabs__navigation-button";this.startIndex=1;this.isActivableTab=t=>[undefined,sa.ACTIVE,sa.VISIBLE].includes(t.status);this.tabHasStatus=(t,i)=>t.status===i;this.getElementId=(t,i)=>`${t}-${this.getTabItemIndex(i)}`;this.getTabItemIndex=t=>t+this.startIndex;this.handleClick=t=>{const i=t.currentTarget.dataset.index;if(!this.isActivableTab(this.tabs[Number(i)-this.startIndex])){t.preventDefault()}else{this.activeTab=Number(i);this.tabFocus=undefined}};this.getNavigationButtonClass=t=>`${this.buttonTabBaseClass}--${t}`;this.handleKeydown=t=>{const i=t.target.parentElement;if(["ArrowRight","ArrowLeft"].includes(t.key)){this.tabFocus=Number(t.target.dataset.index);i.querySelector(`[data-index="${this.tabFocus}"]`).setAttribute("tabindex","-1");if(t.key==="ArrowRight"){this.tabFocus++;if(this.tabFocus>this.tabs.length)this.tabFocus=this.startIndex}else if(t.key==="ArrowLeft"){this.tabFocus--;if(this.tabFocus<this.startIndex)this.tabFocus=this.tabs.length}const e=i.querySelector(`[data-index="${this.tabFocus}"]`);if(this.tabHasStatus(this.tabs[this.tabFocus-1],sa.HIDDEN)){e.dispatchEvent(new KeyboardEvent("keydown",{key:t.key,bubbles:true}))}else{e.setAttribute("tabindex","0");e.focus()}}else if(t.key==="Tab"){this.resetFocus()}};this.handleDocumentClick=t=>{if(t.target.closest("mg-tabs")!==this.element)this.resetFocus()};this.resetFocus=()=>{h((()=>{this.tabFocus=undefined;Array.from(this.element.shadowRoot.querySelectorAll("[data-index]")).forEach(((t,i)=>{t.setAttribute("tabindex",this.activeTab-this.startIndex!==i?"-1":"0")}))}))};this.validateSlots=()=>{const t=Array.from(this.element.children).filter((t=>{var i;return(i=t.getAttribute("slot"))===null||i===void 0?void 0:i.includes("tab_content-")}));if(t.length!==this.tabs.length)throw new Error("<mg-tabs> Must have slots counts equal to tabs count.")};this.identifier=o("mg-tabs");this.label=undefined;this.size="medium";this.items=undefined;this.activeTab=undefined;this.tabs=[];this.classCollection=new l(["mg-c-tabs"])}validateLabel(t){if(!c(t)){throw new Error(`<mg-tabs> prop "label" is required and must be a string. Passed value: ${r(t)}.`)}}validateSize(t){if(!la.includes(t)){throw new Error(`<mg-tabs> prop "size" must be one of: ${la.join(", ")}. Passed value: ${r(t)}.`)}this.classCollection.add(`mg-c-tabs--size-${this.size}`)}validateItems(t){if(w(t))this.tabs=t.map((t=>({label:t,status:sa.VISIBLE})));else if(Array.isArray(t)&&t.length>0&&t.every(da))this.tabs=t;else throw new Error(`<mg-tabs> prop "items" is required and all items must be the same type: TabItem. Passed value: ${r(t)}.`)}validateActiveTab(t){if(t===undefined){this.activeTab=this.tabs.some((t=>this.tabHasStatus(t,sa.ACTIVE)))?this.getTabItemIndex(this.tabs.findIndex((t=>this.tabHasStatus(t,sa.ACTIVE)))):this.startIndex}else if(typeof t==="number"&&t>=this.startIndex&&t<=this.tabs.length&&this.isActivableTab(this.tabs[t-this.startIndex])){this.tabs.forEach(((i,e)=>{const n=e===t-this.startIndex;if(this.tabHasStatus(i,sa.ACTIVE)&&!n)i.status=sa.VISIBLE;else if(this.isActivableTab(i)&&n)i.status=sa.ACTIVE}));this.activeTabChange.emit(t)}else{throw new Error(`<mg-tabs> prop "activeTab" must be a number between ${this.startIndex} and ${this.tabs.length} and new value must be "activable". Passed value: ${r(t)}.`)}}componentWillLoad(){this.validateLabel(this.label);this.validateItems(this.items);this.validateActiveTab(this.activeTab);this.validateSize(this.size);this.validateSlots()}componentDidLoad(){document.addEventListener("click",this.handleDocumentClick,false)}disconnectedCallback(){document.removeEventListener("keydown",this.handleDocumentClick)}render(){return i("div",{key:"921ed990aa94ee26f04e8877bf7f5b88cef84516",class:this.classCollection.join()},i("header",{key:"00cd0666617678f005459c2aa3005d0c6319429b",role:"tablist","aria-label":this.label,class:"mg-c-tabs__header"},this.tabs.map(((t,e)=>i("button",{key:t.label,role:"tab",id:this.getElementId(this.identifier,e),class:{[`${this.buttonTabBaseClass}`]:true,[`${this.buttonTabBaseClass}--horizontal`]:true,[`${this.getNavigationButtonClass(sa.ACTIVE)}`]:this.tabHasStatus(t,sa.ACTIVE),[`${this.getNavigationButtonClass(sa.DISABLED)}`]:this.tabHasStatus(t,sa.DISABLED),[`${this.getNavigationButtonClass(sa.HIDDEN)}`]:this.tabHasStatus(t,sa.HIDDEN)},tabindex:this.tabHasStatus(t,sa.ACTIVE)?0:-1,"aria-selected":this.tabHasStatus(t,sa.ACTIVE).toString(),"aria-controls":this.getElementId(this.tabPanel,e),"aria-disabled":this.tabHasStatus(t,sa.DISABLED),onClick:this.handleClick,onKeyDown:this.handleKeydown,"data-index":this.getTabItemIndex(e)},t.icon!==undefined&&i("mg-icon",{icon:t.icon}),t.label,t.badge!==undefined&&i("mg-badge",{variant:"text-color",value:t.badge.value,label:t.badge.label,outline:t.badge.role==="information"}))))),this.tabs.map(((t,e)=>i("article",{key:t.label,role:"tabpanel",id:this.getElementId(this.tabPanel,e),hidden:!this.tabHasStatus(t,sa.ACTIVE),"aria-labelledby":this.getElementId(this.identifier,e),tabindex:this.tabHasStatus(t,sa.ACTIVE)?0:-1,class:"mg-c-tabs__content-container"},i("slot",{name:this.getElementId("tab_content",e)})))))}get element(){return n(this)}static get watchers(){return{label:["validateLabel"],size:["validateSize"],items:["validateItems"],activeTab:["validateActiveTab"]}}};ga.style=ha;const ma=["primary","secondary","success","warning","danger","info"];const ua="/*!\n * @prop --mg-c-tag-height: Defines the height of the tag. Default value is `--mg-b-size-24`.\n * @prop --mg-c-tag-border-radius: Defines the border radius of the tag. Default value is `--mg-b-size-radius`.\n * @prop --mg-c-tag-font-size: Defines the font size of the tag. Default value is `--mg-b-font-size-small`.\n */:host{display:inline-block}.mg-c-tag{display:inline-flex;min-height:var(--mg-c-tag-height);box-sizing:border-box;align-items:center;padding:calc((var(--mg-c-tag-height) - 2*var(--mg-b-size-border) - var(--mg-c-tag-font-size)*var(--mg-b-line-height))/2) calc(var(--mg-b-size-8) - var(--mg-b-size-border));border:var(--mg-b-size-border) solid;border-radius:var(--mg-c-tag-border-radius);font-size:var(--mg-c-tag-font-size);font-weight:600;text-align:center;vertical-align:middle}.mg-c-tag.mg-c-tag--primary{border-color:var(--mg-b-color-neutral-110);background-color:var(--mg-b-color-neutral-110);color:var(--mg-b-color-text-on-primary)}.mg-c-tag.mg-c-tag--primary.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-neutral-110)}.mg-c-tag.mg-c-tag--primary.mg-c-tag--soft{border-color:var(--mg-b-color-neutral-20);background-color:var(--mg-b-color-neutral-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--primary.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-neutral-110)}.mg-c-tag.mg-c-tag--secondary{border-color:var(--mg-b-color-neutral-10);background-color:var(--mg-b-color-neutral-10);color:var(--mg-b-color-text-on-secondary)}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-neutral-10)}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--soft{border-color:var(--mg-b-color-neutral-20);background-color:var(--mg-b-color-neutral-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-text-on-secondary)}.mg-c-tag.mg-c-tag--danger{border-color:var(--mg-b-color-danger);background-color:var(--mg-b-color-danger);color:var(--mg-b-color-text-on-danger)}.mg-c-tag.mg-c-tag--danger.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-danger)}.mg-c-tag.mg-c-tag--danger.mg-c-tag--soft{border-color:var(--mg-b-color-red-20);background-color:var(--mg-b-color-red-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--danger.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-danger)}.mg-c-tag.mg-c-tag--info{border-color:var(--mg-b-color-info);background-color:var(--mg-b-color-info);color:var(--mg-b-color-text-on-info)}.mg-c-tag.mg-c-tag--info.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-info)}.mg-c-tag.mg-c-tag--info.mg-c-tag--soft{border-color:var(--mg-b-color-blue-20);background-color:var(--mg-b-color-blue-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--info.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-info)}.mg-c-tag.mg-c-tag--success{border-color:var(--mg-b-color-success);background-color:var(--mg-b-color-success);color:var(--mg-b-color-text-on-success)}.mg-c-tag.mg-c-tag--success.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-success)}.mg-c-tag.mg-c-tag--success.mg-c-tag--soft{border-color:var(--mg-b-color-green-20);background-color:var(--mg-b-color-green-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--success.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-success)}.mg-c-tag.mg-c-tag--warning{border-color:var(--mg-b-color-warning);background-color:var(--mg-b-color-warning);color:var(--mg-b-color-text-on-warning)}.mg-c-tag.mg-c-tag--warning.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-warning)}.mg-c-tag.mg-c-tag--warning.mg-c-tag--soft{border-color:var(--mg-b-color-yellow-20);background-color:var(--mg-b-color-yellow-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--warning.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-warning)}::slotted(mg-icon){margin-right:var(--mg-b-size-4)}slot{display:inline-flex;align-items:center}";const pa=ua;const va=class{constructor(i){t(this,i);this.classOutline="mg-c-tag--outline";this.classSoft="mg-c-tag--soft";this.variant=ma[0];this.outline=undefined;this.soft=undefined;this.classCollection=new l(["mg-c-tag"])}validateVariant(t,i){if(!ma.includes(t)){throw new Error(`<mg-tag> prop "variant" must be one of: ${ma.join(", ")}. Passed value: ${r(t)}.`)}else{if(i!==undefined){this.classCollection.delete(`mg-c-tag--${i}`)}this.classCollection.add(`mg-c-tag--${t}`)}}validateOutline(t){if(t)this.classCollection.add(this.classOutline);else this.classCollection.delete(this.classOutline)}validateSoft(t){if(t&&this.outline)throw new Error('<mg-tag> prop "soft" can NOT be used with prop "outline".');if(t)this.classCollection.add(this.classSoft);else this.classCollection.delete(this.classSoft)}validateTextContent(t){if(!c(t))throw new Error("<mg-tag> slot must contain a text content.")}componentWillLoad(){this.validateVariant(this.variant);this.validateOutline(this.outline);this.validateSoft(this.soft);this.validateTextContent(this.element.textContent)}render(){return i("span",{key:"bb99306c07ea9ef4ee193a6e52c2c211378d34df",class:this.classCollection.join()},i("slot",{key:"0e427b1189217e5d863daf9ed15d35de4832d8dd"}))}get element(){return n(this)}static get watchers(){return{variant:["validateVariant"],outline:["validateOutline"],soft:["validateSoft"]}}};va.style=pa;const fa={FOCUS:"focus",HOVER_TOOLTIP_ELEMENT:"hoverTooltip",HOVER_TOOLTIPED_ELEMENT:"hoverTooltiped",DISABLE_ON_CLICK:"disableOnClick"};const ba="/*!\n * @prop --mg-c-tooltip-border-radius: Defines the border radius of the tooltip. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-tooltip-color-background: Defines the background color of the tooltip. Default value: `--mg-b-color-dark`.\n * @prop --mg-c-tooltip-color-text: Defines the font color of the tooltip. Default value: `--mg-b-color-light`.\n */:host{display:inline-block}";const wa=ba;const _a=t=>typeof t==="object"&&["MG-BUTTON","BUTTON"].includes(t.tagName);const xa=class{constructor(i){t(this,i);this.show=()=>{this.mgTooltipContent.dataset.show="";this.popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:true}]})));h((()=>{this.windows.forEach((t=>{t.addEventListener("click",this.handleClickOutside,false);t.addEventListener("keydown",this.handlePressEscape,false)}))}))};this.hide=()=>{this.mgTooltipContent.removeAttribute("data-show");this.popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:false}]})));this.windows.forEach((t=>{t.removeEventListener("click",this.handleClickOutside,false);t.removeEventListener("keyboard",this.handlePressEscape,false)}))};this.handleClickOutside=t=>{if(t.target.closest("mg-tooltip")!==this.element)this.setDisplay(false)};this.handlePressEscape=t=>{if(t.code==="Escape"){this.setDisplay(false);this.resetGuard()}};this.setDisplay=(t,i=true)=>{if(!this.disabled&&i)this.display=t};this.tooltipMouseListenerAction=(t,i,e)=>{if([fa.FOCUS,fa.DISABLE_ON_CLICK].includes(this.guard)){return}this.guard=t;if(i!=="mouseenter"){setTimeout((()=>{this.setDisplay(false,this.guard!==e);this.resetGuard()}),100)}else if(this.guard===fa.HOVER_TOOLTIPED_ELEMENT){this.setDisplay(true)}};this.resetGuard=()=>{this.guard=undefined};this.setMgButtonWrapper=t=>{const i="mg-c-tooltip__mg-button-wrapper";const e=t.parentElement.classList.contains(i);if(t.disabled&&!e){const e=document.createElement("div");e.classList.add(i);t.parentNode.insertBefore(e,t);e.appendChild(t);this.setTooltipedElement(e)}else if(!t.disabled&&e){this.element.firstElementChild.replaceWith(t);this.setTooltipedElement(t)}};this.setPopper=t=>{this.popper=Xn(this.tooltipedElement,this.mgTooltipContent,{placement:this.placement,strategy:t,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:["auto"]}}]})};this.setTooltipedElement=t=>{this.tooltipedElement=t;this.tooltipedElement.addEventListener("focus",(()=>{this.guard=fa.FOCUS;this.setDisplay(true)}));this.tooltipedElement.addEventListener("mouseup",(()=>{this.resetGuard()}));this.tooltipedElement.addEventListener("blur",(()=>{this.resetGuard();this.setDisplay(false)}));this.tooltipedElement.addEventListener("mouseenter",(()=>{this.tooltipMouseListenerAction(fa.HOVER_TOOLTIPED_ELEMENT,"mouseenter",fa.HOVER_TOOLTIP_ELEMENT)}));this.tooltipedElement.addEventListener("mouseleave",(()=>{this.tooltipMouseListenerAction(fa.HOVER_TOOLTIPED_ELEMENT,"mouseleave",fa.HOVER_TOOLTIP_ELEMENT)}))};this.setMgButtonMutationObserver=t=>{new MutationObserver((i=>{if(!i.some((t=>["aria-disabled","disabled"].includes(t.attributeName))))return;if(i.some((t=>t.target.disabled&&t.target.disableOnClick))){this.guard=fa.DISABLE_ON_CLICK}if(this.guard===fa.DISABLE_ON_CLICK)return;this.setMgButtonWrapper(t);this.resetGuard();this.popper.update()})).observe(t,{attributes:true})};this.setAriaDescribedby=t=>{if(!t.hasAttribute("aria-describedby")){this.tooltipedElement.setAttribute("aria-describedby",this.identifier)}else{t.setAttribute("aria-describedby",`${[...new Set([...t.getAttribute("aria-describedby").split(" "),this.identifier])].join(" ")}`)}};this.identifier=o("mg-tooltip");this.message=undefined;this.placement="bottom";this.display=false;this.disabled=false}watchIdentifier(){this.renderTooltipContent()}watchMessage(t){if(!c(t)){throw new Error(`<mg-tooltip> prop "message" is required and must be a string. Passed value: ${r(t)}.`)}this.mgTooltipContent.message=t}watchDisplay(t){if(t){this.show()}else{this.hide()}}watchDisabled(t){if(this.hasCustomTabIndex){if(t)this.tooltipedElement.removeAttribute("tabindex");else if(!this.tooltipedElement.hasAttribute("tabindex"))this.tooltipedElement.setAttribute("tabindex","0")}}renderTooltipContent(){if(this.mgTooltipContent!==undefined){this.mgTooltipContent.setAttribute("id",this.identifier)}else{this.mgTooltipContent=document.createElement("mg-tooltip-content");this.mgTooltipContent.setAttribute("slot","content");this.mgTooltipContent.setAttribute("id",this.identifier);const t=document.createElement("div");t.setAttribute("slot","arrow");t.dataset.popperArrow="";this.mgTooltipContent.appendChild(t);this.mgTooltipContent.addEventListener("mouseenter",(()=>{this.tooltipMouseListenerAction(fa.HOVER_TOOLTIP_ELEMENT,"mouseenter",fa.HOVER_TOOLTIPED_ELEMENT)}));this.mgTooltipContent.addEventListener("mouseleave",(()=>{this.tooltipMouseListenerAction(fa.HOVER_TOOLTIP_ELEMENT,"mouseleave",fa.HOVER_TOOLTIPED_ELEMENT)}));this.element.appendChild(this.mgTooltipContent)}}componentWillLoad(){this.windows=_(window);this.renderTooltipContent();this.watchDisabled(this.disabled);this.watchMessage(this.message);this.watchIdentifier()}componentDidLoad(){var t;const i=this.element.querySelector(`*:not(#${this.identifier})`);const e=i.matches(x)?i:(t=i.shadowRoot)===null||t===void 0?void 0:t.querySelector(x);this.setTooltipedElement(e||i);if(_a(i)){this.setMgButtonMutationObserver(i);this.setMgButtonWrapper(i)}if(!this.disabled&&[undefined,null].includes(e)){this.hasCustomTabIndex=true;i.tabIndex=0;i.setAttribute("role","button")}this.setAriaDescribedby(i);this.setPopper(this.element.closest("mg-popover")?"absolute":"fixed");document.addEventListener("keydown",this.handlePressEscape);this.watchDisplay(this.display)}componentDidUpdate(){this.popper.update()}disconnectedCallback(){document.removeEventListener("keydown",this.handlePressEscape);this.windows.forEach((t=>{t.removeEventListener("click",this.handleClickOutside,false);t.removeEventListener("keydown",this.handlePressEscape,false)}))}render(){return i(e,{key:"0a3444cfd3b00efaf216995c39775620e5aeb2fe"},i("slot",{key:"7c34a4814e2705d5470e61866514450f6238008c"}),i("slot",{key:"0df1ade290b5e84d617b9b628d733e823e2c34de",name:"content"}))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],message:["watchMessage"],display:["watchDisplay"],disabled:["watchDisabled"]}}};xa.style=wa;const za=':host{z-index:1000;display:none;max-width:var(--mg-b-size-floating-element-max-width);box-sizing:border-box;padding:var(--mg-b-size-4) var(--mg-b-size-8);border-radius:var(--mg-c-tooltip-border-radius);background-color:var(--mg-c-tooltip-color-background);color:var(--mg-c-tooltip-color-text);font-family:var(--mg-b-font-family);font-size:var(--mg-b-font-size);font-weight:400;text-align:start}:host([data-show]){display:block}::slotted([slot=arrow]){visibility:hidden}::slotted([slot=arrow])::before{content:"";transform:rotate(45deg);visibility:visible}::slotted([slot=arrow]),::slotted([slot=arrow])::before{position:absolute;z-index:9999;width:var(--mg-b-size-8);height:var(--mg-b-size-8);background-color:var(--mg-c-tooltip-color-background)}:host([data-popper-placement^=top])>::slotted([slot=arrow]){bottom:calc(-1*var(--mg-b-size-4))}:host([data-popper-placement^=bottom])>::slotted([slot=arrow]){top:calc(-1*var(--mg-b-size-4))}:host([data-popper-placement^=left])>::slotted([slot=arrow]){right:calc(-1*var(--mg-b-size-4))}:host([data-popper-placement^=right])>::slotted([slot=arrow]){left:calc(-1*var(--mg-b-size-4))}';const ya=za;const ka=class{constructor(i){t(this,i);this.message=undefined}render(){return i(e,{key:"2f94fdb8d48e172cc1d1f069ce12d1508e5e7896",role:"tooltip"},i("span",{key:"f075e8392eba2cd1256df7e89b7f20c832dc02e8",innerHTML:this.message,class:"mg-tooltip-content__message"}),i("slot",{key:"5f840ac9a4c9c422dc6e012dd8fbb0637232bd5f",name:"arrow"}))}};ka.style=ya;export{$ as mg_action_more,T as mg_badge,j as mg_button,R as mg_card,G as mg_character_left,Y as mg_details,Z as mg_divider,nt as mg_form,ht as mg_icon,mt as mg_illustrated_message,zt as mg_input,Lt as mg_input_checkbox,Bt as mg_input_checkbox_paginated,Et as mg_input_date,It as mg_input_numeric,St as mg_input_password,Nt as mg_input_radio,Zt as mg_input_select,ni as mg_input_text,ri as mg_input_textarea,ci as mg_input_title,mi as mg_input_toggle,wi as mg_item_more,zi as mg_menu,Mi as mg_menu_item,Bi as mg_message,Ai as mg_modal,Oi as mg_pagination,Ui as mg_panel,ta as mg_popover,na as mg_popover_content,ra as mg_skip_links,ga as mg_tabs,va as mg_tag,xa as mg_tooltip,ka as mg_tooltip_content};
2
- //# sourceMappingURL=p-2b89fe8b.entry.js.map