function O(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var i=e.indexOf("Trident/");if(i>0){var s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var a=e.indexOf("Edge/");return a>0?parseInt(e.substring(a+5,e.indexOf(".",a)),10):-1}var u;function c(){c.init||(c.init=!0,u=O()!==-1)}var $={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var t=this;c(),this.$nextTick(function(){t._w=t.$el.offsetWidth,t._h=t.$el.offsetHeight,t.emitOnMount&&t.emitSize()});var i=document.createElement("object");this._resizeObject=i,i.setAttribute("aria-hidden","true"),i.setAttribute("tabindex",-1),i.onload=this.addResizeHandlers,i.type="text/html",u&&this.$el.appendChild(i),i.data="about:blank",u||this.$el.appendChild(i)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!u&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function R(e,t,i,s,a,h,_,l,v,z){typeof _!="boolean"&&(v=l,l=_,_=!1);var n=typeof i=="function"?i.options:i;e&&e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns,n._compiled=!0,a&&(n.functional=!0)),s&&(n._scopeId=s);var o;if(h?(o=function(r){r=r||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!r&&typeof __VUE_SSR_CONTEXT__<"u"&&(r=__VUE_SSR_CONTEXT__),t&&t.call(this,v(r)),r&&r._registeredComponents&&r._registeredComponents.add(h)},n._ssrRegister=o):t&&(o=_?function(f){t.call(this,z(f,this.$root.$options.shadowRoot))}:function(f){t.call(this,l(f))}),o)if(n.functional){var y=n.render;n.render=function(r,m){return o.call(m),y(r,m)}}else{var p=n.beforeCreate;n.beforeCreate=p?[].concat(p,o):[o]}return i}var C=$,g=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},w=[];g._withStripped=!0;var E=void 0,A="data-v-8859cc6c",H=void 0,j=!1,b=R({render:g,staticRenderFns:w},E,C,A,j,H,!1,void 0,void 0,void 0);function x(e){e.component("resize-observer",b),e.component("ResizeObserver",b)}var S={version:"1.0.1",install:x},d=null;typeof window<"u"?d=window.Vue:typeof global<"u"&&(d=global.Vue);d&&d.use(S);export{b as _};
