(self.webpackChunk_topthink_assistant=self.webpackChunk_topthink_assistant||[]).push([[636,379],{3996:function(e,t,n){"use strict";var r=n(2379);t.Z=function(e,t,n,o){const i=r.useRef(n),a=r.useRef(o);r.useEffect((()=>{i.current=n,a.current=o})),r.useEffect((()=>{const n=e&&"current"in e?e.current:e;if(!n)return;let r=0;function o(...e){r||i.current.apply(this,e)}n.addEventListener(t,o);const u=a.current;return()=>{r=1,n.removeEventListener(t,o),u&&u()}}),[e,t])}},1301:function(e,t,n){"use strict";var r=n(2379);t.Z=e=>{const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),t}},8933:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(2379),o=n(1301);const i="undefined"!=typeof performance?performance:Date,a=()=>i.now();function u(e,t=30,n=!1){const i=(0,o.Z)(e),u=1e3/t,l=r.useRef(0),s=r.useRef(),c=()=>s.current&&clearTimeout(s.current),f=[t,n,i];function d(){l.current=0,c()}return r.useEffect((()=>d),f),r.useCallback((function(){const e=arguments,t=a(),r=()=>{l.current=t,c(),i.current.apply(null,e)},o=l.current;if(n&&0===o)return r();if(t-o>u){if(o>0)return r();l.current=t}c(),s.current=setTimeout((()=>{r(),l.current=0}),u)}),f)}var l=n(3996);const s="undefined"==typeof window?null:window,c=()=>void 0!==s.scrollY?s.scrollY:void 0===s.pageYOffset?0:s.pageYOffset;var f=(e=30)=>{const t=function(e,t,n){const o=r.useState(e);return[o[0],u(o[1],t,n)]}("undefined"==typeof window?0:c,e,!0);return(0,l.Z)(s,"scroll",(()=>t[1](c()))),t[0]}},9503:function(e,t,n){"use strict";n.d(t,{iP:function(){return f}});var r=n(2379),o=n(1301);const i=(e,t=100,n=!1)=>{const i=(0,o.Z)(e),a=r.useRef(),u=[t,n,i];function l(){a.current&&clearTimeout(a.current),a.current=void 0}function s(){a.current=void 0}return r.useEffect((()=>l),u),r.useCallback((function(){const e=arguments,{current:r}=a;if(void 0===r&&n)return a.current=setTimeout(s,t),i.current.apply(null,e);r&&clearTimeout(r),a.current=setTimeout((()=>{a.current=void 0,i.current.apply(null,e)}),t)}),u)};var a=n(3996);const u={},l="undefined"==typeof window?null:window,s=l&&void 0!==l.visualViewport?l.visualViewport:null,c=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],f=function(e){void 0===e&&(e=u);const{wait:t,leading:n,initialWidth:o=0,initialHeight:f=0}=e,[d,p]=((e,t,n)=>{const o=r.useState(e);return[o[0],i(o[1],t,n)]})("undefined"==typeof document?[o,f]:c,t,n),h=()=>p(c);return(0,a.Z)(l,"resize",h),(0,a.Z)(s,"resize",h),(0,a.Z)(l,"orientationchange",h),d}},3812:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function l(e,t){return 2===u(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function s(e,t){return 2===u(e)?e.get(t):e[t]}function c(e,t,n){var r=u(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return B&&e instanceof Map}function p(e){return V&&e instanceof Set}function h(e){return e.o||e.t}function g(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[q];for(var n=G(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&a(e,(function(e,t){return v(t,!0)}),!0)),e}function m(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=Q[e];return t||r(18,e),t}function w(e,t){Q[e]||(Q[e]=t)}function _(){return H}function S(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function E(e){k(e),e.p.forEach(x),e.p=null}function k(e){e===H&&(H=e.l)}function C(e){return H={p:[],l:H,h:e,m:!0,_:0}}function x(e){var t=e[q];0===t.i||1===t.i?t.j():t.O=!0}function O(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.g||b("ES5").S(t,e,o),o?(n[q].P&&(E(t),r(4)),i(e)&&(e=P(t,e),t.l||A(t,e)),t.u&&b("Patches").M(n[q].t,e,t.u,t.s)):e=P(t,n,[]),E(t),t.u&&t.v(t.u,t.s),e!==W?e:void 0}function P(e,t,n){if(y(t))return t;var r=t[q];if(!r)return a(t,(function(o,i){return T(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return A(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=g(r.k):r.o,i=o,u=!1;3===r.i&&(i=new Set(o),o.clear(),u=!0),a(i,(function(t,i){return T(e,r,o,t,i,n,u)})),A(e,o,!1),n&&e.u&&b("Patches").N(r,n,e.u,e.s)}return r.o}function T(e,t,n,r,a,u,s){if(o(a)){var f=P(e,a,u&&t&&3!==t.i&&!l(t.R,r)?u.concat(r):void 0);if(c(n,r,f),!o(f))return;e.m=!1}else s&&n.add(a);if(i(a)&&!y(a)){if(!e.h.D&&e._<1)return;P(e,a),t&&t.A.l||A(e,a)}}function A(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&v(t,n)}function N(e,t){var n=e[q];return(n?h(n):e)[t]}function M(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function D(e){e.P||(e.P=!0,e.l&&D(e.l))}function R(e){e.o||(e.o=g(e.t))}function L(e,t,n){var r=d(t)?b("MapSet").F(t,n):p(t)?b("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:_(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=K;n&&(o=[r],i=J);var a=Proxy.revocable(o,i),u=a.revoke,l=a.proxy;return r.k=l,r.j=u,l}(t,n):b("ES5").J(t,n);return(n?n.A:_()).p.push(r),r}function I(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[q],o=u(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=j(t,o),r.I=!1}else n=j(t,o);return a(n,(function(t,o){r&&s(r.t,t)===o||c(n,t,e(o))})),3===o?new Set(n):n}(e)}function j(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return g(e)}function z(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[q];return K.get(t,e)},set:function(t){var n=this[q];K.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][q];if(!o.P)switch(o.i){case 5:r(o)&&D(o);break;case 4:n(o)&&D(o)}}}function n(e){for(var t=e.t,n=e.k,r=G(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==q){var a=t[i];if(void 0===a&&!l(t,i))return!0;var u=n[i],s=u&&u[q];if(s?s.t!==a:!f(u,a))return!0}}var c=!!t[q];return r.length!==G(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=b("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),te=new ee,ne=te.produce,re=(te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te),ne),oe=n(7666);function ie(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ae="function"==typeof Symbol&&Symbol.observable||"@@observable",ue=function(){return Math.random().toString(36).substring(7).split("").join(".")},le={INIT:"@@redux/INIT"+ue(),REPLACE:"@@redux/REPLACE"+ue(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ue()}};function se(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ce(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ie(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ie(1));return n(ce)(e,t)}if("function"!=typeof e)throw new Error(ie(2));var o=e,i=t,a=[],u=a,l=!1;function s(){u===a&&(u=a.slice())}function c(){if(l)throw new Error(ie(3));return i}function f(e){if("function"!=typeof e)throw new Error(ie(4));if(l)throw new Error(ie(5));var t=!0;return s(),u.push(e),function(){if(t){if(l)throw new Error(ie(6));t=!1,s();var n=u.indexOf(e);u.splice(n,1),a=null}}}function d(e){if(!se(e))throw new Error(ie(7));if(void 0===e.type)throw new Error(ie(8));if(l)throw new Error(ie(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=u,n=0;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]n;)i[n]=t[n++];return i}},2460:function(e,t,n){var r=n(6748),o=n(2146),i=n(4247),a=n(1166),u=function(e){var t=1==e;return function(n,u,l){for(var s,c=i(n),f=o(c),d=r(u,l),p=a(f);p-- >0;)if(d(s=f[p],p,c))switch(e){case 0:return s;case 1:return p}return t?-1:void 0}};e.exports={findLast:u(0),findLastIndex:u(1)}},6763:function(e,t,n){var r=n(1166);e.exports=function(e,t){for(var n=r(e),o=new t(n),i=0;i=u||s<0)throw i("Incorrect index");for(var c=new t(u),f=0;f=0?r:n+r;return u<0||u>=n?void 0:t[u]}))},6187:function(e,t,n){"use strict";var r=n(3859),o=n(2460).findLastIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},555:function(e,t,n){"use strict";var r=n(3859),o=n(2460).findLast,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},8555:function(e,t,n){"use strict";var r=n(6763),o=n(3859),i=o.aTypedArray,a=o.exportTypedArrayMethod,u=o.getTypedArrayConstructor;a("toReversed",(function(){return r(i(this),u(this))}))},6851:function(e,t,n){"use strict";var r=n(3859),o=n(764),i=n(2427),a=n(3236),u=r.aTypedArray,l=r.getTypedArrayConstructor,s=r.exportTypedArrayMethod,c=o(r.TypedArrayPrototype.sort);s("toSorted",(function(e){void 0!==e&&i(e);var t=u(this),n=a(l(t),t);return c(n,e)}))},3461:function(e,t,n){"use strict";var r=n(7674),o=n(3859),i=n(3241),a=n(6287),u=n(394),l=o.aTypedArray,s=o.getTypedArrayConstructor,c=o.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();c("with",{with:function(e,t){var n=l(this),o=a(e),c=i(n)?u(t):+t;return r(n,s(n),o,c)}}.with,!f)},9011:function(e,t,n){n(8555)},825:function(e,t,n){n(6851)},6342:function(e,t,n){n(3461)},7749:function(e,t,n){"use strict";var r=n(6367),o=n(2019),i=n(3012),a=n(73),u=n(3015).f,l=n(627),s=n(1167),c=n(3661),f=n(4425),d=n(5661),p=n(8936),h=n(2404),g=n(3709),v="DOMException",m=i("Error"),y=i(v),b=function(){s(this,w);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=new y(t,n),o=m(t);return o.name=v,u(r,"stack",a(1,p(o.stack,1))),c(r,this,b),r},w=b.prototype=y.prototype,_="stack"in m(v),S="stack"in new y(1,2),E=y&&h&&Object.getOwnPropertyDescriptor(o,v),k=!(!E||E.writable&&E.configurable),C=_&&!k&&!S;r({global:!0,constructor:!0,forced:g||C},{DOMException:C?b:y});var x=i(v),O=x.prototype;if(O.constructor!==x)for(var P in g||u(O,"constructor",a(1,x)),d)if(l(d,P)){var T=d[P],A=T.s;l(x,A)||u(x,A,a(6,T.c))}},7646:function(e,t,n){var r;e=n.nmd(e),function(){"use strict";function t(e,t){var n,r=Object.keys(t);for(n=0;n1?((t=n).width=arguments[0],t.height=arguments[1]):t=e||n,!(this instanceof a))return new a(t);this.width=t.width||n.width,this.height=t.height||n.height,this.enableMirroring=void 0!==t.enableMirroring?t.enableMirroring:n.enableMirroring,this.canvas=this,this.__document=t.document||document,t.ctx?this.__ctx=t.ctx:(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d")),this.__setDefaultStyles(),this.__stack=[this.__getStyleState()],this.__groupStack=[],this.__root=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__root.setAttribute("version",1.1),this.__root.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__root.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__root.setAttribute("width",this.width),this.__root.setAttribute("height",this.height),this.__ids={},this.__defs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__root.appendChild(this.__defs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__root.appendChild(this.__currentElement)},a.prototype.__createElement=function(e,t,n){void 0===t&&(t={});var r,o,i=this.__document.createElementNS("http://www.w3.org/2000/svg",e),a=Object.keys(t);for(n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none")),r=0;r0){"path"===this.__currentElement.nodeName&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:t,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());var n=this.__createElement("g");t.appendChild(n),this.__currentElement=n}var r=this.__currentElement.getAttribute("transform");r?r+=" ":r="",r+=e,this.__currentElement.setAttribute("transform",r)},a.prototype.scale=function(e,n){void 0===n&&(n=e),this.__addTransform(t("scale({x},{y})",{x:e,y:n}))},a.prototype.rotate=function(e){var n=180*e/Math.PI;this.__addTransform(t("rotate({angle},{cx},{cy})",{angle:n,cx:0,cy:0}))},a.prototype.translate=function(e,n){this.__addTransform(t("translate({x},{y})",{x:e,y:n}))},a.prototype.transform=function(e,n,r,o,i,a){this.__addTransform(t("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:n,c:r,d:o,e:i,f:a}))},a.prototype.beginPath=function(){var e;this.__currentDefaultPath="",this.__currentPosition={},e=this.__createElement("path",{},!0),this.__closestGroupOrSvg().appendChild(e),this.__currentElement=e},a.prototype.__applyCurrentDefaultPath=function(){var e=this.__currentElement;"path"===e.nodeName?e.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",e.nodeName)},a.prototype.__addPathCommand=function(e){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=e},a.prototype.moveTo=function(e,n){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.__currentPosition={x:e,y:n},this.__addPathCommand(t("M {x} {y}",{x:e,y:n}))},a.prototype.closePath=function(){this.__currentDefaultPath&&this.__addPathCommand("Z")},a.prototype.lineTo=function(e,n){this.__currentPosition={x:e,y:n},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(t("L {x} {y}",{x:e,y:n})):this.__addPathCommand(t("M {x} {y}",{x:e,y:n}))},a.prototype.bezierCurveTo=function(e,n,r,o,i,a){this.__currentPosition={x:i,y:a},this.__addPathCommand(t("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:n,cp2x:r,cp2y:o,x:i,y:a}))},a.prototype.quadraticCurveTo=function(e,n,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(t("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:n,x:r,y:o}))};var c=function(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]};a.prototype.arcTo=function(e,t,n,r,o){var i=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(void 0!==i&&void 0!==a){if(o<0)throw new Error("IndexSizeError: The radius provided ("+o+") is negative.");if(i===e&&a===t||e===n&&t===r||0===o)return void this.lineTo(e,t);var u=c([i-e,a-t]),l=c([n-e,r-t]);if(u[0]*l[1]==u[1]*l[0])return void this.lineTo(e,t);var s=u[0]*l[0]+u[1]*l[1],f=Math.acos(Math.abs(s)),d=c([u[0]+l[0],u[1]+l[1]]),p=o/Math.sin(f/2),h=e+p*d[0],g=t+p*d[1],v=[-u[1],u[0]],m=[l[1],-l[0]],y=function(e){var t=e[0];return e[1]>=0?Math.acos(t):-Math.acos(t)},b=y(v),w=y(m);this.lineTo(h+v[0]*o,g+v[1]*o),this.arc(h,g,o,b,w)}},a.prototype.stroke=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")},a.prototype.fill=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")},a.prototype.rect=function(e,t,n,r){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.closePath()},a.prototype.fillRect=function(e,t,n,r){var o;o=this.__createElement("rect",{x:e,y:t,width:n,height:r,"shape-rendering":"crispEdges"},!0),this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("fill")},a.prototype.strokeRect=function(e,t,n,r){var o;o=this.__createElement("rect",{x:e,y:t,width:n,height:r},!0),this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("stroke")},a.prototype.__clearCanvas=function(){for(var e=this.__closestGroupOrSvg().getAttribute("transform"),t=this.__root.childNodes[1],n=t.childNodes,r=n.length-1;r>=0;r--)n[r]&&t.removeChild(n[r]);this.__currentElement=t,this.__groupStack=[],e&&this.__addTransform(e)},a.prototype.clearRect=function(e,t,n,r){if(0!==e||0!==t||n!==this.width||r!==this.height){var o,i=this.__closestGroupOrSvg();o=this.__createElement("rect",{x:e,y:t,width:n,height:r,fill:"#FFFFFF"},!0),i.appendChild(o)}else this.__clearCanvas()},a.prototype.createLinearGradient=function(e,t,r,o){var i=this.__createElement("linearGradient",{id:n(this.__ids),x1:e+"px",x2:r+"px",y1:t+"px",y2:o+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(i),new u(i,this)},a.prototype.createRadialGradient=function(e,t,r,o,i,a){var l=this.__createElement("radialGradient",{id:n(this.__ids),cx:o+"px",cy:i+"px",r:a+"px",fx:e+"px",fy:t+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(l),new u(l,this)},a.prototype.__parseFont=function(){var e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-,\'\"\sa-z0-9]+?)\s*$/i.exec(this.font),t={style:e[1]||"normal",size:e[4]||"10px",family:e[6]||"sans-serif",weight:e[3]||"normal",decoration:e[2]||"normal",href:null};return"underline"===this.__fontUnderline&&(t.decoration="underline"),this.__fontHref&&(t.href=this.__fontHref),t},a.prototype.__wrapTextLink=function(e,t){if(e.href){var n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),n.appendChild(t),n}return t},a.prototype.__applyText=function(e,t,n,i){var a=this.__parseFont(),u=this.__closestGroupOrSvg(),l=this.__createElement("text",{"font-family":a.family,"font-size":a.size,"font-style":a.style,"font-weight":a.weight,"text-decoration":a.decoration,x:t,y:n,"text-anchor":r(this.textAlign),"dominant-baseline":o(this.textBaseline)},!0);l.appendChild(this.__document.createTextNode(e)),this.__currentElement=l,this.__applyStyleToCurrentElement(i),u.appendChild(this.__wrapTextLink(a,l))},a.prototype.fillText=function(e,t,n){this.__applyText(e,t,n,"fill")},a.prototype.strokeText=function(e,t,n){this.__applyText(e,t,n,"stroke")},a.prototype.measureText=function(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)},a.prototype.arc=function(e,n,r,o,i,a){if(o!==i){(o%=2*Math.PI)===(i%=2*Math.PI)&&(i=(i+2*Math.PI-.001*(a?-1:1))%(2*Math.PI));var u,l=e+r*Math.cos(i),s=n+r*Math.sin(i),c=e+r*Math.cos(o),f=n+r*Math.sin(o),d=a?0:1,p=i-o;p<0&&(p+=2*Math.PI),u=a?p>Math.PI?0:1:p>Math.PI?1:0,this.lineTo(c,f),this.__addPathCommand(t("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:r,ry:r,xAxisRotation:0,largeArcFlag:u,sweepFlag:d,endX:l,endY:s})),this.__currentPosition={x:l,y:s}}},a.prototype.clip=function(){var e=this.__closestGroupOrSvg(),r=this.__createElement("clipPath"),o=n(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),r.setAttribute("id",o),r.appendChild(this.__currentElement),this.__defs.appendChild(r),e.setAttribute("clip-path",t("url(#{id})",{id:o})),e.appendChild(i),this.__currentElement=i},a.prototype.drawImage=function(){var e,t,n,r,o,i,u,l,s,c,f,d,p,h=Array.prototype.slice.call(arguments),g=h[0],v=0,m=0;if(3===h.length)e=h[1],t=h[2],n=o=g.width,r=i=g.height;else if(5===h.length)e=h[1],t=h[2],n=h[3],r=h[4],o=g.width,i=g.height;else{if(9!==h.length)throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);v=h[1],m=h[2],o=h[3],i=h[4],e=h[5],t=h[6],n=h[7],r=h[8]}u=this.__closestGroupOrSvg(),this.__currentElement;var y="translate("+e+", "+t+")";if(g instanceof a){if((l=g.getSvg().cloneNode(!0)).childNodes&&l.childNodes.length>1){for(s=l.childNodes[0];s.childNodes.length;)p=s.childNodes[0].getAttribute("id"),this.__ids[p]=p,this.__defs.appendChild(s.childNodes[0]);if(c=l.childNodes[1]){var b,w=c.getAttribute("transform");b=w?w+" "+y:y,c.setAttribute("transform",b),u.appendChild(c)}}}else"CANVAS"!==g.nodeName&&"IMG"!==g.nodeName||((f=this.__createElement("image")).setAttribute("width",n),f.setAttribute("height",r),f.setAttribute("preserveAspectRatio","none"),f.setAttribute("opacity",this.globalAlpha),(v||m||o!==g.width||i!==g.height)&&((d=this.__document.createElement("canvas")).width=n,d.height=r,d.getContext("2d").drawImage(g,v,m,o,i,0,0,n,r),g=d),f.setAttribute("transform",y),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===g.nodeName?g.toDataURL():g.originalSrc),u.appendChild(f))},a.prototype.createPattern=function(e,t){var r,o=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=n(this.__ids);return o.setAttribute("id",i),o.setAttribute("width",e.width),o.setAttribute("height",e.height),"CANVAS"===e.nodeName||"IMG"===e.nodeName?((r=this.__document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("width",e.width),r.setAttribute("height",e.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===e.nodeName?e.toDataURL():e.getAttribute("src")),o.appendChild(r),this.__defs.appendChild(o)):e instanceof a&&(o.appendChild(e.__root.childNodes[1]),this.__defs.appendChild(o)),new l(o,this)},a.prototype.setLineDash=function(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null},a.prototype.drawFocusRing=function(){},a.prototype.createImageData=function(){},a.prototype.getImageData=function(){},a.prototype.putImageData=function(){},a.prototype.globalCompositeOperation=function(){},a.prototype.setTransform=function(){},"object"==typeof window&&(window.C2S=a),"object"==typeof e.exports&&(e.exports=a)}(),function(){"use strict";function o(e,t,n){this.mode=m.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var r=0,o=this.data.length;r65536?(i[0]=240|(1835008&a)>>>18,i[1]=128|(258048&a)>>>12,i[2]=128|(4032&a)>>>6,i[3]=128|63&a):a>2048?(i[0]=224|(61440&a)>>>12,i[1]=128|(4032&a)>>>6,i[2]=128|63&a):a>128?(i[0]=192|(1984&a)>>>6,i[1]=128|63&a):i[0]=a,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),n||this.parsedData.length==this.data.length||(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function i(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function a(e,t){if(e.length==f)throw new Error(e.length+"/"+t);for(var n=0;nE.length)throw new Error("Too long data. the CorrectLevel."+["M","L","H","Q"][n]+" limit length is "+u);return 0!=t.version&&(r<=t.version?(r=t.version,t.runVersion=r):(console.warn("QR Code version "+t.version+" too small, run version use "+r),t.runVersion=r)),r}var f,d,p="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,g=p||h||Function("return this")(),v=(t&&!t.nodeType&&t&&e&&e.nodeType,g.QRCode);o.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=i.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t,n){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var o=-1;o<=7;o++)t+o<=-1||this.moduleCount<=t+o||(0<=r&&r<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=o&&o<=4?(this.modules[e+r][t+o][0]=!0,this.modules[e+r][t+o][2]=n,this.modules[e+r][t+o][1]=-0==r||-0==o||6==r||6==o?"O":"I"):this.modules[e+r][t+o][0]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=w.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3][0]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)][0]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=w.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&1==(r>>o&1);o<6?this.modules[o][8][0]=i:o<8?this.modules[o+1][8][0]=i:this.modules[this.moduleCount-15+o][8][0]=i}for(o=0;o<15;o++){i=!e&&1==(r>>o&1);o<8?this.modules[8][this.moduleCount-o-1][0]=i:o<9?this.modules[8][15-o-1+1][0]=i:this.modules[8][15-o-1][0]=i}this.modules[this.moduleCount-8][8][0]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var u=0;u<2;u++)if(null==this.modules[r][a-u][0]){var l=!1;i>>o&1)),w.getMask(t,r,a-u)&&(l=!l),this.modules[r][a-u][0]=l,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}},i.PAD0=236,i.PAD1=17,i.createData=function(e,t,n){for(var r=u.getRSBlocks(e,t),o=new l,a=0;a8*c)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*c+")");for(o.getLengthInBits()+4<=8*c&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*c)&&(o.put(i.PAD0,8),!(o.getLengthInBits()>=8*c));)o.put(i.PAD1,8);return i.createBytes(o,r)},i.createBytes=function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),u=new Array(t.length),l=0;l=0?p.get(h):0}}var g=0;for(f=0;f=0;)t^=w.G15<=0;)t^=w.G18<>>=1;return t},getPatternPosition:function(e){return w.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case b.PATTERN000:return(t+n)%2==0;case b.PATTERN001:return t%2==0;case b.PATTERN010:return n%3==0;case b.PATTERN011:return(t+n)%3==0;case b.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case b.PATTERN101:return t*n%2+t*n%3==0;case b.PATTERN110:return(t*n%2+t*n%3)%2==0;case b.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new a([1],0),n=0;n5&&(n+=3+i-5)}for(r=0;r=256;)e-=255;return _.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},S=0;S<8;S++)_.EXP_TABLE[S]=1<>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var E=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],k="undefined"!=typeof CanvasRenderingContext2D?function(){function e(){if("svg"==this._htOption.drawer){var e=this._oContext.getSerializedSvg(!0);this.dataURL=e,this._el.innerHTML=e}else try{var t=this._elCanvas.toDataURL("image/png");this.dataURL=t}catch(e){console.error(e)}this._htOption.onRenderingEnd&&(this.dataURL||console.error("Can not get base64 data, please check: 1. Published the page and image to the server 2. The image request support CORS 3. Configured `crossOrigin:'anonymous'` option"),this._htOption.onRenderingEnd(this._htOption,this.dataURL))}function t(e,t){var n=this;if(n._fFail=t,n._fSuccess=e,null===n._bSupportDataURI){var r=document.createElement("img"),o=function(){n._bSupportDataURI=!1,n._fFail&&n._fFail.call(n)};return r.onabort=o,r.onerror=o,r.onload=function(){n._bSupportDataURI=!0,n._fSuccess&&n._fSuccess.call(n)},void(r.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===n._bSupportDataURI&&n._fSuccess?n._fSuccess.call(n):!1===n._bSupportDataURI&&n._fFail&&n._fFail.call(n)}if(g._android&&g._android<=2.1){var n=1/window.devicePixelRatio,r=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(e,t,o,i,a,u,l,s,c){if("nodeName"in e&&/img/i.test(e.nodeName))for(var f=arguments.length-1;f>=1;f--)arguments[f]=arguments[f]*n;else void 0===s&&(arguments[1]*=n,arguments[2]*=n,arguments[3]*=n,arguments[4]*=n);r.apply(this,arguments)}}var o=function(e,t){this._bIsPainted=!1,this._android=s(),this._el=e,this._htOption=t,"svg"==this._htOption.drawer?(this._oContext={},this._elCanvas={}):(this._elCanvas=document.createElement("canvas"),this._el.appendChild(this._elCanvas),this._oContext=this._elCanvas.getContext("2d")),this._bSupportDataURI=null,this.dataURL=null};return o.prototype.draw=function(e){function t(){r.quietZone>0&&r.quietZoneColor&&(u.lineWidth=0,u.fillStyle=r.quietZoneColor,u.fillRect(0,0,l._elCanvas.width,r.quietZone),u.fillRect(0,r.quietZone,r.quietZone,l._elCanvas.height-2*r.quietZone),u.fillRect(l._elCanvas.width-r.quietZone,r.quietZone,r.quietZone,l._elCanvas.height-2*r.quietZone),u.fillRect(0,l._elCanvas.height-r.quietZone,l._elCanvas.width,r.quietZone))}function n(e){r.onRenderingStart&&r.onRenderingStart(r);for(var n=0;n';a.push(d)}if(t.quietZone&&(u="display:inline-block; width:"+(t.width+2*t.quietZone)+"px; height:"+(t.width+2*t.quietZone)+"px;background:"+t.quietZoneColor+"; text-align:center;"),a.push('
'),a.push(''),a.push('");for(var g=0;g');for(var v=0;v')}else{var _=t.colorDark;6==g?(_=t.timing_H||t.timing||c,a.push('')):6==v?(_=t.timing_V||t.timing||c,a.push('')):a.push('')}}a.push("")}if(a.push("
'),t.title){var p=t.titleColor,h=t.titleFont;a.push('
'+t.title+"
")}t.subTitle&&a.push('
'+t.subTitle+"
"),a.push("
"),a.push("
"),t.logo){var S=new Image;null!=t.crossOrigin&&(S.crossOrigin=t.crossOrigin),S.src=t.logo;var E=t.width/3.5,k=t.height/3.5;E!=k&&(E=k),t.logoWidth&&(E=t.logoWidth),t.logoHeight&&(k=t.logoHeight);var C="position:relative; z-index:1;display:table-cell;top:-"+((t.height-t.titleHeight)/2+k/2+t.quietZone)+"px;text-align:center; width:"+E+"px; height:"+k+"px;line-height:"+E+"px; vertical-align: middle;";t.logoBackgroundTransparent||(C+="background:"+t.logoBackgroundColor),a.push('
')}t.onRenderingStart&&t.onRenderingStart(t),n.innerHTML=a.join("");var x=n.childNodes[0],O=(t.width-x.offsetWidth)/2,P=(t.height-x.offsetHeight)/2;O>0&&P>0&&(x.style.margin=P+"px "+O+"px"),this._htOption.onRenderingEnd&&this._htOption.onRenderingEnd(this._htOption,null)},e.prototype.clear=function(){this._el.innerHTML=""},e}();d=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:y.H,dotScale:1,dotScaleTiming:1,dotScaleTiming_H:f,dotScaleTiming_V:f,dotScaleA:1,dotScaleAO:f,dotScaleAI:f,quietZone:0,quietZoneColor:"rgba(0,0,0,0)",title:"",titleFont:"normal normal bold 16px Arial",titleColor:"#000000",titleBackgroundColor:"#ffffff",titleHeight:0,titleTop:30,subTitle:"",subTitleFont:"normal normal normal 14px Arial",subTitleColor:"#4F4F4F",subTitleTop:60,logo:f,logoWidth:f,logoHeight:f,logoMaxWidth:f,logoMaxHeight:f,logoBackgroundColor:"#ffffff",logoBackgroundTransparent:!1,PO:f,PI:f,PO_TL:f,PI_TL:f,PO_TR:f,PI_TR:f,PO_BL:f,PI_BL:f,AO:f,AI:f,timing:f,timing_H:f,timing_V:f,backgroundImage:f,backgroundImageAlpha:1,autoColor:!1,autoColorDark:"rgba(0, 0, 0, .6)",autoColorLight:"rgba(255, 255, 255, .7)",onRenderingStart:f,onRenderingEnd:f,version:0,tooltip:!1,binary:!1,drawer:"canvas",crossOrigin:null,utf8WithoutBOM:!0},"string"==typeof t&&(t={text:t}),t)for(var n in t)this._htOption[n]=t[n];this._htOption.title||this._htOption.subTitle||(this._htOption.titleHeight=0),(this._htOption.version<0||this._htOption.version>40)&&(console.warn("QR Code version '"+this._htOption.version+"' is invalidate, reset to 0"),this._htOption.version=0),(this._htOption.dotScale<0||this._htOption.dotScale>1)&&(console.warn(this._htOption.dotScale+" , is invalidate, dotScale must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScale=1),(this._htOption.dotScaleTiming<0||this._htOption.dotScaleTiming>1)&&(console.warn(this._htOption.dotScaleTiming+" , is invalidate, dotScaleTiming must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleTiming=1),this._htOption.dotScaleTiming_H?(this._htOption.dotScaleTiming_H<0||this._htOption.dotScaleTiming_H>1)&&(console.warn(this._htOption.dotScaleTiming_H+" , is invalidate, dotScaleTiming_H must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleTiming_H=1):this._htOption.dotScaleTiming_H=this._htOption.dotScaleTiming,this._htOption.dotScaleTiming_V?(this._htOption.dotScaleTiming_V<0||this._htOption.dotScaleTiming_V>1)&&(console.warn(this._htOption.dotScaleTiming_V+" , is invalidate, dotScaleTiming_V must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleTiming_V=1):this._htOption.dotScaleTiming_V=this._htOption.dotScaleTiming,(this._htOption.dotScaleA<0||this._htOption.dotScaleA>1)&&(console.warn(this._htOption.dotScaleA+" , is invalidate, dotScaleA must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleA=1),this._htOption.dotScaleAO?(this._htOption.dotScaleAO<0||this._htOption.dotScaleAO>1)&&(console.warn(this._htOption.dotScaleAO+" , is invalidate, dotScaleAO must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleAO=1):this._htOption.dotScaleAO=this._htOption.dotScaleA,this._htOption.dotScaleAI?(this._htOption.dotScaleAI<0||this._htOption.dotScaleAI>1)&&(console.warn(this._htOption.dotScaleAI+" , is invalidate, dotScaleAI must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleAI=1):this._htOption.dotScaleAI=this._htOption.dotScaleA,(this._htOption.backgroundImageAlpha<0||this._htOption.backgroundImageAlpha>1)&&(console.warn(this._htOption.backgroundImageAlpha+" , is invalidate, backgroundImageAlpha must between 0 and 1, now reset to 1. "),this._htOption.backgroundImageAlpha=1),this._htOption.height=this._htOption.height+this._htOption.titleHeight,"string"==typeof e&&(e=document.getElementById(e)),(!this._htOption.drawer||"svg"!=this._htOption.drawer&&"canvas"!=this._htOption.drawer)&&(this._htOption.drawer="canvas"),this._android=s(),this._el=e,this._oQRCode=null,this._htOption._element=e;var r={};for(var n in this._htOption)r[n]=this._htOption[n];this._oDrawing=new k(this._el,r),this._htOption.text&&this.makeCode(this._htOption.text)},d.prototype.makeCode=function(e){this._oQRCode=new i(c(e,this._htOption),this._htOption.correctLevel),this._oQRCode.addData(e,this._htOption.binary,this._htOption.utf8WithoutBOM),this._oQRCode.make(),this._htOption.tooltip&&(this._el.title=e),this._oDrawing.draw(this._oQRCode)},d.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},d.prototype.clear=function(){this._oDrawing.remove()},d.prototype.resize=function(e,t){this._oDrawing._htOption.width=e,this._oDrawing._htOption.height=t,this._oDrawing.draw(this._oQRCode)},d.prototype.noConflict=function(){return g.QRCode===this&&(g.QRCode=v),d},d.CorrectLevel=y,void 0===(r=function(){return d}.apply(t,[]))||(e.exports=r)}.call(this)},6095:function(e,t,n){"use strict";var r=n(5566),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function l(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=l(t),g=l(n),v=0;v=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)return!0;if(e>=g.NUM_ZERO&&e<=g.NUM_MULTIPLY)return!0;if(e>=g.A&&e<=g.Z)return!0;if(-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}}},v=g,m=n(7666),y="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),b="aria-",w="data-";function _(e,t){return 0===e.indexOf(t)}function S(e,t){var n=e.disabled,r=e.prefixCls,o=e.character,i=e.characterRender,a=e.index,u=e.count,c=e.value,f=e.allowHalf,d=e.focused,p=e.onHover,h=e.onClick,g=a+1,m=new Set([r]);0===c&&0===a&&d?m.add("".concat(r,"-focused")):f&&c+.5>=g&&ca?"true":"false","aria-posinset":a+1,"aria-setsize":u,tabIndex:n?-1:0},s.createElement("div",{className:"".concat(r,"-first")},y),s.createElement("div",{className:"".concat(r,"-second")},y)));return i&&(b=i(b,e)),b}var E=s.forwardRef(S);var k=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function C(e,t){var n,u,c=e.prefixCls,f=void 0===c?"rc-rate":c,d=e.className,p=e.defaultValue,g=e.value,S=e.count,C=void 0===S?5:S,x=e.allowHalf,O=void 0!==x&&x,P=e.allowClear,T=void 0===P||P,A=e.character,N=void 0===A?"★":A,M=e.characterRender,D=e.disabled,R=e.direction,L=void 0===R?"ltr":R,I=e.tabIndex,j=void 0===I?0:I,z=e.autoFocus,F=e.onHoverChange,H=e.onChange,U=e.onFocus,B=e.onBlur,V=e.onKeyDown,Z=e.onMouseLeave,W=(0,a.Z)(e,k),$=(u=s.useRef({}),[function(e){return u.current[e]},function(e){return function(t){u.current[e]=t}}]),q=(0,i.Z)($,2),Y=q[0],G=q[1],X=s.useRef(null),Q=function(){var e;D||(null===(e=X.current)||void 0===e||e.focus())};s.useImperativeHandle(t,(function(){return{focus:Q,blur:function(){var e;D||(null===(e=X.current)||void 0===e||e.blur())}}}));var K=h(p||0,{value:g}),J=(0,i.Z)(K,2),ee=J[0],te=J[1],ne=h(null),re=(0,i.Z)(ne,2),oe=re[0],ie=re[1],ae=function(e,t){var n,r,o,i,a="rtl"===L,u=e+1;if(O){var l=Y(e),s=(r=function(e){var t,n,r=e.ownerDocument,o=r.body,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=i.clientLeft||o.clientLeft||0,top:n-=i.clientTop||o.clientTop||0}}(n=l),o=n.ownerDocument,i=o.defaultView||o.parentWindow,r.left+=function(e){var t=e.pageXOffset,n="scrollLeft";if("number"!=typeof t){var r=e.document;"number"!=typeof(t=r.documentElement[n])&&(t=r.body[n])}return t}(i),r.left),c=l.clientWidth;(a&&t-s>c/2||!a&&t-s0&&!n||t===v.RIGHT&&r>0&&n?(ue(r-=O?.5:1),e.preventDefault()):t===v.LEFT&&r1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,m.Z)({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||_(n,b))||t.data&&_(n,w)||t.attr&&y.includes(n))&&(r[n]=e[n])})),r}(W,{aria:!0,data:!0,attr:!0})),be)}var x=s.forwardRef(C)},4039:function(e,t,n){"use strict";n.d(t,{Z:function(){return fr}});var r=n(5675),o=n(4622),i=n(7666),a=n(7395),u=n(2379);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=n(2320);function c(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:1),t};k.cancel=function(e){var t=S.get(e);return E(t),w(t)};var C=k;function x(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 O(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof u.Component?y.findDOMNode(e):null}var P=n(5566);function T(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:1),t};xe.cancel=function(e){var t=ke.get(e);return Ce(e),Se(t)};var Oe=xe,Pe=[K,J,ee,te],Te=[K,ne],Ae=!1,Ne=!0;function Me(e){return e===ee||e===te}var De=function(e,t,n){var r=$(Q),o=(0,I.Z)(r,2),i=o[0],a=o[1],l=function(){var e=u.useRef(null);function t(){Oe.cancel(e.current)}return u.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Oe((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),s=(0,I.Z)(l,2),c=s[0],f=s[1];var d=t?Te:Pe;return we((function(){if(i!==Q&&i!==te){var e=d.indexOf(i),t=d[e+1],r=n(i);r===Ae?a(t,!0):t&&c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),u.useEffect((function(){return function(){f()}}),[]),[function(){a(K,!0)},i]};var Re=function(e){var t=e;"object"===(0,o.Z)(e)&&(t=e.transitionSupport);var n=u.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,a=e.removeOnLeave,l=void 0===a||a,s=e.forceRender,c=e.children,f=e.motionName,d=e.leavedClassName,p=e.eventProps,h=function(e,n){return!(!e.motionName||!t||!1===n)}(e,u.useContext(V).motion),g=(0,u.useRef)(),v=(0,u.useRef)();var y=function(e,t,n,r){var o=r.motionEnter,a=void 0===o||o,l=r.motionAppear,s=void 0===l||l,c=r.motionLeave,f=void 0===c||c,d=r.motionDeadline,p=r.motionLeaveImmediately,h=r.onAppearPrepare,g=r.onEnterPrepare,v=r.onLeavePrepare,y=r.onAppearStart,b=r.onEnterStart,w=r.onLeaveStart,_=r.onAppearActive,S=r.onEnterActive,E=r.onLeaveActive,k=r.onAppearEnd,C=r.onEnterEnd,x=r.onLeaveEnd,O=r.onVisibleChanged,P=$(),T=(0,I.Z)(P,2),A=T[0],N=T[1],M=$(q),D=(0,I.Z)(M,2),R=D[0],L=D[1],j=$(null),z=(0,I.Z)(j,2),F=z[0],H=z[1],U=(0,u.useRef)(!1),B=(0,u.useRef)(null);function V(){return n()}var Z=(0,u.useRef)(!1);function W(){L(q,!0),H(null,!0)}function Q(e){var t=V();if(!e||e.deadline||e.target===t){var n,r=Z.current;R===Y&&r?n=null==k?void 0:k(t,e):R===G&&r?n=null==C?void 0:C(t,e):R===X&&r&&(n=null==x?void 0:x(t,e)),R!==q&&r&&!1!==n&&W()}}var te=be(Q),re=(0,I.Z)(te,1)[0],oe=function(e){var t,n,r;switch(e){case Y:return t={},(0,m.Z)(t,K,h),(0,m.Z)(t,J,y),(0,m.Z)(t,ee,_),t;case G:return n={},(0,m.Z)(n,K,g),(0,m.Z)(n,J,b),(0,m.Z)(n,ee,S),n;case X:return r={},(0,m.Z)(r,K,v),(0,m.Z)(r,J,w),(0,m.Z)(r,ee,E),r;default:return{}}},ie=u.useMemo((function(){return oe(R)}),[R]),ae=De(R,!e,(function(e){if(e===K){var t=ie[K];return t?t(V()):Ae}var n;return se in ie&&H((null===(n=ie[se])||void 0===n?void 0:n.call(ie,V(),null))||null),se===ee&&(re(V()),d>0&&(clearTimeout(B.current),B.current=setTimeout((function(){Q({deadline:!0})}),d))),se===ne&&W(),Ne})),ue=(0,I.Z)(ae,2),le=ue[0],se=ue[1],ce=Me(se);Z.current=ce,we((function(){N(t);var n,r=U.current;U.current=!0,!r&&t&&s&&(n=Y),r&&t&&a&&(n=G),(r&&!t&&f||!r&&p&&!t&&f)&&(n=X);var o=oe(n);n&&(e||o[K])?(L(n),le()):L(q)}),[t]),(0,u.useEffect)((function(){(R===Y&&!s||R===G&&!a||R===X&&!f)&&L(q)}),[s,a,f]),(0,u.useEffect)((function(){return function(){U.current=!1,clearTimeout(B.current)}}),[]);var fe=u.useRef(!1);(0,u.useEffect)((function(){A&&(fe.current=!0),void 0!==A&&R===q&&((fe.current||A)&&(null==O||O(A)),fe.current=!0)}),[A,R]);var de=F;return ie[K]&&se===J&&(de=(0,i.Z)({transition:"none"},de)),[R,se,de,null!=A?A:t]}(h,o,(function(){try{return g.current instanceof HTMLElement?g.current:z(v.current)}catch(e){return null}}),e),b=(0,I.Z)(y,4),w=b[0],_=b[1],S=b[2],E=b[3],k=u.useRef(E);E&&(k.current=!0);var C,x=u.useCallback((function(e){g.current=e,H(n,e)}),[n]),O=(0,i.Z)((0,i.Z)({},p),{},{visible:o});if(c)if(w===q)C=E?c((0,i.Z)({},O),x):!l&&k.current&&d?c((0,i.Z)((0,i.Z)({},O),{},{className:d}),x):s||!l&&!d?c((0,i.Z)((0,i.Z)({},O),{},{style:{display:"none"}}),x):null;else{var P,T;_===K?T="prepare":Me(_)?T="active":_===J&&(T="start");var A=ye(f,"".concat(w,"-").concat(T));C=c((0,i.Z)((0,i.Z)({},O),{},{className:R()(ye(f,w),(P={},(0,m.Z)(P,A,A&&T),(0,m.Z)(P,f,"string"==typeof f),P)),style:S}),x)}else C=null;u.isValidElement(C)&&B(C)&&(C.ref||(C=u.cloneElement(C,{ref:x})));return u.createElement(W,{ref:v},C)}));return n.displayName="CSSMotion",n}(ge),Le="add",Ie="keep",je="remove",ze="removed";function Fe(e){var t;return t=e&&"object"===(0,o.Z)(e)&&"key"in e?e:{key:e},(0,i.Z)((0,i.Z)({},t),{},{key:String(t.key)})}function He(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Fe)}var Ue=["component","children","onVisibleChanged","onAllRemoved"],Be=["status"],Ve=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Re,n=function(e){h(o,e);var n=v(o);function o(){var e;l(this,o);for(var t=arguments.length,r=new Array(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=He(e),u=He(t);a.forEach((function(e){for(var t=!1,a=r;a1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==je}))).forEach((function(t){t.key===e&&(t.status=Ie)}))})),n}(r,o);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ze||e.status!==je}))}}}]),o}(u.Component);(0,m.Z)(n,"defaultProps",{component:"div"})}(ge);var Ze,We=Re;function $e(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 qe(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,a=e.mask,l=e.maskMotion,s=e.maskAnimation,c=e.maskTransitionName;if(!a)return null;var f={};return(l||c||s)&&(f=(0,i.Z)({motionAppear:!0},$e({motion:l,prefixCls:t,transitionName:c,animation:s}))),u.createElement(We,(0,r.Z)({},f,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return u.createElement("div",{style:{zIndex:o},className:R()("".concat(t,"-mask"),n)})}))}function Ye(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 Ge(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ut(e){var t,n,r;if(It.isWindow(e)||9===e.nodeType){var o=It.getWindow(e);t={left:It.getWindowScrollLeft(o),top:It.getWindowScrollTop(o)},n=It.viewportWidth(o),r=It.viewportHeight(o)}else t=It.offset(e),n=It.outerWidth(e),r=It.outerHeight(e);return t.width=n,t.height=r,t}function Bt(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 Vt(e,t,n,r,o){var i=Bt(t,n[1]),a=Bt(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 Zt(e,t,n){return e.leftn.right}function Wt(e,t,n){return e.topn.bottom}function $t(e,t,n){var r=[];return It.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function qt(e,t){return e[t]=-e[t],e}function Yt(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Gt(e,t){e[0]=Yt(e[0],t.width),e[1]=Yt(e[1],t.height)}function Xt(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a);var s={},c=0,f=Ht(l,!(!(u=u||{})||!u.alwaysByViewport)),d=Ut(l);Gt(i,d),Gt(a,t);var p=Vt(d,t,o,i,a),h=It.merge(d,p);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&Zt(p,d,f)){var g=$t(o,/[lr]/gi,{l:"r",r:"l"}),v=qt(i,0),m=qt(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),It.mix(o,i)}(p,d,f,s))}return h.width!==d.width&&It.css(l,"width",It.width(l)+h.width-d.width),h.height!==d.height&&It.css(l,"height",It.height(l)+h.height-d.height),It.offset(l,{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:s}}function Qt(e,t,n){var r=n.target||t,o=Ut(r),i=!function(e,t){var n=Ht(e,t),r=Ut(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Xt(e,o,n,i)}Qt.__getOffsetParent=zt,Qt.__getVisibleRectForElement=Ht;var Kt={},Jt=[];function en(e,t){}function tn(e,t){}function nn(e,t,n){t||Kt[n]||(e(!1,n),Kt[n]=!0)}function rn(e,t){nn(en,e,t)}rn.preMessage=function(e){Jt.push(e)},rn.resetWarned=function(){Kt={}},rn.noteOnce=function(e,t){nn(tn,e,t)};var on=rn;var an=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=r.has(t);if(on(!u,"Warning: There may be circular references"),u)return!1;if(t===i)return!0;if(n&&a>1)return!1;r.add(t);var l=a+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var s=0;s0},e.prototype.connect_=function(){fn&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),gn?(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(){fn&&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;hn.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}(),mn=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Tn="undefined"!=typeof WeakMap?new WeakMap:new cn,An=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=vn.getInstance(),r=new Pn(t,n,this);Tn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){An.prototype[e]=function(){var t;return(t=Tn.get(this))[e].apply(t,arguments)}}));var Nn=void 0!==dn.ResizeObserver?dn.ResizeObserver:An;function Mn(e,t){var n=null,r=null;var o=new Nn((function(e){var o=(0,I.Z)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,u=i.height,l=Math.floor(a),s=Math.floor(u);n===l&&r===s||Promise.resolve().then((function(){t({width:l,height:s})})),n=l,r=s}}));return e&&o.observe(e),function(){o.disconnect()}}function Dn(e){return"function"!=typeof e?null:e()}function Rn(e){return"object"===(0,o.Z)(e)&&e?e:null}var Ln=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,l=e.monitorWindowResize,s=e.monitorBufferTime,c=void 0===s?0:s,f=u.useRef({}),d=u.useRef(),p=u.Children.only(n),h=u.useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=a;var g=function(e,t){var n=u.useRef(!1),r=u.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()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,i=d.current;if(!t&&n&&i){var a,u=Dn(n),l=Rn(n);f.current.element=u,f.current.point=l,f.current.align=r;var s=document.activeElement;return u&&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}(u)?a=Qt(i,u,r):l&&(a=function(e,t,n){var r,o,i=It.getDocument(e),a=i.defaultView||i.parentWindow,u=It.getWindowScrollLeft(a),l=It.getWindowScrollTop(a),s=It.viewportWidth(a),c=It.viewportHeight(a),f={left:r="pageX"in t?t.pageX:u+t.clientX,top:o="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},d=r>=0&&r<=u+s&&o>=0&&o<=l+c,p=[n.points[0],"cc"];return Xt(e,f,Ge(Ge({},n),{},{points:p}),d)}(i,l,r)),function(e,t){e!==document.activeElement&&function(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}(t,e)&&"function"==typeof e.focus&&e.focus()}(s,i),o&&a&&o(i,a),!0}return!1}),c),v=(0,I.Z)(g,2),m=v[0],b=v[1],w=u.useState(),_=(0,I.Z)(w,2),S=_[0],E=_[1],k=u.useState(),C=(0,I.Z)(k,2),x=C[0],O=C[1];return sn((function(){E(Dn(o)),O(Rn(o))})),u.useEffect((function(){var e,t;f.current.element===S&&((e=f.current.point)===(t=x)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&an(f.current.align,i)||m()})),u.useEffect((function(){return Mn(d.current,m)}),[d.current]),u.useEffect((function(){return Mn(S,m)}),[S]),u.useEffect((function(){r?b():m()}),[r]),u.useEffect((function(){if(l){var e=function(e,t,n,r){var o=y.unstable_batchedUpdates?function(e){y.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)}}}(window,"resize",m);return e.remove}}),[l]),u.useEffect((function(){return function(){b()}}),[]),u.useImperativeHandle(t,(function(){return{forceAlign:function(){return m(!0)}}})),u.isValidElement(p)&&(p=u.cloneElement(p,{ref:U(p.ref,d)})),p},In=u.forwardRef(Ln);In.displayName="Align";var jn=In,zn=n(5150);function Fn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ Fn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),u=new x(o||[]);return r(a,"_invoke",{value:S(e,n,u)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function g(){}var v={};s(v,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(O([])));y&&y!==t&&n.call(y,a)&&(v=y);var b=g.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(r,a,u,l){var s=f(e[r],e,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==(0,o.Z)(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,u,l)}),(function(e){i("throw",e,u,l)})):t.resolve(d).then((function(e){c.value=e,u(c)}),(function(e){return i("throw",e,u,l)}))}l(s.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=E(a,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function O(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),d}},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;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Hn(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function Un(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Hn(i,r,o,a,u,"next",e)}function u(e){Hn(i,r,o,a,u,"throw",e)}a(void 0)}))}}var Bn=n(3204),Vn=["measure","alignPre","align",null,"motion"],Zn=u.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,a=e.className,l=e.style,s=e.children,c=e.zIndex,f=e.stretch,d=e.destroyPopupOnHide,p=e.forceRender,h=e.align,g=e.point,v=e.getRootDomNode,m=e.getClassNameFromAlign,y=e.onAlign,b=e.onMouseEnter,w=e.onMouseLeave,_=e.onMouseDown,S=e.onTouchStart,E=e.onClick,k=(0,u.useRef)(),x=(0,u.useRef)(),O=(0,u.useState)(),P=(0,I.Z)(O,2),T=P[0],A=P[1],N=function(e){var t=u.useState({width:0,height:0}),n=(0,I.Z)(t,2),r=n[0],o=n[1];return[u.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),o({width:t,height:n})}]}(f),M=(0,I.Z)(N,2),D=M[0],L=M[1];var j=function(e,t){var n=(0,Bn.Z)(null),r=(0,I.Z)(n,2),o=r[0],i=r[1],a=(0,u.useRef)();function l(e){i(e,!0)}function s(){C.cancel(a.current)}return(0,u.useEffect)((function(){l("measure")}),[e]),(0,u.useEffect)((function(){"measure"===o&&t(),o&&(a.current=C(Un(Fn().mark((function e(){var t,n;return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Vn.indexOf(o),(n=Vn[t+1])&&-1!==t&&l(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,u.useEffect)((function(){return function(){s()}}),[]),[o,function(e){s(),a.current=C((function(){l((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){f&&L(v())})),z=(0,I.Z)(j,2),F=z[0],H=z[1],U=(0,u.useState)(0),B=(0,I.Z)(U,2),V=B[0],Z=B[1],W=(0,u.useRef)();function $(){var e;null===(e=k.current)||void 0===e||e.forceAlign()}function q(e,t){var n=m(t);T!==n&&A(n),Z((function(e){return e+1})),"align"===F&&(null==y||y(e,t))}(0,zn.Z)((function(){"alignPre"===F&&Z(0)}),[F]),(0,zn.Z)((function(){"align"===F&&(V<3?$():H((function(){var e;null===(e=W.current)||void 0===e||e.call(W)})))}),[V]);var Y=(0,i.Z)({},$e(e));function G(){return new Promise((function(e){W.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Y[e];Y[e]=function(e,n){return H(),null==t?void 0:t(e,n)}})),u.useEffect((function(){Y.motionName||"motion"!==F||H()}),[Y.motionName,F]),u.useImperativeHandle(t,(function(){return{forceAlign:$,getElement:function(){return x.current}}}));var X=(0,i.Z)((0,i.Z)({},D),{},{zIndex:c,opacity:"motion"!==F&&"stable"!==F&&n?0:void 0,pointerEvents:n||"stable"===F?void 0:"none"},l),Q=!0;null==h||!h.points||"align"!==F&&"stable"!==F||(Q=!1);var K=s;return u.Children.count(s)>1&&(K=u.createElement("div",{className:"".concat(o,"-content")},s)),u.createElement(We,(0,r.Z)({visible:n,ref:x,leavedClassName:"".concat(o,"-hidden")},Y,{onAppearPrepare:G,onEnterPrepare:G,removeOnLeave:d,forceRender:p}),(function(e,t){var n=e.className,r=e.style,l=R()(o,a,T,n);return u.createElement(jn,{target:g||v,key:"popup",ref:k,monitorWindowResize:!0,disabled:Q,align:h,onAlign:q},u.createElement("div",{ref:t,className:l,onMouseEnter:b,onMouseLeave:w,onMouseDownCapture:_,onTouchStartCapture:S,onClick:E,style:(0,i.Z)((0,i.Z)({},r),X)},K))}))}));Zn.displayName="PopupInner";var Wn=Zn,$n=u.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,a=e.zIndex,l=e.children,s=e.mobile,c=(s=void 0===s?{}:s).popupClassName,f=s.popupStyle,d=s.popupMotion,p=void 0===d?{}:d,h=s.popupRender,g=e.onClick,v=u.useRef();u.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var m=(0,i.Z)({zIndex:a},f),y=l;return u.Children.count(l)>1&&(y=u.createElement("div",{className:"".concat(n,"-content")},l)),h&&(y=h(y)),u.createElement(We,(0,r.Z)({visible:o,ref:v,removeOnLeave:!0},p),(function(e,t){var r=e.className,o=e.style,a=R()(n,c,r);return u.createElement("div",{ref:t,className:a,onClick:g,style:(0,i.Z)((0,i.Z)({},o),m)},y)}))}));$n.displayName="MobilePopupInner";var qn=$n,Yn=["visible","mobile"],Gn=u.forwardRef((function(e,t){var n=e.visible,o=e.mobile,l=(0,a.Z)(e,Yn),s=(0,u.useState)(n),c=(0,I.Z)(s,2),f=c[0],d=c[1],p=(0,u.useState)(!1),h=(0,I.Z)(p,2),g=h[0],v=h[1],m=(0,i.Z)((0,i.Z)({},l),{},{visible:f});(0,u.useEffect)((function(){d(n),n&&o&&v(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))}())}),[n,o]);var y=g?u.createElement(qn,(0,r.Z)({},m,{mobile:o,ref:t})):u.createElement(Wn,(0,r.Z)({},m,{ref:t}));return u.createElement("div",null,u.createElement(qe,m),y)}));Gn.displayName="Popup";var Xn=Gn,Qn=u.createContext(null);function Kn(){}function Jn(){return""}function er(e){return e?e.ownerDocument:window.document}var tr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var nr,rr,or=(nr=M,rr=function(e){h(n,e);var t=v(n);function n(e){var o,i;return l(this,n),o=t.call(this,e),(0,m.Z)(d(o),"popupRef",u.createRef()),(0,m.Z)(d(o),"triggerRef",u.createRef()),(0,m.Z)(d(o),"portalContainer",void 0),(0,m.Z)(d(o),"attachId",void 0),(0,m.Z)(d(o),"clickOutsideHandler",void 0),(0,m.Z)(d(o),"touchOutsideHandler",void 0),(0,m.Z)(d(o),"contextMenuOutsideHandler1",void 0),(0,m.Z)(d(o),"contextMenuOutsideHandler2",void 0),(0,m.Z)(d(o),"mouseDownTimeout",void 0),(0,m.Z)(d(o),"focusTime",void 0),(0,m.Z)(d(o),"preClickTime",void 0),(0,m.Z)(d(o),"preTouchTime",void 0),(0,m.Z)(d(o),"delayTimer",void 0),(0,m.Z)(d(o),"hasPopupMouseDown",void 0),(0,m.Z)(d(o),"onMouseEnter",(function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)})),(0,m.Z)(d(o),"onMouseMove",(function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)})),(0,m.Z)(d(o),"onMouseLeave",(function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,m.Z)(d(o),"onPopupMouseEnter",(function(){o.clearDelayTimer()})),(0,m.Z)(d(o),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&x(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,m.Z)(d(o),"onFocus",(function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))})),(0,m.Z)(d(o),"onMouseDown",(function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()})),(0,m.Z)(d(o),"onTouchStart",(function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()})),(0,m.Z)(d(o),"onBlur",(function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)})),(0,m.Z)(d(o),"onContextMenu",(function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)})),(0,m.Z)(d(o),"onContextMenuClose",(function(){o.isContextMenuToShow()&&o.close()})),(0,m.Z)(d(o),"onClick",(function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)})),(0,m.Z)(d(o),"onPopupMouseDown",(function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)})),(0,m.Z)(d(o),"onDocumentClick",(function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),r=o.getPopupDomNode();x(n,t)&&!o.isContextMenuOnly()||x(r,t)||o.hasPopupMouseDown||o.close()}})),(0,m.Z)(d(o),"getRootDomNode",(function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=O(o.triggerRef.current);if(t)return t}catch(e){}return y.findDOMNode(d(o))})),(0,m.Z)(d(o),"getPopupClassNameFromAlign",(function(e){var t=[],n=o.props,r=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,l=n.getPopupClassNameFromAlign;return r&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a