@swisspost/design-system-components 7.4.0 → 8.0.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 (175) hide show
  1. package/dist/cjs/{index-f32e5185.js → index-a1440961.js} +15 -2
  2. package/dist/cjs/{index-1cc8e4e1.js → index-baad16da.js} +8 -17
  3. package/dist/cjs/index.cjs.js +18 -20
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{package-549b9aab.js → package-28cba29c.js} +1 -1
  6. package/dist/cjs/{post-accordion-e0a2c3c3.js → post-accordion-fc746a6f.js} +2 -2
  7. package/dist/cjs/{post-accordion-item-772332db.js → post-accordion-item-c0492b73.js} +6 -7
  8. package/dist/cjs/post-accordion-item.cjs.entry.js +4 -5
  9. package/dist/cjs/post-accordion.cjs.entry.js +3 -3
  10. package/dist/cjs/{post-alert-42220c7a.js → post-alert-0612ad51.js} +8 -9
  11. package/dist/cjs/post-alert.cjs.entry.js +4 -5
  12. package/dist/cjs/{post-card-control-45047568.js → post-card-control-2fd18624.js} +4 -4
  13. package/dist/cjs/post-card-control.cjs.entry.js +3 -3
  14. package/dist/cjs/post-collapsible-trigger-8d39196e.js +206 -0
  15. package/dist/cjs/{post-collapsible-trigger.cjs.entry.js → post-collapsible_2.cjs.entry.js} +7 -5
  16. package/dist/cjs/post-components.cjs.js +3 -3
  17. package/dist/cjs/{post-icon-d136be35.js → post-icon-bd260560.js} +5 -6
  18. package/dist/cjs/post-icon.cjs.entry.js +4 -5
  19. package/dist/cjs/{post-popover-1024d72f.js → post-popover-303e76ef.js} +3 -3
  20. package/dist/cjs/post-popover.cjs.entry.js +3 -3
  21. package/dist/cjs/{post-popovercontainer-f5dd6284.js → post-popovercontainer-c64bde39.js} +8 -9
  22. package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
  23. package/dist/cjs/{post-rating-df981989.js → post-rating-dc7bd246.js} +3 -3
  24. package/dist/cjs/post-rating.cjs.entry.js +3 -3
  25. package/dist/cjs/{post-tab-header-17fe11d6.js → post-tab-header-06c40218.js} +3 -3
  26. package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
  27. package/dist/cjs/{post-tab-panel-a47c8cfe.js → post-tab-panel-54fbdb66.js} +3 -3
  28. package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
  29. package/dist/cjs/{post-tabs-766f8241.js → post-tabs-52b9d638.js} +3 -3
  30. package/dist/cjs/post-tabs.cjs.entry.js +3 -3
  31. package/dist/cjs/{post-tag-65ec8149.js → post-tag-4aba2155.js} +3 -3
  32. package/dist/cjs/post-tag.cjs.entry.js +3 -3
  33. package/dist/cjs/{post-tooltip-2efd6509.js → post-tooltip-3c695f60.js} +4 -4
  34. package/dist/cjs/post-tooltip.cjs.entry.js +4 -5
  35. package/dist/collection/collection-manifest.json +1 -1
  36. package/dist/collection/components/post-accordion-item/post-accordion-item.js +7 -9
  37. package/dist/collection/components/post-alert/post-alert.js +3 -3
  38. package/dist/collection/components/post-card-control/post-card-control.js +2 -2
  39. package/dist/collection/components/post-collapsible/post-collapsible.js +12 -14
  40. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +14 -19
  41. package/dist/collection/components/post-icon/post-icon.js +1 -1
  42. package/dist/collection/components/post-popover/post-popover.js +2 -2
  43. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +3 -3
  44. package/dist/collection/components/post-rating/post-rating.js +1 -1
  45. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  46. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  47. package/dist/collection/components/post-tabs/post-tabs.js +1 -1
  48. package/dist/collection/components/post-tag/post-tag.js +1 -1
  49. package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
  50. package/dist/collection/utils/get-root.js +7 -0
  51. package/dist/collection/utils/index.js +1 -0
  52. package/dist/components/package.js +1 -1
  53. package/dist/components/post-accordion-item2.js +13 -9
  54. package/dist/components/post-alert2.js +3 -3
  55. package/dist/components/post-card-control2.js +2 -2
  56. package/dist/components/post-collapsible-trigger2.js +22 -10
  57. package/dist/components/post-collapsible2.js +12 -14
  58. package/dist/components/post-icon2.js +1 -1
  59. package/dist/components/post-popover2.js +1 -1
  60. package/dist/components/post-popovercontainer2.js +6 -7
  61. package/dist/components/post-rating2.js +1 -1
  62. package/dist/components/post-tab-header2.js +1 -1
  63. package/dist/components/post-tab-panel2.js +1 -1
  64. package/dist/components/post-tabs2.js +1 -1
  65. package/dist/components/post-tag2.js +1 -1
  66. package/dist/components/post-tooltip2.js +1 -1
  67. package/dist/docs.json +23 -22
  68. package/dist/esm/{index-9ace3232.js → index-189d3985.js} +8 -17
  69. package/dist/esm/{index-29d17d6d.js → index-d1eba94c.js} +14 -2
  70. package/dist/esm/index.js +17 -19
  71. package/dist/esm/loader.js +3 -3
  72. package/dist/esm/{package-91140d77.js → package-3e4546f5.js} +1 -1
  73. package/dist/esm/{post-accordion-09978cd3.js → post-accordion-1cbd089a.js} +2 -2
  74. package/dist/esm/{post-accordion-item-4210d17f.js → post-accordion-item-316ee985.js} +6 -7
  75. package/dist/esm/post-accordion-item.entry.js +4 -5
  76. package/dist/esm/post-accordion.entry.js +3 -3
  77. package/dist/esm/{post-alert-64d34792.js → post-alert-6fa442b9.js} +6 -7
  78. package/dist/esm/post-alert.entry.js +4 -5
  79. package/dist/esm/{post-card-control-244f45f6.js → post-card-control-41356aa4.js} +4 -4
  80. package/dist/esm/post-card-control.entry.js +3 -3
  81. package/dist/esm/post-collapsible-trigger-6f4ba350.js +203 -0
  82. package/dist/esm/post-collapsible_2.entry.js +7 -0
  83. package/dist/esm/post-components.js +4 -4
  84. package/dist/esm/{post-icon-f05c6d37.js → post-icon-fe467f6a.js} +4 -5
  85. package/dist/esm/post-icon.entry.js +4 -5
  86. package/dist/esm/{post-popover-a094d059.js → post-popover-c9998136.js} +3 -3
  87. package/dist/esm/post-popover.entry.js +3 -3
  88. package/dist/esm/{post-popovercontainer-1faa005e.js → post-popovercontainer-62ced3d7.js} +8 -9
  89. package/dist/esm/post-popovercontainer.entry.js +3 -3
  90. package/dist/esm/{post-rating-62590a88.js → post-rating-49ace0e9.js} +3 -3
  91. package/dist/esm/post-rating.entry.js +3 -3
  92. package/dist/esm/{post-tab-header-1b88d56e.js → post-tab-header-696a7aae.js} +3 -3
  93. package/dist/esm/post-tab-header.entry.js +3 -3
  94. package/dist/esm/{post-tab-panel-fac73181.js → post-tab-panel-c00910fb.js} +3 -3
  95. package/dist/esm/post-tab-panel.entry.js +3 -3
  96. package/dist/esm/{post-tabs-4528a1a5.js → post-tabs-a7990c9e.js} +3 -3
  97. package/dist/esm/post-tabs.entry.js +3 -3
  98. package/dist/esm/{post-tag-8b82ff5c.js → post-tag-d9650103.js} +3 -3
  99. package/dist/esm/post-tag.entry.js +3 -3
  100. package/dist/esm/{post-tooltip-1156bdc7.js → post-tooltip-cf07e816.js} +4 -4
  101. package/dist/esm/post-tooltip.entry.js +4 -5
  102. package/dist/post-components/index.esm.js +1 -1
  103. package/dist/post-components/p-0aee269b.entry.js +1 -0
  104. package/dist/post-components/p-2240981f.entry.js +1 -0
  105. package/dist/post-components/{p-4dc0b726.js → p-266adbdd.js} +1 -1
  106. package/dist/post-components/p-27cb2e60.entry.js +1 -0
  107. package/dist/post-components/p-2c9277b1.entry.js +1 -0
  108. package/dist/post-components/p-3764a23a.entry.js +1 -0
  109. package/dist/post-components/{p-0df6bfe1.js → p-382f85c4.js} +1 -1
  110. package/dist/post-components/p-48ed21f0.entry.js +1 -0
  111. package/dist/post-components/p-496cee95.entry.js +1 -0
  112. package/dist/post-components/p-4ce46830.entry.js +1 -0
  113. package/dist/post-components/p-5135c965.entry.js +1 -0
  114. package/dist/post-components/{p-eff7cef8.js → p-5c4773cb.js} +2 -2
  115. package/dist/post-components/p-660ecc23.js +1 -0
  116. package/dist/post-components/p-69145fd2.js +1 -0
  117. package/dist/post-components/p-6af42a67.entry.js +1 -0
  118. package/dist/post-components/{p-21bdf1f3.js → p-6c701d9f.js} +1 -1
  119. package/dist/post-components/p-7095990e.js +1 -0
  120. package/dist/post-components/p-7481e37a.entry.js +1 -0
  121. package/dist/post-components/{p-04dc2d21.js → p-783e67bc.js} +1 -1
  122. package/dist/post-components/p-8f0ee57c.entry.js +1 -0
  123. package/dist/post-components/p-90479234.js +1 -0
  124. package/dist/post-components/p-a4794190.js +1 -0
  125. package/dist/post-components/{p-a8dc1aa1.js → p-a4e13e9c.js} +1 -1
  126. package/dist/post-components/{p-bdb6c1b8.js → p-ab26873d.js} +1 -1
  127. package/dist/post-components/p-b08aca79.entry.js +1 -0
  128. package/dist/post-components/p-beb27e06.js +1 -0
  129. package/dist/post-components/{p-8c7f0075.js → p-c0f265c8.js} +2 -2
  130. package/dist/post-components/{p-8e975b46.js → p-e024aa18.js} +1 -1
  131. package/dist/post-components/p-ea063aae.entry.js +1 -0
  132. package/dist/post-components/p-f732d73c.js +1 -0
  133. package/dist/post-components/p-f91c0e1b.js +1 -0
  134. package/dist/post-components/post-components.esm.js +1 -1
  135. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +2 -3
  136. package/dist/types/components/post-collapsible/post-collapsible.d.ts +3 -4
  137. package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +6 -5
  138. package/dist/types/components.d.ts +4 -4
  139. package/dist/types/utils/get-root.d.ts +1 -0
  140. package/dist/types/utils/index.d.ts +1 -0
  141. package/package.json +10 -10
  142. package/dist/cjs/check-type-64af82a9.js +0 -16
  143. package/dist/cjs/post-collapsible-d71942e3.js +0 -87
  144. package/dist/cjs/post-collapsible-trigger-a7e32ead.js +0 -115
  145. package/dist/cjs/post-collapsible.cjs.entry.js +0 -15
  146. package/dist/esm/check-type-8828dbe4.js +0 -14
  147. package/dist/esm/post-collapsible-4ddc1db3.js +0 -85
  148. package/dist/esm/post-collapsible-trigger-b0100e8c.js +0 -113
  149. package/dist/esm/post-collapsible-trigger.entry.js +0 -6
  150. package/dist/esm/post-collapsible.entry.js +0 -7
  151. package/dist/post-components/p-10cd6860.entry.js +0 -1
  152. package/dist/post-components/p-158d0eee.entry.js +0 -1
  153. package/dist/post-components/p-1f9ddbd4.js +0 -1
  154. package/dist/post-components/p-2da9a13c.js +0 -1
  155. package/dist/post-components/p-39b6f635.entry.js +0 -1
  156. package/dist/post-components/p-3cb6b887.entry.js +0 -1
  157. package/dist/post-components/p-4a3f67ab.js +0 -1
  158. package/dist/post-components/p-5ef247ea.entry.js +0 -1
  159. package/dist/post-components/p-67d41a4b.entry.js +0 -1
  160. package/dist/post-components/p-78111d97.entry.js +0 -1
  161. package/dist/post-components/p-7f3045f5.entry.js +0 -1
  162. package/dist/post-components/p-80708279.entry.js +0 -1
  163. package/dist/post-components/p-8c9bd744.entry.js +0 -1
  164. package/dist/post-components/p-9170a653.js +0 -1
  165. package/dist/post-components/p-9656cf35.js +0 -1
  166. package/dist/post-components/p-9fa0742e.js +0 -1
  167. package/dist/post-components/p-ac500761.js +0 -1
  168. package/dist/post-components/p-b53753a0.js +0 -1
  169. package/dist/post-components/p-bd0695bf.js +0 -1
  170. package/dist/post-components/p-c297c7d1.entry.js +0 -1
  171. package/dist/post-components/p-c8fe8c37.js +0 -1
  172. package/dist/post-components/p-d1c71b7d.entry.js +0 -1
  173. package/dist/post-components/p-d9e5275c.entry.js +0 -1
  174. package/dist/post-components/p-f7101c7f.entry.js +0 -1
  175. package/dist/post-components/p-ffdd17d8.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as n,H as o,g as r}from"./p-c0f265c8.js";import{v as i}from"./p-90479234.js";const l=Math.min,a=Math.max,s=Math.round,c=Math.floor,u=t=>({x:t,y:t}),f={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function d(t,e,n){return a(t,l(e,n))}function h(t,e){return"function"==typeof t?t(e):t}function m(t){return t.split("-")[0]}function g(t){return t.split("-")[1]}function b(t){return"x"===t?"y":"x"}function w(t){return"y"===t?"height":"width"}function v(t){return["top","bottom"].includes(m(t))?"y":"x"}function y(t){return b(v(t))}function x(t){return t.replace(/start|end/g,(t=>p[t]))}function S(t){return t.replace(/left|right|bottom|top/g,(t=>f[t]))}function T(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function E(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function A(t,e,n){let{reference:o,floating:r}=t;const i=v(e),l=y(e),a=w(l),s=m(e),c="y"===i,u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[a]/2-r[a]/2;let d;switch(s){case"top":d={x:u,y:o.y-r.height};break;case"bottom":d={x:u,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:f};break;case"left":d={x:o.x-r.width,y:f};break;default:d={x:o.x,y:o.y}}switch(g(e)){case"start":d[l]-=p*(n&&c?-1:1);break;case"end":d[l]+=p*(n&&c?-1:1)}return d}async function M(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:d=0}=h(e,t),m=T(d),g=a[p?"floating"===f?"reference":"floating":f],b=E(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),w="floating"===f?{...l.floating,x:o,y:r}:l.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},x=E(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:v,strategy:s}):w);return{top:(b.top-x.top+m.top)/y.y,bottom:(x.bottom-b.bottom+m.bottom)/y.y,left:(b.left-x.left+m.left)/y.x,right:(x.right-b.right+m.right)/y.x}}function k(t){const e=l(...t.map((t=>t.left))),n=l(...t.map((t=>t.top)));return{x:e,y:n,width:a(...t.map((t=>t.right)))-e,height:a(...t.map((t=>t.bottom)))-n}}function L(t){return O(t)?(t.nodeName||"").toLowerCase():"#document"}function H(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function D(t){var e;return null==(e=(O(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function O(t){return t instanceof Node||t instanceof H(t).Node}function F(t){return t instanceof Element||t instanceof H(t).Element}function R(t){return t instanceof HTMLElement||t instanceof H(t).HTMLElement}function z(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof H(t).ShadowRoot)}function P(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=I(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function W(t){return["table","td","th"].includes(L(t))}function j(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function C(t){const e=q(),n=F(t)?I(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function q(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(t){return["html","body","#document"].includes(L(t))}function I(t){return H(t).getComputedStyle(t)}function $(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function N(t){if("html"===L(t))return t;const e=t.assignedSlot||t.parentNode||z(t)&&t.host||D(t);return z(e)?e.host:e}function G(t){const e=N(t);return B(e)?t.ownerDocument?t.ownerDocument.body:t.body:R(e)&&P(e)?e:G(e)}function V(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=G(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),l=H(r);return i?e.concat(l,l.visualViewport||[],P(r)?r:[],l.frameElement&&n?V(l.frameElement):[]):e.concat(r,V(r,[],n))}function X(t){const e=I(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=R(t),i=r?t.offsetWidth:n,l=r?t.offsetHeight:o,a=s(n)!==i||s(o)!==l;return a&&(n=i,o=l),{width:n,height:o,$:a}}function Y(t){return F(t)?t:t.contextElement}function _(t){const e=Y(t);if(!R(e))return u(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=X(e);let l=(i?s(n.width):n.width)/o,a=(i?s(n.height):n.height)/r;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const J=u(0);function K(t){const e=H(t);return q()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:J}function Q(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=Y(t);let l=u(1);e&&(o?F(o)&&(l=_(o)):l=_(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==H(t))&&e}(i,n,o)?K(i):u(0);let s=(r.left+a.x)/l.x,c=(r.top+a.y)/l.y,f=r.width/l.x,p=r.height/l.y;if(i){const t=H(i),e=o&&F(o)?H(o):o;let n=t,r=n.frameElement;for(;r&&o&&e!==n;){const t=_(r),e=r.getBoundingClientRect(),o=I(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,p*=t.y,s+=i,c+=l,n=H(r),r=n.frameElement}}return E({width:f,height:p,x:s,y:c})}function U(t){return Q(D(t)).left+$(t).scrollLeft}function Z(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=H(t),o=D(t),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;const t=q();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:i,height:l,x:a,y:s}}(t,n);else if("document"===e)o=function(t){const e=D(t),n=$(t),o=t.ownerDocument.body,r=a(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=a(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+U(t);const s=-n.scrollTop;return"rtl"===I(o).direction&&(l+=a(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:l,y:s}}(D(t));else if(F(e))o=function(t,e){const n=Q(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=R(t)?_(t):u(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=K(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return E(o)}function tt(t,e){const n=N(t);return!(n===e||!F(n)||B(n))&&("fixed"===I(n).position||tt(n,e))}function et(t,e,n){const o=R(e),r=D(e),i="fixed"===n,l=Q(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const s=u(0);if(o||!o&&!i)if(("body"!==L(e)||P(r))&&(a=$(e)),o){const t=Q(e,!0,i,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else r&&(s.x=U(r));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function nt(t){return"static"===I(t).position}function ot(t,e){return R(t)&&"fixed"!==I(t).position?e?e(t):t.offsetParent:null}function rt(t,e){const n=H(t);if(j(t))return n;if(!R(t)){let e=N(t);for(;e&&!B(e);){if(F(e)&&!nt(e))return e;e=N(e)}return n}let o=ot(t,e);for(;o&&W(o)&&nt(o);)o=ot(o,e);return o&&B(o)&&nt(o)&&!C(o)?n:o||function(t){let e=N(t);for(;R(e)&&!B(e);){if(C(e))return e;if(j(e))return null;e=N(e)}return null}(t)||n}const it={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,l=D(o),a=!!e&&j(e.floating);if(o===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=u(1);const f=u(0),p=R(o);if((p||!p&&!i)&&(("body"!==L(o)||P(l))&&(s=$(o)),R(o))){const t=Q(o);c=_(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x,y:n.y*c.y-s.scrollTop*c.y+f.y}},getDocumentElement:D,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?j(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=V(t,[],!1).filter((t=>F(t)&&"body"!==L(t))),r=null;const i="fixed"===I(t).position;let l=i?N(t):t;for(;F(l)&&!B(l);){const e=I(l),n=C(l);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||P(l)&&!n&&tt(t,l))?o=o.filter((t=>t!==l)):r=e,l=N(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=i.reduce(((t,n)=>{const o=Z(e,n,r);return t.top=a(o.top,t.top),t.right=l(o.right,t.right),t.bottom=l(o.bottom,t.bottom),t.left=a(o.left,t.left),t}),Z(e,i[0],r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:rt,getElementRects:async function(t){const e=this.getOffsetParent||rt,n=this.getDimensions,o=await n(t.floating);return{reference:et(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=X(t);return{width:e,height:n}},getScale:_,isElement:F,isRTL:function(t){return"rtl"===I(t).direction}};const lt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:l,middlewareData:a}=e,s=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=m(n),a=g(n),s="y"===v(n),c=["left","top"].includes(l)?-1:1,u=i&&s?-1:1,f=h(e,t);let{mainAxis:p,crossAxis:d,alignmentAxis:b}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof b&&(d="end"===a?-1*b:b),s?{x:d*u,y:p*c}:{x:p*c,y:d*u}}(e,t);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:l}}}}},at=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=h(t,e),c={x:n,y:o},u=await M(e,s),f=v(m(r)),p=b(f);let g=c[p],w=c[f];i&&(g=d(g+u["y"===p?"top":"left"],g,g-u["y"===p?"bottom":"right"])),l&&(w=d(w+u["y"===f?"top":"left"],w,w-u["y"===f?"bottom":"right"]));const y=a.fn({...e,[p]:g,[f]:w});return{...y,data:{x:y.x-n,y:y.y-o}}}}},st=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...T}=h(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const E=m(r),A=m(a)===a,k=await(null==s.isRTL?void 0:s.isRTL(c.floating)),L=p||(A||!v?[S(a)]:function(t){const e=S(t);return[x(t),e,x(e)]}(a));p||"none"===b||L.push(...function(t,e,n,o){const r=g(t);let i=function(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:l;default:return[]}}(m(t),"start"===n,o);return r&&(i=i.map((t=>t+"-"+r)),e&&(i=i.concat(i.map(x)))),i}(a,v,b,k));const H=[a,...L],D=await M(e,T),O=[];let F=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&O.push(D[E]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=g(t),r=y(t),i=w(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(l=S(l)),[l,S(l)]}(r,l,k);O.push(D[t[0]],D[t[1]])}if(F=[...F,{placement:r,overflows:O}],!O.every((t=>t<=0))){var R,z;const t=((null==(R=i.flip)?void 0:R.index)||0)+1,e=H[t];if(e)return{data:{index:t,overflows:F},reset:{placement:e}};let n=null==(z=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:z.placement;if(!n)switch(d){case"bestFit":{var P;const t=null==(P=F.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:P[0];t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},ct=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:i}=e,{apply:s=(()=>{}),...c}=h(t,e),u=await M(e,c),f=m(n),p=g(n),d="y"===v(n),{width:b,height:w}=o.floating;let y,x;"top"===f||"bottom"===f?(y=f,x=p===(await(null==r.isRTL?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(x=f,y="end"===p?"top":"bottom");const S=w-u[y],T=b-u[x],E=!e.middlewareData.shift;let A=S,k=T;if(d){const t=b-u.left-u.right;k=p||E?l(T,t):t}else{const t=w-u.top-u.bottom;A=p||E?l(S,t):t}if(E&&!p){const t=a(u.left,0),e=a(u.right,0),n=a(u.top,0),o=a(u.bottom,0);d?k=b-2*(0!==t||0!==e?t+e:a(u.left,u.right)):A=w-2*(0!==n||0!==o?n+o:a(u.top,u.bottom))}await s({...e,availableWidth:k,availableHeight:A});const L=await r.getDimensions(i.floating);return b!==L.width||w!==L.height?{reset:{rects:!0}}:{}}}},ut=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=h(t,e),u={x:n,y:o},f=v(r),p=b(f);let d=u[p],g=u[f];const w=h(a,e),y="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(s){const t="y"===p?"height":"width",e=i.reference[p]-i.floating[t]+y.mainAxis,n=i.reference[p]+i.reference[t]-y.mainAxis;d<e?d=e:d>n&&(d=n)}if(c){var x,S;const t="y"===p?"width":"height",e=["top","left"].includes(m(r)),n=i.reference[f]-i.floating[t]+(e&&(null==(x=l.offset)?void 0:x[f])||0)+(e?0:y.crossAxis),o=i.reference[f]+i.reference[t]+(e?0:(null==(S=l.offset)?void 0:S[f])||0)-(e?y.crossAxis:0);g<n?g=n:g>o&&(g=o)}return{[p]:d,[f]:g}}}};(()=>{var t=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:n="",...o}={}){super(t,o),this.oldState=String(e||""),this.newState=String(n||"")}},e=new WeakMap;function n(n,o,r){e.set(n,setTimeout((()=>{e.has(n)&&n.dispatchEvent(new t("toggle",{cancelable:!1,oldState:o,newState:r}))}),0))}var o=globalThis.ShadowRoot||function(){},r=globalThis.HTMLDialogElement||function(){},i=new WeakMap,l=new WeakMap,a=new WeakMap;function s(t){return a.get(t)||"hidden"}var c=new WeakMap;function u(t,e){return!("auto"!==t.popover&&"manual"!==t.popover||!t.isConnected||e&&"showing"!==s(t)||!e&&"hidden"!==s(t)||t instanceof r&&t.hasAttribute("open")||document.fullscreenElement===t)}function f(t){return t?Array.from(l.get(t.ownerDocument)||[]).indexOf(t)+1:0}function p(t){let e=l.get(t);for(let t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function d(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?d(t.parentNode):t}function h(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===a.get(t))return t;if((t=t.parentElement||d(t))instanceof o&&(t=t.host),t instanceof Document)return}}function m(t){return!(t.hidden||t instanceof o||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href)&&"number"==typeof t.tabIndex&&-1!==t.tabIndex}var g=new WeakMap;function b(e){if(!u(e,!1))return;let o=e.ownerDocument;if(!e.dispatchEvent(new t("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!u(e,!1))return;let r=!1;if("auto"===e.popover){let t=e.getAttribute("popover"),n=function(t){let e=new Map,n=0,o=t.ownerDocument;for(let t of l.get(o)||[])e.set(t,n),n+=1;e.set(t,n),n+=1;let r=null;return function(t){let n=h(t);if(null===n)return null;let o=e.get(n);(null===r||e.get(r)<o)&&(r=n)}(t?.parentElement),r}(e)||o;if(y(n,!1,!0),t!==e.getAttribute("popover")||!u(e,!1))return}p(o)||(r=!0),g.delete(e);let s=o.activeElement;e.classList.add(":popover-open"),a.set(e,"showing"),i.has(o)||i.set(o,new Set),i.get(o).add(e),function(t){(function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let n=e.querySelector("[autofocus]");if(n)return n;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(n=e.querySelector("[autofocus]"),n)return n}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),r=o.currentNode;for(;r;){if(m(r))return r;r=o.nextNode()}})(t)?.focus()}(e),"auto"===e.popover&&(l.has(o)||l.set(o,new Set),l.get(o).add(e),E(c.get(e),!0)),r&&s&&"auto"===e.popover&&g.set(e,s),n(e,"closed","open")}function w(e,o=!1,r=!1){if(!u(e,!0))return;let s=e.ownerDocument;if("auto"===e.popover&&(y(e,o,r),!u(e,!0))||(E(c.get(e),!1),c.delete(e),r&&(e.dispatchEvent(new t("beforetoggle",{oldState:"open",newState:"closed"})),!u(e,!0))))return;i.get(s)?.delete(e),l.get(s)?.delete(e),e.classList.remove(":popover-open"),a.set(e,"hidden"),r&&n(e,"open","closed");let f=g.get(e);f&&(g.delete(e),o&&f.focus())}function v(t,e=!1,n=!1){let o=p(t);for(;o;)w(o,e,n),o=p(t)}function y(t,e,n){let o=t.ownerDocument||t;if(t instanceof Document)return v(o,e,n);let r=null,i=!1;for(let e of l.get(o)||[])if(e===t)i=!0;else if(i){r=e;break}if(!i)return v(o,e,n);for(;r&&"showing"===s(r)&&l.get(o)?.size;)w(r,e,n)}var x=new WeakMap;function S(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let n=e.ownerDocument;if(!p(n))return;let r=function(t){let e=h(t),n=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||d(t))instanceof o&&(t=t.host),t instanceof Document)return}}(t);return f(e)>f(n)?e:n}(e);if(r&&"pointerdown"===t.type)x.set(n,r);else if("pointerup"===t.type){let t=x.get(n)===r;x.delete(n),t&&y(r||n,!1,!0)}}var T=new WeakMap;function E(t,e=!1){if(!t)return;T.has(t)||T.set(t,t.getAttribute("aria-expanded"));let n=t.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)t.setAttribute("aria-expanded",String(e));else{let e=T.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var A=globalThis.ShadowRoot||function(){};function M(t,e,n){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,n(t))}})}var k=/(^|[^\\]):popover-open\b/g,L="\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",H=null;function D(t){if(null===H)try{(H=new CSSStyleSheet).replaceSync(L)}catch{H=!1}if(!1===H){let e=document.createElement("style");e.textContent=L,t instanceof Document?t.head.prepend(e):t.prepend(e)}else t.adoptedStyleSheets=[H,...t.adoptedStyleSheets]}typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){function e(t){return t?.includes(":popover-open")&&(t=t.replace(k,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||t,M(Document.prototype,"querySelector",e),M(Document.prototype,"querySelectorAll",e),M(Element.prototype,"querySelector",e),M(Element.prototype,"querySelectorAll",e),M(Element.prototype,"matches",e),M(Element.prototype,"closest",e),M(DocumentFragment.prototype,"querySelectorAll",e),M(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"manual"},set(t){this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){b(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){w(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===a.get(this)&&void 0===t||!1===t?w(this,!0,!0):(void 0===t||!0===t)&&b(this)}}});let n=Element.prototype.attachShadow;n&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let e=n.call(this,t);return D(e),e}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=o.call(this);return t.shadowRoot&&D(t.shadowRoot),t}}});let r=new WeakMap;function i(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),r.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),r.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=r.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return r.delete(this),null;let e=d(this),n=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof A)&&n&&e.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}i(HTMLButtonElement),i(HTMLInputElement);var l;(l=document).addEventListener("click",(t=>{if(!t.isTrusted)return;let e=t.composedPath()[0];if(!(e instanceof Element)||e?.shadowRoot)return;let n=d(e);if(!(n instanceof A||n instanceof Document))return;let o=e.closest("[popovertargetaction],[popovertarget]");return o?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let n=s(e);"show"===t.popoverTargetAction&&"showing"===n||"hide"===t.popoverTargetAction&&"hidden"===n||("showing"===n?w(e,!0,!0):u(e,!1)&&(c.set(e,t),b(e)))}(o),void t.preventDefault()):void 0})),l.addEventListener("keydown",(t=>{let e=t.key,n=t.target;!t.defaultPrevented&&n&&("Escape"===e||"Esc"===e)&&y(n.ownerDocument,!0,!0)})),l.addEventListener("pointerdown",S),l.addEventListener("pointerup",S),D(document)}()})();const ft={top:"bottom",right:"left",bottom:"top",left:"right"},pt=class{constructor(n){t(this,n),this.postToggle=e(this,"postToggle",7),this.placement="top",this.arrow=!1}componentDidLoad(){this.host.setAttribute("popover",""),this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate()}async show(t){this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover())}async toggle(t,e){return this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open")}handleToggle(t){this.toggleTimeoutId=window.setTimeout((()=>this.toggleTimeoutId=null),10);const e="open"===t.newState;e?this.startAutoupdates():"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.postToggle.emit(e)}startAutoupdates(){this.clearAutoUpdate=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,p=Y(t),d=r||i?[...p?V(p):[],...V(e)]:[];d.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)}));const h=p&&u?function(t,e){let n,o=null;const r=D(t);function i(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function s(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),i();const{left:p,top:d,width:h,height:m}=t.getBoundingClientRect();if(u||e(),!h||!m)return;const g={rootMargin:-c(d)+"px "+-c(r.clientWidth-(p+h))+"px "+-c(r.clientHeight-(d+m))+"px "+-c(p)+"px",threshold:a(0,l(1,f))||1};let b=!0;function w(t){const e=t[0].intersectionRatio;if(e!==f){if(!b)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}b=!1}try{o=new IntersectionObserver(w,{...g,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(w,g)}o.observe(t)}(!0),i}(p,n):null;let m,g=-1,b=null;s&&(b=new ResizeObserver((t=>{let[o]=t;o&&o.target===p&&b&&(b.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=b)||t.observe(e)}))),n()})),p&&!f&&b.observe(p),b.observe(e));let w=f?Q(t):null;return f&&function e(){const o=Q(t);!w||o.x===w.x&&o.y===w.y&&o.width===w.width&&o.height===w.height||n(),w=o,m=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==h||h(),null==(t=b)||t.disconnect(),b=null,f&&cancelAnimationFrame(m)}}(this.eventTarget,this.host,this.calculatePosition.bind(this))}async calculatePosition(){const t=[st(),(void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:r,platform:i,strategy:s}=t,{padding:c=2,x:u,y:f}=h(e,t),p=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(o.reference))||[]),d=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const r=e[t];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((t=>E(k(t))))}(p),g=E(k(p)),b=T(c),w=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=u&&null!=f)return d.find((t=>u>t.left-b.left&&u<t.right+b.right&&f>t.top-b.top&&f<t.bottom+b.bottom))||g;if(d.length>=2){if("y"===v(n)){const t=d[0],e=d[d.length-1],o="top"===m(n),r=t.top,i=e.bottom,l=o?t.left:e.left,a=o?t.right:e.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const t="left"===m(n),e=a(...d.map((t=>t.right))),o=l(...d.map((t=>t.left))),r=d.filter((n=>t?n.left===o:n.right===e)),i=r[0].top,s=r[r.length-1].bottom;return{top:i,bottom:s,left:o,right:e,width:e-o,height:s-i,x:o,y:i}}return g}},floating:o.floating,strategy:s});return r.reference.x!==w.reference.x||r.reference.y!==w.reference.y||r.reference.width!==w.reference.width||r.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}),at({padding:8,limiter:ut({offset:32})}),ct({apply({availableWidth:t,elements:e}){Object.assign(e.floating.style,{maxWidth:t-16+"px"})}}),lt(this.arrow?12:8)];var e;this.arrow&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=e,{element:u,padding:f=0}=h(t,e)||{};if(null==u)return{};const p=T(f),m={x:n,y:o},b=y(r),v=w(b),x=await a.getDimensions(u),S="y"===b,E=S?"top":"left",A=S?"bottom":"right",M=S?"clientHeight":"clientWidth",k=i.reference[v]+i.reference[b]-m[b]-i.floating[v],L=m[b]-i.reference[b],H=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let D=H?H[M]:0;D&&await(null==a.isElement?void 0:a.isElement(H))||(D=s.floating[M]||i.floating[v]);const O=k/2-L/2,F=D/2-x[v]/2-1,R=l(p[E],F),z=l(p[A],F),P=R,W=D-x[v]-z,j=D/2-x[v]/2+O,C=d(P,j,W),q=!c.arrow&&null!=g(r)&&j!==C&&i.reference[v]/2-(j<P?R:z)-x[v]/2<0,B=q?j<P?j-P:j-W:0;return{[b]:m[b]+B,data:{[b]:C,centerOffset:j-C-B,...q&&{alignmentOffset:B}},reset:q}}}))({element:this.arrowRef,padding:8}));const{x:n,y:o,middlewareData:r,placement:i}=await((t,e,n)=>{const o=new Map,r={platform:it,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:f}=A(c,o,s),p=o,d={},h=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y:b,data:w,reset:v}=await m({x:u,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:d,rects:c,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=b?b:f,d={...d,[i]:{...d[i],...w}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:u,y:f}=A(c,p,s))),n=-1)}return{x:u,y:f,placement:p,strategy:r,middlewareData:d}})(t,e,{...r,platform:i})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:t});if(this.host.style.left=`${n}px`,this.host.style.top=`${o}px`,this.arrow){const t=i.split("-")[0],{x:e,y:n}=r.arrow,o=ft[t],l=2;Object.assign(this.arrowRef.style,{top:n?`${n}px`:"",left:e?`${e}px`:"",[o]:-this.arrowRef.offsetWidth/2-l+"px"}),this.arrowRef.classList.remove(...Object.values(ft)),this.arrowRef.classList.add(o)}}render(){return n(o,{key:"d157ffbb6acb382add7b003f7865eb7c7d77a2b5","data-version":i},this.arrow&&n("span",{key:"cc47843bc00d401c0679474e41661b6b1dcbae01",class:"arrow",ref:t=>{this.arrowRef=t}}),n("slot",{key:"75eb62cf77965fa96fbb3dabcf264c2daff3e2f4"}))}get host(){return r(this)}};pt.style="@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-left:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-right:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-left:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}";export{pt as P}
