@swisspost/design-system-components 7.4.11 → 7.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +16 -16
- package/dist/cjs/{package-90a34c68.js → package-172db7ed.js} +1 -1
- package/dist/cjs/{post-accordion-523563dc.js → post-accordion-44cda346.js} +1 -1
- package/dist/cjs/{post-accordion-item-63038f3c.js → post-accordion-item-01ec6014.js} +1 -1
- package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/post-accordion.cjs.entry.js +2 -2
- package/dist/cjs/{post-alert-f2d60637.js → post-alert-94bea417.js} +1 -1
- package/dist/cjs/post-alert.cjs.entry.js +2 -2
- package/dist/cjs/{post-card-control-d24df42e.js → post-card-control-3daa1582.js} +1 -1
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-1b667879.js → post-collapsible-a522f6c4.js} +1 -1
- package/dist/cjs/{post-collapsible-trigger-84783a3c.js → post-collapsible-trigger-9f8d8702.js} +1 -1
- package/dist/cjs/post-collapsible-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-collapsible.cjs.entry.js +2 -2
- package/dist/cjs/{post-icon-097ed746.js → post-icon-72a053e4.js} +1 -1
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/{post-popover-c694dc71.js → post-popover-9cb26773.js} +1 -1
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-popovercontainer-9528d26d.js → post-popovercontainer-3f09b4e7.js} +1 -1
- package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
- package/dist/cjs/{post-rating-654ad87a.js → post-rating-02ee16e6.js} +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-header-1da67676.js → post-tab-header-45438ff3.js} +1 -1
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-7b2bda81.js → post-tab-panel-4de7195e.js} +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-90e0a8f3.js → post-tabs-24ed83ae.js} +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-c1dbc1e3.js → post-tag-a49b9f42.js} +1 -1
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/{post-tooltip-876ba174.js → post-tooltip-21c40efd.js} +1 -1
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/components/package.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +16 -16
- package/dist/esm/{package-9d6426d1.js → package-4bddc9a8.js} +1 -1
- package/dist/esm/{post-accordion-e140a9d4.js → post-accordion-94b420ec.js} +1 -1
- package/dist/esm/{post-accordion-item-03203ecd.js → post-accordion-item-46cbb050.js} +1 -1
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/{post-alert-a9791ef2.js → post-alert-89b799a8.js} +1 -1
- package/dist/esm/post-alert.entry.js +2 -2
- package/dist/esm/{post-card-control-8ef31b10.js → post-card-control-89e24326.js} +1 -1
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/{post-collapsible-fdeee1a8.js → post-collapsible-50e5426b.js} +1 -1
- package/dist/esm/{post-collapsible-trigger-bfa217db.js → post-collapsible-trigger-8a4acb20.js} +1 -1
- package/dist/esm/post-collapsible-trigger.entry.js +2 -2
- package/dist/esm/post-collapsible.entry.js +2 -2
- package/dist/esm/{post-icon-27bb7505.js → post-icon-7d46c64d.js} +1 -1
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/{post-popover-77691872.js → post-popover-6f2e44d0.js} +1 -1
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-popovercontainer-e81c8c09.js → post-popovercontainer-a536f933.js} +1 -1
- package/dist/esm/post-popovercontainer.entry.js +2 -2
- package/dist/esm/{post-rating-23f986bf.js → post-rating-add3d377.js} +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/{post-tab-header-ee7a4c4a.js → post-tab-header-002cbc1b.js} +1 -1
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-e4514e2c.js → post-tab-panel-2201cf68.js} +1 -1
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-e7b19b56.js → post-tabs-97503638.js} +1 -1
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-83a1f5cd.js → post-tag-05db6080.js} +1 -1
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/{post-tooltip-f5942d2f.js → post-tooltip-d88e0972.js} +1 -1
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/{p-c0740b36.js → p-14c2e215.js} +1 -1
- package/dist/post-components/{p-1357ab17.js → p-1a20cc56.js} +1 -1
- package/dist/post-components/{p-9605c5f4.js → p-22d0dbf7.js} +1 -1
- package/dist/post-components/p-2764a79d.entry.js +1 -0
- package/dist/post-components/{p-1708b957.js → p-28178882.js} +1 -1
- package/dist/post-components/{p-e6983d7b.js → p-3296ef0a.js} +1 -1
- package/dist/post-components/p-33033f25.js +1 -0
- package/dist/post-components/{p-70c91301.js → p-393ee572.js} +1 -1
- package/dist/post-components/p-3c559827.entry.js +1 -0
- package/dist/post-components/p-40ef7025.entry.js +1 -0
- package/dist/post-components/{p-394d183e.js → p-421ef85c.js} +1 -1
- package/dist/post-components/p-4289e37c.entry.js +1 -0
- package/dist/post-components/p-473ceb5c.entry.js +1 -0
- package/dist/post-components/p-4fe9eb2a.entry.js +1 -0
- package/dist/post-components/p-5765c074.entry.js +1 -0
- package/dist/post-components/p-60fade85.entry.js +1 -0
- package/dist/post-components/{p-064c1b18.js → p-6d2d9ac5.js} +1 -1
- package/dist/post-components/{p-38fb68da.js → p-715c0237.js} +1 -1
- package/dist/post-components/{p-b1fcc75c.js → p-7f323fd4.js} +1 -1
- package/dist/post-components/{p-b16601a9.js → p-82fa32f8.js} +1 -1
- package/dist/post-components/p-86e5e84c.entry.js +1 -0
- package/dist/post-components/{p-e1d56ade.js → p-8dbd3a11.js} +1 -1
- package/dist/post-components/p-9001c3aa.entry.js +1 -0
- package/dist/post-components/{p-82e57348.js → p-9e781544.js} +1 -1
- package/dist/post-components/p-a98b0744.entry.js +1 -0
- package/dist/post-components/p-aad48fe3.entry.js +1 -0
- package/dist/post-components/p-b2da0804.entry.js +1 -0
- package/dist/post-components/p-b657d501.entry.js +1 -0
- package/dist/post-components/{p-72f708f1.js → p-d6cc6d3a.js} +1 -1
- package/dist/post-components/p-e0033f1d.entry.js +1 -0
- package/dist/post-components/{p-1e34ed6d.js → p-f3237cc6.js} +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/package.json +2 -2
- package/dist/post-components/p-1c5ff741.entry.js +0 -1
- package/dist/post-components/p-2b4470d0.entry.js +0 -1
- package/dist/post-components/p-2f1db3fb.entry.js +0 -1
- package/dist/post-components/p-3704b194.entry.js +0 -1
- package/dist/post-components/p-4cfba627.entry.js +0 -1
- package/dist/post-components/p-57d4644a.entry.js +0 -1
- package/dist/post-components/p-5d28247f.entry.js +0 -1
- package/dist/post-components/p-93d1dc90.js +0 -1
- package/dist/post-components/p-9a99eb2e.entry.js +0 -1
- package/dist/post-components/p-a1c87a90.entry.js +0 -1
- package/dist/post-components/p-a598cd4c.entry.js +0 -1
- package/dist/post-components/p-a61dd5b4.entry.js +0 -1
- package/dist/post-components/p-aaeb6f4f.entry.js +0 -1
- package/dist/post-components/p-bd174894.entry.js +0 -1
- package/dist/post-components/p-c0c02502.entry.js +0 -1
- package/dist/post-components/p-ca818834.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tooltip}from"./p-8dbd3a11.js";import"./p-8c7f0075.js";import"./p-33033f25.js";import"./p-6adeaa6c.js";import"./p-ac500761.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_collapsible_trigger}from"./p-82fa32f8.js";import"./p-8c7f0075.js";import"./p-33033f25.js";import"./p-4a3f67ab.js";import"./p-b095519d.js";import"./p-440193f4.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_rating}from"./p-421ef85c.js";import"./p-8c7f0075.js";import"./p-33033f25.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_accordion_item}from"./p-14c2e215.js";import"./p-8c7f0075.js";import"./p-33033f25.js";import"./p-247a1668.js";import"./p-ac500761.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as n,H as o,g as r}from"./p-8c7f0075.js";import{v as i}from"./p-93d1dc90.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 w(t){return"x"===t?"y":"x"}function b(t){return"y"===t?"height":"width"}function v(t){return["top","bottom"].includes(m(t))?"y":"x"}function y(t){return w(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=b(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],w=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})),b="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:b,offsetParent:v,strategy:s}):b);return{top:(w.top-x.top+m.top)/y.y,bottom:(x.bottom-w.bottom+m.bottom)/y.y,left:(w.left-x.left+m.left)/y.x,right:(x.right-w.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=I(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(j(e))return null;if(C(e))return e;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:w}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof w&&(d="end"===a?-1*w:w),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=w(f);let g=c[p],b=c[f];i&&(g=d(g+u["y"===p?"top":"left"],g,g-u["y"===p?"bottom":"right"])),l&&(b=d(b+u["y"===f?"top":"left"],b,b-u["y"===f?"bottom":"right"]));const y=a.fn({...e,[p]:g,[f]:b});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:w="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"===w||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,w,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=b(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:w,height:b}=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=b-u[y],T=w-u[x],E=!e.middlewareData.shift;let A=S,k=T;if(d){const t=w-u.left-u.right;k=p||E?l(T,t):t}else{const t=b-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=w-2*(0!==t||0!==e?t+e:a(u.left,u.right)):A=b-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 w!==L.width||b!==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=w(f);let d=u[p],g=u[f];const b=h(a,e),y="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};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 w(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 b(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;)b(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;)b(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(){w(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){b(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===a.get(this)&&void 0===t||!1===t?b(this,!0,!0):(void 0===t||!0===t)&&w(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?b(e,!0,!0):u(e,!1)&&(c.set(e,t),w(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 w=!0;function b(t){const e=t[0].intersectionRatio;if(e!==f){if(!w)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}w=!1}try{o=new IntersectionObserver(b,{...g,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(b,g)}o.observe(t)}(!0),i}(p,n):null;let m,g=-1,w=null;s&&(w=new ResizeObserver((t=>{let[o]=t;o&&o.target===p&&w&&(w.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(e)}))),n()})),p&&!f&&w.observe(p),w.observe(e));let b=f?Q(t):null;return f&&function e(){const o=Q(t);!b||o.x===b.x&&o.y===b.y&&o.width===b.width&&o.height===b.height||n(),b=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=w)||t.disconnect(),w=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)),w=T(c),b=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-w.left&&u<t.right+w.right&&f>t.top-w.top&&f<t.bottom+w.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!==b.reference.x||r.reference.y!==b.reference.y||r.reference.width!==b.reference.width||r.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}),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},w=y(r),v=b(w),x=await a.getDimensions(u),S="y"===w,E=S?"top":"left",A=S?"bottom":"right",M=S?"clientHeight":"clientWidth",k=i.reference[v]+i.reference[w]-m[w]-i.floating[v],L=m[w]-i.reference[w],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{[w]:m[w]+B,data:{[w]: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:w,data:b,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!=w?w:f,d={...d,[i]:{...d[i],...b}},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:"944364458c19e3a11171571402f183449dafff24","data-version":i},this.arrow&&n("span",{key:"f77a61b4b6f4f4ceb861ef8eb7d16f71f45642ec",class:"arrow",ref:t=>{this.arrowRef=t}}),n("slot",{key:"feeedfe09388dca41ee1048c8702c68bd0a91d33"}))}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
|
+
import{r as t,c as e,h as n,H as o,g as r}from"./p-8c7f0075.js";import{v as i}from"./p-33033f25.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 w(t){return"x"===t?"y":"x"}function b(t){return"y"===t?"height":"width"}function v(t){return["top","bottom"].includes(m(t))?"y":"x"}function y(t){return w(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=b(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],w=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})),b="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:b,offsetParent:v,strategy:s}):b);return{top:(w.top-x.top+m.top)/y.y,bottom:(x.bottom-w.bottom+m.bottom)/y.y,left:(w.left-x.left+m.left)/y.x,right:(x.right-w.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=I(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(j(e))return null;if(C(e))return e;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:w}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof w&&(d="end"===a?-1*w:w),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=w(f);let g=c[p],b=c[f];i&&(g=d(g+u["y"===p?"top":"left"],g,g-u["y"===p?"bottom":"right"])),l&&(b=d(b+u["y"===f?"top":"left"],b,b-u["y"===f?"bottom":"right"]));const y=a.fn({...e,[p]:g,[f]:b});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:w="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"===w||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,w,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=b(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:w,height:b}=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=b-u[y],T=w-u[x],E=!e.middlewareData.shift;let A=S,k=T;if(d){const t=w-u.left-u.right;k=p||E?l(T,t):t}else{const t=b-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=w-2*(0!==t||0!==e?t+e:a(u.left,u.right)):A=b-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 w!==L.width||b!==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=w(f);let d=u[p],g=u[f];const b=h(a,e),y="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};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 w(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 b(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;)b(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;)b(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(){w(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){b(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===a.get(this)&&void 0===t||!1===t?b(this,!0,!0):(void 0===t||!0===t)&&w(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?b(e,!0,!0):u(e,!1)&&(c.set(e,t),w(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 w=!0;function b(t){const e=t[0].intersectionRatio;if(e!==f){if(!w)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}w=!1}try{o=new IntersectionObserver(b,{...g,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(b,g)}o.observe(t)}(!0),i}(p,n):null;let m,g=-1,w=null;s&&(w=new ResizeObserver((t=>{let[o]=t;o&&o.target===p&&w&&(w.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(e)}))),n()})),p&&!f&&w.observe(p),w.observe(e));let b=f?Q(t):null;return f&&function e(){const o=Q(t);!b||o.x===b.x&&o.y===b.y&&o.width===b.width&&o.height===b.height||n(),b=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=w)||t.disconnect(),w=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)),w=T(c),b=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-w.left&&u<t.right+w.right&&f>t.top-w.top&&f<t.bottom+w.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!==b.reference.x||r.reference.y!==b.reference.y||r.reference.width!==b.reference.width||r.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}),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},w=y(r),v=b(w),x=await a.getDimensions(u),S="y"===w,E=S?"top":"left",A=S?"bottom":"right",M=S?"clientHeight":"clientWidth",k=i.reference[v]+i.reference[w]-m[w]-i.floating[v],L=m[w]-i.reference[w],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{[w]:m[w]+B,data:{[w]: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:w,data:b,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!=w?w:f,d={...d,[i]:{...d[i],...b}},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:"944364458c19e3a11171571402f183449dafff24","data-version":i},this.arrow&&n("span",{key:"f77a61b4b6f4f4ceb861ef8eb7d16f71f45642ec",class:"arrow",ref:t=>{this.arrowRef=t}}),n("slot",{key:"feeedfe09388dca41ee1048c8702c68bd0a91d33"}))}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 t,c as s,h as e,H as o,g as i}from"./p-8c7f0075.js";import{v as r}from"./p-
|
|
1
|
+
import{r as t,c as s,h as e,H as o,g as i}from"./p-8c7f0075.js";import{v as r}from"./p-33033f25.js";import{b as a}from"./p-ac500761.js";const h={height:"0",overflow:"hidden"},d={duration:350,easing:"ease",fill:"forwards"},c=class{constructor(e){t(this,e),this.postToggle=s(this,"postToggle",7),this.isLoaded=!1,this.isOpen=!0,this.collapsed=!1}collapsedChange(){a(this.collapsed,"boolean","The `collapsed` property of the `post-collapsible` must be a boolean."),this.toggle(!this.collapsed)}componentDidLoad(){this.collapsedChange(),this.isLoaded=!0,this.updateTriggers()}async toggle(t=!this.isOpen){if(t===this.isOpen)return t;this.isOpen=t,this.collapsed=!t,this.isLoaded&&this.postToggle.emit(t);const s=t?(e=this.host).animate([h,{height:`${e.scrollHeight}px`,offset:1},{height:"auto"}],d):(t=>{const s={height:window.getComputedStyle(t).height};return t.animate([s,h],d)})(this.host);var e;return this.isLoaded&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches||s.finish(),await s.finished,s.commitStyles(),t}updateTriggers(){document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`).forEach((t=>t.update()))}render(){return e(o,{key:"17ddf586d9b997dba2fa5d19df2561cf0fc8d58f","data-version":r},e("slot",{key:"40abf5ef74c096083dcf91a1d8cf3cb99da6a926"}))}get host(){return i(this)}static get watchers(){return{collapsed:["collapsedChange"]}}};c.style=":host{display:block;overflow:hidden}";export{c as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as o,H as t,g as i}from"./p-8c7f0075.js";import{v as s}from"./p-
|
|
1
|
+
import{r as e,h as o,H as t,g as i}from"./p-8c7f0075.js";import{v as s}from"./p-33033f25.js";import{g as r}from"./p-6adeaa6c.js";let n=0;const a="data-popover-target",c=e=>{const o=e.target;if(!o||!("getAttribute"in o))return;const t=o.getAttribute(a);if(!t||"key"in e&&"Enter"!==e.key)return;const i=document.getElementById(t);null==i||i.toggle(o)},l=r(a,(e=>{const o=e.hasAttribute(a);e.setAttribute("aria-expanded",o?"false":null)})),d=class{constructor(o){e(this,o),this.placement="top",this.closeButtonCaption=void 0,this.arrow=!0,this.localBeforeToggleHandler=this.beforeToggleHandler.bind(this)}connectedCallback(){0===n&&(window.addEventListener("pointerup",c),window.addEventListener("keydown",c),l.observe(document.body,{subtree:!0,childList:!0,attributeFilter:[a]})),n++,this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}componentDidLoad(){this.popoverRef.addEventListener("beforetoggle",this.localBeforeToggleHandler)}disconnectedCallback(){n--,0===n&&(window.removeEventListener("click",c),window.removeEventListener("keydown",c),l.disconnect()),this.popoverRef.removeEventListener("beforetoggle",this.localBeforeToggleHandler),this.triggers.forEach((e=>e.removeAttribute("aria-expanded")))}async show(e){this.popoverRef.show(e),e.setAttribute("aria-expanded","true")}async hide(){this.popoverRef.hide(),this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}async toggle(e,o){const t=await this.popoverRef.toggle(e,o);this.triggers.forEach((e=>e.setAttribute("aria-expanded","false"))),e.setAttribute("aria-expanded",`${t}`)}get triggers(){return document.querySelectorAll(`[${a}="${this.host.id}"]`)}beforeToggleHandler(){this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}render(){return o(t,{key:"943dbb1a0a290d281ebe0f346ccd531f8acbbb5e","data-version":s},o("post-popovercontainer",{key:"aa6bf3a2cc395ce612342b78bee23bcd1b68db5e",arrow:this.arrow,placement:this.placement,ref:e=>this.popoverRef=e},o("div",{key:"3ba6f039088615157ba47ebc448770fd9128efa0",class:"popover-container"},o("div",{key:"0472f76d0cf51269029534c29f155e0f71d649fb",class:"popover-content"},o("slot",{key:"1d722457c871c0aac9297b0517fe077c32e73794"})),o("button",{key:"430fa605ce81aad6b8709c22a31da62cdf6022e5",class:"btn-close",onClick:()=>this.hide()},o("span",{key:"37169089662c8ef1edd8de6389c55f9eee4e1a9e",class:"visually-hidden"},this.closeButtonCaption)))))}get host(){return i(this)}};d.style="/*!\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 */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-style:none !important;outline-offset:2px !important;outline-width:2px !important;outline-color:var(--post-focus-color) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}: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]) .btn-close{color:var(--post-contrast-color)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px}@media (max-width: 599.98px){.popover-container{max-width:100%}}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";export{d as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,g as s}from"./p-8c7f0075.js";import{v as i}from"./p-
|
|
1
|
+
import{r as t,g as s}from"./p-8c7f0075.js";import{v as i}from"./p-33033f25.js";import{c as o}from"./p-4a3f67ab.js";import{c as e}from"./p-b095519d.js";const r=class{constructor(s){t(this,s),this.observer=new MutationObserver((()=>this.setTrigger())),this.debouncedUpdate=function(t,s=200){let i;return(...o)=>{i&&clearTimeout(i),i=setTimeout(t,s,...o)}}((()=>{var t;if(!this.trigger)return;const s=this.trigger.getAttribute("aria-controls");(null==s?void 0:s.includes(this.for))||this.trigger.setAttribute("aria-controls",s?`${s} ${this.for}`:this.for);const i=null===(t=this.collapsible)||void 0===t?void 0:t.collapsed;this.trigger.setAttribute("aria-expanded",`${void 0!==i?!i:void 0}`)})),this.for=void 0}setAriaAttributes(){e(this.for,'The post-collapsible-trigger "for" prop is required.'),o(this.for,"string",'The post-collapsible-trigger "for" prop should be a id.'),this.update()}connectedCallback(){this.observer.observe(this.host,{childList:!0,subtree:!0})}componentDidLoad(){this.host.setAttribute("data-version",i),this.setTrigger(),this.trigger||console.warn("The post-collapsible-trigger must contain a button.")}disconnectedCallback(){this.observer.disconnect()}setAriaExpanded(t){this.trigger&&t.target.isEqualNode(this.collapsible)&&this.trigger.setAttribute("aria-expanded",`${t.detail}`)}async update(){this.debouncedUpdate()}async toggleCollapsible(){var t;await(null===(t=this.collapsible)||void 0===t?void 0:t.toggle())}get collapsible(){const t=document.getElementById(this.for);return t&&"post-collapsible"===t.localName?t:null}setTrigger(){const t=this.host.querySelector("button");!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger=t,this.trigger.addEventListener("click",(()=>this.toggleCollapsible())),this.setAriaAttributes())}get host(){return s(this)}static get watchers(){return{for:["setAriaAttributes"]}}};export{r as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tab_header}from"./p-3296ef0a.js";import"./p-8c7f0075.js";import"./p-33033f25.js";import"./p-b095519d.js";import"./p-440193f4.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,h as t,H as n,g as r}from"./p-8c7f0075.js";import{v as o}from"./p-
|
|
1
|
+
import{r as e,h as t,H as n,g as r}from"./p-8c7f0075.js";import{v as o}from"./p-33033f25.js";import{g as i}from"./p-6adeaa6c.js";import{b as a}from"./p-ac500761.js";var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c,d,s={exports:{}},f={exports:{}},b={exports:{}},v={exports:{}},p={exports:{}};c=p,d=p.exports,Object.defineProperty(d,"__esModule",{value:!0}),d.default=function(e){if(!e)return[];if(Array.isArray(e))return e;if(void 0!==e.nodeType)return[e];if("string"==typeof e&&(e=document.querySelectorAll(e)),void 0!==e.length)return[].slice.call(e,0);throw new TypeError("unexpected input "+String(e))},c.exports=d.default,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.label,n=void 0===t?"context-to-element":t,o=e.resolveDocument,i=e.defaultToDocument,a=(0,r.default)(e.context)[0];if(o&&a&&a.nodeType===Node.DOCUMENT_NODE&&(a=a.documentElement),!a&&i)return document.documentElement;if(!a)throw new TypeError(n+" requires valid options.context");if(a.nodeType!==Node.ELEMENT_NODE&&a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)throw new TypeError(n+" requires options.context to be an Element");return a};var n,r=(n=p.exports)&&n.__esModule?n:{default:n};e.exports=t.default}(v,v.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=[],t=(0,r.default)({label:"get/parents",context:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).context});t;)e.push(t),(t=t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE&&(t=null);return e};var n,r=(n=v.exports)&&n.__esModule?n:{default:n};e.exports=t.default}(b,b.exports);var m={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return r||function(e){n.some((function(t){return!!e[t]&&(r=t,!0)}))}(e),e[r](t)};var n=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector"],r=null;e.exports=t.default}(m,m.exports);var x={exports:{}},g={exports:{}},h={exports:{}},O={exports:{}},w={exports:{}},S={exports:{}};
|
|
2
2
|
/*!
|
|
3
3
|
* Platform.js <https://mths.be/platform>
|
|
4
4
|
* Copyright 2014-2016 Benjamin Tan <https://demoneaux.github.io/>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_popovercontainer}from"./p-6d2d9ac5.js";import"./p-8c7f0075.js";import"./p-33033f25.js";
|