@vtj/pro 0.8.95 → 0.8.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +3 -3
  5. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  6. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  7. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +12 -12
  8. package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
  9. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +20 -20
  10. package/dist/@vtj/materials/deps/vue/vue.global.prod.js +3 -3
  11. package/dist/assets/{@element-plus-Cgg_PG6o.js → @element-plus-D856_R61.js} +1 -1
  12. package/dist/assets/{@floating-ui-D61SyGJ0.js → @floating-ui-DNL14WHp.js} +1 -1
  13. package/dist/assets/{@vue-BMgKlbMt.js → @vue-Ci2oV-w0.js} +13 -13
  14. package/dist/assets/{@vueuse-Da6sINV5.js → @vueuse-8_0z2tkd.js} +1 -1
  15. package/dist/assets/{Editor-Dtm2GYTx-BAttFuUH.js → Editor-Dtm2GYTx-CsSZrpcf.js} +1 -1
  16. package/dist/assets/{element-plus-CJN-gD58.js → element-plus-B_x8VGHo.js} +1 -1
  17. package/dist/assets/{extension-_z1KEs8w.js → extension-BcRGxwLA.js} +104 -104
  18. package/dist/assets/extension-C5EwMG5J.css +1 -0
  19. package/dist/assets/{index-C6STpcA7.js → index-CTcF5QZC.js} +1 -1
  20. package/dist/assets/{index-C0BeyIic.js → index-ClBrLSip.js} +2 -2
  21. package/dist/assets/{preview-DUOHruce.js → preview-DjtW4iqt.js} +2 -2
  22. package/dist/assets/{vue-C1-U25CX.js → vue-CnOMoHOP.js} +2 -2
  23. package/dist/assets/{vue-router-Bq8aHj2u.js → vue-router-B8X9MjAR.js} +1 -1
  24. package/dist/index.html +7 -7
  25. package/package.json +11 -11
  26. package/dist/assets/extension-Ds5y6tmn.css +0 -1
