"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[23],{7023:(e,t,n)=>{n.d(t,{ZP:()=>Y});var r=n(43001),i=n(14347),o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)};function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i=t||n<0||s&&e-f>=o}function v(){var e=U();if(h(e))return y(e);a=setTimeout(v,function(e){var n=t-(e-u);return s?I(n,o-(e-f)):n}(e))}function y(e){return a=void 0,d&&r?p(e):(r=i=void 0,c)}function b(){var e=U(),n=h(e);if(r=arguments,i=this,u=e,n){if(void 0===a)return function(e){return f=e,a=setTimeout(v,t),l?p(e):c}(u);if(s)return clearTimeout(a),a=setTimeout(v,t),p(u)}return void 0===a&&(a=setTimeout(v,t)),c}return t=$(t)||0,F(n)&&(l=!!n.leading,o=(s="maxWait"in n)?q($(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==a&&clearTimeout(a),f=0,r=u=i=a=void 0},b.flush=function(){return void 0===a?c:y(U())},b},V=L,Z=f;var B=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Z(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),V(e,t,{leading:r,maxWait:t,trailing:i})},G=function(e,t,n,r){switch(t){case"debounce":return L(e,n,r);case"throttle":return B(e,n,r);default:return e}},J=function(e){return"function"==typeof e},K=function(){return"undefined"==typeof window},Q=function(e){return e instanceof Element||e instanceof HTMLDocument},X=function(e,t,n,r){return function(i){var o=i.width,c=i.height;t((function(t){return t.width===o&&t.height===c||t.width===o&&!r||t.height===c&&!n?t:(e&&J(e)&&e(o,c),{width:o,height:c})}))}},Y=function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!K()){t&&t.current&&(n.targetRef.current=t.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(K())return null;if(t)return document.querySelector(t);if(r&&Q(r))return r;if(n.targetRef&&Q(n.targetRef.current))return n.targetRef.current;var o=(0,i.findDOMNode)(n);if(!o)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,i=void 0===r||r,o=t.handleHeight,c=void 0===o||o,a=t.onResize;if(i||c){var u=X(a,n.setState.bind(n),i,c);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!K()&&u({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,i=e.children;return J(t)?"renderProp":J(i)?"childFunction":(0,r.isValidElement)(i)?"child":Array.isArray(i)?"childArray":"parent"};var o=t.skipOnMount,c=t.refreshMode,a=t.refreshRate,u=void 0===a?1e3:a,f=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=o,n.targetRef=(0,r.createRef)(),n.observableElement=null,K()||(n.resizeHandler=G(n.createResizeHandler,c,u,f),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return c(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){K()||(this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,n=t.render,i=t.children,o=t.nodeType,c=void 0===o?"div":o,u=this.state,f={width:u.width,height:u.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(f);case"childFunction":return(e=i)(f);case"child":if((e=i).type&&"string"==typeof e.type){var l=a(f,["targetRef"]);return(0,r.cloneElement)(e,l)}return(0,r.cloneElement)(e,f);case"childArray":return(e=i).map((function(e){return!!e&&(0,r.cloneElement)(e,f)}));default:return r.createElement(c,null)}},t}(r.PureComponent);K()?r.useEffect:r.useLayoutEffect}}]); //# sourceMappingURL=23.bundle.8fdf916770f44e0ecae2.js.map