@7anshuai/vue-auto-sizer
Version:
Vue component that automatically adjusts the width and height of a single child.
2 lines • 23.4 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-auto-sizer"]=e():t["vue-auto-sizer"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"04f8":function(t,e,r){"use strict";var n=r("2d00"),i=r("d039"),o=r("da84"),s=o.String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"06cf":function(t,e,r){"use strict";var n=r("83ab"),i=r("c65b"),o=r("d1e7"),s=r("5c6c"),c=r("fc6a"),a=r("a04b"),u=r("1a2d"),f=r("0cfb"),d=Object.getOwnPropertyDescriptor;e.f=n?d:function(t,e){if(t=c(t),e=a(e),f)try{return d(t,e)}catch(r){}if(u(t,e))return s(!i(o.f,t,e),t[e])}},"07fa":function(t,e,r){"use strict";var n=r("50c4");t.exports=function(t){return n(t.length)}},"0a7b":function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return n}));r("14d9"),r("c73d");function n(e,r){var n;n="undefined"!==typeof r?r:"undefined"!==typeof window?window:"undefined"!==typeof self?self:t;var i="undefined"!==typeof n.document&&n.document.attachEvent;if(!i){var o=function(){var t=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(t){return n.setTimeout(t,20)};return function(e){return t(e)}}(),s=function(){var t=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(e){return t(e)}}(),c=function(t){var e=t.__resizeTriggers__,r=e.firstElementChild,n=e.lastElementChild,i=r.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,i.style.width=r.offsetWidth+1+"px",i.style.height=r.offsetHeight+1+"px",r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight},a=function(t){return t.offsetWidth!==t.__resizeLast__.width||t.offsetHeight!==t.__resizeLast__.height},u=function(t){if(!(t.target.className&&"function"===typeof t.target.className.indexOf&&t.target.className.indexOf("contract-trigger")<0&&t.target.className.indexOf("expand-trigger")<0)){var e=this;c(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=o((function(){a(e)&&(e.__resizeLast__.width=e.offsetWidth,e.__resizeLast__.height=e.offsetHeight,e.__resizeListeners__.forEach((function(r){r.call(e,t)})))}))}},f=!1,d="",l="animationstart",p="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),b="",v=n.document.createElement("fakeelement");if(void 0!==v.style.animationName&&(f=!0),!1===f)for(var g=0;g<p.length;g++)if(void 0!==v.style[p[g]+"AnimationName"]){b=p[g],d="-"+b.toLowerCase()+"-",l=h[g],f=!0;break}var _="resizeanim",m="@"+d+"keyframes "+_+" { from { opacity: 0; } to { opacity: 0; } } ",y=d+"animation: 1ms "+_+"; "}var w=function(t){if(!t.getElementById("detectElementResize")){var r=(m||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',n=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(t.createTextNode(r)),n.appendChild(i)}},x=function(t,e){if(i)t.attachEvent("onresize",e);else{if(!t.__resizeTriggers__){var r=t.ownerDocument,o=n.getComputedStyle(t);o&&"static"===o.position&&(t.style.position="relative"),w(r),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=r.createElement("div")).className="resize-triggers";var s=r.createElement("div");s.className="expand-trigger",s.appendChild(r.createElement("div"));var a=r.createElement("div");a.className="contract-trigger",t.__resizeTriggers__.appendChild(s),t.__resizeTriggers__.appendChild(a),t.appendChild(t.__resizeTriggers__),c(t),t.addEventListener("scroll",u,!0),l&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName===_&&c(t)},t.__resizeTriggers__.addEventListener(l,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(e)}},z=function(t,e){if(i)t.detachEvent("onresize",e);else if(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),!t.__resizeListeners__.length){t.removeEventListener("scroll",u,!0),t.__resizeTriggers__.__animationListener__&&(t.__resizeTriggers__.removeEventListener(l,t.__resizeTriggers__.__animationListener__),t.__resizeTriggers__.__animationListener__=null);try{t.__resizeTriggers__=!t.removeChild(t.__resizeTriggers__)}catch(r){}}};return{addResizeListener:x,removeResizeListener:z}}}).call(this,r("c8ba"))},"0cfb":function(t,e,r){"use strict";var n=r("83ab"),i=r("d039"),o=r("cc12");t.exports=!n&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(t,e,r){"use strict";var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"13d2":function(t,e,r){"use strict";var n=r("e330"),i=r("d039"),o=r("1626"),s=r("1a2d"),c=r("83ab"),a=r("5e77").CONFIGURABLE,u=r("8925"),f=r("69f3"),d=f.enforce,l=f.get,p=String,h=Object.defineProperty,b=n("".slice),v=n("".replace),g=n([].join),_=c&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),m=String(String).split("String"),y=t.exports=function(t,e,r){"Symbol("===b(p(e),0,7)&&(e="["+v(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||a&&t.name!==e)&&(c?h(t,"name",{value:e,configurable:!0}):t.name=e),_&&r&&s(r,"arity")&&t.length!==r.arity&&h(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?c&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var n=d(t);return s(n,"source")||(n.source=g(m,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return o(this)&&l(this).source||u(this)}),"toString")},"14d9":function(t,e,r){"use strict";var n=r("23e7"),i=r("7b0b"),o=r("07fa"),s=r("3a34"),c=r("3511"),a=r("d039"),u=a((function(){return 4294967297!==[].push.call({length:4294967296},1)})),f=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},d=u||!f();n({target:"Array",proto:!0,arity:1,forced:d},{push:function(t){var e=i(this),r=o(e),n=arguments.length;c(r+n);for(var a=0;a<n;a++)e[r]=arguments[a],r++;return s(e,r),r}})},1626:function(t,e,r){"use strict";var n="object"==typeof document&&document.all;t.exports="undefined"==typeof n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},"1a2d":function(t,e,r){"use strict";var n=r("e330"),i=r("7b0b"),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"1d80":function(t,e,r){"use strict";var n=r("7234"),i=TypeError;t.exports=function(t){if(n(t))throw new i("Can't call method on "+t);return t}},"23cb":function(t,e,r){"use strict";var n=r("5926"),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},"23e7":function(t,e,r){"use strict";var n=r("da84"),i=r("06cf").f,o=r("9112"),s=r("cb2d"),c=r("6374"),a=r("e893"),u=r("94ca");t.exports=function(t,e){var r,f,d,l,p,h,b=t.target,v=t.global,g=t.stat;if(f=v?n:g?n[b]||c(b,{}):n[b]&&n[b].prototype,f)for(d in e){if(p=e[d],t.dontCallGetSet?(h=i(f,d),l=h&&h.value):l=f[d],r=u(v?d:b+(g?".":"#")+d,t.forced),!r&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&o(p,"sham",!0),s(f,d,p,t)}}},"241c":function(t,e,r){"use strict";var n=r("ca84"),i=r("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},"2d00":function(t,e,r){"use strict";var n,i,o=r("da84"),s=r("342f"),c=o.process,a=o.Deno,u=c&&c.versions||a&&a.version,f=u&&u.v8;f&&(n=f.split("."),i=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(i=+n[1]))),t.exports=i},"342f":function(t,e,r){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3511:function(t,e,r){"use strict";var n=TypeError,i=9007199254740991;t.exports=function(t){if(t>i)throw n("Maximum allowed index exceeded");return t}},"3a34":function(t,e,r){"use strict";var n=r("83ab"),i=r("e8b5"),o=TypeError,s=Object.getOwnPropertyDescriptor,c=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=c?function(t,e){if(i(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,r){"use strict";var n=r("e330");t.exports=n({}.isPrototypeOf)},"40d5":function(t,e,r){"use strict";var n=r("d039");t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"44ad":function(t,e,r){"use strict";var n=r("e330"),i=r("d039"),o=r("c6b6"),s=Object,c=n("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?c(t,""):s(t)}:s},"485a":function(t,e,r){"use strict";var n=r("c65b"),i=r("1626"),o=r("861d"),s=TypeError;t.exports=function(t,e){var r,c;if("string"===e&&i(r=t.toString)&&!o(c=n(r,t)))return c;if(i(r=t.valueOf)&&!o(c=n(r,t)))return c;if("string"!==e&&i(r=t.toString)&&!o(c=n(r,t)))return c;throw new s("Can't convert object to primitive value")}},"4d64":function(t,e,r){"use strict";var n=r("fc6a"),i=r("23cb"),o=r("07fa"),s=function(t){return function(e,r,s){var c=n(e),a=o(c);if(0===a)return!t&&-1;var u,f=i(s,a);if(t&&r!==r){while(a>f)if(u=c[f++],u!==u)return!0}else for(;a>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},"50c4":function(t,e,r){"use strict";var n=r("5926"),i=Math.min;t.exports=function(t){var e=n(t);return e>0?i(e,9007199254740991):0}},5692:function(t,e,r){"use strict";var n=r("c6cd");t.exports=function(t,e){return n[t]||(n[t]=e||{})}},"56ef":function(t,e,r){"use strict";var n=r("d066"),i=r("e330"),o=r("241c"),s=r("7418"),c=r("825a"),a=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(c(t)),r=s.f;return r?a(e,r(t)):e}},5926:function(t,e,r){"use strict";var n=r("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},"59ed":function(t,e,r){"use strict";var n=r("1626"),i=r("0d51"),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not a function")}},"5c6c":function(t,e,r){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,r){"use strict";var n=r("83ab"),i=r("1a2d"),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,c=i(o,"name"),a=c&&"something"===function(){}.name,u=c&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},6374:function(t,e,r){"use strict";var n=r("da84"),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},"69f3":function(t,e,r){"use strict";var n,i,o,s=r("cdce"),c=r("da84"),a=r("861d"),u=r("9112"),f=r("1a2d"),d=r("c6cd"),l=r("f772"),p=r("d012"),h="Object already initialized",b=c.TypeError,v=c.WeakMap,g=function(t){return o(t)?i(t):n(t,{})},_=function(t){return function(e){var r;if(!a(e)||(r=i(e)).type!==t)throw new b("Incompatible receiver, "+t+" required");return r}};if(s||d.state){var m=d.state||(d.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,n=function(t,e){if(m.has(t))throw new b(h);return e.facade=t,m.set(t,e),e},i=function(t){return m.get(t)||{}},o=function(t){return m.has(t)}}else{var y=l("state");p[y]=!0,n=function(t,e){if(f(t,y))throw new b(h);return e.facade=t,u(t,y,e),e},i=function(t){return f(t,y)?t[y]:{}},o=function(t){return f(t,y)}}t.exports={set:n,get:i,has:o,enforce:g,getterFor:_}},7234:function(t,e,r){"use strict";t.exports=function(t){return null===t||void 0===t}},7418:function(t,e,r){"use strict";e.f=Object.getOwnPropertySymbols},7839:function(t,e,r){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,r){"use strict";var n=r("1d80"),i=Object;t.exports=function(t){return i(n(t))}},"825a":function(t,e,r){"use strict";var n=r("861d"),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not an object")}},"83ab":function(t,e,r){"use strict";var n=r("d039");t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e,r){"use strict";var n=r("1626");t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},8925:function(t,e,r){"use strict";var n=r("e330"),i=r("1626"),o=r("c6cd"),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},"90e3":function(t,e,r){"use strict";var n=r("e330"),i=0,o=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},9112:function(t,e,r){"use strict";var n=r("83ab"),i=r("9bf2"),o=r("5c6c");t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},"94ca":function(t,e,r){"use strict";var n=r("d039"),i=r("1626"),o=/#|\.prototype\./,s=function(t,e){var r=a[c(t)];return r===f||r!==u&&(i(e)?n(e):!!e)},c=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=s.data={},u=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},"9bf2":function(t,e,r){"use strict";var n=r("83ab"),i=r("0cfb"),o=r("aed9"),s=r("825a"),c=r("a04b"),a=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d="enumerable",l="configurable",p="writable";e.f=n?o?function(t,e,r){if(s(t),e=c(e),s(r),"function"===typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var n=f(t,e);n&&n[p]&&(t[e]=r.value,r={configurable:l in r?r[l]:n[l],enumerable:d in r?r[d]:n[d],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(s(t),e=c(e),s(r),i)try{return u(t,e,r)}catch(n){}if("get"in r||"set"in r)throw new a("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},a04b:function(t,e,r){"use strict";var n=r("c04e"),i=r("d9b5");t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},aed9:function(t,e,r){"use strict";var n=r("83ab"),i=r("d039");t.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b42e:function(t,e,r){"use strict";var n=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?i:n)(e)}},b622:function(t,e,r){"use strict";var n=r("da84"),i=r("5692"),o=r("1a2d"),s=r("90e3"),c=r("04f8"),a=r("fdbf"),u=n.Symbol,f=i("wks"),d=a?u["for"]||u:u&&u.withoutSetter||s;t.exports=function(t){return o(f,t)||(f[t]=c&&o(u,t)?u[t]:d("Symbol."+t)),f[t]}},c04e:function(t,e,r){"use strict";var n=r("c65b"),i=r("861d"),o=r("d9b5"),s=r("dc4a"),c=r("485a"),a=r("b622"),u=TypeError,f=a("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var r,a=s(t,f);if(a){if(void 0===e&&(e="default"),r=n(a,t,e),!i(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},c430:function(t,e,r){"use strict";t.exports=!1},c65b:function(t,e,r){"use strict";var n=r("40d5"),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(t,e,r){"use strict";var n=r("e330"),i=n({}.toString),o=n("".slice);t.exports=function(t){return o(i(t),8,-1)}},c6cd:function(t,e,r){"use strict";var n=r("c430"),i=r("da84"),o=r("6374"),s="__core-js_shared__",c=t.exports=i[s]||o(s,{});(c.versions||(c.versions=[])).push({version:"3.37.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},c73d:function(t,e,r){"use strict";var n=r("23e7"),i=r("da84"),o=r("edd0"),s=r("83ab"),c=TypeError,a=Object.defineProperty,u=i.self!==i;try{if(s){var f=Object.getOwnPropertyDescriptor(i,"self");!u&&f&&f.get&&f.enumerable||o(i,"self",{get:function(){return i},set:function(t){if(this!==i)throw new c("Illegal invocation");a(i,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else n({global:!0,simple:!0,forced:u},{self:i})}catch(d){}},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},ca84:function(t,e,r){"use strict";var n=r("e330"),i=r("1a2d"),o=r("fc6a"),s=r("4d64").indexOf,c=r("d012"),a=n([].push);t.exports=function(t,e){var r,n=o(t),u=0,f=[];for(r in n)!i(c,r)&&i(n,r)&&a(f,r);while(e.length>u)i(n,r=e[u++])&&(~s(f,r)||a(f,r));return f}},cb2d:function(t,e,r){"use strict";var n=r("1626"),i=r("9bf2"),o=r("13d2"),s=r("6374");t.exports=function(t,e,r,c){c||(c={});var a=c.enumerable,u=void 0!==c.name?c.name:e;if(n(r)&&o(r,u,c),c.global)a?t[e]=r:s(e,r);else{try{c.unsafe?t[e]&&(a=!0):delete t[e]}catch(f){}a?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},cc12:function(t,e,r){"use strict";var n=r("da84"),i=r("861d"),o=n.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},cdce:function(t,e,r){"use strict";var n=r("da84"),i=r("1626"),o=n.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},d012:function(t,e,r){"use strict";t.exports={}},d039:function(t,e,r){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,r){"use strict";var n=r("da84"),i=r("1626"),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t]):n[t]&&n[t][e]}},d1e7:function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},d9b5:function(t,e,r){"use strict";var n=r("d066"),i=r("1626"),o=r("3a9b"),s=r("fdbf"),c=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&o(e.prototype,c(t))}},da84:function(t,e,r){"use strict";(function(e){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,r("c8ba"))},dc4a:function(t,e,r){"use strict";var n=r("59ed"),i=r("7234");t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},e330:function(t,e,r){"use strict";var n=r("40d5"),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);t.exports=n?s:function(t){return function(){return o.apply(t,arguments)}}},e893:function(t,e,r){"use strict";var n=r("1a2d"),i=r("56ef"),o=r("06cf"),s=r("9bf2");t.exports=function(t,e,r){for(var c=i(e),a=s.f,u=o.f,f=0;f<c.length;f++){var d=c[f];n(t,d)||r&&n(r,d)||a(t,d,u(e,d))}}},e8b5:function(t,e,r){"use strict";var n=r("c6b6");t.exports=Array.isArray||function(t){return"Array"===n(t)}},edd0:function(t,e,r){"use strict";var n=r("13d2"),i=r("9bf2");t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),i.f(t,e,r)}},f772:function(t,e,r){"use strict";var n=r("5692"),i=r("90e3"),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fb15:function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var o=function(){var t=this,e=t._self._c;return e("div",{ref:"autoSizer",style:{...t.outerStyle}},[t._t("default",null,{size:t.childParams})],2)},s=[],c=r("0a7b"),a={name:"AutoSizer",props:{defaultHeight:Number,defaultWidth:Number,disableHeight:{type:Boolean,default:!1},disableWidth:{type:Boolean,default:!1},nonce:String,onResize:{type:Function,default:()=>{}}},data(){return{height:this.defaultHeight||0,width:this.defaultWidth||0}},computed:{outerStyle:function(){const t={overflow:"visible"};return this.disableHeight||(t.height=0),this.disableWidth||(t.width=0),t},childParams:function(){const t={};return this.disableHeight||(t.height=this.height),this.disableWidth||(t.width=this.width),t}},mounted(){const t=this.$refs.autoSizer;t&&t.parentNode&&t.parentElement.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this._window=t.parentNode.ownerDocument.defaultView,this._detectElementResize=Object(c["a"])(this.nonce,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())},beforeDestroy(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)},methods:{_onResize(){if(this._parentNode){const t=this._parentNode.offsetHeight||0,e=this._parentNode.offsetWidth||0,r=this._window||window,n=r.getComputedStyle(this._parentNode)||{},i=parseInt(n.paddingLeft,10)||0,o=parseInt(n.paddingRight,10)||0,s=parseInt(n.paddingTop,10)||0,c=parseInt(n.paddingBottom,10)||0,a=t-s-c,u=e-i-o;(!this._disableHeight&&this.height!==a||!this._disableWidth&&this.width!==u)&&(this.height=t-s-c,this.width=e-i-o,this.onResize({height:t,width:e}))}}}},u=a;function f(t,e,r,n,i,o,s,c){var a,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=a):i&&(a=c?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),a)if(u.functional){u._injectStyles=a;var f=u.render;u.render=function(t,e){return a.call(e),f(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:u}}var d=f(u,o,s,!1,null,null,null),l=d.exports,p=l;e["default"]=p},fc6a:function(t,e,r){"use strict";var n=r("44ad"),i=r("1d80");t.exports=function(t){return n(i(t))}},fdbf:function(t,e,r){"use strict";var n=r("04f8");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})}));
//# sourceMappingURL=vue-auto-sizer.umd.min.js.map