(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5611],{87138:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(231),o=n.n(r)},16463:function(e,t,n){"use strict";var r=n(71169);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}})},844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});let r=n(18157),o=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return(0,r.normalizePathTrailingSlash)(n(56832).b(e,...o))};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},83112:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n(81892).D(...t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25944:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});let r=n(18157);function o(e,t,o,i){{let a=n(56474).normalizeLocalePath,u=n(83112).detectDomainLocale,s=t||a(e,o).detectedLocale,l=u(i,void 0,s);if(l){let t="http"+(l.http?"":"s")+"://",n=s===l.defaultLocale?"":"/"+s;return""+t+l.domain+(0,r.normalizePathTrailingSlash)(""+n+e)}return!1}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},231:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=n(99920),o=n(57437),i=r._(n(2265)),a=n(98016),u=n(18029),s=n(41142),l=n(43461),c=n(844),f=n(60291),p=n(44467),d=n(53106),h=n(25944),v=n(4897),m=n(51507),y=new Set;function g(e,t,n,r,o,i){if("undefined"!=typeof window&&(i||(0,u.isLocalURL)(t))){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(y.has(o))return;y.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let w=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:y,children:w,prefetch:E=null,passHref:O,replace:k,shallow:M,scroll:x,locale:C,onClick:P,onMouseEnter:S,onTouchStart:T,legacyBehavior:_=!1,...R}=e;n=w,_&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let N=i.default.useContext(f.RouterContext),L=i.default.useContext(p.AppRouterContext),A=null!=N?N:L,j=!N,D=!1!==E,H=null===E?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:I,as:V}=i.default.useMemo(()=>{if(!N){let e=b(s);return{href:e,as:y?b(y):e}}let[e,t]=(0,a.resolveHref)(N,s,!0);return{href:e,as:y?(0,a.resolveHref)(N,y):t||e}},[N,s,y]),F=i.default.useRef(I),U=i.default.useRef(V);_&&(r=i.default.Children.only(n));let B=_?r&&"object"==typeof r&&r.ref:t,[W,z,K]=(0,d.useIntersection)({rootMargin:"200px"}),Y=i.default.useCallback(e=>{(U.current!==V||F.current!==I)&&(K(),U.current=V,F.current=I),W(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[V,B,I,K,W]);i.default.useEffect(()=>{A&&z&&D&&g(A,I,V,{locale:C},{kind:H},j)},[V,I,z,C,D,null==N?void 0:N.locale,A,j,H]);let G={ref:Y,onClick(e){_||"function"!=typeof P||P(e),_&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),A&&!e.defaultPrevented&&function(e,t,n,r,o,a,s,l,c){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,u.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:l,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};c?i.default.startTransition(p):p()}(e,A,I,V,k,M,x,C,j)},onMouseEnter(e){_||"function"!=typeof S||S(e),_&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),A&&(D||!j)&&g(A,I,V,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:H},j)},onTouchStart:function(e){_||"function"!=typeof T||T(e),_&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),A&&(D||!j)&&g(A,I,V,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:H},j)}};if((0,l.isAbsoluteUrl)(V))G.href=V;else if(!_||O||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==N?void 0:N.locale,t=(null==N?void 0:N.isLocaleDomain)&&(0,h.getDomainLocale)(V,e,null==N?void 0:N.locales,null==N?void 0:N.domainLocales);G.href=t||(0,v.addBasePath)((0,c.addLocale)(V,e,null==N?void 0:N.defaultLocale))}return _?i.default.cloneElement(r,G):(0,o.jsx)("a",{...R,...G,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56474:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});let r=(e,t)=>n(63578).h(e,t);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(18323),o=n(41142),i=n(45519),a=n(43461),u=n(18157),s=n(18029),l=n(59195),c=n(80020);function f(e,t,n){let f;let p="string"==typeof t?t:(0,o.formatWithValidation)(t),d=p.match(/^[a-zA-Z]{1,}:\/\//),h=d?p.slice(d[0].length):p;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+p+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(h);p=(d?d[0]:"")+t}if(!(0,s.isLocalURL)(p))return n?[p]:p;try{f=new URL(p.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(p,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,l.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(n,u)}))}let a=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[p]:p}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53106:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(2265),o=n(49189),i="function"==typeof IntersectionObserver,a=new Map,u=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,l=s||!i,[c,f]=(0,r.useState)(!1),p=(0,r.useRef)(null),d=(0,r.useCallback)(e=>{p.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(l||c)return;let e=p.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=u.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},u.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=u.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&u.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[l,n,t,c,p.current]),[d,c,(0,r.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81943:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},81892:function(e,t){"use strict";function n(e,t,n){if(e)for(let i of(n&&(n=n.toLowerCase()),e)){var r,o;if(t===(null==(r=i.domain)?void 0:r.split(":",1)[0].toLowerCase())||n===i.defaultLocale.toLowerCase()||(null==(o=i.locales)?void 0:o.some(e=>e.toLowerCase()===n)))return i}}Object.defineProperty(t,"D",{enumerable:!0,get:function(){return n}})},63578:function(e,t){"use strict";function n(e,t){let n;let r=e.split("/");return(t||[]).some(t=>!!r[1]&&r[1].toLowerCase()===t.toLowerCase()&&(n=t,r.splice(1,1),e=r.join("/")||"/",!0)),{pathname:e,detectedLocale:n}}Object.defineProperty(t,"h",{enumerable:!0,get:function(){return n}})},60291:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(99920)._(n(2265)).default.createContext(null)},56832:function(e,t,n){"use strict";Object.defineProperty(t,"b",{enumerable:!0,get:function(){return i}});let r=n(22707),o=n(55121);function i(e,t,n,i){if(!t||t===n)return e;let a=e.toLowerCase();return!i&&((0,o.pathHasPrefix)(a,"/api")||(0,o.pathHasPrefix)(a,"/"+t.toLowerCase()))?e:(0,r.addPathPrefix)(e,"/"+t)}},41142:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return a}});let r=n(41452)._(n(18323)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",u=e.hash||"",s=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:n&&(l=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(l+=":"+e.port)),s&&"object"==typeof s&&(s=String(r.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==l?(l="//"+(l||""),a&&"/"!==a[0]&&(a="/"+a)):l||(l=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+i+l+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},59195:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(49089),o=n(28083)},80020:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return i}});let r=n(41533),o=n(63169);function i(e,t,n){let i="",a=(0,o.getRouteRegex)(e),u=a.groups,s=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;i=e;let l=Object.keys(u);return l.every(e=>{let t=s[e]||"",{repeat:n,optional:r}=u[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in s)&&(i=i.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:l,result:i}}},28083:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let r=n(82269),o=/\/\[[^/]+?\](?=\/|$)/;function i(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},18029:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(43461),o=n(49404);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},45519:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},18323:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},41533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(43461);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>i(e)):t.repeat?[i(r)]:i(r))}),a}}},63169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return p},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return s}});let r=n(82269),o=n(81943),i=n(67741);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function u(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),n={},u=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:r,repeat:s}=a(i[1]);return n[e]={pos:u++,repeat:s,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(i[1]);return n[e]={pos:u++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function s(e){let{parameterizedRoute:t,groups:n}=u(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function l(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:u}=e,{key:s,optional:l,repeat:c}=a(r),f=s.replace(/\W/g,"");u&&(f=""+u+f);let p=!1;(0===f.length||f.length>30)&&(p=!0),isNaN(parseInt(f.slice(0,1)))||(p=!0),p&&(f=n()),u?i[f]=""+u+s:i[f]=s;let d=t?(0,o.escapeStringRegexp)(t):"";return c?l?"(?:/"+d+"(?<"+f+">.+?))?":"/"+d+"(?<"+f+">.+?)":"/"+d+"(?<"+f+">[^/]+?)"}function c(e,t){let n;let a=(0,i.removeTrailingSlash)(e).slice(1).split("/"),u=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),s={};return{namedParameterizedRoute:a.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&i){let[n]=e.split(i[0]);return l({getSafeRouteKey:u,interceptionMarker:n,segment:i[1],routeKeys:s,keyPrefix:t?"nxtI":void 0})}return i?l({getSafeRouteKey:u,segment:i[1],routeKeys:s,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:s}}function f(e,t){let n=c(e,t);return{...s(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function p(e,t){let{parameterizedRoute:n}=u(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},49089:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function i(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},43461:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return g},MissingStaticPage:function(){return y},NormalizeError:function(){return v},PageNotFoundError:function(){return m},SP:function(){return p},ST:function(){return d},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return s},getLocationOrigin:function(){return a},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return l},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return n||(n=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function u(){let{href:e}=window.location,t=a();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function l(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&l(n))return r;if(!r)throw Error('"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let p="undefined"!=typeof performance,d=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class v extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class g extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},2822:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function v(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){var t=h();return function(){var n,o=d(e);return n=t?Reflect.construct(o,arguments,d(this).constructor):o.apply(this,arguments),function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return v(e)}(this,n)}}n.d(t,{e6:function(){return ef}});var y,g,b,w,E,O,k,M,x=n(2265),C={},P=[];function S(e,t){}function T(e,t){}function _(e,t,n){t||C[n]||(e(!1,n),C[n]=!0)}function R(e,t){_(S,e,t)}R.preMessage=function(e){P.push(e)},R.resetWarned=function(){C={}},R.noteOnce=function(e,t){_(T,e,t)};var N=function(e){var t,n,r=e.className,o=e.included,a=e.vertical,s=e.style,l=e.length,c=e.offset,f=e.reverse;l<0&&(f=!f,l=Math.abs(l),c=100-c);var p=a?(i(t={},f?"top":"bottom","".concat(c,"%")),i(t,f?"bottom":"top","auto"),i(t,"height","".concat(l,"%")),t):(i(n={},f?"right":"left","".concat(c,"%")),i(n,f?"left":"right","auto"),i(n,"width","".concat(l,"%")),n),d=u(u({},s),p);return o?x.createElement("div",{className:r,style:d}):null};function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function A(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}}function H(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(){return(I="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}var V=n(54887);function F(e,t,n,r){var o=V.unstable_batchedUpdates?function(e){V.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var U=n(56800),B=n.n(U),W=function(e,t,n,r,o,i){R(!n||r>0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort(function(e,t){return e-t});if(n&&r)for(var u=o;u<=i;u+=r)-1===a.indexOf(u)&&a.push(u);return a},z=function(e){var t=e.prefixCls,n=e.vertical,r=e.reverse,o=e.marks,a=e.dots,s=e.step,l=e.included,c=e.lowerBound,f=e.upperBound,p=e.max,d=e.min,h=e.dotStyle,v=e.activeDotStyle,m=p-d,y=W(n,o,a,s,d,p).map(function(e){var o,a="".concat(Math.abs(e-d)/m*100,"%"),s=!l&&e===f||l&&e<=f&&e>=c,p=n?u(u({},h),{},i({},r?"top":"bottom",a)):u(u({},h),{},i({},r?"right":"left",a));s&&(p=u(u({},p),v));var y=B()((i(o={},"".concat(t,"-dot"),!0),i(o,"".concat(t,"-dot-active"),s),i(o,"".concat(t,"-dot-reverse"),r),o));return x.createElement("span",{className:y,style:p,key:e})});return x.createElement("div",{className:"".concat(t,"-step")},y)},K=function(e){var t=e.className,n=e.vertical,o=e.reverse,a=e.marks,s=e.included,l=e.upperBound,c=e.lowerBound,f=e.max,p=e.min,d=e.onClickLabel,h=Object.keys(a),v=f-p,m=h.map(parseFloat).sort(function(e,t){return e-t}).map(function(e){var f,h=a[e],m="object"===r(h)&&!x.isValidElement(h),y=m?h.label:h;if(!y&&0!==y)return null;var g=B()((i(f={},"".concat(t,"-text"),!0),i(f,"".concat(t,"-text-active"),!s&&e===l||s&&e<=l&&e>=c),f)),b=i({marginBottom:"-50%"},o?"top":"bottom","".concat((e-p)/v*100,"%")),w=i({transform:"translateX(".concat(o?"50%":"-50%",")"),msTransform:"translateX(".concat(o?"50%":"-50%",")")},o?"right":"left","".concat((e-p)/v*100,"%")),E=n?b:w,O=m?u(u({},E),h.style):E;return x.createElement("span",{className:g,style:O,key:e,onMouseDown:function(t){return d(t,e)},onTouchStart:function(t){return d(t,e)}},y)});return x.createElement("div",{className:t},m)},Y=function(e){p(n,e);var t=m(n);function n(){var e;return s(this,n),e=t.apply(this,arguments),e.state={clickFocused:!1},e.setHandleRef=function(t){e.handle=t},e.handleMouseUp=function(){document.activeElement===e.handle&&e.setClickFocus(!0)},e.handleMouseDown=function(t){t.preventDefault(),e.focus()},e.handleBlur=function(){e.setClickFocus(!1)},e.handleKeyDown=function(){e.setClickFocus(!1)},e}return c(n,[{key:"componentDidMount",value:function(){this.onMouseUpListener=F(document,"mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"setClickFocus",value:function(e){this.setState({clickFocused:e})}},{key:"clickFocus",value:function(){this.setClickFocus(!0),this.focus()}},{key:"focus",value:function(){this.handle.focus()}},{key:"blur",value:function(){this.handle.blur()}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.prefixCls,a=r.vertical,s=r.reverse,l=r.offset,c=r.style,f=r.disabled,p=r.min,d=r.max,h=r.value,v=r.tabIndex,m=r.ariaLabel,y=r.ariaLabelledBy,g=r.ariaValueTextFormatter,b=A(r,["prefixCls","vertical","reverse","offset","style","disabled","min","max","value","tabIndex","ariaLabel","ariaLabelledBy","ariaValueTextFormatter"]),w=B()(this.props.className,i({},"".concat(o,"-handle-click-focused"),this.state.clickFocused)),E=a?(i(e={},s?"top":"bottom","".concat(l,"%")),i(e,s?"bottom":"top","auto"),i(e,"transform",s?null:"translateY(+50%)"),e):(i(t={},s?"right":"left","".concat(l,"%")),i(t,s?"left":"right","auto"),i(t,"transform","translateX(".concat(s?"+":"-","50%)")),t),O=u(u({},c),E),k=v||0;return(f||null===v)&&(k=null),g&&(n=g(h)),x.createElement("div",L({ref:this.setHandleRef,tabIndex:k},b,{className:w,style:O,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,role:"slider","aria-valuemin":p,"aria-valuemax":d,"aria-valuenow":h,"aria-disabled":!!f,"aria-label":m,"aria-labelledby":y,"aria-valuetext":n}))}}]),n}(x.Component),G={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=G.F1&&t<=G.F12)return!1;switch(t){case G.ALT:case G.CAPS_LOCK:case G.CONTEXT_MENU:case G.CTRL:case G.DOWN:case G.END:case G.ESC:case G.HOME:case G.INSERT:case G.LEFT:case G.MAC_FF_META:case G.META:case G.NUMLOCK:case G.NUM_CENTER:case G.PAGE_DOWN:case G.PAGE_UP:case G.PAUSE:case G.PRINT_SCREEN:case G.RIGHT:case G.SHIFT:case G.UP:case G.WIN_KEY:case G.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=G.ZERO&&e<=G.NINE||e>=G.NUM_ZERO&&e<=G.NUM_MULTIPLY||e>=G.A&&e<=G.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case G.SPACE:case G.QUESTION_MARK:case G.NUM_PLUS:case G.NUM_MINUS:case G.NUM_PERIOD:case G.NUM_DIVISION:case G.SEMICOLON:case G.DASH:case G.EQUALS:case G.COMMA:case G.PERIOD:case G.SLASH:case G.APOSTROPHE:case G.SINGLE_QUOTE:case G.OPEN_SQUARE_BRACKET:case G.BACKSLASH:case G.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function X(e,t){try{return Object.keys(t).some(function(n){return e.target===(0,V.findDOMNode)(t[n])})}catch(e){return!1}}function $(e,t){var n=t.min,r=t.max;return e<n||e>r}function q(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function Q(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var u=Math.pow(10,Z(r)),s=Math.floor((i*u-o*u)/(r*u)),l=Math.round(Math.min((e-o)/r,s))*r+o;a.push(l)}var c=a.map(function(t){return Math.abs(e-t)});return a[c.indexOf(Math.min.apply(Math,H(c)))]}function Z(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function J(e,t){return e?t.clientY:t.pageX}function ee(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function et(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function en(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function er(e,t){var n=t.step,r=isFinite(Q(e,t))?Q(e,t):0;return null===n?r:parseFloat(r.toFixed(Z(n)))}function eo(e){e.stopPropagation(),e.preventDefault()}function ei(e,t,n){var r="increase",o="decrease",i=r;switch(e.keyCode){case G.UP:i=t&&n?o:r;break;case G.RIGHT:i=!t&&n?o:r;break;case G.DOWN:i=t&&n?r:o;break;case G.LEFT:i=!t&&n?r:o;break;case G.END:return function(e,t){return t.max};case G.HOME:return function(e,t){return t.min};case G.PAGE_UP:return function(e,t){return e+2*t.step};case G.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){var n,r,o,a;return n=i,o=(r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}})[n](Object.keys(t.marks).indexOf(JSON.stringify(e)),1),a=Object.keys(t.marks)[o],t.step?r[n](e,t.step):Object.keys(t.marks).length&&t.marks[a]?t.marks[a]:e}}function ea(){}function eu(e){var t;return(t=function(e){p(n,e);var t=m(n);function n(e){s(this,n),(r=t.call(this,e)).onDown=function(e,t){var n=t,o=r.props,i=o.draggableTrack,a=o.vertical,u=r.state.bounds,s=i&&r.positionGetValue&&r.positionGetValue(n)||[],l=X(e,r.handlesRefs);if(r.dragTrack=i&&u.length>=2&&!l&&!s.map(function(e,t){var n=!!t||e>=u[t];return t===s.length-1?e<=u[t]:n}).some(function(e){return!e}),r.dragTrack)r.dragOffset=n,r.startBounds=H(u);else{if(l){var c=et(a,e.target);r.dragOffset=n-c,n=c}else r.dragOffset=0;r.onStart(n)}},r.onMouseDown=function(e){if(0===e.button){r.removeDocumentEvents();var t=J(r.props.vertical,e);r.onDown(e,t),r.addDocumentMouseEvents()}},r.onTouchStart=function(e){if(!q(e)){var t=ee(r.props.vertical,e);r.onDown(e,t),r.addDocumentTouchEvents(),eo(e)}},r.onFocus=function(e){var t=r.props,n=t.onFocus,o=t.vertical;if(X(e,r.handlesRefs)&&!r.dragTrack){var i=et(o,e.target);r.dragOffset=0,r.onStart(i),eo(e),n&&n(e)}},r.onBlur=function(e){var t=r.props.onBlur;r.dragTrack||r.onEnd(),t&&t(e)},r.onMouseUp=function(){r.handlesRefs[r.prevMovedHandleIndex]&&r.handlesRefs[r.prevMovedHandleIndex].clickFocus()},r.onMouseMove=function(e){if(!r.sliderRef){r.onEnd();return}var t=J(r.props.vertical,e);r.onMove(e,t-r.dragOffset,r.dragTrack,r.startBounds)},r.onTouchMove=function(e){if(q(e)||!r.sliderRef){r.onEnd();return}var t=ee(r.props.vertical,e);r.onMove(e,t-r.dragOffset,r.dragTrack,r.startBounds)},r.onKeyDown=function(e){r.sliderRef&&X(e,r.handlesRefs)&&r.onKeyboard(e)},r.onClickMarkLabel=function(e,t){e.stopPropagation(),r.onChange({value:t}),r.setState({value:t},function(){return r.onEnd(!0)})},r.saveSlider=function(e){r.sliderRef=e};var r,o=e.step,i=e.max,a=e.min,u=!isFinite(i-a)||(i-a)%o==0;return R(!o||Math.floor(o)!==o||u,"Slider[max] - Slider[min] (".concat(i-a,") should be a multiple of Slider[step] (").concat(o,")")),r.handlesRefs={},r}return c(n,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){I(d(n.prototype),"componentWillUnmount",this)&&I(d(n.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=F(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=F(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=F(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=F(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){var e;this.props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach(function(t){var n,r;null===(n=e.handlesRefs[t])||void 0===n||null===(r=n.blur)||void 0===r||r.call(n)})}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min;return Math.max(0,(e-n)/(t.max-n)*100)}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,t=this.props,r=t.prefixCls,o=t.className,a=t.marks,s=t.dots,l=t.step,c=t.included,f=t.disabled,p=t.vertical,h=t.reverse,v=t.min,m=t.max,y=t.children,g=t.maximumTrackStyle,b=t.style,w=t.railStyle,E=t.dotStyle,O=t.activeDotStyle,k=I(d(n.prototype),"render",this).call(this),M=k.tracks,C=k.handles,P=B()(r,(i(e={},"".concat(r,"-with-marks"),Object.keys(a).length),i(e,"".concat(r,"-disabled"),f),i(e,"".concat(r,"-vertical"),p),i(e,o,o),e));return x.createElement("div",{ref:this.saveSlider,className:P,onTouchStart:f?ea:this.onTouchStart,onMouseDown:f?ea:this.onMouseDown,onMouseUp:f?ea:this.onMouseUp,onKeyDown:f?ea:this.onKeyDown,onFocus:f?ea:this.onFocus,onBlur:f?ea:this.onBlur,style:b},x.createElement("div",{className:"".concat(r,"-rail"),style:u(u({},g),w)}),M,x.createElement(z,{prefixCls:r,vertical:p,reverse:h,marks:a,dots:s,step:l,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:m,min:v,dotStyle:E,activeDotStyle:O}),C,x.createElement(K,{className:"".concat(r,"-mark"),onClickLabel:f?ea:this.onClickMarkLabel,vertical:p,marks:a,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:m,min:v,reverse:h}),y)}}]),n}(e)).displayName="ComponentEnhancer(".concat(e.displayName,")"),t.defaultProps=u(u({},e.defaultProps),{},{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=A(e,["index"]);return(delete n.dragging,null===n.value)?null:x.createElement(Y,L({},n,{key:t}))},onBeforeChange:ea,onChange:ea,onAfterChange:ea,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),t}var es=eu(function(e){p(n,e);var t=m(n);function n(e){s(this,n),(r=t.call(this,e)).positionGetValue=function(e){return[]},r.onEnd=function(e){var t=r.state.dragging;r.removeDocumentEvents(),(t||e)&&r.props.onAfterChange(r.getValue()),r.setState({dragging:!1})};var r,o=void 0!==e.defaultValue?e.defaultValue:e.min,i=void 0!==e.value?e.value:o;return r.state={value:r.trimAlignValue(i),dragging:!1},R(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),R(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),r}return c(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.min,o=n.max,i=n.value,a=n.onChange;if("min"in this.props||"max"in this.props){var u=void 0!==i?i:t.value,s=this.trimAlignValue(u,this.props);s!==t.value&&(this.setState({value:s}),!(r===e.min&&o===e.max)&&$(u,this.props)&&a(s))}}},{key:"onChange",value:function(e){var t=this.props,n=e.value>this.props.max?u(u({},e),{},{value:this.props.max}):e;"value"in t||this.setState(n);var r=n.value;t.onChange(r)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){eo(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=ei(e,t.vertical,n);if(r){eo(e);var o=this.state.value,i=r(o,this.props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({value:a}),this.props.onAfterChange(a),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){var e=this.props.startPoint||this.props.min;return this.state.value>e?e:this.state.value}},{key:"getUpperBound",value:function(){return this.state.value<this.props.startPoint?this.props.startPoint:this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=u(u({},this.props),t);return er(en(e,n),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.vertical,o=t.included,i=t.disabled,a=t.minimumTrackStyle,s=t.trackStyle,l=t.handleStyle,c=t.tabIndex,f=t.ariaLabelForHandle,p=t.ariaLabelledByForHandle,d=t.ariaValueTextFormatterForHandle,h=t.min,v=t.max,m=t.startPoint,y=t.reverse,g=t.handle,b=this.state,w=b.value,E=b.dragging,O=this.calcOffset(w),k=g({className:"".concat(n,"-handle"),prefixCls:n,vertical:r,offset:O,value:w,dragging:E,disabled:i,min:h,max:v,reverse:y,index:0,tabIndex:c,ariaLabel:f,ariaLabelledBy:p,ariaValueTextFormatter:d,style:l[0]||l,ref:function(t){return e.saveHandle(0,t)}}),M=void 0!==m?this.calcOffset(m):0,C=s[0]||s;return{tracks:x.createElement(N,{className:"".concat(n,"-track"),vertical:r,included:o,offset:M,reverse:y,length:O-M,style:u(u({},a),C)}),handles:k}}}]),n}(x.Component)),el=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=Number(o.pushable),u=en(t,o),s=u;return!i&&null!=n&&void 0!==r&&(n>0&&u<=r[n-1]+a&&(s=r[n-1]+a),n<r.length-1&&u>=r[n+1]-a&&(s=r[n+1]-a)),er(s,o)},ec=function(e){p(n,e);var t=m(n);function n(e){s(this,n),(r=t.call(this,e)).positionGetValue=function(e){var t=r.getValue(),n=r.calcValueByPos(e),o=r.getClosestBound(n),i=r.getBoundNeedMoving(n,o);if(n===t[i])return null;var a=H(t);return a[i]=n,a},r.onEnd=function(e){var t=r.state.handle;r.removeDocumentEvents(),t||(r.dragTrack=!1),(null!==t||e)&&r.props.onAfterChange(r.getValue()),r.setState({handle:null})};var r,o=e.count,i=e.min,a=e.max,u=Array.apply(void 0,H(Array(o+1))).map(function(){return i}),l="defaultValue"in e?e.defaultValue:u,c=(void 0!==e.value?e.value:l).map(function(t,n){return el({value:t,handle:n,props:e})}),f=c[0]===a?0:c.length-1;return r.state={handle:null,recent:f,bounds:c},r}return c(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"getSliderLength",value:function(){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.onChange,i=r.value,a=r.min,u=r.max;if(("min"in this.props||"max"in this.props)&&(a!==e.min||u!==e.max)){var s=i||t.bounds;s.some(function(e){return $(e,n.props)})&&o(s.map(function(e){return en(e,n.props)}))}}},{key:"onChange",value:function(e){var t=this.props;if("value"in t){var n={};["handle","recent"].forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),Object.keys(n).length&&this.setState(n)}else this.setState(e);var r=u(u({},this.state),e).bounds;t.onChange(r)}},{key:"onStart",value:function(e){var t=this.props,n=this.state,r=this.getValue();t.onBeforeChange(r);var o=this.calcValueByPos(e);this.startValue=o,this.startPosition=e;var i=this.getClosestBound(o);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(o,i),this.setState({handle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),o!==r[this.prevMovedHandleIndex]){var a=H(n.bounds);a[this.prevMovedHandleIndex]=o,this.onChange({bounds:a})}}},{key:"onMove",value:function(e,t,n,r){eo(e);var o=this.state,i=this.props,a=i.max||100,u=i.min||0;if(n){var s=i.vertical?-t:t;s=i.reverse?-s:s;var l=a-Math.max.apply(Math,H(r)),c=u-Math.min.apply(Math,H(r)),f=Math.min(Math.max(s/(this.getSliderLength()/(a-u)),c),l),p=r.map(function(e){return Math.floor(Math.max(Math.min(e+f,a),u))});o.bounds.map(function(e,t){return e===p[t]}).some(function(e){return!e})&&this.onChange({bounds:p});return}var d=this.calcValueByPos(t);d!==o.bounds[o.handle]&&this.moveTo(d)}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=ei(e,t.vertical,n);if(r){eo(e);var o=this.state,i=this.props,a=o.bounds,u=o.handle,s=a[null===u?o.recent:u],l=el({value:r(s,i),handle:u,bounds:o.bounds,props:i});if(l===s)return;this.moveTo(l,!0)}}},{key:"getValue",value:function(){return this.state.bounds}},{key:"getClosestBound",value:function(e){for(var t=this.state.bounds,n=0,r=1;r<t.length-1;r+=1)e>=t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n}},{key:"getBoundNeedMoving",value:function(e,t){var n=this.state,r=n.bounds,o=n.recent,i=t,a=r[t+1]===r[t];return a&&r[o]===r[t]&&(i=o),a&&e!==r[t+1]&&(i=e<r[t+1]?t:t+1),i}},{key:"getLowerBound",value:function(){return this.state.bounds[0]}},{key:"getUpperBound",value:function(){var e=this.state.bounds;return e[e.length-1]}},{key:"getPoints",value:function(){var e=this.props,t=e.marks,n=e.step,r=e.min,o=e.max,i=this.internalPointsCache;if(!i||i.marks!==t||i.step!==n){var a=u({},t);if(null!==n)for(var s=r;s<=o;s+=n)a[s]=s;var l=Object.keys(a).map(parseFloat);l.sort(function(e,t){return e-t}),this.internalPointsCache={marks:t,step:n,points:l}}return this.internalPointsCache.points}},{key:"moveTo",value:function(e,t){var n=this,r=this.state,o=this.props,i=H(r.bounds),a=null===r.handle?r.recent:r.handle;i[a]=e;var u=a;!1!==o.pushable?this.pushSurroundingHandles(i,u):o.allowCross&&(i.sort(function(e,t){return e-t}),u=i.indexOf(e)),this.onChange({recent:u,handle:u,bounds:i}),t&&(this.props.onAfterChange(i),this.setState({},function(){n.handlesRefs[u].focus()}),this.onEnd())}},{key:"pushSurroundingHandles",value:function(e,t){var n=e[t],r=Number(this.props.pushable),o=0;if(e[t+1]-n<r&&(o=1),n-e[t-1]<r&&(o=-1),0!==o){var i=t+o,a=o*(e[i]-n);this.pushHandle(e,i,o,r-a)||(e[t]=e[i]-o*r)}}},{key:"pushHandle",value:function(e,t,n,r){for(var o=e[t],i=e[t];n*(i-o)<r;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=o,!1;i=e[t]}return!0}},{key:"pushHandleOnePoint",value:function(e,t,n){var r=this.getPoints(),o=r.indexOf(e[t])+n;if(o>=r.length||o<0)return!1;var i=t+n,a=r[o],u=Number(this.props.pushable),s=n*(e[i]-a);return!!this.pushHandle(e,i,n,u-s)&&(e[t]=a,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state;return el({value:e,handle:t.handle,bounds:t.bounds,props:this.props})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handle,r=t.bounds,o=this.props,a=o.prefixCls,u=o.vertical,s=o.included,l=o.disabled,c=o.min,f=o.max,p=o.reverse,d=o.handle,h=o.trackStyle,v=o.handleStyle,m=o.tabIndex,y=o.ariaLabelGroupForHandles,g=o.ariaLabelledByGroupForHandles,b=o.ariaValueTextFormatterGroupForHandles,w=r.map(function(t){return e.calcOffset(t)}),E="".concat(a,"-handle"),O=r.map(function(t,r){var o,s=m[r]||0;(l||null===m[r])&&(s=null);var h=n===r;return d({className:B()((i(o={},E,!0),i(o,"".concat(E,"-").concat(r+1),!0),i(o,"".concat(E,"-dragging"),h),o)),prefixCls:a,vertical:u,dragging:h,offset:w[r],value:t,index:r,tabIndex:s,min:c,max:f,reverse:p,disabled:l,style:v[r],ref:function(t){return e.saveHandle(r,t)},ariaLabel:y[r],ariaLabelledBy:g[r],ariaValueTextFormatter:b[r]})});return{tracks:r.slice(0,-1).map(function(e,t){var n,r=t+1,o=B()((i(n={},"".concat(a,"-track"),!0),i(n,"".concat(a,"-track-").concat(r),!0),n));return x.createElement(N,{className:o,vertical:u,reverse:p,included:s,offset:w[r-1],length:w[r]-w[r-1],style:h[t],key:r})}),handles:O}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(!("value"in e||"min"in e||"max"in e))return null;var n=e.value||t.bounds,r=n.map(function(n,r){return el({value:n,handle:r,bounds:t.bounds,props:e})});if(t.bounds.length===r.length){if(r.every(function(e,n){return e===t.bounds[n]}))return null}else r=n.map(function(t,n){return el({value:t,handle:n,props:e})});return u(u({},t),{},{bounds:r})}}]),n}(x.Component);ec.displayName="Range",ec.defaultProps={count:1,allowCross:!0,pushable:!1,draggableTrack:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};var ef=eu(ec),ep=function(e){return+setTimeout(e,16)},ed=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ep=function(e){return window.requestAnimationFrame(e)},ed=function(e){return window.cancelAnimationFrame(e)});var eh=0,ev=new Map,em=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=eh+=1;return!function t(r){if(0===r)ev.delete(n),e();else{var o=ep(function(){t(r-1)});ev.set(n,o)}}(t),n};function ey(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}function eg(e){return e instanceof HTMLElement||e instanceof SVGElement?e:e instanceof x.Component?V.findDOMNode(e):null}em.cancel=function(e){var t=ev.get(e);return ev.delete(e),ed(t)};var eb=n(29553),ew=function(e,t){"function"==typeof e?e(t):"object"===r(e)&&e&&"current"in e&&(e.current=t)},eE=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){ew(t,e)})}},eO=function(e){var t,n,r=(0,eb.isMemo)(e)?e.type.type:e.type;return("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&!!t.render||r.$$typeof===eb.ForwardRef)&&("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&!!n.render||e.$$typeof===eb.ForwardRef)};function ek(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}var eM=(0,x.forwardRef)(function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,i=(0,x.useRef)(),a=(0,x.useRef)();(0,x.useImperativeHandle)(t,function(){return{}});var u=(0,x.useRef)(!1);return!u.current&&ek()&&(a.current=r(),i.current=a.current.parentNode,u.current=!0),(0,x.useEffect)(function(){null==n||n(e)}),(0,x.useEffect)(function(){return null===a.current.parentNode&&null!==i.current&&i.current.appendChild(a.current),function(){var e;null===(e=a.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(a.current)}},[]),a.current?V.createPortal(o,a.current):null});function ex(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||D(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var eC=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},eP=x.createContext({}),eS=function(e){p(n,e);var t=m(n);function n(){return s(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){return this.props.children}}]),n}(x.Component);function eT(e){var t=x.useRef(!1),n=ex(x.useState(e),2),r=n[0],o=n[1];return x.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[r,function(e,n){n&&t.current||o(e)}]}var e_="none",eR="appear",eN="enter",eL="leave",eA="none",ej="prepare",eD="start",eH="active",eI="prepared";function eV(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var eF=(y=ek(),g="undefined"!=typeof window?window:{},b={animationend:eV("Animation","AnimationEnd"),transitionend:eV("Transition","TransitionEnd")},!y||("AnimationEvent"in g||delete b.animationend.animation,"TransitionEvent"in g||delete b.transitionend.transition),b),eU={};ek()&&(eU=document.createElement("div").style);var eB={};function eW(e){if(eB[e])return eB[e];var t=eF[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in eU)return eB[e]=t[i],eB[e]}return""}var ez=eW("animationend"),eK=eW("transitionend"),eY=!!(ez&&eK),eG=ez||"animationend",eX=eK||"transitionend";function e$(e,t){return e?"object"===r(e)?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:"".concat(e,"-").concat(t):null}var eq=function(e){var t=(0,x.useRef)(),n=(0,x.useRef)(e);n.current=e;var r=x.useCallback(function(e){n.current(e)},[]);function o(e){e&&(e.removeEventListener(eX,r),e.removeEventListener(eG,r))}return x.useEffect(function(){return function(){o(t.current)}},[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(eX,r),e.addEventListener(eG,r),t.current=e)},o]},eQ=ek()?x.useLayoutEffect:x.useEffect,eZ=function(){var e=x.useRef(null);function t(){em.cancel(e.current)}return x.useEffect(function(){return function(){t()}},[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=em(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]},eJ=[ej,eD,eH,"end"],e0=[ej,eI];function e1(e){return e===eH||"end"===e}var e2=function(e,t,n){var r=ex(eT(eA),2),o=r[0],i=r[1],a=ex(eZ(),2),u=a[0],s=a[1],l=t?e0:eJ;return eQ(function(){if(o!==eA&&"end"!==o){var e=l.indexOf(o),t=l[e+1],r=n(o);!1===r?i(t,!0):t&&u(function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,o]),x.useEffect(function(){return function(){s()}},[]),[function(){i(ej,!0)},o]},e5=(w=eY,"object"===r(eY)&&(w=eY.transitionSupport),(E=x.forwardRef(function(e,t){var n=e.visible,r=void 0===n||n,o=e.removeOnLeave,a=void 0===o||o,s=e.forceRender,l=e.children,c=e.motionName,f=e.leavedClassName,p=e.eventProps,d=x.useContext(eP).motion,h=!!(e.motionName&&w&&!1!==d),v=(0,x.useRef)(),m=(0,x.useRef)(),y=function(e,t,n,r){var o=r.motionEnter,a=void 0===o||o,s=r.motionAppear,l=void 0===s||s,c=r.motionLeave,f=void 0===c||c,p=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,v=r.onEnterPrepare,m=r.onLeavePrepare,y=r.onAppearStart,g=r.onEnterStart,b=r.onLeaveStart,w=r.onAppearActive,E=r.onEnterActive,O=r.onLeaveActive,k=r.onAppearEnd,M=r.onEnterEnd,C=r.onLeaveEnd,P=r.onVisibleChanged,S=ex(eT(),2),T=S[0],_=S[1],R=ex(eT(e_),2),N=R[0],L=R[1],A=ex(eT(null),2),j=A[0],D=A[1],H=(0,x.useRef)(!1),I=(0,x.useRef)(null),V=(0,x.useRef)(!1);function F(){L(e_,!0),D(null,!0)}function U(e){var t,r=n();if(!e||e.deadline||e.target===r){var o=V.current;N===eR&&o?t=null==k?void 0:k(r,e):N===eN&&o?t=null==M?void 0:M(r,e):N===eL&&o&&(t=null==C?void 0:C(r,e)),N!==e_&&o&&!1!==t&&F()}}var B=ex(eq(U),1)[0],W=function(e){var t,n,r;switch(e){case eR:return i(t={},ej,h),i(t,eD,y),i(t,eH,w),t;case eN:return i(n={},ej,v),i(n,eD,g),i(n,eH,E),n;case eL:return i(r={},ej,m),i(r,eD,b),i(r,eH,O),r;default:return{}}},z=x.useMemo(function(){return W(N)},[N]),K=ex(e2(N,!e,function(e){if(e===ej){var t,r=z[ej];return!!r&&r(n())}return G in z&&D((null===(t=z[G])||void 0===t?void 0:t.call(z,n(),null))||null),G===eH&&(B(n()),p>0&&(clearTimeout(I.current),I.current=setTimeout(function(){U({deadline:!0})},p))),G===eI&&F(),!0}),2),Y=K[0],G=K[1],X=e1(G);V.current=X,eQ(function(){_(t);var n,r=H.current;H.current=!0,!r&&t&&l&&(n=eR),r&&t&&a&&(n=eN),(r&&!t&&f||!r&&d&&!t&&f)&&(n=eL);var o=W(n);n&&(e||o[ej])?(L(n),Y()):L(e_)},[t]),(0,x.useEffect)(function(){(N!==eR||l)&&(N!==eN||a)&&(N!==eL||f)||L(e_)},[l,a,f]),(0,x.useEffect)(function(){return function(){H.current=!1,clearTimeout(I.current)}},[]);var $=x.useRef(!1);(0,x.useEffect)(function(){T&&($.current=!0),void 0!==T&&N===e_&&(($.current||T)&&(null==P||P(T)),$.current=!0)},[T,N]);var q=j;return z[ej]&&G===eD&&(q=u({transition:"none"},q)),[N,G,q,null!=T?T:t]}(h,r,function(){try{return v.current instanceof HTMLElement?v.current:eg(m.current)}catch(e){return null}},e),g=ex(y,4),b=g[0],E=g[1],O=g[2],k=g[3],M=x.useRef(k);k&&(M.current=!0);var C=x.useCallback(function(e){v.current=e,ew(t,e)},[t]),P=u(u({},p),{},{visible:r});if(l){if(b===e_)S=k?l(u({},P),C):!a&&M.current&&f?l(u(u({},P),{},{className:f}),C):!s&&(a||f)?null:l(u(u({},P),{},{style:{display:"none"}}),C);else{E===ej?_="prepare":e1(E)?_="active":E===eD&&(_="start");var S,T,_,R=e$(c,"".concat(b,"-").concat(_));S=l(u(u({},P),{},{className:B()(e$(c,b),(i(T={},R,R&&_),i(T,c,"string"==typeof c),T)),style:O}),C)}}else S=null;return x.isValidElement(S)&&eO(S)&&!S.ref&&(S=x.cloneElement(S,{ref:C})),x.createElement(eS,{ref:m},S)})).displayName="CSSMotion",E),e4="keep",e9="remove",e3="removed";function e8(e){var t;return u(u({},t=e&&"object"===r(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function e6(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(e8)}var e7=["component","children","onVisibleChanged","onAllRemoved"],te=["status"],tt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function tn(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function tr(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,o=e.mask,i=e.maskMotion,a=e.maskAnimation,s=e.maskTransitionName;if(!o)return null;var l={};return(i||s||a)&&(l=u({motionAppear:!0},tn({motion:i,prefixCls:t,transitionName:s,animation:a}))),x.createElement(e5,L({},l,{visible:n,removeOnLeave:!0}),function(e){var n=e.className;return x.createElement("div",{style:{zIndex:r},className:B()("".concat(t,"-mask"),n)})})}function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ta(e){return(ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e5,n=function(e){p(r,e);var n=m(r);function r(){var e;s(this,r);for(var t=arguments.length,o=Array(t),a=0;a<t;a++)o[a]=arguments[a];return i(v(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),i(v(e),"removeKey",function(t){var n=e.state.keyEntities.map(function(e){return e.key!==t?e:u(u({},e),{},{status:e3})});return e.setState({keyEntities:n}),n.filter(function(e){return e.status!==e3}).length}),e}return c(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,s=r.onAllRemoved,l=A(r,e7),c=o||x.Fragment,f={};return tt.forEach(function(e){f[e]=l[e],delete l[e]}),delete l.keys,x.createElement(c,l,n.map(function(n,r){var o=n.status,l=A(n,te);return x.createElement(t,L({},f,{key:l.key,visible:"add"===o||o===e4,eventProps:l,onVisibleChanged:function(t){null==a||a(t,{key:l.key}),!t&&0===e.removeKey(l.key)&&s&&s()}}),function(e,t){return i(u(u({},e),{},{index:r}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities;return{keyEntities:(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=e6(e),a=e6(t);i.forEach(function(e){for(var t=!1,i=r;i<o;i+=1){var s=a[i];if(s.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map(function(e){return u(u({},e),{},{status:"add"})})),r=i),n.push(u(u({},s),{},{status:e4})),r+=1,t=!0;break}}t||n.push(u(u({},e),{},{status:e9}))}),r<o&&(n=n.concat(a.slice(r).map(function(e){return u(u({},e),{},{status:"add"})})));var s={};return n.forEach(function(e){var t=e.key;s[t]=(s[t]||0)+1}),Object.keys(s).filter(function(e){return s[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==e9})).forEach(function(t){t.key===e&&(t.status=e4)})}),n})(r,e6(n)).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==e3||e.status!==e9})}}}]),r}(x.Component);i(n,"defaultProps",{component:"div"})}(eY);var tu={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function ts(){if(void 0!==k)return k;k="";var e=document.createElement("p").style;for(var t in tu)t+"Transform" in e&&(k=t);return k}function tl(){return ts()?"".concat(ts(),"TransitionProperty"):"transitionProperty"}function tc(){return ts()?"".concat(ts(),"Transform"):"transform"}function tf(e,t){var n=tl();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function tp(e,t){var n=tc();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var td=/matrix\((.*)\)/,th=/matrix3d\((.*)\)/,tv=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;function tm(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function ty(e,t,n){var r=n;if("object"===ta(t)){for(var o in t)t.hasOwnProperty(o)&&ty(e,o,t[o]);return}if(void 0!==r){"number"==typeof r&&(r="".concat(r,"px")),e.style[t]=r;return}return M(e,t)}function tg(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function tb(e){var t,n,r,o,i,a,u=(i=(o=e.ownerDocument).body,a=o&&o.documentElement,n=Math.floor((t=e.getBoundingClientRect()).left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}),s=e.ownerDocument,l=s.defaultView||s.parentWindow;return u.left+=tg(l),u.top+=tg(l,!0),u}function tw(e){return null!=e&&e==e.window}function tE(e){return tw(e)?e.document:9===e.nodeType?e:e.ownerDocument}var tO=RegExp("^(".concat(tv,")(?!px)[a-z%]+$"),"i"),tk=/^(top|right|bottom|left)$/,tM="currentStyle",tx="runtimeStyle",tC="left";function tP(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function tS(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function tT(e,t,n){"static"===ty(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=tP("left",n),a=tP("top",n),u=tS(i),s=tS(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var l="",c=tb(e);("left"in t||"top"in t)&&(l=e.style.transitionProperty||e.style[tl()]||"",tf(e,"none")),"left"in t&&(e.style[u]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[s]="",e.style[a]="".concat(o,"px")),tm(e);var f=tb(e),p={};for(var d in t)if(t.hasOwnProperty(d)){var h=tP(d,n),v="left"===d?r:o,m=c[d]-f[d];h===d?p[h]=v+m:p[h]=v-m}ty(e,p),tm(e),("left"in t||"top"in t)&&tf(e,l);var y={};for(var g in t)if(t.hasOwnProperty(g)){var b=tP(g,n),w=t[g]-c[g];g===b?y[b]=p[b]+w:y[b]=p[b]-w}ty(e,y)}function t_(e,t){for(var n=0;n<e.length;n++)t(e[n])}function tR(e){return"border-box"===M(e,"boxSizing")}"undefined"!=typeof window&&(M=window.getComputedStyle?function(e,t,n){var r=n,o="",i=tE(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[tM]&&e[tM][t];if(tO.test(n)&&!tk.test(t)){var r=e.style,o=r[tC],i=e[tx][tC];e[tx][tC]=e[tM][tC],r[tC]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[tC]=o,e[tx][tC]=i}return""===n?"auto":n});var tN=["margin","border","padding"];function tL(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var u=void 0;u="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(M(e,u))||0}return a}var tA={getParent:function(e){var t=e;do t=11===t.nodeType&&t.host?t.host:t.parentNode;while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function tj(e,t,n){var r=n;if(tw(e))return"width"===t?tA.viewportWidth(e):tA.viewportHeight(e);if(9===e.nodeType)return"width"===t?tA.docWidth(e):tA.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=tR(e),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=M(e,t))||0>Number(u))&&(u=e.style[t]||0),u=Math.floor(parseFloat(u))||0),void 0===r&&(r=a?1:-1);var s=void 0!==i||a,l=i||u;return -1===r?s?l-tL(e,["border","padding"],o):u:s?1===r?l:l+(2===r?-tL(e,["border"],o):tL(e,["margin"],o)):u+tL(e,tN.slice(r),o)}t_(["Width","Height"],function(e){tA["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],tA["viewport".concat(e)](n))},tA["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}});var tD={position:"absolute",visibility:"hidden",display:"block"};function tH(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0];return 0!==o.offsetWidth?e=tj.apply(void 0,n):function(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}(o,tD,function(){e=tj.apply(void 0,n)}),e}function tI(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}t_(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);tA["outer".concat(t)]=function(t,n){return t&&tH(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];tA[e]=function(t,r){var o=r;return void 0!==o?t?(tR(t)&&(o+=tL(t,["padding","border"],n)),ty(t,e,o)):void 0:t&&tH(t,e,-1)}});var tV={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:tE,offset:function(e,t,n){if(void 0===t)return tb(e);!function(e,t,n){if(n.ignoreShake){var r,o,i,a=tb(e),u=a.left.toFixed(0),s=a.top.toFixed(0),l=t.left.toFixed(0),c=t.top.toFixed(0);if(u===l&&s===c)return}n.useCssRight||n.useCssBottom?tT(e,t,n):n.useCssTransform&&tc() in document.body.style?(r=tb(e),i={x:(o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(tc());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e)).x,y:o.y},"left"in t&&(i.x=o.x+t.left-r.left),"top"in t&&(i.y=o.y+t.top-r.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(tc());if(r&&"none"!==r){var o,i=r.match(td);i?((o=(i=i[1]).split(",").map(function(e){return parseFloat(e,10)}))[4]=t.x,o[5]=t.y,tp(e,"matrix(".concat(o.join(","),")"))):((o=r.match(th)[1].split(",").map(function(e){return parseFloat(e,10)}))[12]=t.x,o[13]=t.y,tp(e,"matrix3d(".concat(o.join(","),")")))}else tp(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,i)):tT(e,t,n)}(e,t,n||{})},isWindow:tw,each:t_,css:ty,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:tI,getWindowScrollLeft:function(e){return tg(e)},getWindowScrollTop:function(e){return tg(e,!0)},merge:function(){for(var e={},t=0;t<arguments.length;t++)tV.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};tI(tV,tA);var tF=tV.getParent;function tU(e){if(tV.isWindow(e)||9===e.nodeType)return null;var t,n=tV.getDocument(e).body,r=tV.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:tF(e);for(t=tF(e);t&&t!==n&&9!==t.nodeType;t=tF(t))if("static"!==(r=tV.css(t,"position")))return t;return null}var tB=tV.getParent;function tW(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=tU(e),o=tV.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,u=o.documentElement;r;){if((-1===navigator.userAgent.indexOf("MSIE")||0!==r.clientWidth)&&r!==a&&r!==u&&"visible"!==tV.css(r,"overflow")){var s=tV.offset(r);s.left+=r.clientLeft,s.top+=r.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+r.clientWidth),n.bottom=Math.min(n.bottom,s.top+r.clientHeight),n.left=Math.max(n.left,s.left)}else if(r===a||r===u)break;r=tU(r)}var l=null;tV.isWindow(e)||9===e.nodeType||(l=e.style.position,"absolute"!==tV.css(e,"position")||(e.style.position="fixed"));var c=tV.getWindowScrollLeft(i),f=tV.getWindowScrollTop(i),p=tV.viewportWidth(i),d=tV.viewportHeight(i),h=u.scrollWidth,v=u.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(h=i.innerWidth),"hidden"===m.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=l),t||function(e){if(tV.isWindow(e)||9===e.nodeType)return!1;var t=tV.getDocument(e),n=t.body,r=null;for(r=tB(e);r&&r!==n&&r!==t;r=tB(r))if("fixed"===tV.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,f),n.right=Math.min(n.right,c+p),n.bottom=Math.min(n.bottom,f+d);else{var y=Math.max(h,c+p);n.right=Math.min(n.right,y);var g=Math.max(v,f+d);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function tz(e){if(tV.isWindow(e)||9===e.nodeType){var t,n,r,o=tV.getWindow(e);t={left:tV.getWindowScrollLeft(o),top:tV.getWindowScrollTop(o)},n=tV.viewportWidth(o),r=tV.viewportHeight(o)}else t=tV.offset(e),n=tV.outerWidth(e),r=tV.outerHeight(e);return t.width=n,t.height=r,t}function tK(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function tY(e,t,n,r,o){var i=tK(t,n[1]),a=tK(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function tG(e,t,n){return e.left<n.left||e.left+t.width>n.right}function tX(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function t$(e,t,n){var r=[];return tV.each(e,function(e){r.push(e.replace(t,function(e){return n[e]}))}),r}function tq(e,t){return e[t]=-e[t],e}function tQ(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function tZ(e,t){e[0]=tQ(e[0],t.width),e[1]=tQ(e[1],t.height)}function tJ(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a);var l={},c=0,f=tW(s,!!(u=u||{}).alwaysByViewport),p=tz(s);tZ(i,p),tZ(a,t);var d=tY(p,t,o,i,a),h=tV.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&tG(d,p,f)){var v,m,y,g,b=t$(o,/[lr]/gi,{l:"r",r:"l"}),w=tq(i,0),E=tq(a,0);(g=tY(p,t,b,w,E)).left>f.right||g.left+p.width<f.left||(c=1,o=b,i=w,a=E)}if(u.adjustY&&tX(d,p,f)){var O,k=t$(o,/[tb]/gi,{t:"b",b:"t"}),M=tq(i,1),x=tq(a,1);(O=tY(p,t,k,M,x)).top>f.bottom||O.top+p.height<f.top||(c=1,o=k,i=M,a=x)}c&&(d=tY(p,t,o,i,a),tV.mix(h,d));var C=tG(d,p,f),P=tX(d,p,f);if(C||P){var S=o;C&&(S=t$(o,/[lr]/gi,{l:"r",r:"l"})),P&&(S=t$(o,/[tb]/gi,{t:"b",b:"t"})),o=S,i=n.offset||[0,0],a=n.targetOffset||[0,0]}l.adjustX=u.adjustX&&C,l.adjustY=u.adjustY&&P,(l.adjustX||l.adjustY)&&(v=d,m=tV.clone(v),y={width:p.width,height:p.height},l.adjustX&&m.left<f.left&&(m.left=f.left),l.resizeWidth&&m.left>=f.left&&m.left+y.width>f.right&&(y.width-=m.left+y.width-f.right),l.adjustX&&m.left+y.width>f.right&&(m.left=Math.max(f.right-y.width,f.left)),l.adjustY&&m.top<f.top&&(m.top=f.top),l.resizeHeight&&m.top>=f.top&&m.top+y.height>f.bottom&&(y.height-=m.top+y.height-f.bottom),l.adjustY&&m.top+y.height>f.bottom&&(m.top=Math.max(f.bottom-y.height,f.top)),h=tV.mix(m,y))}return h.width!==p.width&&tV.css(s,"width",tV.width(s)+h.width-p.width),h.height!==p.height&&tV.css(s,"height",tV.height(s)+h.height-p.height),tV.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:l}}function t0(e,t,n){var r,o,i=n.target||t,a=tz(i),u=(r=tW(i,n.overflow&&n.overflow.alwaysByViewport),o=tz(i),!!r&&!(o.left+o.width<=r.left)&&!(o.top+o.height<=r.top)&&!(o.left>=r.right)&&!(o.top>=r.bottom));return tJ(e,a,n,u)}t0.__getOffsetParent=tU,t0.__getVisibleRectForElement=tW;var t1=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=o.has(t);if(R(!u,"Warning: There may be circular references"),u)return!1;if(t===i)return!0;if(n&&a>1)return!1;o.add(t);var s=a+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],i[l],s))return!1;return!0}if(t&&i&&"object"===r(t)&&"object"===r(i)){var c=Object.keys(t);return c.length===Object.keys(i).length&&c.every(function(n){return e(t[n],i[n],s)})}return!1}(e,t)},t2=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},t5=ek()?x.useLayoutEffect:x.useEffect,t4=function(e,t){var n=x.useRef(!0);t5(function(){return e(n.current)},t),t5(function(){return n.current=!1,function(){n.current=!0}},[])},t9=function(e,t){var n=x.useRef(!1),r=x.useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout(function(){n.current=!1,i()},t);else{if(!1===e(a))return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1},t)}},function(){n.current=!1,o()}]},t3=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}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(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),t8="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,t6=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),t7="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(t6):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},ne=["top","right","bottom","left","width","height","size","weight"],nt="undefined"!=typeof MutationObserver,nn=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function a(){t7(i)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,20);o=e}return u}(this.refresh.bind(this),0)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){t8&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nt?(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(){t8&&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(e){var t=e.propertyName,n=void 0===t?"":t;ne.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),nr=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},no=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||t6},ni=nl(0,0,0,0);function na(e){return parseFloat(e)||0}function nu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+na(e["border-"+n+"-width"])},0)}var ns="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof no(e).SVGGraphicsElement}:function(e){return e instanceof no(e).SVGElement&&"function"==typeof e.getBBox};function nl(e,t,n,r){return{x:e,y:t,width:n,height:r}}var nc=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=nl(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){if(!t8)return ni;if(ns(e)){var t;return nl(0,0,(t=e.getBBox()).width,t.height)}return function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ni;var r=no(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=na(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=na(r.width),s=na(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=nu(r,"left","right")+i),Math.round(s+a)!==n&&(s-=nu(r,"top","bottom")+a)),e!==no(e).document.documentElement){var l=Math.round(u+i)-t,c=Math.round(s+a)-n;1!==Math.abs(l)&&(u-=l),1!==Math.abs(c)&&(s-=c)}return nl(o.left,o.top,u,s)}(e)}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),nf=function(e,t){var n,r,o,i,a,u=(n=t.x,r=t.y,o=t.width,i=t.height,nr(a=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:r,width:o,height:i,top:r,right:n+o,bottom:i+r,left:n}),a);nr(this,{target:e,contentRect:u})},np=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new t3,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof no(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new nc(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof no(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new nf(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),nd="undefined"!=typeof WeakMap?new WeakMap:new t3,nh=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new np(t,nn.getInstance(),this);nd.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){nh.prototype[e]=function(){var t;return(t=nd.get(this))[e].apply(t,arguments)}});var nv=void 0!==t6.ResizeObserver?t6.ResizeObserver:nh;function nm(e,t){var n=null,r=null,o=new nv(function(e){var o=ex(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,u=i.height,s=Math.floor(a),l=Math.floor(u);(n!==s||r!==l)&&Promise.resolve().then(function(){t({width:s,height:l})}),n=s,r=l}});return e&&o.observe(e),function(){o.disconnect()}}function ny(e){return"function"!=typeof e?null:e()}function ng(e){return"object"===r(e)&&e?e:null}var nb=x.forwardRef(function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,u=e.monitorWindowResize,s=e.monitorBufferTime,l=x.useRef({}),c=x.useRef(),f=x.Children.only(n),p=x.useRef({});p.current.disabled=r,p.current.target=o,p.current.align=i,p.current.onAlign=a;var d=ex(t9(function(){var e=p.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,i=c.current;if(!t&&n&&i){var a,u,s,f,d,h,v,m,y,g,b,w,E=ny(n),O=ng(n);l.current.element=E,l.current.point=O,l.current.align=r;var k=document.activeElement;return E&&t2(E)?w=t0(i,E,r):O&&(f=(s=tV.getDocument(i)).defaultView||s.parentWindow,d=tV.getWindowScrollLeft(f),h=tV.getWindowScrollTop(f),v=tV.viewportWidth(f),m=tV.viewportHeight(f),y={left:a="pageX"in O?O.pageX:d+O.clientX,top:u="pageY"in O?O.pageY:h+O.clientY,width:0,height:0},g=a>=0&&a<=d+v&&u>=0&&u<=h+m,b=[r.points[0],"cc"],w=tJ(i,y,ti(ti({},r),{},{points:b}),g)),k!==document.activeElement&&ey(i,k)&&"function"==typeof k.focus&&k.focus(),o&&w&&o(i,w),!0}return!1},void 0===s?0:s),2),h=d[0],v=d[1],m=ex(x.useState(),2),y=m[0],g=m[1],b=ex(x.useState(),2),w=b[0],E=b[1];return t4(function(){g(ny(o)),E(ng(o))}),x.useEffect(function(){var e;l.current.element===y&&((e=l.current.point)===w||e&&w&&("pageX"in w&&"pageY"in w?e.pageX===w.pageX&&e.pageY===w.pageY:"clientX"in w&&"clientY"in w&&e.clientX===w.clientX&&e.clientY===w.clientY))&&t1(l.current.align,i)||h()}),x.useEffect(function(){return nm(c.current,h)},[c.current]),x.useEffect(function(){return nm(y,h)},[y]),x.useEffect(function(){r?v():h()},[r]),x.useEffect(function(){if(u)return F(window,"resize",h).remove},[u]),x.useEffect(function(){return function(){v()}},[]),x.useImperativeHandle(t,function(){return{forceAlign:function(){return h(!0)}}}),x.isValidElement(f)&&(f=x.cloneElement(f,{ref:eE(f.ref,c)})),f});function nw(){nw=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function f(t,n,r,o){var a,u,s=Object.create((n&&n.prototype instanceof y?n:y).prototype);return i(s,"_invoke",{value:(a=new S(o||[]),u=d,function(n,o){if(u===h)throw Error("Generator is already running");if(u===v){if("throw"===n)throw o;return{value:e,done:!0}}for(a.method=n,a.arg=o;;){var i=a.delegate;if(i){var s=function t(n,r){var o=r.method,i=n.iterator[o];if(i===e)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=e,t(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),m;var a=p(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var u=a.arg;return u?u.done?(r[n.resultName]=u.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):u:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,m)}(i,a);if(s){if(s===m)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(u===d)throw u=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=h;var l=p(t,r,a);if("normal"===l.type){if(u=a.done?v:"suspendedYield",l.arg===m)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(u=v,a.method="throw",a.arg=l.arg)}})}),s}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var d="suspendedStart",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};c(w,u,function(){return this});var E=Object.getPrototypeOf,O=E&&E(E(T([])));O&&O!==n&&o.call(O,u)&&(w=O);var k=b.prototype=y.prototype=Object.create(w);function M(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function x(e,t){var n;i(this,"_invoke",{value:function(i,a){function u(){return new t(function(n,u){!function n(i,a,u,s){var l=p(e[i],e,a);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==r(f)&&o.call(f,"__await")?t.resolve(f.__await).then(function(e){n("next",e,u,s)},function(e){n("throw",e,u,s)}):t.resolve(f).then(function(e){c.value=e,u(c)},function(e){return n("throw",e,u,s)})}s(l.arg)}(i,a,n,u)})}return n=n?n.then(u,u):u()}})}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw TypeError(r(t)+" is not iterable")}return g.prototype=b,i(k,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:g,configurable:!0}),g.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},M(x.prototype),c(x.prototype,s,function(){return this}),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},M(k),c(k,l,"Generator"),c(k,u,function(){return this}),c(k,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function nE(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){n(e);return}u.done?t(s):Promise.resolve(s).then(r,o)}nb.displayName="Align";var nO=["measure","alignPre","align",null,"motion"],nk=function(e,t){var n=ex(eT(null),2),r=n[0],o=n[1],i=(0,x.useRef)();function a(){em.cancel(i.current)}return(0,x.useEffect)(function(){o("measure",!0)},[e]),(0,x.useEffect)(function(){if("measure"===r&&t(),r){var e;i.current=em((e=nw().mark(function e(){var t,n;return nw().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=nO.indexOf(r),(n=nO[t+1])&&-1!==t&&o(n,!0);case 3:case"end":return e.stop()}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){nE(i,r,o,a,u,"next",e)}function u(e){nE(i,r,o,a,u,"throw",e)}a(void 0)})}))}},[r]),(0,x.useEffect)(function(){return function(){a()}},[]),[r,function(e){a(),i.current=em(function(){o(function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e},!0),null==e||e()})}]},nM=function(e){var t=ex(x.useState({width:0,height:0}),2),n=t[0],r=t[1];return[x.useMemo(function(){var t={};if(e){var r=n.width,o=n.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t},[e,n]),function(e){var t=e.offsetWidth,n=e.offsetHeight,o=e.getBoundingClientRect(),i=o.width,a=o.height;1>Math.abs(t-i)&&1>Math.abs(n-a)&&(t=i,n=a),r({width:t,height:n})}]},nx=x.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,o=e.className,i=e.style,a=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,f=e.forceRender,p=e.align,d=e.point,h=e.getRootDomNode,v=e.getClassNameFromAlign,m=e.onAlign,y=e.onMouseEnter,g=e.onMouseLeave,b=e.onMouseDown,w=e.onTouchStart,E=e.onClick,O=(0,x.useRef)(),k=(0,x.useRef)(),M=ex((0,x.useState)(),2),C=M[0],P=M[1],S=ex(nM(l),2),T=S[0],_=S[1],R=ex(nk(n,function(){l&&_(h())}),2),N=R[0],A=R[1],j=ex((0,x.useState)(0),2),D=j[0],H=j[1],I=(0,x.useRef)();function V(){var e;null===(e=O.current)||void 0===e||e.forceAlign()}function F(e,t){var n=v(t);C!==n&&P(n),H(function(e){return e+1}),"align"===N&&(null==m||m(e,t))}t4(function(){"alignPre"===N&&H(0)},[N]),t4(function(){"align"===N&&(D<3?V():A(function(){var e;null===(e=I.current)||void 0===e||e.call(I)}))},[D]);var U=u({},tn(e));function W(){return new Promise(function(e){I.current=e})}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(e){var t=U[e];U[e]=function(e,n){return A(),null==t?void 0:t(e,n)}}),x.useEffect(function(){U.motionName||"motion"!==N||A()},[U.motionName,N]),x.useImperativeHandle(t,function(){return{forceAlign:V,getElement:function(){return k.current}}});var z=u(u({},T),{},{zIndex:s,opacity:"motion"!==N&&"stable"!==N&&n?0:void 0,pointerEvents:n||"stable"===N?void 0:"none"},i),K=!0;null!=p&&p.points&&("align"===N||"stable"===N)&&(K=!1);var Y=a;return x.Children.count(a)>1&&(Y=x.createElement("div",{className:"".concat(r,"-content")},a)),x.createElement(e5,L({visible:n,ref:k,leavedClassName:"".concat(r,"-hidden")},U,{onAppearPrepare:W,onEnterPrepare:W,removeOnLeave:c,forceRender:f}),function(e,t){var n=e.className,i=e.style,a=B()(r,o,C,n);return x.createElement(nb,{target:d||h,key:"popup",ref:O,monitorWindowResize:!0,disabled:K,align:p,onAlign:F},x.createElement("div",{ref:t,className:a,onMouseEnter:y,onMouseLeave:g,onMouseDownCapture:b,onTouchStartCapture:w,onClick:E,style:u(u({},i),z)},Y))})});nx.displayName="PopupInner";var nC=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,o=e.zIndex,i=e.children,a=e.mobile,s=(a=void 0===a?{}:a).popupClassName,l=a.popupStyle,c=a.popupMotion,f=a.popupRender,p=e.onClick,d=x.useRef();x.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return d.current}}});var h=u({zIndex:o},l),v=i;return x.Children.count(i)>1&&(v=x.createElement("div",{className:"".concat(n,"-content")},i)),f&&(v=f(v)),x.createElement(e5,L({visible:r,ref:d,removeOnLeave:!0},void 0===c?{}:c),function(e,t){var r=e.className,o=e.style,i=B()(n,s,r);return x.createElement("div",{ref:t,className:i,onClick:p,style:u(u({},o),h)},v)})});nC.displayName="MobilePopupInner";var nP=["visible","mobile"],nS=x.forwardRef(function(e,t){var n=e.visible,r=e.mobile,o=A(e,nP),i=ex((0,x.useState)(n),2),a=i[0],s=i[1],l=ex((0,x.useState)(!1),2),c=l[0],f=l[1],p=u(u({},o),{},{visible:a});(0,x.useEffect)(function(){s(n),n&&r&&f(eC())},[n,r]);var d=c?x.createElement(nC,L({},p,{mobile:r,ref:t})):x.createElement(nx,L({},p,{ref:t}));return x.createElement("div",null,x.createElement(tr,p),d)});nS.displayName="Popup";var nT=x.createContext(null);function n_(){}var nR=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],nN=(O=function(e){p(n,e);var t=m(n);function n(e){var r,o;return s(this,n),i(v(r=t.call(this,e)),"popupRef",x.createRef()),i(v(r),"triggerRef",x.createRef()),i(v(r),"portalContainer",void 0),i(v(r),"attachId",void 0),i(v(r),"clickOutsideHandler",void 0),i(v(r),"touchOutsideHandler",void 0),i(v(r),"contextMenuOutsideHandler1",void 0),i(v(r),"contextMenuOutsideHandler2",void 0),i(v(r),"mouseDownTimeout",void 0),i(v(r),"focusTime",void 0),i(v(r),"preClickTime",void 0),i(v(r),"preTouchTime",void 0),i(v(r),"delayTimer",void 0),i(v(r),"hasPopupMouseDown",void 0),i(v(r),"onMouseEnter",function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)}),i(v(r),"onMouseMove",function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)}),i(v(r),"onMouseLeave",function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)}),i(v(r),"onPopupMouseEnter",function(){r.clearDelayTimer()}),i(v(r),"onPopupMouseLeave",function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&ey(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)}),i(v(r),"onFocus",function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))}),i(v(r),"onMouseDown",function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()}),i(v(r),"onTouchStart",function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()}),i(v(r),"onBlur",function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)}),i(v(r),"onContextMenu",function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)}),i(v(r),"onContextMenuClose",function(){r.isContextMenuToShow()&&r.close()}),i(v(r),"onClick",function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),20>Math.abs(t-r.focusTime))return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)}),i(v(r),"onPopupMouseDown",function(){if(r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout(function(){r.hasPopupMouseDown=!1},0),r.context){var e;(e=r.context).onPopupMouseDown.apply(e,arguments)}}),i(v(r),"onDocumentClick",function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(!ey(n,t)||r.isContextMenuOnly())&&!ey(o,t)&&!r.hasPopupMouseDown&&r.close()}}),i(v(r),"getRootDomNode",function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=eg(r.triggerRef.current);if(t)return t}catch(e){}return V.findDOMNode(v(r))}),i(v(r),"getPopupClassNameFromAlign",function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,s=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var u,s=i[a];if(u=e[s].points,r?u[0]===o[0]:u[0]===o[0]&&u[1]===o[1])return"".concat(t,"-placement-").concat(s)}return""}(i,a,e,u)),s&&t.push(s(e)),t.join(" ")}),i(v(r),"getComponent",function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,o=e.popupClassName,i=e.onPopupAlign,a=e.popupMotion,u=e.popupAnimation,s=e.popupTransitionName,l=e.popupStyle,c=e.mask,f=e.maskAnimation,p=e.maskTransitionName,d=e.maskMotion,h=e.zIndex,v=e.popup,m=e.stretch,y=e.alignPoint,g=e.mobile,b=e.forceRender,w=e.onPopupClick,E=r.state,O=E.popupVisible,k=E.point,M=r.getPopupAlign(),C={};return r.isMouseEnterToShow()&&(C.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(C.onMouseLeave=r.onPopupMouseLeave),C.onMouseDown=r.onPopupMouseDown,C.onTouchStart=r.onPopupMouseDown,x.createElement(nS,L({prefixCls:t,destroyPopupOnHide:n,visible:O,point:y&&k,className:o,align:M,onAlign:i,animation:u,getClassNameFromAlign:r.getPopupClassNameFromAlign},C,{stretch:m,getRootDomNode:r.getRootDomNode,style:l,mask:c,zIndex:h,transitionName:s,maskAnimation:f,maskTransitionName:p,maskMotion:d,ref:r.popupRef,motion:a,mobile:g,forceRender:b,onClick:w}),"function"==typeof v?v():v)}),i(v(r),"attachParent",function(e){em.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=em(function(){r.attachParent(e)})}),i(v(r),"getContainer",function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer}),i(v(r),"setPoint",function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})}),i(v(r),"handlePortalUpdate",function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)}),i(v(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),o="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:o,popupVisible:o},nR.forEach(function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}}),r}return c(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible){!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=F(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=F(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=F(e,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=F(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),em.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?u(u({},r[t]||{}),n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout(function(){r.setPopupVisible(e,i),r.clearDelayTimer()},o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return -1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return -1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return -1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return -1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return -1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return -1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return -1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var e;null===(e=this.popupRef.current)||void 0===e||e.forceAlign()}}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e,t=this.state.popupVisible,n=this.props,r=n.children,o=n.forceRender,i=n.alignPoint,a=n.className,s=n.autoDestroy,l=x.Children.only(r),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,i&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var f=B()(l&&l.props&&l.props.className,a);f&&(c.className=f);var p=u({},c);eO(l)&&(p.ref=eE(this.triggerRef,l.ref));var d=x.cloneElement(l,p);return(t||this.popupRef.current||o)&&(e=x.createElement(eM,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&s&&(e=null),x.createElement(nT.Provider,{value:this.triggerContextValue},d,e)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(x.Component),i(O,"contextType",nT),i(O,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:function(){return""},getDocument:function(e){return e?e.ownerDocument:window.document},onPopupVisibleChange:n_,afterPopupVisibleChange:n_,onPopupAlign:n_,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),O),nL={adjustX:1,adjustY:1},nA=[0,0],nj={left:{points:["cr","cl"],overflow:nL,offset:[-4,0],targetOffset:nA},right:{points:["cl","cr"],overflow:nL,offset:[4,0],targetOffset:nA},top:{points:["bc","tc"],overflow:nL,offset:[0,-4],targetOffset:nA},bottom:{points:["tc","bc"],overflow:nL,offset:[0,4],targetOffset:nA},topLeft:{points:["bl","tl"],overflow:nL,offset:[0,-4],targetOffset:nA},leftTop:{points:["tr","tl"],overflow:nL,offset:[-4,0],targetOffset:nA},topRight:{points:["br","tr"],overflow:nL,offset:[0,-4],targetOffset:nA},rightTop:{points:["tl","tr"],overflow:nL,offset:[4,0],targetOffset:nA},bottomRight:{points:["tr","br"],overflow:nL,offset:[0,4],targetOffset:nA},rightBottom:{points:["bl","br"],overflow:nL,offset:[4,0],targetOffset:nA},bottomLeft:{points:["tl","bl"],overflow:nL,offset:[0,4],targetOffset:nA},leftBottom:{points:["br","bl"],overflow:nL,offset:[-4,0],targetOffset:nA}};function nD(e){var t=e.showArrow,n=e.arrowContent,r=e.children,o=e.prefixCls,i=e.id,a=e.overlayInnerStyle,u=e.className,s=e.style;return x.createElement("div",{className:B()("".concat(o,"-content"),u),style:s},!1!==t&&x.createElement("div",{className:"".concat(o,"-arrow"),key:"arrow"},n),x.createElement("div",{className:"".concat(o,"-inner"),id:i,role:"tooltip",style:a},"function"==typeof r?r():r))}var nH=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],nI=(0,x.forwardRef)(function(e,t){var n=e.overlayClassName,o=e.trigger,i=e.mouseEnterDelay,a=e.mouseLeaveDelay,s=e.overlayStyle,l=e.prefixCls,c=void 0===l?"rc-tooltip":l,f=e.children,p=e.onVisibleChange,d=e.afterVisibleChange,h=e.transitionName,v=e.animation,m=e.motion,y=e.placement,g=e.align,b=e.destroyTooltipOnHide,w=void 0!==b&&b,E=e.defaultVisible,O=e.getTooltipContainer,k=e.overlayInnerStyle,M=e.arrowContent,C=e.overlay,P=e.id,S=e.showArrow,T=void 0===S||S,_=A(e,nH),R=(0,x.useRef)(null);(0,x.useImperativeHandle)(t,function(){return R.current});var N=u({},_);"visible"in e&&(N.popupVisible=e.visible);var j=!1,D=!1;if("boolean"==typeof w)j=w;else if(w&&"object"===r(w)){var H=w.keepParent;j=!0===H,D=!1===H}return x.createElement(nN,L({popupClassName:n,prefixCls:c,popup:function(){return x.createElement(nD,{showArrow:T,arrowContent:M,key:"content",prefixCls:c,id:P,overlayInnerStyle:k},C)},action:void 0===o?["hover"]:o,builtinPlacements:nj,popupPlacement:void 0===y?"right":y,ref:R,popupAlign:void 0===g?{}:g,getPopupContainer:O,onPopupVisibleChange:p,afterPopupVisibleChange:d,popupTransitionName:h,popupAnimation:v,popupMotion:m,defaultPopupVisible:E,destroyPopupOnHide:j,autoDestroy:D,mouseLeaveDelay:void 0===a?.1:a,popupStyle:s,mouseEnterDelay:void 0===i?0:i},N),f)}),nV=x.forwardRef(function(e,t){var n=e.visible,r=e.overlay,o=x.useRef(null),i=eE(t,o),a=x.useRef(null);function u(){em.cancel(a.current)}return x.useEffect(function(){return n?a.current=em(function(){var e;null===(e=o.current)||void 0===e||e.forcePopupAlign()}):u(),u},[n,r]),x.createElement(nI,L({ref:i},e))});es.Range=ef,es.Handle=Y,es.createSliderWithTooltip=function(e){var t;return(t=function(t){p(r,t);var n=m(r);function r(){var e;return s(this,r),e=n.apply(this,arguments),e.state={visibles:{}},e.handleTooltipVisibleChange=function(t,n){e.setState(function(e){return{visibles:u(u({},e.visibles),{},i({},t,n))}})},e.handleWithTooltip=function(t){var n,r=t.value,o=t.dragging,i=t.index,a=t.disabled,s=A(t,["value","dragging","index","disabled"]),l=e.props,c=l.tipFormatter,f=l.tipProps,p=l.handleStyle,d=l.getTooltipContainer,h=f.prefixCls,v=f.overlay,m=void 0===v?c(r):v,y=f.placement,g=f.visible,b=A(f,["prefixCls","overlay","placement","visible"]);return n=Array.isArray(p)?p[i]||p[0]:p,x.createElement(nV,L({},b,{getTooltipContainer:d,prefixCls:void 0===h?"rc-slider-tooltip":h,overlay:m,placement:void 0===y?"top":y,visible:!a&&(e.state.visibles[i]||o)||void 0!==g&&g,key:i}),x.createElement(Y,L({},s,{style:u({},n),value:r,onMouseEnter:function(){return e.handleTooltipVisibleChange(i,!0)},onMouseLeave:function(){return e.handleTooltipVisibleChange(i,!1)}})))},e}return c(r,[{key:"render",value:function(){return x.createElement(e,L({},this.props,{handle:this.handleWithTooltip}))}}]),r}(x.Component)).defaultProps={tipFormatter:function(e){return e},handleStyle:[{}],tipProps:{},getTooltipContainer:function(e){return e.parentNode}},t}},85751:function(e,t){"use strict";/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.module.reference"),t.ForwardRef=c,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case f:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case d:case u:return e;default:return t}}case r:return t}}}(e)===d}},29553:function(e,t,n){"use strict";e.exports=n(85751)},67197:function(){},56800:function(e,t){var n;/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}(n)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0!==(n=(function(){return o}).apply(t,[]))&&(e.exports=n)}()}}]);