@@ -1 +1 @@
1
- import{r as a,c as r,h as t,H as o,g as s}from"./p-8c7f0075.js";import{v as e}from"./p-1f9ddbd4.js";import{f as b,a as c}from"./p-2737eaf5.js";const i=class{constructor(t){a(this,t),this.postChange=r(this,"postChange",7),this.isLoaded=!1,this.activePanel=void 0}get tabs(){return this.host.querySelectorAll("post-tab-header")}componentDidLoad(){this.moveMisplacedTabs(),this.enableTabs();const a=this.activePanel||this.tabs.item(0).panel;this.show(a),this.isLoaded=!0}async show(a){var r;if(a===(null===(r=this.activeTab)||void 0===r?void 0:r.panel))return;const t=this.activeTab,o=this.host.querySelector(`post-tab-header[panel=${a}]`);this.activateTab(o),this.showing&&(this.showing.effect.target.style.display="none",this.showing.finish()),!t||this.showing||this.hiding||this.hidePanel(t.panel),this.hiding&&await this.hiding.finished,this.showSelectedPanel(),this.showing&&await this.showing.finished,this.isLoaded&&this.postChange.emit(this.activeTab.panel)}moveMisplacedTabs(){this.tabs&&this.tabs.forEach((a=>{"tabs"!==a.getAttribute("slot")&&a.setAttribute("slot","tabs")}))}enableTabs(){this.tabs&&(this.tabs.forEach((async a=>{if(await a.componentOnReady(),a.getAttribute("aria-controls"))return;const r=this.getPanel(a.panel);a.setAttribute("aria-controls",r.id),r.setAttribute("aria-labelledby",a.id),a.addEventListener("click",(()=>{this.show(a.panel)})),a.addEventListener("keydown",(r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),this.show(a.panel))})),a.addEventListener("keydown",(({key:r})=>{"ArrowRight"!==r&&"ArrowLeft"!==r||this.navigateTabs(a,r)}))})),this.activeTab&&!this.activeTab.isConnected&&this.show(this.tabs.item(0).panel))}activateTab(a){this.activeTab&&(this.activeTab.setAttribute("aria-selected","false"),this.activeTab.setAttribute("tabindex","-1"),this.activeTab.classList.remove("active")),a.setAttribute("aria-selected","true"),a.setAttribute("tabindex","0"),a.classList.add("active"),this.activeTab=a}hidePanel(a){const r=this.getPanel(a);r&&(this.hiding=b(r),this.hiding.onfinish=()=>{r.style.display="none",this.hiding=null})}showSelectedPanel(){const a=this.getPanel(this.activeTab.panel);a.style.display="block",this.isLoaded&&(this.showing=c(a),this.showing.onfinish=()=>{this.showing=null})}getPanel(a){return this.host.querySelector(`post-tab-panel[name=${a}]`)}navigateTabs(a,r){const t=Array.from(this.tabs).indexOf(a);let o;o="ArrowRight"===r?this.tabs[t+1]||this.tabs[0]:this.tabs[t-1]||this.tabs[this.tabs.length-1],o&&o.focus()}render(){return t(o,{key:"365b2794cfb46631277341ea23afb2070c9d3ad1","data-version":e},t("div",{key:"70df13385ecc9c067527b80e2dd7b3a9b245e745",class:"tabs-wrapper",part:"tabs"},t("div",{key:"cae4d18aff0c890e0e8d76c1b8e321322abbeccd",class:"tabs",role:"tablist"},t("slot",{key:"2b6ca3e01e45e541950ddc2c1cdc680b28ea96b9",name:"tabs",onSlotchange:()=>this.enableTabs()}))),t("div",{key:"7352582d9c738af9b8bf3b71e0a153132fd23dcd",class:"tab-content",part:"content"},t("slot",{key:"4845c39bf9b9cbc42aa8689c7ae99cc2e75d7907",onSlotchange:()=>this.moveMisplacedTabs()})))}get host(){return s(this)}};i.style='.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-white .tabs-wrapper{background-color:#fff}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-black .tabs-wrapper{background-color:#000}.bg-primary .tabs-wrapper{background-color:#333}.bg-secondary .tabs-wrapper{background-color:#666}.bg-success .tabs-wrapper{background-color:#2c871d}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-error .tabs-wrapper{background-color:#a51728}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}:host{display:block}';export{i as P}
1
+ import{r as a,c as r,h as t,H as o,g as s}from"./p-c0f265c8.js";import{v as e}from"./p-90479234.js";import{f as b,a as c}from"./p-2737eaf5.js";const i=class{constructor(t){a(this,t),this.postChange=r(this,"postChange",7),this.isLoaded=!1,this.activePanel=void 0}get tabs(){return this.host.querySelectorAll("post-tab-header")}componentDidLoad(){this.moveMisplacedTabs(),this.enableTabs();const a=this.activePanel||this.tabs.item(0).panel;this.show(a),this.isLoaded=!0}async show(a){var r;if(a===(null===(r=this.activeTab)||void 0===r?void 0:r.panel))return;const t=this.activeTab,o=this.host.querySelector(`post-tab-header[panel=${a}]`);this.activateTab(o),this.showing&&(this.showing.effect.target.style.display="none",this.showing.finish()),!t||this.showing||this.hiding||this.hidePanel(t.panel),this.hiding&&await this.hiding.finished,this.showSelectedPanel(),this.showing&&await this.showing.finished,this.isLoaded&&this.postChange.emit(this.activeTab.panel)}moveMisplacedTabs(){this.tabs&&this.tabs.forEach((a=>{"tabs"!==a.getAttribute("slot")&&a.setAttribute("slot","tabs")}))}enableTabs(){this.tabs&&(this.tabs.forEach((async a=>{if(await a.componentOnReady(),a.getAttribute("aria-controls"))return;const r=this.getPanel(a.panel);a.setAttribute("aria-controls",r.id),r.setAttribute("aria-labelledby",a.id),a.addEventListener("click",(()=>{this.show(a.panel)})),a.addEventListener("keydown",(r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),this.show(a.panel))})),a.addEventListener("keydown",(({key:r})=>{"ArrowRight"!==r&&"ArrowLeft"!==r||this.navigateTabs(a,r)}))})),this.activeTab&&!this.activeTab.isConnected&&this.show(this.tabs.item(0).panel))}activateTab(a){this.activeTab&&(this.activeTab.setAttribute("aria-selected","false"),this.activeTab.setAttribute("tabindex","-1"),this.activeTab.classList.remove("active")),a.setAttribute("aria-selected","true"),a.setAttribute("tabindex","0"),a.classList.add("active"),this.activeTab=a}hidePanel(a){const r=this.getPanel(a);r&&(this.hiding=b(r),this.hiding.onfinish=()=>{r.style.display="none",this.hiding=null})}showSelectedPanel(){const a=this.getPanel(this.activeTab.panel);a.style.display="block",this.isLoaded&&(this.showing=c(a),this.showing.onfinish=()=>{this.showing=null})}getPanel(a){return this.host.querySelector(`post-tab-panel[name=${a}]`)}navigateTabs(a,r){const t=Array.from(this.tabs).indexOf(a);let o;o="ArrowRight"===r?this.tabs[t+1]||this.tabs[0]:this.tabs[t-1]||this.tabs[this.tabs.length-1],o&&o.focus()}render(){return t(o,{key:"d0f37718e538b9dd4b5e0eed0dde161576725e25","data-version":e},t("div",{key:"1d3380b6317cad0bde525136854e93ee20e3bfbf",class:"tabs-wrapper",part:"tabs"},t("div",{key:"bc5cf13c94629e2938eb4ea85deb5ebd6c2b2dac",class:"tabs",role:"tablist"},t("slot",{key:"4fde604e204df192946080b652d60c27d7ff6cee",name:"tabs",onSlotchange:()=>this.enableTabs()}))),t("div",{key:"755b7153a2a8c683abf15d33a0d9180e8aa29db0",class:"tab-content",part:"content"},t("slot",{key:"23263344474597c54a7d8cc355d22919cb8685f1",onSlotchange:()=>this.moveMisplacedTabs()})))}get host(){return s(this)}};i.style='.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-white .tabs-wrapper{background-color:#fff}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-black .tabs-wrapper{background-color:#000}.bg-primary .tabs-wrapper{background-color:#333}.bg-secondary .tabs-wrapper{background-color:#666}.bg-success .tabs-wrapper{background-color:#2c871d}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-error .tabs-wrapper{background-color:#a51728}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}:host{display:block}';export{i as P}
@@ -1 +1 @@
1
- import{r as o,h as t,H as r,g as e}from"./p-8c7f0075.js";import{v as a}from"./p-1f9ddbd4.js";import{c as b}from"./p-b095519d.js";const c=class{constructor(t){o(this,t),this.tabId=void 0,this.panel=void 0}validateFor(o){b(o,'The "panel" prop is required for the post-tab-header.')}componentWillLoad(){this.tabId=`tab-${this.host.id||crypto.randomUUID()}`}render(){return t(r,{key:"1919a7a1f11ac0898b16e8fa4791d93ffd1fb1c4",id:this.tabId,role:"tab","data-version":a,"aria-selected":"false",tabindex:"-1",class:"tab-title",slot:"tabs"},t("slot",{key:"8d57e8e1883f4dd96db6edfb0e0a4519cc348a3c"}))}get host(){return e(this)}static get watchers(){return{panel:["validateFor"]}}};c.style='.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}';export{c as P}
1
+ import{r as o,h as t,H as r,g as e}from"./p-c0f265c8.js";import{v as a}from"./p-90479234.js";import{c as b}from"./p-b095519d.js";const c=class{constructor(t){o(this,t),this.tabId=void 0,this.panel=void 0}validateFor(o){b(o,'The "panel" prop is required for the post-tab-header.')}componentWillLoad(){this.tabId=`tab-${this.host.id||crypto.randomUUID()}`}render(){return t(r,{key:"ba101bdcdf05591293e07ab35aadb812862d8cc0",id:this.tabId,role:"tab","data-version":a,"aria-selected":"false",tabindex:"-1",class:"tab-title",slot:"tabs"},t("slot",{key:"276d95c72fc7014f8002f249f2bbab591ee8754d"}))}get host(){return e(this)}static get watchers(){return{panel:["validateFor"]}}};c.style='.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}';export{c as P}
@@ -0,0 +1 @@
1
+ export{P as post_tooltip}from"./p-5c4773cb.js";import"./p-c0f265c8.js";import"./p-90479234.js";import"./p-6adeaa6c.js";import"./p-f91c0e1b.js";import"./p-440193f4.js";import"./p-611b3c41.js";
@@ -0,0 +1 @@
1
+ import{r as s,h as t,H as o,g as e}from"./p-c0f265c8.js";import{v as a}from"./p-90479234.js";const r=class{constructor(t){s(this,t),this.panelId=void 0,this.name=void 0}componentWillLoad(){this.panelId=`panel-${this.host.id||crypto.randomUUID()}`}render(){return t(o,{key:"bd31fce17f303414e7d077fbc001b543d05e362c","data-version":a,id:this.panelId,role:"tabpanel"},t("slot",{key:"746b85fa6378312abb2f1e92cb4fffceafac1fc7"}))}get host(){return e(this)}};r.style=":host{display:none}";export{r as P}
@@ -1,2 +1,2 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],f="undefined"!=typeof window?window:{},u=f.document||{head:{}},d={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,v=[],y=[],b=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&d.o?k(w):d.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{$(v),$(y),(m=v.length>0)&&d.raf(w)},k=e=>h().then(e),g=b(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function C(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>R,ok:()=>O,unwrap:()=>T,unwrapErr:()=>A});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function R(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P,T=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},D=(e,t,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],a=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!j(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?L(null,o):o),r=i)};if(a(n),t){t.key&&(l=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,W);const f=L(e,null);return f.u=t,c.length>0&&(f.h=c),f.p=l,f.m=s,f},L=(e,t)=>({o:0,v:e,i:t,$:null,h:null,u:null,p:null,m:null}),N={},W={forEach:(e,t)=>e.map(F).forEach(t),map:(e,t)=>e.map(F).map(t).map(H)},F=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.m,vtag:e.v,vtext:e.i}),H=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),D(e.vtag,t,...e.vchildren||[])}const t=L(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.m=e.vname,t},U=e=>n(e).$hostElement$,q=(e,t,n)=>{const o=U(e);return{emit:e=>G(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},G=(e,t,n)=>{const o=d.ce(t,n);return e.dispatchEvent(o),o},V=new WeakMap,_=e=>"sc-"+e.k,z=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=I(n),s=I(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(f,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(J);t=t.replace(K,""),n&&d.rel(e,t,n,l),o&&d.ael(e,t,o,l)}}},B=/\s/,I=e=>e?e.split(B):[],J="Capture",K=RegExp(J+"$"),Q=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||S,s=t.u||S;for(const e of X(Object.keys(l)))e in s||z(o,e,l[e],void 0,n,t.o);for(const e of X(Object.keys(s)))z(o,e,l[e],s[e],n,t.o)};function X(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Y=!1,Z=!1,ee=!1,te=!1,ne=(e,t,n,o)=>{var l;const s=t.h[n];let i,r,c,a=0;if(Y||(ee=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)i=s.$=u.createTextNode(s.i);else if(1&s.o)i=s.$=u.createTextNode("");else if(i=s.$=u.createElement(!Y&&2&s.o?"slot-fb":s.v),Q(null,s,te),null!=M&&i["s-si"]!==M&&i.classList.add(i["s-si"]=M),s.h)for(a=0;a<s.h.length;++a)r=ne(e,s,a,i),r&&i.appendChild(r);return i["s-hn"]=P,3&s.o&&(i["s-sr"]=!0,i["s-cr"]=x,i["s-sn"]=s.m||"",i["s-rf"]=null==(l=s.u)?void 0:l.ref,c=e&&e.h&&e.h[n],c&&c.v===s.v&&e.$&&oe(e.$,!1)),i},oe=(e,t)=>{d.o|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==P&&o["s-ol"]&&(me(ce(o),o,re(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ee=!0),t&&oe(o,t)}d.o&=-2},le=(e,t,n,o,l,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=ne(null,n,l,e),i&&(o[l].$=i,me(r,i,re(t))))},se=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;pe(t),e&&(Z=!0,e["s-ol"]?e["s-ol"].remove():oe(e,!0),e.remove())}}},ie=(e,t,n=!1)=>e.v===t.v&&("slot"===e.v?e.m===t.m:!!n||e.p===t.p),re=e=>e&&e["s-ol"]||e,ce=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ae=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.i;let r;null===i?(("slot"!==t.v||Y)&&Q(e,t,te),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,a=0,f=0,u=t.length-1,d=t[0],h=t[u],p=o.length-1,m=o[0],v=o[p];for(;r<=u&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--u];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(ie(d,m,l))ae(d,m,l),d=t[++r],m=o[++c];else if(ie(h,v,l))ae(h,v,l),h=t[--u],v=o[--p];else if(ie(d,v,l))"slot"!==d.v&&"slot"!==v.v||oe(d.$.parentNode,!1),ae(d,v,l),me(e,d.$,h.$.nextSibling),d=t[++r],v=o[--p];else if(ie(h,m,l))"slot"!==d.v&&"slot"!==v.v||oe(h.$.parentNode,!1),ae(h,m,l),me(e,h.$,d.$),h=t[--u],m=o[++c];else{for(a=-1,f=r;f<=u;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){a=f;break}a>=0?(i=t[a],i.v!==m.v?s=ne(t&&t[c],n,a,e):(ae(i,m,l),t[a]=void 0,s=i.$),m=o[++c]):(s=ne(t&&t[c],n,c,e),m=o[++c]),s&&me(ce(d.$),s,re(d.$))}r>u?le(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&se(t,r,u)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),le(o,null,t,s,0,s.length-1)):null!==l&&se(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:e.i!==i&&(o.data=i)},fe=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const o of t)if(o!==e)if(o["s-hn"]!==e["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){e.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){e.hidden=!0;break}}fe(e)}},ue=[],de=e=>{let t,n,o;for(const l of e.childNodes){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=l["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"])if(he(t,e)){let n=ue.find((e=>e.S===t));Z=!0,t["s-sn"]=t["s-sn"]||e,n?(n.S["s-sh"]=l["s-hn"],n.j=l):(t["s-sh"]=l["s-hn"],ue.push({j:l,S:t})),t["s-sr"]&&ue.map((e=>{he(e.S,t["s-sn"])&&(n=ue.find((e=>e.S===t)),n&&!e.j&&(e.j=n.j))}))}else ue.some((e=>e.S===t))||ue.push({S:t})}1===l.nodeType&&de(l)}},he=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,pe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(pe)},me=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ve=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},ye=(e,t)=>{if(e.o|=16,!(4&e.o))return ve(e,e.O),g((()=>be(e,t)));e.o|=512},be=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t&&(e.o|=256,e.R&&(e.R.map((([e,t])=>Ce(n,e,t))),e.R=void 0),o=Ce(n,"componentWillLoad")),o=$e(o,(()=>Ce(n,"componentWillRender"))),$e(o,(()=>ke(e,n,t)))},$e=(e,t)=>we(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),we=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ke=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=e,l=_(t),s=r.get(l);if(e=11===e.nodeType?e:u,s)if("string"==typeof s){let i,r=V.get(e=o.head||e);if(r||V.set(e,r=new Set),!r.has(l)){{i=u.createElement("style"),i.innerHTML=s;const t=null!=(n=d.P)?n:C(u);null!=t&&i.setAttribute("nonce",t),e.insertBefore(i,e.querySelector("link"))}4&t.o&&(i.innerHTML+=c),r&&r.add(l)}}else o.adoptedStyleSheets.includes(s)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,s]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ge(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>Se(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ge=(e,t,n,o)=>{try{t=t.render&&t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{var o,l,s,i;const r=e.$hostElement$,c=e.M,a=e.T||L(null,null),f=(e=>e&&e.v===N)(t)?t:D(null,null,t);if(P=r.tagName,n&&f.u)for(const e of Object.keys(f.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(f.u[e]=r[e]);if(f.v=null,f.o|=4,e.T=f,f.$=a.$=r.shadowRoot||r,M=r["s-sc"],Y=!!(1&c.o),x=r["s-cr"],Z=!1,ae(a,f,n),d.o|=1,ee){de(f.$);for(const e of ue){const t=e.S;if(!t["s-ol"]){const e=u.createTextNode("");e["s-nr"]=t,me(t.parentNode,t["s-ol"]=e,t)}}for(const e of ue){const t=e.S,r=e.j;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(o=t["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===t["s-sn"]&&e===o.parentNode){for(o=o.nextSibling;o===t||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),me(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}Z&&fe(f.$),d.o&=-2,ue.length=0,x=void 0})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},Se=e=>{const t=e.$hostElement$,n=e.t,o=e.O;Ce(n,"componentDidRender"),64&e.o||(e.o|=64,Oe(t),Ce(n,"componentDidLoad"),e.A(t),o||je()),e.D(t),e.C&&(e.C(),e.C=void 0),512&e.o&&k((()=>ye(e,!1))),e.o&=-517},je=()=>{Oe(u.documentElement),k((()=>G(f,"appload",{detail:{namespace:"post-components"}})))},Ce=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},Oe=e=>e.classList.add("hydrated"),Ee=(e,t,o)=>{var l,i;const r=e.prototype;if(64&t.o&&1&o&&a.forEach((e=>Object.defineProperty(r,e,{value(...t){const o=n(this),l=o.t;if(l){const n=l[e];"function"==typeof n&&n.call(l,...t)}else o.L.then((n=>{const o=n[e];"function"==typeof o&&o.call(n,...t)}))}}))),t.N||t.W||e.watchers){e.watchers&&!t.W&&(t.W=e.watchers);const c=Object.entries(null!=(l=t.N)?l:{});if(c.map((([e,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(r,e,{get(){return((e,t)=>n(this).F.get(t))(0,e)},set(o){((e,t,o,l)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.F.get(t),a=i.o,f=i.t;if(o=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(o,l.N[t][0]),(!(8&a)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.F.set(t,o),f)){if(l.W&&128&a){const e=l.W[t];e&&e.map((e=>{try{f[e](o,c,t)}catch(e){s(e,r)}}))}2==(18&a)&&ye(i,!1)}})(this,e,o,t)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(r,e,{value(...t){var o;const l=n(this);return null==(o=null==l?void 0:l.H)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[e](...t)}))}})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){d.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.W)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.W)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},Re=e=>{Ce(e,"connectedCallback")},Me=e=>{Ce(e,"disconnectedCallback")},xe=(e,o={})=>{var l;const a=[],h=o.exclude||[],m=f.customElements,v=u.head,y=v.querySelector("meta[charset]"),b=u.createElement("style"),$=[];let w,k=!0;Object.assign(d,o),d.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{var l;const c={o:o[0],k:o[1],N:o[2],U:o[3]};4&c.o&&(g=!0),c.N=o[2],c.U=o[3],c.W=null!=(l=o[4])?l:{};const f=c.k,v=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,M:n,F:new Map};o.H=new Promise((e=>o.D=e)),o.L=new Promise((e=>o.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,c),1&c.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Pe(this,e,c.U)),w&&(clearTimeout(w),w=null),k?$.push(this):d.jmp((()=>(e=>{if(!(1&d.o)){const t=n(e),o=t.M,l=()=>{};if(1&t.o)Pe(e,t,o.U),(null==t?void 0:t.t)?Re(t.t):(null==t?void 0:t.L)&&t.L.then((()=>Re(t.t)));else{t.o|=1,12&o.o&&(e=>{const t=e["s-cr"]=u.createComment("");t["s-cn"]=!0,me(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ve(t,t.O=n);break}}o.N&&Object.entries(o.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.q){const e=(e=>{const t=e.k.replace(/-/g,"_"),n=e.q;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.k}#${t.G}" was not found`);o.isProxied||(n.W=o.watchers,Ee(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,t.o|=128,l(),Re(t.t)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=_(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.O,c=()=>ye(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.o)){const e=n(this);e.V&&(e.V.map((e=>e())),e.V=void 0),(null==e?void 0:e.t)?Me(e.t):(null==e?void 0:e.L)&&e.L.then((()=>Me(e.t)))}})()))}componentOnReady(){return n(this).L}};64&c.o&&(v.formAssociated=!0),c.q=e[0],h.includes(f)||m.get(f)||(a.push(f),m.define(f,Ee(v,c,1)))}))})),a.length>0&&(g&&(b.textContent+=c),b.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(l=d.P)?l:C(u);null!=e&&b.setAttribute("nonce",e),v.insertBefore(b,y?y.nextSibling:v.firstChild)}k=!1,$.length?$.map((e=>e.connectedCallback())):d.jmp((()=>w=setTimeout(je,30)))},Pe=(e,t,n)=>{n&&n.map((([n,o,l])=>{const s=Ae(e,n),i=Te(t,l),r=De(n);d.ael(s,o,i,r),(t.V=t.V||[]).push((()=>d.rel(s,o,i,r)))}))},Te=(e,t)=>n=>{var o;try{256&e.o?null==(o=e.t)||o[t](n):(e.R=e.R||[]).push([t,n])}catch(e){s(e)}},Ae=(e,t)=>4&t?u:e,De=e=>({passive:!!(1&e),capture:!!(2&e)}),Le=e=>d.P=e;export{N as H,xe as b,q as c,U as g,D as h,h as p,o as r,Le as s}
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],f="undefined"!=typeof window?window:{},u=f.document||{head:{}},d={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,v=[],y=[],b=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&d.o?k(w):d.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{$(v),$(y),(m=v.length>0)&&d.raf(w)},k=e=>h().then(e),g=b(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function C(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>R,ok:()=>O,unwrap:()=>T,unwrapErr:()=>A});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function R(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P,T=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},D=(e,t,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],a=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!j(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?L(null,o):o),r=i)};if(a(n),t){t.key&&(l=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,W);const f=L(e,null);return f.u=t,c.length>0&&(f.h=c),f.p=l,f.m=s,f},L=(e,t)=>({o:0,v:e,i:t,$:null,h:null,u:null,p:null,m:null}),N={},W={forEach:(e,t)=>e.map(F).forEach(t),map:(e,t)=>e.map(F).map(t).map(H)},F=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.m,vtag:e.v,vtext:e.i}),H=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),D(e.vtag,t,...e.vchildren||[])}const t=L(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.m=e.vname,t},U=e=>n(e).$hostElement$,q=(e,t,n)=>{const o=U(e);return{emit:e=>G(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},G=(e,t,n)=>{const o=d.ce(t,n);return e.dispatchEvent(o),o},V=new WeakMap,_=e=>"sc-"+e.k,z=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=I(n),s=I(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(f,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(J);t=t.replace(K,""),n&&d.rel(e,t,n,l),o&&d.ael(e,t,o,l)}}},B=/\s/,I=e=>e?e.split(B):[],J="Capture",K=RegExp(J+"$"),Q=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||S,s=t.u||S;for(const e of X(Object.keys(l)))e in s||z(o,e,l[e],void 0,n,t.o);for(const e of X(Object.keys(s)))z(o,e,l[e],s[e],n,t.o)};function X(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Y=!1,Z=!1,ee=!1,te=!1,ne=(e,t,n,o)=>{var l;const s=t.h[n];let i,r,c,a=0;if(Y||(ee=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)i=s.$=u.createTextNode(s.i);else if(1&s.o)i=s.$=u.createTextNode("");else if(i=s.$=u.createElement(!Y&&2&s.o?"slot-fb":s.v),Q(null,s,te),null!=M&&i["s-si"]!==M&&i.classList.add(i["s-si"]=M),s.h)for(a=0;a<s.h.length;++a)r=ne(e,s,a,i),r&&i.appendChild(r);return i["s-hn"]=P,3&s.o&&(i["s-sr"]=!0,i["s-cr"]=x,i["s-sn"]=s.m||"",i["s-rf"]=null==(l=s.u)?void 0:l.ref,c=e&&e.h&&e.h[n],c&&c.v===s.v&&e.$&&oe(e.$,!1)),i},oe=(e,t)=>{d.o|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==P&&o["s-ol"]&&(me(ce(o),o,re(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ee=!0),t&&oe(o,t)}d.o&=-2},le=(e,t,n,o,l,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=ne(null,n,l,e),i&&(o[l].$=i,me(r,i,re(t))))},se=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;pe(t),e&&(Z=!0,e["s-ol"]?e["s-ol"].remove():oe(e,!0),e.remove())}}},ie=(e,t,n=!1)=>e.v===t.v&&("slot"===e.v?e.m===t.m:!!n||e.p===t.p),re=e=>e&&e["s-ol"]||e,ce=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ae=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.i;let r;null===i?(("slot"!==t.v||Y)&&Q(e,t,te),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,a=0,f=0,u=t.length-1,d=t[0],h=t[u],p=o.length-1,m=o[0],v=o[p];for(;r<=u&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--u];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(ie(d,m,l))ae(d,m,l),d=t[++r],m=o[++c];else if(ie(h,v,l))ae(h,v,l),h=t[--u],v=o[--p];else if(ie(d,v,l))"slot"!==d.v&&"slot"!==v.v||oe(d.$.parentNode,!1),ae(d,v,l),me(e,d.$,h.$.nextSibling),d=t[++r],v=o[--p];else if(ie(h,m,l))"slot"!==d.v&&"slot"!==v.v||oe(h.$.parentNode,!1),ae(h,m,l),me(e,h.$,d.$),h=t[--u],m=o[++c];else{for(a=-1,f=r;f<=u;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){a=f;break}a>=0?(i=t[a],i.v!==m.v?s=ne(t&&t[c],n,a,e):(ae(i,m,l),t[a]=void 0,s=i.$),m=o[++c]):(s=ne(t&&t[c],n,c,e),m=o[++c]),s&&me(ce(d.$),s,re(d.$))}r>u?le(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&se(t,r,u)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),le(o,null,t,s,0,s.length-1)):null!==l&&se(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:e.i!==i&&(o.data=i)},fe=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const o of t)if(o!==e)if(o["s-hn"]!==e["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){e.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){e.hidden=!0;break}}fe(e)}},ue=[],de=e=>{let t,n,o;for(const l of e.childNodes){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=l["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"])if(he(t,e)){let n=ue.find((e=>e.S===t));Z=!0,t["s-sn"]=t["s-sn"]||e,n?(n.S["s-sh"]=l["s-hn"],n.j=l):(t["s-sh"]=l["s-hn"],ue.push({j:l,S:t})),t["s-sr"]&&ue.map((e=>{he(e.S,t["s-sn"])&&(n=ue.find((e=>e.S===t)),n&&!e.j&&(e.j=n.j))}))}else ue.some((e=>e.S===t))||ue.push({S:t})}1===l.nodeType&&de(l)}},he=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,pe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(pe)},me=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ve=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},ye=(e,t)=>{if(e.o|=16,!(4&e.o))return ve(e,e.O),g((()=>be(e,t)));e.o|=512},be=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t&&(e.o|=256,e.R&&(e.R.map((([e,t])=>Ce(n,e,t))),e.R=void 0),o=Ce(n,"componentWillLoad")),o=$e(o,(()=>Ce(n,"componentWillRender"))),$e(o,(()=>ke(e,n,t)))},$e=(e,t)=>we(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),we=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ke=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=_(t),l=r.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=V.get(e=e.head||e);if(i||V.set(e,i=new Set),!i.has(o)){{s=u.createElement("style"),s.innerHTML=l;const t=null!=(n=d.P)?n:C(u);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ge(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>Se(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ge=(e,t,n,o)=>{try{t=t.render&&t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{var o,l,s,i;const r=e.$hostElement$,c=e.M,a=e.T||L(null,null),f=(e=>e&&e.v===N)(t)?t:D(null,null,t);if(P=r.tagName,n&&f.u)for(const e of Object.keys(f.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(f.u[e]=r[e]);if(f.v=null,f.o|=4,e.T=f,f.$=a.$=r.shadowRoot||r,M=r["s-sc"],Y=!!(1&c.o),x=r["s-cr"],Z=!1,ae(a,f,n),d.o|=1,ee){de(f.$);for(const e of ue){const t=e.S;if(!t["s-ol"]){const e=u.createTextNode("");e["s-nr"]=t,me(t.parentNode,t["s-ol"]=e,t)}}for(const e of ue){const t=e.S,r=e.j;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(o=t["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===t["s-sn"]&&e===o.parentNode){for(o=o.nextSibling;o===t||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),me(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}Z&&fe(f.$),d.o&=-2,ue.length=0,x=void 0})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},Se=e=>{const t=e.$hostElement$,n=e.t,o=e.O;Ce(n,"componentDidRender"),64&e.o||(e.o|=64,Oe(t),Ce(n,"componentDidLoad"),e.A(t),o||je()),e.D(t),e.C&&(e.C(),e.C=void 0),512&e.o&&k((()=>ye(e,!1))),e.o&=-517},je=()=>{Oe(u.documentElement),k((()=>G(f,"appload",{detail:{namespace:"post-components"}})))},Ce=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},Oe=e=>e.classList.add("hydrated"),Ee=(e,t,o)=>{var l,i;const r=e.prototype;if(64&t.o&&1&o&&a.forEach((e=>Object.defineProperty(r,e,{value(...t){const o=n(this),l=o.t;if(l){const n=l[e];"function"==typeof n&&n.call(l,...t)}else o.L.then((n=>{const o=n[e];"function"==typeof o&&o.call(n,...t)}))}}))),t.N||t.W||e.watchers){e.watchers&&!t.W&&(t.W=e.watchers);const c=Object.entries(null!=(l=t.N)?l:{});if(c.map((([e,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(r,e,{get(){return((e,t)=>n(this).F.get(t))(0,e)},set(o){((e,t,o,l)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.F.get(t),a=i.o,f=i.t;if(o=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(o,l.N[t][0]),(!(8&a)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.F.set(t,o),f)){if(l.W&&128&a){const e=l.W[t];e&&e.map((e=>{try{f[e](o,c,t)}catch(e){s(e,r)}}))}2==(18&a)&&ye(i,!1)}})(this,e,o,t)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(r,e,{value(...t){var o;const l=n(this);return null==(o=null==l?void 0:l.H)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[e](...t)}))}})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){d.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.W)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.W)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},Re=e=>{Ce(e,"connectedCallback")},Me=e=>{Ce(e,"disconnectedCallback")},xe=(e,o={})=>{var l;const a=[],h=o.exclude||[],m=f.customElements,v=u.head,y=v.querySelector("meta[charset]"),b=u.createElement("style"),$=[];let w,k=!0;Object.assign(d,o),d.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{var l;const c={o:o[0],k:o[1],N:o[2],U:o[3]};4&c.o&&(g=!0),c.N=o[2],c.U=o[3],c.W=null!=(l=o[4])?l:{};const f=c.k,v=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,M:n,F:new Map};o.H=new Promise((e=>o.D=e)),o.L=new Promise((e=>o.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,c),1&c.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Pe(this,e,c.U)),w&&(clearTimeout(w),w=null),k?$.push(this):d.jmp((()=>(e=>{if(!(1&d.o)){const t=n(e),o=t.M,l=()=>{};if(1&t.o)Pe(e,t,o.U),(null==t?void 0:t.t)?Re(t.t):(null==t?void 0:t.L)&&t.L.then((()=>Re(t.t)));else{t.o|=1,12&o.o&&(e=>{const t=e["s-cr"]=u.createComment("");t["s-cn"]=!0,me(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ve(t,t.O=n);break}}o.N&&Object.entries(o.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.q){const e=(e=>{const t=e.k.replace(/-/g,"_"),n=e.q;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.k}#${t.G}" was not found`);o.isProxied||(n.W=o.watchers,Ee(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,t.o|=128,l(),Re(t.t)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=_(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.O,c=()=>ye(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.o)){const e=n(this);e.V&&(e.V.map((e=>e())),e.V=void 0),(null==e?void 0:e.t)?Me(e.t):(null==e?void 0:e.L)&&e.L.then((()=>Me(e.t)))}})()))}componentOnReady(){return n(this).L}};64&c.o&&(v.formAssociated=!0),c.q=e[0],h.includes(f)||m.get(f)||(a.push(f),m.define(f,Ee(v,c,1)))}))})),a.length>0&&(g&&(b.textContent+=c),b.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(l=d.P)?l:C(u);null!=e&&b.setAttribute("nonce",e),v.insertBefore(b,y?y.nextSibling:v.firstChild)}k=!1,$.length?$.map((e=>e.connectedCallback())):d.jmp((()=>w=setTimeout(je,30)))},Pe=(e,t,n)=>{n&&n.map((([n,o,l])=>{const s=e,i=Te(t,l),r=Ae(n);d.ael(s,o,i,r),(t.V=t.V||[]).push((()=>d.rel(s,o,i,r)))}))},Te=(e,t)=>n=>{var o;try{256&e.o?null==(o=e.t)||o[t](n):(e.R=e.R||[]).push([t,n])}catch(e){s(e)}},Ae=e=>({passive:!!(1&e),capture:!!(2&e)}),De=e=>d.P=e;export{N as H,xe as b,q as c,U as g,D as h,h as p,o as r,De as s}