"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[48555],{48555:function(t,e,n){n.d(e,{Z:function(){return E}});var r=n(87462),i=n(67294),o=n(50344),s=(n(80334),n(1413)),c=n(42550),u=n(34203),a=n(91033),h=new Map;var f=new a.Z((function(t){t.forEach((function(t){var e,n=t.target;null===(e=h.get(n))||void 0===e||e.forEach((function(t){return t(n)}))}))}));var d=n(15671),l=n(43144),v=n(60136),p=n(51630),_=function(t){(0,v.Z)(n,t);var e=(0,p.Z)(n);function n(){return(0,d.Z)(this,n),e.apply(this,arguments)}return(0,l.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component),b=i.createContext(null);function m(t,e){var n=t.children,r=t.disabled,o=i.useRef(null),a=i.useRef(null),d=i.useContext(b),l="function"==typeof n,v=l?n(o):n,p=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!l&&i.isValidElement(v)&&(0,c.Yr)(v),y=m?v.ref:null,g=i.useMemo((function(){return(0,c.sQ)(y,o)}),[y,o]),w=function(){return(0,u.Z)(o.current)||(0,u.Z)(a.current)};i.useImperativeHandle(e,(function(){return w()}));var E=i.useRef(t);E.current=t;var O=i.useCallback((function(t){var e=E.current,n=e.onResize,r=e.data,i=t.getBoundingClientRect(),o=i.width,c=i.height,u=t.offsetWidth,a=t.offsetHeight,h=Math.floor(o),f=Math.floor(c);if(p.current.width!==h||p.current.height!==f||p.current.offsetWidth!==u||p.current.offsetHeight!==a){var l={width:h,height:f,offsetWidth:u,offsetHeight:a};p.current=l;var v=u===Math.round(o)?o:u,_=a===Math.round(c)?c:a,b=(0,s.Z)((0,s.Z)({},l),{},{offsetWidth:v,offsetHeight:_});null==d||d(b,t,r),n&&Promise.resolve().then((function(){n(b,t)}))}}),[]);return i.useEffect((function(){var t,e,n=w();return n&&!r&&(t=n,e=O,h.has(t)||(h.set(t,new Set),f.observe(t)),h.get(t).add(e)),function(){return function(t,e){h.has(t)&&(h.get(t).delete(e),h.get(t).size||(f.unobserve(t),h.delete(t)))}(n,O)}}),[o.current,r]),i.createElement(_,{ref:a},m?i.cloneElement(v,{ref:g}):v)}var y=i.forwardRef(m);function g(t,e){var n=t.children;return("function"==typeof n?[n]:(0,o.Z)(n)).map((function(n,o){var s=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return i.createElement(y,(0,r.Z)({},t,{key:s,ref:0===o?e:void 0}),n)}))}var w=i.forwardRef(g);w.Collection=function(t){var e=t.children,n=t.onBatchResize,r=i.useRef(0),o=i.useRef([]),s=i.useContext(b),c=i.useCallback((function(t,e,i){r.current+=1;var c=r.current;o.current.push({size:t,element:e,data:i}),Promise.resolve().then((function(){c===r.current&&(null==n||n(o.current),o.current=[])})),null==s||s(t,e,i)}),[n,s]);return i.createElement(b.Provider,{value:c},e)};var E=w},50344:function(t,e,n){n.d(e,{Z:function(){return o}});var r=n(67294),i=n(59864);function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(t,(function(t){(null!=t||e.keepEmpty)&&(Array.isArray(t)?n=n.concat(o(t)):(0,i.isFragment)(t)&&t.props?n=n.concat(o(t.props.children,e)):n.push(t))})),n}},80334:function(t,e,n){n.d(e,{Kp:function(){return i}});var r={};function i(t,e){0}function o(t,e,n){e||r[n]||(t(!1,n),r[n]=!0)}e.ZP=function(t,e){o(i,t,e)}},91033:function(t,e,n){var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(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)},t.prototype.disconnect_=function(){i&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;c.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),E="undefined"!=typeof WeakMap?new WeakMap:new r,O=function t(e){if(!(this instanceof t))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=a.getInstance(),r=new w(e,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){O.prototype[t]=function(){var e;return(e=E.get(this))[t].apply(e,arguments)}}));var M=void 0!==o.ResizeObserver?o.ResizeObserver:O;e.Z=M}}]);