@@ -1 +1 @@
1
- var Ht=Object.defineProperty,zt=Object.defineProperties;var _t=Object.getOwnPropertyDescriptors;var rt=Object.getOwnPropertySymbols;var Ot=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var Rt=(t,e,n)=>e in t?Ht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,A=(t,e)=>{for(var n in e||(e={}))Ot.call(e,n)&&Rt(t,n,e[n]);if(rt)for(var n of rt(e))Ct.call(e,n)&&Rt(t,n,e[n]);return t},P=(t,e)=>zt(t,_t(e));var mt=(t,e)=>{var n={};for(var o in t)Ot.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&rt)for(var o of rt(t))e.indexOf(o)<0&&Ct.call(t,o)&&(n[o]=t[o]);return n};var D=(t,e,n)=>new Promise((o,i)=>{var r=c=>{try{l(n.next(c))}catch(f){i(f)}},s=c=>{try{l(n.throw(c))}catch(f){i(f)}},l=c=>c.done?o(c.value):Promise.resolve(c.value).then(r,s);l((n=n.apply(t,e)).next())});const K=Math.min,_=Math.max,lt=Math.round,ct=Math.floor,V=t=>({x:t,y:t}),It={left:"right",right:"left",bottom:"top",top:"bottom"},jt={start:"end",end:"start"};function ht(t,e,n){return _(t,K(e,n))}function ot(t,e){return typeof t=="function"?t(e):t}function I(t){return t.split("-")[0]}function it(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function wt(t){return t==="y"?"height":"width"}function G(t){return["top","bottom"].includes(I(t))?"y":"x"}function xt(t){return Pt(G(t))}function Xt(t,e,n){n===void 0&&(n=!1);const o=it(t),i=xt(t),r=wt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=ft(s)),[s,ft(s)]}function Yt(t){const e=ft(t);return[pt(t),e,pt(e)]}function pt(t){return t.replace(/start|end/g,e=>jt[e])}function qt(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function Ut(t,e,n,o){const i=it(t);let r=qt(I(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(pt)))),r}function ft(t){return t.replace(/left|right|bottom|top/g,e=>It[e])}function Kt(t){return A({top:0,right:0,bottom:0,left:0},t)}function Dt(t){return typeof t!="number"?Kt(t):{top:t,right:t,bottom:t,left:t}}function at(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Et(t,e,n){let{reference:o,floating:i}=t;const r=G(e),s=xt(e),l=wt(s),c=I(e),f=r==="y",d=o.x+o.width/2-i.width/2,a=o.y+o.height/2-i.height/2,h=o[l]/2-i[l]/2;let u;switch(c){case"top":u={x:d,y:o.y-i.height};break;case"bottom":u={x:d,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:a};break;case"left":u={x:o.x-i.width,y:a};break;default:u={x:o.x,y:o.y}}switch(it(e)){case"start":u[s]-=h*(n&&f?-1:1);break;case"end":u[s]+=h*(n&&f?-1:1);break}return u}const Gt=(t,e,n)=>D(void 0,null,function*(){const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),c=yield s.isRTL==null?void 0:s.isRTL(e);let f=yield s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:a}=Et(f,o,c),h=o,u={},g=0;for(let m=0;m<l.length;m++){const{name:w,fn:p}=l[m],{x,y,data:b,reset:v}=yield p({x:d,y:a,initialPlacement:o,placement:h,strategy:i,middlewareData:u,rects:f,platform:s,elements:{reference:t,floating:e}});d=x!=null?x:d,a=y!=null?y:a,u=P(A({},u),{[w]:A(A({},u[w]),b)}),v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(h=v.placement),v.rects&&(f=v.rects===!0?yield s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:d,y:a}=Et(f,h,c)),m=-1)}return{x:d,y:a,placement:h,strategy:i,middlewareData:u}});function yt(t,e){return D(this,null,function*(){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:a="floating",altBoundary:h=!1,padding:u=0}=ot(e,t),g=Dt(u),w=l[h?a==="floating"?"reference":"floating":a],p=at(yield r.getClippingRect({element:(n=yield r.isElement==null?void 0:r.isElement(w))==null||n?w:w.contextElement||(yield r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:f,rootBoundary:d,strategy:c})),x=a==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=yield r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating),b=(yield r.isElement==null?void 0:r.isElement(y))?(yield r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=at(r.convertOffsetParentRelativeRectToViewportRelativeRect?yield r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:y,strategy:c}):x);return{top:(p.top-v.top+g.top)/b.y,bottom:(v.bottom-p.bottom+g.bottom)/b.y,left:(p.left-v.left+g.left)/b.x,right:(v.right-p.right+g.right)/b.x}})}const Jt=t=>({name:"arrow",options:t,fn(n){return D(this,null,function*(){const{x:o,y:i,placement:r,rects:s,platform:l,elements:c,middlewareData:f}=n,{element:d,padding:a=0}=ot(t,n)||{};if(d==null)return{};const h=Dt(a),u={x:o,y:i},g=xt(r),m=wt(g),w=yield l.getDimensions(d),p=g==="y",x=p?"top":"left",y=p?"bottom":"right",b=p?"clientHeight":"clientWidth",v=s.reference[m]+s.reference[g]-u[g]-s.floating[m],F=u[g]-s.reference[g],X=yield l.getOffsetParent==null?void 0:l.getOffsetParent(d);let $=X?X[b]:0;(!$||!(yield l.isElement==null?void 0:l.isElement(X)))&&($=c.floating[b]||s.floating[m]);const Z=v/2-F/2,H=$/2-w[m]/2-1,N=K(h[x],H),tt=K(h[y],H),z=N,et=$-w[m]-tt,E=$/2-w[m]/2+Z,O=ht(z,E,et),Y=!f.arrow&&it(r)!=null&&E!==O&&s.reference[m]/2-(E<z?N:tt)-w[m]/2<0,S=Y?E<z?E-z:E-et:0;return{[g]:u[g]+S,data:A({[g]:O,centerOffset:E-O-S},Y&&{alignmentOffset:S}),reset:Y}})}}),Qt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,fn(n){return D(this,null,function*(){var o,i;const{placement:r,middlewareData:s,rects:l,initialPlacement:c,platform:f,elements:d}=n,E=ot(t,n),{mainAxis:a=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:w=!0}=E,p=mt(E,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const x=I(r),y=G(c),b=I(c)===c,v=yield f.isRTL==null?void 0:f.isRTL(d.floating),F=u||(b||!w?[ft(c)]:Yt(c)),X=m!=="none";!u&&X&&F.push(...Ut(c,w,m,v));const $=[c,...F],Z=yield yt(n,p),H=[];let N=((i=s.flip)==null?void 0:i.overflows)||[];if(a&&H.push(Z[x]),h){const O=Xt(r,l,v);H.push(Z[O[0]],Z[O[1]])}if(N=[...N,{placement:r,overflows:H}],!H.every(O=>O<=0)){var tt,z;const O=(((tt=s.flip)==null?void 0:tt.index)||0)+1,Y=$[O];if(Y)return{data:{index:O,overflows:N},reset:{placement:Y}};let S=(z=N.filter(q=>q.overflows[0]<=0).sort((q,B)=>q.overflows[1]-B.overflows[1])[0])==null?void 0:z.placement;if(!S)switch(g){case"bestFit":{var et;const q=(et=N.filter(B=>{if(X){const M=G(B.placement);return M===y||M==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(M=>M>0).reduce((M,$t)=>M+$t,0)]).sort((B,M)=>B[1]-M[1])[0])==null?void 0:et[0];q&&(S=q);break}case"initialPlacement":S=c;break}if(r!==S)return{reset:{placement:S}}}return{}})}}};function Zt(t,e){return D(this,null,function*(){const{placement:n,platform:o,elements:i}=t,r=yield o.isRTL==null?void 0:o.isRTL(i.floating),s=I(n),l=it(n),c=G(n)==="y",f=["left","top"].includes(s)?-1:1,d=r&&c?-1:1,a=ot(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:g}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:A({mainAxis:0,crossAxis:0,alignmentAxis:null},a);return l&&typeof g=="number"&&(u=l==="end"?g*-1:g),c?{x:u*d,y:h*f}:{x:h*f,y:u*d}})}const te=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(n){return D(this,null,function*(){var o,i;const{x:r,y:s,placement:l,middlewareData:c}=n,f=yield Zt(n,t);return l===((o=c.offset)==null?void 0:o.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:r+f.x,y:s+f.y,data:P(A({},f),{placement:l})}})}}},ee=function(t){return t===void 0&&(t={}),{name:"shift",options:t,fn(n){return D(this,null,function*(){const{x:o,y:i,placement:r}=n,p=ot(t,n),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}}}=p,f=mt(p,["mainAxis","crossAxis","limiter"]),d={x:o,y:i},a=yield yt(n,f),h=G(I(r)),u=Pt(h);let g=d[u],m=d[h];if(s){const x=u==="y"?"top":"left",y=u==="y"?"bottom":"right",b=g+a[x],v=g-a[y];g=ht(b,g,v)}if(l){const x=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=m+a[x],v=m-a[y];m=ht(b,m,v)}const w=c.fn(P(A({},n),{[u]:g,[h]:m}));return P(A({},w),{data:{x:w.x-o,y:w.y-i}})})}}};function Q(t){return kt(t)?(t.nodeName||"").toLowerCase():"#document"}function R(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function k(t){var e;return(e=(kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function kt(t){return t instanceof Node||t instanceof R(t).Node}function T(t){return t instanceof Element||t instanceof R(t).Element}function L(t){return t instanceof HTMLElement||t instanceof R(t).HTMLElement}function Tt(t){return typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof R(t).ShadowRoot}function st(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=C(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function ne(t){return["table","td","th"].includes(Q(t))}function ut(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(n){return!1}})}function vt(t){const e=bt(),n=C(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function oe(t){let e=W(t);for(;L(e)&&!J(e);){if(ut(e))return null;if(vt(e))return e;e=W(e)}return null}function bt(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function J(t){return["html","body","#document"].includes(Q(t))}function C(t){return R(t).getComputedStyle(t)}function dt(t){return T(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function W(t){if(Q(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Tt(t)&&t.host||k(t);return Tt(e)?e.host:e}function Ft(t){const e=W(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:L(e)&&st(e)?e:Ft(e)}function nt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ft(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=R(i);return r?e.concat(s,s.visualViewport||[],st(i)?i:[],s.frameElement&&n?nt(s.frameElement):[]):e.concat(i,nt(i,[],n))}function Nt(t){const e=C(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=L(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,l=lt(n)!==r||lt(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function At(t){return T(t)?t:t.contextElement}function U(t){const e=At(t);if(!L(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Nt(e);let s=(r?lt(n.width):n.width)/o,l=(r?lt(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const ie=V(0);function Bt(t){const e=R(t);return!bt()||!e.visualViewport?ie:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function se(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==R(t)?!1:e}function j(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=At(t);let s=V(1);e&&(o?T(o)&&(s=U(o)):s=U(t));const l=se(r,n,o)?Bt(r):V(0);let c=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,d=i.width/s.x,a=i.height/s.y;if(r){const h=R(r),u=o&&T(o)?R(o):o;let g=h,m=g.frameElement;for(;m&&o&&u!==g;){const w=U(m),p=m.getBoundingClientRect(),x=C(m),y=p.left+(m.clientLeft+parseFloat(x.paddingLeft))*w.x,b=p.top+(m.clientTop+parseFloat(x.paddingTop))*w.y;c*=w.x,f*=w.y,d*=w.x,a*=w.y,c+=y,f+=b,g=R(m),m=g.frameElement}}return at({width:d,height:a,x:c,y:f})}function re(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=k(o),l=e?ut(e.floating):!1;if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},f=V(1);const d=V(0),a=L(o);if((a||!a&&!r)&&((Q(o)!=="body"||st(s))&&(c=dt(o)),L(o))){const h=j(o);f=U(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+d.x,y:n.y*f.y-c.scrollTop*f.y+d.y}}function ce(t){return Array.from(t.getClientRects())}function Mt(t){return j(k(t)).left+dt(t).scrollLeft}function le(t){const e=k(t),n=dt(t),o=t.ownerDocument.body,i=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Mt(t);const l=-n.scrollTop;return C(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}function fe(t,e){const n=R(t),o=k(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){r=i.width,s=i.height;const f=bt();(!f||f&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:l,y:c}}function ae(t,e){const n=j(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=L(t)?U(t):V(1),s=t.clientWidth*r.x,l=t.clientHeight*r.y,c=i*r.x,f=o*r.y;return{width:s,height:l,x:c,y:f}}function Lt(t,e,n){let o;if(e==="viewport")o=fe(t,n);else if(e==="document")o=le(k(t));else if(T(e))o=ae(e,n);else{const i=Bt(t);o=P(A({},e),{x:e.x-i.x,y:e.y-i.y})}return at(o)}function Vt(t,e){const n=W(t);return n===e||!T(n)||J(n)?!1:C(n).position==="fixed"||Vt(n,e)}function ue(t,e){const n=e.get(t);if(n)return n;let o=nt(t,[],!1).filter(l=>T(l)&&Q(l)!=="body"),i=null;const r=C(t).position==="fixed";let s=r?W(t):t;for(;T(s)&&!J(s);){const l=C(s),c=vt(s);!c&&l.position==="fixed"&&(i=null),(r?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||st(s)&&!c&&Vt(t,s))?o=o.filter(d=>d!==s):i=l,s=W(s)}return e.set(t,o),o}function de(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?ut(e)?[]:ue(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((f,d)=>{const a=Lt(e,d,i);return f.top=_(a.top,f.top),f.right=K(a.right,f.right),f.bottom=K(a.bottom,f.bottom),f.left=_(a.left,f.left),f},Lt(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function me(t){const{width:e,height:n}=Nt(t);return{width:e,height:n}}function ge(t,e,n){const o=L(e),i=k(e),r=n==="fixed",s=j(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const c=V(0);if(o||!o&&!r)if((Q(e)!=="body"||st(i))&&(l=dt(e)),o){const a=j(e,!0,r,e);c.x=a.x+e.clientLeft,c.y=a.y+e.clientTop}else i&&(c.x=Mt(i));const f=s.left+l.scrollLeft-c.x,d=s.top+l.scrollTop-c.y;return{x:f,y:d,width:s.width,height:s.height}}function gt(t){return C(t).position==="static"}function St(t,e){return!L(t)||C(t).position==="fixed"?null:e?e(t):t.offsetParent}function Wt(t,e){const n=R(t);if(ut(t))return n;if(!L(t)){let i=W(t);for(;i&&!J(i);){if(T(i)&&!gt(i))return i;i=W(i)}return n}let o=St(t,e);for(;o&&ne(o)&&gt(o);)o=St(o,e);return o&&J(o)&&gt(o)&&!vt(o)?n:o||oe(t)||n}const he=function(t){return D(this,null,function*(){const e=this.getOffsetParent||Wt,n=this.getDimensions,o=yield n(t.floating);return{reference:ge(t.reference,yield e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}})};function pe(t){return C(t).direction==="rtl"}const we={convertOffsetParentRelativeRectToViewportRelativeRect:re,getDocumentElement:k,getClippingRect:de,getOffsetParent:Wt,getElementRects:he,getClientRects:ce,getDimensions:me,getScale:U,isElement:T,isRTL:pe};function xe(t,e){let n=null,o;const i=k(t);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),r();const{left:f,top:d,width:a,height:h}=t.getBoundingClientRect();if(l||e(),!a||!h)return;const u=ct(d),g=ct(i.clientWidth-(f+a)),m=ct(i.clientHeight-(d+h)),w=ct(f),x={rootMargin:-u+"px "+-g+"px "+-m+"px "+-w+"px",threshold:_(0,K(1,c))||1};let y=!0;function b(v){const F=v[0].intersectionRatio;if(F!==c){if(!y)return s();F?s(!1,F):o=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(b,P(A({},x),{root:i.ownerDocument}))}catch(v){n=new IntersectionObserver(b,x)}n.observe(t)}return s(!0),r}function ve(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=At(t),d=i||r?[...f?nt(f):[],...nt(e)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const a=f&&l?xe(f,n):null;let h=-1,u=null;s&&(u=new ResizeObserver(p=>{let[x]=p;x&&x.target===f&&u&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=u)==null||y.observe(e)})),n()}),f&&!c&&u.observe(f),u.observe(e));let g,m=c?j(t):null;c&&w();function w(){const p=j(t);m&&(p.x!==m.x||p.y!==m.y||p.width!==m.width||p.height!==m.height)&&n(),m=p,g=requestAnimationFrame(w)}return n(),()=>{var p;d.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),a==null||a(),(p=u)==null||p.disconnect(),u=null,c&&cancelAnimationFrame(g)}}const be=yt,Ae=te,Re=ee,Oe=Qt,Ce=Jt,Ee=(t,e,n)=>{const o=new Map,i=A({platform:we},n),r=P(A({},i.platform),{_c:o});return Gt(t,e,P(A({},i),{platform:r}))};export{Ce as a,ve as b,Ee as c,be as d,Oe as f,Ae as o,Re as s};
1
+ var Ht=Object.defineProperty,zt=Object.defineProperties;var _t=Object.getOwnPropertyDescriptors;var rt=Object.getOwnPropertySymbols;var Ot=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var Rt=(t,e,n)=>e in t?Ht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,A=(t,e)=>{for(var n in e||(e={}))Ot.call(e,n)&&Rt(t,n,e[n]);if(rt)for(var n of rt(e))Ct.call(e,n)&&Rt(t,n,e[n]);return t},P=(t,e)=>zt(t,_t(e));var mt=(t,e)=>{var n={};for(var o in t)Ot.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&rt)for(var o of rt(t))e.indexOf(o)<0&&Ct.call(t,o)&&(n[o]=t[o]);return n};var D=(t,e,n)=>new Promise((o,i)=>{var r=c=>{try{l(n.next(c))}catch(f){i(f)}},s=c=>{try{l(n.throw(c))}catch(f){i(f)}},l=c=>c.done?o(c.value):Promise.resolve(c.value).then(r,s);l((n=n.apply(t,e)).next())});const K=Math.min,_=Math.max,lt=Math.round,ct=Math.floor,V=t=>({x:t,y:t}),It={left:"right",right:"left",bottom:"top",top:"bottom"},jt={start:"end",end:"start"};function ht(t,e,n){return _(t,K(e,n))}function ot(t,e){return typeof t=="function"?t(e):t}function I(t){return t.split("-")[0]}function it(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function wt(t){return t==="y"?"height":"width"}function G(t){return["top","bottom"].includes(I(t))?"y":"x"}function xt(t){return Pt(G(t))}function Xt(t,e,n){n===void 0&&(n=!1);const o=it(t),i=xt(t),r=wt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=ft(s)),[s,ft(s)]}function Yt(t){const e=ft(t);return[pt(t),e,pt(e)]}function pt(t){return t.replace(/start|end/g,e=>jt[e])}function qt(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function Ut(t,e,n,o){const i=it(t);let r=qt(I(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(pt)))),r}function ft(t){return t.replace(/left|right|bottom|top/g,e=>It[e])}function Kt(t){return A({top:0,right:0,bottom:0,left:0},t)}function Dt(t){return typeof t!="number"?Kt(t):{top:t,right:t,bottom:t,left:t}}function at(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Et(t,e,n){let{reference:o,floating:i}=t;const r=G(e),s=xt(e),l=wt(s),c=I(e),f=r==="y",d=o.x+o.width/2-i.width/2,a=o.y+o.height/2-i.height/2,h=o[l]/2-i[l]/2;let u;switch(c){case"top":u={x:d,y:o.y-i.height};break;case"bottom":u={x:d,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:a};break;case"left":u={x:o.x-i.width,y:a};break;default:u={x:o.x,y:o.y}}switch(it(e)){case"start":u[s]-=h*(n&&f?-1:1);break;case"end":u[s]+=h*(n&&f?-1:1);break}return u}const Gt=(t,e,n)=>D(void 0,null,function*(){const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),c=yield s.isRTL==null?void 0:s.isRTL(e);let f=yield s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:a}=Et(f,o,c),h=o,u={},g=0;for(let m=0;m<l.length;m++){const{name:w,fn:p}=l[m],{x,y,data:b,reset:v}=yield p({x:d,y:a,initialPlacement:o,placement:h,strategy:i,middlewareData:u,rects:f,platform:s,elements:{reference:t,floating:e}});d=x!=null?x:d,a=y!=null?y:a,u=P(A({},u),{[w]:A(A({},u[w]),b)}),v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(h=v.placement),v.rects&&(f=v.rects===!0?yield s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:d,y:a}=Et(f,h,c)),m=-1)}return{x:d,y:a,placement:h,strategy:i,middlewareData:u}});function yt(t,e){return D(this,null,function*(){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:a="floating",altBoundary:h=!1,padding:u=0}=ot(e,t),g=Dt(u),w=l[h?a==="floating"?"reference":"floating":a],p=at(yield r.getClippingRect({element:(n=yield r.isElement==null?void 0:r.isElement(w))==null||n?w:w.contextElement||(yield r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:f,rootBoundary:d,strategy:c})),x=a==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=yield r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating),b=(yield r.isElement==null?void 0:r.isElement(y))?(yield r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=at(r.convertOffsetParentRelativeRectToViewportRelativeRect?yield r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:y,strategy:c}):x);return{top:(p.top-v.top+g.top)/b.y,bottom:(v.bottom-p.bottom+g.bottom)/b.y,left:(p.left-v.left+g.left)/b.x,right:(v.right-p.right+g.right)/b.x}})}const Jt=t=>({name:"arrow",options:t,fn(n){return D(this,null,function*(){const{x:o,y:i,placement:r,rects:s,platform:l,elements:c,middlewareData:f}=n,{element:d,padding:a=0}=ot(t,n)||{};if(d==null)return{};const h=Dt(a),u={x:o,y:i},g=xt(r),m=wt(g),w=yield l.getDimensions(d),p=g==="y",x=p?"top":"left",y=p?"bottom":"right",b=p?"clientHeight":"clientWidth",v=s.reference[m]+s.reference[g]-u[g]-s.floating[m],F=u[g]-s.reference[g],X=yield l.getOffsetParent==null?void 0:l.getOffsetParent(d);let $=X?X[b]:0;(!$||!(yield l.isElement==null?void 0:l.isElement(X)))&&($=c.floating[b]||s.floating[m]);const Z=v/2-F/2,H=$/2-w[m]/2-1,N=K(h[x],H),tt=K(h[y],H),z=N,et=$-w[m]-tt,T=$/2-w[m]/2+Z,O=ht(z,T,et),Y=!f.arrow&&it(r)!=null&&T!==O&&s.reference[m]/2-(T<z?N:tt)-w[m]/2<0,S=Y?T<z?T-z:T-et:0;return{[g]:u[g]+S,data:A({[g]:O,centerOffset:T-O-S},Y&&{alignmentOffset:S}),reset:Y}})}}),Qt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,fn(n){return D(this,null,function*(){var o,i;const{placement:r,middlewareData:s,rects:l,initialPlacement:c,platform:f,elements:d}=n,T=ot(t,n),{mainAxis:a=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:w=!0}=T,p=mt(T,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const x=I(r),y=G(c),b=I(c)===c,v=yield f.isRTL==null?void 0:f.isRTL(d.floating),F=u||(b||!w?[ft(c)]:Yt(c)),X=m!=="none";!u&&X&&F.push(...Ut(c,w,m,v));const $=[c,...F],Z=yield yt(n,p),H=[];let N=((i=s.flip)==null?void 0:i.overflows)||[];if(a&&H.push(Z[x]),h){const O=Xt(r,l,v);H.push(Z[O[0]],Z[O[1]])}if(N=[...N,{placement:r,overflows:H}],!H.every(O=>O<=0)){var tt,z;const O=(((tt=s.flip)==null?void 0:tt.index)||0)+1,Y=$[O];if(Y)return{data:{index:O,overflows:N},reset:{placement:Y}};let S=(z=N.filter(q=>q.overflows[0]<=0).sort((q,B)=>q.overflows[1]-B.overflows[1])[0])==null?void 0:z.placement;if(!S)switch(g){case"bestFit":{var et;const q=(et=N.filter(B=>{if(X){const M=G(B.placement);return M===y||M==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(M=>M>0).reduce((M,$t)=>M+$t,0)]).sort((B,M)=>B[1]-M[1])[0])==null?void 0:et[0];q&&(S=q);break}case"initialPlacement":S=c;break}if(r!==S)return{reset:{placement:S}}}return{}})}}};function Zt(t,e){return D(this,null,function*(){const{placement:n,platform:o,elements:i}=t,r=yield o.isRTL==null?void 0:o.isRTL(i.floating),s=I(n),l=it(n),c=G(n)==="y",f=["left","top"].includes(s)?-1:1,d=r&&c?-1:1,a=ot(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:g}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:A({mainAxis:0,crossAxis:0,alignmentAxis:null},a);return l&&typeof g=="number"&&(u=l==="end"?g*-1:g),c?{x:u*d,y:h*f}:{x:h*f,y:u*d}})}const te=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(n){return D(this,null,function*(){var o,i;const{x:r,y:s,placement:l,middlewareData:c}=n,f=yield Zt(n,t);return l===((o=c.offset)==null?void 0:o.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:r+f.x,y:s+f.y,data:P(A({},f),{placement:l})}})}}},ee=function(t){return t===void 0&&(t={}),{name:"shift",options:t,fn(n){return D(this,null,function*(){const{x:o,y:i,placement:r}=n,p=ot(t,n),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}}}=p,f=mt(p,["mainAxis","crossAxis","limiter"]),d={x:o,y:i},a=yield yt(n,f),h=G(I(r)),u=Pt(h);let g=d[u],m=d[h];if(s){const x=u==="y"?"top":"left",y=u==="y"?"bottom":"right",b=g+a[x],v=g-a[y];g=ht(b,g,v)}if(l){const x=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=m+a[x],v=m-a[y];m=ht(b,m,v)}const w=c.fn(P(A({},n),{[u]:g,[h]:m}));return P(A({},w),{data:{x:w.x-o,y:w.y-i}})})}}};function Q(t){return kt(t)?(t.nodeName||"").toLowerCase():"#document"}function R(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function k(t){var e;return(e=(kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function kt(t){return t instanceof Node||t instanceof R(t).Node}function C(t){return t instanceof Element||t instanceof R(t).Element}function L(t){return t instanceof HTMLElement||t instanceof R(t).HTMLElement}function Tt(t){return typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof R(t).ShadowRoot}function st(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=E(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function ne(t){return["table","td","th"].includes(Q(t))}function ut(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(n){return!1}})}function vt(t){const e=bt(),n=C(t)?E(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function oe(t){let e=W(t);for(;L(e)&&!J(e);){if(vt(e))return e;if(ut(e))return null;e=W(e)}return null}function bt(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function J(t){return["html","body","#document"].includes(Q(t))}function E(t){return R(t).getComputedStyle(t)}function dt(t){return C(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function W(t){if(Q(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Tt(t)&&t.host||k(t);return Tt(e)?e.host:e}function Ft(t){const e=W(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:L(e)&&st(e)?e:Ft(e)}function nt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ft(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=R(i);return r?e.concat(s,s.visualViewport||[],st(i)?i:[],s.frameElement&&n?nt(s.frameElement):[]):e.concat(i,nt(i,[],n))}function Nt(t){const e=E(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=L(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,l=lt(n)!==r||lt(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function At(t){return C(t)?t:t.contextElement}function U(t){const e=At(t);if(!L(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Nt(e);let s=(r?lt(n.width):n.width)/o,l=(r?lt(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const ie=V(0);function Bt(t){const e=R(t);return!bt()||!e.visualViewport?ie:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function se(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==R(t)?!1:e}function j(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=At(t);let s=V(1);e&&(o?C(o)&&(s=U(o)):s=U(t));const l=se(r,n,o)?Bt(r):V(0);let c=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,d=i.width/s.x,a=i.height/s.y;if(r){const h=R(r),u=o&&C(o)?R(o):o;let g=h,m=g.frameElement;for(;m&&o&&u!==g;){const w=U(m),p=m.getBoundingClientRect(),x=E(m),y=p.left+(m.clientLeft+parseFloat(x.paddingLeft))*w.x,b=p.top+(m.clientTop+parseFloat(x.paddingTop))*w.y;c*=w.x,f*=w.y,d*=w.x,a*=w.y,c+=y,f+=b,g=R(m),m=g.frameElement}}return at({width:d,height:a,x:c,y:f})}function re(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=k(o),l=e?ut(e.floating):!1;if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},f=V(1);const d=V(0),a=L(o);if((a||!a&&!r)&&((Q(o)!=="body"||st(s))&&(c=dt(o)),L(o))){const h=j(o);f=U(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+d.x,y:n.y*f.y-c.scrollTop*f.y+d.y}}function ce(t){return Array.from(t.getClientRects())}function Mt(t){return j(k(t)).left+dt(t).scrollLeft}function le(t){const e=k(t),n=dt(t),o=t.ownerDocument.body,i=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Mt(t);const l=-n.scrollTop;return E(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}function fe(t,e){const n=R(t),o=k(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){r=i.width,s=i.height;const f=bt();(!f||f&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:l,y:c}}function ae(t,e){const n=j(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=L(t)?U(t):V(1),s=t.clientWidth*r.x,l=t.clientHeight*r.y,c=i*r.x,f=o*r.y;return{width:s,height:l,x:c,y:f}}function Lt(t,e,n){let o;if(e==="viewport")o=fe(t,n);else if(e==="document")o=le(k(t));else if(C(e))o=ae(e,n);else{const i=Bt(t);o=P(A({},e),{x:e.x-i.x,y:e.y-i.y})}return at(o)}function Vt(t,e){const n=W(t);return n===e||!C(n)||J(n)?!1:E(n).position==="fixed"||Vt(n,e)}function ue(t,e){const n=e.get(t);if(n)return n;let o=nt(t,[],!1).filter(l=>C(l)&&Q(l)!=="body"),i=null;const r=E(t).position==="fixed";let s=r?W(t):t;for(;C(s)&&!J(s);){const l=E(s),c=vt(s);!c&&l.position==="fixed"&&(i=null),(r?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||st(s)&&!c&&Vt(t,s))?o=o.filter(d=>d!==s):i=l,s=W(s)}return e.set(t,o),o}function de(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?ut(e)?[]:ue(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((f,d)=>{const a=Lt(e,d,i);return f.top=_(a.top,f.top),f.right=K(a.right,f.right),f.bottom=K(a.bottom,f.bottom),f.left=_(a.left,f.left),f},Lt(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function me(t){const{width:e,height:n}=Nt(t);return{width:e,height:n}}function ge(t,e,n){const o=L(e),i=k(e),r=n==="fixed",s=j(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const c=V(0);if(o||!o&&!r)if((Q(e)!=="body"||st(i))&&(l=dt(e)),o){const a=j(e,!0,r,e);c.x=a.x+e.clientLeft,c.y=a.y+e.clientTop}else i&&(c.x=Mt(i));const f=s.left+l.scrollLeft-c.x,d=s.top+l.scrollTop-c.y;return{x:f,y:d,width:s.width,height:s.height}}function gt(t){return E(t).position==="static"}function St(t,e){return!L(t)||E(t).position==="fixed"?null:e?e(t):t.offsetParent}function Wt(t,e){const n=R(t);if(ut(t))return n;if(!L(t)){let i=W(t);for(;i&&!J(i);){if(C(i)&&!gt(i))return i;i=W(i)}return n}let o=St(t,e);for(;o&&ne(o)&&gt(o);)o=St(o,e);return o&&J(o)&&gt(o)&&!vt(o)?n:o||oe(t)||n}const he=function(t){return D(this,null,function*(){const e=this.getOffsetParent||Wt,n=this.getDimensions,o=yield n(t.floating);return{reference:ge(t.reference,yield e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}})};function pe(t){return E(t).direction==="rtl"}const we={convertOffsetParentRelativeRectToViewportRelativeRect:re,getDocumentElement:k,getClippingRect:de,getOffsetParent:Wt,getElementRects:he,getClientRects:ce,getDimensions:me,getScale:U,isElement:C,isRTL:pe};function xe(t,e){let n=null,o;const i=k(t);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),r();const{left:f,top:d,width:a,height:h}=t.getBoundingClientRect();if(l||e(),!a||!h)return;const u=ct(d),g=ct(i.clientWidth-(f+a)),m=ct(i.clientHeight-(d+h)),w=ct(f),x={rootMargin:-u+"px "+-g+"px "+-m+"px "+-w+"px",threshold:_(0,K(1,c))||1};let y=!0;function b(v){const F=v[0].intersectionRatio;if(F!==c){if(!y)return s();F?s(!1,F):o=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(b,P(A({},x),{root:i.ownerDocument}))}catch(v){n=new IntersectionObserver(b,x)}n.observe(t)}return s(!0),r}function ve(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=At(t),d=i||r?[...f?nt(f):[],...nt(e)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const a=f&&l?xe(f,n):null;let h=-1,u=null;s&&(u=new ResizeObserver(p=>{let[x]=p;x&&x.target===f&&u&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=u)==null||y.observe(e)})),n()}),f&&!c&&u.observe(f),u.observe(e));let g,m=c?j(t):null;c&&w();function w(){const p=j(t);m&&(p.x!==m.x||p.y!==m.y||p.width!==m.width||p.height!==m.height)&&n(),m=p,g=requestAnimationFrame(w)}return n(),()=>{var p;d.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),a==null||a(),(p=u)==null||p.disconnect(),u=null,c&&cancelAnimationFrame(g)}}const be=yt,Ae=te,Re=ee,Oe=Qt,Ce=Jt,Ee=(t,e,n)=>{const o=new Map,i=A({platform:we},n),r=P(A({},i.platform),{_c:o});return Gt(t,e,P(A({},i),{platform:r}))};export{Ce as a,ve as b,Ee as c,be as d,Oe as f,Ae as o,Re as s};