2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[426],{96159:function(x,E,o){var p;o.d(E,{M2:function(){return d},Tm:function(){return f},l$:function(){return l}});var v=o(62435);const{isValidElement:l}=p||(p=o.t(v,2));function d(a){return a&&l(a)&&a.type===v.Fragment}function m(a,M,A){return l(a)?v.cloneElement(a,typeof A=="function"?A(a.props||{}):A):M}function f(a,M){return m(a,a,M)}},4173:function(x,E,o){o.d(E,{BR:function(){return M},ri:function(){return a}});var p=o(94184),v=o.n(p),l=o(50344),d=o(62435),m=function(s,_){var c={};for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&_.indexOf(u)<0&&(c[u]=s[u]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,u=Object.getOwnPropertySymbols(s);b<u.length;b++)_.indexOf(u[b])<0&&Object.prototype.propertyIsEnumerable.call(s,u[b])&&(c[u[b]]=s[u[b]]);return c};const f=d.createContext(null),a=(s,_)=>{const c=d.useContext(f),u=d.useMemo(()=>{if(!c)return"";const{compactDirection:b,isFirstItem:T,isLastItem:I}=c,O=b==="vertical"?"-vertical-":"-";return v()(`${s}-compact${O}item`,{[`${s}-compact${O}first-item`]:T,[`${s}-compact${O}last-item`]:I,[`${s}-compact${O}item-rtl`]:_==="rtl"})},[s,_,c]);return{compactSize:c==null?void 0:c.compactSize,compactDirection:c==null?void 0:c.compactDirection,compactItemClassnames:u}},M=s=>{let{children:_}=s;return d.createElement(f.Provider,{value:null},_)},A=s=>{var{children:_}=s,c=m(s,["children"]);return React.createElement(f.Provider,{value:c},_)},j=s=>{const{getPrefixCls:_,direction:c}=React.useContext(ConfigContext),{size:u,direction:b,block:T,prefixCls:I,className:O,rootClassName:L,children:B}=s,W=m(s,["size","direction","block","prefixCls","className","rootClassName","children"]),P=useSize(t=>u!=null?u:t),w=_("space-compact",I),[$,F]=useStyle(w),z=classNames(w,F,{[`${w}-rtl`]:c==="rtl",[`${w}-block`]:T,[`${w}-vertical`]:b==="vertical"},O,L),g=React.useContext(f),D=toArray(B),e=React.useMemo(()=>D.map((t,n)=>{const r=t&&t.key||`${w}-item-${n}`;return React.createElement(A,{key:r,compactSize:P,compactDirection:b,isFirstItem:n===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:n===D.length-1&&(!g||(g==null?void 0:g.isLastItem))},t)}),[u,D,g]);return D.length===0?null:$(React.createElement("div",Object.assign({className:z},W),e))};var S=null},50344:function(x,E,o){o.d(E,{Z:function(){return l}});var p=o(62435),v=o(59864);function l(d){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[];return p.Children.forEach(d,function(a){a==null&&!m.keepEmpty||(Array.isArray(a)?f=f.concat(l(a)):(0,v.isFragment)(a)&&a.props?f=f.concat(l(a.props.children,m)):f.push(a))}),f}},5110:function(x,E){E.Z=function(o){if(!o)return!1;if(o instanceof Element){if(o.offsetParent)return!0;if(o.getBBox){var p=o.getBBox(),v=p.width,l=p.height;if(v||l)return!0}if(o.getBoundingClientRect){var d=o.getBoundingClientRect(),m=d.width,f=d.height;if(m||f)return!0}}return!1}},98423:function(x,E,o){o.d(E,{Z:function(){return v}});var p=o(1413);function v(l,d){var m=(0,p.Z)({},l);return Array.isArray(d)&&d.forEach(function(f){delete m[f]}),m}},91033:function(x,E,o){o.r(E);var p=function(){if(typeof Map!="undefined")return Map;function e(t,n){var r=-1;return t.some(function(i,h){return i[0]===n?(r=h,!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,h=this.__entries__;i<h.length;i++){var y=h[i];n.call(r,y[1],y[0])}},t}()}(),v=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,l=function(){return typeof o.g!="undefined"&&o.g.Math===Math?o.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),d=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(l):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),m=2;function f(e,t){var n=!1,r=!1,i=0;function h(){n&&(n=!1,e()),r&&R()}function y(){d(h)}function R(){var C=Date.now();if(n){if(C-i<m)return;r=!0}else n=!0,r=!1,setTimeout(y,t);i=C}return R}var a=20,M=["top","right","bottom","left","width","height","size","weight"],A=typeof MutationObserver!="undefined",j=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=f(this.refresh.bind(this),a)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!v||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),A?(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(){!v||!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=M.some(function(h){return!!~r.indexOf(h)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),S=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},s=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||l},_=P(0,0,0,0);function c(e){return parseFloat(e)||0}function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var h=e["border-"+i+"-width"];return r+c(h)},0)}function b(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var h=i[r],y=e["padding-"+h];n[h]=c(y)}return n}function T(e){var t=e.getBBox();return P(0,0,t.width,t.height)}function I(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _;var r=s(e).getComputedStyle(e),i=b(r),h=i.left+i.right,y=i.top+i.bottom,R=c(r.width),C=c(r.height);if(r.boxSizing==="border-box"&&(Math.round(R+h)!==t&&(R-=u(r,"left","right")+h),Math.round(C+y)!==n&&(C-=u(r,"top","bottom")+y)),!L(e)){var K=Math.round(R+h)-t,k=Math.round(C+y)-n;Math.abs(K)!==1&&(R-=K),Math.abs(k)!==1&&(C-=k)}return P(i.left,i.top,R,C)}var O=function(){return typeof SVGGraphicsElement!="undefined"?function(e){return e instanceof s(e).SVGGraphicsElement}:function(e){return e instanceof s(e).SVGElement&&typeof e.getBBox=="function"}}();function L(e){return e===s(e).document.documentElement}function B(e){return v?O(e)?T(e):I(e):_}function W(e){var t=e.x,n=e.y,r=e.width,i=e.height,h=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,y=Object.create(h.prototype);return S(y,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),y}function P(e,t,n,r){return{x:e,y:t,width:n,height:r}}var w=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=P(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=B(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),$=function(){function e(t,n){var r=W(n);S(this,{target:t,contentRect:r})}return e}(),F=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new p,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof s(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new w(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=="undefined"||!(Element instanceof Object))){if(!(t instanceof s(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 $(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}(),z=typeof WeakMap!="undefined"?new WeakMap:new p,g=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=j.getInstance(),r=new F(t,n,this);z.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){g.prototype[e]=function(){var t;return(t=z.get(this))[e].apply(t,arguments)}});var D=function(){return typeof l.ResizeObserver!="undefined"?l.ResizeObserver:g}();E.default=D}}]);
|