build/769.c877dddb.async.js

2 lines
13 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[769],{96159:function(L,C,o){var g;o.d(C,{M2:function(){return m},Tm:function(){return l},l$:function(){return h}});var s=o(62435);const{isValidElement:h}=g||(g=o.t(s,2));function m(u){return u&&h(u)&&u.type===s.Fragment}function p(u,A,y){return h(u)?s.cloneElement(u,typeof y=="function"?y(u.props||{}):y):A}function l(u,A){return p(u,u,A)}},4173:function(L,C,o){o.d(C,{BR:function(){return A},ri:function(){return u}});var g=o(94184),s=o.n(g),h=o(50344),m=o(62435),p=function(c,E){var f={};for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&E.indexOf(v)<0&&(f[v]=c[v]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,v=Object.getOwnPropertySymbols(c);_<v.length;_++)E.indexOf(v[_])<0&&Object.prototype.propertyIsEnumerable.call(c,v[_])&&(f[v[_]]=c[v[_]]);return f};const l=m.createContext(null),u=(c,E)=>{const f=m.useContext(l),v=m.useMemo(()=>{if(!f)return"";const{compactDirection:_,isFirstItem:I,isLastItem:S}=f,M=_==="vertical"?"-vertical-":"-";return s()(`${c}-compact${M}item`,{[`${c}-compact${M}first-item`]:I,[`${c}-compact${M}last-item`]:S,[`${c}-compact${M}item-rtl`]:E==="rtl"})},[c,E,f]);return{compactSize:f==null?void 0:f.compactSize,compactDirection:f==null?void 0:f.compactDirection,compactItemClassnames:v}},A=c=>{let{children:E}=c;return m.createElement(l.Provider,{value:null},E)},y=c=>{var{children:E}=c,f=p(c,["children"]);return React.createElement(l.Provider,{value:f},E)},N=c=>{const{getPrefixCls:E,direction:f}=React.useContext(ConfigContext),{size:v,direction:_,block:I,prefixCls:S,className:M,rootClassName:Z,children:T}=c,F=p(c,["size","direction","block","prefixCls","className","rootClassName","children"]),x=useSize(t=>v!=null?v:t),P=E("space-compact",S),[H,j]=useStyle(P),$=classNames(P,j,{[`${P}-rtl`]:f==="rtl",[`${P}-block`]:I,[`${P}-vertical`]:_==="vertical"},M,Z),O=React.useContext(l),D=toArray(T),e=React.useMemo(()=>D.map((t,n)=>{const r=t&&t.key||`${P}-item-${n}`;return React.createElement(y,{key:r,compactSize:x,compactDirection:_,isFirstItem:n===0&&(!O||(O==null?void 0:O.isFirstItem)),isLastItem:n===D.length-1&&(!O||(O==null?void 0:O.isLastItem))},t)}),[v,D,O]);return D.length===0?null:H(React.createElement("div",Object.assign({className:$},F),e))};var B=null},48555:function(L,C,o){o.d(C,{Z:function(){return D}});var g=o(87462),s=o(62435),h=o(50344),m=o(80334),p=o(1413),l=o(42550),u=o(34203),A=o(91033),y=new Map;function N(e){e.forEach(function(t){var n,r=t.target;(n=y.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var B=new A.Z(N),c=null,E=null;function f(e,t){y.has(e)||(y.set(e,new Set),B.observe(e)),y.get(e).add(t)}function v(e,t){y.has(e)&&(y.get(e).delete(t),y.get(e).size||(B.unobserve(e),y.delete(e)))}var _=o(15671),I=o(43144),S=o(32531),M=o(73568),Z=function(e){(0,S.Z)(n,e);var t=(0,M.Z)(n);function n(){return(0,_.Z)(this,n),t.apply(this,arguments)}return(0,I.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),T=s.createContext(null);function F(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),i=s.useRef([]),a=s.useContext(T),d=s.useCallback(function(R,b,w){r.current+=1;var W=r.current;i.current.push({size:R,element:b,data:w}),Promise.resolve().then(function(){W===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(R,b,w)},[n,a]);return s.createElement(T.Provider,{value:d},t)}function x(e,t){var n=e.children,r=e.disabled,i=s.useRef(null),a=s.useRef(null),d=s.useContext(T),R=typeof n=="function",b=R?n(i):n,w=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),W=!R&&s.isValidElement(b)&&(0,l.Yr)(b),V=W?b.ref:null,oe=s.useMemo(function(){return(0,l.sQ)(V,i)},[V,i]),Y=function(){return(0,u.Z)(i.current)||(0,u.Z)(a.current)};s.useImperativeHandle(t,function(){return Y()});var X=s.useRef(e);X.current=e;var Q=s.useCallback(function(z){var J=X.current,q=J.onResize,se=J.data,ee=z.getBoundingClientRect(),k=ee.width,G=ee.height,K=z.offsetWidth,U=z.offsetHeight,te=Math.floor(k),ne=Math.floor(G);if(w.current.width!==te||w.current.height!==ne||w.current.offsetWidth!==K||w.current.offsetHeight!==U){var re={width:te,height:ne,offsetWidth:K,offsetHeight:U};w.current=re;var ae=K===Math.round(k)?k:K,ce=U===Math.round(G)?G:U,ie=(0,p.Z)((0,p.Z)({},re),{},{offsetWidth:ae,offsetHeight:ce});d==null||d(ie,z,se),q&&Promise.resolve().then(function(){q(ie,z)})}},[]);return s.useEffect(function(){var z=Y();return z&&!r&&f(z,Q),function(){return v(z,Q)}},[i.current,r]),s.createElement(Z,{ref:a},W?s.cloneElement(b,{ref:oe}):b)}var P=s.forwardRef(x),H=P,j="rc-observer-key";function $(e,t){var n=e.children,r=typeof n=="function"?[n]:(0,h.Z)(n);return r.map(function(i,a){var d=(i==null?void 0:i.key)||"".concat(j,"-").concat(a);return s.createElement(H,(0,g.Z)({},e,{key:d,ref:a===0?t:void 0}),i)})}var O=s.forwardRef($);O.Collection=F;var D=O},50344:function(L,C,o){o.d(C,{Z:function(){return h}});var g=o(62435),s=o(59864);function h(m){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=[];return g.Children.forEach(m,function(u){u==null&&!p.keepEmpty||(Array.isArray(u)?l=l.concat(h(u)):(0,s.isFragment)(u)&&u.props?l=l.concat(h(u.props.children,p)):l.push(u))}),l}},5110:function(L,C){C.Z=function(o){if(!o)return!1;if(o instanceof Element){if(o.offsetParent)return!0;if(o.getBBox){var g=o.getBBox(),s=g.width,h=g.height;if(s||h)return!0}if(o.getBoundingClientRect){var m=o.getBoundingClientRect(),p=m.width,l=m.height;if(p||l)return!0}}return!1}},98423:function(L,C,o){o.d(C,{Z:function(){return s}});var g=o(1413);function s(h,m){var p=(0,g.Z)({},h);return Array.isArray(m)&&m.forEach(function(l){delete p[l]}),p}},91033:function(L,C,o){var g=function(){if(typeof Map!="undefined")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!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,a=this.__entries__;i<a.length;i++){var d=a[i];n.call(r,d[1],d[0])}},t}()}(),s=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,h=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")()}(),m=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(h):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),p=2;function l(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&R()}function d(){m(a)}function R(){var b=Date.now();if(n){if(b-i<p)return;r=!0}else n=!0,r=!1,setTimeout(d,t);i=b}return R}var u=20,A=["top","right","bottom","left","width","height","size","weight"],y=typeof MutationObserver!="undefined",N=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),u)}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(){!s||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),y?(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(){!s||!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=A.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),B=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},c=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||h},E=x(0,0,0,0);function f(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+f(a)},0)}function _(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],d=e["padding-"+a];n[a]=f(d)}return n}function I(e){var t=e.getBBox();return x(0,0,t.width,t.height)}function S(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return E;var r=c(e).getComputedStyle(e),i=_(r),a=i.left+i.right,d=i.top+i.bottom,R=f(r.width),b=f(r.height);if(r.boxSizing==="border-box"&&(Math.round(R+a)!==t&&(R-=v(r,"left","right")+a),Math.round(b+d)!==n&&(b-=v(r,"top","bottom")+d)),!Z(e)){var w=Math.round(R+a)-t,W=Math.round(b+d)-n;Math.abs(w)!==1&&(R-=w),Math.abs(W)!==1&&(b-=W)}return x(i.left,i.top,R,b)}var M=function(){return typeof SVGGraphicsElement!="undefined"?function(e){return e instanceof c(e).SVGGraphicsElement}:function(e){return e instanceof c(e).SVGElement&&typeof e.getBBox=="function"}}();function Z(e){return e===c(e).document.documentElement}function T(e){return s?M(e)?I(e):S(e):E}function F(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,d=Object.create(a.prototype);return B(d,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),d}function x(e,t,n,r){return{x:e,y:t,width:n,height:r}}var P=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=x(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=T(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}(),H=function(){function e(t,n){var r=F(n);B(this,{target:t,contentRect:r})}return e}(),j=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new g,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 c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new P(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 c(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 H(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}(),$=typeof WeakMap!="undefined"?new WeakMap:new g,O=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=N.getInstance(),r=new j(t,n,this);$.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){O.prototype[e]=function(){var t;return(t=$.get(this))[e].apply(t,arguments)}});var D=function(){return typeof h.ResizeObserver!="undefined"?h.ResizeObserver:O}();C.Z=D}}]);