@nocobase/app 1.7.0-beta.32 → 1.7.0-beta.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/{5977.116afc86.async.js → 5977.08716e4e.async.js} +19 -19
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/{npm._at_rc-component.12d32a22.async.js → npm._at_rc-component.5f4cc5e2.async.js} +1 -1
- package/dist/client/{npm.rc-image.c695cc37.async.js → npm.rc-image.d550fa79.async.js} +1 -1
- package/dist/client/{npm.rc-menu.ab059b1c.async.js → npm.rc-menu.da4ef0ce.async.js} +1 -1
- package/dist/client/{npm.rc-select.6b32e443.async.js → npm.rc-select.44fb85b4.async.js} +1 -1
- package/dist/client/{npm.rc-tree.a1cc1b34.async.js → npm.rc-tree.49888c60.async.js} +1 -1
- package/dist/client/p__index.55184f68.async.js +1656 -0
- package/dist/client/{umi.4070a715.js → umi.fa53bc07.js} +1 -1
- package/package.json +6 -6
- package/dist/client/p__index.b637ccd0.async.js +0 -1656
package/dist/client/index.html
CHANGED
|
@@ -5,4 +5,4 @@ html body {
|
|
|
5
5
|
`.concat(qe?"width: calc(100% - ".concat(ze,"px);"):"",`
|
|
6
6
|
}`),Ne)}else(0,j.jL)(Ne);return function(){(0,j.jL)(Ne)}},[be,Ne])}var Q=!1;function se(he){return typeof he=="boolean"&&(Q=he),Q}var le=function(be){return be===!1?!1:!(0,S.Z)()||!be?null:typeof be=="string"?document.querySelector(be):typeof be=="function"?be():be},Se=z.forwardRef(function(he,be){var ne=he.open,$e=he.autoLock,Ne=he.getContainer,ze=he.debug,qe=he.autoDestroy,xe=qe===void 0?!0:qe,ht=he.children,Pe=z.useState(ne),bt=(0,k.Z)(Pe,2),wt=bt[0],Et=bt[1],St=wt||ne;z.useEffect(function(){(xe||ne)&&Et(ne)},[ne,xe]);var Ye=z.useState(function(){return le(Ne)}),Mt=(0,k.Z)(Ye,2),U=Mt[0],F=Mt[1];z.useEffect(function(){var r=le(Ne);F(r??null)});var L=R(St&&!U,ze),B=(0,k.Z)(L,2),X=B[0],Ue=B[1],Ze=U??X;de($e&&ne&&(0,S.Z)()&&(Ze===X||Ze===document.body));var ft=null;if(ht&&(0,I.Yr)(ht)&&be){var lt=ht;ft=lt.ref}var i=(0,I.x1)(ft,be);if(!St||!(0,S.Z)()||U===void 0)return null;var a=Ze===!1||se(),t=ht;return be&&(t=z.cloneElement(ht,{ref:i})),z.createElement(p.Provider,{value:Ue},a?t:(0,oe.createPortal)(t,Ze))}),pe=Se,Oe=pe},92266:function(Dt,Te,m){m.d(Te,{Qd:function(){return Ze},tv:function(){return lt}});function k(i,a){(a==null||a>i.length)&&(a=i.length);for(var t=0,r=Array(a);t<a;t++)r[t]=i[t];return r}function z(i,a){if(i){if(typeof i=="string")return k(i,a);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?k(i,a):void 0}}function oe(i,a){var t=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=z(i))||a&&i&&typeof i.length=="number"){t&&(i=t);var r=0,u=function(){};return{s:u,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(x){throw x},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
7
7
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,g=!0,b=!1;return{s:function(){t=t.call(i)},n:function(){var x=t.next();return g=x.done,x},e:function(x){b=!0,s=x},f:function(){try{g||t.return==null||t.return()}finally{if(b)throw s}}}}function S(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function q(i){"@babel/helpers - typeof";return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},q(i)}function I(i,a){if(q(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,a||"default");if(q(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function ke(i){var a=I(i,"string");return q(a)=="symbol"?a:a+""}function p(i,a){for(var t=0;t<a.length;t++){var r=a[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,ke(r.key),r)}}function Y(i,a,t){return a&&p(i.prototype,a),t&&p(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}function N(i,a,t){return(a=ke(a))in i?Object.defineProperty(i,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[a]=t,i}var D,R;function j(i,a,t){if(a<0||a>31||i>>>a)throw new RangeError("Value out of range");for(var r=a-1;r>=0;r--)t.push(i>>>r&1)}function G(i,a){return(i>>>a&1)!=0}function ee(i){if(!i)throw new Error("Assertion error")}var K=function(){function i(a,t){S(this,i),N(this,"modeBits",void 0),N(this,"numBitsCharCount",void 0),this.modeBits=a,this.numBitsCharCount=t}return Y(i,[{key:"numCharCountBits",value:function(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}}]),i}();D=K,N(K,"NUMERIC",new D(1,[10,12,14])),N(K,"ALPHANUMERIC",new D(2,[9,11,13])),N(K,"BYTE",new D(4,[8,16,16])),N(K,"KANJI",new D(8,[8,10,12])),N(K,"ECI",new D(7,[0,0,0]));var C=Y(function i(a,t){S(this,i),N(this,"ordinal",void 0),N(this,"formatBits",void 0),this.ordinal=a,this.formatBits=t});R=C,N(C,"LOW",new R(0,1)),N(C,"MEDIUM",new R(1,0)),N(C,"QUARTILE",new R(2,3)),N(C,"HIGH",new R(3,2));var de=function(){function i(a,t,r){if(S(this,i),N(this,"mode",void 0),N(this,"numChars",void 0),N(this,"bitData",void 0),this.mode=a,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return Y(i,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var r=[],u=oe(t),s;try{for(u.s();!(s=u.n()).done;){var g=s.value;j(g,8,r)}}catch(b){u.e(b)}finally{u.f()}return new i(K.BYTE,t.length,r)}},{key:"makeNumeric",value:function(t){if(!i.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var r=[],u=0;u<t.length;){var s=Math.min(t.length-u,3);j(parseInt(t.substring(u,u+s),10),s*3+1,r),u+=s}return new i(K.NUMERIC,t.length,r)}},{key:"makeAlphanumeric",value:function(t){if(!i.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r=[],u;for(u=0;u+2<=t.length;u+=2){var s=i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(u))*45;s+=i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(u+1)),j(s,11,r)}return u<t.length&&j(i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(u)),6,r),new i(K.ALPHANUMERIC,t.length,r)}},{key:"makeSegments",value:function(t){return t==""?[]:i.isNumeric(t)?[i.makeNumeric(t)]:i.isAlphanumeric(t)?[i.makeAlphanumeric(t)]:[i.makeBytes(i.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)j(t,8,r);else if(t<16384)j(2,2,r),j(t,14,r);else if(t<1e6)j(6,3,r),j(t,21,r);else throw new RangeError("ECI assignment value out of range");return new i(K.ECI,0,r)}},{key:"isNumeric",value:function(t){return i.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return i.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(t,r){var u=0,s=oe(t),g;try{for(s.s();!(g=s.n()).done;){var b=g.value,E=b.mode.numCharCountBits(r);if(b.numChars>=1<<E)return 1/0;u+=4+E+b.bitData.length}}catch(x){s.e(x)}finally{s.f()}return u}},{key:"toUtf8ByteArray",value:function(t){for(var r=encodeURI(t),u=[],s=0;s<r.length;s++)r.charAt(s)!="%"?u.push(r.charCodeAt(s)):(u.push(parseInt(r.substring(s+1,s+3),16)),s+=2);return u}}]),i}();N(de,"NUMERIC_REGEX",/^[0-9]*$/),N(de,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/),N(de,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var Q=function(){function i(a,t,r,u){S(this,i),N(this,"size",void 0),N(this,"mask",void 0),N(this,"modules",[]),N(this,"isFunction",[]),N(this,"version",void 0),N(this,"errorCorrectionLevel",void 0);var s=u;if(this.version=a,this.errorCorrectionLevel=t,a<i.MIN_VERSION||a>i.MAX_VERSION)throw new RangeError("Version value out of range");if(s<-1||s>7)throw new RangeError("Mask value out of range");this.size=a*4+17;for(var g=[],b=0;b<this.size;b++)g.push(!1);for(var E=0;E<this.size;E++)this.modules.push(g.slice()),this.isFunction.push(g.slice());this.drawFunctionPatterns();var x=this.addEccAndInterleave(r);if(this.drawCodewords(x),s==-1)for(var $=1e9,te=0;te<8;te++){this.applyMask(te),this.drawFormatBits(te);var P=this.getPenaltyScore();P<$&&(s=te,$=P),this.applyMask(te)}ee(0<=s&&s<=7),this.mask=s,this.applyMask(s),this.drawFormatBits(s),this.isFunction=[]}return Y(i,[{key:"getModule",value:function(t,r){return 0<=t&&t<this.size&&0<=r&&r<this.size&&this.modules[r][t]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var t=0;t<this.size;t++)this.setFunctionModule(6,t,t%2==0),this.setFunctionModule(t,6,t%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var r=this.getAlignmentPatternPositions(),u=r.length,s=0;s<u;s++)for(var g=0;g<u;g++)s==0&&g==0||s==0&&g==u-1||s==u-1&&g==0||this.drawAlignmentPattern(r[s],r[g]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(t){for(var r=this.errorCorrectionLevel.formatBits<<3|t,u=r,s=0;s<10;s++)u=u<<1^(u>>>9)*1335;var g=(r<<10|u)^21522;ee(g>>>15==0);for(var b=0;b<=5;b++)this.setFunctionModule(8,b,G(g,b));this.setFunctionModule(8,7,G(g,6)),this.setFunctionModule(8,8,G(g,7)),this.setFunctionModule(7,8,G(g,8));for(var E=9;E<15;E++)this.setFunctionModule(14-E,8,G(g,E));for(var x=0;x<8;x++)this.setFunctionModule(this.size-1-x,8,G(g,x));for(var $=8;$<15;$++)this.setFunctionModule(8,this.size-15+$,G(g,$));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var t=this.version,r=0;r<12;r++)t=t<<1^(t>>>11)*7973;var u=this.version<<12|t;ee(u>>>18==0);for(var s=0;s<18;s++){var g=G(u,s),b=this.size-11+s%3,E=Math.floor(s/3);this.setFunctionModule(b,E,g),this.setFunctionModule(E,b,g)}}}},{key:"drawFinderPattern",value:function(t,r){for(var u=-4;u<=4;u++)for(var s=-4;s<=4;s++){var g=Math.max(Math.abs(s),Math.abs(u)),b=t+s,E=r+u;0<=b&&b<this.size&&0<=E&&E<this.size&&this.setFunctionModule(b,E,g!=2&&g!=4)}}},{key:"drawAlignmentPattern",value:function(t,r){for(var u=-2;u<=2;u++)for(var s=-2;s<=2;s++)this.setFunctionModule(t+s,r+u,Math.max(Math.abs(s),Math.abs(u))!=1)}},{key:"setFunctionModule",value:function(t,r,u){this.modules[r][t]=u,this.isFunction[r][t]=!0}},{key:"addEccAndInterleave",value:function(t){var r=this.version,u=this.errorCorrectionLevel;if(t.length!=i.getNumDataCodewords(r,u))throw new RangeError("Invalid argument");for(var s=i.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][r],g=i.ECC_CODEWORDS_PER_BLOCK[u.ordinal][r],b=Math.floor(i.getNumRawDataModules(r)/8),E=s-b%s,x=Math.floor(b/s),$=[],te=i.reedSolomonComputeDivisor(g),P=0,re=0;P<s;P++){var V=t.slice(re,re+x-g+(P<E?0:1));re+=V.length;var ce=i.reedSolomonComputeRemainder(V,te);P<E&&V.push(0),$.push(V.concat(ce))}for(var _=[],ge=function(W){$.forEach(function(ae,Xe){(W!=x-g||Xe>=E)&&_.push(ae[W])})},ye=0;ye<$[0].length;ye++)ge(ye);return ee(_.length==b),_}},{key:"drawCodewords",value:function(t){if(t.length!=Math.floor(i.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var r=0,u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(var s=0;s<this.size;s++)for(var g=0;g<2;g++){var b=u-g,E=(u+1&2)==0,x=E?this.size-1-s:s;!this.isFunction[x][b]&&r<t.length*8&&(this.modules[x][b]=G(t[r>>>3],7-(r&7)),r++)}}ee(r==t.length*8)}},{key:"applyMask",value:function(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(var r=0;r<this.size;r++)for(var u=0;u<this.size;u++){var s=void 0;switch(t){case 0:s=(u+r)%2==0;break;case 1:s=r%2==0;break;case 2:s=u%3==0;break;case 3:s=(u+r)%3==0;break;case 4:s=(Math.floor(u/3)+Math.floor(r/2))%2==0;break;case 5:s=u*r%2+u*r%3==0;break;case 6:s=(u*r%2+u*r%3)%2==0;break;case 7:s=((u+r)%2+u*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][u]&&s&&(this.modules[r][u]=!this.modules[r][u])}}},{key:"getPenaltyScore",value:function(){for(var t=0,r=0;r<this.size;r++){for(var u=!1,s=0,g=[0,0,0,0,0,0,0],b=0;b<this.size;b++)this.modules[r][b]==u?(s++,s==5?t+=i.PENALTY_N1:s>5&&t++):(this.finderPenaltyAddHistory(s,g),u||(t+=this.finderPenaltyCountPatterns(g)*i.PENALTY_N3),u=this.modules[r][b],s=1);t+=this.finderPenaltyTerminateAndCount(u,s,g)*i.PENALTY_N3}for(var E=0;E<this.size;E++){for(var x=!1,$=0,te=[0,0,0,0,0,0,0],P=0;P<this.size;P++)this.modules[P][E]==x?($++,$==5?t+=i.PENALTY_N1:$>5&&t++):(this.finderPenaltyAddHistory($,te),x||(t+=this.finderPenaltyCountPatterns(te)*i.PENALTY_N3),x=this.modules[P][E],$=1);t+=this.finderPenaltyTerminateAndCount(x,$,te)*i.PENALTY_N3}for(var re=0;re<this.size-1;re++)for(var V=0;V<this.size-1;V++){var ce=this.modules[re][V];ce==this.modules[re][V+1]&&ce==this.modules[re+1][V]&&ce==this.modules[re+1][V+1]&&(t+=i.PENALTY_N2)}var _=0,ge=oe(this.modules),ye;try{for(ge.s();!(ye=ge.n()).done;){var Fe=ye.value;_=Fe.reduce(function(Xe,Ke){return Xe+(Ke?1:0)},_)}}catch(Xe){ge.e(Xe)}finally{ge.f()}var W=this.size*this.size,ae=Math.ceil(Math.abs(_*20-W*10)/W)-1;return ee(0<=ae&&ae<=9),t+=ae*i.PENALTY_N4,ee(0<=t&&t<=2568888),t}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return[];for(var t=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(t*2-2))*2,u=[6],s=this.size-7;u.length<t;s-=r)u.splice(1,0,s);return u}},{key:"finderPenaltyCountPatterns",value:function(t){var r=t[1];ee(r<=this.size*3);var u=r>0&&t[2]==r&&t[3]==r*3&&t[4]==r&&t[5]==r;return(u&&t[0]>=r*4&&t[6]>=r?1:0)+(u&&t[6]>=r*4&&t[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(t,r,u){var s=r;return t&&(this.finderPenaltyAddHistory(s,u),s=0),s+=this.size,this.finderPenaltyAddHistory(s,u),this.finderPenaltyCountPatterns(u)}},{key:"finderPenaltyAddHistory",value:function(t,r){var u=t;r[0]==0&&(u+=this.size),r.pop(),r.unshift(u)}}],[{key:"encodeText",value:function(t,r){var u=de.makeSegments(t);return i.encodeSegments(u,r)}},{key:"encodeBinary",value:function(t,r){var u=de.makeBytes(t);return i.encodeSegments([u],r)}},{key:"encodeSegments",value:function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,b=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(i.MIN_VERSION<=u&&u<=s&&s<=i.MAX_VERSION)||g<-1||g>7)throw new RangeError("Invalid value");var E,x;for(E=u;;E++){var $=i.getNumDataCodewords(E,r)*8,te=de.getTotalBits(t,E);if(te<=$){x=te;break}if(E>=s)throw new RangeError("Data too long")}for(var P=r,re=0,V=[C.MEDIUM,C.QUARTILE,C.HIGH];re<V.length;re++){var ce=V[re];b&&x<=i.getNumDataCodewords(E,ce)*8&&(P=ce)}var _=[],ge=oe(t),ye;try{for(ge.s();!(ye=ge.n()).done;){var Fe=ye.value;j(Fe.mode.modeBits,4,_),j(Fe.numChars,Fe.mode.numCharCountBits(E),_);var W=oe(Fe.getData()),ae;try{for(W.s();!(ae=W.n()).done;){var Xe=ae.value;_.push(Xe)}}catch(it){W.e(it)}finally{W.f()}}}catch(it){ge.e(it)}finally{ge.f()}ee(_.length==x);var Ke=i.getNumDataCodewords(E,P)*8;ee(_.length<=Ke),j(0,Math.min(4,Ke-_.length),_),j(0,(8-_.length%8)%8,_),ee(_.length%8==0);for(var Ce=236;_.length<Ke;Ce^=253)j(Ce,8,_);for(var _e=[];_e.length*8<_.length;)_e.push(0);return _.forEach(function(it,vt){return _e[vt>>>3]|=it<<7-(vt&7)}),new i(E,P,_e,g)}},{key:"getNumRawDataModules",value:function(t){if(t<i.MIN_VERSION||t>i.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*t+128)*t+64;if(t>=2){var u=Math.floor(t/7)+2;r-=(25*u-10)*u-55,t>=7&&(r-=36)}return ee(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(t,r){return Math.floor(i.getNumRawDataModules(t)/8)-i.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t]*i.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t]}},{key:"reedSolomonComputeDivisor",value:function(t){if(t<1||t>255)throw new RangeError("Degree out of range");for(var r=[],u=0;u<t-1;u++)r.push(0);r.push(1);for(var s=1,g=0;g<t;g++){for(var b=0;b<r.length;b++)r[b]=i.reedSolomonMultiply(r[b],s),b+1<r.length&&(r[b]^=r[b+1]);s=i.reedSolomonMultiply(s,2)}return r}},{key:"reedSolomonComputeRemainder",value:function(t,r){var u=r.map(function(){return 0}),s=oe(t),g;try{var b=function(){var x=g.value,$=x^u.shift();u.push(0),r.forEach(function(te,P){return u[P]^=i.reedSolomonMultiply(te,$)})};for(s.s();!(g=s.n()).done;)b()}catch(E){s.e(E)}finally{s.f()}return u}},{key:"reedSolomonMultiply",value:function(t,r){if(t>>>8||r>>>8)throw new RangeError("Byte out of range");for(var u=0,s=7;s>=0;s--)u=u<<1^(u>>>7)*285,u^=(r>>>s&1)*t;return ee(u>>>8==0),u}}]),i}();N(Q,"MIN_VERSION",1),N(Q,"MAX_VERSION",40),N(Q,"PENALTY_N1",3),N(Q,"PENALTY_N2",3),N(Q,"PENALTY_N3",40),N(Q,"PENALTY_N4",10),N(Q,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]),N(Q,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var se={L:C.LOW,M:C.MEDIUM,Q:C.QUARTILE,H:C.HIGH},le=128,Se="L",pe="#FFFFFF",Oe="#000000",he=!1,be=1,ne=4,$e=0,Ne=.1;function ze(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=[];return i.forEach(function(r,u){var s=null;r.forEach(function(g,b){if(!g&&s!==null){t.push("M".concat(s+a," ").concat(u+a,"h").concat(b-s,"v1H").concat(s+a,"z")),s=null;return}if(b===r.length-1){if(!g)return;s===null?t.push("M".concat(b+a,",").concat(u+a," h1v1H").concat(b+a,"z")):t.push("M".concat(s+a,",").concat(u+a," h").concat(b+1-s,"v1H").concat(s+a,"z"));return}g&&s===null&&(s=b)})}),t.join("")}function qe(i,a){return i.slice().map(function(t,r){return r<a.y||r>=a.y+a.h?t:t.map(function(u,s){return s<a.x||s>=a.x+a.w?u:!1})})}function xe(i,a,t,r){if(r==null)return null;var u=i.length+t*2,s=Math.floor(a*Ne),g=u/a,b=(r.width||s)*g,E=(r.height||s)*g,x=r.x==null?i.length/2-b/2:r.x*g,$=r.y==null?i.length/2-E/2:r.y*g,te=r.opacity==null?1:r.opacity,P=null;if(r.excavate){var re=Math.floor(x),V=Math.floor($),ce=Math.ceil(b+x-re),_=Math.ceil(E+$-V);P={x:re,y:V,w:ce,h:_}}var ge=r.crossOrigin;return{x,y:$,h:E,w:b,excavation:P,opacity:te,crossOrigin:ge}}function ht(i,a){return a!=null?Math.floor(a):i?ne:$e}var Pe=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function bt(){return bt=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},bt.apply(null,arguments)}function wt(i,a){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);a&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),t.push.apply(t,r)}return t}function Et(i){for(var a=1;a<arguments.length;a++){var t=arguments[a]!=null?arguments[a]:{};a%2?wt(Object(t),!0).forEach(function(r){N(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):wt(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function St(i){if(Array.isArray(i))return i}function Ye(i,a){var t=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(t!=null){var r,u,s,g,b=[],E=!0,x=!1;try{if(s=(t=t.call(i)).next,a===0){if(Object(t)!==t)return;E=!1}else for(;!(E=(r=s.call(t)).done)&&(b.push(r.value),b.length!==a);E=!0);}catch($){x=!0,u=$}finally{try{if(!E&&t.return!=null&&(g=t.return(),Object(g)!==g))return}finally{if(x)throw u}}return b}}function Mt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(i,a){return St(i)||Ye(i,a)||z(i,a)||Mt()}function F(i,a){if(i==null)return{};var t={};for(var r in i)if({}.hasOwnProperty.call(i,r)){if(a.indexOf(r)!==-1)continue;t[r]=i[r]}return t}function L(i,a){if(i==null)return{};var t,r,u=F(i,a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(r=0;r<s.length;r++)t=s[r],a.indexOf(t)===-1&&{}.propertyIsEnumerable.call(i,t)&&(u[t]=i[t])}return u}var B=m(67294);function X(i){var a=i.value,t=i.level,r=i.minVersion,u=i.includeMargin,s=i.marginSize,g=i.imageSettings,b=i.size,E=(0,B.useMemo)(function(){var V=de.makeSegments(a);return Q.encodeSegments(V,se[t],r)},[a,t,r]),x=(0,B.useMemo)(function(){var V=E.getModules(),ce=ht(u,s),_=V.length+ce*2,ge=xe(V,b,ce,g);return{cells:V,margin:ce,numCells:_,calculatedImageSettings:ge}},[E,b,g,u,s]),$=x.cells,te=x.margin,P=x.numCells,re=x.calculatedImageSettings;return{qrcode:E,margin:te,cells:$,numCells:P,calculatedImageSettings:re}}var Ue=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],Ze=B.forwardRef(function(a,t){var r=a.value,u=a.size,s=u===void 0?le:u,g=a.level,b=g===void 0?Se:g,E=a.bgColor,x=E===void 0?pe:E,$=a.fgColor,te=$===void 0?Oe:$,P=a.includeMargin,re=P===void 0?he:P,V=a.minVersion,ce=V===void 0?be:V,_=a.marginSize,ge=a.style,ye=a.imageSettings,Fe=L(a,Ue),W=ye==null?void 0:ye.src,ae=(0,B.useRef)(null),Xe=(0,B.useRef)(null),Ke=(0,B.useCallback)(function(tt){ae.current=tt,typeof t=="function"?t(tt):t&&(t.current=tt)},[t]),Ce=(0,B.useState)(!1),_e=U(Ce,2),it=_e[1],vt=X({value:r,level:b,minVersion:ce,includeMargin:re,marginSize:_,imageSettings:ye,size:s}),et=vt.margin,xt=vt.cells,Nt=vt.numCells,je=vt.calculatedImageSettings;(0,B.useEffect)(function(){if(ae.current!=null){var tt=ae.current,me=tt.getContext("2d");if(!me)return;var Tt=xt,Ut=Xe.current,or=je!=null&&Ut!==null&&Ut.complete&&Ut.naturalHeight!==0&&Ut.naturalWidth!==0;or&&je.excavation!=null&&(Tt=qe(xt,je.excavation));var c=window.devicePixelRatio||1;tt.height=tt.width=s*c;var h=s/Nt*c;me.scale(h,h),me.fillStyle=x,me.fillRect(0,0,Nt,Nt),me.fillStyle=te,Pe?me.fill(new Path2D(ze(Tt,et))):xt.forEach(function(f,M){f.forEach(function(O,H){O&&me.fillRect(H+et,M+et,1,1)})}),je&&(me.globalAlpha=je.opacity),or&&me.drawImage(Ut,je.x+et,je.y+et,je.w,je.h)}}),(0,B.useEffect)(function(){it(!1)},[W]);var Pt=Et({height:s,width:s},ge),Ot=null;return W!=null&&(Ot=B.createElement("img",{src:W,key:W,style:{display:"none"},onLoad:function(){it(!0)},ref:Xe,crossOrigin:je==null?void 0:je.crossOrigin})),B.createElement(B.Fragment,null,B.createElement("canvas",bt({style:Pt,height:s,width:s,ref:Ke,role:"img"},Fe)),Ot)});Ze.displayName="QRCodeCanvas";var ft=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],lt=B.forwardRef(function(a,t){var r=a.value,u=a.size,s=u===void 0?le:u,g=a.level,b=g===void 0?Se:g,E=a.bgColor,x=E===void 0?pe:E,$=a.fgColor,te=$===void 0?Oe:$,P=a.includeMargin,re=P===void 0?he:P,V=a.minVersion,ce=V===void 0?be:V,_=a.title,ge=a.marginSize,ye=a.imageSettings,Fe=L(a,ft),W=X({value:r,level:b,minVersion:ce,includeMargin:re,marginSize:ge,imageSettings:ye,size:s}),ae=W.margin,Xe=W.cells,Ke=W.numCells,Ce=W.calculatedImageSettings,_e=Xe,it=null;ye!=null&&Ce!=null&&(Ce.excavation!=null&&(_e=qe(Xe,Ce.excavation)),it=B.createElement("image",{href:ye.src,height:Ce.h,width:Ce.w,x:Ce.x+ae,y:Ce.y+ae,preserveAspectRatio:"none",opacity:Ce.opacity,crossOrigin:Ce.crossOrigin}));var vt=ze(_e,ae);return B.createElement("svg",bt({height:s,width:s,viewBox:"0 0 ".concat(Ke," ").concat(Ke),ref:t,role:"img"},Fe),!!_&&B.createElement("title",null,_),B.createElement("path",{fill:x,d:"M0,0 h".concat(Ke,"v").concat(Ke,"H0z"),shapeRendering:"crispEdges"}),B.createElement("path",{fill:te,d:vt,shapeRendering:"crispEdges"}),it)});lt.displayName="QRCodeSVG"},20991:function(Dt,Te,m){m.d(Te,{Z:function(){return Mt}});var k=m(1413),z=m(87462),oe=m(71002),S=m(97685),q=m(91),I=m(67294),ke=m(2788),p=m(29371),Y=m(93967),N=m.n(Y),D=m(8410),R=m(21770);function j(U){return U!==null&&(0,oe.Z)(U)==="object"}function G(U,F,L){if(U===!1||F===!1&&(!j(U)||!U.closeIcon))return null;var B=typeof F!="boolean"?F:void 0;if(j(U)){var X;return(0,k.Z)((0,k.Z)({},U),{},{closeIcon:(X=U.closeIcon)!==null&&X!==void 0?X:B})}return L||U||F?{closeIcon:B}:"empty"}function ee(U,F,L,B){return I.useMemo(function(){var X=G(U,F,!1),Ue=G(L,B,!0);return X!=="empty"?X:Ue},[L,B,U,F])}var K=m(66680);function C(U){var F=window.innerWidth||document.documentElement.clientWidth,L=window.innerHeight||document.documentElement.clientHeight,B=U.getBoundingClientRect(),X=B.top,Ue=B.right,Ze=B.bottom,ft=B.left;return X>=0&&ft>=0&&Ue<=F&&Ze<=L}function de(U,F,L){var B;return(B=L??F)!==null&&B!==void 0?B:U===null?"center":"bottom"}function Q(U){return typeof U=="number"&&!Number.isNaN(U)}function se(U,F,L,B){var X=(0,I.useState)(void 0),Ue=(0,S.Z)(X,2),Ze=Ue[0],ft=Ue[1];(0,D.Z)(function(){var g=typeof U=="function"?U():U;ft(g||null)});var lt=(0,I.useState)(null),i=(0,S.Z)(lt,2),a=i[0],t=i[1],r=(0,K.Z)(function(){if(Ze){!C(Ze)&&F&&Ze.scrollIntoView(B);var g=Ze.getBoundingClientRect(),b=g.left,E=g.top,x=g.width,$=g.height,te={left:b,top:E,width:x,height:$,radius:0};t(function(P){return JSON.stringify(P)!==JSON.stringify(te)?te:P})}else t(null)}),u=function(b){var E;return(E=Array.isArray(L==null?void 0:L.offset)?L==null?void 0:L.offset[b]:L==null?void 0:L.offset)!==null&&E!==void 0?E:6};(0,D.Z)(function(){return r(),window.addEventListener("resize",r),function(){window.removeEventListener("resize",r)}},[Ze,F,r]);var s=(0,I.useMemo)(function(){if(!a)return a;var g=u(0),b=u(1),E=Q(L==null?void 0:L.radius)?L==null?void 0:L.radius:2;return{left:a.left-g,top:a.top-b,width:a.width+g*2,height:a.height+b*2,radius:E}},[a,L]);return[s,Ze]}var le=m(7028),Se={fill:"transparent",pointerEvents:"auto"},pe=function(F){var L=F.prefixCls,B=F.rootClassName,X=F.pos,Ue=F.showMask,Ze=F.style,ft=Ze===void 0?{}:Ze,lt=F.fill,i=lt===void 0?"rgba(0,0,0,0.5)":lt,a=F.open,t=F.animated,r=F.zIndex,u=F.disabledInteraction,s=(0,le.Z)(),g="".concat(L,"-mask-").concat(s),b=(0,oe.Z)(t)==="object"?t==null?void 0:t.placeholder:t,E=typeof navigator<"u"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),x=E?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return I.createElement(ke.Z,{open:a,autoLock:!0},I.createElement("div",{className:N()("".concat(L,"-mask"),B),style:(0,k.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:r,pointerEvents:X&&!u?"none":"auto"},ft)},Ue?I.createElement("svg",{style:{width:"100%",height:"100%"}},I.createElement("defs",null,I.createElement("mask",{id:g},I.createElement("rect",(0,z.Z)({x:"0",y:"0"},x,{fill:"white"})),X&&I.createElement("rect",{x:X.left,y:X.top,rx:X.radius,width:X.width,height:X.height,fill:"black",className:b?"".concat(L,"-placeholder-animated"):""}))),I.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:i,mask:"url(#".concat(g,")")}),X&&I.createElement(I.Fragment,null,I.createElement("rect",(0,z.Z)({},Se,{x:"0",y:"0",width:"100%",height:X.top})),I.createElement("rect",(0,z.Z)({},Se,{x:"0",y:"0",width:X.left,height:"100%"})),I.createElement("rect",(0,z.Z)({},Se,{x:"0",y:X.top+X.height,width:"100%",height:"calc(100vh - ".concat(X.top+X.height,"px)")})),I.createElement("rect",(0,z.Z)({},Se,{x:X.left+X.width,y:"0",width:"calc(100vw - ".concat(X.left+X.width,"px)"),height:"100%"})))):null))},Oe=pe,he={adjustX:1,adjustY:1},be=[0,0],ne={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function $e(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,F={};return Object.keys(ne).forEach(function(L){F[L]=(0,k.Z)((0,k.Z)({},ne[L]),{},{autoArrow:U,targetOffset:be})}),F}var Ne=$e(),ze=m(74902),qe=m(64217);function xe(U){var F,L=U.prefixCls,B=U.current,X=U.total,Ue=U.title,Ze=U.description,ft=U.onClose,lt=U.onPrev,i=U.onNext,a=U.onFinish,t=U.className,r=U.closable,u=(0,qe.Z)(r||{},!0),s=(F=r==null?void 0:r.closeIcon)!==null&&F!==void 0?F:I.createElement("span",{className:"".concat(L,"-close-x")},"\xD7"),g=!!r;return I.createElement("div",{className:N()("".concat(L,"-content"),t)},I.createElement("div",{className:"".concat(L,"-inner")},g&&I.createElement("button",(0,z.Z)({type:"button",onClick:ft,"aria-label":"Close"},u,{className:"".concat(L,"-close")}),s),I.createElement("div",{className:"".concat(L,"-header")},I.createElement("div",{className:"".concat(L,"-title")},Ue)),I.createElement("div",{className:"".concat(L,"-description")},Ze),I.createElement("div",{className:"".concat(L,"-footer")},I.createElement("div",{className:"".concat(L,"-sliders")},X>1?(0,ze.Z)(Array.from({length:X}).keys()).map(function(b,E){return I.createElement("span",{key:b,className:E===B?"active":""})}):null),I.createElement("div",{className:"".concat(L,"-buttons")},B!==0?I.createElement("button",{className:"".concat(L,"-prev-btn"),onClick:lt},"Prev"):null,B===X-1?I.createElement("button",{className:"".concat(L,"-finish-btn"),onClick:a},"Finish"):I.createElement("button",{className:"".concat(L,"-next-btn"),onClick:i},"Next")))))}var ht=function(F){var L=F.current,B=F.renderPanel;return I.createElement(I.Fragment,null,typeof B=="function"?B(F,L):I.createElement(xe,F))},Pe=ht,bt=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],wt={left:"50%",top:"50%",width:1,height:1},Et={block:"center",inline:"center"},St=function(F){var L=F.prefixCls,B=L===void 0?"rc-tour":L,X=F.steps,Ue=X===void 0?[]:X,Ze=F.defaultCurrent,ft=F.current,lt=F.onChange,i=F.onClose,a=F.onFinish,t=F.open,r=F.mask,u=r===void 0?!0:r,s=F.arrow,g=s===void 0?!0:s,b=F.rootClassName,E=F.placement,x=F.renderPanel,$=F.gap,te=F.animated,P=F.scrollIntoViewOptions,re=P===void 0?Et:P,V=F.zIndex,ce=V===void 0?1001:V,_=F.closeIcon,ge=F.closable,ye=F.builtinPlacements,Fe=F.disabledInteraction,W=(0,q.Z)(F,bt),ae=I.useRef(),Xe=(0,R.Z)(0,{value:ft,defaultValue:Ze}),Ke=(0,S.Z)(Xe,2),Ce=Ke[0],_e=Ke[1],it=(0,R.Z)(void 0,{value:t,postState:function(we){return Ce<0||Ce>=Ue.length?!1:we??!0}}),vt=(0,S.Z)(it,2),et=vt[0],xt=vt[1],Nt=I.useState(et),je=(0,S.Z)(Nt,2),Pt=je[0],Ot=je[1],tt=I.useRef(et);(0,D.Z)(function(){et&&(tt.current||_e(0),Ot(!0)),tt.current=et},[et]);var me=Ue[Ce]||{},Tt=me.target,Ut=me.placement,or=me.style,c=me.arrow,h=me.className,f=me.mask,M=me.scrollIntoViewOptions,O=M===void 0?Et:M,H=me.closeIcon,J=me.closable,Ee=ee(J,H,ge,_),o=et&&(f??u),e=O??re,n=se(Tt,t,$,e),l=(0,S.Z)(n,2),v=l[0],d=l[1],y=de(d,E,Ut),w=d?typeof c>"u"?g:c:!1,ue=(0,oe.Z)(w)==="object"?w.pointAtCenter:!1;(0,D.Z)(function(){var Z;(Z=ae.current)===null||Z===void 0||Z.forceAlign()},[ue,Ce]);var Le=function(we){_e(we),lt==null||lt(we)},fe=(0,I.useMemo)(function(){return ye?typeof ye=="function"?ye({arrowPointAtCenter:ue}):ye:$e(ue)},[ye,ue]);if(d===void 0||!Pt)return null;var ve=function(){xt(!1),i==null||i(Ce)},Re=function(){return I.createElement(Pe,(0,z.Z)({arrow:w,key:"content",prefixCls:B,total:Ue.length,renderPanel:x,onPrev:function(){Le(Ce-1)},onNext:function(){Le(Ce+1)},onClose:ve,current:Ce,onFinish:function(){ve(),a==null||a()}},Ue[Ce],{closable:Ee}))},Ae=typeof o=="boolean"?o:!!o,A=typeof o=="boolean"?void 0:o,De=function(we){return we||d||document.body};return I.createElement(I.Fragment,null,I.createElement(Oe,{zIndex:ce,prefixCls:B,pos:v,showMask:Ae,style:A==null?void 0:A.style,fill:A==null?void 0:A.color,open:et,animated:te,rootClassName:b,disabledInteraction:Fe}),I.createElement(p.Z,(0,z.Z)({},W,{builtinPlacements:fe,ref:ae,popupStyle:or,popupPlacement:y,popupVisible:et,popupClassName:N()(b,h),prefixCls:B,popup:Re,forceRender:!1,destroyPopupOnHide:!0,zIndex:ce,getTriggerDOMNode:De,arrow:!!w}),I.createElement(ke.Z,{open:et,autoLock:!0},I.createElement("div",{className:N()(b,"".concat(B,"-target-placeholder")),style:(0,k.Z)((0,k.Z)({},v||wt),{},{position:"fixed",pointerEvents:"none"})}))))},Ye=St,Mt=Ye},29371:function(Dt,Te,m){m.d(Te,{Z:function(){return or}});var k=m(1413),z=m(97685),oe=m(91),S=m(2788),q=m(93967),I=m.n(q),ke=m(48555),p=m(67294),Y=m.t(p,2),N=m(73935);function D(c){return c instanceof HTMLElement||c instanceof SVGElement}function R(c){return c&&_typeof(c)==="object"&&D(c.nativeElement)?c.nativeElement:D(c)?c:null}function j(c){var h=R(c);if(h)return h;if(c instanceof React.Component){var f;return(f=ReactDOM.findDOMNode)===null||f===void 0?void 0:f.call(ReactDOM,c)}return null}function G(c){var h;return c==null||(h=c.getRootNode)===null||h===void 0?void 0:h.call(c)}function ee(c){return G(c)instanceof ShadowRoot}function K(c){return ee(c)?G(c):null}function C(c){var h=p.useRef();h.current=c;var f=p.useCallback(function(){for(var M,O=arguments.length,H=new Array(O),J=0;J<O;J++)H[J]=arguments[J];return(M=h.current)===null||M===void 0?void 0:M.call.apply(M,[h].concat(H))},[]);return f}function de(){var c=(0,k.Z)({},Y);return c.useId}var Q=0;function se(){}var le=de(),Se=le?function(h){var f=le();return h||f}:function(h){var f=p.useState("ssr-id"),M=(0,z.Z)(f,2),O=M[0],H=M[1];return p.useEffect(function(){var J=Q;Q+=1,H("rc_unique_".concat(J))},[]),h||O};function pe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Oe=pe()?p.useLayoutEffect:p.useEffect,he=function(h,f){var M=p.useRef(!0);Oe(function(){return h(M.current)},f),Oe(function(){return M.current=!1,function(){M.current=!0}},[])},be=function(h,f){he(function(M){if(!M)return h()},f)},ne=he,$e=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var c=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(c)||/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(c==null?void 0:c.substr(0,4))},Ne=m(87462),ze=m(82225),qe=m(71002),xe=m(52481);function ht(c,h,f){var M=p.useRef({});return(!("value"in M.current)||f(M.current.condition,h))&&(M.current.value=c(),M.current.condition=h),M.current.value}var Pe=Symbol.for("react.element"),bt=Symbol.for("react.transitional.element"),wt=Symbol.for("react.fragment");function Et(c){return c&&(0,qe.Z)(c)==="object"&&(c.$$typeof===Pe||c.$$typeof===bt)&&c.type===wt}var St=Number(p.version.split(".")[0]),Ye=function(h,f){typeof h=="function"?h(f):(0,qe.Z)(h)==="object"&&h&&"current"in h&&(h.current=f)},Mt=function(){for(var h=arguments.length,f=new Array(h),M=0;M<h;M++)f[M]=arguments[M];var O=f.filter(Boolean);return O.length<=1?O[0]:function(H){f.forEach(function(J){Ye(J,H)})}},U=function(){for(var h=arguments.length,f=new Array(h),M=0;M<h;M++)f[M]=arguments[M];return ht(function(){return Mt.apply(void 0,f)},f,function(O,H){return O.length!==H.length||O.every(function(J,Ee){return J!==H[Ee]})})},F=function(h){var f,M;if(!h)return!1;if(L(h)&&St>=19)return!0;var O=(0,xe.isMemo)(h)?h.type.type:h.type;return!(typeof O=="function"&&!((f=O.prototype)!==null&&f!==void 0&&f.render)&&O.$$typeof!==xe.ForwardRef||typeof h=="function"&&!((M=h.prototype)!==null&&M!==void 0&&M.render)&&h.$$typeof!==xe.ForwardRef)};function L(c){return(0,p.isValidElement)(c)&&!Et(c)}var B=function(h){return L(h)&&F(h)},X=function(h){if(h&&L(h)){var f=h;return f.props.propertyIsEnumerable("ref")?f.props.ref:f.ref}return null};function Ue(c){var h=c.prefixCls,f=c.align,M=c.arrow,O=c.arrowPos,H=M||{},J=H.className,Ee=H.content,o=O.x,e=o===void 0?0:o,n=O.y,l=n===void 0?0:n,v=p.useRef();if(!f||!f.points)return null;var d={position:"absolute"};if(f.autoArrow!==!1){var y=f.points[0],w=f.points[1],ue=y[0],Le=y[1],fe=w[0],ve=w[1];ue===fe||!["t","b"].includes(ue)?d.top=l:ue==="t"?d.top=0:d.bottom=0,Le===ve||!["l","r"].includes(Le)?d.left=e:Le==="l"?d.left=0:d.right=0}return p.createElement("div",{ref:v,className:I()("".concat(h,"-arrow"),J),style:d},Ee)}function Ze(c){var h=c.prefixCls,f=c.open,M=c.zIndex,O=c.mask,H=c.motion;return O?p.createElement(ze.ZP,(0,Ne.Z)({},H,{motionAppear:!0,visible:f,removeOnLeave:!0}),function(J){var Ee=J.className;return p.createElement("div",{style:{zIndex:M},className:I()("".concat(h,"-mask"),Ee)})}):null}var ft=p.memo(function(c){var h=c.children;return h},function(c,h){return h.cache}),lt=ft,i=p.forwardRef(function(c,h){var f=c.popup,M=c.className,O=c.prefixCls,H=c.style,J=c.target,Ee=c.onVisibleChanged,o=c.open,e=c.keepDom,n=c.fresh,l=c.onClick,v=c.mask,d=c.arrow,y=c.arrowPos,w=c.align,ue=c.motion,Le=c.maskMotion,fe=c.forceRender,ve=c.getPopupContainer,Re=c.autoDestroy,Ae=c.portal,A=c.zIndex,De=c.onMouseEnter,Z=c.onMouseLeave,we=c.onPointerEnter,Me=c.onPointerDownCapture,rt=c.ready,Be=c.offsetX,We=c.offsetY,nt=c.offsetR,at=c.offsetB,ct=c.onAlign,dt=c.onPrepare,ot=c.stretch,gt=c.targetWidth,Ie=c.targetHeight,Ct=typeof f=="function"?f():f,ut=o||e,yt=(ve==null?void 0:ve.length)>0,Ve=p.useState(!ve||!yt),Zt=(0,z.Z)(Ve,2),hr=Zt[0],kr=Zt[1];if(ne(function(){!hr&&yt&&J&&kr(!0)},[hr,yt,J]),!hr)return null;var Jt="auto",Ft={left:"-1000vw",top:"-1000vh",right:Jt,bottom:Jt};if(rt||!o){var ur,gr=w.points,$t=w.dynamicInset||((ur=w._experimental)===null||ur===void 0?void 0:ur.dynamicInset),Yt=$t&&gr[0][1]==="r",Wt=$t&&gr[0][0]==="b";Yt?(Ft.right=nt,Ft.left=Jt):(Ft.left=Be,Ft.right=Jt),Wt?(Ft.bottom=at,Ft.top=Jt):(Ft.top=We,Ft.bottom=Jt)}var kt={};return ot&&(ot.includes("height")&&Ie?kt.height=Ie:ot.includes("minHeight")&&Ie&&(kt.minHeight=Ie),ot.includes("width")&>?kt.width=gt:ot.includes("minWidth")&>&&(kt.minWidth=gt)),o||(kt.pointerEvents="none"),p.createElement(Ae,{open:fe||ut,getContainer:ve&&function(){return ve(J)},autoDestroy:Re},p.createElement(Ze,{prefixCls:O,open:o,zIndex:A,mask:v,motion:Le}),p.createElement(ke.Z,{onResize:ct,disabled:!o},function(Or){return p.createElement(ze.ZP,(0,Ne.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:fe,leavedClassName:"".concat(O,"-hidden")},ue,{onAppearPrepare:dt,onEnterPrepare:dt,visible:o,onVisibleChanged:function(zt){var Xt;ue==null||(Xt=ue.onVisibleChanged)===null||Xt===void 0||Xt.call(ue,zt),Ee(zt)}}),function(sr,zt){var Xt=sr.className,yr=sr.style,Rt=I()(O,Xt,M);return p.createElement("div",{ref:Mt(Or,h,zt),className:Rt,style:(0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},Ft),kt),yr),{},{boxSizing:"border-box",zIndex:A},H),onMouseEnter:De,onMouseLeave:Z,onPointerEnter:we,onClick:l,onPointerDownCapture:Me},d&&p.createElement(Ue,{prefixCls:O,arrow:d,arrowPos:y,align:w}),p.createElement(lt,{cache:!o&&!n},Ct))})}))}),a=i,t=p.forwardRef(function(c,h){var f=c.children,M=c.getTriggerDOMNode,O=F(f),H=p.useCallback(function(Ee){Ye(h,M?M(Ee):Ee)},[M]),J=U(H,X(f));return O?p.cloneElement(f,{ref:J}):f}),r=t,u=p.createContext(null),s=u;function g(c){return c?Array.isArray(c)?c:[c]:[]}function b(c,h,f,M){return p.useMemo(function(){var O=g(f??h),H=g(M??h),J=new Set(O),Ee=new Set(H);return c&&(J.has("hover")&&(J.delete("hover"),J.add("click")),Ee.has("hover")&&(Ee.delete("hover"),Ee.add("click"))),[J,Ee]},[c,h,f,M])}var E=function(c){if(!c)return!1;if(c instanceof Element){if(c.offsetParent)return!0;if(c.getBBox){var h=c.getBBox(),f=h.width,M=h.height;if(f||M)return!0}if(c.getBoundingClientRect){var O=c.getBoundingClientRect(),H=O.width,J=O.height;if(H||J)return!0}}return!1};function x(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=arguments.length>2?arguments[2]:void 0;return f?c[0]===h[0]:c[0]===h[0]&&c[1]===h[1]}function $(c,h,f,M){for(var O=f.points,H=Object.keys(c),J=0;J<H.length;J+=1){var Ee,o=H[J];if(x((Ee=c[o])===null||Ee===void 0?void 0:Ee.points,O,M))return"".concat(h,"-placement-").concat(o)}return""}function te(c,h,f,M){return h||(f?{motionName:"".concat(c,"-").concat(f)}:M?{motionName:M}:null)}function P(c){return c.ownerDocument.defaultView}function re(c){for(var h=[],f=c==null?void 0:c.parentElement,M=["hidden","scroll","clip","auto"];f;){var O=P(f).getComputedStyle(f),H=O.overflowX,J=O.overflowY,Ee=O.overflow;[H,J,Ee].some(function(o){return M.includes(o)})&&h.push(f),f=f.parentElement}return h}function V(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(c)?h:c}function ce(c){return V(parseFloat(c),0)}function _(c,h){var f=(0,k.Z)({},c);return(h||[]).forEach(function(M){if(!(M instanceof HTMLBodyElement||M instanceof HTMLHtmlElement)){var O=P(M).getComputedStyle(M),H=O.overflow,J=O.overflowClipMargin,Ee=O.borderTopWidth,o=O.borderBottomWidth,e=O.borderLeftWidth,n=O.borderRightWidth,l=M.getBoundingClientRect(),v=M.offsetHeight,d=M.clientHeight,y=M.offsetWidth,w=M.clientWidth,ue=ce(Ee),Le=ce(o),fe=ce(e),ve=ce(n),Re=V(Math.round(l.width/y*1e3)/1e3),Ae=V(Math.round(l.height/v*1e3)/1e3),A=(y-w-fe-ve)*Re,De=(v-d-ue-Le)*Ae,Z=ue*Ae,we=Le*Ae,Me=fe*Re,rt=ve*Re,Be=0,We=0;if(H==="clip"){var nt=ce(J);Be=nt*Re,We=nt*Ae}var at=l.x+Me-Be,ct=l.y+Z-We,dt=at+l.width+2*Be-Me-rt-A,ot=ct+l.height+2*We-Z-we-De;f.left=Math.max(f.left,at),f.top=Math.max(f.top,ct),f.right=Math.min(f.right,dt),f.bottom=Math.min(f.bottom,ot)}}),f}function ge(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f="".concat(h),M=f.match(/^(.*)\%$/);return M?c*(parseFloat(M[1])/100):parseFloat(f)}function ye(c,h){var f=h||[],M=(0,z.Z)(f,2),O=M[0],H=M[1];return[ge(c.width,O),ge(c.height,H)]}function Fe(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[c[0],c[1]]}function W(c,h){var f=h[0],M=h[1],O,H;return f==="t"?H=c.y:f==="b"?H=c.y+c.height:H=c.y+c.height/2,M==="l"?O=c.x:M==="r"?O=c.x+c.width:O=c.x+c.width/2,{x:O,y:H}}function ae(c,h){var f={t:"b",b:"t",l:"r",r:"l"};return c.map(function(M,O){return O===h?f[M]||"c":M}).join("")}function Xe(c,h,f,M,O,H,J){var Ee=p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:O[M]||{}}),o=(0,z.Z)(Ee,2),e=o[0],n=o[1],l=p.useRef(0),v=p.useMemo(function(){return h?re(h):[]},[h]),d=p.useRef({}),y=function(){d.current={}};c||y();var w=C(function(){if(h&&f&&c){let Ht=function(xr,dr){var mr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vr,Br=Ve.x+xr,on=Ve.y+dr,In=Br+Yt,Dn=on+$t,xn=Math.max(Br,mr.left),T=Math.max(on,mr.top),ie=Math.min(In,mr.right),Je=Math.min(Dn,mr.bottom);return Math.max(0,(ie-xn)*(Je-T))},an=function(){Er=Ve.y+Qe,wr=Er+$t,ar=Ve.x+He,Rr=ar+Yt};var fe,ve,Re,Ae,A=h,De=A.ownerDocument,Z=P(A),we=Z.getComputedStyle(A),Me=we.width,rt=we.height,Be=we.position,We=A.style.left,nt=A.style.top,at=A.style.right,ct=A.style.bottom,dt=A.style.overflow,ot=(0,k.Z)((0,k.Z)({},O[M]),H),gt=De.createElement("div");(fe=A.parentElement)===null||fe===void 0||fe.appendChild(gt),gt.style.left="".concat(A.offsetLeft,"px"),gt.style.top="".concat(A.offsetTop,"px"),gt.style.position=Be,gt.style.height="".concat(A.offsetHeight,"px"),gt.style.width="".concat(A.offsetWidth,"px"),A.style.left="0",A.style.top="0",A.style.right="auto",A.style.bottom="auto",A.style.overflow="hidden";var Ie;if(Array.isArray(f))Ie={x:f[0],y:f[1],width:0,height:0};else{var Ct,ut,yt=f.getBoundingClientRect();yt.x=(Ct=yt.x)!==null&&Ct!==void 0?Ct:yt.left,yt.y=(ut=yt.y)!==null&&ut!==void 0?ut:yt.top,Ie={x:yt.x,y:yt.y,width:yt.width,height:yt.height}}var Ve=A.getBoundingClientRect();Ve.x=(ve=Ve.x)!==null&&ve!==void 0?ve:Ve.left,Ve.y=(Re=Ve.y)!==null&&Re!==void 0?Re:Ve.top;var Zt=De.documentElement,hr=Zt.clientWidth,kr=Zt.clientHeight,Jt=Zt.scrollWidth,Ft=Zt.scrollHeight,ur=Zt.scrollTop,gr=Zt.scrollLeft,$t=Ve.height,Yt=Ve.width,Wt=Ie.height,kt=Ie.width,Or={left:0,top:0,right:hr,bottom:kr},sr={left:-gr,top:-ur,right:Jt-gr,bottom:Ft-ur},zt=ot.htmlRegion,Xt="visible",yr="visibleFirst";zt!=="scroll"&&zt!==yr&&(zt=Xt);var Rt=zt===yr,ln=_(sr,v),Ge=_(Or,v),Vr=zt===Xt?Ge:ln,br=Rt?Ge:Vr;A.style.left="auto",A.style.top="auto",A.style.right="0",A.style.bottom="0";var At=A.getBoundingClientRect();A.style.left=We,A.style.top=nt,A.style.right=at,A.style.bottom=ct,A.style.overflow=dt,(Ae=A.parentElement)===null||Ae===void 0||Ae.removeChild(gt);var lr=V(Math.round(Yt/parseFloat(Me)*1e3)/1e3),nr=V(Math.round($t/parseFloat(rt)*1e3)/1e3);if(lr===0||nr===0||D(f)&&!E(f))return;var cn=ot.offset,fn=ot.targetOffset,Hr=ye(Ve,cn),Gt=(0,z.Z)(Hr,2),Qt=Gt[0],jt=Gt[1],vn=ye(Ie,fn),Cr=(0,z.Z)(vn,2),Bt=Cr[0],cr=Cr[1];Ie.x-=Bt,Ie.y-=cr;var dn=ot.points||[],Ur=(0,z.Z)(dn,2),mn=Ur[0],hn=Ur[1],_t=Fe(hn),Lt=Fe(mn),Zr=W(Ie,_t),It=W(Ve,Lt),fr=(0,k.Z)({},ot),He=Zr.x-It.x+Qt,Qe=Zr.y-It.y+jt,qt=Ht(He,Qe),pr=Ht(He,Qe,Ge),Fr=W(Ie,["t","l"]),Vt=W(Ve,["t","l"]),Wr=W(Ie,["b","r"]),Lr=W(Ve,["b","r"]),vr=ot.overflow||{},Gr=vr.adjustX,gn=vr.adjustY,Tr=vr.shiftX,Pr=vr.shiftY,$r=function(dr){return typeof dr=="boolean"?dr:dr>=0},Er,wr,ar,Rr;an();var Sr=$r(gn),Qr=Lt[0]===_t[0];if(Sr&&Lt[0]==="t"&&(wr>br.bottom||d.current.bt)){var pt=Qe;Qr?pt-=$t-Wt:pt=Fr.y-Lr.y-jt;var qr=Ht(He,pt),yn=Ht(He,pt,Ge);qr>qt||qr===qt&&(!Rt||yn>=pr)?(d.current.bt=!0,Qe=pt,jt=-jt,fr.points=[ae(Lt,0),ae(_t,0)]):d.current.bt=!1}if(Sr&&Lt[0]==="b"&&(Er<br.top||d.current.tb)){var Mr=Qe;Qr?Mr+=$t-Wt:Mr=Wr.y-Vt.y-jt;var Kr=Ht(He,Mr),bn=Ht(He,Mr,Ge);Kr>qt||Kr===qt&&(!Rt||bn>=pr)?(d.current.tb=!0,Qe=Mr,jt=-jt,fr.points=[ae(Lt,0),ae(_t,0)]):d.current.tb=!1}var Jr=$r(Gr),Yr=Lt[1]===_t[1];if(Jr&&Lt[1]==="l"&&(Rr>br.right||d.current.rl)){var Nr=He;Yr?Nr-=Yt-kt:Nr=Fr.x-Lr.x-Qt;var Xr=Ht(Nr,Qe),Ar=Ht(Nr,Qe,Ge);Xr>qt||Xr===qt&&(!Rt||Ar>=pr)?(d.current.rl=!0,He=Nr,Qt=-Qt,fr.points=[ae(Lt,1),ae(_t,1)]):d.current.rl=!1}if(Jr&&Lt[1]==="r"&&(ar<br.left||d.current.lr)){var ir=He;Yr?ir+=Yt-kt:ir=Wr.x-Vt.x-Qt;var _r=Ht(ir,Qe),en=Ht(ir,Qe,Ge);_r>qt||_r===qt&&(!Rt||en>=pr)?(d.current.lr=!0,He=ir,Qt=-Qt,fr.points=[ae(Lt,1),ae(_t,1)]):d.current.lr=!1}an();var er=Tr===!0?0:Tr;typeof er=="number"&&(ar<Ge.left&&(He-=ar-Ge.left-Qt,Ie.x+kt<Ge.left+er&&(He+=Ie.x-Ge.left+kt-er)),Rr>Ge.right&&(He-=Rr-Ge.right-Qt,Ie.x>Ge.right-er&&(He+=Ie.x-Ge.right+er)));var Kt=Pr===!0?0:Pr;typeof Kt=="number"&&(Er<Ge.top&&(Qe-=Er-Ge.top-jt,Ie.y+Wt<Ge.top+Kt&&(Qe+=Ie.y-Ge.top+Wt-Kt)),wr>Ge.bottom&&(Qe-=wr-Ge.bottom-jt,Ie.y>Ge.bottom-Kt&&(Qe+=Ie.y-Ge.bottom+Kt)));var Ir=Ve.x+He,Dr=Ir+Yt,tr=Ve.y+Qe,Cn=tr+$t,tn=Ie.x,pn=tn+kt,zr=Ie.y,En=zr+Wt,wn=Math.max(Ir,tn),Sn=Math.min(Dr,pn),rn=(wn+Sn)/2,Mn=rn-Ir,Nn=Math.max(tr,zr),nn=Math.min(Cn,En),Pn=(Nn+nn)/2,Rn=Pn-tr;J==null||J(h,fr);var jr=At.right-Ve.x-(He+Ve.width),rr=At.bottom-Ve.y-(Qe+Ve.height);lr===1&&(He=Math.round(He),jr=Math.round(jr)),nr===1&&(Qe=Math.round(Qe),rr=Math.round(rr));var An={ready:!0,offsetX:He/lr,offsetY:Qe/nr,offsetR:jr/lr,offsetB:rr/nr,arrowX:Mn/lr,arrowY:Rn/nr,scaleX:lr,scaleY:nr,align:fr};n(An)}}),ue=function(){l.current+=1;var ve=l.current;Promise.resolve().then(function(){l.current===ve&&w()})},Le=function(){n(function(ve){return(0,k.Z)((0,k.Z)({},ve),{},{ready:!1})})};return ne(Le,[M]),ne(function(){c||Le()},[c]),[e.ready,e.offsetX,e.offsetY,e.offsetR,e.offsetB,e.arrowX,e.arrowY,e.scaleX,e.scaleY,e.align,ue]}var Ke=m(74902);function Ce(c,h,f,M,O){ne(function(){if(c&&h&&f){let l=function(){M(),O()};var H=h,J=f,Ee=re(H),o=re(J),e=P(J),n=new Set([e].concat((0,Ke.Z)(Ee),(0,Ke.Z)(o)));return n.forEach(function(v){v.addEventListener("scroll",l,{passive:!0})}),e.addEventListener("resize",l,{passive:!0}),M(),function(){n.forEach(function(v){v.removeEventListener("scroll",l),e.removeEventListener("resize",l)})}}},[c,h,f])}var _e={},it=[],vt=function(h){it.push(h)};function et(c,h){if(!1)var f}function xt(c,h){if(!1)var f}function Nt(){_e={}}function je(c,h,f){!h&&!_e[f]&&(c(!1,f),_e[f]=!0)}function Pt(c,h){je(et,c,h)}function Ot(c,h){je(xt,c,h)}Pt.preMessage=vt,Pt.resetWarned=Nt,Pt.noteOnce=Ot;var tt=null;function me(c,h,f,M,O,H,J,Ee){var o=p.useRef(c);o.current=c;var e=p.useRef(!1);p.useEffect(function(){if(h&&M&&(!O||H)){var l=function(){e.current=!1},v=function(Re){var Ae;o.current&&!J(((Ae=Re.composedPath)===null||Ae===void 0||(Ae=Ae.call(Re))===null||Ae===void 0?void 0:Ae[0])||Re.target)&&!e.current&&Ee(!1)},d=P(M);d.addEventListener("pointerdown",l,!0),d.addEventListener("mousedown",v,!0),d.addEventListener("contextmenu",v,!0);var y=K(f);if(y&&(y.addEventListener("mousedown",v,!0),y.addEventListener("contextmenu",v,!0)),!1)var w,ue,Le,fe;return function(){d.removeEventListener("pointerdown",l,!0),d.removeEventListener("mousedown",v,!0),d.removeEventListener("contextmenu",v,!0),y&&(y.removeEventListener("mousedown",v,!0),y.removeEventListener("contextmenu",v,!0))}}},[h,f,M,O,H]);function n(){e.current=!0}return n}var Tt=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Ut(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S.Z,h=p.forwardRef(function(f,M){var O=f.prefixCls,H=O===void 0?"rc-trigger-popup":O,J=f.children,Ee=f.action,o=Ee===void 0?"hover":Ee,e=f.showAction,n=f.hideAction,l=f.popupVisible,v=f.defaultPopupVisible,d=f.onPopupVisibleChange,y=f.afterPopupVisibleChange,w=f.mouseEnterDelay,ue=f.mouseLeaveDelay,Le=ue===void 0?.1:ue,fe=f.focusDelay,ve=f.blurDelay,Re=f.mask,Ae=f.maskClosable,A=Ae===void 0?!0:Ae,De=f.getPopupContainer,Z=f.forceRender,we=f.autoDestroy,Me=f.destroyPopupOnHide,rt=f.popup,Be=f.popupClassName,We=f.popupStyle,nt=f.popupPlacement,at=f.builtinPlacements,ct=at===void 0?{}:at,dt=f.popupAlign,ot=f.zIndex,gt=f.stretch,Ie=f.getPopupClassNameFromAlign,Ct=f.fresh,ut=f.alignPoint,yt=f.onPopupClick,Ve=f.onPopupAlign,Zt=f.arrow,hr=f.popupMotion,kr=f.maskMotion,Jt=f.popupTransitionName,Ft=f.popupAnimation,ur=f.maskTransitionName,gr=f.maskAnimation,$t=f.className,Yt=f.getTriggerDOMNode,Wt=(0,oe.Z)(f,Tt),kt=we||Me||!1,Or=p.useState(!1),sr=(0,z.Z)(Or,2),zt=sr[0],Xt=sr[1];ne(function(){Xt($e())},[]);var yr=p.useRef({}),Rt=p.useContext(s),ln=p.useMemo(function(){return{registerSubPopup:function(ie,Je){yr.current[ie]=Je,Rt==null||Rt.registerSubPopup(ie,Je)}}},[Rt]),Ge=Se(),Vr=p.useState(null),br=(0,z.Z)(Vr,2),At=br[0],lr=br[1],nr=p.useRef(null),cn=C(function(T){nr.current=T,D(T)&&At!==T&&lr(T),Rt==null||Rt.registerSubPopup(Ge,T)}),fn=p.useState(null),Hr=(0,z.Z)(fn,2),Gt=Hr[0],Qt=Hr[1],jt=p.useRef(null),vn=C(function(T){D(T)&&Gt!==T&&(Qt(T),jt.current=T)}),Cr=p.Children.only(J),Bt=(Cr==null?void 0:Cr.props)||{},cr={},dn=C(function(T){var ie,Je,mt=Gt;return(mt==null?void 0:mt.contains(T))||((ie=K(mt))===null||ie===void 0?void 0:ie.host)===T||T===mt||(At==null?void 0:At.contains(T))||((Je=K(At))===null||Je===void 0?void 0:Je.host)===T||T===At||Object.values(yr.current).some(function(st){return(st==null?void 0:st.contains(T))||T===st})}),Ur=te(H,hr,Ft,Jt),mn=te(H,kr,gr,ur),hn=p.useState(v||!1),_t=(0,z.Z)(hn,2),Lt=_t[0],Zr=_t[1],It=l??Lt,fr=C(function(T){l===void 0&&Zr(T)});ne(function(){Zr(l||!1)},[l]);var He=p.useRef(It);He.current=It;var Qe=p.useRef([]);Qe.current=[];var qt=C(function(T){var ie;fr(T),((ie=Qe.current[Qe.current.length-1])!==null&&ie!==void 0?ie:It)!==T&&(Qe.current.push(T),d==null||d(T))}),pr=p.useRef(),Fr=function(){clearTimeout(pr.current)},Vt=function(ie){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Fr(),Je===0?qt(ie):pr.current=setTimeout(function(){qt(ie)},Je*1e3)};p.useEffect(function(){return Fr},[]);var Wr=p.useState(!1),Lr=(0,z.Z)(Wr,2),vr=Lr[0],Gr=Lr[1];ne(function(T){(!T||It)&&Gr(!0)},[It]);var gn=p.useState(null),Tr=(0,z.Z)(gn,2),Pr=Tr[0],$r=Tr[1],Er=p.useState(null),wr=(0,z.Z)(Er,2),ar=wr[0],Rr=wr[1],Sr=function(ie){Rr([ie.clientX,ie.clientY])},Qr=Xe(It,At,ut&&ar!==null?ar:Gt,nt,ct,dt,Ve),pt=(0,z.Z)(Qr,11),qr=pt[0],yn=pt[1],Mr=pt[2],Kr=pt[3],bn=pt[4],Jr=pt[5],Yr=pt[6],Nr=pt[7],Xr=pt[8],Ar=pt[9],ir=pt[10],_r=b(zt,o,e,n),en=(0,z.Z)(_r,2),er=en[0],Kt=en[1],Ir=er.has("click"),Dr=Kt.has("click")||Kt.has("contextMenu"),tr=C(function(){vr||ir()}),Cn=function(){He.current&&ut&&Dr&&Vt(!1)};Ce(It,Gt,At,tr,Cn),ne(function(){tr()},[ar,nt]),ne(function(){It&&!(ct!=null&&ct[nt])&&tr()},[JSON.stringify(dt)]);var tn=p.useMemo(function(){var T=$(ct,H,Ar,ut);return I()(T,Ie==null?void 0:Ie(Ar))},[Ar,Ie,ct,H,ut]);p.useImperativeHandle(M,function(){return{nativeElement:jt.current,popupElement:nr.current,forceAlign:tr}});var pn=p.useState(0),zr=(0,z.Z)(pn,2),En=zr[0],wn=zr[1],Sn=p.useState(0),rn=(0,z.Z)(Sn,2),Mn=rn[0],Nn=rn[1],nn=function(){if(gt&&Gt){var ie=Gt.getBoundingClientRect();wn(ie.width),Nn(ie.height)}},Pn=function(){nn(),tr()},Rn=function(ie){Gr(!1),ir(),y==null||y(ie)},jr=function(){return new Promise(function(ie){nn(),$r(function(){return ie})})};ne(function(){Pr&&(ir(),Pr(),$r(null))},[Pr]);function rr(T,ie,Je,mt){cr[T]=function(st){var un;mt==null||mt(st),Vt(ie,Je);for(var kn=arguments.length,On=new Array(kn>1?kn-1:0),sn=1;sn<kn;sn++)On[sn-1]=arguments[sn];(un=Bt[T])===null||un===void 0||un.call.apply(un,[Bt,st].concat(On))}}(Ir||Dr)&&(cr.onClick=function(T){var ie;He.current&&Dr?Vt(!1):!He.current&&Ir&&(Sr(T),Vt(!0));for(var Je=arguments.length,mt=new Array(Je>1?Je-1:0),st=1;st<Je;st++)mt[st-1]=arguments[st];(ie=Bt.onClick)===null||ie===void 0||ie.call.apply(ie,[Bt,T].concat(mt))});var An=me(It,Dr,Gt,At,Re,A,dn,Vt),Ht=er.has("hover"),an=Kt.has("hover"),xr,dr;Ht&&(rr("onMouseEnter",!0,w,function(T){Sr(T)}),rr("onPointerEnter",!0,w,function(T){Sr(T)}),xr=function(ie){(It||vr)&&At!==null&&At!==void 0&&At.contains(ie.target)&&Vt(!0,w)},ut&&(cr.onMouseMove=function(T){var ie;(ie=Bt.onMouseMove)===null||ie===void 0||ie.call(Bt,T)})),an&&(rr("onMouseLeave",!1,Le),rr("onPointerLeave",!1,Le),dr=function(){Vt(!1,Le)}),er.has("focus")&&rr("onFocus",!0,fe),Kt.has("focus")&&rr("onBlur",!1,ve),er.has("contextMenu")&&(cr.onContextMenu=function(T){var ie;He.current&&Kt.has("contextMenu")?Vt(!1):(Sr(T),Vt(!0)),T.preventDefault();for(var Je=arguments.length,mt=new Array(Je>1?Je-1:0),st=1;st<Je;st++)mt[st-1]=arguments[st];(ie=Bt.onContextMenu)===null||ie===void 0||ie.call.apply(ie,[Bt,T].concat(mt))}),$t&&(cr.className=I()(Bt.className,$t));var mr=(0,k.Z)((0,k.Z)({},Bt),cr),Br={},on=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];on.forEach(function(T){Wt[T]&&(Br[T]=function(){for(var ie,Je=arguments.length,mt=new Array(Je),st=0;st<Je;st++)mt[st]=arguments[st];(ie=mr[T])===null||ie===void 0||ie.call.apply(ie,[mr].concat(mt)),Wt[T].apply(Wt,mt)})});var In=p.cloneElement(Cr,(0,k.Z)((0,k.Z)({},mr),Br)),Dn={x:Jr,y:Yr},xn=Zt?(0,k.Z)({},Zt!==!0?Zt:{}):null;return p.createElement(p.Fragment,null,p.createElement(ke.Z,{disabled:!It,ref:vn,onResize:Pn},p.createElement(r,{getTriggerDOMNode:Yt},In)),p.createElement(s.Provider,{value:ln},p.createElement(a,{portal:c,ref:cn,prefixCls:H,popup:rt,className:I()(Be,tn),style:We,target:Gt,onMouseEnter:xr,onMouseLeave:dr,onPointerEnter:xr,zIndex:ot,open:It,keepDom:vr,fresh:Ct,onClick:yt,onPointerDownCapture:An,mask:Re,motion:Ur,maskMotion:mn,onVisibleChanged:Rn,onPrepare:jr,forceRender:Z,autoDestroy:kt,getPopupContainer:De,align:Ar,arrow:xn,arrowPos:Dn,ready:qr,offsetX:yn,offsetY:Mr,offsetR:Kr,offsetB:bn,onAlign:tr,stretch:gt,targetWidth:En/Nr,targetHeight:Mn/Xr})))});return h}var or=Ut(S.Z)},48482:function(Dt,Te){var m;var k=Symbol.for("react.element"),z=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),ke=Symbol.for("react.context"),p=Symbol.for("react.server_context"),Y=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),ee;ee=Symbol.for("react.module.reference");function K(C){if(typeof C=="object"&&C!==null){var de=C.$$typeof;switch(de){case k:switch(C=C.type,C){case oe:case q:case S:case N:case D:return C;default:switch(C=C&&C.$$typeof,C){case p:case ke:case Y:case j:case R:case I:return C;default:return de}}case z:return de}}}m=ke,m=I,m=k,Te.ForwardRef=Y,m=oe,m=j,m=R,m=z,m=q,m=S,m=N,m=D,m=function(){return!1},m=function(){return!1},m=function(C){return K(C)===ke},m=function(C){return K(C)===I},m=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===k},m=function(C){return K(C)===Y},m=function(C){return K(C)===oe},m=function(C){return K(C)===j},Te.isMemo=function(C){return K(C)===R},m=function(C){return K(C)===z},m=function(C){return K(C)===q},m=function(C){return K(C)===S},m=function(C){return K(C)===N},m=function(C){return K(C)===D},m=function(C){return typeof C=="string"||typeof C=="function"||C===oe||C===q||C===S||C===N||C===D||C===G||typeof C=="object"&&C!==null&&(C.$$typeof===j||C.$$typeof===R||C.$$typeof===I||C.$$typeof===ke||C.$$typeof===Y||C.$$typeof===ee||C.getModuleId!==void 0)},m=K},52481:function(Dt,Te,m){Dt.exports=m(48482)}}]);
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(i,a){return St(i)||Ye(i,a)||z(i,a)||Mt()}function F(i,a){if(i==null)return{};var t={};for(var r in i)if({}.hasOwnProperty.call(i,r)){if(a.indexOf(r)!==-1)continue;t[r]=i[r]}return t}function L(i,a){if(i==null)return{};var t,r,u=F(i,a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(r=0;r<s.length;r++)t=s[r],a.indexOf(t)===-1&&{}.propertyIsEnumerable.call(i,t)&&(u[t]=i[t])}return u}var B=m(67294);function X(i){var a=i.value,t=i.level,r=i.minVersion,u=i.includeMargin,s=i.marginSize,g=i.imageSettings,b=i.size,E=(0,B.useMemo)(function(){var V=de.makeSegments(a);return Q.encodeSegments(V,se[t],r)},[a,t,r]),x=(0,B.useMemo)(function(){var V=E.getModules(),ce=ht(u,s),_=V.length+ce*2,ge=xe(V,b,ce,g);return{cells:V,margin:ce,numCells:_,calculatedImageSettings:ge}},[E,b,g,u,s]),$=x.cells,te=x.margin,P=x.numCells,re=x.calculatedImageSettings;return{qrcode:E,margin:te,cells:$,numCells:P,calculatedImageSettings:re}}var Ue=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],Ze=B.forwardRef(function(a,t){var r=a.value,u=a.size,s=u===void 0?le:u,g=a.level,b=g===void 0?Se:g,E=a.bgColor,x=E===void 0?pe:E,$=a.fgColor,te=$===void 0?Oe:$,P=a.includeMargin,re=P===void 0?he:P,V=a.minVersion,ce=V===void 0?be:V,_=a.marginSize,ge=a.style,ye=a.imageSettings,Fe=L(a,Ue),W=ye==null?void 0:ye.src,ae=(0,B.useRef)(null),Xe=(0,B.useRef)(null),Ke=(0,B.useCallback)(function(tt){ae.current=tt,typeof t=="function"?t(tt):t&&(t.current=tt)},[t]),Ce=(0,B.useState)(!1),_e=U(Ce,2),it=_e[1],vt=X({value:r,level:b,minVersion:ce,includeMargin:re,marginSize:_,imageSettings:ye,size:s}),et=vt.margin,xt=vt.cells,Nt=vt.numCells,je=vt.calculatedImageSettings;(0,B.useEffect)(function(){if(ae.current!=null){var tt=ae.current,me=tt.getContext("2d");if(!me)return;var Tt=xt,Ut=Xe.current,or=je!=null&&Ut!==null&&Ut.complete&&Ut.naturalHeight!==0&&Ut.naturalWidth!==0;or&&je.excavation!=null&&(Tt=qe(xt,je.excavation));var c=window.devicePixelRatio||1;tt.height=tt.width=s*c;var h=s/Nt*c;me.scale(h,h),me.fillStyle=x,me.fillRect(0,0,Nt,Nt),me.fillStyle=te,Pe?me.fill(new Path2D(ze(Tt,et))):xt.forEach(function(f,M){f.forEach(function(O,H){O&&me.fillRect(H+et,M+et,1,1)})}),je&&(me.globalAlpha=je.opacity),or&&me.drawImage(Ut,je.x+et,je.y+et,je.w,je.h)}}),(0,B.useEffect)(function(){it(!1)},[W]);var Pt=Et({height:s,width:s},ge),Ot=null;return W!=null&&(Ot=B.createElement("img",{src:W,key:W,style:{display:"none"},onLoad:function(){it(!0)},ref:Xe,crossOrigin:je==null?void 0:je.crossOrigin})),B.createElement(B.Fragment,null,B.createElement("canvas",bt({style:Pt,height:s,width:s,ref:Ke,role:"img"},Fe)),Ot)});Ze.displayName="QRCodeCanvas";var ft=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],lt=B.forwardRef(function(a,t){var r=a.value,u=a.size,s=u===void 0?le:u,g=a.level,b=g===void 0?Se:g,E=a.bgColor,x=E===void 0?pe:E,$=a.fgColor,te=$===void 0?Oe:$,P=a.includeMargin,re=P===void 0?he:P,V=a.minVersion,ce=V===void 0?be:V,_=a.title,ge=a.marginSize,ye=a.imageSettings,Fe=L(a,ft),W=X({value:r,level:b,minVersion:ce,includeMargin:re,marginSize:ge,imageSettings:ye,size:s}),ae=W.margin,Xe=W.cells,Ke=W.numCells,Ce=W.calculatedImageSettings,_e=Xe,it=null;ye!=null&&Ce!=null&&(Ce.excavation!=null&&(_e=qe(Xe,Ce.excavation)),it=B.createElement("image",{href:ye.src,height:Ce.h,width:Ce.w,x:Ce.x+ae,y:Ce.y+ae,preserveAspectRatio:"none",opacity:Ce.opacity,crossOrigin:Ce.crossOrigin}));var vt=ze(_e,ae);return B.createElement("svg",bt({height:s,width:s,viewBox:"0 0 ".concat(Ke," ").concat(Ke),ref:t,role:"img"},Fe),!!_&&B.createElement("title",null,_),B.createElement("path",{fill:x,d:"M0,0 h".concat(Ke,"v").concat(Ke,"H0z"),shapeRendering:"crispEdges"}),B.createElement("path",{fill:te,d:vt,shapeRendering:"crispEdges"}),it)});lt.displayName="QRCodeSVG"},20991:function(Dt,Te,m){m.d(Te,{Z:function(){return Mt}});var k=m(1413),z=m(87462),oe=m(71002),S=m(97685),q=m(91),I=m(67294),ke=m(2788),p=m(29371),Y=m(93967),N=m.n(Y),D=m(8410),R=m(21770);function j(U){return U!==null&&(0,oe.Z)(U)==="object"}function G(U,F,L){if(U===!1||F===!1&&(!j(U)||!U.closeIcon))return null;var B=typeof F!="boolean"?F:void 0;if(j(U)){var X;return(0,k.Z)((0,k.Z)({},U),{},{closeIcon:(X=U.closeIcon)!==null&&X!==void 0?X:B})}return L||U||F?{closeIcon:B}:"empty"}function ee(U,F,L,B){return I.useMemo(function(){var X=G(U,F,!1),Ue=G(L,B,!0);return X!=="empty"?X:Ue},[L,B,U,F])}var K=m(66680);function C(U){var F=window.innerWidth||document.documentElement.clientWidth,L=window.innerHeight||document.documentElement.clientHeight,B=U.getBoundingClientRect(),X=B.top,Ue=B.right,Ze=B.bottom,ft=B.left;return X>=0&&ft>=0&&Ue<=F&&Ze<=L}function de(U,F,L){var B;return(B=L??F)!==null&&B!==void 0?B:U===null?"center":"bottom"}function Q(U){return typeof U=="number"&&!Number.isNaN(U)}function se(U,F,L,B){var X=(0,I.useState)(void 0),Ue=(0,S.Z)(X,2),Ze=Ue[0],ft=Ue[1];(0,D.Z)(function(){var g=typeof U=="function"?U():U;ft(g||null)});var lt=(0,I.useState)(null),i=(0,S.Z)(lt,2),a=i[0],t=i[1],r=(0,K.Z)(function(){if(Ze){!C(Ze)&&F&&Ze.scrollIntoView(B);var g=Ze.getBoundingClientRect(),b=g.left,E=g.top,x=g.width,$=g.height,te={left:b,top:E,width:x,height:$,radius:0};t(function(P){return JSON.stringify(P)!==JSON.stringify(te)?te:P})}else t(null)}),u=function(b){var E;return(E=Array.isArray(L==null?void 0:L.offset)?L==null?void 0:L.offset[b]:L==null?void 0:L.offset)!==null&&E!==void 0?E:6};(0,D.Z)(function(){return r(),window.addEventListener("resize",r),function(){window.removeEventListener("resize",r)}},[Ze,F,r]);var s=(0,I.useMemo)(function(){if(!a)return a;var g=u(0),b=u(1),E=Q(L==null?void 0:L.radius)?L==null?void 0:L.radius:2;return{left:a.left-g,top:a.top-b,width:a.width+g*2,height:a.height+b*2,radius:E}},[a,L]);return[s,Ze]}var le=m(7028),Se={fill:"transparent",pointerEvents:"auto"},pe=function(F){var L=F.prefixCls,B=F.rootClassName,X=F.pos,Ue=F.showMask,Ze=F.style,ft=Ze===void 0?{}:Ze,lt=F.fill,i=lt===void 0?"rgba(0,0,0,0.5)":lt,a=F.open,t=F.animated,r=F.zIndex,u=F.disabledInteraction,s=(0,le.Z)(),g="".concat(L,"-mask-").concat(s),b=(0,oe.Z)(t)==="object"?t==null?void 0:t.placeholder:t,E=typeof navigator<"u"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),x=E?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return I.createElement(ke.Z,{open:a,autoLock:!0},I.createElement("div",{className:N()("".concat(L,"-mask"),B),style:(0,k.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:r,pointerEvents:X&&!u?"none":"auto"},ft)},Ue?I.createElement("svg",{style:{width:"100%",height:"100%"}},I.createElement("defs",null,I.createElement("mask",{id:g},I.createElement("rect",(0,z.Z)({x:"0",y:"0"},x,{fill:"white"})),X&&I.createElement("rect",{x:X.left,y:X.top,rx:X.radius,width:X.width,height:X.height,fill:"black",className:b?"".concat(L,"-placeholder-animated"):""}))),I.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:i,mask:"url(#".concat(g,")")}),X&&I.createElement(I.Fragment,null,I.createElement("rect",(0,z.Z)({},Se,{x:"0",y:"0",width:"100%",height:X.top})),I.createElement("rect",(0,z.Z)({},Se,{x:"0",y:"0",width:X.left,height:"100%"})),I.createElement("rect",(0,z.Z)({},Se,{x:"0",y:X.top+X.height,width:"100%",height:"calc(100vh - ".concat(X.top+X.height,"px)")})),I.createElement("rect",(0,z.Z)({},Se,{x:X.left+X.width,y:"0",width:"calc(100vw - ".concat(X.left+X.width,"px)"),height:"100%"})))):null))},Oe=pe,he={adjustX:1,adjustY:1},be=[0,0],ne={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function $e(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,F={};return Object.keys(ne).forEach(function(L){F[L]=(0,k.Z)((0,k.Z)({},ne[L]),{},{autoArrow:U,targetOffset:be})}),F}var Ne=$e(),ze=m(74902),qe=m(64217);function xe(U){var F,L=U.prefixCls,B=U.current,X=U.total,Ue=U.title,Ze=U.description,ft=U.onClose,lt=U.onPrev,i=U.onNext,a=U.onFinish,t=U.className,r=U.closable,u=(0,qe.Z)(r||{},!0),s=(F=r==null?void 0:r.closeIcon)!==null&&F!==void 0?F:I.createElement("span",{className:"".concat(L,"-close-x")},"\xD7"),g=!!r;return I.createElement("div",{className:N()("".concat(L,"-content"),t)},I.createElement("div",{className:"".concat(L,"-inner")},g&&I.createElement("button",(0,z.Z)({type:"button",onClick:ft,"aria-label":"Close"},u,{className:"".concat(L,"-close")}),s),I.createElement("div",{className:"".concat(L,"-header")},I.createElement("div",{className:"".concat(L,"-title")},Ue)),I.createElement("div",{className:"".concat(L,"-description")},Ze),I.createElement("div",{className:"".concat(L,"-footer")},I.createElement("div",{className:"".concat(L,"-sliders")},X>1?(0,ze.Z)(Array.from({length:X}).keys()).map(function(b,E){return I.createElement("span",{key:b,className:E===B?"active":""})}):null),I.createElement("div",{className:"".concat(L,"-buttons")},B!==0?I.createElement("button",{className:"".concat(L,"-prev-btn"),onClick:lt},"Prev"):null,B===X-1?I.createElement("button",{className:"".concat(L,"-finish-btn"),onClick:a},"Finish"):I.createElement("button",{className:"".concat(L,"-next-btn"),onClick:i},"Next")))))}var ht=function(F){var L=F.current,B=F.renderPanel;return I.createElement(I.Fragment,null,typeof B=="function"?B(F,L):I.createElement(xe,F))},Pe=ht,bt=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],wt={left:"50%",top:"50%",width:1,height:1},Et={block:"center",inline:"center"},St=function(F){var L=F.prefixCls,B=L===void 0?"rc-tour":L,X=F.steps,Ue=X===void 0?[]:X,Ze=F.defaultCurrent,ft=F.current,lt=F.onChange,i=F.onClose,a=F.onFinish,t=F.open,r=F.mask,u=r===void 0?!0:r,s=F.arrow,g=s===void 0?!0:s,b=F.rootClassName,E=F.placement,x=F.renderPanel,$=F.gap,te=F.animated,P=F.scrollIntoViewOptions,re=P===void 0?Et:P,V=F.zIndex,ce=V===void 0?1001:V,_=F.closeIcon,ge=F.closable,ye=F.builtinPlacements,Fe=F.disabledInteraction,W=(0,q.Z)(F,bt),ae=I.useRef(),Xe=(0,R.Z)(0,{value:ft,defaultValue:Ze}),Ke=(0,S.Z)(Xe,2),Ce=Ke[0],_e=Ke[1],it=(0,R.Z)(void 0,{value:t,postState:function(we){return Ce<0||Ce>=Ue.length?!1:we??!0}}),vt=(0,S.Z)(it,2),et=vt[0],xt=vt[1],Nt=I.useState(et),je=(0,S.Z)(Nt,2),Pt=je[0],Ot=je[1],tt=I.useRef(et);(0,D.Z)(function(){et&&(tt.current||_e(0),Ot(!0)),tt.current=et},[et]);var me=Ue[Ce]||{},Tt=me.target,Ut=me.placement,or=me.style,c=me.arrow,h=me.className,f=me.mask,M=me.scrollIntoViewOptions,O=M===void 0?Et:M,H=me.closeIcon,J=me.closable,Ee=ee(J,H,ge,_),o=et&&(f??u),e=O??re,n=se(Tt,t,$,e),l=(0,S.Z)(n,2),v=l[0],d=l[1],y=de(d,E,Ut),w=d?typeof c>"u"?g:c:!1,ue=(0,oe.Z)(w)==="object"?w.pointAtCenter:!1;(0,D.Z)(function(){var Z;(Z=ae.current)===null||Z===void 0||Z.forceAlign()},[ue,Ce]);var Le=function(we){_e(we),lt==null||lt(we)},fe=(0,I.useMemo)(function(){return ye?typeof ye=="function"?ye({arrowPointAtCenter:ue}):ye:$e(ue)},[ye,ue]);if(d===void 0||!Pt)return null;var ve=function(){xt(!1),i==null||i(Ce)},Re=function(){return I.createElement(Pe,(0,z.Z)({arrow:w,key:"content",prefixCls:B,total:Ue.length,renderPanel:x,onPrev:function(){Le(Ce-1)},onNext:function(){Le(Ce+1)},onClose:ve,current:Ce,onFinish:function(){ve(),a==null||a()}},Ue[Ce],{closable:Ee}))},Ae=typeof o=="boolean"?o:!!o,A=typeof o=="boolean"?void 0:o,De=function(we){return we||d||document.body};return I.createElement(I.Fragment,null,I.createElement(Oe,{zIndex:ce,prefixCls:B,pos:v,showMask:Ae,style:A==null?void 0:A.style,fill:A==null?void 0:A.color,open:et,animated:te,rootClassName:b,disabledInteraction:Fe}),I.createElement(p.Z,(0,z.Z)({},W,{builtinPlacements:fe,ref:ae,popupStyle:or,popupPlacement:y,popupVisible:et,popupClassName:N()(b,h),prefixCls:B,popup:Re,forceRender:!1,destroyPopupOnHide:!0,zIndex:ce,getTriggerDOMNode:De,arrow:!!w}),I.createElement(ke.Z,{open:et,autoLock:!0},I.createElement("div",{className:N()(b,"".concat(B,"-target-placeholder")),style:(0,k.Z)((0,k.Z)({},v||wt),{},{position:"fixed",pointerEvents:"none"})}))))},Ye=St,Mt=Ye},29371:function(Dt,Te,m){m.d(Te,{Z:function(){return or}});var k=m(1413),z=m(97685),oe=m(91),S=m(2788),q=m(93967),I=m.n(q),ke=m(48555),p=m(67294),Y=m.t(p,2),N=m(73935);function D(c){return c instanceof HTMLElement||c instanceof SVGElement}function R(c){return c&&_typeof(c)==="object"&&D(c.nativeElement)?c.nativeElement:D(c)?c:null}function j(c){var h=R(c);if(h)return h;if(c instanceof React.Component){var f;return(f=ReactDOM.findDOMNode)===null||f===void 0?void 0:f.call(ReactDOM,c)}return null}function G(c){var h;return c==null||(h=c.getRootNode)===null||h===void 0?void 0:h.call(c)}function ee(c){return G(c)instanceof ShadowRoot}function K(c){return ee(c)?G(c):null}function C(c){var h=p.useRef();h.current=c;var f=p.useCallback(function(){for(var M,O=arguments.length,H=new Array(O),J=0;J<O;J++)H[J]=arguments[J];return(M=h.current)===null||M===void 0?void 0:M.call.apply(M,[h].concat(H))},[]);return f}function de(){var c=(0,k.Z)({},Y);return c.useId}var Q=0;function se(){}var le=de(),Se=le?function(h){var f=le();return h||f}:function(h){var f=p.useState("ssr-id"),M=(0,z.Z)(f,2),O=M[0],H=M[1];return p.useEffect(function(){var J=Q;Q+=1,H("rc_unique_".concat(J))},[]),h||O};function pe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Oe=pe()?p.useLayoutEffect:p.useEffect,he=function(h,f){var M=p.useRef(!0);Oe(function(){return h(M.current)},f),Oe(function(){return M.current=!1,function(){M.current=!0}},[])},be=function(h,f){he(function(M){if(!M)return h()},f)},ne=he,$e=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var c=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(c)||/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(c==null?void 0:c.substr(0,4))},Ne=m(87462),ze=m(62874),qe=m(71002),xe=m(52481);function ht(c,h,f){var M=p.useRef({});return(!("value"in M.current)||f(M.current.condition,h))&&(M.current.value=c(),M.current.condition=h),M.current.value}var Pe=Symbol.for("react.element"),bt=Symbol.for("react.transitional.element"),wt=Symbol.for("react.fragment");function Et(c){return c&&(0,qe.Z)(c)==="object"&&(c.$$typeof===Pe||c.$$typeof===bt)&&c.type===wt}var St=Number(p.version.split(".")[0]),Ye=function(h,f){typeof h=="function"?h(f):(0,qe.Z)(h)==="object"&&h&&"current"in h&&(h.current=f)},Mt=function(){for(var h=arguments.length,f=new Array(h),M=0;M<h;M++)f[M]=arguments[M];var O=f.filter(Boolean);return O.length<=1?O[0]:function(H){f.forEach(function(J){Ye(J,H)})}},U=function(){for(var h=arguments.length,f=new Array(h),M=0;M<h;M++)f[M]=arguments[M];return ht(function(){return Mt.apply(void 0,f)},f,function(O,H){return O.length!==H.length||O.every(function(J,Ee){return J!==H[Ee]})})},F=function(h){var f,M;if(!h)return!1;if(L(h)&&St>=19)return!0;var O=(0,xe.isMemo)(h)?h.type.type:h.type;return!(typeof O=="function"&&!((f=O.prototype)!==null&&f!==void 0&&f.render)&&O.$$typeof!==xe.ForwardRef||typeof h=="function"&&!((M=h.prototype)!==null&&M!==void 0&&M.render)&&h.$$typeof!==xe.ForwardRef)};function L(c){return(0,p.isValidElement)(c)&&!Et(c)}var B=function(h){return L(h)&&F(h)},X=function(h){if(h&&L(h)){var f=h;return f.props.propertyIsEnumerable("ref")?f.props.ref:f.ref}return null};function Ue(c){var h=c.prefixCls,f=c.align,M=c.arrow,O=c.arrowPos,H=M||{},J=H.className,Ee=H.content,o=O.x,e=o===void 0?0:o,n=O.y,l=n===void 0?0:n,v=p.useRef();if(!f||!f.points)return null;var d={position:"absolute"};if(f.autoArrow!==!1){var y=f.points[0],w=f.points[1],ue=y[0],Le=y[1],fe=w[0],ve=w[1];ue===fe||!["t","b"].includes(ue)?d.top=l:ue==="t"?d.top=0:d.bottom=0,Le===ve||!["l","r"].includes(Le)?d.left=e:Le==="l"?d.left=0:d.right=0}return p.createElement("div",{ref:v,className:I()("".concat(h,"-arrow"),J),style:d},Ee)}function Ze(c){var h=c.prefixCls,f=c.open,M=c.zIndex,O=c.mask,H=c.motion;return O?p.createElement(ze.ZP,(0,Ne.Z)({},H,{motionAppear:!0,visible:f,removeOnLeave:!0}),function(J){var Ee=J.className;return p.createElement("div",{style:{zIndex:M},className:I()("".concat(h,"-mask"),Ee)})}):null}var ft=p.memo(function(c){var h=c.children;return h},function(c,h){return h.cache}),lt=ft,i=p.forwardRef(function(c,h){var f=c.popup,M=c.className,O=c.prefixCls,H=c.style,J=c.target,Ee=c.onVisibleChanged,o=c.open,e=c.keepDom,n=c.fresh,l=c.onClick,v=c.mask,d=c.arrow,y=c.arrowPos,w=c.align,ue=c.motion,Le=c.maskMotion,fe=c.forceRender,ve=c.getPopupContainer,Re=c.autoDestroy,Ae=c.portal,A=c.zIndex,De=c.onMouseEnter,Z=c.onMouseLeave,we=c.onPointerEnter,Me=c.onPointerDownCapture,rt=c.ready,Be=c.offsetX,We=c.offsetY,nt=c.offsetR,at=c.offsetB,ct=c.onAlign,dt=c.onPrepare,ot=c.stretch,gt=c.targetWidth,Ie=c.targetHeight,Ct=typeof f=="function"?f():f,ut=o||e,yt=(ve==null?void 0:ve.length)>0,Ve=p.useState(!ve||!yt),Zt=(0,z.Z)(Ve,2),hr=Zt[0],kr=Zt[1];if(ne(function(){!hr&&yt&&J&&kr(!0)},[hr,yt,J]),!hr)return null;var Jt="auto",Ft={left:"-1000vw",top:"-1000vh",right:Jt,bottom:Jt};if(rt||!o){var ur,gr=w.points,$t=w.dynamicInset||((ur=w._experimental)===null||ur===void 0?void 0:ur.dynamicInset),Yt=$t&&gr[0][1]==="r",Wt=$t&&gr[0][0]==="b";Yt?(Ft.right=nt,Ft.left=Jt):(Ft.left=Be,Ft.right=Jt),Wt?(Ft.bottom=at,Ft.top=Jt):(Ft.top=We,Ft.bottom=Jt)}var kt={};return ot&&(ot.includes("height")&&Ie?kt.height=Ie:ot.includes("minHeight")&&Ie&&(kt.minHeight=Ie),ot.includes("width")&>?kt.width=gt:ot.includes("minWidth")&>&&(kt.minWidth=gt)),o||(kt.pointerEvents="none"),p.createElement(Ae,{open:fe||ut,getContainer:ve&&function(){return ve(J)},autoDestroy:Re},p.createElement(Ze,{prefixCls:O,open:o,zIndex:A,mask:v,motion:Le}),p.createElement(ke.Z,{onResize:ct,disabled:!o},function(Or){return p.createElement(ze.ZP,(0,Ne.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:fe,leavedClassName:"".concat(O,"-hidden")},ue,{onAppearPrepare:dt,onEnterPrepare:dt,visible:o,onVisibleChanged:function(zt){var Xt;ue==null||(Xt=ue.onVisibleChanged)===null||Xt===void 0||Xt.call(ue,zt),Ee(zt)}}),function(sr,zt){var Xt=sr.className,yr=sr.style,Rt=I()(O,Xt,M);return p.createElement("div",{ref:Mt(Or,h,zt),className:Rt,style:(0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},Ft),kt),yr),{},{boxSizing:"border-box",zIndex:A},H),onMouseEnter:De,onMouseLeave:Z,onPointerEnter:we,onClick:l,onPointerDownCapture:Me},d&&p.createElement(Ue,{prefixCls:O,arrow:d,arrowPos:y,align:w}),p.createElement(lt,{cache:!o&&!n},Ct))})}))}),a=i,t=p.forwardRef(function(c,h){var f=c.children,M=c.getTriggerDOMNode,O=F(f),H=p.useCallback(function(Ee){Ye(h,M?M(Ee):Ee)},[M]),J=U(H,X(f));return O?p.cloneElement(f,{ref:J}):f}),r=t,u=p.createContext(null),s=u;function g(c){return c?Array.isArray(c)?c:[c]:[]}function b(c,h,f,M){return p.useMemo(function(){var O=g(f??h),H=g(M??h),J=new Set(O),Ee=new Set(H);return c&&(J.has("hover")&&(J.delete("hover"),J.add("click")),Ee.has("hover")&&(Ee.delete("hover"),Ee.add("click"))),[J,Ee]},[c,h,f,M])}var E=function(c){if(!c)return!1;if(c instanceof Element){if(c.offsetParent)return!0;if(c.getBBox){var h=c.getBBox(),f=h.width,M=h.height;if(f||M)return!0}if(c.getBoundingClientRect){var O=c.getBoundingClientRect(),H=O.width,J=O.height;if(H||J)return!0}}return!1};function x(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=arguments.length>2?arguments[2]:void 0;return f?c[0]===h[0]:c[0]===h[0]&&c[1]===h[1]}function $(c,h,f,M){for(var O=f.points,H=Object.keys(c),J=0;J<H.length;J+=1){var Ee,o=H[J];if(x((Ee=c[o])===null||Ee===void 0?void 0:Ee.points,O,M))return"".concat(h,"-placement-").concat(o)}return""}function te(c,h,f,M){return h||(f?{motionName:"".concat(c,"-").concat(f)}:M?{motionName:M}:null)}function P(c){return c.ownerDocument.defaultView}function re(c){for(var h=[],f=c==null?void 0:c.parentElement,M=["hidden","scroll","clip","auto"];f;){var O=P(f).getComputedStyle(f),H=O.overflowX,J=O.overflowY,Ee=O.overflow;[H,J,Ee].some(function(o){return M.includes(o)})&&h.push(f),f=f.parentElement}return h}function V(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(c)?h:c}function ce(c){return V(parseFloat(c),0)}function _(c,h){var f=(0,k.Z)({},c);return(h||[]).forEach(function(M){if(!(M instanceof HTMLBodyElement||M instanceof HTMLHtmlElement)){var O=P(M).getComputedStyle(M),H=O.overflow,J=O.overflowClipMargin,Ee=O.borderTopWidth,o=O.borderBottomWidth,e=O.borderLeftWidth,n=O.borderRightWidth,l=M.getBoundingClientRect(),v=M.offsetHeight,d=M.clientHeight,y=M.offsetWidth,w=M.clientWidth,ue=ce(Ee),Le=ce(o),fe=ce(e),ve=ce(n),Re=V(Math.round(l.width/y*1e3)/1e3),Ae=V(Math.round(l.height/v*1e3)/1e3),A=(y-w-fe-ve)*Re,De=(v-d-ue-Le)*Ae,Z=ue*Ae,we=Le*Ae,Me=fe*Re,rt=ve*Re,Be=0,We=0;if(H==="clip"){var nt=ce(J);Be=nt*Re,We=nt*Ae}var at=l.x+Me-Be,ct=l.y+Z-We,dt=at+l.width+2*Be-Me-rt-A,ot=ct+l.height+2*We-Z-we-De;f.left=Math.max(f.left,at),f.top=Math.max(f.top,ct),f.right=Math.min(f.right,dt),f.bottom=Math.min(f.bottom,ot)}}),f}function ge(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f="".concat(h),M=f.match(/^(.*)\%$/);return M?c*(parseFloat(M[1])/100):parseFloat(f)}function ye(c,h){var f=h||[],M=(0,z.Z)(f,2),O=M[0],H=M[1];return[ge(c.width,O),ge(c.height,H)]}function Fe(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[c[0],c[1]]}function W(c,h){var f=h[0],M=h[1],O,H;return f==="t"?H=c.y:f==="b"?H=c.y+c.height:H=c.y+c.height/2,M==="l"?O=c.x:M==="r"?O=c.x+c.width:O=c.x+c.width/2,{x:O,y:H}}function ae(c,h){var f={t:"b",b:"t",l:"r",r:"l"};return c.map(function(M,O){return O===h?f[M]||"c":M}).join("")}function Xe(c,h,f,M,O,H,J){var Ee=p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:O[M]||{}}),o=(0,z.Z)(Ee,2),e=o[0],n=o[1],l=p.useRef(0),v=p.useMemo(function(){return h?re(h):[]},[h]),d=p.useRef({}),y=function(){d.current={}};c||y();var w=C(function(){if(h&&f&&c){let Ht=function(xr,dr){var mr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vr,Br=Ve.x+xr,on=Ve.y+dr,In=Br+Yt,Dn=on+$t,xn=Math.max(Br,mr.left),T=Math.max(on,mr.top),ie=Math.min(In,mr.right),Je=Math.min(Dn,mr.bottom);return Math.max(0,(ie-xn)*(Je-T))},an=function(){Er=Ve.y+Qe,wr=Er+$t,ar=Ve.x+He,Rr=ar+Yt};var fe,ve,Re,Ae,A=h,De=A.ownerDocument,Z=P(A),we=Z.getComputedStyle(A),Me=we.width,rt=we.height,Be=we.position,We=A.style.left,nt=A.style.top,at=A.style.right,ct=A.style.bottom,dt=A.style.overflow,ot=(0,k.Z)((0,k.Z)({},O[M]),H),gt=De.createElement("div");(fe=A.parentElement)===null||fe===void 0||fe.appendChild(gt),gt.style.left="".concat(A.offsetLeft,"px"),gt.style.top="".concat(A.offsetTop,"px"),gt.style.position=Be,gt.style.height="".concat(A.offsetHeight,"px"),gt.style.width="".concat(A.offsetWidth,"px"),A.style.left="0",A.style.top="0",A.style.right="auto",A.style.bottom="auto",A.style.overflow="hidden";var Ie;if(Array.isArray(f))Ie={x:f[0],y:f[1],width:0,height:0};else{var Ct,ut,yt=f.getBoundingClientRect();yt.x=(Ct=yt.x)!==null&&Ct!==void 0?Ct:yt.left,yt.y=(ut=yt.y)!==null&&ut!==void 0?ut:yt.top,Ie={x:yt.x,y:yt.y,width:yt.width,height:yt.height}}var Ve=A.getBoundingClientRect();Ve.x=(ve=Ve.x)!==null&&ve!==void 0?ve:Ve.left,Ve.y=(Re=Ve.y)!==null&&Re!==void 0?Re:Ve.top;var Zt=De.documentElement,hr=Zt.clientWidth,kr=Zt.clientHeight,Jt=Zt.scrollWidth,Ft=Zt.scrollHeight,ur=Zt.scrollTop,gr=Zt.scrollLeft,$t=Ve.height,Yt=Ve.width,Wt=Ie.height,kt=Ie.width,Or={left:0,top:0,right:hr,bottom:kr},sr={left:-gr,top:-ur,right:Jt-gr,bottom:Ft-ur},zt=ot.htmlRegion,Xt="visible",yr="visibleFirst";zt!=="scroll"&&zt!==yr&&(zt=Xt);var Rt=zt===yr,ln=_(sr,v),Ge=_(Or,v),Vr=zt===Xt?Ge:ln,br=Rt?Ge:Vr;A.style.left="auto",A.style.top="auto",A.style.right="0",A.style.bottom="0";var At=A.getBoundingClientRect();A.style.left=We,A.style.top=nt,A.style.right=at,A.style.bottom=ct,A.style.overflow=dt,(Ae=A.parentElement)===null||Ae===void 0||Ae.removeChild(gt);var lr=V(Math.round(Yt/parseFloat(Me)*1e3)/1e3),nr=V(Math.round($t/parseFloat(rt)*1e3)/1e3);if(lr===0||nr===0||D(f)&&!E(f))return;var cn=ot.offset,fn=ot.targetOffset,Hr=ye(Ve,cn),Gt=(0,z.Z)(Hr,2),Qt=Gt[0],jt=Gt[1],vn=ye(Ie,fn),Cr=(0,z.Z)(vn,2),Bt=Cr[0],cr=Cr[1];Ie.x-=Bt,Ie.y-=cr;var dn=ot.points||[],Ur=(0,z.Z)(dn,2),mn=Ur[0],hn=Ur[1],_t=Fe(hn),Lt=Fe(mn),Zr=W(Ie,_t),It=W(Ve,Lt),fr=(0,k.Z)({},ot),He=Zr.x-It.x+Qt,Qe=Zr.y-It.y+jt,qt=Ht(He,Qe),pr=Ht(He,Qe,Ge),Fr=W(Ie,["t","l"]),Vt=W(Ve,["t","l"]),Wr=W(Ie,["b","r"]),Lr=W(Ve,["b","r"]),vr=ot.overflow||{},Gr=vr.adjustX,gn=vr.adjustY,Tr=vr.shiftX,Pr=vr.shiftY,$r=function(dr){return typeof dr=="boolean"?dr:dr>=0},Er,wr,ar,Rr;an();var Sr=$r(gn),Qr=Lt[0]===_t[0];if(Sr&&Lt[0]==="t"&&(wr>br.bottom||d.current.bt)){var pt=Qe;Qr?pt-=$t-Wt:pt=Fr.y-Lr.y-jt;var qr=Ht(He,pt),yn=Ht(He,pt,Ge);qr>qt||qr===qt&&(!Rt||yn>=pr)?(d.current.bt=!0,Qe=pt,jt=-jt,fr.points=[ae(Lt,0),ae(_t,0)]):d.current.bt=!1}if(Sr&&Lt[0]==="b"&&(Er<br.top||d.current.tb)){var Mr=Qe;Qr?Mr+=$t-Wt:Mr=Wr.y-Vt.y-jt;var Kr=Ht(He,Mr),bn=Ht(He,Mr,Ge);Kr>qt||Kr===qt&&(!Rt||bn>=pr)?(d.current.tb=!0,Qe=Mr,jt=-jt,fr.points=[ae(Lt,0),ae(_t,0)]):d.current.tb=!1}var Jr=$r(Gr),Yr=Lt[1]===_t[1];if(Jr&&Lt[1]==="l"&&(Rr>br.right||d.current.rl)){var Nr=He;Yr?Nr-=Yt-kt:Nr=Fr.x-Lr.x-Qt;var Xr=Ht(Nr,Qe),Ar=Ht(Nr,Qe,Ge);Xr>qt||Xr===qt&&(!Rt||Ar>=pr)?(d.current.rl=!0,He=Nr,Qt=-Qt,fr.points=[ae(Lt,1),ae(_t,1)]):d.current.rl=!1}if(Jr&&Lt[1]==="r"&&(ar<br.left||d.current.lr)){var ir=He;Yr?ir+=Yt-kt:ir=Wr.x-Vt.x-Qt;var _r=Ht(ir,Qe),en=Ht(ir,Qe,Ge);_r>qt||_r===qt&&(!Rt||en>=pr)?(d.current.lr=!0,He=ir,Qt=-Qt,fr.points=[ae(Lt,1),ae(_t,1)]):d.current.lr=!1}an();var er=Tr===!0?0:Tr;typeof er=="number"&&(ar<Ge.left&&(He-=ar-Ge.left-Qt,Ie.x+kt<Ge.left+er&&(He+=Ie.x-Ge.left+kt-er)),Rr>Ge.right&&(He-=Rr-Ge.right-Qt,Ie.x>Ge.right-er&&(He+=Ie.x-Ge.right+er)));var Kt=Pr===!0?0:Pr;typeof Kt=="number"&&(Er<Ge.top&&(Qe-=Er-Ge.top-jt,Ie.y+Wt<Ge.top+Kt&&(Qe+=Ie.y-Ge.top+Wt-Kt)),wr>Ge.bottom&&(Qe-=wr-Ge.bottom-jt,Ie.y>Ge.bottom-Kt&&(Qe+=Ie.y-Ge.bottom+Kt)));var Ir=Ve.x+He,Dr=Ir+Yt,tr=Ve.y+Qe,Cn=tr+$t,tn=Ie.x,pn=tn+kt,zr=Ie.y,En=zr+Wt,wn=Math.max(Ir,tn),Sn=Math.min(Dr,pn),rn=(wn+Sn)/2,Mn=rn-Ir,Nn=Math.max(tr,zr),nn=Math.min(Cn,En),Pn=(Nn+nn)/2,Rn=Pn-tr;J==null||J(h,fr);var jr=At.right-Ve.x-(He+Ve.width),rr=At.bottom-Ve.y-(Qe+Ve.height);lr===1&&(He=Math.round(He),jr=Math.round(jr)),nr===1&&(Qe=Math.round(Qe),rr=Math.round(rr));var An={ready:!0,offsetX:He/lr,offsetY:Qe/nr,offsetR:jr/lr,offsetB:rr/nr,arrowX:Mn/lr,arrowY:Rn/nr,scaleX:lr,scaleY:nr,align:fr};n(An)}}),ue=function(){l.current+=1;var ve=l.current;Promise.resolve().then(function(){l.current===ve&&w()})},Le=function(){n(function(ve){return(0,k.Z)((0,k.Z)({},ve),{},{ready:!1})})};return ne(Le,[M]),ne(function(){c||Le()},[c]),[e.ready,e.offsetX,e.offsetY,e.offsetR,e.offsetB,e.arrowX,e.arrowY,e.scaleX,e.scaleY,e.align,ue]}var Ke=m(74902);function Ce(c,h,f,M,O){ne(function(){if(c&&h&&f){let l=function(){M(),O()};var H=h,J=f,Ee=re(H),o=re(J),e=P(J),n=new Set([e].concat((0,Ke.Z)(Ee),(0,Ke.Z)(o)));return n.forEach(function(v){v.addEventListener("scroll",l,{passive:!0})}),e.addEventListener("resize",l,{passive:!0}),M(),function(){n.forEach(function(v){v.removeEventListener("scroll",l),e.removeEventListener("resize",l)})}}},[c,h,f])}var _e={},it=[],vt=function(h){it.push(h)};function et(c,h){if(!1)var f}function xt(c,h){if(!1)var f}function Nt(){_e={}}function je(c,h,f){!h&&!_e[f]&&(c(!1,f),_e[f]=!0)}function Pt(c,h){je(et,c,h)}function Ot(c,h){je(xt,c,h)}Pt.preMessage=vt,Pt.resetWarned=Nt,Pt.noteOnce=Ot;var tt=null;function me(c,h,f,M,O,H,J,Ee){var o=p.useRef(c);o.current=c;var e=p.useRef(!1);p.useEffect(function(){if(h&&M&&(!O||H)){var l=function(){e.current=!1},v=function(Re){var Ae;o.current&&!J(((Ae=Re.composedPath)===null||Ae===void 0||(Ae=Ae.call(Re))===null||Ae===void 0?void 0:Ae[0])||Re.target)&&!e.current&&Ee(!1)},d=P(M);d.addEventListener("pointerdown",l,!0),d.addEventListener("mousedown",v,!0),d.addEventListener("contextmenu",v,!0);var y=K(f);if(y&&(y.addEventListener("mousedown",v,!0),y.addEventListener("contextmenu",v,!0)),!1)var w,ue,Le,fe;return function(){d.removeEventListener("pointerdown",l,!0),d.removeEventListener("mousedown",v,!0),d.removeEventListener("contextmenu",v,!0),y&&(y.removeEventListener("mousedown",v,!0),y.removeEventListener("contextmenu",v,!0))}}},[h,f,M,O,H]);function n(){e.current=!0}return n}var Tt=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Ut(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S.Z,h=p.forwardRef(function(f,M){var O=f.prefixCls,H=O===void 0?"rc-trigger-popup":O,J=f.children,Ee=f.action,o=Ee===void 0?"hover":Ee,e=f.showAction,n=f.hideAction,l=f.popupVisible,v=f.defaultPopupVisible,d=f.onPopupVisibleChange,y=f.afterPopupVisibleChange,w=f.mouseEnterDelay,ue=f.mouseLeaveDelay,Le=ue===void 0?.1:ue,fe=f.focusDelay,ve=f.blurDelay,Re=f.mask,Ae=f.maskClosable,A=Ae===void 0?!0:Ae,De=f.getPopupContainer,Z=f.forceRender,we=f.autoDestroy,Me=f.destroyPopupOnHide,rt=f.popup,Be=f.popupClassName,We=f.popupStyle,nt=f.popupPlacement,at=f.builtinPlacements,ct=at===void 0?{}:at,dt=f.popupAlign,ot=f.zIndex,gt=f.stretch,Ie=f.getPopupClassNameFromAlign,Ct=f.fresh,ut=f.alignPoint,yt=f.onPopupClick,Ve=f.onPopupAlign,Zt=f.arrow,hr=f.popupMotion,kr=f.maskMotion,Jt=f.popupTransitionName,Ft=f.popupAnimation,ur=f.maskTransitionName,gr=f.maskAnimation,$t=f.className,Yt=f.getTriggerDOMNode,Wt=(0,oe.Z)(f,Tt),kt=we||Me||!1,Or=p.useState(!1),sr=(0,z.Z)(Or,2),zt=sr[0],Xt=sr[1];ne(function(){Xt($e())},[]);var yr=p.useRef({}),Rt=p.useContext(s),ln=p.useMemo(function(){return{registerSubPopup:function(ie,Je){yr.current[ie]=Je,Rt==null||Rt.registerSubPopup(ie,Je)}}},[Rt]),Ge=Se(),Vr=p.useState(null),br=(0,z.Z)(Vr,2),At=br[0],lr=br[1],nr=p.useRef(null),cn=C(function(T){nr.current=T,D(T)&&At!==T&&lr(T),Rt==null||Rt.registerSubPopup(Ge,T)}),fn=p.useState(null),Hr=(0,z.Z)(fn,2),Gt=Hr[0],Qt=Hr[1],jt=p.useRef(null),vn=C(function(T){D(T)&&Gt!==T&&(Qt(T),jt.current=T)}),Cr=p.Children.only(J),Bt=(Cr==null?void 0:Cr.props)||{},cr={},dn=C(function(T){var ie,Je,mt=Gt;return(mt==null?void 0:mt.contains(T))||((ie=K(mt))===null||ie===void 0?void 0:ie.host)===T||T===mt||(At==null?void 0:At.contains(T))||((Je=K(At))===null||Je===void 0?void 0:Je.host)===T||T===At||Object.values(yr.current).some(function(st){return(st==null?void 0:st.contains(T))||T===st})}),Ur=te(H,hr,Ft,Jt),mn=te(H,kr,gr,ur),hn=p.useState(v||!1),_t=(0,z.Z)(hn,2),Lt=_t[0],Zr=_t[1],It=l??Lt,fr=C(function(T){l===void 0&&Zr(T)});ne(function(){Zr(l||!1)},[l]);var He=p.useRef(It);He.current=It;var Qe=p.useRef([]);Qe.current=[];var qt=C(function(T){var ie;fr(T),((ie=Qe.current[Qe.current.length-1])!==null&&ie!==void 0?ie:It)!==T&&(Qe.current.push(T),d==null||d(T))}),pr=p.useRef(),Fr=function(){clearTimeout(pr.current)},Vt=function(ie){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Fr(),Je===0?qt(ie):pr.current=setTimeout(function(){qt(ie)},Je*1e3)};p.useEffect(function(){return Fr},[]);var Wr=p.useState(!1),Lr=(0,z.Z)(Wr,2),vr=Lr[0],Gr=Lr[1];ne(function(T){(!T||It)&&Gr(!0)},[It]);var gn=p.useState(null),Tr=(0,z.Z)(gn,2),Pr=Tr[0],$r=Tr[1],Er=p.useState(null),wr=(0,z.Z)(Er,2),ar=wr[0],Rr=wr[1],Sr=function(ie){Rr([ie.clientX,ie.clientY])},Qr=Xe(It,At,ut&&ar!==null?ar:Gt,nt,ct,dt,Ve),pt=(0,z.Z)(Qr,11),qr=pt[0],yn=pt[1],Mr=pt[2],Kr=pt[3],bn=pt[4],Jr=pt[5],Yr=pt[6],Nr=pt[7],Xr=pt[8],Ar=pt[9],ir=pt[10],_r=b(zt,o,e,n),en=(0,z.Z)(_r,2),er=en[0],Kt=en[1],Ir=er.has("click"),Dr=Kt.has("click")||Kt.has("contextMenu"),tr=C(function(){vr||ir()}),Cn=function(){He.current&&ut&&Dr&&Vt(!1)};Ce(It,Gt,At,tr,Cn),ne(function(){tr()},[ar,nt]),ne(function(){It&&!(ct!=null&&ct[nt])&&tr()},[JSON.stringify(dt)]);var tn=p.useMemo(function(){var T=$(ct,H,Ar,ut);return I()(T,Ie==null?void 0:Ie(Ar))},[Ar,Ie,ct,H,ut]);p.useImperativeHandle(M,function(){return{nativeElement:jt.current,popupElement:nr.current,forceAlign:tr}});var pn=p.useState(0),zr=(0,z.Z)(pn,2),En=zr[0],wn=zr[1],Sn=p.useState(0),rn=(0,z.Z)(Sn,2),Mn=rn[0],Nn=rn[1],nn=function(){if(gt&&Gt){var ie=Gt.getBoundingClientRect();wn(ie.width),Nn(ie.height)}},Pn=function(){nn(),tr()},Rn=function(ie){Gr(!1),ir(),y==null||y(ie)},jr=function(){return new Promise(function(ie){nn(),$r(function(){return ie})})};ne(function(){Pr&&(ir(),Pr(),$r(null))},[Pr]);function rr(T,ie,Je,mt){cr[T]=function(st){var un;mt==null||mt(st),Vt(ie,Je);for(var kn=arguments.length,On=new Array(kn>1?kn-1:0),sn=1;sn<kn;sn++)On[sn-1]=arguments[sn];(un=Bt[T])===null||un===void 0||un.call.apply(un,[Bt,st].concat(On))}}(Ir||Dr)&&(cr.onClick=function(T){var ie;He.current&&Dr?Vt(!1):!He.current&&Ir&&(Sr(T),Vt(!0));for(var Je=arguments.length,mt=new Array(Je>1?Je-1:0),st=1;st<Je;st++)mt[st-1]=arguments[st];(ie=Bt.onClick)===null||ie===void 0||ie.call.apply(ie,[Bt,T].concat(mt))});var An=me(It,Dr,Gt,At,Re,A,dn,Vt),Ht=er.has("hover"),an=Kt.has("hover"),xr,dr;Ht&&(rr("onMouseEnter",!0,w,function(T){Sr(T)}),rr("onPointerEnter",!0,w,function(T){Sr(T)}),xr=function(ie){(It||vr)&&At!==null&&At!==void 0&&At.contains(ie.target)&&Vt(!0,w)},ut&&(cr.onMouseMove=function(T){var ie;(ie=Bt.onMouseMove)===null||ie===void 0||ie.call(Bt,T)})),an&&(rr("onMouseLeave",!1,Le),rr("onPointerLeave",!1,Le),dr=function(){Vt(!1,Le)}),er.has("focus")&&rr("onFocus",!0,fe),Kt.has("focus")&&rr("onBlur",!1,ve),er.has("contextMenu")&&(cr.onContextMenu=function(T){var ie;He.current&&Kt.has("contextMenu")?Vt(!1):(Sr(T),Vt(!0)),T.preventDefault();for(var Je=arguments.length,mt=new Array(Je>1?Je-1:0),st=1;st<Je;st++)mt[st-1]=arguments[st];(ie=Bt.onContextMenu)===null||ie===void 0||ie.call.apply(ie,[Bt,T].concat(mt))}),$t&&(cr.className=I()(Bt.className,$t));var mr=(0,k.Z)((0,k.Z)({},Bt),cr),Br={},on=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];on.forEach(function(T){Wt[T]&&(Br[T]=function(){for(var ie,Je=arguments.length,mt=new Array(Je),st=0;st<Je;st++)mt[st]=arguments[st];(ie=mr[T])===null||ie===void 0||ie.call.apply(ie,[mr].concat(mt)),Wt[T].apply(Wt,mt)})});var In=p.cloneElement(Cr,(0,k.Z)((0,k.Z)({},mr),Br)),Dn={x:Jr,y:Yr},xn=Zt?(0,k.Z)({},Zt!==!0?Zt:{}):null;return p.createElement(p.Fragment,null,p.createElement(ke.Z,{disabled:!It,ref:vn,onResize:Pn},p.createElement(r,{getTriggerDOMNode:Yt},In)),p.createElement(s.Provider,{value:ln},p.createElement(a,{portal:c,ref:cn,prefixCls:H,popup:rt,className:I()(Be,tn),style:We,target:Gt,onMouseEnter:xr,onMouseLeave:dr,onPointerEnter:xr,zIndex:ot,open:It,keepDom:vr,fresh:Ct,onClick:yt,onPointerDownCapture:An,mask:Re,motion:Ur,maskMotion:mn,onVisibleChanged:Rn,onPrepare:jr,forceRender:Z,autoDestroy:kt,getPopupContainer:De,align:Ar,arrow:xn,arrowPos:Dn,ready:qr,offsetX:yn,offsetY:Mr,offsetR:Kr,offsetB:bn,onAlign:tr,stretch:gt,targetWidth:En/Nr,targetHeight:Mn/Xr})))});return h}var or=Ut(S.Z)},48482:function(Dt,Te){var m;var k=Symbol.for("react.element"),z=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),ke=Symbol.for("react.context"),p=Symbol.for("react.server_context"),Y=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),ee;ee=Symbol.for("react.module.reference");function K(C){if(typeof C=="object"&&C!==null){var de=C.$$typeof;switch(de){case k:switch(C=C.type,C){case oe:case q:case S:case N:case D:return C;default:switch(C=C&&C.$$typeof,C){case p:case ke:case Y:case j:case R:case I:return C;default:return de}}case z:return de}}}m=ke,m=I,m=k,Te.ForwardRef=Y,m=oe,m=j,m=R,m=z,m=q,m=S,m=N,m=D,m=function(){return!1},m=function(){return!1},m=function(C){return K(C)===ke},m=function(C){return K(C)===I},m=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===k},m=function(C){return K(C)===Y},m=function(C){return K(C)===oe},m=function(C){return K(C)===j},Te.isMemo=function(C){return K(C)===R},m=function(C){return K(C)===z},m=function(C){return K(C)===q},m=function(C){return K(C)===S},m=function(C){return K(C)===N},m=function(C){return K(C)===D},m=function(C){return typeof C=="string"||typeof C=="function"||C===oe||C===q||C===S||C===N||C===D||C===G||typeof C=="object"&&C!==null&&(C.$$typeof===j||C.$$typeof===R||C.$$typeof===I||C.$$typeof===ke||C.$$typeof===Y||C.$$typeof===ee||C.getModuleId!==void 0)},m=K},52481:function(Dt,Te,m){Dt.exports=m(48482)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[8227],{86560:function(bn,He,P){P.d(He,{Z:function(){return pn}});var he=P(87462),I=P(1413),re=P(4942),A=P(97685),Xe=P(71002),we=P(91),Ke=P(93967),fe=P.n(Ke),Pe=P(27678),Ee=P(21770),n=P(67294),je=P(40974),Se=P(64019),Ne=P(15105),Ue=P(2788),Be=P(82225),xe=n.createContext(null),Je=function(e){var o=e.visible,c=e.maskTransitionName,s=e.getContainer,t=e.prefixCls,m=e.rootClassName,r=e.icons,l=e.countRender,v=e.showSwitch,C=e.showProgress,u=e.current,E=e.transform,h=e.count,w=e.scale,y=e.minScale,T=e.maxScale,S=e.closeIcon,L=e.onActive,b=e.onClose,R=e.onZoomIn,a=e.onZoomOut,Z=e.onRotateRight,d=e.onRotateLeft,f=e.onFlipX,x=e.onFlipY,p=e.onReset,g=e.toolbarRender,N=e.zIndex,D=e.image,M=(0,n.useContext)(xe),F=r.rotateLeft,H=r.rotateRight,K=r.zoomIn,j=r.zoomOut,q=r.close,G=r.left,U=r.right,_=r.flipX,B=r.flipY,ie="".concat(t,"-operations-operation");n.useEffect(function(){var Y=function(X){X.keyCode===Ne.Z.ESC&&b()};return o&&window.addEventListener("keydown",Y),function(){window.removeEventListener("keydown",Y)}},[o]);var ee=function(O,X){O.preventDefault(),O.stopPropagation(),L(X)},$=n.useCallback(function(Y){var O=Y.type,X=Y.disabled,V=Y.onClick,z=Y.icon;return n.createElement("div",{key:O,className:fe()(ie,"".concat(t,"-operations-operation-").concat(O),(0,re.Z)({},"".concat(t,"-operations-operation-disabled"),!!X)),onClick:V},z)},[ie,t]),se=v?$({icon:G,onClick:function(O){return ee(O,-1)},type:"prev",disabled:u===0}):void 0,ne=v?$({icon:U,onClick:function(O){return ee(O,1)},type:"next",disabled:u===h-1}):void 0,J=$({icon:B,onClick:x,type:"flipY"}),k=$({icon:_,onClick:f,type:"flipX"}),oe=$({icon:F,onClick:d,type:"rotateLeft"}),W=$({icon:H,onClick:Z,type:"rotateRight"}),Q=$({icon:j,onClick:a,type:"zoomOut",disabled:w<=y}),ae=$({icon:K,onClick:R,type:"zoomIn",disabled:w===T}),ce=n.createElement("div",{className:"".concat(t,"-operations")},J,k,oe,W,Q,ae);return n.createElement(Be.ZP,{visible:o,motionName:c},function(Y){var O=Y.className,X=Y.style;return n.createElement(Ue.Z,{open:!0,getContainer:s??document.body},n.createElement("div",{className:fe()("".concat(t,"-operations-wrapper"),O,m),style:(0,I.Z)((0,I.Z)({},X),{},{zIndex:N})},S===null?null:n.createElement("button",{className:"".concat(t,"-close"),onClick:b},S||q),v&&n.createElement(n.Fragment,null,n.createElement("div",{className:fe()("".concat(t,"-switch-left"),(0,re.Z)({},"".concat(t,"-switch-left-disabled"),u===0)),onClick:function(z){return ee(z,-1)}},G),n.createElement("div",{className:fe()("".concat(t,"-switch-right"),(0,re.Z)({},"".concat(t,"-switch-right-disabled"),u===h-1)),onClick:function(z){return ee(z,1)}},U)),n.createElement("div",{className:"".concat(t,"-footer")},C&&n.createElement("div",{className:"".concat(t,"-progress")},l?l(u+1,h):"".concat(u+1," / ").concat(h)),g?g(ce,(0,I.Z)((0,I.Z)({icons:{prevIcon:se,nextIcon:ne,flipYIcon:J,flipXIcon:k,rotateLeftIcon:oe,rotateRightIcon:W,zoomOutIcon:Q,zoomInIcon:ae},actions:{onActive:L,onFlipY:x,onFlipX:f,onRotateLeft:d,onRotateRight:Z,onZoomOut:a,onZoomIn:R,onReset:p,onClose:b},transform:E},M?{current:u,total:h}:{}),{},{image:D})):ce)))})},Qe=Je,qe=P(91881),_e=P(75164),pe={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function en(i,e,o,c){var s=(0,n.useRef)(null),t=(0,n.useRef)([]),m=(0,n.useState)(pe),r=(0,A.Z)(m,2),l=r[0],v=r[1],C=function(w){v(pe),(0,qe.Z)(pe,l)||c==null||c({transform:pe,action:w})},u=function(w,y){s.current===null&&(t.current=[],s.current=(0,_e.Z)(function(){v(function(T){var S=T;return t.current.forEach(function(L){S=(0,I.Z)((0,I.Z)({},S),L)}),s.current=null,c==null||c({transform:S,action:y}),S})})),t.current.push((0,I.Z)((0,I.Z)({},l),w))},E=function(w,y,T,S,L){var b=i.current,R=b.width,a=b.height,Z=b.offsetWidth,d=b.offsetHeight,f=b.offsetLeft,x=b.offsetTop,p=w,g=l.scale*w;g>o?(g=o,p=o/l.scale):g<e&&(g=L?g:e,p=g/l.scale);var N=T??innerWidth/2,D=S??innerHeight/2,M=p-1,F=M*R*.5,H=M*a*.5,K=M*(N-l.x-f),j=M*(D-l.y-x),q=l.x-(K-F),G=l.y-(j-H);if(w<1&&g===1){var U=Z*g,_=d*g,B=(0,Pe.g1)(),ie=B.width,ee=B.height;U<=ie&&_<=ee&&(q=0,G=0)}u({x:q,y:G,scale:g},y)};return{transform:l,resetTransform:C,updateTransform:u,dispatchZoomChange:E}}var nn=P(80334);function $e(i,e,o,c){var s=e+o,t=(o-c)/2;if(o>c){if(e>0)return(0,re.Z)({},i,t);if(e<0&&s<c)return(0,re.Z)({},i,-t)}else if(e<0||s>c)return(0,re.Z)({},i,e<0?t:-t);return{}}function Ae(i,e,o,c){var s=(0,Pe.g1)(),t=s.width,m=s.height,r=null;return i<=t&&e<=m?r={x:0,y:0}:(i>t||e>m)&&(r=(0,I.Z)((0,I.Z)({},$e("x",o,i,t)),$e("y",c,e,m))),r}var Ze=1,tn=1;function on(i,e,o,c,s,t,m){var r=s.rotate,l=s.scale,v=s.x,C=s.y,u=(0,n.useState)(!1),E=(0,A.Z)(u,2),h=E[0],w=E[1],y=(0,n.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),T=function(a){!e||a.button!==0||(a.preventDefault(),a.stopPropagation(),y.current={diffX:a.pageX-v,diffY:a.pageY-C,transformX:v,transformY:C},w(!0))},S=function(a){o&&h&&t({x:a.pageX-y.current.diffX,y:a.pageY-y.current.diffY},"move")},L=function(){if(o&&h){w(!1);var a=y.current,Z=a.transformX,d=a.transformY,f=v!==Z&&C!==d;if(!f)return;var x=i.current.offsetWidth*l,p=i.current.offsetHeight*l,g=i.current.getBoundingClientRect(),N=g.left,D=g.top,M=r%180!==0,F=Ae(M?p:x,M?x:p,N,D);F&&t((0,I.Z)({},F),"dragRebound")}},b=function(a){if(!(!o||a.deltaY==0)){var Z=Math.abs(a.deltaY/100),d=Math.min(Z,tn),f=Ze+d*c;a.deltaY>0&&(f=Ze/f),m(f,"wheel",a.clientX,a.clientY)}};return(0,n.useEffect)(function(){var R,a,Z,d;if(e){Z=(0,Se.Z)(window,"mouseup",L,!1),d=(0,Se.Z)(window,"mousemove",S,!1);try{window.top!==window.self&&(R=(0,Se.Z)(window.top,"mouseup",L,!1),a=(0,Se.Z)(window.top,"mousemove",S,!1))}catch(f){(0,nn.Kp)(!1,"[rc-image] ".concat(f))}}return function(){var f,x,p,g;(f=Z)===null||f===void 0||f.remove(),(x=d)===null||x===void 0||x.remove(),(p=R)===null||p===void 0||p.remove(),(g=a)===null||g===void 0||g.remove()}},[o,h,v,C,r,e]),{isMoving:h,onMouseDown:T,onMouseMove:S,onMouseUp:L,onWheel:b}}function an(i){return new Promise(function(e){var o=document.createElement("img");o.onerror=function(){return e(!1)},o.onload=function(){return e(!0)},o.src=i})}function De(i){var e=i.src,o=i.isCustomPlaceholder,c=i.fallback,s=(0,n.useState)(o?"loading":"normal"),t=(0,A.Z)(s,2),m=t[0],r=t[1],l=(0,n.useRef)(!1),v=m==="error";(0,n.useEffect)(function(){var h=!0;return an(e).then(function(w){!w&&h&&r("error")}),function(){h=!1}},[e]),(0,n.useEffect)(function(){o&&!l.current?r("loading"):v&&r("normal")},[e]);var C=function(){r("normal")},u=function(w){l.current=!1,m==="loading"&&w!==null&&w!==void 0&&w.complete&&(w.naturalWidth||w.naturalHeight)&&(l.current=!0,C())},E=v&&c?{src:c}:{onLoad:C,src:e};return[u,E,m]}function Re(i,e){var o=i.x-e.x,c=i.y-e.y;return Math.hypot(o,c)}function rn(i,e,o,c){var s=Re(i,o),t=Re(e,c);if(s===0&&t===0)return[i.x,i.y];var m=s/(s+t),r=i.x+m*(e.x-i.x),l=i.y+m*(e.y-i.y);return[r,l]}function sn(i,e,o,c,s,t,m){var r=s.rotate,l=s.scale,v=s.x,C=s.y,u=(0,n.useState)(!1),E=(0,A.Z)(u,2),h=E[0],w=E[1],y=(0,n.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),T=function(a){y.current=(0,I.Z)((0,I.Z)({},y.current),a)},S=function(a){if(e){a.stopPropagation(),w(!0);var Z=a.touches,d=Z===void 0?[]:Z;d.length>1?T({point1:{x:d[0].clientX,y:d[0].clientY},point2:{x:d[1].clientX,y:d[1].clientY},eventType:"touchZoom"}):T({point1:{x:d[0].clientX-v,y:d[0].clientY-C},eventType:"move"})}},L=function(a){var Z=a.touches,d=Z===void 0?[]:Z,f=y.current,x=f.point1,p=f.point2,g=f.eventType;if(d.length>1&&g==="touchZoom"){var N={x:d[0].clientX,y:d[0].clientY},D={x:d[1].clientX,y:d[1].clientY},M=rn(x,p,N,D),F=(0,A.Z)(M,2),H=F[0],K=F[1],j=Re(N,D)/Re(x,p);m(j,"touchZoom",H,K,!0),T({point1:N,point2:D,eventType:"touchZoom"})}else g==="move"&&(t({x:d[0].clientX-x.x,y:d[0].clientY-x.y},"move"),T({eventType:"move"}))},b=function(){if(o){if(h&&w(!1),T({eventType:"none"}),c>l)return t({x:0,y:0,scale:c},"touchZoom");var a=i.current.offsetWidth*l,Z=i.current.offsetHeight*l,d=i.current.getBoundingClientRect(),f=d.left,x=d.top,p=r%180!==0,g=Ae(p?Z:a,p?a:Z,f,x);g&&t((0,I.Z)({},g),"dragRebound")}};return(0,n.useEffect)(function(){var R;return o&&e&&(R=(0,Se.Z)(window,"touchmove",function(a){return a.preventDefault()},{passive:!1})),function(){var a;(a=R)===null||a===void 0||a.remove()}},[o,e]),{isTouching:h,onTouchStart:S,onTouchMove:L,onTouchEnd:b}}var cn=["fallback","src","imgRef"],ln=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],un=function(e){var o=e.fallback,c=e.src,s=e.imgRef,t=(0,we.Z)(e,cn),m=De({src:c,fallback:o}),r=(0,A.Z)(m,2),l=r[0],v=r[1];return n.createElement("img",(0,he.Z)({ref:function(u){s.current=u,l(u)}},t,v))},fn=function(e){var o=e.prefixCls,c=e.src,s=e.alt,t=e.imageInfo,m=e.fallback,r=e.movable,l=r===void 0?!0:r,v=e.onClose,C=e.visible,u=e.icons,E=u===void 0?{}:u,h=e.rootClassName,w=e.closeIcon,y=e.getContainer,T=e.current,S=T===void 0?0:T,L=e.count,b=L===void 0?1:L,R=e.countRender,a=e.scaleStep,Z=a===void 0?.5:a,d=e.minScale,f=d===void 0?1:d,x=e.maxScale,p=x===void 0?50:x,g=e.transitionName,N=g===void 0?"zoom":g,D=e.maskTransitionName,M=D===void 0?"fade":D,F=e.imageRender,H=e.imgCommonProps,K=e.toolbarRender,j=e.onTransform,q=e.onChange,G=(0,we.Z)(e,ln),U=(0,n.useRef)(),_=(0,n.useContext)(xe),B=_&&b>1,ie=_&&b>=1,ee=(0,n.useState)(!0),$=(0,A.Z)(ee,2),se=$[0],ne=$[1],J=en(U,f,p,j),k=J.transform,oe=J.resetTransform,W=J.updateTransform,Q=J.dispatchZoomChange,ae=on(U,l,C,Z,k,W,Q),ce=ae.isMoving,Y=ae.onMouseDown,O=ae.onWheel,X=sn(U,l,C,f,k,W,Q),V=X.isTouching,z=X.onTouchStart,ve=X.onTouchMove,Ce=X.onTouchEnd,le=k.rotate,ue=k.scale,ke=fe()((0,re.Z)({},"".concat(o,"-moving"),ce));(0,n.useEffect)(function(){se||ne(!0)},[se]);var Le=function(){oe("close")},Ye=function(){Q(Ze+Z,"zoomIn")},me=function(){Q(Ze/(Ze+Z),"zoomOut")},de=function(){W({rotate:le+90},"rotateRight")},Ie=function(){W({rotate:le-90},"rotateLeft")},ye=function(){W({flipX:!k.flipX},"flipX")},be=function(){W({flipY:!k.flipY},"flipY")},Rn=function(){oe("reset")},Oe=function(ge){var Te=S+ge;!Number.isInteger(Te)||Te<0||Te>b-1||(ne(!1),oe(ge<0?"prev":"next"),q==null||q(Te,S))},In=function(ge){!C||!B||(ge.keyCode===Ne.Z.LEFT?Oe(-1):ge.keyCode===Ne.Z.RIGHT&&Oe(1))},yn=function(ge){C&&(ue!==1?W({x:0,y:0,scale:1},"doubleClick"):Q(Ze+Z,"doubleClick",ge.clientX,ge.clientY))};(0,n.useEffect)(function(){var te=(0,Se.Z)(window,"keydown",In,!1);return function(){te.remove()}},[C,B,S]);var Ve=n.createElement(un,(0,he.Z)({},H,{width:e.width,height:e.height,imgRef:U,className:"".concat(o,"-img"),alt:s,style:{transform:"translate3d(".concat(k.x,"px, ").concat(k.y,"px, 0) scale3d(").concat(k.flipX?"-":"").concat(ue,", ").concat(k.flipY?"-":"").concat(ue,", 1) rotate(").concat(le,"deg)"),transitionDuration:(!se||V)&&"0s"},fallback:m,src:c,onWheel:O,onMouseDown:Y,onDoubleClick:yn,onTouchStart:z,onTouchMove:ve,onTouchEnd:Ce,onTouchCancel:Ce})),Ge=(0,I.Z)({url:c,alt:s},t);return n.createElement(n.Fragment,null,n.createElement(je.Z,(0,he.Z)({transitionName:N,maskTransitionName:M,closable:!1,keyboard:!0,prefixCls:o,onClose:v,visible:C,classNames:{wrapper:ke},rootClassName:h,getContainer:y},G,{afterClose:Le}),n.createElement("div",{className:"".concat(o,"-img-wrapper")},F?F(Ve,(0,I.Z)({transform:k,image:Ge},_?{current:S}:{})):Ve)),n.createElement(Qe,{visible:C,transform:k,maskTransitionName:M,closeIcon:w,getContainer:y,prefixCls:o,rootClassName:h,icons:E,countRender:R,showSwitch:B,showProgress:ie,current:S,count:b,scale:ue,minScale:f,maxScale:p,toolbarRender:K,onActive:Oe,onZoomIn:Ye,onZoomOut:me,onRotateRight:de,onRotateLeft:Ie,onFlipX:ye,onFlipY:be,onClose:v,onReset:Rn,zIndex:G.zIndex!==void 0?G.zIndex+1:void 0,image:Ge}))},ze=fn,vn=P(74902),Me=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function mn(i){var e=n.useState({}),o=(0,A.Z)(e,2),c=o[0],s=o[1],t=n.useCallback(function(r,l){return s(function(v){return(0,I.Z)((0,I.Z)({},v),{},(0,re.Z)({},r,l))}),function(){s(function(v){var C=(0,I.Z)({},v);return delete C[r],C})}},[]),m=n.useMemo(function(){return i?i.map(function(r){if(typeof r=="string")return{data:{src:r}};var l={};return Object.keys(r).forEach(function(v){["src"].concat((0,vn.Z)(Me)).includes(v)&&(l[v]=r[v])}),{data:l}}):Object.keys(c).reduce(function(r,l){var v=c[l],C=v.canPreview,u=v.data;return C&&r.push({data:u,id:l}),r},[])},[i,c]);return[m,t,!!i]}var dn=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],gn=["src"],hn=function(e){var o,c=e.previewPrefixCls,s=c===void 0?"rc-image-preview":c,t=e.children,m=e.icons,r=m===void 0?{}:m,l=e.items,v=e.preview,C=e.fallback,u=(0,Xe.Z)(v)==="object"?v:{},E=u.visible,h=u.onVisibleChange,w=u.getContainer,y=u.current,T=u.movable,S=u.minScale,L=u.maxScale,b=u.countRender,R=u.closeIcon,a=u.onChange,Z=u.onTransform,d=u.toolbarRender,f=u.imageRender,x=(0,we.Z)(u,dn),p=mn(l),g=(0,A.Z)(p,3),N=g[0],D=g[1],M=g[2],F=(0,Ee.Z)(0,{value:y}),H=(0,A.Z)(F,2),K=H[0],j=H[1],q=(0,n.useState)(!1),G=(0,A.Z)(q,2),U=G[0],_=G[1],B=((o=N[K])===null||o===void 0?void 0:o.data)||{},ie=B.src,ee=(0,we.Z)(B,gn),$=(0,Ee.Z)(!!E,{value:E,onChange:function(V,z){h==null||h(V,z,K)}}),se=(0,A.Z)($,2),ne=se[0],J=se[1],k=(0,n.useState)(null),oe=(0,A.Z)(k,2),W=oe[0],Q=oe[1],ae=n.useCallback(function(X,V,z,ve){var Ce=M?N.findIndex(function(le){return le.data.src===V}):N.findIndex(function(le){return le.id===X});j(Ce<0?0:Ce),J(!0),Q({x:z,y:ve}),_(!0)},[N,M]);n.useEffect(function(){ne?U||j(0):_(!1)},[ne]);var ce=function(V,z){j(V),a==null||a(V,z)},Y=function(){J(!1),Q(null)},O=n.useMemo(function(){return{register:D,onPreview:ae}},[D,ae]);return n.createElement(xe.Provider,{value:O},t,n.createElement(ze,(0,he.Z)({"aria-hidden":!ne,movable:T,visible:ne,prefixCls:s,closeIcon:R,onClose:Y,mousePosition:W,imgCommonProps:ee,src:ie,fallback:C,icons:r,minScale:S,maxScale:L,getContainer:w,current:K,count:N.length,countRender:b,onTransform:Z,toolbarRender:d,imageRender:f,onChange:ce},x)))},Cn=hn,Fe=0;function wn(i,e){var o=n.useState(function(){return Fe+=1,String(Fe)}),c=(0,A.Z)(o,1),s=c[0],t=n.useContext(xe),m={data:e,canPreview:i};return n.useEffect(function(){if(t)return t.register(s,m)},[]),n.useEffect(function(){t&&t.register(s,m)},[i,e]),s}var Sn=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Zn=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],We=function(e){var o=e.src,c=e.alt,s=e.onPreviewClose,t=e.prefixCls,m=t===void 0?"rc-image":t,r=e.previewPrefixCls,l=r===void 0?"".concat(m,"-preview"):r,v=e.placeholder,C=e.fallback,u=e.width,E=e.height,h=e.style,w=e.preview,y=w===void 0?!0:w,T=e.className,S=e.onClick,L=e.onError,b=e.wrapperClassName,R=e.wrapperStyle,a=e.rootClassName,Z=(0,we.Z)(e,Sn),d=v&&v!==!0,f=(0,Xe.Z)(y)==="object"?y:{},x=f.src,p=f.visible,g=p===void 0?void 0:p,N=f.onVisibleChange,D=N===void 0?s:N,M=f.getContainer,F=M===void 0?void 0:M,H=f.mask,K=f.maskClassName,j=f.movable,q=f.icons,G=f.scaleStep,U=f.minScale,_=f.maxScale,B=f.imageRender,ie=f.toolbarRender,ee=(0,we.Z)(f,Zn),$=x??o,se=(0,Ee.Z)(!!g,{value:g,onChange:D}),ne=(0,A.Z)(se,2),J=ne[0],k=ne[1],oe=De({src:o,isCustomPlaceholder:d,fallback:C}),W=(0,A.Z)(oe,3),Q=W[0],ae=W[1],ce=W[2],Y=(0,n.useState)(null),O=(0,A.Z)(Y,2),X=O[0],V=O[1],z=(0,n.useContext)(xe),ve=!!y,Ce=function(){k(!1),V(null)},le=fe()(m,b,a,(0,re.Z)({},"".concat(m,"-error"),ce==="error")),ue=(0,n.useMemo)(function(){var me={};return Me.forEach(function(de){e[de]!==void 0&&(me[de]=e[de])}),me},Me.map(function(me){return e[me]})),ke=(0,n.useMemo)(function(){return(0,I.Z)((0,I.Z)({},ue),{},{src:$})},[$,ue]),Le=wn(ve,ke),Ye=function(de){var Ie=(0,Pe.os)(de.target),ye=Ie.left,be=Ie.top;z?z.onPreview(Le,$,ye,be):(V({x:ye,y:be}),k(!0)),S==null||S(de)};return n.createElement(n.Fragment,null,n.createElement("div",(0,he.Z)({},Z,{className:le,onClick:ve?Ye:S,style:(0,I.Z)({width:u,height:E},R)}),n.createElement("img",(0,he.Z)({},ue,{className:fe()("".concat(m,"-img"),(0,re.Z)({},"".concat(m,"-img-placeholder"),v===!0),T),style:(0,I.Z)({height:E},h),ref:Q},ae,{width:u,height:E,onError:L})),ce==="loading"&&n.createElement("div",{"aria-hidden":"true",className:"".concat(m,"-placeholder")},v),H&&ve&&n.createElement("div",{className:fe()("".concat(m,"-mask"),K),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},H)),!z&&ve&&n.createElement(ze,(0,he.Z)({"aria-hidden":!J,visible:J,prefixCls:l,onClose:Ce,mousePosition:X,src:$,alt:c,imageInfo:{width:u,height:E},fallback:C,getContainer:F,icons:q,movable:j,scaleStep:G,minScale:U,maxScale:_,rootClassName:a,imageRender:B,imgCommonProps:ue,toolbarRender:ie},ee)))};We.PreviewGroup=Cn;var xn=We,pn=xn}}]);
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[8227],{86560:function(bn,He,P){P.d(He,{Z:function(){return pn}});var he=P(87462),I=P(1413),re=P(4942),A=P(97685),Xe=P(71002),we=P(91),Ke=P(93967),fe=P.n(Ke),Pe=P(27678),Ee=P(21770),n=P(67294),je=P(40974),Se=P(64019),Ne=P(15105),Ue=P(2788),Be=P(62874),xe=n.createContext(null),Je=function(e){var o=e.visible,c=e.maskTransitionName,s=e.getContainer,t=e.prefixCls,m=e.rootClassName,r=e.icons,l=e.countRender,v=e.showSwitch,C=e.showProgress,u=e.current,E=e.transform,h=e.count,w=e.scale,y=e.minScale,T=e.maxScale,S=e.closeIcon,L=e.onActive,b=e.onClose,R=e.onZoomIn,a=e.onZoomOut,Z=e.onRotateRight,d=e.onRotateLeft,f=e.onFlipX,x=e.onFlipY,p=e.onReset,g=e.toolbarRender,N=e.zIndex,D=e.image,M=(0,n.useContext)(xe),F=r.rotateLeft,H=r.rotateRight,K=r.zoomIn,j=r.zoomOut,q=r.close,G=r.left,U=r.right,_=r.flipX,B=r.flipY,ie="".concat(t,"-operations-operation");n.useEffect(function(){var Y=function(X){X.keyCode===Ne.Z.ESC&&b()};return o&&window.addEventListener("keydown",Y),function(){window.removeEventListener("keydown",Y)}},[o]);var ee=function(O,X){O.preventDefault(),O.stopPropagation(),L(X)},$=n.useCallback(function(Y){var O=Y.type,X=Y.disabled,V=Y.onClick,z=Y.icon;return n.createElement("div",{key:O,className:fe()(ie,"".concat(t,"-operations-operation-").concat(O),(0,re.Z)({},"".concat(t,"-operations-operation-disabled"),!!X)),onClick:V},z)},[ie,t]),se=v?$({icon:G,onClick:function(O){return ee(O,-1)},type:"prev",disabled:u===0}):void 0,ne=v?$({icon:U,onClick:function(O){return ee(O,1)},type:"next",disabled:u===h-1}):void 0,J=$({icon:B,onClick:x,type:"flipY"}),k=$({icon:_,onClick:f,type:"flipX"}),oe=$({icon:F,onClick:d,type:"rotateLeft"}),W=$({icon:H,onClick:Z,type:"rotateRight"}),Q=$({icon:j,onClick:a,type:"zoomOut",disabled:w<=y}),ae=$({icon:K,onClick:R,type:"zoomIn",disabled:w===T}),ce=n.createElement("div",{className:"".concat(t,"-operations")},J,k,oe,W,Q,ae);return n.createElement(Be.ZP,{visible:o,motionName:c},function(Y){var O=Y.className,X=Y.style;return n.createElement(Ue.Z,{open:!0,getContainer:s??document.body},n.createElement("div",{className:fe()("".concat(t,"-operations-wrapper"),O,m),style:(0,I.Z)((0,I.Z)({},X),{},{zIndex:N})},S===null?null:n.createElement("button",{className:"".concat(t,"-close"),onClick:b},S||q),v&&n.createElement(n.Fragment,null,n.createElement("div",{className:fe()("".concat(t,"-switch-left"),(0,re.Z)({},"".concat(t,"-switch-left-disabled"),u===0)),onClick:function(z){return ee(z,-1)}},G),n.createElement("div",{className:fe()("".concat(t,"-switch-right"),(0,re.Z)({},"".concat(t,"-switch-right-disabled"),u===h-1)),onClick:function(z){return ee(z,1)}},U)),n.createElement("div",{className:"".concat(t,"-footer")},C&&n.createElement("div",{className:"".concat(t,"-progress")},l?l(u+1,h):"".concat(u+1," / ").concat(h)),g?g(ce,(0,I.Z)((0,I.Z)({icons:{prevIcon:se,nextIcon:ne,flipYIcon:J,flipXIcon:k,rotateLeftIcon:oe,rotateRightIcon:W,zoomOutIcon:Q,zoomInIcon:ae},actions:{onActive:L,onFlipY:x,onFlipX:f,onRotateLeft:d,onRotateRight:Z,onZoomOut:a,onZoomIn:R,onReset:p,onClose:b},transform:E},M?{current:u,total:h}:{}),{},{image:D})):ce)))})},Qe=Je,qe=P(91881),_e=P(75164),pe={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function en(i,e,o,c){var s=(0,n.useRef)(null),t=(0,n.useRef)([]),m=(0,n.useState)(pe),r=(0,A.Z)(m,2),l=r[0],v=r[1],C=function(w){v(pe),(0,qe.Z)(pe,l)||c==null||c({transform:pe,action:w})},u=function(w,y){s.current===null&&(t.current=[],s.current=(0,_e.Z)(function(){v(function(T){var S=T;return t.current.forEach(function(L){S=(0,I.Z)((0,I.Z)({},S),L)}),s.current=null,c==null||c({transform:S,action:y}),S})})),t.current.push((0,I.Z)((0,I.Z)({},l),w))},E=function(w,y,T,S,L){var b=i.current,R=b.width,a=b.height,Z=b.offsetWidth,d=b.offsetHeight,f=b.offsetLeft,x=b.offsetTop,p=w,g=l.scale*w;g>o?(g=o,p=o/l.scale):g<e&&(g=L?g:e,p=g/l.scale);var N=T??innerWidth/2,D=S??innerHeight/2,M=p-1,F=M*R*.5,H=M*a*.5,K=M*(N-l.x-f),j=M*(D-l.y-x),q=l.x-(K-F),G=l.y-(j-H);if(w<1&&g===1){var U=Z*g,_=d*g,B=(0,Pe.g1)(),ie=B.width,ee=B.height;U<=ie&&_<=ee&&(q=0,G=0)}u({x:q,y:G,scale:g},y)};return{transform:l,resetTransform:C,updateTransform:u,dispatchZoomChange:E}}var nn=P(80334);function $e(i,e,o,c){var s=e+o,t=(o-c)/2;if(o>c){if(e>0)return(0,re.Z)({},i,t);if(e<0&&s<c)return(0,re.Z)({},i,-t)}else if(e<0||s>c)return(0,re.Z)({},i,e<0?t:-t);return{}}function Ae(i,e,o,c){var s=(0,Pe.g1)(),t=s.width,m=s.height,r=null;return i<=t&&e<=m?r={x:0,y:0}:(i>t||e>m)&&(r=(0,I.Z)((0,I.Z)({},$e("x",o,i,t)),$e("y",c,e,m))),r}var Ze=1,tn=1;function on(i,e,o,c,s,t,m){var r=s.rotate,l=s.scale,v=s.x,C=s.y,u=(0,n.useState)(!1),E=(0,A.Z)(u,2),h=E[0],w=E[1],y=(0,n.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),T=function(a){!e||a.button!==0||(a.preventDefault(),a.stopPropagation(),y.current={diffX:a.pageX-v,diffY:a.pageY-C,transformX:v,transformY:C},w(!0))},S=function(a){o&&h&&t({x:a.pageX-y.current.diffX,y:a.pageY-y.current.diffY},"move")},L=function(){if(o&&h){w(!1);var a=y.current,Z=a.transformX,d=a.transformY,f=v!==Z&&C!==d;if(!f)return;var x=i.current.offsetWidth*l,p=i.current.offsetHeight*l,g=i.current.getBoundingClientRect(),N=g.left,D=g.top,M=r%180!==0,F=Ae(M?p:x,M?x:p,N,D);F&&t((0,I.Z)({},F),"dragRebound")}},b=function(a){if(!(!o||a.deltaY==0)){var Z=Math.abs(a.deltaY/100),d=Math.min(Z,tn),f=Ze+d*c;a.deltaY>0&&(f=Ze/f),m(f,"wheel",a.clientX,a.clientY)}};return(0,n.useEffect)(function(){var R,a,Z,d;if(e){Z=(0,Se.Z)(window,"mouseup",L,!1),d=(0,Se.Z)(window,"mousemove",S,!1);try{window.top!==window.self&&(R=(0,Se.Z)(window.top,"mouseup",L,!1),a=(0,Se.Z)(window.top,"mousemove",S,!1))}catch(f){(0,nn.Kp)(!1,"[rc-image] ".concat(f))}}return function(){var f,x,p,g;(f=Z)===null||f===void 0||f.remove(),(x=d)===null||x===void 0||x.remove(),(p=R)===null||p===void 0||p.remove(),(g=a)===null||g===void 0||g.remove()}},[o,h,v,C,r,e]),{isMoving:h,onMouseDown:T,onMouseMove:S,onMouseUp:L,onWheel:b}}function an(i){return new Promise(function(e){var o=document.createElement("img");o.onerror=function(){return e(!1)},o.onload=function(){return e(!0)},o.src=i})}function De(i){var e=i.src,o=i.isCustomPlaceholder,c=i.fallback,s=(0,n.useState)(o?"loading":"normal"),t=(0,A.Z)(s,2),m=t[0],r=t[1],l=(0,n.useRef)(!1),v=m==="error";(0,n.useEffect)(function(){var h=!0;return an(e).then(function(w){!w&&h&&r("error")}),function(){h=!1}},[e]),(0,n.useEffect)(function(){o&&!l.current?r("loading"):v&&r("normal")},[e]);var C=function(){r("normal")},u=function(w){l.current=!1,m==="loading"&&w!==null&&w!==void 0&&w.complete&&(w.naturalWidth||w.naturalHeight)&&(l.current=!0,C())},E=v&&c?{src:c}:{onLoad:C,src:e};return[u,E,m]}function Re(i,e){var o=i.x-e.x,c=i.y-e.y;return Math.hypot(o,c)}function rn(i,e,o,c){var s=Re(i,o),t=Re(e,c);if(s===0&&t===0)return[i.x,i.y];var m=s/(s+t),r=i.x+m*(e.x-i.x),l=i.y+m*(e.y-i.y);return[r,l]}function sn(i,e,o,c,s,t,m){var r=s.rotate,l=s.scale,v=s.x,C=s.y,u=(0,n.useState)(!1),E=(0,A.Z)(u,2),h=E[0],w=E[1],y=(0,n.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),T=function(a){y.current=(0,I.Z)((0,I.Z)({},y.current),a)},S=function(a){if(e){a.stopPropagation(),w(!0);var Z=a.touches,d=Z===void 0?[]:Z;d.length>1?T({point1:{x:d[0].clientX,y:d[0].clientY},point2:{x:d[1].clientX,y:d[1].clientY},eventType:"touchZoom"}):T({point1:{x:d[0].clientX-v,y:d[0].clientY-C},eventType:"move"})}},L=function(a){var Z=a.touches,d=Z===void 0?[]:Z,f=y.current,x=f.point1,p=f.point2,g=f.eventType;if(d.length>1&&g==="touchZoom"){var N={x:d[0].clientX,y:d[0].clientY},D={x:d[1].clientX,y:d[1].clientY},M=rn(x,p,N,D),F=(0,A.Z)(M,2),H=F[0],K=F[1],j=Re(N,D)/Re(x,p);m(j,"touchZoom",H,K,!0),T({point1:N,point2:D,eventType:"touchZoom"})}else g==="move"&&(t({x:d[0].clientX-x.x,y:d[0].clientY-x.y},"move"),T({eventType:"move"}))},b=function(){if(o){if(h&&w(!1),T({eventType:"none"}),c>l)return t({x:0,y:0,scale:c},"touchZoom");var a=i.current.offsetWidth*l,Z=i.current.offsetHeight*l,d=i.current.getBoundingClientRect(),f=d.left,x=d.top,p=r%180!==0,g=Ae(p?Z:a,p?a:Z,f,x);g&&t((0,I.Z)({},g),"dragRebound")}};return(0,n.useEffect)(function(){var R;return o&&e&&(R=(0,Se.Z)(window,"touchmove",function(a){return a.preventDefault()},{passive:!1})),function(){var a;(a=R)===null||a===void 0||a.remove()}},[o,e]),{isTouching:h,onTouchStart:S,onTouchMove:L,onTouchEnd:b}}var cn=["fallback","src","imgRef"],ln=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],un=function(e){var o=e.fallback,c=e.src,s=e.imgRef,t=(0,we.Z)(e,cn),m=De({src:c,fallback:o}),r=(0,A.Z)(m,2),l=r[0],v=r[1];return n.createElement("img",(0,he.Z)({ref:function(u){s.current=u,l(u)}},t,v))},fn=function(e){var o=e.prefixCls,c=e.src,s=e.alt,t=e.imageInfo,m=e.fallback,r=e.movable,l=r===void 0?!0:r,v=e.onClose,C=e.visible,u=e.icons,E=u===void 0?{}:u,h=e.rootClassName,w=e.closeIcon,y=e.getContainer,T=e.current,S=T===void 0?0:T,L=e.count,b=L===void 0?1:L,R=e.countRender,a=e.scaleStep,Z=a===void 0?.5:a,d=e.minScale,f=d===void 0?1:d,x=e.maxScale,p=x===void 0?50:x,g=e.transitionName,N=g===void 0?"zoom":g,D=e.maskTransitionName,M=D===void 0?"fade":D,F=e.imageRender,H=e.imgCommonProps,K=e.toolbarRender,j=e.onTransform,q=e.onChange,G=(0,we.Z)(e,ln),U=(0,n.useRef)(),_=(0,n.useContext)(xe),B=_&&b>1,ie=_&&b>=1,ee=(0,n.useState)(!0),$=(0,A.Z)(ee,2),se=$[0],ne=$[1],J=en(U,f,p,j),k=J.transform,oe=J.resetTransform,W=J.updateTransform,Q=J.dispatchZoomChange,ae=on(U,l,C,Z,k,W,Q),ce=ae.isMoving,Y=ae.onMouseDown,O=ae.onWheel,X=sn(U,l,C,f,k,W,Q),V=X.isTouching,z=X.onTouchStart,ve=X.onTouchMove,Ce=X.onTouchEnd,le=k.rotate,ue=k.scale,ke=fe()((0,re.Z)({},"".concat(o,"-moving"),ce));(0,n.useEffect)(function(){se||ne(!0)},[se]);var Le=function(){oe("close")},Ye=function(){Q(Ze+Z,"zoomIn")},me=function(){Q(Ze/(Ze+Z),"zoomOut")},de=function(){W({rotate:le+90},"rotateRight")},Ie=function(){W({rotate:le-90},"rotateLeft")},ye=function(){W({flipX:!k.flipX},"flipX")},be=function(){W({flipY:!k.flipY},"flipY")},Rn=function(){oe("reset")},Oe=function(ge){var Te=S+ge;!Number.isInteger(Te)||Te<0||Te>b-1||(ne(!1),oe(ge<0?"prev":"next"),q==null||q(Te,S))},In=function(ge){!C||!B||(ge.keyCode===Ne.Z.LEFT?Oe(-1):ge.keyCode===Ne.Z.RIGHT&&Oe(1))},yn=function(ge){C&&(ue!==1?W({x:0,y:0,scale:1},"doubleClick"):Q(Ze+Z,"doubleClick",ge.clientX,ge.clientY))};(0,n.useEffect)(function(){var te=(0,Se.Z)(window,"keydown",In,!1);return function(){te.remove()}},[C,B,S]);var Ve=n.createElement(un,(0,he.Z)({},H,{width:e.width,height:e.height,imgRef:U,className:"".concat(o,"-img"),alt:s,style:{transform:"translate3d(".concat(k.x,"px, ").concat(k.y,"px, 0) scale3d(").concat(k.flipX?"-":"").concat(ue,", ").concat(k.flipY?"-":"").concat(ue,", 1) rotate(").concat(le,"deg)"),transitionDuration:(!se||V)&&"0s"},fallback:m,src:c,onWheel:O,onMouseDown:Y,onDoubleClick:yn,onTouchStart:z,onTouchMove:ve,onTouchEnd:Ce,onTouchCancel:Ce})),Ge=(0,I.Z)({url:c,alt:s},t);return n.createElement(n.Fragment,null,n.createElement(je.Z,(0,he.Z)({transitionName:N,maskTransitionName:M,closable:!1,keyboard:!0,prefixCls:o,onClose:v,visible:C,classNames:{wrapper:ke},rootClassName:h,getContainer:y},G,{afterClose:Le}),n.createElement("div",{className:"".concat(o,"-img-wrapper")},F?F(Ve,(0,I.Z)({transform:k,image:Ge},_?{current:S}:{})):Ve)),n.createElement(Qe,{visible:C,transform:k,maskTransitionName:M,closeIcon:w,getContainer:y,prefixCls:o,rootClassName:h,icons:E,countRender:R,showSwitch:B,showProgress:ie,current:S,count:b,scale:ue,minScale:f,maxScale:p,toolbarRender:K,onActive:Oe,onZoomIn:Ye,onZoomOut:me,onRotateRight:de,onRotateLeft:Ie,onFlipX:ye,onFlipY:be,onClose:v,onReset:Rn,zIndex:G.zIndex!==void 0?G.zIndex+1:void 0,image:Ge}))},ze=fn,vn=P(74902),Me=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function mn(i){var e=n.useState({}),o=(0,A.Z)(e,2),c=o[0],s=o[1],t=n.useCallback(function(r,l){return s(function(v){return(0,I.Z)((0,I.Z)({},v),{},(0,re.Z)({},r,l))}),function(){s(function(v){var C=(0,I.Z)({},v);return delete C[r],C})}},[]),m=n.useMemo(function(){return i?i.map(function(r){if(typeof r=="string")return{data:{src:r}};var l={};return Object.keys(r).forEach(function(v){["src"].concat((0,vn.Z)(Me)).includes(v)&&(l[v]=r[v])}),{data:l}}):Object.keys(c).reduce(function(r,l){var v=c[l],C=v.canPreview,u=v.data;return C&&r.push({data:u,id:l}),r},[])},[i,c]);return[m,t,!!i]}var dn=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],gn=["src"],hn=function(e){var o,c=e.previewPrefixCls,s=c===void 0?"rc-image-preview":c,t=e.children,m=e.icons,r=m===void 0?{}:m,l=e.items,v=e.preview,C=e.fallback,u=(0,Xe.Z)(v)==="object"?v:{},E=u.visible,h=u.onVisibleChange,w=u.getContainer,y=u.current,T=u.movable,S=u.minScale,L=u.maxScale,b=u.countRender,R=u.closeIcon,a=u.onChange,Z=u.onTransform,d=u.toolbarRender,f=u.imageRender,x=(0,we.Z)(u,dn),p=mn(l),g=(0,A.Z)(p,3),N=g[0],D=g[1],M=g[2],F=(0,Ee.Z)(0,{value:y}),H=(0,A.Z)(F,2),K=H[0],j=H[1],q=(0,n.useState)(!1),G=(0,A.Z)(q,2),U=G[0],_=G[1],B=((o=N[K])===null||o===void 0?void 0:o.data)||{},ie=B.src,ee=(0,we.Z)(B,gn),$=(0,Ee.Z)(!!E,{value:E,onChange:function(V,z){h==null||h(V,z,K)}}),se=(0,A.Z)($,2),ne=se[0],J=se[1],k=(0,n.useState)(null),oe=(0,A.Z)(k,2),W=oe[0],Q=oe[1],ae=n.useCallback(function(X,V,z,ve){var Ce=M?N.findIndex(function(le){return le.data.src===V}):N.findIndex(function(le){return le.id===X});j(Ce<0?0:Ce),J(!0),Q({x:z,y:ve}),_(!0)},[N,M]);n.useEffect(function(){ne?U||j(0):_(!1)},[ne]);var ce=function(V,z){j(V),a==null||a(V,z)},Y=function(){J(!1),Q(null)},O=n.useMemo(function(){return{register:D,onPreview:ae}},[D,ae]);return n.createElement(xe.Provider,{value:O},t,n.createElement(ze,(0,he.Z)({"aria-hidden":!ne,movable:T,visible:ne,prefixCls:s,closeIcon:R,onClose:Y,mousePosition:W,imgCommonProps:ee,src:ie,fallback:C,icons:r,minScale:S,maxScale:L,getContainer:w,current:K,count:N.length,countRender:b,onTransform:Z,toolbarRender:d,imageRender:f,onChange:ce},x)))},Cn=hn,Fe=0;function wn(i,e){var o=n.useState(function(){return Fe+=1,String(Fe)}),c=(0,A.Z)(o,1),s=c[0],t=n.useContext(xe),m={data:e,canPreview:i};return n.useEffect(function(){if(t)return t.register(s,m)},[]),n.useEffect(function(){t&&t.register(s,m)},[i,e]),s}var Sn=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Zn=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],We=function(e){var o=e.src,c=e.alt,s=e.onPreviewClose,t=e.prefixCls,m=t===void 0?"rc-image":t,r=e.previewPrefixCls,l=r===void 0?"".concat(m,"-preview"):r,v=e.placeholder,C=e.fallback,u=e.width,E=e.height,h=e.style,w=e.preview,y=w===void 0?!0:w,T=e.className,S=e.onClick,L=e.onError,b=e.wrapperClassName,R=e.wrapperStyle,a=e.rootClassName,Z=(0,we.Z)(e,Sn),d=v&&v!==!0,f=(0,Xe.Z)(y)==="object"?y:{},x=f.src,p=f.visible,g=p===void 0?void 0:p,N=f.onVisibleChange,D=N===void 0?s:N,M=f.getContainer,F=M===void 0?void 0:M,H=f.mask,K=f.maskClassName,j=f.movable,q=f.icons,G=f.scaleStep,U=f.minScale,_=f.maxScale,B=f.imageRender,ie=f.toolbarRender,ee=(0,we.Z)(f,Zn),$=x??o,se=(0,Ee.Z)(!!g,{value:g,onChange:D}),ne=(0,A.Z)(se,2),J=ne[0],k=ne[1],oe=De({src:o,isCustomPlaceholder:d,fallback:C}),W=(0,A.Z)(oe,3),Q=W[0],ae=W[1],ce=W[2],Y=(0,n.useState)(null),O=(0,A.Z)(Y,2),X=O[0],V=O[1],z=(0,n.useContext)(xe),ve=!!y,Ce=function(){k(!1),V(null)},le=fe()(m,b,a,(0,re.Z)({},"".concat(m,"-error"),ce==="error")),ue=(0,n.useMemo)(function(){var me={};return Me.forEach(function(de){e[de]!==void 0&&(me[de]=e[de])}),me},Me.map(function(me){return e[me]})),ke=(0,n.useMemo)(function(){return(0,I.Z)((0,I.Z)({},ue),{},{src:$})},[$,ue]),Le=wn(ve,ke),Ye=function(de){var Ie=(0,Pe.os)(de.target),ye=Ie.left,be=Ie.top;z?z.onPreview(Le,$,ye,be):(V({x:ye,y:be}),k(!0)),S==null||S(de)};return n.createElement(n.Fragment,null,n.createElement("div",(0,he.Z)({},Z,{className:le,onClick:ve?Ye:S,style:(0,I.Z)({width:u,height:E},R)}),n.createElement("img",(0,he.Z)({},ue,{className:fe()("".concat(m,"-img"),(0,re.Z)({},"".concat(m,"-img-placeholder"),v===!0),T),style:(0,I.Z)({height:E},h),ref:Q},ae,{width:u,height:E,onError:L})),ce==="loading"&&n.createElement("div",{"aria-hidden":"true",className:"".concat(m,"-placeholder")},v),H&&ve&&n.createElement("div",{className:fe()("".concat(m,"-mask"),K),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},H)),!z&&ve&&n.createElement(ze,(0,he.Z)({"aria-hidden":!J,visible:J,prefixCls:l,onClose:Ce,mousePosition:X,src:$,alt:c,imageInfo:{width:u,height:E},fallback:C,getContainer:F,icons:q,movable:j,scaleStep:G,minScale:U,maxScale:_,rootClassName:a,imageRender:B,imgCommonProps:ue,toolbarRender:ie},ee)))};We.PreviewGroup=Cn;var xn=We,pn=xn}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[7153],{95480:function(Tr,sn,h){h.d(sn,{iz:function(){return ct},ck:function(){return we},BW:function(){return vt},sN:function(){return we},Wd:function(){return He},ZP:function(){return lr},Xl:function(){return be}});var T=h(87462),E=h(4942),w=h(1413),ye=h(74902),O=h(97685),J=h(91),cn=h(93967),ue=h.n(cn),Ze=h(39983),Ve=h(21770),xt=h(91881),Pt=h(80334),t=h(67294),vn=h(73935),Et=t.createContext(null);function Kt(e,r){return e===void 0?null:"".concat(e,"-").concat(r)}function Nt(e){var r=t.useContext(Et);return Kt(r,e)}var dn=h(56982),fn=["children","locked"],Q=t.createContext(null);function mn(e,r){var a=(0,w.Z)({},e);return Object.keys(r).forEach(function(n){var i=r[n];i!==void 0&&(a[n]=i)}),a}function xe(e){var r=e.children,a=e.locked,n=(0,J.Z)(e,fn),i=t.useContext(Q),o=(0,dn.Z)(function(){return mn(i,n)},[i,n],function(l,u){return!a&&(l[0]!==u[0]||!(0,xt.Z)(l[1],u[1],!0))});return t.createElement(Q.Provider,{value:o},r)}var pn=[],wt=t.createContext(null);function Ue(){return t.useContext(wt)}var Dt=t.createContext(pn);function be(e){var r=t.useContext(Dt);return t.useMemo(function(){return e!==void 0?[].concat((0,ye.Z)(r),[e]):r},[r,e])}var Ot=t.createContext(null),gn=t.createContext({}),et=gn,hn=h(88603),re=h(15105),Pe=h(75164),tt=re.Z.LEFT,nt=re.Z.RIGHT,rt=re.Z.UP,ze=re.Z.DOWN,Ge=re.Z.ENTER,At=re.Z.ESC,Ee=re.Z.HOME,Ke=re.Z.END,Lt=[rt,ze,tt,nt];function Cn(e,r,a,n){var i,o="prev",l="next",u="children",v="parent";if(e==="inline"&&n===Ge)return{inlineTrigger:!0};var s=(0,E.Z)((0,E.Z)({},rt,o),ze,l),I=(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},tt,a?l:o),nt,a?o:l),ze,u),Ge,u),c=(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},rt,o),ze,l),Ge,u),At,v),tt,a?u:v),nt,a?v:u),d={inline:s,horizontal:I,vertical:c,inlineSub:s,horizontalSub:c,verticalSub:c},b=(i=d["".concat(e).concat(r?"":"Sub")])===null||i===void 0?void 0:i[n];switch(b){case o:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case v:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function yn(e){for(var r=e;r;){if(r.getAttribute("data-menu-list"))return r;r=r.parentElement}return null}function bn(e,r){for(var a=e||document.activeElement;a;){if(r.has(a))return a;a=a.parentElement}return null}function at(e,r){var a=(0,hn.tS)(e,!0);return a.filter(function(n){return r.has(n)})}function $t(e,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=at(e,r),o=i.length,l=i.findIndex(function(u){return a===u});return n<0?l===-1?l=o-1:l-=1:n>0&&(l+=1),l=(l+o)%o,i[l]}var it=function(r,a){var n=new Set,i=new Map,o=new Map;return r.forEach(function(l){var u=document.querySelector("[data-menu-id='".concat(Kt(a,l),"']"));u&&(n.add(u),o.set(u,l),i.set(l,u))}),{elements:n,key2element:i,element2key:o}};function In(e,r,a,n,i,o,l,u,v,s){var I=t.useRef(),c=t.useRef();c.current=r;var d=function(){Pe.Z.cancel(I.current)};return t.useEffect(function(){return function(){d()}},[]),function(b){var p=b.which;if([].concat(Lt,[Ge,At,Ee,Ke]).includes(p)){var R=o(),C=it(R,n),M=C,N=M.elements,f=M.key2element,g=M.element2key,S=f.get(r),m=bn(S,N),Z=g.get(m),V=Cn(e,l(Z,!0).length===1,a,p);if(!V&&p!==Ee&&p!==Ke)return;(Lt.includes(p)||[Ee,Ke].includes(p))&&b.preventDefault();var P=function(G){if(G){var _=G,W=G.querySelector("a");W!=null&&W.getAttribute("href")&&(_=W);var te=g.get(G);u(te),d(),I.current=(0,Pe.Z)(function(){c.current===te&&_.focus()})}};if([Ee,Ke].includes(p)||V.sibling||!m){var U;!m||e==="inline"?U=i.current:U=yn(m);var L,$=at(U,N);p===Ee?L=$[0]:p===Ke?L=$[$.length-1]:L=$t(U,N,m,V.offset),P(L)}else if(V.inlineTrigger)v(Z);else if(V.offset>0)v(Z,!0),d(),I.current=(0,Pe.Z)(function(){C=it(R,n);var ee=m.getAttribute("aria-controls"),G=document.getElementById(ee),_=$t(G,C.elements);P(_)},5);else if(V.offset<0){var z=l(Z,!0),j=z[z.length-2],q=f.get(j);v(j,!1),P(q)}}s==null||s(b)}}function Mn(e){Promise.resolve().then(e)}var ot="__RC_UTIL_PATH_SPLIT__",kt=function(r){return r.join(ot)},Sn=function(r){return r.split(ot)},lt="rc-menu-more";function Rn(){var e=t.useState({}),r=(0,O.Z)(e,2),a=r[1],n=(0,t.useRef)(new Map),i=(0,t.useRef)(new Map),o=t.useState([]),l=(0,O.Z)(o,2),u=l[0],v=l[1],s=(0,t.useRef)(0),I=(0,t.useRef)(!1),c=function(){I.current||a({})},d=(0,t.useCallback)(function(f,g){var S=kt(g);i.current.set(S,f),n.current.set(f,S),s.current+=1;var m=s.current;Mn(function(){m===s.current&&c()})},[]),b=(0,t.useCallback)(function(f,g){var S=kt(g);i.current.delete(S),n.current.delete(f)},[]),p=(0,t.useCallback)(function(f){v(f)},[]),R=(0,t.useCallback)(function(f,g){var S=n.current.get(f)||"",m=Sn(S);return g&&u.includes(m[0])&&m.unshift(lt),m},[u]),C=(0,t.useCallback)(function(f,g){return f.filter(function(S){return S!==void 0}).some(function(S){var m=R(S,!0);return m.includes(g)})},[R]),M=function(){var g=(0,ye.Z)(n.current.keys());return u.length&&g.push(lt),g},N=(0,t.useCallback)(function(f){var g="".concat(n.current.get(f)).concat(ot),S=new Set;return(0,ye.Z)(i.current.keys()).forEach(function(m){m.startsWith(g)&&S.add(i.current.get(m))}),S},[]);return t.useEffect(function(){return function(){I.current=!0}},[]),{registerPath:d,unregisterPath:b,refreshOverflowKeys:p,isSubPathKey:C,getKeyPath:R,getKeys:M,getSubPathKeys:N}}function Ne(e){var r=t.useRef(e);r.current=e;var a=t.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return(n=r.current)===null||n===void 0?void 0:n.call.apply(n,[r].concat(o))},[]);return e?a:void 0}var Zn=Math.random().toFixed(5).toString().slice(2),Tt=0;function xn(e){var r=(0,Ve.Z)(e,{value:e}),a=(0,O.Z)(r,2),n=a[0],i=a[1];return t.useEffect(function(){Tt+=1;var o="".concat(Zn,"-").concat(Tt);i("rc-menu-uuid-".concat(o))},[]),n}var Pn=h(15671),En=h(43144),Kn=h(32531),Nn=h(29388),ut=h(98423),wn=h(42550);function Ft(e,r,a,n){var i=t.useContext(Q),o=i.activeKey,l=i.onActive,u=i.onInactive,v={active:o===e};return r||(v.onMouseEnter=function(s){a==null||a({key:e,domEvent:s}),l(e)},v.onMouseLeave=function(s){n==null||n({key:e,domEvent:s}),u(e)}),v}function Vt(e){var r=t.useContext(Q),a=r.mode,n=r.rtl,i=r.inlineIndent;if(a!=="inline")return null;var o=e;return n?{paddingRight:o*i}:{paddingLeft:o*i}}function Ut(e){var r=e.icon,a=e.props,n=e.children,i;return r===null||r===!1?null:(typeof r=="function"?i=t.createElement(r,(0,w.Z)({},a)):typeof r!="boolean"&&(i=r),i||n||null)}var Dn=["item"];function We(e){var r=e.item,a=(0,J.Z)(e,Dn);return Object.defineProperty(a,"item",{get:function(){return(0,Pt.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),r}}),a}var On=["title","attribute","elementRef"],An=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ln=["active"],$n=function(e){(0,Kn.Z)(a,e);var r=(0,Nn.Z)(a);function a(){return(0,Pn.Z)(this,a),r.apply(this,arguments)}return(0,En.Z)(a,[{key:"render",value:function(){var i=this.props,o=i.title,l=i.attribute,u=i.elementRef,v=(0,J.Z)(i,On),s=(0,ut.Z)(v,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Pt.ZP)(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),t.createElement(Ze.Z.Item,(0,T.Z)({},l,{title:typeof o=="string"?o:void 0},s,{ref:u}))}}]),a}(t.Component),kn=t.forwardRef(function(e,r){var a=e.style,n=e.className,i=e.eventKey,o=e.warnKey,l=e.disabled,u=e.itemIcon,v=e.children,s=e.role,I=e.onMouseEnter,c=e.onMouseLeave,d=e.onClick,b=e.onKeyDown,p=e.onFocus,R=(0,J.Z)(e,An),C=Nt(i),M=t.useContext(Q),N=M.prefixCls,f=M.onItemClick,g=M.disabled,S=M.overflowDisabled,m=M.itemIcon,Z=M.selectedKeys,V=M.onActive,P=t.useContext(et),U=P._internalRenderMenuItem,L="".concat(N,"-item"),$=t.useRef(),z=t.useRef(),j=g||l,q=(0,wn.x1)(r,z),ee=be(i),G=function(k){return{key:i,keyPath:(0,ye.Z)(ee).reverse(),item:$.current,domEvent:k}},_=u||m,W=Ft(i,j,I,c),te=W.active,ce=(0,J.Z)(W,Ln),oe=Z.includes(i),ve=Vt(ee.length),de=function(k){if(!j){var ne=G(k);d==null||d(We(ne)),f(ne)}},F=function(k){if(b==null||b(k),k.which===re.Z.ENTER){var ne=G(k);d==null||d(We(ne)),f(ne)}},Y=function(k){V(i),p==null||p(k)},Ie={};e.role==="option"&&(Ie["aria-selected"]=oe);var fe=t.createElement($n,(0,T.Z)({ref:$,elementRef:q,role:s===null?"none":s||"menuitem",tabIndex:l?null:-1,"data-menu-id":S&&C?null:C},(0,ut.Z)(R,["extra"]),ce,Ie,{component:"li","aria-disabled":l,style:(0,w.Z)((0,w.Z)({},ve),a),className:ue()(L,(0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(L,"-active"),te),"".concat(L,"-selected"),oe),"".concat(L,"-disabled"),j),n),onClick:de,onKeyDown:F,onFocus:Y}),v,t.createElement(Ut,{props:(0,w.Z)((0,w.Z)({},e),{},{isSelected:oe}),icon:_}));return U&&(fe=U(fe,e,{selected:oe})),fe});function Tn(e,r){var a=e.eventKey,n=Ue(),i=be(a);return t.useEffect(function(){if(n)return n.registerPath(a,i),function(){n.unregisterPath(a,i)}},[i]),n?null:t.createElement(kn,(0,T.Z)({},e,{ref:r}))}var we=t.forwardRef(Tn),Fn=["className","children"],Vn=function(r,a){var n=r.className,i=r.children,o=(0,J.Z)(r,Fn),l=t.useContext(Q),u=l.prefixCls,v=l.mode,s=l.rtl;return t.createElement("ul",(0,T.Z)({className:ue()(u,s&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(v==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:a}),i)},zt=t.forwardRef(Vn);zt.displayName="SubMenuList";var Gt=zt,Un=h(50344);function st(e,r){return(0,Un.Z)(e).map(function(a,n){if(t.isValidElement(a)){var i,o,l=a.key,u=(i=(o=a.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:l,v=u==null;v&&(u="tmp_key-".concat([].concat((0,ye.Z)(r),[n]).join("-")));var s={key:u,eventKey:u};return t.cloneElement(a,s)}return a})}var zn=h(29371),A={adjustX:1,adjustY:1},Gn={topLeft:{points:["bl","tl"],overflow:A},topRight:{points:["br","tr"],overflow:A},bottomLeft:{points:["tl","bl"],overflow:A},bottomRight:{points:["tr","br"],overflow:A},leftTop:{points:["tr","tl"],overflow:A},leftBottom:{points:["br","bl"],overflow:A},rightTop:{points:["tl","tr"],overflow:A},rightBottom:{points:["bl","br"],overflow:A}},Wn={topLeft:{points:["bl","tl"],overflow:A},topRight:{points:["br","tr"],overflow:A},bottomLeft:{points:["tl","bl"],overflow:A},bottomRight:{points:["tr","br"],overflow:A},rightTop:{points:["tr","tl"],overflow:A},rightBottom:{points:["br","bl"],overflow:A},leftTop:{points:["tl","tr"],overflow:A},leftBottom:{points:["bl","br"],overflow:A}},Fr=null;function Wt(e,r,a){if(r)return r;if(a)return a[e]||a.other}var Hn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Bn(e){var r=e.prefixCls,a=e.visible,n=e.children,i=e.popup,o=e.popupStyle,l=e.popupClassName,u=e.popupOffset,v=e.disabled,s=e.mode,I=e.onVisibleChange,c=t.useContext(Q),d=c.getPopupContainer,b=c.rtl,p=c.subMenuOpenDelay,R=c.subMenuCloseDelay,C=c.builtinPlacements,M=c.triggerSubMenuAction,N=c.forceSubMenuRender,f=c.rootClassName,g=c.motion,S=c.defaultMotions,m=t.useState(!1),Z=(0,O.Z)(m,2),V=Z[0],P=Z[1],U=b?(0,w.Z)((0,w.Z)({},Wn),C):(0,w.Z)((0,w.Z)({},Gn),C),L=Hn[s],$=Wt(s,g,S),z=t.useRef($);s!=="inline"&&(z.current=$);var j=(0,w.Z)((0,w.Z)({},z.current),{},{leavedClassName:"".concat(r,"-hidden"),removeOnLeave:!1,motionAppear:!0}),q=t.useRef();return t.useEffect(function(){return q.current=(0,Pe.Z)(function(){P(a)}),function(){Pe.Z.cancel(q.current)}},[a]),t.createElement(zn.Z,{prefixCls:r,popupClassName:ue()("".concat(r,"-popup"),(0,E.Z)({},"".concat(r,"-rtl"),b),l,f),stretch:s==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:U,popupPlacement:L,popupVisible:V,popup:i,popupStyle:o,popupAlign:u&&{offset:u},action:v?[]:[M],mouseEnterDelay:p,mouseLeaveDelay:R,onPopupVisibleChange:I,forceRender:N,popupMotion:j,fresh:!0},n)}var jn=h(82225);function Yn(e){var r=e.id,a=e.open,n=e.keyPath,i=e.children,o="inline",l=t.useContext(Q),u=l.prefixCls,v=l.forceSubMenuRender,s=l.motion,I=l.defaultMotions,c=l.mode,d=t.useRef(!1);d.current=c===o;var b=t.useState(!d.current),p=(0,O.Z)(b,2),R=p[0],C=p[1],M=d.current?a:!1;t.useEffect(function(){d.current&&C(!1)},[c]);var N=(0,w.Z)({},Wt(o,s,I));n.length>1&&(N.motionAppear=!1);var f=N.onVisibleChanged;return N.onVisibleChanged=function(g){return!d.current&&!g&&C(!0),f==null?void 0:f(g)},R?null:t.createElement(xe,{mode:o,locked:!d.current},t.createElement(jn.ZP,(0,T.Z)({visible:M},N,{forceRender:v,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(g){var S=g.className,m=g.style;return t.createElement(Gt,{id:r,className:S,style:m},i)}))}var Xn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Jn=["active"],Qn=t.forwardRef(function(e,r){var a=e.style,n=e.className,i=e.title,o=e.eventKey,l=e.warnKey,u=e.disabled,v=e.internalPopupClose,s=e.children,I=e.itemIcon,c=e.expandIcon,d=e.popupClassName,b=e.popupOffset,p=e.popupStyle,R=e.onClick,C=e.onMouseEnter,M=e.onMouseLeave,N=e.onTitleClick,f=e.onTitleMouseEnter,g=e.onTitleMouseLeave,S=(0,J.Z)(e,Xn),m=Nt(o),Z=t.useContext(Q),V=Z.prefixCls,P=Z.mode,U=Z.openKeys,L=Z.disabled,$=Z.overflowDisabled,z=Z.activeKey,j=Z.selectedKeys,q=Z.itemIcon,ee=Z.expandIcon,G=Z.onItemClick,_=Z.onOpenChange,W=Z.onActive,te=t.useContext(et),ce=te._internalRenderSubMenuItem,oe=t.useContext(Ot),ve=oe.isSubPathKey,de=be(),F="".concat(V,"-submenu"),Y=L||u,Ie=t.useRef(),fe=t.useRef(),me=I??q,k=c??ee,ne=U.includes(o),ae=!$&&ne,Be=ve(j,o),Me=Ft(o,Y,f,g),pe=Me.active,ft=(0,J.Z)(Me,Jn),Bt=t.useState(!1),mt=(0,O.Z)(Bt,2),Oe=mt[0],je=mt[1],Ae=function(X){Y||je(X)},pt=function(X){Ae(!0),C==null||C({key:o,domEvent:X})},gt=function(X){Ae(!1),M==null||M({key:o,domEvent:X})},Le=t.useMemo(function(){return pe||(P!=="inline"?Oe||ve([z],o):!1)},[P,pe,z,Oe,o,ve]),ie=Vt(de.length),ht=function(X){Y||(N==null||N({key:o,domEvent:X}),P==="inline"&&_(o,!ne))},Ct=Ne(function(D){R==null||R(We(D)),G(D)}),Ye=function(X){P!=="inline"&&_(o,X)},Xe=function(){W(o)},$e=m&&"".concat(m,"-popup"),Se=t.useMemo(function(){return t.createElement(Ut,{icon:P!=="horizontal"?k:void 0,props:(0,w.Z)((0,w.Z)({},e),{},{isOpen:ae,isSubMenu:!0})},t.createElement("i",{className:"".concat(F,"-arrow")}))},[P,k,e,ae,F]),ge=t.createElement("div",(0,T.Z)({role:"menuitem",style:ie,className:"".concat(F,"-title"),tabIndex:Y?null:-1,ref:Ie,title:typeof i=="string"?i:null,"data-menu-id":$&&m?null:m,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":$e,"aria-disabled":Y,onClick:ht,onFocus:Xe},ft),i,Se),he=t.useRef(P);if(P!=="inline"&&de.length>1?he.current="vertical":he.current=P,!$){var ke=he.current;ge=t.createElement(Bn,{mode:ke,prefixCls:F,visible:!v&&ae&&P!=="inline",popupClassName:d,popupOffset:b,popupStyle:p,popup:t.createElement(xe,{mode:ke==="horizontal"?"vertical":ke},t.createElement(Gt,{id:$e,ref:fe},s)),disabled:Y,onVisibleChange:Ye},ge)}var Re=t.createElement(Ze.Z.Item,(0,T.Z)({ref:r,role:"none"},S,{component:"li",style:a,className:ue()(F,"".concat(F,"-").concat(P),n,(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(F,"-open"),ae),"".concat(F,"-active"),Le),"".concat(F,"-selected"),Be),"".concat(F,"-disabled"),Y)),onMouseEnter:pt,onMouseLeave:gt}),ge,!$&&t.createElement(Yn,{id:$e,open:ae,keyPath:de},s));return ce&&(Re=ce(Re,e,{selected:Be,active:Le,open:ae,disabled:Y})),t.createElement(xe,{onItemClick:Ct,mode:P==="horizontal"?"vertical":P,itemIcon:me,expandIcon:k},Re)}),qn=t.forwardRef(function(e,r){var a=e.eventKey,n=e.children,i=be(a),o=st(n,i),l=Ue();t.useEffect(function(){if(l)return l.registerPath(a,i),function(){l.unregisterPath(a,i)}},[i]);var u;return l?u=o:u=t.createElement(Qn,(0,T.Z)({ref:r},e),o),t.createElement(Dt.Provider,{value:i},u)}),He=qn,_n=h(71002);function ct(e){var r=e.className,a=e.style,n=t.useContext(Q),i=n.prefixCls,o=Ue();return o?null:t.createElement("li",{role:"separator",className:ue()("".concat(i,"-item-divider"),r),style:a})}var er=["className","title","eventKey","children"],tr=t.forwardRef(function(e,r){var a=e.className,n=e.title,i=e.eventKey,o=e.children,l=(0,J.Z)(e,er),u=t.useContext(Q),v=u.prefixCls,s="".concat(v,"-item-group");return t.createElement("li",(0,T.Z)({ref:r,role:"presentation"},l,{onClick:function(c){return c.stopPropagation()},className:ue()(s,a)}),t.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof n=="string"?n:void 0},n),t.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))}),nr=t.forwardRef(function(e,r){var a=e.eventKey,n=e.children,i=be(a),o=st(n,i),l=Ue();return l?o:t.createElement(tr,(0,T.Z)({ref:r},(0,ut.Z)(e,["warnKey"])),o)}),vt=nr,rr=["label","children","key","type","extra"];function dt(e,r,a){var n=r.item,i=r.group,o=r.submenu,l=r.divider;return(e||[]).map(function(u,v){if(u&&(0,_n.Z)(u)==="object"){var s=u,I=s.label,c=s.children,d=s.key,b=s.type,p=s.extra,R=(0,J.Z)(s,rr),C=d??"tmp-".concat(v);return c||b==="group"?b==="group"?t.createElement(i,(0,T.Z)({key:C},R,{title:I}),dt(c,r,a)):t.createElement(o,(0,T.Z)({key:C},R,{title:I}),dt(c,r,a)):b==="divider"?t.createElement(l,(0,T.Z)({key:C},R)):t.createElement(n,(0,T.Z)({key:C},R,{extra:p}),I,(!!p||p===0)&&t.createElement("span",{className:"".concat(a,"-item-extra")},p))}return null}).filter(function(u){return u})}function Ht(e,r,a,n,i){var o=e,l=(0,w.Z)({divider:ct,item:we,group:vt,submenu:He},n);return r&&(o=dt(r,l,i)),st(o,a)}var ar=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],se=[],ir=t.forwardRef(function(e,r){var a,n=e,i=n.prefixCls,o=i===void 0?"rc-menu":i,l=n.rootClassName,u=n.style,v=n.className,s=n.tabIndex,I=s===void 0?0:s,c=n.items,d=n.children,b=n.direction,p=n.id,R=n.mode,C=R===void 0?"vertical":R,M=n.inlineCollapsed,N=n.disabled,f=n.disabledOverflow,g=n.subMenuOpenDelay,S=g===void 0?.1:g,m=n.subMenuCloseDelay,Z=m===void 0?.1:m,V=n.forceSubMenuRender,P=n.defaultOpenKeys,U=n.openKeys,L=n.activeKey,$=n.defaultActiveFirst,z=n.selectable,j=z===void 0?!0:z,q=n.multiple,ee=q===void 0?!1:q,G=n.defaultSelectedKeys,_=n.selectedKeys,W=n.onSelect,te=n.onDeselect,ce=n.inlineIndent,oe=ce===void 0?24:ce,ve=n.motion,de=n.defaultMotions,F=n.triggerSubMenuAction,Y=F===void 0?"hover":F,Ie=n.builtinPlacements,fe=n.itemIcon,me=n.expandIcon,k=n.overflowedIndicator,ne=k===void 0?"...":k,ae=n.overflowedIndicatorPopupClassName,Be=n.getPopupContainer,Me=n.onClick,pe=n.onOpenChange,ft=n.onKeyDown,Bt=n.openAnimation,mt=n.openTransitionName,Oe=n._internalRenderMenuItem,je=n._internalRenderSubMenuItem,Ae=n._internalComponents,pt=(0,J.Z)(n,ar),gt=t.useMemo(function(){return[Ht(d,c,se,Ae,o),Ht(d,c,se,{},o)]},[d,c,Ae]),Le=(0,O.Z)(gt,2),ie=Le[0],ht=Le[1],Ct=t.useState(!1),Ye=(0,O.Z)(Ct,2),Xe=Ye[0],$e=Ye[1],Se=t.useRef(),ge=xn(p),he=b==="rtl",ke=(0,Ve.Z)(P,{value:U,postState:function(y){return y||se}}),Re=(0,O.Z)(ke,2),D=Re[0],X=Re[1],yt=function(y){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function H(){X(y),pe==null||pe(y)}x?(0,vn.flushSync)(H):H()},ur=t.useState(D),jt=(0,O.Z)(ur,2),sr=jt[0],cr=jt[1],bt=t.useRef(!1),vr=t.useMemo(function(){return(C==="inline"||C==="vertical")&&M?["vertical",M]:[C,!1]},[C,M]),Yt=(0,O.Z)(vr,2),Je=Yt[0],It=Yt[1],Xt=Je==="inline",dr=t.useState(Je),Jt=(0,O.Z)(dr,2),le=Jt[0],fr=Jt[1],mr=t.useState(It),Qt=(0,O.Z)(mr,2),pr=Qt[0],gr=Qt[1];t.useEffect(function(){fr(Je),gr(It),bt.current&&(Xt?X(sr):yt(se))},[Je,It]);var hr=t.useState(0),qt=(0,O.Z)(hr,2),Qe=qt[0],Cr=qt[1],Mt=Qe>=ie.length-1||le!=="horizontal"||f;t.useEffect(function(){Xt&&cr(D)},[D]),t.useEffect(function(){return bt.current=!0,function(){bt.current=!1}},[]);var Ce=Rn(),_t=Ce.registerPath,en=Ce.unregisterPath,yr=Ce.refreshOverflowKeys,tn=Ce.isSubPathKey,br=Ce.getKeyPath,nn=Ce.getKeys,Ir=Ce.getSubPathKeys,Mr=t.useMemo(function(){return{registerPath:_t,unregisterPath:en}},[_t,en]),Sr=t.useMemo(function(){return{isSubPathKey:tn}},[tn]);t.useEffect(function(){yr(Mt?se:ie.slice(Qe+1).map(function(K){return K.key}))},[Qe,Mt]);var Rr=(0,Ve.Z)(L||$&&((a=ie[0])===null||a===void 0?void 0:a.key),{value:L}),rn=(0,O.Z)(Rr,2),Te=rn[0],St=rn[1],Zr=Ne(function(K){St(K)}),xr=Ne(function(){St(void 0)});(0,t.useImperativeHandle)(r,function(){return{list:Se.current,focus:function(y){var x,H=nn(),B=it(H,ge),_e=B.elements,Rt=B.key2element,$r=B.element2key,ln=at(Se.current,_e),un=Te??(ln[0]?$r.get(ln[0]):(x=ie.find(function(kr){return!kr.props.disabled}))===null||x===void 0?void 0:x.key),Fe=Rt.get(un);if(un&&Fe){var Zt;Fe==null||(Zt=Fe.focus)===null||Zt===void 0||Zt.call(Fe,y)}}}});var Pr=(0,Ve.Z)(G||[],{value:_,postState:function(y){return Array.isArray(y)?y:y==null?se:[y]}}),an=(0,O.Z)(Pr,2),qe=an[0],Er=an[1],Kr=function(y){if(j){var x=y.key,H=qe.includes(x),B;ee?H?B=qe.filter(function(Rt){return Rt!==x}):B=[].concat((0,ye.Z)(qe),[x]):B=[x],Er(B);var _e=(0,w.Z)((0,w.Z)({},y),{},{selectedKeys:B});H?te==null||te(_e):W==null||W(_e)}!ee&&D.length&&le!=="inline"&&yt(se)},Nr=Ne(function(K){Me==null||Me(We(K)),Kr(K)}),on=Ne(function(K,y){var x=D.filter(function(B){return B!==K});if(y)x.push(K);else if(le!=="inline"){var H=Ir(K);x=x.filter(function(B){return!H.has(B)})}(0,xt.Z)(D,x,!0)||yt(x,!0)}),wr=function(y,x){var H=x??!D.includes(y);on(y,H)},Dr=In(le,Te,he,ge,Se,nn,br,St,wr,ft);t.useEffect(function(){$e(!0)},[]);var Or=t.useMemo(function(){return{_internalRenderMenuItem:Oe,_internalRenderSubMenuItem:je}},[Oe,je]),Ar=le!=="horizontal"||f?ie:ie.map(function(K,y){return t.createElement(xe,{key:K.key,overflowDisabled:y>Qe},K)}),Lr=t.createElement(Ze.Z,(0,T.Z)({id:p,ref:Se,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:we,className:ue()(o,"".concat(o,"-root"),"".concat(o,"-").concat(le),v,(0,E.Z)((0,E.Z)({},"".concat(o,"-inline-collapsed"),pr),"".concat(o,"-rtl"),he),l),dir:b,style:u,role:"menu",tabIndex:I,data:Ar,renderRawItem:function(y){return y},renderRawRest:function(y){var x=y.length,H=x?ie.slice(-x):null;return t.createElement(He,{eventKey:lt,title:ne,disabled:Mt,internalPopupClose:x===0,popupClassName:ae},H)},maxCount:le!=="horizontal"||f?Ze.Z.INVALIDATE:Ze.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(y){Cr(y)},onKeyDown:Dr},pt));return t.createElement(et.Provider,{value:Or},t.createElement(Et.Provider,{value:ge},t.createElement(xe,{prefixCls:o,rootClassName:l,mode:le,openKeys:D,rtl:he,disabled:N,motion:Xe?ve:null,defaultMotions:Xe?de:null,activeKey:Te,onActive:Zr,onInactive:xr,selectedKeys:qe,inlineIndent:oe,subMenuOpenDelay:S,subMenuCloseDelay:Z,forceSubMenuRender:V,builtinPlacements:Ie,triggerSubMenuAction:Y,getPopupContainer:Be,itemIcon:fe,expandIcon:me,onItemClick:Nr,onOpenChange:on},t.createElement(Ot.Provider,{value:Sr},Lr),t.createElement("div",{style:{display:"none"},"aria-hidden":!0},t.createElement(wt.Provider,{value:Mr},ht)))))}),or=ir,De=or;De.Item=we,De.SubMenu=He,De.ItemGroup=vt,De.Divider=ct;var lr=De}}]);
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[7153],{95480:function(Tr,sn,h){h.d(sn,{iz:function(){return ct},ck:function(){return we},BW:function(){return vt},sN:function(){return we},Wd:function(){return He},ZP:function(){return lr},Xl:function(){return be}});var T=h(87462),E=h(4942),w=h(1413),ye=h(74902),O=h(97685),J=h(91),cn=h(93967),ue=h.n(cn),Ze=h(39983),Ve=h(21770),xt=h(91881),Pt=h(80334),t=h(67294),vn=h(73935),Et=t.createContext(null);function Kt(e,r){return e===void 0?null:"".concat(e,"-").concat(r)}function Nt(e){var r=t.useContext(Et);return Kt(r,e)}var dn=h(56982),fn=["children","locked"],Q=t.createContext(null);function mn(e,r){var a=(0,w.Z)({},e);return Object.keys(r).forEach(function(n){var i=r[n];i!==void 0&&(a[n]=i)}),a}function xe(e){var r=e.children,a=e.locked,n=(0,J.Z)(e,fn),i=t.useContext(Q),o=(0,dn.Z)(function(){return mn(i,n)},[i,n],function(l,u){return!a&&(l[0]!==u[0]||!(0,xt.Z)(l[1],u[1],!0))});return t.createElement(Q.Provider,{value:o},r)}var pn=[],wt=t.createContext(null);function Ue(){return t.useContext(wt)}var Dt=t.createContext(pn);function be(e){var r=t.useContext(Dt);return t.useMemo(function(){return e!==void 0?[].concat((0,ye.Z)(r),[e]):r},[r,e])}var Ot=t.createContext(null),gn=t.createContext({}),et=gn,hn=h(88603),re=h(15105),Pe=h(75164),tt=re.Z.LEFT,nt=re.Z.RIGHT,rt=re.Z.UP,ze=re.Z.DOWN,Ge=re.Z.ENTER,At=re.Z.ESC,Ee=re.Z.HOME,Ke=re.Z.END,Lt=[rt,ze,tt,nt];function Cn(e,r,a,n){var i,o="prev",l="next",u="children",v="parent";if(e==="inline"&&n===Ge)return{inlineTrigger:!0};var s=(0,E.Z)((0,E.Z)({},rt,o),ze,l),I=(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},tt,a?l:o),nt,a?o:l),ze,u),Ge,u),c=(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},rt,o),ze,l),Ge,u),At,v),tt,a?u:v),nt,a?v:u),d={inline:s,horizontal:I,vertical:c,inlineSub:s,horizontalSub:c,verticalSub:c},b=(i=d["".concat(e).concat(r?"":"Sub")])===null||i===void 0?void 0:i[n];switch(b){case o:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case v:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function yn(e){for(var r=e;r;){if(r.getAttribute("data-menu-list"))return r;r=r.parentElement}return null}function bn(e,r){for(var a=e||document.activeElement;a;){if(r.has(a))return a;a=a.parentElement}return null}function at(e,r){var a=(0,hn.tS)(e,!0);return a.filter(function(n){return r.has(n)})}function $t(e,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=at(e,r),o=i.length,l=i.findIndex(function(u){return a===u});return n<0?l===-1?l=o-1:l-=1:n>0&&(l+=1),l=(l+o)%o,i[l]}var it=function(r,a){var n=new Set,i=new Map,o=new Map;return r.forEach(function(l){var u=document.querySelector("[data-menu-id='".concat(Kt(a,l),"']"));u&&(n.add(u),o.set(u,l),i.set(l,u))}),{elements:n,key2element:i,element2key:o}};function In(e,r,a,n,i,o,l,u,v,s){var I=t.useRef(),c=t.useRef();c.current=r;var d=function(){Pe.Z.cancel(I.current)};return t.useEffect(function(){return function(){d()}},[]),function(b){var p=b.which;if([].concat(Lt,[Ge,At,Ee,Ke]).includes(p)){var R=o(),C=it(R,n),M=C,N=M.elements,f=M.key2element,g=M.element2key,S=f.get(r),m=bn(S,N),Z=g.get(m),V=Cn(e,l(Z,!0).length===1,a,p);if(!V&&p!==Ee&&p!==Ke)return;(Lt.includes(p)||[Ee,Ke].includes(p))&&b.preventDefault();var P=function(G){if(G){var _=G,W=G.querySelector("a");W!=null&&W.getAttribute("href")&&(_=W);var te=g.get(G);u(te),d(),I.current=(0,Pe.Z)(function(){c.current===te&&_.focus()})}};if([Ee,Ke].includes(p)||V.sibling||!m){var U;!m||e==="inline"?U=i.current:U=yn(m);var L,$=at(U,N);p===Ee?L=$[0]:p===Ke?L=$[$.length-1]:L=$t(U,N,m,V.offset),P(L)}else if(V.inlineTrigger)v(Z);else if(V.offset>0)v(Z,!0),d(),I.current=(0,Pe.Z)(function(){C=it(R,n);var ee=m.getAttribute("aria-controls"),G=document.getElementById(ee),_=$t(G,C.elements);P(_)},5);else if(V.offset<0){var z=l(Z,!0),j=z[z.length-2],q=f.get(j);v(j,!1),P(q)}}s==null||s(b)}}function Mn(e){Promise.resolve().then(e)}var ot="__RC_UTIL_PATH_SPLIT__",kt=function(r){return r.join(ot)},Sn=function(r){return r.split(ot)},lt="rc-menu-more";function Rn(){var e=t.useState({}),r=(0,O.Z)(e,2),a=r[1],n=(0,t.useRef)(new Map),i=(0,t.useRef)(new Map),o=t.useState([]),l=(0,O.Z)(o,2),u=l[0],v=l[1],s=(0,t.useRef)(0),I=(0,t.useRef)(!1),c=function(){I.current||a({})},d=(0,t.useCallback)(function(f,g){var S=kt(g);i.current.set(S,f),n.current.set(f,S),s.current+=1;var m=s.current;Mn(function(){m===s.current&&c()})},[]),b=(0,t.useCallback)(function(f,g){var S=kt(g);i.current.delete(S),n.current.delete(f)},[]),p=(0,t.useCallback)(function(f){v(f)},[]),R=(0,t.useCallback)(function(f,g){var S=n.current.get(f)||"",m=Sn(S);return g&&u.includes(m[0])&&m.unshift(lt),m},[u]),C=(0,t.useCallback)(function(f,g){return f.filter(function(S){return S!==void 0}).some(function(S){var m=R(S,!0);return m.includes(g)})},[R]),M=function(){var g=(0,ye.Z)(n.current.keys());return u.length&&g.push(lt),g},N=(0,t.useCallback)(function(f){var g="".concat(n.current.get(f)).concat(ot),S=new Set;return(0,ye.Z)(i.current.keys()).forEach(function(m){m.startsWith(g)&&S.add(i.current.get(m))}),S},[]);return t.useEffect(function(){return function(){I.current=!0}},[]),{registerPath:d,unregisterPath:b,refreshOverflowKeys:p,isSubPathKey:C,getKeyPath:R,getKeys:M,getSubPathKeys:N}}function Ne(e){var r=t.useRef(e);r.current=e;var a=t.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return(n=r.current)===null||n===void 0?void 0:n.call.apply(n,[r].concat(o))},[]);return e?a:void 0}var Zn=Math.random().toFixed(5).toString().slice(2),Tt=0;function xn(e){var r=(0,Ve.Z)(e,{value:e}),a=(0,O.Z)(r,2),n=a[0],i=a[1];return t.useEffect(function(){Tt+=1;var o="".concat(Zn,"-").concat(Tt);i("rc-menu-uuid-".concat(o))},[]),n}var Pn=h(15671),En=h(43144),Kn=h(32531),Nn=h(29388),ut=h(98423),wn=h(42550);function Ft(e,r,a,n){var i=t.useContext(Q),o=i.activeKey,l=i.onActive,u=i.onInactive,v={active:o===e};return r||(v.onMouseEnter=function(s){a==null||a({key:e,domEvent:s}),l(e)},v.onMouseLeave=function(s){n==null||n({key:e,domEvent:s}),u(e)}),v}function Vt(e){var r=t.useContext(Q),a=r.mode,n=r.rtl,i=r.inlineIndent;if(a!=="inline")return null;var o=e;return n?{paddingRight:o*i}:{paddingLeft:o*i}}function Ut(e){var r=e.icon,a=e.props,n=e.children,i;return r===null||r===!1?null:(typeof r=="function"?i=t.createElement(r,(0,w.Z)({},a)):typeof r!="boolean"&&(i=r),i||n||null)}var Dn=["item"];function We(e){var r=e.item,a=(0,J.Z)(e,Dn);return Object.defineProperty(a,"item",{get:function(){return(0,Pt.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),r}}),a}var On=["title","attribute","elementRef"],An=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ln=["active"],$n=function(e){(0,Kn.Z)(a,e);var r=(0,Nn.Z)(a);function a(){return(0,Pn.Z)(this,a),r.apply(this,arguments)}return(0,En.Z)(a,[{key:"render",value:function(){var i=this.props,o=i.title,l=i.attribute,u=i.elementRef,v=(0,J.Z)(i,On),s=(0,ut.Z)(v,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Pt.ZP)(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),t.createElement(Ze.Z.Item,(0,T.Z)({},l,{title:typeof o=="string"?o:void 0},s,{ref:u}))}}]),a}(t.Component),kn=t.forwardRef(function(e,r){var a=e.style,n=e.className,i=e.eventKey,o=e.warnKey,l=e.disabled,u=e.itemIcon,v=e.children,s=e.role,I=e.onMouseEnter,c=e.onMouseLeave,d=e.onClick,b=e.onKeyDown,p=e.onFocus,R=(0,J.Z)(e,An),C=Nt(i),M=t.useContext(Q),N=M.prefixCls,f=M.onItemClick,g=M.disabled,S=M.overflowDisabled,m=M.itemIcon,Z=M.selectedKeys,V=M.onActive,P=t.useContext(et),U=P._internalRenderMenuItem,L="".concat(N,"-item"),$=t.useRef(),z=t.useRef(),j=g||l,q=(0,wn.x1)(r,z),ee=be(i),G=function(k){return{key:i,keyPath:(0,ye.Z)(ee).reverse(),item:$.current,domEvent:k}},_=u||m,W=Ft(i,j,I,c),te=W.active,ce=(0,J.Z)(W,Ln),oe=Z.includes(i),ve=Vt(ee.length),de=function(k){if(!j){var ne=G(k);d==null||d(We(ne)),f(ne)}},F=function(k){if(b==null||b(k),k.which===re.Z.ENTER){var ne=G(k);d==null||d(We(ne)),f(ne)}},Y=function(k){V(i),p==null||p(k)},Ie={};e.role==="option"&&(Ie["aria-selected"]=oe);var fe=t.createElement($n,(0,T.Z)({ref:$,elementRef:q,role:s===null?"none":s||"menuitem",tabIndex:l?null:-1,"data-menu-id":S&&C?null:C},(0,ut.Z)(R,["extra"]),ce,Ie,{component:"li","aria-disabled":l,style:(0,w.Z)((0,w.Z)({},ve),a),className:ue()(L,(0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(L,"-active"),te),"".concat(L,"-selected"),oe),"".concat(L,"-disabled"),j),n),onClick:de,onKeyDown:F,onFocus:Y}),v,t.createElement(Ut,{props:(0,w.Z)((0,w.Z)({},e),{},{isSelected:oe}),icon:_}));return U&&(fe=U(fe,e,{selected:oe})),fe});function Tn(e,r){var a=e.eventKey,n=Ue(),i=be(a);return t.useEffect(function(){if(n)return n.registerPath(a,i),function(){n.unregisterPath(a,i)}},[i]),n?null:t.createElement(kn,(0,T.Z)({},e,{ref:r}))}var we=t.forwardRef(Tn),Fn=["className","children"],Vn=function(r,a){var n=r.className,i=r.children,o=(0,J.Z)(r,Fn),l=t.useContext(Q),u=l.prefixCls,v=l.mode,s=l.rtl;return t.createElement("ul",(0,T.Z)({className:ue()(u,s&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(v==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:a}),i)},zt=t.forwardRef(Vn);zt.displayName="SubMenuList";var Gt=zt,Un=h(50344);function st(e,r){return(0,Un.Z)(e).map(function(a,n){if(t.isValidElement(a)){var i,o,l=a.key,u=(i=(o=a.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:l,v=u==null;v&&(u="tmp_key-".concat([].concat((0,ye.Z)(r),[n]).join("-")));var s={key:u,eventKey:u};return t.cloneElement(a,s)}return a})}var zn=h(29371),A={adjustX:1,adjustY:1},Gn={topLeft:{points:["bl","tl"],overflow:A},topRight:{points:["br","tr"],overflow:A},bottomLeft:{points:["tl","bl"],overflow:A},bottomRight:{points:["tr","br"],overflow:A},leftTop:{points:["tr","tl"],overflow:A},leftBottom:{points:["br","bl"],overflow:A},rightTop:{points:["tl","tr"],overflow:A},rightBottom:{points:["bl","br"],overflow:A}},Wn={topLeft:{points:["bl","tl"],overflow:A},topRight:{points:["br","tr"],overflow:A},bottomLeft:{points:["tl","bl"],overflow:A},bottomRight:{points:["tr","br"],overflow:A},rightTop:{points:["tr","tl"],overflow:A},rightBottom:{points:["br","bl"],overflow:A},leftTop:{points:["tl","tr"],overflow:A},leftBottom:{points:["bl","br"],overflow:A}},Fr=null;function Wt(e,r,a){if(r)return r;if(a)return a[e]||a.other}var Hn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Bn(e){var r=e.prefixCls,a=e.visible,n=e.children,i=e.popup,o=e.popupStyle,l=e.popupClassName,u=e.popupOffset,v=e.disabled,s=e.mode,I=e.onVisibleChange,c=t.useContext(Q),d=c.getPopupContainer,b=c.rtl,p=c.subMenuOpenDelay,R=c.subMenuCloseDelay,C=c.builtinPlacements,M=c.triggerSubMenuAction,N=c.forceSubMenuRender,f=c.rootClassName,g=c.motion,S=c.defaultMotions,m=t.useState(!1),Z=(0,O.Z)(m,2),V=Z[0],P=Z[1],U=b?(0,w.Z)((0,w.Z)({},Wn),C):(0,w.Z)((0,w.Z)({},Gn),C),L=Hn[s],$=Wt(s,g,S),z=t.useRef($);s!=="inline"&&(z.current=$);var j=(0,w.Z)((0,w.Z)({},z.current),{},{leavedClassName:"".concat(r,"-hidden"),removeOnLeave:!1,motionAppear:!0}),q=t.useRef();return t.useEffect(function(){return q.current=(0,Pe.Z)(function(){P(a)}),function(){Pe.Z.cancel(q.current)}},[a]),t.createElement(zn.Z,{prefixCls:r,popupClassName:ue()("".concat(r,"-popup"),(0,E.Z)({},"".concat(r,"-rtl"),b),l,f),stretch:s==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:U,popupPlacement:L,popupVisible:V,popup:i,popupStyle:o,popupAlign:u&&{offset:u},action:v?[]:[M],mouseEnterDelay:p,mouseLeaveDelay:R,onPopupVisibleChange:I,forceRender:N,popupMotion:j,fresh:!0},n)}var jn=h(62874);function Yn(e){var r=e.id,a=e.open,n=e.keyPath,i=e.children,o="inline",l=t.useContext(Q),u=l.prefixCls,v=l.forceSubMenuRender,s=l.motion,I=l.defaultMotions,c=l.mode,d=t.useRef(!1);d.current=c===o;var b=t.useState(!d.current),p=(0,O.Z)(b,2),R=p[0],C=p[1],M=d.current?a:!1;t.useEffect(function(){d.current&&C(!1)},[c]);var N=(0,w.Z)({},Wt(o,s,I));n.length>1&&(N.motionAppear=!1);var f=N.onVisibleChanged;return N.onVisibleChanged=function(g){return!d.current&&!g&&C(!0),f==null?void 0:f(g)},R?null:t.createElement(xe,{mode:o,locked:!d.current},t.createElement(jn.ZP,(0,T.Z)({visible:M},N,{forceRender:v,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(g){var S=g.className,m=g.style;return t.createElement(Gt,{id:r,className:S,style:m},i)}))}var Xn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Jn=["active"],Qn=t.forwardRef(function(e,r){var a=e.style,n=e.className,i=e.title,o=e.eventKey,l=e.warnKey,u=e.disabled,v=e.internalPopupClose,s=e.children,I=e.itemIcon,c=e.expandIcon,d=e.popupClassName,b=e.popupOffset,p=e.popupStyle,R=e.onClick,C=e.onMouseEnter,M=e.onMouseLeave,N=e.onTitleClick,f=e.onTitleMouseEnter,g=e.onTitleMouseLeave,S=(0,J.Z)(e,Xn),m=Nt(o),Z=t.useContext(Q),V=Z.prefixCls,P=Z.mode,U=Z.openKeys,L=Z.disabled,$=Z.overflowDisabled,z=Z.activeKey,j=Z.selectedKeys,q=Z.itemIcon,ee=Z.expandIcon,G=Z.onItemClick,_=Z.onOpenChange,W=Z.onActive,te=t.useContext(et),ce=te._internalRenderSubMenuItem,oe=t.useContext(Ot),ve=oe.isSubPathKey,de=be(),F="".concat(V,"-submenu"),Y=L||u,Ie=t.useRef(),fe=t.useRef(),me=I??q,k=c??ee,ne=U.includes(o),ae=!$&&ne,Be=ve(j,o),Me=Ft(o,Y,f,g),pe=Me.active,ft=(0,J.Z)(Me,Jn),Bt=t.useState(!1),mt=(0,O.Z)(Bt,2),Oe=mt[0],je=mt[1],Ae=function(X){Y||je(X)},pt=function(X){Ae(!0),C==null||C({key:o,domEvent:X})},gt=function(X){Ae(!1),M==null||M({key:o,domEvent:X})},Le=t.useMemo(function(){return pe||(P!=="inline"?Oe||ve([z],o):!1)},[P,pe,z,Oe,o,ve]),ie=Vt(de.length),ht=function(X){Y||(N==null||N({key:o,domEvent:X}),P==="inline"&&_(o,!ne))},Ct=Ne(function(D){R==null||R(We(D)),G(D)}),Ye=function(X){P!=="inline"&&_(o,X)},Xe=function(){W(o)},$e=m&&"".concat(m,"-popup"),Se=t.useMemo(function(){return t.createElement(Ut,{icon:P!=="horizontal"?k:void 0,props:(0,w.Z)((0,w.Z)({},e),{},{isOpen:ae,isSubMenu:!0})},t.createElement("i",{className:"".concat(F,"-arrow")}))},[P,k,e,ae,F]),ge=t.createElement("div",(0,T.Z)({role:"menuitem",style:ie,className:"".concat(F,"-title"),tabIndex:Y?null:-1,ref:Ie,title:typeof i=="string"?i:null,"data-menu-id":$&&m?null:m,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":$e,"aria-disabled":Y,onClick:ht,onFocus:Xe},ft),i,Se),he=t.useRef(P);if(P!=="inline"&&de.length>1?he.current="vertical":he.current=P,!$){var ke=he.current;ge=t.createElement(Bn,{mode:ke,prefixCls:F,visible:!v&&ae&&P!=="inline",popupClassName:d,popupOffset:b,popupStyle:p,popup:t.createElement(xe,{mode:ke==="horizontal"?"vertical":ke},t.createElement(Gt,{id:$e,ref:fe},s)),disabled:Y,onVisibleChange:Ye},ge)}var Re=t.createElement(Ze.Z.Item,(0,T.Z)({ref:r,role:"none"},S,{component:"li",style:a,className:ue()(F,"".concat(F,"-").concat(P),n,(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(F,"-open"),ae),"".concat(F,"-active"),Le),"".concat(F,"-selected"),Be),"".concat(F,"-disabled"),Y)),onMouseEnter:pt,onMouseLeave:gt}),ge,!$&&t.createElement(Yn,{id:$e,open:ae,keyPath:de},s));return ce&&(Re=ce(Re,e,{selected:Be,active:Le,open:ae,disabled:Y})),t.createElement(xe,{onItemClick:Ct,mode:P==="horizontal"?"vertical":P,itemIcon:me,expandIcon:k},Re)}),qn=t.forwardRef(function(e,r){var a=e.eventKey,n=e.children,i=be(a),o=st(n,i),l=Ue();t.useEffect(function(){if(l)return l.registerPath(a,i),function(){l.unregisterPath(a,i)}},[i]);var u;return l?u=o:u=t.createElement(Qn,(0,T.Z)({ref:r},e),o),t.createElement(Dt.Provider,{value:i},u)}),He=qn,_n=h(71002);function ct(e){var r=e.className,a=e.style,n=t.useContext(Q),i=n.prefixCls,o=Ue();return o?null:t.createElement("li",{role:"separator",className:ue()("".concat(i,"-item-divider"),r),style:a})}var er=["className","title","eventKey","children"],tr=t.forwardRef(function(e,r){var a=e.className,n=e.title,i=e.eventKey,o=e.children,l=(0,J.Z)(e,er),u=t.useContext(Q),v=u.prefixCls,s="".concat(v,"-item-group");return t.createElement("li",(0,T.Z)({ref:r,role:"presentation"},l,{onClick:function(c){return c.stopPropagation()},className:ue()(s,a)}),t.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof n=="string"?n:void 0},n),t.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))}),nr=t.forwardRef(function(e,r){var a=e.eventKey,n=e.children,i=be(a),o=st(n,i),l=Ue();return l?o:t.createElement(tr,(0,T.Z)({ref:r},(0,ut.Z)(e,["warnKey"])),o)}),vt=nr,rr=["label","children","key","type","extra"];function dt(e,r,a){var n=r.item,i=r.group,o=r.submenu,l=r.divider;return(e||[]).map(function(u,v){if(u&&(0,_n.Z)(u)==="object"){var s=u,I=s.label,c=s.children,d=s.key,b=s.type,p=s.extra,R=(0,J.Z)(s,rr),C=d??"tmp-".concat(v);return c||b==="group"?b==="group"?t.createElement(i,(0,T.Z)({key:C},R,{title:I}),dt(c,r,a)):t.createElement(o,(0,T.Z)({key:C},R,{title:I}),dt(c,r,a)):b==="divider"?t.createElement(l,(0,T.Z)({key:C},R)):t.createElement(n,(0,T.Z)({key:C},R,{extra:p}),I,(!!p||p===0)&&t.createElement("span",{className:"".concat(a,"-item-extra")},p))}return null}).filter(function(u){return u})}function Ht(e,r,a,n,i){var o=e,l=(0,w.Z)({divider:ct,item:we,group:vt,submenu:He},n);return r&&(o=dt(r,l,i)),st(o,a)}var ar=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],se=[],ir=t.forwardRef(function(e,r){var a,n=e,i=n.prefixCls,o=i===void 0?"rc-menu":i,l=n.rootClassName,u=n.style,v=n.className,s=n.tabIndex,I=s===void 0?0:s,c=n.items,d=n.children,b=n.direction,p=n.id,R=n.mode,C=R===void 0?"vertical":R,M=n.inlineCollapsed,N=n.disabled,f=n.disabledOverflow,g=n.subMenuOpenDelay,S=g===void 0?.1:g,m=n.subMenuCloseDelay,Z=m===void 0?.1:m,V=n.forceSubMenuRender,P=n.defaultOpenKeys,U=n.openKeys,L=n.activeKey,$=n.defaultActiveFirst,z=n.selectable,j=z===void 0?!0:z,q=n.multiple,ee=q===void 0?!1:q,G=n.defaultSelectedKeys,_=n.selectedKeys,W=n.onSelect,te=n.onDeselect,ce=n.inlineIndent,oe=ce===void 0?24:ce,ve=n.motion,de=n.defaultMotions,F=n.triggerSubMenuAction,Y=F===void 0?"hover":F,Ie=n.builtinPlacements,fe=n.itemIcon,me=n.expandIcon,k=n.overflowedIndicator,ne=k===void 0?"...":k,ae=n.overflowedIndicatorPopupClassName,Be=n.getPopupContainer,Me=n.onClick,pe=n.onOpenChange,ft=n.onKeyDown,Bt=n.openAnimation,mt=n.openTransitionName,Oe=n._internalRenderMenuItem,je=n._internalRenderSubMenuItem,Ae=n._internalComponents,pt=(0,J.Z)(n,ar),gt=t.useMemo(function(){return[Ht(d,c,se,Ae,o),Ht(d,c,se,{},o)]},[d,c,Ae]),Le=(0,O.Z)(gt,2),ie=Le[0],ht=Le[1],Ct=t.useState(!1),Ye=(0,O.Z)(Ct,2),Xe=Ye[0],$e=Ye[1],Se=t.useRef(),ge=xn(p),he=b==="rtl",ke=(0,Ve.Z)(P,{value:U,postState:function(y){return y||se}}),Re=(0,O.Z)(ke,2),D=Re[0],X=Re[1],yt=function(y){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function H(){X(y),pe==null||pe(y)}x?(0,vn.flushSync)(H):H()},ur=t.useState(D),jt=(0,O.Z)(ur,2),sr=jt[0],cr=jt[1],bt=t.useRef(!1),vr=t.useMemo(function(){return(C==="inline"||C==="vertical")&&M?["vertical",M]:[C,!1]},[C,M]),Yt=(0,O.Z)(vr,2),Je=Yt[0],It=Yt[1],Xt=Je==="inline",dr=t.useState(Je),Jt=(0,O.Z)(dr,2),le=Jt[0],fr=Jt[1],mr=t.useState(It),Qt=(0,O.Z)(mr,2),pr=Qt[0],gr=Qt[1];t.useEffect(function(){fr(Je),gr(It),bt.current&&(Xt?X(sr):yt(se))},[Je,It]);var hr=t.useState(0),qt=(0,O.Z)(hr,2),Qe=qt[0],Cr=qt[1],Mt=Qe>=ie.length-1||le!=="horizontal"||f;t.useEffect(function(){Xt&&cr(D)},[D]),t.useEffect(function(){return bt.current=!0,function(){bt.current=!1}},[]);var Ce=Rn(),_t=Ce.registerPath,en=Ce.unregisterPath,yr=Ce.refreshOverflowKeys,tn=Ce.isSubPathKey,br=Ce.getKeyPath,nn=Ce.getKeys,Ir=Ce.getSubPathKeys,Mr=t.useMemo(function(){return{registerPath:_t,unregisterPath:en}},[_t,en]),Sr=t.useMemo(function(){return{isSubPathKey:tn}},[tn]);t.useEffect(function(){yr(Mt?se:ie.slice(Qe+1).map(function(K){return K.key}))},[Qe,Mt]);var Rr=(0,Ve.Z)(L||$&&((a=ie[0])===null||a===void 0?void 0:a.key),{value:L}),rn=(0,O.Z)(Rr,2),Te=rn[0],St=rn[1],Zr=Ne(function(K){St(K)}),xr=Ne(function(){St(void 0)});(0,t.useImperativeHandle)(r,function(){return{list:Se.current,focus:function(y){var x,H=nn(),B=it(H,ge),_e=B.elements,Rt=B.key2element,$r=B.element2key,ln=at(Se.current,_e),un=Te??(ln[0]?$r.get(ln[0]):(x=ie.find(function(kr){return!kr.props.disabled}))===null||x===void 0?void 0:x.key),Fe=Rt.get(un);if(un&&Fe){var Zt;Fe==null||(Zt=Fe.focus)===null||Zt===void 0||Zt.call(Fe,y)}}}});var Pr=(0,Ve.Z)(G||[],{value:_,postState:function(y){return Array.isArray(y)?y:y==null?se:[y]}}),an=(0,O.Z)(Pr,2),qe=an[0],Er=an[1],Kr=function(y){if(j){var x=y.key,H=qe.includes(x),B;ee?H?B=qe.filter(function(Rt){return Rt!==x}):B=[].concat((0,ye.Z)(qe),[x]):B=[x],Er(B);var _e=(0,w.Z)((0,w.Z)({},y),{},{selectedKeys:B});H?te==null||te(_e):W==null||W(_e)}!ee&&D.length&&le!=="inline"&&yt(se)},Nr=Ne(function(K){Me==null||Me(We(K)),Kr(K)}),on=Ne(function(K,y){var x=D.filter(function(B){return B!==K});if(y)x.push(K);else if(le!=="inline"){var H=Ir(K);x=x.filter(function(B){return!H.has(B)})}(0,xt.Z)(D,x,!0)||yt(x,!0)}),wr=function(y,x){var H=x??!D.includes(y);on(y,H)},Dr=In(le,Te,he,ge,Se,nn,br,St,wr,ft);t.useEffect(function(){$e(!0)},[]);var Or=t.useMemo(function(){return{_internalRenderMenuItem:Oe,_internalRenderSubMenuItem:je}},[Oe,je]),Ar=le!=="horizontal"||f?ie:ie.map(function(K,y){return t.createElement(xe,{key:K.key,overflowDisabled:y>Qe},K)}),Lr=t.createElement(Ze.Z,(0,T.Z)({id:p,ref:Se,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:we,className:ue()(o,"".concat(o,"-root"),"".concat(o,"-").concat(le),v,(0,E.Z)((0,E.Z)({},"".concat(o,"-inline-collapsed"),pr),"".concat(o,"-rtl"),he),l),dir:b,style:u,role:"menu",tabIndex:I,data:Ar,renderRawItem:function(y){return y},renderRawRest:function(y){var x=y.length,H=x?ie.slice(-x):null;return t.createElement(He,{eventKey:lt,title:ne,disabled:Mt,internalPopupClose:x===0,popupClassName:ae},H)},maxCount:le!=="horizontal"||f?Ze.Z.INVALIDATE:Ze.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(y){Cr(y)},onKeyDown:Dr},pt));return t.createElement(et.Provider,{value:Or},t.createElement(Et.Provider,{value:ge},t.createElement(xe,{prefixCls:o,rootClassName:l,mode:le,openKeys:D,rtl:he,disabled:N,motion:Xe?ve:null,defaultMotions:Xe?de:null,activeKey:Te,onActive:Zr,onInactive:xr,selectedKeys:qe,inlineIndent:oe,subMenuOpenDelay:S,subMenuCloseDelay:Z,forceSubMenuRender:V,builtinPlacements:Ie,triggerSubMenuAction:Y,getPopupContainer:Be,itemIcon:fe,expandIcon:me,onItemClick:Nr,onOpenChange:on},t.createElement(Ot.Provider,{value:Sr},Lr),t.createElement("div",{style:{display:"none"},"aria-hidden":!0},t.createElement(wt.Provider,{value:Mr},ht)))))}),or=ir,De=or;De.Item=we,De.SubMenu=He,De.ItemGroup=vt,De.Divider=ct;var lr=De}}]);
|