Files
2024-02-28 17:06:42 +05:00

43 lines
51 KiB
JavaScript

import{bD as It,iK as dt,iL as Ht,iM as Te,iN as $t,iO as zt,iP as J,iQ as se,bE as D,bB as ht,bC as pt,dg as ae,bF as ke,bA as Kt,fc as Ut,eU as Wt,bG as Vt,iR as Re,fd as jt}from"./index-b5c8f851.js";import{d as mt,g as gt}from"./loader-f61cd56d.js";import{u as _t,c as Yt,a as Gt,s as Xt,d as qt,b as Qt,g as Zt,i as vt}from"./t9n-0922c59a.js";import{s as bt,a as wt,c as yt}from"./loadable-3ebcbea1.js";import{d as xt}from"./action-a6ed46b3.js";import{d as Et}from"./icon-8ad9147a.js";import{d as Jt}from"./debounce-49101817.js";import{o as $e}from"./openCloseComponent-cdeb3156.js";import{c as en}from"./observers-c5d3b3aa.js";/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/function ze(e,t){return(e+t)%t}/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/const Pt=["top","right","bottom","left"],Ke=["start","end"],Ue=Pt.reduce((e,t)=>e.concat(t,t+"-"+Ke[0],t+"-"+Ke[1]),[]),te=Math.min,q=Math.max,pe=Math.round,de=Math.floor,Y=e=>({x:e,y:e}),tn={left:"right",right:"left",bottom:"top",top:"bottom"},nn={start:"end",end:"start"};function De(e,t,n){return q(e,te(t,n))}function Z(e,t){return typeof e=="function"?e(t):e}function W(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function Tt(e){return e==="x"?"y":"x"}function Be(e){return e==="y"?"height":"width"}function we(e){return["top","bottom"].includes(W(e))?"y":"x"}function Se(e){return Tt(we(e))}function Ot(e,t,n){n===void 0&&(n=!1);const i=z(e),o=Se(e),r=Be(o);let s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=ge(s)),[s,ge(s)]}function on(e){const t=ge(e);return[me(e),t,me(t)]}function me(e){return e.replace(/start|end/g,t=>nn[t])}function sn(e,t,n){const i=["left","right"],o=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:i:t?i:o;case"left":case"right":return t?r:s;default:return[]}}function rn(e,t,n,i){const o=z(e);let r=sn(W(e),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),t&&(r=r.concat(r.map(me)))),r}function ge(e){return e.replace(/left|right|bottom|top/g,t=>tn[t])}function an(e){return{top:0,right:0,bottom:0,left:0,...e}}function At(e){return typeof e!="number"?an(e):{top:e,right:e,bottom:e,left:e}}function ve(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function We(e,t,n){let{reference:i,floating:o}=e;const r=we(t),s=Se(t),l=Be(s),u=W(t),f=r==="y",g=i.x+i.width/2-o.width/2,m=i.y+i.height/2-o.height/2,b=i[l]/2-o[l]/2;let h;switch(u){case"top":h={x:g,y:i.y-o.height};break;case"bottom":h={x:g,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:m};break;case"left":h={x:i.x-o.width,y:m};break;default:h={x:i.x,y:i.y}}switch(z(t)){case"start":h[s]-=b*(n&&f?-1:1);break;case"end":h[s]+=b*(n&&f?-1:1);break}return h}const cn=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:m}=We(f,i,u),b=i,h={},p=0;for(let w=0;w<l.length;w++){const{name:P,fn:v}=l[w],{x:T,y:C,data:R,reset:A}=await v({x:g,y:m,initialPlacement:i,placement:b,strategy:o,middlewareData:h,rects:f,platform:s,elements:{reference:e,floating:t}});if(g=T??g,m=C??m,h={...h,[P]:{...h[P],...R}},A&&p<=50){p++,typeof A=="object"&&(A.placement&&(b=A.placement),A.rects&&(f=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:g,y:m}=We(f,b,u)),w=-1;continue}}return{x:g,y:m,placement:b,strategy:o,middlewareData:h}};async function le(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:r,rects:s,elements:l,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:b=!1,padding:h=0}=Z(t,e),p=At(h),P=l[b?m==="floating"?"reference":"floating":m],v=ve(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(P)))==null||n?P:P.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:f,rootBoundary:g,strategy:u})),T=m==="floating"?{...s.floating,x:i,y:o}:s.reference,C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),R=await(r.isElement==null?void 0:r.isElement(C))?await(r.getScale==null?void 0:r.getScale(C))||{x:1,y:1}:{x:1,y:1},A=ve(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:C,strategy:u}):T);return{top:(v.top-A.top+p.top)/R.y,bottom:(A.bottom-v.bottom+p.bottom)/R.y,left:(v.left-A.left+p.left)/R.x,right:(A.right-v.right+p.right)/R.x}}const ln=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:r,platform:s,elements:l,middlewareData:u}=t,{element:f,padding:g=0}=Z(e,t)||{};if(f==null)return{};const m=At(g),b={x:n,y:i},h=Se(o),p=Be(h),w=await s.getDimensions(f),P=h==="y",v=P?"top":"left",T=P?"bottom":"right",C=P?"clientHeight":"clientWidth",R=r.reference[p]+r.reference[h]-b[h]-r.floating[p],A=b[h]-r.reference[h],B=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let F=B?B[C]:0;(!F||!await(s.isElement==null?void 0:s.isElement(B)))&&(F=l.floating[C]||r.floating[p]);const I=R/2-A/2,M=F/2-w[p]/2-1,k=te(m[v],M),E=te(m[T],M),a=k,c=F-w[p]-E,d=F/2-w[p]/2+I,y=De(a,d,c),x=!u.arrow&&z(o)!=null&&d!=y&&r.reference[p]/2-(d<a?k:E)-w[p]/2<0,O=x?d<a?d-a:d-c:0;return{[h]:b[h]+O,data:{[h]:y,centerOffset:d-y-O,...x&&{alignmentOffset:O}},reset:x}}});function un(e,t,n){return(e?[...n.filter(o=>z(o)===e),...n.filter(o=>z(o)!==e)]:n.filter(o=>W(o)===o)).filter(o=>e?z(o)===e||(t?me(o)!==o:!1):!0)}const fn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,o;const{rects:r,middlewareData:s,placement:l,platform:u,elements:f}=t,{crossAxis:g=!1,alignment:m,allowedPlacements:b=Ue,autoAlignment:h=!0,...p}=Z(e,t),w=m!==void 0||b===Ue?un(m||null,h,b):b,P=await le(t,p),v=((n=s.autoPlacement)==null?void 0:n.index)||0,T=w[v];if(T==null)return{};const C=Ot(T,r,await(u.isRTL==null?void 0:u.isRTL(f.floating)));if(l!==T)return{reset:{placement:w[0]}};const R=[P[W(T)],P[C[0]],P[C[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:R}],B=w[v+1];if(B)return{data:{index:v+1,overflows:A},reset:{placement:B}};const F=A.map(k=>{const E=z(k.placement);return[k.placement,E&&g?k.overflows.slice(0,2).reduce((a,c)=>a+c,0):k.overflows[0],k.overflows]}).sort((k,E)=>k[1]-E[1]),M=((o=F.filter(k=>k[2].slice(0,z(k[0])?2:3).every(E=>E<=0))[0])==null?void 0:o[0])||F[0][0];return M!==l?{data:{index:v+1,overflows:A},reset:{placement:M}}:{}}}},Ve=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:u,elements:f}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:w=!0,...P}=Z(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const v=W(o),T=W(l)===l,C=await(u.isRTL==null?void 0:u.isRTL(f.floating)),R=b||(T||!w?[ge(l)]:on(l));!b&&p!=="none"&&R.push(...rn(l,w,p,C));const A=[l,...R],B=await le(t,P),F=[];let I=((i=r.flip)==null?void 0:i.overflows)||[];if(g&&F.push(B[v]),m){const a=Ot(o,s,C);F.push(B[a[0]],B[a[1]])}if(I=[...I,{placement:o,overflows:F}],!F.every(a=>a<=0)){var M,k;const a=(((M=r.flip)==null?void 0:M.index)||0)+1,c=A[a];if(c)return{data:{index:a,overflows:I},reset:{placement:c}};let d=(k=I.filter(y=>y.overflows[0]<=0).sort((y,x)=>y.overflows[1]-x.overflows[1])[0])==null?void 0:k.placement;if(!d)switch(h){case"bestFit":{var E;const y=(E=I.map(x=>[x.placement,x.overflows.filter(O=>O>0).reduce((O,L)=>O+L,0)]).sort((x,O)=>x[1]-O[1])[0])==null?void 0:E[0];y&&(d=y);break}case"initialPlacement":d=l;break}if(o!==d)return{reset:{placement:d}}}return{}}}};function je(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _e(e){return Pt.some(t=>e[t]>=0)}const dn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=Z(e,t);switch(i){case"referenceHidden":{const r=await le(t,{...o,elementContext:"reference"}),s=je(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:_e(s)}}}case"escaped":{const r=await le(t,{...o,altBoundary:!0}),s=je(r,n.floating);return{data:{escapedOffsets:s,escaped:_e(s)}}}default:return{}}}}};async function hn(e,t){const{placement:n,platform:i,elements:o}=e,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=W(n),l=z(n),u=we(n)==="y",f=["left","top"].includes(s)?-1:1,g=r&&u?-1:1,m=Z(t,e);let{mainAxis:b,crossAxis:h,alignmentAxis:p}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return l&&typeof p=="number"&&(h=l==="end"?p*-1:p),u?{x:h*g,y:b*f}:{x:b*f,y:h*g}}const pn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:i}=t,o=await hn(t,e);return{x:n+o.x,y:i+o.y,data:o}}}},mn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:P=>{let{x:v,y:T}=P;return{x:v,y:T}}},...u}=Z(e,t),f={x:n,y:i},g=await le(t,u),m=we(W(o)),b=Tt(m);let h=f[b],p=f[m];if(r){const P=b==="y"?"top":"left",v=b==="y"?"bottom":"right",T=h+g[P],C=h-g[v];h=De(T,h,C)}if(s){const P=m==="y"?"top":"left",v=m==="y"?"bottom":"right",T=p+g[P],C=p-g[v];p=De(T,p,C)}const w=l.fn({...t,[b]:h,[m]:p});return{...w,data:{x:w.x-n,y:w.y-i}}}}};function G(e){return Ct(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function j(e){var t;return(t=(Ct(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ct(e){return e instanceof Node||e instanceof H(e).Node}function V(e){return e instanceof Element||e instanceof H(e).Element}function K(e){return e instanceof HTMLElement||e instanceof H(e).HTMLElement}function Ye(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}function fe(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function gn(e){return["table","td","th"].includes(G(e))}function Ne(e){const t=Me(),n=$(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function vn(e){let t=ne(e);for(;K(t)&&!ye(t);){if(Ne(t))return t;t=ne(t)}return null}function Me(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ye(e){return["html","body","#document"].includes(G(e))}function $(e){return H(e).getComputedStyle(e)}function xe(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ne(e){if(G(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ye(e)&&e.host||j(e);return Ye(t)?t.host:t}function kt(e){const t=ne(e);return ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:K(t)&&fe(t)?t:kt(t)}function ue(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=kt(e),r=o===((i=e.ownerDocument)==null?void 0:i.body),s=H(o);return r?t.concat(s,s.visualViewport||[],fe(o)?o:[],s.frameElement&&n?ue(s.frameElement):[]):t.concat(o,ue(o,[],n))}function Rt(e){const t=$(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=K(e),r=o?e.offsetWidth:n,s=o?e.offsetHeight:i,l=pe(n)!==r||pe(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function Ie(e){return V(e)?e:e.contextElement}function ee(e){const t=Ie(e);if(!K(t))return Y(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:r}=Rt(t);let s=(r?pe(n.width):n.width)/i,l=(r?pe(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const bn=Y(0);function Dt(e){const t=H(e);return!Me()||!t.visualViewport?bn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function Q(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=Ie(e);let s=Y(1);t&&(i?V(i)&&(s=ee(i)):s=ee(e));const l=wn(r,n,i)?Dt(r):Y(0);let u=(o.left+l.x)/s.x,f=(o.top+l.y)/s.y,g=o.width/s.x,m=o.height/s.y;if(r){const b=H(r),h=i&&V(i)?H(i):i;let p=b.frameElement;for(;p&&i&&h!==b;){const w=ee(p),P=p.getBoundingClientRect(),v=$(p),T=P.left+(p.clientLeft+parseFloat(v.paddingLeft))*w.x,C=P.top+(p.clientTop+parseFloat(v.paddingTop))*w.y;u*=w.x,f*=w.y,g*=w.x,m*=w.y,u+=T,f+=C,p=H(p).frameElement}}return ve({width:g,height:m,x:u,y:f})}function yn(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=K(n),r=j(n);if(n===r)return t;let s={scrollLeft:0,scrollTop:0},l=Y(1);const u=Y(0);if((o||!o&&i!=="fixed")&&((G(n)!=="body"||fe(r))&&(s=xe(n)),K(n))){const f=Q(n);l=ee(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+u.x,y:t.y*l.y-s.scrollTop*l.y+u.y}}function xn(e){return Array.from(e.getClientRects())}function Ft(e){return Q(j(e)).left+xe(e).scrollLeft}function En(e){const t=j(e),n=xe(e),i=e.ownerDocument.body,o=q(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=q(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+Ft(e);const l=-n.scrollTop;return $(i).direction==="rtl"&&(s+=q(t.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:l}}function Pn(e,t){const n=H(e),i=j(e),o=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,l=0,u=0;if(o){r=o.width,s=o.height;const f=Me();(!f||f&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:r,height:s,x:l,y:u}}function Tn(e,t){const n=Q(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,r=K(e)?ee(e):Y(1),s=e.clientWidth*r.x,l=e.clientHeight*r.y,u=o*r.x,f=i*r.y;return{width:s,height:l,x:u,y:f}}function Ge(e,t,n){let i;if(t==="viewport")i=Pn(e,n);else if(t==="document")i=En(j(e));else if(V(t))i=Tn(t,n);else{const o=Dt(e);i={...t,x:t.x-o.x,y:t.y-o.y}}return ve(i)}function Lt(e,t){const n=ne(e);return n===t||!V(n)||ye(n)?!1:$(n).position==="fixed"||Lt(n,t)}function On(e,t){const n=t.get(e);if(n)return n;let i=ue(e,[],!1).filter(l=>V(l)&&G(l)!=="body"),o=null;const r=$(e).position==="fixed";let s=r?ne(e):e;for(;V(s)&&!ye(s);){const l=$(s),u=Ne(s);!u&&l.position==="fixed"&&(o=null),(r?!u&&!o:!u&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||fe(s)&&!u&&Lt(e,s))?i=i.filter(g=>g!==s):o=l,s=ne(s)}return t.set(e,i),i}function An(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const s=[...n==="clippingAncestors"?On(t,this._c):[].concat(n),i],l=s[0],u=s.reduce((f,g)=>{const m=Ge(t,g,o);return f.top=q(m.top,f.top),f.right=te(m.right,f.right),f.bottom=te(m.bottom,f.bottom),f.left=q(m.left,f.left),f},Ge(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Cn(e){return Rt(e)}function kn(e,t,n){const i=K(t),o=j(t),r=n==="fixed",s=Q(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const u=Y(0);if(i||!i&&!r)if((G(t)!=="body"||fe(o))&&(l=xe(t)),i){const f=Q(t,!0,r,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}else o&&(u.x=Ft(o));return{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function Xe(e,t){return!K(e)||$(e).position==="fixed"?null:t?t(e):e.offsetParent}function Bt(e,t){const n=H(e);if(!K(e))return n;let i=Xe(e,t);for(;i&&gn(i)&&$(i).position==="static";)i=Xe(i,t);return i&&(G(i)==="html"||G(i)==="body"&&$(i).position==="static"&&!Ne(i))?n:i||vn(e)||n}const Rn=async function(e){let{reference:t,floating:n,strategy:i}=e;const o=this.getOffsetParent||Bt,r=this.getDimensions;return{reference:kn(t,await o(n),i),floating:{x:0,y:0,...await r(n)}}};function Dn(e){return $(e).direction==="rtl"}const Fe={convertOffsetParentRelativeRectToViewportRelativeRect:yn,getDocumentElement:j,getClippingRect:An,getOffsetParent:Bt,getElementRects:Rn,getClientRects:xn,getDimensions:Cn,getScale:ee,isElement:V,isRTL:Dn};function Fn(e,t){let n=null,i;const o=j(e);function r(){clearTimeout(i),n&&n.disconnect(),n=null}function s(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),r();const{left:f,top:g,width:m,height:b}=e.getBoundingClientRect();if(l||t(),!m||!b)return;const h=de(g),p=de(o.clientWidth-(f+m)),w=de(o.clientHeight-(g+b)),P=de(f),T={rootMargin:-h+"px "+-p+"px "+-w+"px "+-P+"px",threshold:q(0,te(1,u))||1};let C=!0;function R(A){const B=A[0].intersectionRatio;if(B!==u){if(!C)return s();B?s(!1,B):i=setTimeout(()=>{s(!1,1e-7)},100)}C=!1}try{n=new IntersectionObserver(R,{...T,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,T)}n.observe(e)}return s(!0),r}function Ln(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,f=Ie(e),g=o||r?[...f?ue(f):[],...ue(t)]:[];g.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),r&&v.addEventListener("resize",n)});const m=f&&l?Fn(f,n):null;let b=-1,h=null;s&&(h=new ResizeObserver(v=>{let[T]=v;T&&T.target===f&&h&&(h.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),f&&!u&&h.observe(f),h.observe(t));let p,w=u?Q(e):null;u&&P();function P(){const v=Q(e);w&&(v.x!==w.x||v.y!==w.y||v.width!==w.width||v.height!==w.height)&&n(),w=v,p=requestAnimationFrame(P)}return n(),()=>{g.forEach(v=>{o&&v.removeEventListener("scroll",n),r&&v.removeEventListener("resize",n)}),m&&m(),h&&h.disconnect(),h=null,u&&cancelAnimationFrame(p)}}const Bn=(e,t,n)=>{const i=new Map,o={platform:Fe,...n},r={...o.platform,_c:i};return cn(e,t,{...o,platform:r})};function Sn(e){return Nn(e)}function Oe(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Nn(e){for(let t=e;t;t=Oe(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Oe(e);t;t=Oe(t)){if(!(t instanceof Element))continue;const n=getComputedStyle(t);if(n.display!=="contents"&&(n.position!=="static"||n.filter!=="none"||t.tagName==="BODY"))return t}return null}(function(){{const t=Fe.getOffsetParent;Fe.getOffsetParent=n=>t(n,Sn)}})();const St=async(e,{referenceEl:t,floatingEl:n,overlayPositioning:i="absolute",placement:o,flipDisabled:r,flipPlacements:s,offsetDistance:l,offsetSkidding:u,arrowEl:f,type:g})=>{var R;if(!t||!n)return null;const{x:m,y:b,placement:h,strategy:p,middlewareData:w}=await Bn(t,n,{strategy:i,placement:o==="auto"||o==="auto-start"||o==="auto-end"?void 0:$n(n,o),middleware:In({placement:o,flipDisabled:r,flipPlacements:s,offsetDistance:l,offsetSkidding:u,arrowEl:f,type:g})});if(f&&w.arrow){const{x:A,y:B}=w.arrow,F=h.split("-")[0],I=A!=null?"left":"top",M=Un[F],k={left:"",top:"",bottom:"",right:""};"floatingLayout"in e&&(e.floatingLayout=F==="left"||F==="right"?"horizontal":"vertical"),Object.assign(f.style,{...k,[I]:`${I=="left"?A:B}px`,[F]:"100%",transform:M})}const v=((R=w.hide)==null?void 0:R.referenceHidden)?"hidden":null,T=v?"none":null;n.setAttribute(Mn,h);const C=`translate(${Math.round(m)}px,${Math.round(b)}px)`;Object.assign(n.style,{visibility:v,pointerEvents:T,position:p,top:"0",left:"0",transform:C})},Mn="data-placement",qe=100,Qe=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],Ze={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};function In({placement:e,flipDisabled:t,flipPlacements:n,offsetDistance:i,offsetSkidding:o,arrowEl:r,type:s}){const l=[mn(),dn()];if(s==="menu")return[...l,Ve({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){const u=[...l,pn({mainAxis:typeof i=="number"?i:0,crossAxis:typeof o=="number"?o:0})];return e==="auto"||e==="auto-start"||e==="auto-end"?u.push(fn({alignment:e==="auto-start"?"start":e==="auto-end"?"end":null})):t||u.push(Ve(n?{fallbackPlacements:n}:{})),r&&u.push(ln({element:r})),u}return[]}function Hn(e,t){const n=e.filter(i=>Qe.includes(i));return n.length!==e.length&&console.warn(`${t.tagName}: Invalid value found in: flipPlacements. Try any of these: ${Qe.map(i=>`"${i}"`).join(", ").trim()}`,{el:t}),n}function $n(e,t){const n=["left","right"];return It(e)==="rtl"&&n.reverse(),t.replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}async function zn(e,t,n=!1){return(n?Kn(e):St)(e,t)}function Kn(e){let t=be.get(e);return t||(t=Jt(St,qe,{leading:!0,maxWait:qe}),be.set(e,t),t)}const Un={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},Le=new WeakMap,be=new WeakMap;function Wn(e,t,n){if(!n||!t)return;Nt(e,t,n),Object.assign(n.style,{visibility:"hidden",pointerEvents:"none",position:e.overlayPositioning,top:"0",left:"0"});const i=Ln;Le.set(e,i(t,n,()=>e.reposition()))}function Nt(e,t,n){var i,o;!n||!t||((i=Le.get(e))==null||i(),Le.delete(e),(o=be.get(e))==null||o.cancel(),be.delete(e))}const Je=4,Vn=Math.ceil(Math.hypot(Je,Je));/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*//*!
* focus-trap 7.5.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?et(Object(n),!0).forEach(function(i){jn(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function jn(e,t,n){return t=Yn(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _n(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yn(e){var t=_n(e,"string");return typeof t=="symbol"?t:String(t)}var nt={activateTrap:function(t,n){if(t.length>0){var i=t[t.length-1];i!==n&&i.pause()}var o=t.indexOf(n);o===-1||t.splice(o,1),t.push(n)},deactivateTrap:function(t,n){var i=t.indexOf(n);i!==-1&&t.splice(i,1),t.length>0&&t[t.length-1].unpause()}},Gn=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Xn=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},ce=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},qn=function(t){return ce(t)&&!t.shiftKey},Qn=function(t){return ce(t)&&t.shiftKey},it=function(t){return setTimeout(t,0)},ot=function(t,n){var i=-1;return t.every(function(o,r){return n(o)?(i=r,!1):!0}),i},re=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return typeof t=="function"?t.apply(void 0,i):t},he=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Zn=[],Jn=function(t,n){var i=(n==null?void 0:n.document)||document,o=(n==null?void 0:n.trapStack)||Zn,r=tt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:qn,isKeyBackward:Qn},n),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l,u=function(a,c,d){return a&&a[c]!==void 0?a[c]:r[d||c]},f=function(a,c){var d=typeof(c==null?void 0:c.composedPath)=="function"?c.composedPath():void 0;return s.containerGroups.findIndex(function(y){var x=y.container,O=y.tabbableNodes;return x.contains(a)||(d==null?void 0:d.includes(x))||O.find(function(L){return L===a})})},g=function(a){var c=r[a];if(typeof c=="function"){for(var d=arguments.length,y=new Array(d>1?d-1:0),x=1;x<d;x++)y[x-1]=arguments[x];c=c.apply(void 0,y)}if(c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw new Error("`".concat(a,"` was specified but was not a node, or did not return a node"))}var O=c;if(typeof c=="string"&&(O=i.querySelector(c),!O))throw new Error("`".concat(a,"` as selector refers to no known node"));return O},m=function(){var a=g("initialFocus");if(a===!1)return!1;if(a===void 0||!Te(a,r.tabbableOptions))if(f(i.activeElement)>=0)a=i.activeElement;else{var c=s.tabbableGroups[0],d=c&&c.firstTabbableNode;a=d||g("fallbackFocus")}if(!a)throw new Error("Your focus-trap needs to have at least one focusable element");return a},b=function(){if(s.containerGroups=s.containers.map(function(a){var c=$t(a,r.tabbableOptions),d=zt(a,r.tabbableOptions),y=c.length>0?c[0]:void 0,x=c.length>0?c[c.length-1]:void 0,O=d.find(function(S){return J(S)}),L=d.slice().reverse().find(function(S){return J(S)}),N=!!c.find(function(S){return se(S)>0});return{container:a,tabbableNodes:c,focusableNodes:d,posTabIndexesFound:N,firstTabbableNode:y,lastTabbableNode:x,firstDomTabbableNode:O,lastDomTabbableNode:L,nextTabbableNode:function(X){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_=c.indexOf(X);return _<0?ie?d.slice(d.indexOf(X)+1).find(function(oe){return J(oe)}):d.slice(0,d.indexOf(X)).reverse().find(function(oe){return J(oe)}):c[_+(ie?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(a){return a.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(a){return a.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function E(a){var c=a.activeElement;if(c)return c.shadowRoot&&c.shadowRoot.activeElement!==null?E(c.shadowRoot):c},p=function E(a){if(a!==!1&&a!==h(document)){if(!a||!a.focus){E(m());return}a.focus({preventScroll:!!r.preventScroll}),s.mostRecentlyFocusedNode=a,Gn(a)&&a.select()}},w=function(a){var c=g("setReturnFocus",a);return c||(c===!1?!1:a)},P=function(a){var c=a.target,d=a.event,y=a.isBackward,x=y===void 0?!1:y;c=c||he(d),b();var O=null;if(s.tabbableGroups.length>0){var L=f(c,d),N=L>=0?s.containerGroups[L]:void 0;if(L<0)x?O=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:O=s.tabbableGroups[0].firstTabbableNode;else if(x){var S=ot(s.tabbableGroups,function(Ee){var Pe=Ee.firstTabbableNode;return c===Pe});if(S<0&&(N.container===c||Te(c,r.tabbableOptions)&&!J(c,r.tabbableOptions)&&!N.nextTabbableNode(c,!1))&&(S=L),S>=0){var X=S===0?s.tabbableGroups.length-1:S-1,ie=s.tabbableGroups[X];O=se(c)>=0?ie.lastTabbableNode:ie.lastDomTabbableNode}else ce(d)||(O=N.nextTabbableNode(c,!1))}else{var _=ot(s.tabbableGroups,function(Ee){var Pe=Ee.lastTabbableNode;return c===Pe});if(_<0&&(N.container===c||Te(c,r.tabbableOptions)&&!J(c,r.tabbableOptions)&&!N.nextTabbableNode(c))&&(_=L),_>=0){var oe=_===s.tabbableGroups.length-1?0:_+1,He=s.tabbableGroups[oe];O=se(c)>=0?He.firstTabbableNode:He.firstDomTabbableNode}else ce(d)||(O=N.nextTabbableNode(c))}}else O=g("fallbackFocus");return O},v=function(a){var c=he(a);if(!(f(c,a)>=0)){if(re(r.clickOutsideDeactivates,a)){l.deactivate({returnFocus:r.returnFocusOnDeactivate});return}re(r.allowOutsideClick,a)||a.preventDefault()}},T=function(a){var c=he(a),d=f(c,a)>=0;if(d||c instanceof Document)d&&(s.mostRecentlyFocusedNode=c);else{a.stopImmediatePropagation();var y,x=!0;if(s.mostRecentlyFocusedNode)if(se(s.mostRecentlyFocusedNode)>0){var O=f(s.mostRecentlyFocusedNode),L=s.containerGroups[O].tabbableNodes;if(L.length>0){var N=L.findIndex(function(S){return S===s.mostRecentlyFocusedNode});N>=0&&(r.isKeyForward(s.recentNavEvent)?N+1<L.length&&(y=L[N+1],x=!1):N-1>=0&&(y=L[N-1],x=!1))}}else s.containerGroups.some(function(S){return S.tabbableNodes.some(function(X){return se(X)>0})})||(x=!1);else x=!1;x&&(y=P({target:s.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(s.recentNavEvent)})),p(y||s.mostRecentlyFocusedNode||m())}s.recentNavEvent=void 0},C=function(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=a;var d=P({event:a,isBackward:c});d&&(ce(a)&&a.preventDefault(),p(d))},R=function(a){if(Xn(a)&&re(r.escapeDeactivates,a)!==!1){a.preventDefault(),l.deactivate();return}(r.isKeyForward(a)||r.isKeyBackward(a))&&C(a,r.isKeyBackward(a))},A=function(a){var c=he(a);f(c,a)>=0||re(r.clickOutsideDeactivates,a)||re(r.allowOutsideClick,a)||(a.preventDefault(),a.stopImmediatePropagation())},B=function(){if(s.active)return nt.activateTrap(o,l),s.delayInitialFocusTimer=r.delayInitialFocus?it(function(){p(m())}):p(m()),i.addEventListener("focusin",T,!0),i.addEventListener("mousedown",v,{capture:!0,passive:!1}),i.addEventListener("touchstart",v,{capture:!0,passive:!1}),i.addEventListener("click",A,{capture:!0,passive:!1}),i.addEventListener("keydown",R,{capture:!0,passive:!1}),l},F=function(){if(s.active)return i.removeEventListener("focusin",T,!0),i.removeEventListener("mousedown",v,!0),i.removeEventListener("touchstart",v,!0),i.removeEventListener("click",A,!0),i.removeEventListener("keydown",R,!0),l},I=function(a){var c=a.some(function(d){var y=Array.from(d.removedNodes);return y.some(function(x){return x===s.mostRecentlyFocusedNode})});c&&p(m())},M=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(I):void 0,k=function(){M&&(M.disconnect(),s.active&&!s.paused&&s.containers.map(function(a){M.observe(a,{subtree:!0,childList:!0})}))};return l={get active(){return s.active},get paused(){return s.paused},activate:function(a){if(s.active)return this;var c=u(a,"onActivate"),d=u(a,"onPostActivate"),y=u(a,"checkCanFocusTrap");y||b(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=i.activeElement,c==null||c();var x=function(){y&&b(),B(),k(),d==null||d()};return y?(y(s.containers.concat()).then(x,x),this):(x(),this)},deactivate:function(a){if(!s.active)return this;var c=tt({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},a);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,F(),s.active=!1,s.paused=!1,k(),nt.deactivateTrap(o,l);var d=u(c,"onDeactivate"),y=u(c,"onPostDeactivate"),x=u(c,"checkCanReturnFocus"),O=u(c,"returnFocus","returnFocusOnDeactivate");d==null||d();var L=function(){it(function(){O&&p(w(s.nodeFocusedBeforeActivation)),y==null||y()})};return O&&x?(x(w(s.nodeFocusedBeforeActivation)).then(L,L),this):(L(),this)},pause:function(a){if(s.paused||!s.active)return this;var c=u(a,"onPause"),d=u(a,"onPostPause");return s.paused=!0,c==null||c(),F(),k(),d==null||d(),this},unpause:function(a){if(!s.paused||!s.active)return this;var c=u(a,"onUnpause"),d=u(a,"onPostUnpause");return s.paused=!1,c==null||c(),b(),B(),k(),d==null||d(),this},updateContainerElements:function(a){var c=[].concat(a).filter(Boolean);return s.containers=c.map(function(d){return typeof d=="string"?i.querySelector(d):d}),s.active&&b(),k(),this}},l.updateContainerElements(t),l};const Ae=globalThis.calciteConfig,ei=(Ae==null?void 0:Ae.focusTrapStack)||[];function ti(e,t){const{el:n}=e,i=(t==null?void 0:t.focusTrapEl)||n;if(!i)return;const o={clickOutsideDeactivates:!0,escapeDeactivates:!1,fallbackFocus:i,setReturnFocus:r=>(dt(r),!1),...t==null?void 0:t.focusTrapOptions,document:n.ownerDocument,tabbableOptions:Ht,trapStack:ei};e.focusTrap=Jn(i,o)}function st(e,t){var n;e.focusTrapDisabled||(n=e.focusTrap)==null||n.activate(t)}function Ce(e,t){var n;(n=e.focusTrap)==null||n.deactivate(t)}function ni(e){var t;(t=e.focusTrap)==null||t.updateContainerElements(e.el)}/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/const ii=(e,t)=>{const n=e.level?`h${e.level}`:"div";return delete e.level,D(n,{...e},t)};/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/const rt={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},oi={width:12,height:6,strokeWidth:1},si=({floatingLayout:e,key:t,ref:n})=>{const{width:i,height:o,strokeWidth:r}=oi,s=i/2,l=e==="vertical",u=`M0,0 H${i} L${i-s},${o} Q${s},${o} ${s},${o} Z`;return D("svg",{"aria-hidden":"true",class:rt.arrow,height:i,key:t,viewBox:`0 0 ${i} ${i+(l?0:r)}`,width:i+(l?r:0),ref:n},r>0&&D("path",{class:rt.arrowStroke,d:u,fill:"none","stroke-width":r+1}),D("path",{d:u,stroke:"none"}))};/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/const U={container:"container",imageContainer:"image-container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContent:"header-content",heading:"heading"},ri="auto",at="aria-controls",ct="aria-expanded";class ai{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=t=>{const{registeredElements:n}=this,i=t.find(o=>n.has(o));return n.get(i)},this.togglePopovers=t=>{const n=t.composedPath(),i=this.queryPopover(n);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter(o=>o!==i&&o.autoClose&&o.open&&!n.includes(o)).forEach(o=>o.open=!1)},this.keyHandler=t=>{t.defaultPrevented||(t.key==="Escape"?this.closeAllPopovers():vt(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{Re(t)&&this.togglePopovers(t)}}registerElement(t,n){this.registeredElementCount++,this.registeredElements.set(t,n),this.registeredElementCount===1&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(t=>t.open=!1)}addListeners(){document.addEventListener("pointerdown",this.clickHandler,{capture:!0}),document.addEventListener("keydown",this.keyHandler,{capture:!0})}removeListeners(){document.removeEventListener("pointerdown",this.clickHandler,{capture:!0}),document.removeEventListener("keydown",this.keyHandler,{capture:!0})}}const ci=":host{--calcite-floating-ui-z-index:var(--calcite-popover-z-index, var(--calcite-app-z-index-popup));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-app-z-index) * -1);fill:var(--calcite-ui-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-ui-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-ui-border-3)}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);word-wrap:break-word;word-break:break-word}.container{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-ui-text-1)}.container.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:0.25rem;border-end-end-radius:0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}",lt=new ai,li=ht(class extends pt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calcitePopoverBeforeClose=ae(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=ae(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=ae(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=ae(this,"calcitePopoverOpen",6),this.mutationObserver=en("mutation",()=>this.updateFocusTrapElements()),this.guid=`calcite-popover-${gt()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=e=>{this.transitionEl=e},this.setFilteredPlacements=()=>{const{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?Hn(t,e):null},this.setUpReferenceElement=(e=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),Wn(this,this.effectiveReferenceElement,this.el);const{el:t,referenceElement:n,effectiveReferenceElement:i}=this;e&&n&&!i&&console.warn(`${t.tagName}: reference-element id "${n}" was not found.`,{el:t}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:e,open:t}=this;e&&"setAttribute"in e&&e.setAttribute(ct,ke(t))},this.addReferences=()=>{const{effectiveReferenceElement:e}=this;if(!e)return;const t=this.getId();"setAttribute"in e&&e.setAttribute(at,t),lt.registerElement(e,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(at),e.removeAttribute(ct)),lt.unregisterElement(e))},this.hide=()=>{this.open=!1},this.storeArrowEl=e=>{this.arrowEl=e,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=Vn,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=ri,this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(e){this.open&&(e?Ce(this):st(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(e){$e(this),e&&this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){_t(this,this.effectiveLocale)}connectedCallback(){this.setFilteredPlacements(),Yt(this),Gt(this),this.setUpReferenceElement(this.hasLoaded),ti(this),this.open&&$e(this)}async componentWillLoad(){await Xt(this),bt(this)}componentDidLoad(){wt(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),qt(this),Qt(this),Nt(this,this.effectiveReferenceElement,this.el),Ce(this)}async reposition(e=!1){const{el:t,effectiveReferenceElement:n,placement:i,overlayPositioning:o,flipDisabled:r,filteredFlipPlacements:s,offsetDistance:l,offsetSkidding:u,arrowEl:f}=this;return zn(this,{floatingEl:t,referenceEl:n,overlayPositioning:o,placement:i,flipDisabled:r,flipPlacements:s,offsetDistance:l,offsetSkidding:u,arrowEl:f,type:"popover"},e)}async setFocus(){await yt(this),Kt(this.el),Ut(this.el)}async updateFocusTrapElements(){ni(this)}getReferenceElement(){const{referenceElement:e,el:t}=this;return(typeof e=="string"?Wt(t,{id:e}):e)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),st(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),Ce(this)}renderCloseButton(){const{messages:e,closable:t}=this;return t?D("div",{class:U.closeButtonContainer,key:U.closeButtonContainer},D("calcite-action",{appearance:"transparent",class:U.closeButton,onClick:this.hide,scale:this.scale,text:e.close,ref:n=>this.closeButtonEl=n},D("calcite-icon",{icon:"x",scale:Zt(this.scale)}))):null}renderHeader(){const{heading:e,headingLevel:t}=this,n=e?D(ii,{class:U.heading,level:t},e):null;return n?D("div",{class:U.header,key:U.header},n,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:e,heading:t,label:n,open:i,pointerDisabled:o,floatingLayout:r}=this,s=e&&i,l=!s,u=o?null:D(si,{floatingLayout:r,key:"floating-arrow",ref:this.storeArrowEl});return D(Vt,{"aria-hidden":ke(l),"aria-label":n,"aria-live":"polite","calcite-hydrated-hidden":l,id:this.getId(),role:"dialog"},D("div",{class:{[Ze.animation]:!0,[Ze.animationActive]:s},ref:this.setTransitionEl},u,D("div",{class:{[U.hasHeader]:!!t,[U.container]:!0}},this.renderHeader(),D("div",{class:U.content},D("slot",null)),t?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return ci}},[1,"calcite-popover",{autoClose:[516,"auto-close"],closable:[516],flipDisabled:[516,"flip-disabled"],focusTrapDisabled:[516,"focus-trap-disabled"],pointerDisabled:[516,"pointer-disabled"],flipPlacements:[16],heading:[1],headingLevel:[514,"heading-level"],label:[1],messageOverrides:[1040],messages:[1040],offsetDistance:[514,"offset-distance"],offsetSkidding:[514,"offset-skidding"],open:[1540],overlayPositioning:[513,"overlay-positioning"],placement:[513],referenceElement:[1,"reference-element"],scale:[513],triggerDisabled:[516,"trigger-disabled"],effectiveLocale:[32],floatingLayout:[32],effectiveReferenceElement:[32],defaultMessages:[32],reposition:[64],setFocus:[64],updateFocusTrapElements:[64]}]);function Mt(){if(typeof customElements>"u")return;["calcite-popover","calcite-action","calcite-icon","calcite-loader"].forEach(t=>{switch(t){case"calcite-popover":customElements.get(t)||customElements.define(t,li);break;case"calcite-action":customElements.get(t)||xt();break;case"calcite-icon":customElements.get(t)||Et();break;case"calcite-loader":customElements.get(t)||mt();break}})}Mt();/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/const ut={menu:"menu",defaultTrigger:"default-trigger"},ft={tooltip:"tooltip",trigger:"trigger"},ui={menu:"ellipsis"},fi="data-active",di=`:host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[data-active]){outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(
2px *
calc(
1 -
2 * clamp(
0,
var(--calcite-ui-focus-offset-invert),
1
)
)
);outline-offset:0px}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}`,hi=["ArrowUp","ArrowDown","End","Home"],pi=ht(class extends pt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteActionMenuOpen=ae(this,"calciteActionMenuOpen",6),this.actionElements=[],this.guid=`calcite-action-menu-${gt()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.connectMenuButtonEl=()=>{const{menuButtonId:e,menuId:t,open:n,label:i}=this,o=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==o&&(this.disconnectMenuButtonEl(),this.menuButtonEl=o,this.setTooltipReferenceElement(),o&&(o.active=n,o.setAttribute("aria-controls",t),o.setAttribute("aria-expanded",ke(n)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=e),o.label||(o.label=i),o.text||(o.text=i),o.addEventListener("pointerdown",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{const{menuButtonEl:e}=this;e&&(e.removeEventListener("pointerdown",this.menuButtonClick),e.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=e=>{const t=e.target.assignedElements({flatten:!0}).filter(n=>n==null?void 0:n.matches("calcite-action"));this.slottedMenuButtonEl=t[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=e=>{this.defaultMenuButtonEl=e,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=e=>{Re(e)&&this.toggleOpen()},this.updateTooltip=e=>{const t=e.target.assignedElements({flatten:!0}).filter(n=>n==null?void 0:n.matches("calcite-tooltip"));this.tooltipEl=t[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{const{tooltipEl:e,expanded:t,menuButtonEl:n,open:i}=this;e&&(e.referenceElement=!t&&!i?n:null)},this.updateAction=(e,t)=>{const{guid:n,activeMenuItemIndex:i}=this,o=`${n}-action-${t}`;e.tabIndex=-1,e.setAttribute("role","menuitem"),e.id||(e.id=o),e.toggleAttribute(fi,t===i)},this.updateActions=e=>{e==null||e.forEach(this.updateAction)},this.handleDefaultSlotChange=e=>{const t=e.target.assignedElements({flatten:!0}).filter(n=>n==null?void 0:n.matches("calcite-action"));this.actionElements=t},this.menuButtonKeyDown=e=>{const{key:t}=e,{actionElements:n,activeMenuItemIndex:i,open:o}=this;if(n.length){if(vt(t)){if(e.preventDefault(),!o){this.toggleOpen();return}const r=n[i];r?r.click():this.toggleOpen(!1)}if(t==="Tab"){this.open=!1;return}if(t==="Escape"){this.toggleOpen(!1),e.preventDefault();return}this.handleActionNavigation(e,t,n)}},this.handleActionNavigation=(e,t,n)=>{if(!this.isValidKey(t,hi))return;if(e.preventDefault(),!this.open){this.toggleOpen(),(t==="Home"||t==="ArrowDown")&&(this.activeMenuItemIndex=0),(t==="End"||t==="ArrowUp")&&(this.activeMenuItemIndex=n.length-1);return}t==="Home"&&(this.activeMenuItemIndex=0),t==="End"&&(this.activeMenuItemIndex=n.length-1);const i=this.activeMenuItemIndex;t==="ArrowUp"&&(this.activeMenuItemIndex=ze(Math.max(i-1,-1),n.length)),t==="ArrowDown"&&(this.activeMenuItemIndex=ze(i+1,n.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(e=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=e},this.appearance="solid",this.expanded=!1,this.flipPlacements=void 0,this.label=void 0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale=void 0,this.menuButtonEl=void 0,this.activeMenuItemIndex=-1}componentWillLoad(){bt(this)}componentDidLoad(){wt(this)}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(e){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=e),this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}closeCalciteActionMenuOnClick(e){!Re(e)||e.composedPath().includes(this.el)||(this.open=!1)}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){return await yt(this),dt(this.menuButtonEl)}renderMenuButton(){const{appearance:e,label:t,scale:n,expanded:i}=this;return D("slot",{name:ft.trigger,onSlotchange:this.setMenuButtonEl},D("calcite-action",{appearance:e,class:ut.defaultTrigger,icon:ui.menu,scale:n,text:t,textEnabled:i,ref:this.setDefaultMenuButtonEl}))}renderMenuItems(){const{actionElements:e,activeMenuItemIndex:t,open:n,menuId:i,menuButtonEl:o,label:r,placement:s,overlayPositioning:l,flipPlacements:u}=this,f=e[t],g=(f==null?void 0:f.id)||null;return D("calcite-popover",{flipPlacements:u,focusTrapDisabled:!0,label:r,offsetDistance:0,open:n,overlayPositioning:l,placement:s,pointerDisabled:!0,referenceElement:o},D("div",{"aria-activedescendant":g,"aria-labelledby":o==null?void 0:o.id,class:ut.menu,id:i,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},D("slot",{onSlotchange:this.handleDefaultSlotChange})))}render(){return D(jt,null,this.renderMenuButton(),this.renderMenuItems(),D("slot",{name:ft.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(e,t){return!!t.find(n=>n===e)}get el(){return this}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}static get style(){return di}},[1,"calcite-action-menu",{appearance:[513],expanded:[516],flipPlacements:[16],label:[1],open:[1540],overlayPositioning:[513,"overlay-positioning"],placement:[513],scale:[513],menuButtonEl:[32],activeMenuItemIndex:[32],setFocus:[64]},[[9,"pointerdown","closeCalciteActionMenuOnClick"]]]);function mi(){if(typeof customElements>"u")return;["calcite-action-menu","calcite-action","calcite-icon","calcite-loader","calcite-popover"].forEach(t=>{switch(t){case"calcite-action-menu":customElements.get(t)||customElements.define(t,pi);break;case"calcite-action":customElements.get(t)||xt();break;case"calcite-icon":customElements.get(t)||Et();break;case"calcite-loader":customElements.get(t)||mt();break;case"calcite-popover":customElements.get(t)||Mt();break}})}mi();export{ii as H,ft as S,mi as a,Mt as d};