2 lines
6.3 KiB
JavaScript
2 lines
6.3 KiB
JavaScript
import{S as G,q as $,d as S,T as q}from"./classCallCheck-DqWZIipa.js";import{x as V,j as c,M as _,y as Z,z as K,A as X,w as Q,B as H,c as J}from"./isEqual-ee78UXO0.js";import{d as Y,z as k,Z as j,Q as ee,D as te,P as ne,q as re,G as ie}from"./index-ZjGZzoKB.js";import{c as x,S as d}from"./Spinner.vue_vue_type_style_index_0_lang-0BQFuTHt.js";const $e=Y({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(t,r){var i=r.slots,n=re({width:0,height:0,offsetHeight:0,offsetWidth:0}),a=null,s=null,o=function(){s&&(s.disconnect(),s=null)},B=function(m){var u=t.onResize,l=m[0].target,w=l.getBoundingClientRect(),U=w.width,W=w.height,v=l.offsetWidth,y=l.offsetHeight,C=Math.floor(U),O=Math.floor(W);if(n.width!==C||n.height!==O||n.offsetWidth!==v||n.offsetHeight!==y){var E={width:C,height:O,offsetWidth:v,offsetHeight:y};$(n,E),u&&Promise.resolve().then(function(){u(S(S({},E),{},{offsetWidth:v,offsetHeight:y}),l)})}},F=ne(),p=function(){var m=t.disabled;if(m){o();return}var u=G(F),l=u!==a;l&&(o(),a=u),!s&&u&&(s=new V(B),s.observe(u))};return k(function(){p()}),j(function(){p()}),ee(function(){o()}),te(function(){return t.disabled},function(){p()},{flush:"post"}),function(){var f;return(f=i.default)===null||f===void 0?void 0:f.call(i)[0]}}});function ae(e,t,r,i){for(var n=e.length,a=r+-1;++a<n;)if(t(e[a],a,e))return a;return-1}function se(e){return e!==e}function oe(e,t,r){for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}function ue(e,t,r){return t===t?oe(e,t,r):ae(e,se,r)}function qe(e,t){var r=e==null?0:e.length;return!!r&&ue(e,t,0)>-1}function L(e,t){if(e.classList)return e.classList.contains(t);var r=e.className;return" ".concat(r," ").indexOf(" ".concat(t," "))>-1}function P(e,t){e.classList?e.classList.add(t):L(e,t)||(e.className="".concat(e.className," ").concat(t))}function M(e,t){if(e.classList)e.classList.remove(t);else if(L(e,t)){var r=e.className;e.className=" ".concat(r," ").replace(" ".concat(t," ")," ")}}var Ve=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:t,appear:r,css:!0,onBeforeEnter:function(n){n.style.height="0px",n.style.opacity="0",P(n,t)},onEnter:function(n){ie(function(){n.style.height="".concat(n.scrollHeight,"px"),n.style.opacity="1"})},onAfterEnter:function(n){n&&(M(n,t),n.style.height=null,n.style.opacity=null)},onBeforeLeave:function(n){P(n,t),n.style.height="".concat(n.offsetHeight,"px"),n.style.opacity=null},onLeave:function(n){setTimeout(function(){n.style.height="0px",n.style.opacity="0"})},onAfterLeave:function(n){n&&(M(n,t),n.style&&(n.style.height=null,n.style.opacity=null))}}};function fe(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}var R=d?d.prototype:void 0,z=R?R.toString:void 0;function A(e){if(typeof e=="string")return e;if(c(e))return fe(e,A)+"";if(x(e))return z?z.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function le(e){return e==null?"":A(e)}var ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,he=/^\w*$/;function de(e,t){if(c(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||x(e)?!0:he.test(e)||!ce.test(e)||t!=null&&e in Object(t)}var ge="Expected a function";function b(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ge);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var s=e.apply(this,i);return r.cache=a.set(n,s)||a,s};return r.cache=new(b.Cache||_),r}b.Cache=_;var pe=500;function me(e){var t=b(e,function(i){return r.size===pe&&r.clear(),i}),r=t.cache;return t}var ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ye=/\\(\\)?/g,xe=me(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ve,function(r,i,n,a){t.push(n?a.replace(ye,"$1"):i||r)}),t});function D(e,t){return c(e)?e:de(e,t)?[e]:xe(le(e))}function N(e){if(typeof e=="string"||x(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ze(e,t){t=D(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[N(t[r++])];return r&&r==i?e:void 0}var g=function(){try{var e=Z(Object,"defineProperty");return e({},"",{}),e}catch{}}();function be(e,t,r){t=="__proto__"&&g?g(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var we=Object.prototype,Ce=we.hasOwnProperty;function Ke(e,t,r){var i=e[t];(!(Ce.call(e,t)&&K(i,r))||r===void 0&&!(t in e))&&be(e,t,r)}function Oe(e,t){return e!=null&&t in Object(e)}function Ee(e,t,r){t=D(t,e);for(var i=-1,n=t.length,a=!1;++i<n;){var s=N(t[i]);if(!(a=e!=null&&r(e,s)))break;e=e[s]}return a||++i!=n?a:(n=e==null?0:e.length,!!n&&X(n)&&Q(s,n)&&(c(e)||H(e)))}function Xe(e,t){return e!=null&&Ee(e,t,Oe)}var I=d?d.isConcatSpreadable:void 0;function Se(e){return c(e)||H(e)||!!(I&&e&&e[I])}function Pe(e,t,r,i,n){var a=-1,s=e.length;for(r||(r=Se),n||(n=[]);++a<s;){var o=e[a];r(o)?J(n,o):n[n.length]=o}return n}function Me(e){var t=e==null?0:e.length;return t?Pe(e):[]}function Re(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var T=Math.max;function ze(e,t,r){return t=T(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=T(i.length-t,0),s=Array(a);++n<a;)s[n]=i[t+n];n=-1;for(var o=Array(t+1);++n<t;)o[n]=i[n];return o[t]=r(s),Re(e,this,o)}}function Ie(e){return function(){return e}}function Te(e){return e}var _e=g?function(e,t){return g(e,"toString",{configurable:!0,enumerable:!1,value:Ie(t),writable:!0})}:Te,He=800,Le=16,Ae=Date.now;function De(e){var t=0,r=0;return function(){var i=Ae(),n=Le-(i-r);if(r=i,n>0){if(++t>=He)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ne=De(_e);function Qe(e){return Ne(ze(e,void 0,Me),e+"")}var Be=function(){return q()&&window.document.documentElement},h,Je=function(){if(!Be())return!1;if(h!==void 0)return h;var t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),h=t.scrollHeight===1,document.body.removeChild(t),h};export{$e as R,Ke as a,be as b,Ze as c,Je as d,Te as e,ae as f,Ve as g,Xe as h,de as i,qe as j,fe as k,D as l,Qe as m,Be as n,ze as o,Ne as s,N as t};
|