import{d as V,r as k,v as I,aC as q,aA as N,E as U,aL as K,at as C,ah as b,a9 as Y,b1 as J,az as Q,b5 as X,ax as Z}from"./index-a788bd53.js";var P=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i0},e.prototype.connect_=function(){!R||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),oe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!R||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=ie.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),W=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ve(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new pe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),H=typeof WeakMap<"u"?new WeakMap:new P,$=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=se.getInstance(),r=new be(t,n,this);H.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){$.prototype[e]=function(){var t;return(t=H.get(this))[e].apply(t,arguments)}});var ge=function(){return typeof g.ResizeObserver<"u"?g.ResizeObserver:$}();const me=ge;var _e=typeof global=="object"&&global&&global.Object===Object&&global;const ye=_e;var Oe=typeof self=="object"&&self&&self.Object===Object&&self,we=ye||Oe||Function("return this")();const Ee=we;var Re=Ee.Symbol;const _=Re;var G=Object.prototype,Me=G.hasOwnProperty,Te=G.toString,v=_?_.toStringTag:void 0;function ze(e){var t=Me.call(e,v),n=e[v];try{e[v]=void 0;var r=!0}catch{}var i=Te.call(e);return r&&(t?e[v]=n:delete e[v]),i}var Ae=Object.prototype,Se=Ae.toString;function je(e){return Se.call(e)}var xe="[object Null]",Ce="[object Undefined]",j=_?_.toStringTag:void 0;function We(e){return e==null?e===void 0?Ce:xe:j&&j in Object(e)?ze(e):je(e)}function De(e,t){return function(n){return e(t(n))}}function He(e){return e!=null&&typeof e=="object"}const $e=V({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(t,n){var r=n.slots,i=k({width:0,height:0,offsetHeight:0,offsetWidth:0}),o=null,s=null,a=function(){s&&(s.disconnect(),s=null)},u=function(O){var f=t.onResize,d=O[0].target,M=d.getBoundingClientRect(),B=M.width,F=M.height,w=d.offsetWidth,E=d.offsetHeight,T=Math.floor(B),z=Math.floor(F);if(i.width!==T||i.height!==z||i.offsetWidth!==w||i.offsetHeight!==E){var A={width:T,height:z,offsetWidth:w,offsetHeight:E};C(i,A),f&&Promise.resolve().then(function(){f(b(b({},A),{},{offsetWidth:w,offsetHeight:E}),d)})}},p=Y(),c=function(){var O=t.disabled;if(O){a();return}var f=K(p),d=f!==o;d&&(a(),o=f),!s&&f&&(s=new me(u),s.observe(f))};return I(function(){c()}),q(function(){c()}),N(function(){a()}),U(function(){return t.disabled},function(){c()},{flush:"post"}),function(){var h;return(h=r.default)===null||h===void 0?void 0:h.call(r)[0]}}});function Ge(e,t){for(var n=C({},e),r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=e;if(Array.isArray(e)&&(i=J(e)[0]),!i)return null;var o=Q(i,t,r);return o.props=n?b(b({},o.props),t):o.props,X(Z(o.props.class)!=="object","class must be string"),o}function Le(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(function(r){return L(r,t,n)})}function x(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Array.isArray(e))return e.map(function(o){return x(o,t,n,r)});var i=L(e,t,n,r);return Array.isArray(i.children)&&(i.children=x(i.children)),i}export{$e as R,_ as S,me as a,We as b,L as c,De as d,x as e,ye as f,Le as g,He as i,Ge as o,Ee as r};