From f1b7ce1801518f84898e9f4f4e41baabbb6f0920 Mon Sep 17 00:00:00 2001 From: nuintun Date: Wed, 3 Jan 2024 10:01:56 +0800 Subject: [PATCH] feat: Update examples --- packages/examples/static/index.html | 2 +- .../static/public/js/172eed7250322887.js | 2 - .../public/js/172eed7250322887.js.LICENSE.txt | 9 - .../static/public/js/190b9c03eda5924e.js | 257 ++++++++++++++++++ .../static/public/js/21aa02a93f866028.js | 2 - .../public/js/21aa02a93f866028.js.LICENSE.txt | 9 - .../static/public/js/220e1c9506087df0.js | 1 + .../static/public/js/37ab26d82d670985.js | 1 + .../static/public/js/4f695494ff2c2a84.js | 1 - .../static/public/js/528684fc79a9370a.js | 1 + .../static/public/js/5bcd8bdd7f045992.js | 1 + .../static/public/js/6076e9e3d42db083.js | 2 - .../public/js/6076e9e3d42db083.js.LICENSE.txt | 57 ---- .../static/public/js/6faf6d0f6a65030a.js | 1 - .../static/public/js/7d3927b58cd427e7.js | 1 - .../static/public/js/7f0b67c400c6ddd4.js | 57 ++++ .../static/public/js/7f4f471bd3b07cc7.js | 201 ++++++++++++++ .../static/public/js/829d36cdb5151f64.js | 1 - .../static/public/js/976ebbfd8e40ba8b.js | 113 ++++++++ .../static/public/js/a3749874652a6505.js | 21 ++ .../static/public/js/a933f1f89f4f5b9b.js | 1 - .../static/public/js/ab00099a09250547.js | 1 - .../static/public/js/b76cc8beb3496894.js | 1 - .../static/public/js/d14576ce1d3d046c.js | 1 + 24 files changed, 655 insertions(+), 89 deletions(-) delete mode 100644 packages/examples/static/public/js/172eed7250322887.js delete mode 100644 packages/examples/static/public/js/172eed7250322887.js.LICENSE.txt create mode 100644 packages/examples/static/public/js/190b9c03eda5924e.js delete mode 100644 packages/examples/static/public/js/21aa02a93f866028.js delete mode 100644 packages/examples/static/public/js/21aa02a93f866028.js.LICENSE.txt create mode 100644 packages/examples/static/public/js/220e1c9506087df0.js create mode 100644 packages/examples/static/public/js/37ab26d82d670985.js delete mode 100644 packages/examples/static/public/js/4f695494ff2c2a84.js create mode 100644 packages/examples/static/public/js/528684fc79a9370a.js create mode 100644 packages/examples/static/public/js/5bcd8bdd7f045992.js delete mode 100644 packages/examples/static/public/js/6076e9e3d42db083.js delete mode 100644 packages/examples/static/public/js/6076e9e3d42db083.js.LICENSE.txt delete mode 100644 packages/examples/static/public/js/6faf6d0f6a65030a.js delete mode 100644 packages/examples/static/public/js/7d3927b58cd427e7.js create mode 100644 packages/examples/static/public/js/7f0b67c400c6ddd4.js create mode 100644 packages/examples/static/public/js/7f4f471bd3b07cc7.js delete mode 100644 packages/examples/static/public/js/829d36cdb5151f64.js create mode 100644 packages/examples/static/public/js/976ebbfd8e40ba8b.js create mode 100644 packages/examples/static/public/js/a3749874652a6505.js delete mode 100644 packages/examples/static/public/js/a933f1f89f4f5b9b.js delete mode 100644 packages/examples/static/public/js/ab00099a09250547.js delete mode 100644 packages/examples/static/public/js/b76cc8beb3496894.js create mode 100644 packages/examples/static/public/js/d14576ce1d3d046c.js diff --git a/packages/examples/static/index.html b/packages/examples/static/index.html index 9f47cca5..b2b71b9e 100644 --- a/packages/examples/static/index.html +++ b/packages/examples/static/index.html @@ -1 +1 @@ -二维码
\ No newline at end of file +二维码
\ No newline at end of file diff --git a/packages/examples/static/public/js/172eed7250322887.js b/packages/examples/static/public/js/172eed7250322887.js deleted file mode 100644 index 308560cd..00000000 --- a/packages/examples/static/public/js/172eed7250322887.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 172eed7250322887.js.LICENSE.txt */ -!function(){"use strict";const e=new Map;class n{#e;#n;static TERMINATOR=new n([0,0,0],0);static NUMERIC=new n([10,12,14],1);static ALPHANUMERIC=new n([9,11,13],2);static STRUCTURED_APPEND=new n([0,0,0],3);static BYTE=new n([8,16,16],4);static ECI=new n([0,0,0],7);static KANJI=new n([8,10,12],8);static FNC1_FIRST_POSITION=new n([0,0,0],5);static FNC1_SECOND_POSITION=new n([0,0,0],9);static HANZI=new n([8,10,12],13);constructor(n,t){this.#e=t,this.#n=new Int32Array(n),e.set(t,this)}get bits(){return this.#e}getCharacterCountBits({version:e}){let n;return n=e<=9?0:e<=26?1:2,this.#n[n]}}function t(e){return 0|e}function s(e){return 32-Math.clz32(e)}function r(e,n){const t=s(n);for(e<<=t-1;s(e)>=t;)e^=n<32*n.length){const t=i(Math.ceil(e/.75));t.set(n),this.#e=t}this.#t=e}get length(){return this.#t}get byteLength(){return Math.ceil(this.#t/8)}set(e){this.#e[o(e)]|=1<<(31&e)}get(e){return this.#e[o(e)]>>>(31&e)&1}xor(e){const n=this.#e,t=e.#e,s=Math.min(this.#t,e.#t);for(let e=0;e=0;s--)e>>>s&1&&this.set(t),t++}}toUint8Array(e,n,t,s){for(let r=0;rn?63:e)}return new Uint8Array(t)}function u(e,n){switch(n){case a.ASCII:return h(e,127);case a.ISO_8859_1:return h(e,255);case a.UTF_8:return(new TextEncoder).encode(e);default:throw Error("built-in encode only support ascii, utf-8 and iso-8859-1 charset")}}const f="0123456789",d=`${f}ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`;function g(e){let n=0;const t=new Map;for(const s of e)t.set(s,n++);return t}function p(e,...n){const t=[],s=[],r=new Map,o=new TextDecoder(e,{fatal:!0});for(const[e,r]of n)for(let n=e;n<=r;n++)t.push(n>>8,255&n),s.push(n);const{length:i}=s,w=o.decode(new Uint8Array(t));for(let e=0;e=41377&&n<=43774)n-=41377;else{if(!(n>=45217&&n<=64254))throw new Error(`illegal hanzi character: ${t}`);n-=42657}n=96*(n>>8)+(255&n),e.append(n,13)}return e}}const z=p("shift-jis",[33088,33150],[33152,33196],[33208,33215],[33224,33230],[33242,33256],[33264,33271],[33276,33276],[33359,33368],[33376,33401],[33409,33434],[33439,33521],[33600,33662],[33664,33686],[33695,33718],[33727,33750],[33856,33888],[33904,33918],[33920,33937],[33951,33982],[34975,35068],...b(35136,38908,[0,62,64,188]),[38976,39026],[39071,39164],...b(39232,40956,[0,62,64,188]),...b(57408,59900,[0,62,64,188]),[59968,60030],[60032,60068]);function S(e){const n=z.get(e);return null!=n?n:-1}class T{#i;constructor(e){l(e),this.#i=e}get mode(){return n.KANJI}get content(){return this.#i}encode(){const e=new w,n=this.#i;for(const t of n){let n=S(t);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error(`illegal kanji character: ${t}`);n-=49472}n=192*(n>>8)+(255&n),e.append(n,13)}return e}}class k{#i;#w;constructor(e,n=a.ISO_8859_1){l(e),function(e){if(!(e instanceof a))throw new Error("illegal charset")}(n),this.#i=e,this.#w=n}get mode(){return n.BYTE}get content(){return this.#i}get charset(){return this.#w}encode(e){const n=new w,t=e(this.#i,this.#w);for(const e of t)n.append(e,8);return n}}class M{#c;#a;constructor(e,n){this.#c=e,this.#a=n}get count(){return this.#c}get numDataCodewords(){return this.#a}}class O{#l;#h;#u;#f;#d;constructor(e,...n){let t=0,s=0;for(const{count:e,numDataCodewords:r}of n)t+=e,s+=r*e;const r=e*t;this.#l=n,this.#u=r,this.#f=s,this.#d=e,this.#h=s+r}get ecBlocks(){return this.#l}get numTotalCodewords(){return this.#h}get numTotalECCodewords(){return this.#u}get numTotalDataCodewords(){return this.#f}get numECCodewordsPerBlock(){return this.#d}}class D{#g;#p;#l;#b;constructor(e,n,...t){this.#p=e,this.#l=t,this.#g=17+4*e,this.#b=n}get size(){return this.#g}get version(){return this.#p}get alignmentPatterns(){return this.#b}getECBlocks({level:e}){return this.#l[e]}}const N=[new D(1,[],new O(7,new M(1,19)),new O(10,new M(1,16)),new O(13,new M(1,13)),new O(17,new M(1,9))),new D(2,[6,18],new O(10,new M(1,34)),new O(16,new M(1,28)),new O(22,new M(1,22)),new O(28,new M(1,16))),new D(3,[6,22],new O(15,new M(1,55)),new O(26,new M(1,44)),new O(18,new M(2,17)),new O(22,new M(2,13))),new D(4,[6,26],new O(20,new M(1,80)),new O(18,new M(2,32)),new O(26,new M(2,24)),new O(16,new M(4,9))),new D(5,[6,30],new O(26,new M(1,108)),new O(24,new M(2,43)),new O(18,new M(2,15),new M(2,16)),new O(22,new M(2,11),new M(2,12))),new D(6,[6,34],new O(18,new M(2,68)),new O(16,new M(4,27)),new O(24,new M(4,19)),new O(28,new M(4,15))),new D(7,[6,22,38],new O(20,new M(2,78)),new O(18,new M(4,31)),new O(18,new M(2,14),new M(4,15)),new O(26,new M(4,13),new M(1,14))),new D(8,[6,24,42],new O(24,new M(2,97)),new O(22,new M(2,38),new M(2,39)),new O(22,new M(4,18),new M(2,19)),new O(26,new M(4,14),new M(2,15))),new D(9,[6,26,46],new O(30,new M(2,116)),new O(22,new M(3,36),new M(2,37)),new O(20,new M(4,16),new M(4,17)),new O(24,new M(4,12),new M(4,13))),new D(10,[6,28,50],new O(18,new M(2,68),new M(2,69)),new O(26,new M(4,43),new M(1,44)),new O(24,new M(6,19),new M(2,20)),new O(28,new M(6,15),new M(2,16))),new D(11,[6,30,54],new O(20,new M(4,81)),new O(30,new M(1,50),new M(4,51)),new O(28,new M(4,22),new M(4,23)),new O(24,new M(3,12),new M(8,13))),new D(12,[6,32,58],new O(24,new M(2,92),new M(2,93)),new O(22,new M(6,36),new M(2,37)),new O(26,new M(4,20),new M(6,21)),new O(28,new M(7,14),new M(4,15))),new D(13,[6,34,62],new O(26,new M(4,107)),new O(22,new M(8,37),new M(1,38)),new O(24,new M(8,20),new M(4,21)),new O(22,new M(12,11),new M(4,12))),new D(14,[6,26,46,66],new O(30,new M(3,115),new M(1,116)),new O(24,new M(4,40),new M(5,41)),new O(20,new M(11,16),new M(5,17)),new O(24,new M(11,12),new M(5,13))),new D(15,[6,26,48,70],new O(22,new M(5,87),new M(1,88)),new O(24,new M(5,41),new M(5,42)),new O(30,new M(5,24),new M(7,25)),new O(24,new M(11,12),new M(7,13))),new D(16,[6,26,50,74],new O(24,new M(5,98),new M(1,99)),new O(28,new M(7,45),new M(3,46)),new O(24,new M(15,19),new M(2,20)),new O(30,new M(3,15),new M(13,16))),new D(17,[6,30,54,78],new O(28,new M(1,107),new M(5,108)),new O(28,new M(10,46),new M(1,47)),new O(28,new M(1,22),new M(15,23)),new O(28,new M(2,14),new M(17,15))),new D(18,[6,30,56,82],new O(30,new M(5,120),new M(1,121)),new O(26,new M(9,43),new M(4,44)),new O(28,new M(17,22),new M(1,23)),new O(28,new M(2,14),new M(19,15))),new D(19,[6,30,58,86],new O(28,new M(3,113),new M(4,114)),new O(26,new M(3,44),new M(11,45)),new O(26,new M(17,21),new M(4,22)),new O(26,new M(9,13),new M(16,14))),new D(20,[6,34,62,90],new O(28,new M(3,107),new M(5,108)),new O(26,new M(3,41),new M(13,42)),new O(30,new M(15,24),new M(5,25)),new O(28,new M(15,15),new M(10,16))),new D(21,[6,28,50,72,94],new O(28,new M(4,116),new M(4,117)),new O(26,new M(17,42)),new O(28,new M(17,22),new M(6,23)),new O(30,new M(19,16),new M(6,17))),new D(22,[6,26,50,74,98],new O(28,new M(2,111),new M(7,112)),new O(28,new M(17,46)),new O(30,new M(7,24),new M(16,25)),new O(24,new M(34,13))),new D(23,[6,30,54,78,102],new O(30,new M(4,121),new M(5,122)),new O(28,new M(4,47),new M(14,48)),new O(30,new M(11,24),new M(14,25)),new O(30,new M(16,15),new M(14,16))),new D(24,[6,28,54,80,106],new O(30,new M(6,117),new M(4,118)),new O(28,new M(6,45),new M(14,46)),new O(30,new M(11,24),new M(16,25)),new O(30,new M(30,16),new M(2,17))),new D(25,[6,32,58,84,110],new O(26,new M(8,106),new M(4,107)),new O(28,new M(8,47),new M(13,48)),new O(30,new M(7,24),new M(22,25)),new O(30,new M(22,15),new M(13,16))),new D(26,[6,30,58,86,114],new O(28,new M(10,114),new M(2,115)),new O(28,new M(19,46),new M(4,47)),new O(28,new M(28,22),new M(6,23)),new O(30,new M(33,16),new M(4,17))),new D(27,[6,34,62,90,118],new O(30,new M(8,122),new M(4,123)),new O(28,new M(22,45),new M(3,46)),new O(30,new M(8,23),new M(26,24)),new O(30,new M(12,15),new M(28,16))),new D(28,[6,26,50,74,98,122],new O(30,new M(3,117),new M(10,118)),new O(28,new M(3,45),new M(23,46)),new O(30,new M(4,24),new M(31,25)),new O(30,new M(11,15),new M(31,16))),new D(29,[6,30,54,78,102,126],new O(30,new M(7,116),new M(7,117)),new O(28,new M(21,45),new M(7,46)),new O(30,new M(1,23),new M(37,24)),new O(30,new M(19,15),new M(26,16))),new D(30,[6,26,52,78,104,130],new O(30,new M(5,115),new M(10,116)),new O(28,new M(19,47),new M(10,48)),new O(30,new M(15,24),new M(25,25)),new O(30,new M(23,15),new M(25,16))),new D(31,[6,30,56,82,108,134],new O(30,new M(13,115),new M(3,116)),new O(28,new M(2,46),new M(29,47)),new O(30,new M(42,24),new M(1,25)),new O(30,new M(23,15),new M(28,16))),new D(32,[6,34,60,86,112,138],new O(30,new M(17,115)),new O(28,new M(10,46),new M(23,47)),new O(30,new M(10,24),new M(35,25)),new O(30,new M(19,15),new M(35,16))),new D(33,[6,30,58,86,114,142],new O(30,new M(17,115),new M(1,116)),new O(28,new M(14,46),new M(21,47)),new O(30,new M(29,24),new M(19,25)),new O(30,new M(11,15),new M(46,16))),new D(34,[6,34,62,90,118,146],new O(30,new M(13,115),new M(6,116)),new O(28,new M(14,46),new M(23,47)),new O(30,new M(44,24),new M(7,25)),new O(30,new M(59,16),new M(1,17))),new D(35,[6,30,54,78,102,126,150],new O(30,new M(12,121),new M(7,122)),new O(28,new M(12,47),new M(26,48)),new O(30,new M(39,24),new M(14,25)),new O(30,new M(22,15),new M(41,16))),new D(36,[6,24,50,76,102,128,154],new O(30,new M(6,121),new M(14,122)),new O(28,new M(6,47),new M(34,48)),new O(30,new M(46,24),new M(10,25)),new O(30,new M(2,15),new M(64,16))),new D(37,[6,28,54,80,106,132,158],new O(30,new M(17,122),new M(4,123)),new O(28,new M(29,46),new M(14,47)),new O(30,new M(49,24),new M(10,25)),new O(30,new M(24,15),new M(46,16))),new D(38,[6,32,58,84,110,136,162],new O(30,new M(4,122),new M(18,123)),new O(28,new M(13,46),new M(32,47)),new O(30,new M(48,24),new M(14,25)),new O(30,new M(42,15),new M(32,16))),new D(39,[6,26,54,82,110,138,166],new O(30,new M(20,117),new M(4,118)),new O(28,new M(40,47),new M(7,48)),new O(30,new M(43,24),new M(22,25)),new O(30,new M(10,15),new M(67,16))),new D(40,[6,30,58,86,114,142,170],new O(30,new M(19,118),new M(6,119)),new O(28,new M(18,47),new M(31,48)),new O(30,new M(34,24),new M(34,25)),new O(30,new M(20,15),new M(61,16)))];const P=3,x=3,U=40,L=10;function R(e,n,t){return 1===e.get(n,t)}function Z(e,n){let t=0;const{size:s}=e;for(let r=0;r=5&&(t+=P+(i-5)),o=s,i=1)}i>=5&&(t+=P+(i-5))}return t}function $(e,n,t,s,r){if(t<0||s>e.size)return!1;for(let o=t;o=2){const{alignmentPatterns:t}=N[n-1],{length:s}=t;for(let n=0;n=7){const t=new w;!function(e,n){e.append(n,6);const t=r(n,j);e.append(t,12)}(t,n);let s=17;const{size:o}=e;for(let n=0;n<6;n++)for(let r=0;r<3;r++){const i=t.get(s--);e.set(n,o-11+r,i),e.set(o-11+r,n,i)}}}function re(e,n,t,s,r){e.clear(-1),ne(e,t),te(e,s,r),se(e,t),function(e,n,t){let s=0;const{size:r}=e,{length:o}=n;for(let i=r-1;i>=1;i-=2){6===i&&(i=5);for(let w=0;w1&&0===n[0]){let e=1;for(;e=e.getDegree()&&!s.isZero();){const r=s.getDegree(),i=r-e.getDegree(),w=n.multiply(s.getCoefficient(r),o),c=e.multiplyByMonomial(i,w),a=n.buildPolynomial(i,w);t=t.addOrSubtract(a),s=s.addOrSubtract(c)}return[t,s]}}const we=new class{#g;#A;#B;#_;#v;#E;constructor(e,n,t){let s=1;const r=new Int32Array(n);for(let t=0;t=n&&(s^=e,s&=n-1);const o=new Int32Array(n);for(let e=0,t=n-1;e=s){const{generator:r}=e;let o=n[s-1];for(let i=s;i<=t;i++){const t=new Int32Array([1,e.exp(i-1+r)]),s=o.multiply(new ie(e,t));n.push(s),o=s}}return n[t]}(this.#C,this.#z,n);s.set(e.subarray(0,t));const o=new ie(this.#C,s).multiplyByMonomial(n,1),[,i]=o.divide(r),{coefficients:w}=i,c=t+(n-w.length);e.fill(0,t,c),e.set(w,c)}}function ae(e,n){const t=e.length,s=new Int32Array(t+n);return s.set(e),(new ce).encode(s,n),new Uint8Array(s.subarray(t))}function le(e){return e.mode===n.BYTE}function he(e){return e.mode===n.HANZI}function ue(e,n){e.append(n.bits,4)}function fe(e,t,s){if(le(t)){const[r]=t.charset.values;if(r!==s)return e.append(n.ECI.bits,4),r<128?e.append(r,8):r<16384?(e.append(2,2),e.append(r,14)):(e.append(6,3),e.append(r,21)),r}return s}function de(e,t){const[s,r]=t;switch(s){case"GS1":ue(e,n.FNC1_FIRST_POSITION);break;case"AIM":ue(e,n.FNC1_SECOND_POSITION),e.append(r,8)}}function ge(e,n,t,s){e.append(s,n.getCharacterCountBits(t))}function pe(e,n,t){const s=n.getECBlocks(t),r=Math.ceil(e/8);return s.numTotalDataCodewords>=r}function be(e,n){for(const t of N)if(pe(e,t,n))return t;throw new Error("data too big for all versions")}function me(e,n){let t=0;for(const{mode:s,head:r,data:o}of e)t+=r.length+s.getCharacterCountBits(n)+o.length;return t}class ye{#S;#T;#e;#k;#g;#M;#O;constructor(e){const n=1<4095)return!1;this.#O.set(e<<8|n,t++);let s=this.#e,r=this.#g;return t>r&&(r=1<<++s),this.#e=s,this.#g=r,this.#M=t,!0}get(e,n){return this.#O.get(e<<8|n)}}class Ce{#e=0;#D;#N=0;#P=[];constructor(e){this.#D=e}write(e){let n=this.#e,t=this.#N|e<=8;)s.push(255&t),t>>=8,n-=8;this.#e=n,this.#N=t}pipe(e){const n=this.#P;this.#e>0&&n.push(this.#N),e.writeByte(this.#D.depth);const{length:t}=n;for(let s=0;s=255?(e.writeByte(255),e.writeBytes(n,s,255),s+=255):(e.writeByte(r),e.writeBytes(n,s,r),s=t)}e.writeByte(0)}}class Ie{#P=[];get bytes(){return this.#P}writeByte(e){this.#P.push(255&e)}writeInt16(e){this.#P.push(255&e,e>>8&255)}writeBytes(e,n=0,t=e.length){const s=this.#P;for(let r=0;r=0){if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62===e)return 43;if(63===e)return 47}throw new Error(`illegal char: ${Ae(e)}`)}class _e{#e=0;#N=0;#t=0;#x=new Ie;get bytes(){return this.#x.bytes}write(e){let n=this.#e+8;const t=this.#x,s=this.#N<<8|255&e;for(;n>=6;)t.writeByte(Be(s>>>n-6)),n-=6;this.#t++,this.#e=n,this.#N=s}close(){const e=this.#e,n=this.#x;e>0&&(n.writeByte(Be(this.#N<<6-e)),this.#e=0,this.#N=0);const t=this.#t;if(t%3!=0){const e=3-t%3;for(let t=0;t0){let n=e[0];const{length:t}=e;for(let o=1;o>0),n=Math.max(0,n>>0);const r=this.#K,o=e*r.size+2*n,i=new ve(o,o,s),w=o-n;for(let s=0;s=n&&c=n&&s255||!Number.isInteger(e))throw new Error("illegal fn1 application indicator")}}}(e),function(e){if(["L","M","Q","H"].indexOf(e)<0)throw new Error("illegal error correction level")}(n),function(e){if("Auto"!==e&&(e<1||e>40||!Number.isInteger(e)))throw new Error("illegal version")}(t),this.#J=e,this.#F=s,this.#p=t,this.#G=Se[n]}encode(...e){const n=this.#G,t=this.#F,{fnc1:s}=this.#J,r=this.#p,o=[];let i,c=!1,[l]=a.ISO_8859_1.values;for(const n of e){const{mode:e}=n,r=new w,i=le(n),a=i?n.encode(t):n.encode(),h=i?a.byteLength:n.content.length;l=fe(r,n,l),null==s||c||(c=!0,de(r,s)),ue(r,e),he(n)&&r.append(1,4),o.push({mode:e,head:r,data:a,length:h})}if("Auto"===r)i=function(e,n){const t=be(me(e,N[0]),n);return be(me(e,t),n)}(o,n);else{i=N[r-1];if(!pe(me(o,i),i,n))throw new Error("data too big for requested version")}const h=new w;for(const{mode:e,head:n,data:t,length:s}of o)h.append(n),ge(h,e,i,s),h.append(t);const u=i.getECBlocks(n);!function(e,n){const t=8*n;for(let n=0;n<4&&e.length0)for(let n=s;n<8;n++)e.append(0);const r=n-e.byteLength;for(let n=0;n>16&255,n>>8&255,255&n]}function Oe({fnc1:e,aimIndicator:n}){switch(e){case"GS1":return{fnc1:["GS1"]};case"AIM":return{fnc1:["AIM",+n]}}}self.addEventListener("message",(({data:e})=>{const{level:n,version:t}=e,s=new ke({level:n,version:t,hints:Oe(e)});try{const n=s.encode(function({mode:e,content:n,charset:t}){switch(e){case"Auto":const e=/^[0-9A-Z$%*+-./: ]+$/;if(/^\d+$/.test(n))return new C(n);if(e.test(n))return new B(n);const s=new E(n);try{return s.encode(),s}catch{}const r=new T(n);try{return r.encode(),r}catch{}return new k(n,a[t]);case"Hanzi":return new E(n);case"Kanji":return new T(n);case"Numeric":return new C(n);case"Alphanumeric":return new B(n);default:return new k(n,a[t])}}(e)),{moduleSize:t,quietZone:r,background:o,foreground:i}=e,w={type:"ok",payload:n.toDataURL(t,{margin:r,background:Me(o),foreground:Me(i)})};self.postMessage(w)}catch(e){const n={type:"error",message:e.message};self.postMessage(n)}}))}(); \ No newline at end of file diff --git a/packages/examples/static/public/js/172eed7250322887.js.LICENSE.txt b/packages/examples/static/public/js/172eed7250322887.js.LICENSE.txt deleted file mode 100644 index 8e78cdab..00000000 --- a/packages/examples/static/public/js/172eed7250322887.js.LICENSE.txt +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @module QRCode - * @package @nuintun/qrcode - * @license MIT - * @version 4.0.0 - * @author nuintun - * @description A pure JavaScript QRCode encode and decode library. - * @see https://github.com/nuintun/qrcode#readme - */ diff --git a/packages/examples/static/public/js/190b9c03eda5924e.js b/packages/examples/static/public/js/190b9c03eda5924e.js new file mode 100644 index 00000000..860afd68 --- /dev/null +++ b/packages/examples/static/public/js/190b9c03eda5924e.js @@ -0,0 +1,257 @@ +!function(){"use strict";function e(e){return 0|e+(e<0?-.5:.5)}function t(e){return e-=e>>1&1431655765,((e=(858993459&e)+(e>>2&858993459))+(e>>4)&252645135)*16843009>>24}function n(e,t=0,n=e.length){let r=0;for(let i=t;i + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class r{#e;#t;#n;#r;constructor(e,t,n){let r=Math.ceil(e/32),i=r*t;if(this.#e=e,this.#t=t,this.#n=r,n instanceof Int32Array){if(n.length!==i)throw Error(`matrix bits capacity mismatch: ${i}`);this.#r=n}else this.#r=new Int32Array(i)}#i(e,t){return t*this.#n+(0|e/32)}get width(){return this.#e}get height(){return this.#t}set(e,t){let n=this.#i(e,t);this.#r[n]|=1<<(31&e)}get(e,t){let n=this.#i(e,t);return this.#r[n]>>>(31&e)&1}flip(e,t){if(null!=e&&null!=t){let n=this.#i(e,t);this.#r[n]^=1<<(31&e)}else{let e=this.#r,{length:t}=e;for(let n=0;n>3;return 7&e&&t++,t}function s(e,t){return e<2?2:Math.min(e,t)}function o(e,t){return(e<<=3)>t?t:e}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class l{#s;#o;constructor(e,t){this.#s=e,this.#o=t}get x(){return this.#s}get y(){return this.#o}}function w(e,t){return Math.sqrt(a(e,t))}function a(e,t){let n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function u(e,t,n){let{x:r,y:i}=e,{x:s,y:o}=t,{x:l,y:w}=n;return Math.abs(r*(o-w)+s*(w-i)+l*(i-o))/2}class h extends l{#l;#e;#t;#w;#a;#u=1;#h;#f;static noise(e){return e.#l}static width(e){return e.#e}static height(e){return e.#t}static combined(e){return e.#u}static rect(e){return e.#w}static equals(e,t,n,r,i){let{modules:s}=e.#h,o=e.#f;if(Math.abs(t-e.x)<=o&&Math.abs(n-e.y)<=o){let t=e.#a,n=Math.abs((r+i)/s/2-t);if(n<=1||n<=t)return!0}return!1}static combine(e,t,n,r,i,s){let o=e.#u,l=o+1,w=(e.x*o+t)/l,a=(e.y*o+n)/l,u=(e.#l*o+s)/l,f=(e.#e*o+r)/l,c=(e.#t*o+i)/l,d=new h(e.#h,w,a,f,c,u);return d.#u=l,d}constructor(e,t,n,r,i,s){super(t,n);let{modules:o}=e,l=r/2,w=i/2,a=r/o,u=i/o,h=a/2,f=u/2,c=/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */function({ratios:e}){return e[0|e.length/2]/2}(e),d=(a+u)/2;this.#l=s,this.#e=r,this.#t=i,this.#h=e,this.#a=d,this.#w=[t-l+h,n-w+f,t+l-h,n+w-f],this.#f=d*c}get moduleSize(){return this.#a}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class f{#c;#d;constructor(e,t){this.#c=e,this.#d=t}sample(e,t){let n=this.#c,i=n.width,s=this.#d,o=n.height,l=new r(e,t);for(let r=0;r=0&&u>=0&&a + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class c{#g;#m;constructor(e,t){this.#g=e,this.#m=t}get count(){return this.#g}get numDataCodewords(){return this.#m}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class d{#b;#y;#p;#x;#z;constructor(e,...t){let n=0,r=0;for(let{count:e,numDataCodewords:i}of t)n+=e,r+=i*e;let i=e*n;this.#b=t,this.#p=i,this.#x=r,this.#z=e,this.#y=r+i}get ecBlocks(){return this.#b}get numTotalCodewords(){return this.#y}get numTotalECCodewords(){return this.#p}get numTotalDataCodewords(){return this.#x}get numECCodewordsPerBlock(){return this.#z}}let g=[31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017];class m{#I;#C;#b;#S;constructor(e,t,...n){this.#C=e,this.#b=n,this.#I=17+4*e,this.#S=t}get size(){return this.#I}get version(){return this.#C}get alignmentPatterns(){return this.#S}getECBlocks({level:e}){return this.#b[e]}}let b=[new m(1,[],new d(7,new c(1,19)),new d(10,new c(1,16)),new d(13,new c(1,13)),new d(17,new c(1,9))),new m(2,[6,18],new d(10,new c(1,34)),new d(16,new c(1,28)),new d(22,new c(1,22)),new d(28,new c(1,16))),new m(3,[6,22],new d(15,new c(1,55)),new d(26,new c(1,44)),new d(18,new c(2,17)),new d(22,new c(2,13))),new m(4,[6,26],new d(20,new c(1,80)),new d(18,new c(2,32)),new d(26,new c(2,24)),new d(16,new c(4,9))),new m(5,[6,30],new d(26,new c(1,108)),new d(24,new c(2,43)),new d(18,new c(2,15),new c(2,16)),new d(22,new c(2,11),new c(2,12))),new m(6,[6,34],new d(18,new c(2,68)),new d(16,new c(4,27)),new d(24,new c(4,19)),new d(28,new c(4,15))),new m(7,[6,22,38],new d(20,new c(2,78)),new d(18,new c(4,31)),new d(18,new c(2,14),new c(4,15)),new d(26,new c(4,13),new c(1,14))),new m(8,[6,24,42],new d(24,new c(2,97)),new d(22,new c(2,38),new c(2,39)),new d(22,new c(4,18),new c(2,19)),new d(26,new c(4,14),new c(2,15))),new m(9,[6,26,46],new d(30,new c(2,116)),new d(22,new c(3,36),new c(2,37)),new d(20,new c(4,16),new c(4,17)),new d(24,new c(4,12),new c(4,13))),new m(10,[6,28,50],new d(18,new c(2,68),new c(2,69)),new d(26,new c(4,43),new c(1,44)),new d(24,new c(6,19),new c(2,20)),new d(28,new c(6,15),new c(2,16))),new m(11,[6,30,54],new d(20,new c(4,81)),new d(30,new c(1,50),new c(4,51)),new d(28,new c(4,22),new c(4,23)),new d(24,new c(3,12),new c(8,13))),new m(12,[6,32,58],new d(24,new c(2,92),new c(2,93)),new d(22,new c(6,36),new c(2,37)),new d(26,new c(4,20),new c(6,21)),new d(28,new c(7,14),new c(4,15))),new m(13,[6,34,62],new d(26,new c(4,107)),new d(22,new c(8,37),new c(1,38)),new d(24,new c(8,20),new c(4,21)),new d(22,new c(12,11),new c(4,12))),new m(14,[6,26,46,66],new d(30,new c(3,115),new c(1,116)),new d(24,new c(4,40),new c(5,41)),new d(20,new c(11,16),new c(5,17)),new d(24,new c(11,12),new c(5,13))),new m(15,[6,26,48,70],new d(22,new c(5,87),new c(1,88)),new d(24,new c(5,41),new c(5,42)),new d(30,new c(5,24),new c(7,25)),new d(24,new c(11,12),new c(7,13))),new m(16,[6,26,50,74],new d(24,new c(5,98),new c(1,99)),new d(28,new c(7,45),new c(3,46)),new d(24,new c(15,19),new c(2,20)),new d(30,new c(3,15),new c(13,16))),new m(17,[6,30,54,78],new d(28,new c(1,107),new c(5,108)),new d(28,new c(10,46),new c(1,47)),new d(28,new c(1,22),new c(15,23)),new d(28,new c(2,14),new c(17,15))),new m(18,[6,30,56,82],new d(30,new c(5,120),new c(1,121)),new d(26,new c(9,43),new c(4,44)),new d(28,new c(17,22),new c(1,23)),new d(28,new c(2,14),new c(19,15))),new m(19,[6,30,58,86],new d(28,new c(3,113),new c(4,114)),new d(26,new c(3,44),new c(11,45)),new d(26,new c(17,21),new c(4,22)),new d(26,new c(9,13),new c(16,14))),new m(20,[6,34,62,90],new d(28,new c(3,107),new c(5,108)),new d(26,new c(3,41),new c(13,42)),new d(30,new c(15,24),new c(5,25)),new d(28,new c(15,15),new c(10,16))),new m(21,[6,28,50,72,94],new d(28,new c(4,116),new c(4,117)),new d(26,new c(17,42)),new d(28,new c(17,22),new c(6,23)),new d(30,new c(19,16),new c(6,17))),new m(22,[6,26,50,74,98],new d(28,new c(2,111),new c(7,112)),new d(28,new c(17,46)),new d(30,new c(7,24),new c(16,25)),new d(24,new c(34,13))),new m(23,[6,30,54,78,102],new d(30,new c(4,121),new c(5,122)),new d(28,new c(4,47),new c(14,48)),new d(30,new c(11,24),new c(14,25)),new d(30,new c(16,15),new c(14,16))),new m(24,[6,28,54,80,106],new d(30,new c(6,117),new c(4,118)),new d(28,new c(6,45),new c(14,46)),new d(30,new c(11,24),new c(16,25)),new d(30,new c(30,16),new c(2,17))),new m(25,[6,32,58,84,110],new d(26,new c(8,106),new c(4,107)),new d(28,new c(8,47),new c(13,48)),new d(30,new c(7,24),new c(22,25)),new d(30,new c(22,15),new c(13,16))),new m(26,[6,30,58,86,114],new d(28,new c(10,114),new c(2,115)),new d(28,new c(19,46),new c(4,47)),new d(28,new c(28,22),new c(6,23)),new d(30,new c(33,16),new c(4,17))),new m(27,[6,34,62,90,118],new d(30,new c(8,122),new c(4,123)),new d(28,new c(22,45),new c(3,46)),new d(30,new c(8,23),new c(26,24)),new d(30,new c(12,15),new c(28,16))),new m(28,[6,26,50,74,98,122],new d(30,new c(3,117),new c(10,118)),new d(28,new c(3,45),new c(23,46)),new d(30,new c(4,24),new c(31,25)),new d(30,new c(11,15),new c(31,16))),new m(29,[6,30,54,78,102,126],new d(30,new c(7,116),new c(7,117)),new d(28,new c(21,45),new c(7,46)),new d(30,new c(1,23),new c(37,24)),new d(30,new c(19,15),new c(26,16))),new m(30,[6,26,52,78,104,130],new d(30,new c(5,115),new c(10,116)),new d(28,new c(19,47),new c(10,48)),new d(30,new c(15,24),new c(25,25)),new d(30,new c(23,15),new c(25,16))),new m(31,[6,30,56,82,108,134],new d(30,new c(13,115),new c(3,116)),new d(28,new c(2,46),new c(29,47)),new d(30,new c(42,24),new c(1,25)),new d(30,new c(23,15),new c(28,16))),new m(32,[6,34,60,86,112,138],new d(30,new c(17,115)),new d(28,new c(10,46),new c(23,47)),new d(30,new c(10,24),new c(35,25)),new d(30,new c(19,15),new c(35,16))),new m(33,[6,30,58,86,114,142],new d(30,new c(17,115),new c(1,116)),new d(28,new c(14,46),new c(21,47)),new d(30,new c(29,24),new c(19,25)),new d(30,new c(11,15),new c(46,16))),new m(34,[6,34,62,90,118,146],new d(30,new c(13,115),new c(6,116)),new d(28,new c(14,46),new c(23,47)),new d(30,new c(44,24),new c(7,25)),new d(30,new c(59,16),new c(1,17))),new m(35,[6,30,54,78,102,126,150],new d(30,new c(12,121),new c(7,122)),new d(28,new c(12,47),new c(26,48)),new d(30,new c(39,24),new c(14,25)),new d(30,new c(22,15),new c(41,16))),new m(36,[6,24,50,76,102,128,154],new d(30,new c(6,121),new c(14,122)),new d(28,new c(6,47),new c(34,48)),new d(30,new c(46,24),new c(10,25)),new d(30,new c(2,15),new c(64,16))),new m(37,[6,28,54,80,106,132,158],new d(30,new c(17,122),new c(4,123)),new d(28,new c(29,46),new c(14,47)),new d(30,new c(49,24),new c(10,25)),new d(30,new c(24,15),new c(46,16))),new m(38,[6,32,58,84,110,136,162],new d(30,new c(4,122),new c(18,123)),new d(28,new c(13,46),new c(32,47)),new d(30,new c(48,24),new c(14,25)),new d(30,new c(42,15),new c(32,16))),new m(39,[6,26,54,82,110,138,166],new d(30,new c(20,117),new c(4,118)),new d(28,new c(40,47),new c(7,48)),new d(30,new c(43,24),new c(22,25)),new d(30,new c(10,15),new c(67,16))),new m(40,[6,30,58,86,114,142,170],new d(30,new c(19,118),new c(6,119)),new d(28,new c(18,47),new c(31,48)),new d(30,new c(34,24),new c(34,25)),new d(30,new c(20,15),new c(61,16)))];/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class y{#E;#A;#v;#O;#k;#M;constructor(e,t){let n=0|t.x,r=0|t.y,i=0|e.x,s=0|e.y,o=Math.abs(r-s)>Math.abs(n-i);o&&([i,s,n,r]=[s,i,r,n]);let w=i0){if(h===n)break;h+=i,a-=s}}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */function p(e,t,n){let r=0,{width:i,height:s}=e,o=new l((t.x+n.x)/2,(t.y+n.y)/2);for(let[n,a]of new y(t,o).points()){if(n<0||a<0||n>=i||a>=s){if(2===r)return w(t,new l(n,a));break}if(1===r==(1===e.get(n,a))){if(2===r)return w(t,new l(n,a));r++}}return NaN}function x(e,t,n){let r=p(e,t,n);if(Number.isNaN(r))return NaN;let{x:i,y:s}=n,{x:o,y:w}=t,a=p(e,t,new l(o-(i-o),w-(s-w)));return Number.isNaN(a)?NaN:r+a-1}function z(e,t,n){let r=new l(0|t.x,0|t.y),i=new l(0|n.x,0|n.y),s=x(e,r,i),o=x(e,i,r);return Number.isNaN(s)?o/7:Number.isNaN(o)?s/7:(s+o)/14}function I(e,t){var n,r,i,s;let o=Math.max((n=h.width(e))>(r=h.width(t))?n/r:r/n,(i=h.height(e))>(s=h.height(t))?i/s:s/i);return o*o}class C{#N;#I;#c;#T;#a;#_;#R;static area(e){let[t,n,r]=e.#_,i=C.bottomRight(e);if(null==e.#N){let s=u(t,n,i),o=u(i,r,t);e.#N=s+o}return e.#N}static moduleSizes(e){if(null==e.#R){let t=e.#c,[n,r,i]=e.#_;e.#R=[z(t,n,r),z(t,n,i)]}return e.#R}static size(t){if(null==t.#I){let n=C.moduleSize(t);t.#I=function([t,n,r],i){let s=e((w(t,n)+w(t,r))/i/2)+7;switch(3&s){case 0:return s+1;case 2:return s-1;case 3:return Math.min(s+2,177)}return s}(t.#_,n)}return t.#I}static moduleSize(e){return null==e.#a&&(e.#a=n(C.moduleSizes(e))/2),e.#a}static contains(e,t){let n=C.area(e),[r,i,s]=e.#_,o=C.bottomRight(e),l=u(r,i,t);return l+u(i,o,t)+u(o,s,t)+u(s,r,t)-n<1}static bottomRight(e){return null==e.#T&&(e.#T=function([e,t,n]){let{x:r,y:i}=e;return new l(t.x+n.x-r,t.y+n.y-i)}(e.#_)),e.#T}constructor(e,t){this.#c=e,this.#_=function(e){let t,n,r;let[i,s,o]=e,l=a(i,s)*I(i,s),w=a(i,o)*I(i,o),u=a(s,o)*I(s,o);return u>=l&&u>=w?[t,r,n]=e:w>=u&&w>=l?[r,t,n]=e:[r,n,t]=e,0>function(e,t,n){let{x:r,y:i}=t;return(n.x-r)*(e.y-i)-(n.y-i)*(e.x-r)}(r,t,n)&&([r,n]=[n,r]),[t,n,r]}(t)}get topLeft(){return this.#_[0]}get topRight(){return this.#_[1]}get bottomLeft(){return this.#_[2]}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class S{#c;#D;#P;#d;constructor(e,t,n,r){let i=new f(e,t),s=C.size(n);this.#c=e,this.#d=t,this.#P=n,this.#D=r,this.#c=i.sample(s,s)}get matrix(){return this.#c}get finder(){return this.#P}get alignment(){return this.#D}get size(){return C.size(this.#P)}get moduleSize(){return C.moduleSize(this.#P)}mapping(e,t){return[e,t]=this.#d.mapping(e,t),new l(e,t)}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class E{#B;#U;#F;#Z;#L;#H;#j;#$;#q;constructor(e,t,n,r,i,s,o,l,w){this.#B=e,this.#U=r,this.#F=o,this.#Z=t,this.#L=i,this.#H=l,this.#j=n,this.#$=s,this.#q=w}buildAdjoint(){let e=this.#B,t=this.#U,n=this.#F,r=this.#Z,i=this.#L,s=this.#H,o=this.#j,l=this.#$,w=this.#q;return new E(i*w-s*l,s*o-r*w,r*l-i*o,n*l-t*w,e*w-n*o,t*o-e*l,t*s-n*i,n*r-e*s,e*i-t*r)}times(e){let t=this.#B,n=this.#U,r=this.#F,i=this.#Z,s=this.#L,o=this.#H,l=this.#j,w=this.#$,a=this.#q,u=e.#B,h=e.#U,f=e.#F,c=e.#Z,d=e.#L,g=e.#H,m=e.#j,b=e.#$,y=e.#q;return new E(t*u+i*h+l*f,t*c+i*d+l*g,t*m+i*b+l*y,n*u+s*h+w*f,n*c+s*d+w*g,n*m+s*b+w*y,r*u+o*h+a*f,r*c+o*d+a*g,r*m+o*b+a*y)}mapping(e,t){let n=this.#B,r=this.#U,i=this.#F,s=this.#Z,o=this.#L,l=this.#H,w=this.#j,a=this.#$,u=i*e+l*t+this.#q;return[(n*e+s*t+w)/u,(r*e+o*t+a)/u]}}function A(e,t,n,r,i,s,o,l){let w=e-n+i-o,a=t-r+s-l;if(0===w&&0===a)return new E(n-e,i-n,e,r-t,s-r,t,0,0,1);{let u=n-i,h=o-i,f=r-s,c=l-s,d=u*c-h*f,g=(w*c-h*a)/d,m=(u*a-w*f)/d;return new E(n-e+g*n,o-e+m*o,e,r-t+g*r,l-t+m*l,t,g,m,1)}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */function v(e,t){let n,r,i,s;let{x:o,y:l}=e.topLeft,{x:w,y:a}=e.topRight,{x:u,y:h}=e.bottomLeft,f=C.size(e)-3.5;return null!=t?(n=t.x,r=t.y,s=i=f-3):(n=w+u-o,r=a+h-l,i=f,s=f),function(e,t,n,r,i,s,o,l,w,a,u,h,f,c,d,g){let m=A(3.5,3.5,n,3.5,i,s,3.5,l).buildAdjoint();return A(w,a,u,h,f,c,d,g).times(m)}(0,0,f,0,i,s,0,f,o,l,w,a,n,r,u,h)}function O(e,t){let[n,,r]=h.rect(e);return t>0?r:t<0?n:e.x}function k(e,t){let[,n,,r]=h.rect(e);return t>0?r:t<0?n:e.y}function M(e,t,n,r){let{x:i,y:s}=t,{x:o,y:w}=e,{x:a,y:u}=n,h=a>i?1:as?1:ui))return!1}return o>=r-14-Math.max(2,(r-17)/4)}function T(e,t,n){let{topLeft:r,topRight:i,bottomLeft:s}=t,[o,l]=n?M(r,s,i,!0):M(r,i,s);return N(e,o,l,C.size(t))}function _(e,t,n,r){let[i,s]=t.mapping(r?6.5:7.5,r?7.5:6.5),[o,w]=t.mapping(r?6.5:n-7.5,r?n-7.5:6.5);return N(e,new l(i,s),new l(o,w),n)}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class R{#G;#h;constructor(e){this.#h=e,this.#G=n(e)}get modules(){return this.#G}get ratios(){return this.#h}}let D=new R([1,1,3,1,1]),P=new R([1,1,1,1,1]),B=new R([1,1,1]);function U(e,t){let{length:n}=e,r=n-1;for(let t=0;t{o+=s,l-=s*h},c=()=>e.get(o,l);for(;o>=0&&l>=0&&l=0&&l>=0&&l=0&&l>=0&&l=0&&l=0&&l=0&&l + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */let L=Math.PI/180,H=40*L,j=140*L;function $(e,t,n,r,i,s){let[o,l]=function(e,t,n,r,i){t|=0,n|=0;let s=i?n:t,o=[0,0,0,0,0],l=i?e.height:e.width,w=()=>i?e.get(t,s):e.get(s,n);for(;s>=0&&w();)s--,o[2]++;for(;s>=0&&!w();)s--,o[1]++;for(;s>=0&&o[0]t&&([e,t]=[t,e]),t-e<=t*n}function G(e,{ratios:t,modules:n}){let{length:r}=e,i=function(e){let t=0;for(let n of e){if(0===n)return NaN;t+=n}return t}(e);if(i>=n){let s=i/n,o=.625*s+.5;for(let n=0;no)return!1}return!0}return!1}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class J{#J;#c;#h;#_=[];constructor(e,t,n){this.#c=e,this.#h=t,this.#J=n}get matrix(){return this.#c}get patterns(){return this.#_}match(e,t,r,i){let s=this.#c,o=this.#h,l=Z(r,e),[w,a]=$(s,l,t,i,o,!0);if(w>=0){let e;if([l,e]=$(s,l,w,i,o),l>=0){let t=F(s,l,w,i),r=F(s,l,w,i,!0);if(this.#J?G(t,o)&&G(r,o):G(t,o)||G(r,o)){let i=function(e,...t){let r=0,i=0,{length:s}=t,o=[];for(let i of t){let[t,s]=/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */function(e,{ratios:t,modules:r}){let i=0,{length:s}=t,o=n(e),l=o/r;for(let n=0;nh.combined(e)>=3&&1.5>=h.noise(e)),{length:n}=t;if(3===n){let e=new C(this.matrix,t),n=C.size(e);n>=21&&n<=177&&(yield e)}else if(n>3){let r=n-2,i=n-1,s=new Map;for(let o=0;o=H&&d<=j){let[o,l]=C.moduleSizes(c);if(o>=1&&l>=1){let{topLeft:a,topRight:u,bottomLeft:d}=c,g=w(a,u),m=w(a,d);if(4>=Math.abs(e(g/o)-e(m/l))){let e=C.size(c);e>=21&&e<=177&&!/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */function(e,t,n){let r=0,{topLeft:i,topRight:s,bottomLeft:o}=e;for(let l of t)if(l!==i&&l!==s&&l!==o){let t;if(n.has(l)&&(t=C.contains(e,l))||1>h.noise(l)&&(null==t?C.contains(e,l):t)&&++r>3)return!0}return!1}(c,t,s)&&(T(f,c)||T(f,c,!0))&&(yield c)&&(s.set(r,!0),s.set(i,!0),s.set(n,!0))}}}}}}}}find(e,t,n,r){let{matrix:i}=this,s=e+n,o=t+r,l=(e,t,n,r,i,s)=>{U(n,r),U(i,s),1===i[0]&&0===i[1]&&1===i[2]&&0===i[3]&&1===i[4]&&G(n,D)&&this.match(e,t,n,n[2])};for(let n=t;n + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class Q extends J{constructor(e,t){super(e,P,t)}filter(e,t){let n=this.patterns.filter(e=>2.5>=h.noise(e)&&q(e.moduleSize,t,.5));n.length>1&&n.sort((n,r)=>{let i=h.noise(n),s=h.noise(r),o=Math.abs(n.moduleSize-t),l=Math.abs(r.moduleSize-t);return(w(n,e)+o)*i-(w(r,e)+l)*s});let r=n.slice(0,2);return r.push(e),r}find(e,t,n,r){let{matrix:i}=this,s=e+n,o=t+r,l=(e,t,n,r,i,s)=>{U(n,r),U(i,s),0===i[0]&&1===i[1]&&0===i[2]&&G(n,B)&&this.match(e,t,n,n[1])};for(let n=t;n=25)for(let s of function(e,t,n){let r=C.size(t),i=/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */function(e){let{x:t,y:n}=e.topLeft,r=1-3/(C.size(e)-7),i=C.bottomRight(e),[s,o]=C.moduleSizes(e);return new h(P,t+(i.x-t)*r,n+(i.y-n)*r,5*s,5*o,0)}(t),s=new Q(e,n),o=C.moduleSize(t),{x:l,y:w}=i,a=Math.ceil(o*Math.min(20,0|r/4)),u=0|Math.max(0,w-a),f=0|Math.max(0,l-a),c=0|Math.min(e.width-1,l+a),d=0|Math.min(e.height-1,w+a);return s.find(f,u,c-f,d-u),s.filter(i,o)}(e,r,t)){let t=v(r,s);if(_(e,t,i)&&_(e,t,i,!0)&&(n=yield new S(e,t,r,s)))break}else{let t=v(r);_(e,t,i)&&_(e,t,i,!0)&&(n=yield new S(e,t,r))}o=s.next(n)}}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class Y{#Q;#V;#Y;#C;#W;#X;constructor(e,t,{mask:n,level:r},i,s){this.#Q=n,this.#V=r,this.#Y=s,this.#C=t,this.#X=e,this.#W=i}get mask(){return this.#Q}get level(){return this.#V.name}get version(){return this.#C.version}get mirror(){return this.#Y}get content(){return this.#X.content}get corrected(){return this.#W}get symbology(){return this.#X.symbology}get fnc1(){return this.#X.fnc1}get codewords(){return this.#X.codewords}get structured(){return this.#X.structured}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class W{#ee;#et;#en;constructor(e){this.#ee=e,this.#et=0,this.#en=0}get bitOffset(){return this.#et}get byteOffset(){return this.#en}read(e){let t=0,n=this.#et,r=this.#en,i=this.#ee;if(n>0){let s=8-n,o=Math.min(e,s),l=s-o;e-=o,n+=o,t=(i[r]&255>>8-o<>l,8===n&&(r++,n=0)}if(e>0){for(;e>=8;)e-=8,t=t<<8|255&i[r++];if(e>0){let s=8-e;n+=e,t=t<>s<>s}}return this.#et=n,this.#en=r,t}available(){return 8*(this.#ee.length-this.#en)-this.#et}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */let X=new Map;class ee{#r;#er;static TERMINATOR=new ee([0,0,0],0);static NUMERIC=new ee([10,12,14],1);static ALPHANUMERIC=new ee([9,11,13],2);static STRUCTURED_APPEND=new ee([0,0,0],3);static BYTE=new ee([8,16,16],4);static ECI=new ee([0,0,0],7);static KANJI=new ee([8,10,12],8);static FNC1_FIRST_POSITION=new ee([0,0,0],5);static FNC1_SECOND_POSITION=new ee([0,0,0],9);static HANZI=new ee([8,10,12],13);constructor(e,t){this.#r=t,this.#er=new Int32Array(e),X.set(t,this)}get bits(){return this.#r}getCharacterCountBits({version:e}){return this.#er[e<=9?0:e<=26?1:2]}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */let et=new Map;class en{#ei;#es;static CP437=new en("cp437",0,2);static ISO_8859_1=new en("iso-8859-1",1,3);static ISO_8859_2=new en("iso-8859-2",4);static ISO_8859_3=new en("iso-8859-3",5);static ISO_8859_4=new en("iso-8859-4",6);static ISO_8859_5=new en("iso-8859-5",7);static ISO_8859_6=new en("iso-8859-6",8);static ISO_8859_7=new en("iso-8859-7",9);static ISO_8859_8=new en("iso-8859-8",10);static ISO_8859_9=new en("iso-8859-9",11);static ISO_8859_10=new en("iso-8859-10",12);static ISO_8859_11=new en("iso-8859-11",13);static ISO_8859_13=new en("iso-8859-13",15);static ISO_8859_14=new en("iso-8859-14",16);static ISO_8859_15=new en("iso-8859-15",17);static ISO_8859_16=new en("iso-8859-16",18);static SJIS=new en("sjis",20);static CP1250=new en("cp1250",21);static CP1251=new en("cp1251",22);static CP1252=new en("cp1252",23);static CP1256=new en("cp1256",24);static UTF_16BE=new en("utf-16be",25);static UTF_8=new en("utf-8",26);static ASCII=new en("ascii",27,170);static BIG5=new en("big5",28);static GB18030=new en("gb18030",29);static EUC_KR=new en("euc-kr",30);constructor(e,...t){for(let n of(this.#ei=e,this.#es=t,t))et.set(n,this)}get label(){return this.#ei}get values(){return this.#es}}function er(e,t){return new TextDecoder(t.label).decode(e)}let ei="0123456789",es=`${ei}ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`;function eo(e){return e.replace(/%+/g,e=>{let t=1&e.length;return e=e.replace(/%%/g,"%"),t?e.replace(/%$/,"\x1d"):e})}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */let el=new Map;class ew{#eo;#r;#V;static L=new ew("L",0,1);static M=new ew("M",1,0);static Q=new ew("Q",2,3);static H=new ew("H",3,2);constructor(e,t,n){this.#r=n,this.#eo=e,this.#V=t,el.set(n,this)}get bits(){return this.#r}get name(){return this.#eo}get level(){return this.#V}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */let ea=[[21522,0],[20773,1],[24188,2],[23371,3],[17913,4],[16590,5],[20375,6],[19104,7],[30660,8],[29427,9],[32170,10],[30877,11],[26159,12],[25368,13],[27713,14],[26998,15],[5769,16],[5054,17],[7399,18],[6608,19],[1890,20],[597,21],[3340,22],[2107,23],[13663,24],[12392,25],[16177,26],[14854,27],[9396,28],[8579,29],[11994,30],[11245,31]];class eu{#Q;#V;constructor(e){this.#Q=7&e,this.#V=function(e){let t=el.get(e);if(null!=t)return t;throw Error("illegal error correction bits")}(e>>3&3)}get mask(){return this.#Q}get level(){return this.#V}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */function eh(e,t,n,r){return e.get(t,n)?r<<1|1:r<<1}class ef{#I;#c;constructor(e){let{width:t,height:n}=e;this.#c=e.clone(),this.#I=Math.min(t,n)}readVersion(){let e=this.#I,n=0|(e-17)/4;if(n<1)throw Error("illegal version");if(n<=6)return b[n-1];let r=0,i=0,s=e-11,o=this.#c;for(let t=5;t>=0;t--)for(let n=e-9;n>=s;n--)r=eh(o,n,t,r);for(let t=5;t>=0;t--)for(let n=e-9;n>=s;n--)i=eh(o,t,n,i);let l=function(e,n){let r=32,i=0,{length:s}=g;for(let o=0;o=7)return b[i-1];throw Error("unable to decode version")}(r,i);if(l.size>e)throw Error("matrix size too small for version");return l}readFormatInfo(){let e=0,n=0,r=this.#c,i=this.#I,s=i-7;for(let t=0;t<=8;t++)6!==t&&(e=eh(r,t,8,e));for(let t=7;t>=0;t--)6!==t&&(e=eh(r,8,t,e));for(let e=i-1;e>=s;e--)n=eh(r,8,e,n);for(let e=i-8;e6&&(s.setRegion(e-11,0,3,6),s.setRegion(0,e-11,6,3)),s}(e),h=new Uint8Array(a.numTotalCodewords);for(let e=l-1;e>0;e-=2){6===e&&e--;for(let t=0;t + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class ec{#el;#m;constructor(e,t){this.#el=e,this.#m=t}get codewords(){return this.#el}get numDataCodewords(){return this.#m}}/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class ed{#ew;#ea;constructor(e,t){let{length:n}=t;if(n<=0)throw Error("polynomial coefficients cannot empty");if(this.#ew=e,n>1&&0===t[0]){let e=1;for(;e=e.getDegree()&&!r.isZero();){let i=r.getDegree(),o=i-e.getDegree(),l=t.multiply(r.getCoefficient(i),s),w=e.multiplyByMonomial(o,l),a=t.buildPolynomial(o,l);n=n.addOrSubtract(a),r=r.addOrSubtract(w)}return[n,r]}}let eg=new /** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */class{#I;#eu;#eh;#ef;#ec;#ed;constructor(e,t,n){let r=1,i=new Int32Array(t);for(let n=0;n=t&&(r^=e,r&=t-1);let s=new Int32Array(t);for(let e=0,n=t-1;e + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */function(e,t,n,r){t.getDegree()=r;){let t=l,n=o;if(l=s,(o=i).isZero())throw Error("remainder last was zero");i=n;let r=e.zero,w=i.getDegree(),a=o.getDegree(),u=o.getCoefficient(a),h=e.invert(u);for(;w>=a&&!i.isZero();){let t=i.getDegree()-a,n=e.multiply(i.getCoefficient(w),h);r=r.addOrSubtract(e.buildPolynomial(t,n)),w=(i=i.addOrSubtract(o.multiplyByMonomial(t,n))).getDegree()}if(s=r.multiply(l).addOrSubtract(t),w>=a)throw Error("division algorithm failed to reduce polynomial")}let w=s.getCoefficient(0);if(0===w)throw Error("sigma tilde(0) was zero");let a=e.invert(w);return[s.multiply(a),i.multiply(a)]}(r,r.buildPolynomial(t,1),n,t),l=function(e,t){let n=t.getDegree();if(1===n)return new Int32Array([t.getCoefficient(1)]);let r=0,{size:i}=e,s=new Int32Array(n);for(let o=1;o + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */function eb(e,t,{mask:n,level:r}){let i=0,s=0;e.unmask(n);let o=t.getECBlocks(r),l=function(e,t,n){let{ecBlocks:r,numTotalCodewords:i,numECCodewordsPerBlock:s}=t.getECBlocks(n);if(e.length!==i)throw Error("failed to get data blocks");let o=[];for(let{count:e,numDataCodewords:t}of r)for(let n=0;n=0&&o[w].codewords.length!==a;)w--;w++;let u=0,h=a-s;for(let t=0;t + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */function(e,t){let n=new Int32Array(e),r=e.length-t,i=new em().decode(n,r);return[n,i]}(e,t);w.set(n.subarray(0,t),i),s+=r,i+=t}return[w,s]}class ey{#eg;constructor({decode:e=er}={}){this.#eg=e}decode(e){let t,n,r,i=0,s=!1,o=new ef(e);try{t=o.readVersion(),r=o.readFormatInfo(),[n,i]=eb(o,t,r)}catch{null!=r&&o.remask(r.mask),o.mirror(),s=!0,t=o.readVersion(),r=o.readFormatInfo(),[n,i]=eb(o,t,r)}return new Y(function(e,t,{},n){let r,i,s,o="",l=-1,w=!1,a=!1,u=!1,h=!1,f=new W(e);do switch(i=4>f.available()?ee.TERMINATOR:function(e){let t=X.get(e);if(null!=t)return t;throw Error("illegal mode bits")}(f.read(4))){case ee.TERMINATOR:break;case ee.FNC1_FIRST_POSITION:w=!0;break;case ee.FNC1_SECOND_POSITION:a=!0,l=f.read(8);break;case ee.STRUCTURED_APPEND:if(16>f.available())throw Error("illegal structured append");h=Object.freeze({index:f.read(4),parity:f.read(8),count:f.read(4)+1});break;case ee.ECI:s=/** + * @module QRCode + * @package @nuintun/qrcode + * @license MIT + * @version 4.0.0 + * @author nuintun + * @description A pure JavaScript QRCode encode and decode library. + * @see https://github.com/nuintun/qrcode#readme + */function(e){let t=e.read(8);if((128&t)==0)return 127&t;if((192&t)==128)return(63&t)<<8|e.read(8);if((224&t)==192)return(31&t)<<16|e.read(16);throw Error("illegal eci value")}(f);break;default:if(i===ee.HANZI&&1!==f.read(4))throw Error("illegal hanzi subset");let c=f.read(i.getCharacterCountBits(t));switch(i){case ee.ALPHANUMERIC:o+=function(e,t,n){let r="";for(;t>1;){if(11>e.available())throw Error("illegal bits length");let n=e.read(11);r+=es.charAt(n/45)+es.charAt(n%45),t-=2}if(1===t){if(6>e.available())throw Error("illegal bits length");r+=es.charAt(e.read(6))}return n?eo(r):r}(f,c,w||a);break;case ee.BYTE:o+=function(e,t,n,r,i){if(e.available()<8*t)throw Error("illegal bits length");let s=new Uint8Array(t),o=null!=i?function(e){let t=et.get(e);if(t)return t;throw Error("illegal charset value")}(i):en.ISO_8859_1;for(let n=0;n0;){let i=e.read(13),s=i/96<<8|i%96;s<2560?s+=41377:s+=42657,r[n]=s>>8&255,r[n+1]=255&s,t--,n+=2}return new TextDecoder("gb2312").decode(r)}(f,c);break;case ee.KANJI:o+=function(e,t){if(e.available()<13*t)throw Error("illegal bits length");let n=0,r=new Uint8Array(2*t);for(;t>0;){let i=e.read(13),s=i/192<<8|i%192;s<7936?s+=33088:s+=49472,r[n]=s>>8&255,r[n+1]=255&s,t--,n+=2}return new TextDecoder("shift-jis").decode(r)}(f,c);break;case ee.NUMERIC:o+=function(e,t){let n="";for(;t>=3;){if(10>e.available())throw Error("illegal bits length");let r=e.read(10);if(r>=1e3)throw Error("illegal numeric codeword");n+=ei.charAt(r/100)+ei.charAt(r/10%10)+ei.charAt(r%10),t-=3}if(2===t){if(7>e.available())throw Error("illegal bits length");let t=e.read(7);if(t>=100)throw Error("illegal numeric codeword");n+=ei.charAt(t/10)+ei.charAt(t%10)}else if(1===t){if(4>e.available())throw Error("illegal bits length");let t=e.read(4);if(t>=10)throw Error("illegal numeric codeword");n+=ei.charAt(t)}return n}(f,c);break;default:throw Error("")}}while(i!==ee.TERMINATOR);return w?u=Object.freeze(["GS1"]):a&&(u=Object.freeze(["AIM",l])),r=null!=s?w?4:a?6:2:w?3:a?5:1,{content:o,codewords:e,structured:h,symbology:`]Q${r}`,fnc1:u}}(n,t,r,this.#eg),t,r,i,s)}}function ep(e){return{x:e.x,y:e.y}}function ex(e){return{x:e.x,y:e.y,moduleSize:e.moduleSize}}self.addEventListener("message",async({data:e})=>{let{uid:t,image:n}=e,{width:l,height:w}=n,a=new OffscreenCanvas(l,w).getContext("2d");a.drawImage(n,0,0);let u=function(e,t,n){if(e.length!==t*n)throw Error("luminances length must be equals to width * height");return t<40||n<40?function(e,t,n){let i=new r(t,n),s=new Int32Array(32);for(let r=1;r<5;r++){let i=0|4*t/5,o=(0|n*r/5)*t;for(let n=0|t/5;n>3]++}}let o=function(e){let t=0,n=0,r=0,{length:i}=e;for(let s=0;sn&&(t=s,n=e[s]),e[s]>r&&(r=e[s]);let s=0,o=0;for(let n=0;no&&(s=n,o=i)}if(t>s&&([t,s]=[s,t]),s-t<=2)return -1;let l=-1,w=s-1;for(let n=s-1;n>t;n--){let i=n-t,o=i*i*(s-n)*(r-e[n]);o>l&&(w=n,l=o)}return w<<3}(s);if(o>0)for(let r=0;ra&&(a=n)}if(a-u>24)for(n++,r+=t;n<8;n++,r+=t)for(let t=0;t<8;t++)w+=e[r+t]}let f=w>>6;if(a-u<=24&&(f=u/2,n>0&&l>0)){let e=(r[n-1][l]+2*r[n][l-1]+r[n-1][l-1])/4;u>10}}return r}(a.getImageData(0,0,l,w)),l,w);e.invert&&u.flip();let h=new V({strict:e.strict}).detect(u),f=[],c=new ey,d=h.next();for(;!d.done;){let e=!1,t=d.value;try{let{size:n,finder:r,alignment:i}=t,s=c.decode(t.matrix),{topLeft:o,topRight:l,bottomLeft:w}=r,a=t.mapping(0,0),u=t.mapping(n,0),h=t.mapping(n,n),d=t.mapping(0,n),g=t.mapping(6.5,6.5),m=t.mapping(n-6.5,6.5),b=t.mapping(6.5,n-6.5);f.push({content:s.content,alignment:i?ex(i):null,finder:[ex(o),ex(l),ex(w)],timing:[ep(g),ep(m),ep(b)],corners:[ep(a),ep(u),ep(h),ep(d)]}),e=!0}catch{}d=h.next(e)}f.length>0?self.postMessage({type:"ok",payload:{uid:t,image:n,items:f}},[n]):self.postMessage({type:"error",message:"未发现二维码"})})}(); \ No newline at end of file diff --git a/packages/examples/static/public/js/21aa02a93f866028.js b/packages/examples/static/public/js/21aa02a93f866028.js deleted file mode 100644 index cc3876eb..00000000 --- a/packages/examples/static/public/js/21aa02a93f866028.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 21aa02a93f866028.js.LICENSE.txt */ -!function(){"use strict";function e(e){return 0|e}function t(t){return e(t+(t<0?-.5:.5))}function n(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>24}function r(e,t=0,n=e.length){let r=0;for(let s=t;s>>(31&e)&1}flip(e,t){if(null!=e&&null!=t){const n=this.#s(e,t);this.#r[n]^=1<<(31&e)}else{const e=this.#r,{length:t}=e;for(let n=0;n>o]++}}const c=function(e){let t=0,n=0,r=0;const{length:s}=e;for(let o=0;on&&(t=o,n=e[o]),e[o]>r&&(r=e[o]);let w=0,a=0;for(let n=0;na&&(w=n,a=s)}if(t>w&&([t,w]=[w,t]),w-t<=i/16)return-1;let c=-1,l=w-1;for(let n=w-1;n>t;n--){const s=n-t,o=s*s*(w-n)*(r-e[n]);o>c&&(l=n,c=o)}return l<0)for(let e=0;e>a;return e&u&&t++,t}function d(e,t){return e<2?2:Math.min(e,t)}function g(e,t){return(e<<=a)>t?t:e}function m(e,t,n){const r=t-l,o=n-l,i=f(t),w=f(n),u=new s(t,n),h=function(e,t,n){const r=[],s=t-l,o=n-l,i=f(t),w=f(n);for(let n=0;nu&&(u=n)}if(u-h>c)for(n++,r+=t;n>2*a;if(u-h<=c&&(f=h/2,n>0&&o>0)){const e=(r[n-1][o]+2*r[n][o-1]+r[n-1][o-1])/4;h=0&&u>=0&&lMath.abs(r-o);w&&([o,i,r,s]=[i,o,s,r]);const a=o0){if(u===r)break;u+=o,l-=i}}}function O(e,t,n){let r=0;const{width:s,height:o}=e,i=(t.x+n.x)/2,w=(t.y+n.y)/2,a=new b(i,w),c=new A(t,a).points();for(const[n,i]of c){if(n<0||i<0||n>=s||i>=o)return 2===r?p(t,new b(n,i)):NaN;if(1===r==(1===e.get(n,i))){if(2===r)return p(t,new b(n,i));r++}}return NaN}function M(e,t,n){const r=O(e,t,n);if(Number.isNaN(r))return NaN;const{x:s,y:o}=n,{x:i,y:w}=t,a=O(e,t,new b(i-(s-i),w-(o-w)));return Number.isNaN(a)?NaN:r+a-1}function T(t,n,r){const s=new b(e(n.x),e(n.y)),o=new b(e(r.x),e(r.y)),i=M(t,s,o),w=M(t,o,s);return Number.isNaN(i)?w/7:Number.isNaN(w)?i/7:(i+w)/14}function N(e,t){return e>t?e/t:t/e}function R(e,t){const n=Math.max(N(z.width(e),z.width(t)),N(z.height(e),z.height(t)));return n*n}class _{#T;#C;#f;#N;#c;#R;#_;static area(e){const[t,n,r]=e.#R,s=_.bottomRight(e);if(null==e.#T){const o=x(t,n,s),i=x(s,r,t);e.#T=o+i}return e.#T}static moduleSizes(e){if(null==e.#_){const t=e.#f,[n,r,s]=e.#R;e.#_=[T(t,n,r),T(t,n,s)]}return e.#_}static size(e){if(null==e.#C){const n=_.moduleSize(e);e.#C=function([e,n,r],s){const o=t((p(e,n)+p(e,r))/s/2)+7;switch(3&o){case 0:return o+1;case 2:return o-1;case 3:return Math.min(o+2,177)}return o}(e.#R,n)}return e.#C}static moduleSize(e){return null==e.#c&&(e.#c=r(_.moduleSizes(e))/2),e.#c}static contains(e,t){const n=_.area(e),[r,s,o]=e.#R,i=_.bottomRight(e);return x(r,s,t)+x(s,i,t)+x(i,o,t)+x(o,r,t)-n<1}static bottomRight(e){return null==e.#N&&(e.#N=function([e,t,n]){const{x:r,y:s}=e,o=t.x+n.x-r,i=t.y+n.y-s;return new b(o,i)}(e.#R)),e.#N}constructor(e,t){this.#f=e,this.#R=function(e){let t,n,r;const[s,o,i]=e,w=y(s,o)*R(s,o),a=y(s,i)*R(s,i),c=y(o,i)*R(o,i);return c>=w&&c>=a?[t,r,n]=e:a>=c&&a>=w?[r,t,n]=e:[r,n,t]=e,function(e,t,n){const{x:r,y:s}=t;return(n.x-r)*(e.y-s)-(n.y-s)*(e.x-r)}(r,t,n)<0&&([r,n]=[n,r]),[t,n,r]}(t)}get topLeft(){return this.#R[0]}get topRight(){return this.#R[1]}get bottomLeft(){return this.#R[2]}}function D({topLeft:e,topRight:t,bottomLeft:n}){const{x:r,y:s}=e,o=t.x-r,i=t.y-s,w=n.x-r,a=n.y-s,c=o*w+i*a,l=(o*o+i*i)*(w*w+a*a);return Math.acos(c/Math.sqrt(l))}class B{#f;#D;#B;#d;constructor(e,t,n,r){const s=new C(e,t),o=_.size(n);this.#f=e,this.#d=t,this.#B=n,this.#D=r,this.#f=s.sample(o,o)}get matrix(){return this.#f}get finder(){return this.#B}get alignment(){return this.#D}get size(){return _.size(this.#B)}get moduleSize(){return _.moduleSize(this.#B)}mapping(e,t){return[e,t]=this.#d.mapping(e,t),new b(e,t)}}class P{#P;#L;#U;#F;#Z;#H;#j;#$;#q;constructor(e,t,n,r,s,o,i,w,a){this.#P=e,this.#L=r,this.#U=i,this.#F=t,this.#Z=s,this.#H=w,this.#j=n,this.#$=o,this.#q=a}buildAdjoint(){const e=this.#P,t=this.#L,n=this.#U,r=this.#F,s=this.#Z,o=this.#H,i=this.#j,w=this.#$,a=this.#q;return new P(s*a-o*w,o*i-r*a,r*w-s*i,n*w-t*a,e*a-n*i,t*i-e*w,t*o-n*s,n*r-e*o,e*s-t*r)}times(e){const t=this.#P,n=this.#L,r=this.#U,s=this.#F,o=this.#Z,i=this.#H,w=this.#j,a=this.#$,c=this.#q,l=e.#P,u=e.#L,h=e.#U,f=e.#F,d=e.#Z,g=e.#H,m=e.#j,b=e.#$,p=e.#q;return new P(t*l+s*u+w*h,t*f+s*d+w*g,t*m+s*b+w*p,n*l+o*u+a*h,n*f+o*d+a*g,n*m+o*b+a*p,r*l+i*u+c*h,r*f+i*d+c*g,r*m+i*b+c*p)}mapping(e,t){const n=this.#P,r=this.#L,s=this.#U,o=this.#F,i=this.#Z,w=this.#H,a=this.#j,c=this.#$,l=s*e+w*t+this.#q;return[(n*e+o*t+a)/l,(r*e+i*t+c)/l]}}function L(e,t,n,r,s,o,i,w){const a=e-n+s-i,c=t-r+o-w;if(0===a&&0===c)return new P(n-e,s-n,e,r-t,o-r,t,0,0,1);{const l=n-s,u=i-s,h=r-o,f=w-o,d=l*f-u*h,g=(a*f-u*c)/d,m=(l*c-a*h)/d;return new P(n-e+g*n,i-e+m*i,e,r-t+g*r,w-t+m*w,t,g,m,1)}}function U(e,t,n,r,s,o,i,w,a,c,l,u,h,f,d,g){const m=function(e,t,n,r,s,o,i,w){return L(e,t,n,r,s,o,i,w).buildAdjoint()}(e,t,n,r,s,o,i,w);return L(a,c,l,u,h,f,d,g).times(m)}function F(e,t){let n,r,s,o;const{x:i,y:w}=e.topLeft,{x:a,y:c}=e.topRight,{x:l,y:u}=e.bottomLeft,h=_.size(e)-3.5;return null!=t?(n=t.x,r=t.y,s=h-3,o=s):(n=a+l-i,r=c+u-w,s=h,o=h),U(3.5,3.5,h,3.5,s,o,3.5,h,i,w,a,c,n,r,l,u)}function Z(e,t){return t>e?1:t0?r:t<0?n:e.x}function j(e,t){const[,n,,r]=z.rect(e);return t>0?r:t<0?n:e.y}function $(e,t,n,r){const{x:s,y:o}=t,{x:i,y:w}=e,{x:a,y:c}=n,l=Z(s,a),u=Z(o,c),h=H(t,l),f=j(t,u),d=H(e,l),g=j(e,u);return 0===l||0===u?[new b(d,g),new b(h,f)]:(r?l===u:l!==u)?[new b(i,g),new b(s,f)]:[new b(d,w),new b(h,o)]}function q(t,n,r,s){const o=s+8,i=new A(n,r).points();let w=1,a=t.get(e(n.x),e(n.y));for(const[e,n]of i){const r=t.get(e,n);if(r!==a&&(w++,a=r,w>o))return!1}return w>=s-14-Math.max(2,(s-17)/4)}function G(e,t,n){const{topLeft:r,topRight:s,bottomLeft:o}=t,[i,w]=n?$(r,o,s,!0):$(r,s,o);return q(e,i,w,_.size(t))}function J(e,t,n,r){const[s,o]=t.mapping(r?6.5:7.5,r?7.5:6.5),[i,w]=t.mapping(r?6.5:n-7.5,r?n-7.5:6.5);return q(e,new b(s,o),new b(i,w),n)}class K{#G;#u;constructor(e){this.#u=e,this.#G=r(e)}get modules(){return this.#G}get ratios(){return this.#u}}const Q=new K([1,1,3,1,1]),V=new K([1,1,1,1,1]),Y=new K([1,1,1]);function W(e,{ratios:t,modules:n}){let s=0;const{length:o}=t,i=r(e),w=i/n;for(let n=0;n{w+=i,a-=i*h},d=()=>t.get(w,a);for(;w>=0&&a>=0&&a=0&&a>=0&&a=0&&a>=0&&a=0&&a=0&&a=0&&ao?t.get(n,i):t.get(i,r);for(;i>=0&&c();)i--,w[2]++;for(;i>=0&&!c();)i--,w[1]++;for(;i>=0&&w[0]t&&([e,t]=[t,e]),t-e<=t*n}function le(e,{ratios:t,modules:n}){const{length:r}=e,s=function(e){let t=0;for(const n of e){if(0===n)return NaN;t+=n}return t}(e);if(s>=n){const o=s/n,i=o*re+se;for(let n=0;ni)return!1}return!0}return!1}class ue{#J;#f;#u;#R=[];constructor(e,t,n){this.#f=e,this.#u=t,this.#J=n}get matrix(){return this.#f}get patterns(){return this.#R}match(e,t,n,s){const o=this.#f,i=this.#u;let w=te(n,e);const[a,c]=ae(o,w,t,s,i,!0);if(a>=0){let e;if([w,e]=ae(o,w,a,s,i),w>=0){const t=ee(o,w,a,s),n=ee(o,w,a,s,!0);if(function(e,t,n,r){return r?le(e,n)&&le(t,n):le(e,n)||le(t,n)}(t,n,i,this.#J)){const s=function(e,...t){let n=0,s=0;const{length:o}=t,i=[];for(const r of t){const[t,s]=W(r,e);n+=t,i.push(s)}const w=r(i),a=w/o;for(const e of i)s+=Math.abs(e-a);return n+s/w}(i,e,c,t,n),o=r(e),l=r(c),u=this.#R,{length:h}=u;let f=!1;for(let e=0;e3)return!0}return!1}class fe extends ue{constructor(e,t){super(e,Q,t)}*groups(){const e=this.patterns.filter((e=>z.combined(e)>=3&&z.noise(e)<=1.5)),{length:n}=e;if(3===n){const t=new _(this.matrix,e),n=_.size(t);n>=21&&n<=177&&(yield t)}else if(n>3){const r=n-2,s=n-1,o=new Map;for(let i=0;i=ie&&h<=we){const[i,w]=_.moduleSizes(u);if(i>=1&&w>=1){const{topLeft:a,topRight:c,bottomLeft:h}=u,f=p(a,c),d=p(a,h),g=t(f/i),m=t(d/w);if(Math.abs(g-m)<=4){const t=_.size(u);t>=21&&t<=177&&!he(u,e,o)&&(G(l,u)||G(l,u,!0))&&(yield u)&&(o.set(r,!0),o.set(s,!0),o.set(n,!0))}}}}}}}}find(e,t,n,r){const{matrix:s}=this,o=e+n,i=t+r,w=(e,t,n,r,s,o)=>{X(n,r),X(s,o),1===s[0]&&0===s[1]&&1===s[2]&&0===s[3]&&1===s[4]&&le(n,Q)&&this.match(e,t,n,n[2])};for(let n=t;nz.noise(e)<=2.5&&ce(e.moduleSize,t,oe)));n.length>1&&n.sort(((n,r)=>{const s=z.noise(n),o=z.noise(r),i=Math.abs(n.moduleSize-t),w=Math.abs(r.moduleSize-t);return(p(n,e)+i)*s-(p(r,e)+w)*o}));const r=n.slice(0,2);return r.push(e),r}find(e,t,n,r){const{matrix:s}=this,o=e+n,i=t+r,w=(e,t,n,r,s,o)=>{X(n,r),X(s,o),0===s[0]&&1===s[1]&&0===s[2]&&le(n,Y)&&this.match(e,t,n,n[1])};for(let n=t;n=25){const o=ge(e,r,t);for(const t of o){const o=F(r,t);if(J(e,o,s)&&J(e,o,s,!0)&&(n=yield new B(e,o,r,t),n))break}}else{const t=F(r);J(e,t,s)&&J(e,t,s,!0)&&(n=yield new B(e,t,r))}i=o.next(n)}}}class be{#Q;#V;#Y;#I;#W;#X;constructor(e,t,{mask:n,level:r},s,o){this.#Q=n,this.#V=r,this.#Y=o,this.#I=t,this.#X=e,this.#W=s}get mask(){return this.#Q}get level(){return this.#V.name}get version(){return this.#I.version}get mirror(){return this.#Y}get content(){return this.#X.content}get corrected(){return this.#W}get symbology(){return this.#X.symbology}get fnc1(){return this.#X.fnc1}get codewords(){return this.#X.codewords}get structured(){return this.#X.structured}}class pe{#ee;#te;#ne;constructor(e){this.#ee=e,this.#te=0,this.#ne=0}get bitOffset(){return this.#te}get byteOffset(){return this.#ne}read(e){let t=0,n=this.#te,r=this.#ne;const s=this.#ee;if(n>0){const o=8-n,i=Math.min(e,o),w=o-i,a=255>>8-i<>w,8===n&&(r++,n=0)}if(e>0){for(;e>=8;)e-=8,t=t<<8|255&s[r++];if(e>0){const o=8-e,i=255>>o<>o}}return this.#te=n,this.#ne=r,t}available(){return 8*(this.#ee.length-this.#ne)-this.#te}}const ye=new Map;function xe(e){const t=ye.get(e);if(null!=t)return t;throw new Error("illegal mode bits")}class ze{#r;#re;static TERMINATOR=new ze([0,0,0],0);static NUMERIC=new ze([10,12,14],1);static ALPHANUMERIC=new ze([9,11,13],2);static STRUCTURED_APPEND=new ze([0,0,0],3);static BYTE=new ze([8,16,16],4);static ECI=new ze([0,0,0],7);static KANJI=new ze([8,10,12],8);static FNC1_FIRST_POSITION=new ze([0,0,0],5);static FNC1_SECOND_POSITION=new ze([0,0,0],9);static HANZI=new ze([8,10,12],13);constructor(e,t){this.#r=t,this.#re=new Int32Array(e),ye.set(t,this)}get bits(){return this.#r}getCharacterCountBits({version:e}){let t;return t=e<=9?0:e<=26?1:2,this.#re[t]}}const Ce=new Map;class Ie{#se;#oe;static CP437=new Ie("cp437",0,2);static ISO_8859_1=new Ie("iso-8859-1",1,3);static ISO_8859_2=new Ie("iso-8859-2",4);static ISO_8859_3=new Ie("iso-8859-3",5);static ISO_8859_4=new Ie("iso-8859-4",6);static ISO_8859_5=new Ie("iso-8859-5",7);static ISO_8859_6=new Ie("iso-8859-6",8);static ISO_8859_7=new Ie("iso-8859-7",9);static ISO_8859_8=new Ie("iso-8859-8",10);static ISO_8859_9=new Ie("iso-8859-9",11);static ISO_8859_10=new Ie("iso-8859-10",12);static ISO_8859_11=new Ie("iso-8859-11",13);static ISO_8859_13=new Ie("iso-8859-13",15);static ISO_8859_14=new Ie("iso-8859-14",16);static ISO_8859_15=new Ie("iso-8859-15",17);static ISO_8859_16=new Ie("iso-8859-16",18);static SJIS=new Ie("sjis",20);static CP1250=new Ie("cp1250",21);static CP1251=new Ie("cp1251",22);static CP1252=new Ie("cp1252",23);static CP1256=new Ie("cp1256",24);static UTF_16BE=new Ie("utf-16be",25);static UTF_8=new Ie("utf-8",26);static ASCII=new Ie("ascii",27,170);static BIG5=new Ie("big5",28);static GB18030=new Ie("gb18030",29);static EUC_KR=new Ie("euc-kr",30);constructor(e,...t){this.#se=e,this.#oe=t;for(const e of t)Ce.set(e,this)}get label(){return this.#se}get values(){return this.#oe}}function Se(e,t){return new TextDecoder(t.label).decode(e)}const Ee="0123456789",ve=`${Ee}ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`;function ke(e){const t=e.read(8);if(0==(128&t))return 127&t;if(128==(192&t)){return(63&t)<<8|e.read(8)}if(192==(224&t)){return(31&t)<<16|e.read(16)}throw new Error("illegal eci value")}const Ae=String.fromCharCode(29);function Oe(e){return e.replace(/%+/g,(e=>{const t=1&e.length;return e=e.replace(/%%/g,"%"),t?e.replace(/%$/,Ae):e}))}function Me(e,t,n){let r="";for(;t>1;){if(e.available()<11)throw new Error("illegal bits length");const n=e.read(11);r+=ve.charAt(n/45),r+=ve.charAt(n%45),t-=2}if(1===t){if(e.available()<6)throw new Error("illegal bits length");r+=ve.charAt(e.read(6))}return n?Oe(r):r}function Te(e,t,n,r,s){if(e.available()<8*t)throw new Error("illegal bits length");const o=new Uint8Array(t),i=null!=s?function(e){const t=Ce.get(e);if(t)return t;throw Error("illegal charset value")}(s):Ie.ISO_8859_1;for(let n=0;n0;){const s=e.read(13);let o=s/96<<8|s%96;o+=o<2560?41377:42657,r[n]=o>>8&255,r[n+1]=255&o,t--,n+=2}return new TextDecoder("gb2312").decode(r)}function Re(e,t){if(e.available()<13*t)throw new Error("illegal bits length");let n=0;const r=new Uint8Array(2*t);for(;t>0;){const s=e.read(13);let o=s/192<<8|s%192;o+=o<7936?33088:49472,r[n]=o>>8&255,r[n+1]=255&o,t--,n+=2}return new TextDecoder("shift-jis").decode(r)}function _e(e,t){let n="";for(;t>=3;){if(e.available()<10)throw new Error("illegal bits length");const r=e.read(10);if(r>=1e3)throw new Error("illegal numeric codeword");n+=Ee.charAt(r/100),n+=Ee.charAt(r/10%10),n+=Ee.charAt(r%10),t-=3}if(2===t){if(e.available()<7)throw new Error("illegal bits length");const t=e.read(7);if(t>=100)throw new Error("illegal numeric codeword");n+=Ee.charAt(t/10),n+=Ee.charAt(t%10)}else if(1===t){if(e.available()<4)throw new Error("illegal bits length");const t=e.read(4);if(t>=10)throw new Error("illegal numeric codeword");n+=Ee.charAt(t)}return n}function De(t,n,r){let s,o;switch(t){case 0:o=r+n&1;break;case 1:o=1&r;break;case 2:o=n%3;break;case 3:o=(r+n)%3;break;case 4:o=e(r/2)+e(n/3)&1;break;case 5:s=r*n,o=(1&s)+s%3;break;case 6:s=r*n,o=(1&s)+s%3&1;break;case 7:o=r*n%3+(r+n&1)&1;break;default:throw new Error(`illegal mask: ${t}`)}return 0===o}const Be=new Map;class Pe{#ie;#r;#V;static L=new Pe("L",0,1);static M=new Pe("M",1,0);static Q=new Pe("Q",2,3);static H=new Pe("H",3,2);constructor(e,t,n){this.#r=n,this.#ie=e,this.#V=t,Be.set(n,this)}get bits(){return this.#r}get name(){return this.#ie}get level(){return this.#V}}const Le=[[21522,0],[20773,1],[24188,2],[23371,3],[17913,4],[16590,5],[20375,6],[19104,7],[30660,8],[29427,9],[32170,10],[30877,11],[26159,12],[25368,13],[27713,14],[26998,15],[5769,16],[5054,17],[7399,18],[6608,19],[1890,20],[597,21],[3340,22],[2107,23],[13663,24],[12392,25],[16177,26],[14854,27],[9396,28],[8579,29],[11994,30],[11245,31]];class Ue{#Q;#V;constructor(e){this.#Q=7&e,this.#V=function(e){const t=Be.get(e);if(null!=t)return t;throw new Error("illegal error correction bits")}(e>>3&3)}get mask(){return this.#Q}get level(){return this.#V}}function Fe(e,t,n,r){return e.get(t,n)?r<<1|1:r<<1}class Ze{#C;#f;constructor(e){const{width:t,height:n}=e;this.#f=e.clone(),this.#C=Math.min(t,n)}readVersion(){const t=this.#C,r=e((t-17)/4);if(r<1)throw new Error("illegal version");if(r<=6)return k[r-1];let s=0,o=0;const i=t-11,w=this.#f;for(let e=5;e>=0;e--)for(let n=t-9;n>=i;n--)s=Fe(w,n,e,s);for(let e=5;e>=0;e--)for(let n=t-9;n>=i;n--)o=Fe(w,e,n,o);const a=function(e,t){let r=32,s=0;const{length:o}=E;for(let i=0;i=7)return k[s-1];throw new Error("unable to decode version")}(s,o);if(a.size>t)throw new Error("matrix size too small for version");return a}readFormatInfo(){let e=0,t=0;const r=this.#f,s=this.#C,o=s-7;for(let t=0;t<=8;t++)6!==t&&(e=Fe(r,t,8,e));for(let t=7;t>=0;t--)6!==t&&(e=Fe(r,8,t,e));for(let e=s-1;e>=o;e--)t=Fe(r,8,e,t);for(let e=s-8;e6&&(o.setRegion(e-11,0,3,6),o.setRegion(0,e-11,6,3)),o}(e),u=new Uint8Array(c.numTotalCodewords);for(let e=w-1;e>0;e-=2){6===e&&e--;for(let t=0;t1&&0===t[0]){let e=1;for(;e=e.getDegree()&&!r.isZero();){const s=r.getDegree(),i=s-e.getDegree(),w=t.multiply(r.getCoefficient(s),o),a=e.multiplyByMonomial(i,w),c=t.buildPolynomial(i,w);n=n.addOrSubtract(c),r=r.addOrSubtract(a)}return[n,r]}}const $e=new class{#C;#le;#ue;#he;#fe;#de;constructor(e,t,n){let r=1;const s=new Int32Array(t);for(let n=0;n=t&&(r^=e,r&=t-1);const o=new Int32Array(t);for(let e=0,n=t-1;e=r;){let t=w,n=i;if(w=o,i=s,i.isZero())throw new Error("remainder last was zero");s=n;let r=e.zero,a=s.getDegree();const c=i.getDegree(),l=i.getCoefficient(c),u=e.invert(l);for(;a>=c&&!s.isZero();){const t=s.getDegree()-c,n=e.multiply(s.getCoefficient(a),u);r=r.addOrSubtract(e.buildPolynomial(t,n)),s=s.addOrSubtract(i.multiplyByMonomial(t,n)),a=s.getDegree()}if(o=r.multiply(w).addOrSubtract(t),a>=c)throw new Error("division algorithm failed to reduce polynomial")}const a=o.getCoefficient(0);if(0===a)throw new Error("sigma tilde(0) was zero");const c=e.invert(a);return[o.multiply(c),s.multiply(c)]}(r,r.buildPolynomial(t,1),n,t),w=function(e,t){const n=t.getDegree();if(1===n)return new Int32Array([t.getCoefficient(1)]);let r=0;const{size:s}=e,o=new Int32Array(n);for(let i=1;i=0&&i[a].codewords.length!==c;)a--;a++;let l=0;const u=c-o;for(let t=0;t{const{uid:t,image:n}=e,{width:r,height:s}=n,o=new OffscreenCanvas(r,s).getContext("2d");o.drawImage(n,0,0);const i=function({data:e,width:t,height:n}){const r=new Uint8Array(t*n);for(let s=0;s>10}}return r}(o.getImageData(0,0,r,s)),a=function(e,t,n){if(e.length!==t*n)throw new Error("luminances length must be equals to width * height");return t0){const e={type:"ok",payload:{uid:t,image:n,items:l}};self.postMessage(e,[n])}else{const e={type:"error",message:"未发现二维码"};self.postMessage(e)}}))}(); \ No newline at end of file diff --git a/packages/examples/static/public/js/21aa02a93f866028.js.LICENSE.txt b/packages/examples/static/public/js/21aa02a93f866028.js.LICENSE.txt deleted file mode 100644 index 8e78cdab..00000000 --- a/packages/examples/static/public/js/21aa02a93f866028.js.LICENSE.txt +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @module QRCode - * @package @nuintun/qrcode - * @license MIT - * @version 4.0.0 - * @author nuintun - * @description A pure JavaScript QRCode encode and decode library. - * @see https://github.com/nuintun/qrcode#readme - */ diff --git a/packages/examples/static/public/js/220e1c9506087df0.js b/packages/examples/static/public/js/220e1c9506087df0.js new file mode 100644 index 00000000..9ed806a3 --- /dev/null +++ b/packages/examples/static/public/js/220e1c9506087df0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[877],{1038:function(e,n,l){l.d(n,{Z:function(){return s}});var r=l(2363);function s(e){let n=(0,r.useRef)(e);return n.current=(0,r.useMemo)(()=>e,[e]),n}},9963:function(e,n,l){l.d(n,{Z:function(){return t}});var r=l(2363),s=l(1038);function t(e,n=128){let l=(0,r.useRef)(),t=(0,s.Z)(n),[a,i]=(0,r.useState)(e),u=(0,r.useCallback)((e,n=t.current)=>{clearTimeout(l.current),n<=0?i(e):l.current=setTimeout(()=>{i(e)},n)},[]);return(0,r.useEffect)(()=>()=>{clearTimeout(l.current)},[]),[a,u]}},8877:function(e,n,l){l.r(n),l.d(n,{default:function(){return k}});var r=l(9980),s={result:"ee1aa457",preview:"d52c0583"},t=l(2363),a=l(677),i=l(9963),u=l(9073),c=l(704),d=l(824),o=l(6019),x=l(6725),h=l(356),m=l(9365),j=l(7969),f=l(5542),v=l(4044),Z=l(8023);let{Option:p}=u.default,{TextArea:b}=c.default,{Item:g,useForm:w,useWatch:A}=d.default;function I(e){return"string"==typeof e?e:e.toHexString()}let y=(0,t.memo)(function({value:e}){if(e)switch(e.type){case"ok":return(0,r.jsx)(o.Z,{src:e.payload,alt:"preview",className:s.preview});case"error":return(0,r.jsx)(x.Z,{type:"error",message:e.message,showIcon:!0});default:return(0,r.jsx)(x.Z,{type:"error",message:"发生未知错误",showIcon:!0})}return null});var k=(0,t.memo)(function(){let e=(0,t.useRef)(!1),n=(0,t.useRef)(),[c]=w(),o=A(["fnc1"],c),x=A("content",c),[k,M]=(0,i.Z)(!1),[S,T]=(0,t.useState)(),C=(0,t.useMemo)(()=>({level:"M",fnc1:"None",mode:"Auto",moduleSize:4,quietZone:16,aimIndicator:0,version:"Auto",charset:"UTF_8",background:"#ffffff",foreground:"#000000",content:"https://github.com/nuintun/qrcode"}),[]),L=(0,t.useMemo)(()=>{let e=[(0,r.jsx)(p,{value:"Auto",children:"Auto"},"Auto")];for(let n=1;n<=40;n++)e.push((0,r.jsx)(p,{value:n,children:n},n));return e},[]),N=(0,t.useCallback)(l=>{let r=n.current;if(r&&!e.current){M(!0),e.current=!0;let n={...l,background:I(l.background),foreground:I(l.foreground)};r.postMessage(n)}},[]);return(0,t.useEffect)(()=>{let r=new Worker(new URL(l.p+l.u(620),l.b));return r.addEventListener("message",({data:n})=>{T(n),M(!1),e.current=!1}),n.current=r,()=>{r.terminate()}},[]),(0,r.jsxs)("div",{className:"ui-page",children:[(0,r.jsx)(d.default,{form:c,layout:"vertical",onFinish:N,initialValues:C,children:(0,r.jsxs)(h.Z,{gutter:24,children:[(0,r.jsx)(m.Z,{span:24,children:(0,r.jsx)(g,{name:"content",children:(0,r.jsx)(b,{rows:8,allowClear:!0})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"fnc1",label:"支持 FNC1",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"None",children:"否"}),(0,r.jsx)(p,{value:"AIM",children:"AIM"}),(0,r.jsx)(p,{value:"GS1",children:"GS1"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"aimIndicator",label:"AIM 标识",children:(0,r.jsx)(j.Z,{disabled:"AIM"!==o,min:0,max:255,style:{width:"100%"}})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"version",label:"版本大小",children:(0,r.jsx)(u.default,{children:L})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"level",label:"纠错等级",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"L",children:"Level L (7%)"}),(0,r.jsx)(p,{value:"M",children:"Level M (15%)"}),(0,r.jsx)(p,{value:"Q",children:"Level Q (25%)"}),(0,r.jsx)(p,{value:"H",children:"Level H (30%)"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"mode",label:"编码模式",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"Auto",selected:!0,children:"Auto"}),(0,r.jsx)(p,{value:"Alphanumeric",children:"Alphanumeric"}),(0,r.jsx)(p,{value:"Byte",children:"Byte"}),(0,r.jsx)(p,{value:"Hanzi",children:"Hanzi"}),(0,r.jsx)(p,{value:"Kanji",children:"Kanji"}),(0,r.jsx)(p,{value:"Numeric",children:"Numeric"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"charset",label:"字符编码",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"ASCII",children:"ASCII"}),(0,r.jsx)(p,{value:"UTF_8",children:"UTF-8"}),(0,r.jsx)(p,{value:"ISO_8859_1",children:"ISO-8859-1"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"moduleSize",label:"模块大小",children:(0,r.jsx)(j.Z,{min:1,max:50,style:{width:"100%"}})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"quietZone",label:"静区大小",tooltip:"推荐 4 倍模块大小",children:(0,r.jsx)(j.Z,{min:0,max:200,style:{width:"100%"}})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"foreground",label:"前景颜色",children:(0,r.jsx)(f.Z,{showText:!0,disabledAlpha:!0})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"background",label:"背景颜色",children:(0,r.jsx)(f.Z,{showText:!0,disabledAlpha:!0})})}),(0,r.jsx)(m.Z,{span:24,children:(0,r.jsx)(v.ZP,{type:"primary",htmlType:"submit",loading:k,disabled:!x,icon:(0,r.jsx)(a.Z,{component:Z.Z}),children:"编码"})})]})}),(0,r.jsx)("div",{className:s.result,children:(0,r.jsx)(y,{value:S})})]})})}}]); \ No newline at end of file diff --git a/packages/examples/static/public/js/37ab26d82d670985.js b/packages/examples/static/public/js/37ab26d82d670985.js new file mode 100644 index 00000000..5089137b --- /dev/null +++ b/packages/examples/static/public/js/37ab26d82d670985.js @@ -0,0 +1 @@ +!function(){"use strict";function e(e,{x:t,y:f,moduleSize:s},l){e.save(),e.fillStyle=l,e.beginPath(),e.arc(t,f,.5*s,0,2*Math.PI),e.closePath(),e.fill(),e.restore()}function t(e,t,f,s){e.save(),e.lineWidth=1,e.lineCap="square",e.lineJoin="miter",e.strokeStyle=f;let[l]=t,{length:o}=t;e.beginPath(),e.moveTo(l.x,l.y);for(let f=1;f{let{image:s,items:l}=f,o=new OffscreenCanvas(s.width,s.height),a=o.getContext("2d");for(let{timing:f,corners:o,finder:n,alignment:r}of(a.drawImage(s,0,0),l))t(a,o,"#00ff00",!0),t(a,[n[2],n[0],n[1]],"#ff0000"),t(a,[f[2],f[0],f[1]],"#00ff00"),e(a,n[0],"#ff0000"),e(a,n[1],"#00ff00"),e(a,n[2],"#0000ff"),null!=r&&e(a,r,"#ff00ff");o.convertToBlob().then(e=>{let t={type:"ok",payload:URL.createObjectURL(e)};self.postMessage(t)},()=>{self.postMessage({type:"error",message:"生成未知定位图失败"})})})}(); \ No newline at end of file diff --git a/packages/examples/static/public/js/4f695494ff2c2a84.js b/packages/examples/static/public/js/4f695494ff2c2a84.js deleted file mode 100644 index 62b6be4b..00000000 --- a/packages/examples/static/public/js/4f695494ff2c2a84.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[897],{3060:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(3078),r=n(2363),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(3298),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(l)},1127:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(3078),r=n(2363),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(3298),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(l)},4227:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(3078),r=n(2363),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(3298),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(l)},4231:function(e,t,n){n.d(t,{Z:function(){return T}});var o=n(2363),r=n(6765),i=n(706),a=n(6822),l=n(3867),s=n(1244),c=n(8667),d=n.n(c),u=n(4467),p=n(286),f=n(8793),m=n(8620),g=n(87),h=n(1034),b=n(7584);const v=(e,t,n,o,r)=>({background:e,border:`${(0,g.bf)(o.lineWidth)} ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),y=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:u,colorTextHeading:p,withDescriptionPadding:f,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n padding-top ${n} ${c}, padding-bottom ${n} ${c},\n margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:r,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:p,fontSize:a},[`${t}-description`]:{display:"block",color:u}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},w=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:d,colorInfo:u,colorInfoBorder:p,colorInfoBg:f}=e;return{[t]:{"&-success":v(r,o,n,e,t),"&-info":v(f,p,u,e,t),"&-warning":v(l,a,i,e,t),"&-error":Object.assign(Object.assign({},v(d,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},$=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:(0,g.bf)(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${o}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${o}`,"&:hover":{color:l}}}}};var x=(0,b.I$)("Alert",(e=>[y(e),w(e),$(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{icon:t,prefixCls:n,type:r}=e,i=S[r]||null;return t?(0,f.wm)(t,o.createElement("span",{className:`${n}-icon`},t),(()=>({className:d()(`${n}-icon`,{[t.props.className]:t.props.className})}))):o.createElement(i,{className:`${n}-icon`})},O=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i}=e,l=!0===r||void 0===r?o.createElement(a.Z,null):r;return t?o.createElement("button",{type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},l):null};var I=e=>{const{description:t,prefixCls:n,message:r,banner:i,className:a,rootClassName:l,style:s,onMouseEnter:c,onMouseLeave:f,onClick:g,afterClose:h,showIcon:b,closable:v,closeText:y,closeIcon:w,action:$}=e,S=C(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[I,k]=o.useState(!1);const j=o.useRef(null),{getPrefixCls:Z,direction:M,alert:N}=o.useContext(m.E_),P=Z("alert",n),[R,T,z]=x(P),L=t=>{var n;k(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},A=o.useMemo((()=>void 0!==e.type?e.type:i?"warning":"info"),[e.type,i]),H=o.useMemo((()=>!!y||("boolean"==typeof v?v:!1!==w&&null!=w)),[y,w,v]),B=!(!i||void 0!==b)||b,D=d()(P,`${P}-${A}`,{[`${P}-with-description`]:!!t,[`${P}-no-icon`]:!B,[`${P}-banner`]:!!i,[`${P}-rtl`]:"rtl"===M},null==N?void 0:N.className,a,l,z,T),_=(0,p.Z)(S,{aria:!0,data:!0});return R(o.createElement(u.ZP,{visible:!I,motionName:`${P}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:h},(n=>{let{className:i,style:a}=n;return o.createElement("div",Object.assign({ref:j,"data-show":!I,className:d()(D,i),style:Object.assign(Object.assign(Object.assign({},null==N?void 0:N.style),s),a),onMouseEnter:c,onMouseLeave:f,onClick:g,role:"alert"},_),B?o.createElement(E,{description:t,icon:e.icon,prefixCls:P,type:A}):null,o.createElement("div",{className:`${P}-content`},r?o.createElement("div",{className:`${P}-message`},r):null,t?o.createElement("div",{className:`${P}-description`},t):null),$?o.createElement("div",{className:`${P}-action`},$):null,o.createElement(O,{isClosable:H,prefixCls:P,closeIcon:y||w,handleClose:L}))})))},k=n(3798),j=n(4627),Z=n(2845),M=n(9393);let N=function(e){(0,Z.Z)(n,e);var t=(0,M.Z)(n);function n(){var e;return(0,k.Z)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,j.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,children:n}=this.props,{error:r,info:i}=this.state,a=i&&i.componentStack?i.componentStack:null,l=void 0===e?(r||"").toString():e,s=void 0===t?a:t;return r?o.createElement(I,{type:"error",message:l,description:o.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):n}}]),n}(o.Component);var P=N;const R=I;R.ErrorBoundary=P;var T=R},1174:function(e,t,n){var o=n(5756);t.Z=o.Z},2464:function(e,t,n){n.d(t,{Z:function(){return F}});var o=n(2363),r=n(4227),i=n(8667),a=n.n(i),l=n(959),s=n(4225),c=n(4326),d=n(2197),u=n(2242),p=n(3078),f=n(6709),m=n(6862),g=n(8914),h=n(4467),b=n(7652),v=o.forwardRef((function(e,t){var n,r=e.prefixCls,i=e.forceRender,l=e.className,c=e.style,d=e.children,u=e.isActive,p=e.role,f=o.useState(u||i),m=(0,s.Z)(f,2),h=m[0],b=m[1];return o.useEffect((function(){(i||u)&&b(!0)}),[i,u]),h?o.createElement("div",{ref:t,className:a()("".concat(r,"-content"),(n={},(0,g.Z)(n,"".concat(r,"-content-active"),u),(0,g.Z)(n,"".concat(r,"-content-inactive"),!u),n),l),style:c,role:p},o.createElement("div",{className:"".concat(r,"-content-box")},d)):null}));v.displayName="PanelContent";var y=v,w=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],$=o.forwardRef((function(e,t){var n,r,i=e.showArrow,l=void 0===i||i,s=e.headerClass,c=e.isActive,d=e.onItemClick,u=e.forceRender,m=e.className,v=e.prefixCls,$=e.collapsible,x=e.accordion,C=e.panelKey,S=e.extra,E=e.header,O=e.expandIcon,I=e.openMotion,k=e.destroyInactivePanel,j=e.children,Z=(0,f.Z)(e,w),M="disabled"===$,N="header"===$,P="icon"===$,R=null!=S&&"boolean"!=typeof S,T=function(){null==d||d(C)},z="function"==typeof O?O(e):o.createElement("i",{className:"arrow"});z&&(z=o.createElement("div",{className:"".concat(v,"-expand-icon"),onClick:["header","icon"].includes($)?T:void 0},z));var L=a()((n={},(0,g.Z)(n,"".concat(v,"-item"),!0),(0,g.Z)(n,"".concat(v,"-item-active"),c),(0,g.Z)(n,"".concat(v,"-item-disabled"),M),n),m),A={className:a()(s,(r={},(0,g.Z)(r,"".concat(v,"-header"),!0),(0,g.Z)(r,"".concat(v,"-header-collapsible-only"),N),(0,g.Z)(r,"".concat(v,"-icon-collapsible-only"),P),r)),"aria-expanded":c,"aria-disabled":M,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==b.Z.ENTER&&e.which!==b.Z.ENTER||T()}};return N||P||(A.onClick=T,A.role=x?"tab":"button",A.tabIndex=M?-1:0),o.createElement("div",(0,p.Z)({},Z,{ref:t,className:L}),o.createElement("div",A,l&&z,o.createElement("span",{className:"".concat(v,"-header-text"),onClick:"header"===$?T:void 0},E),R&&o.createElement("div",{className:"".concat(v,"-extra")},S)),o.createElement(h.ZP,(0,p.Z)({visible:c,leavedClassName:"".concat(v,"-content-hidden")},I,{forceRender:u,removeOnLeave:k}),(function(e,t){var n=e.className,r=e.style;return o.createElement(y,{ref:t,prefixCls:v,className:n,style:r,isActive:c,forceRender:u,role:x?"tabpanel":void 0},j)})))})),x=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var C=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,i=t.collapsible,a=t.destroyInactivePanel,l=t.onItemClick,s=t.activeKey,c=t.openMotion,d=t.expandIcon;return e.map((function(e,t){var u=e.children,m=e.label,g=e.key,h=e.collapsible,b=e.onItemClick,v=e.destroyInactivePanel,y=(0,f.Z)(e,x),w=String(null!=g?g:t),C=null!=h?h:i,S=null!=v?v:a,E=!1;return E=r?s[0]===w:s.indexOf(w)>-1,o.createElement($,(0,p.Z)({},y,{prefixCls:n,key:w,panelKey:w,isActive:E,accordion:r,openMotion:c,expandIcon:d,header:m,collapsible:C,onItemClick:function(e){"disabled"!==C&&(l(e),null==b||b(e))},destroyInactivePanel:S}),u)}))}(e,n):(0,m.Z)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,i=n.accordion,a=n.collapsible,l=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,d=n.openMotion,u=n.expandIcon,p=e.key||String(t),f=e.props,m=f.header,g=f.headerClass,h=f.destroyInactivePanel,b=f.collapsible,v=f.onItemClick,y=!1;y=i?c[0]===p:c.indexOf(p)>-1;var w=null!=b?b:a,$={key:p,panelKey:p,header:m,headerClass:g,isActive:y,prefixCls:r,destroyInactivePanel:null!=h?h:l,openMotion:d,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==w&&(s(e),null==v||v(e))},expandIcon:u,collapsible:w};return"string"==typeof e.type?e:(Object.keys($).forEach((function(e){void 0===$[e]&&delete $[e]})),o.cloneElement(e,$))}(e,t,n)}))};function S(e){var t=e;if(!Array.isArray(t)){var n=(0,c.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var E=o.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,i=e.destroyInactivePanel,c=void 0!==i&&i,p=e.style,f=e.accordion,m=e.className,g=e.children,h=e.collapsible,b=e.openMotion,v=e.expandIcon,y=e.activeKey,w=e.defaultActiveKey,$=e.onChange,x=e.items,E=a()(r,m),O=(0,d.Z)([],{value:y,onChange:function(e){return null==$?void 0:$(e)},defaultValue:w,postState:S}),I=(0,s.Z)(O,2),k=I[0],j=I[1];(0,u.ZP)(!g,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Z=C(x,g,{prefixCls:r,accordion:f,openMotion:b,expandIcon:v,collapsible:h,destroyInactivePanel:c,onItemClick:function(e){return j((function(){return f?k[0]===e?[]:[e]:k.indexOf(e)>-1?k.filter((function(t){return t!==e})):[].concat((0,l.Z)(k),[e])}))},activeKey:k});return o.createElement("div",{ref:t,className:E,style:p,role:f?"tablist":void 0},Z)})),O=Object.assign(E,{Panel:$}),I=O,k=(O.Panel,n(3377)),j=n(7789),Z=n(8793),M=n(8620),N=n(1085);var P=o.forwardRef(((e,t)=>{const{getPrefixCls:n}=o.useContext(M.E_),{prefixCls:r,className:i,showArrow:l=!0}=e,s=n("collapse",r),c=a()({[`${s}-no-arrow`]:!l},i);return o.createElement(I.Panel,Object.assign({ref:t},e,{prefixCls:s,className:c}))})),R=n(87),T=n(1034),z=n(7954),L=n(7584),A=n(8025);const H=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:d,colorBorder:u,colorText:p,colorTextHeading:f,colorTextDisabled:m,fontSizeLG:g,lineHeight:h,lineHeightLG:b,marginSM:v,paddingSM:y,paddingLG:w,paddingXS:$,motionDurationSlow:x,fontSizeIcon:C,contentPadding:S,fontHeight:E,fontHeightLG:O}=e,I=`${(0,R.bf)(c)} ${d} ${u}`;return{[t]:Object.assign(Object.assign({},(0,T.Wf)(e)),{backgroundColor:r,border:I,borderBottom:0,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${(0,R.bf)(s)} ${(0,R.bf)(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:h,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},(0,T.Ro)()),{fontSize:C,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub($).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(w).sub(o).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${(0,R.bf)(s)} ${(0,R.bf)(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},B=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},D=e=>{const{componentCls:t,headerBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},_=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var W=(0,L.I$)("Collapse",(e=>{const t=(0,A.TS)(e,{collapseHeaderPaddingSM:`${(0,R.bf)(e.paddingXS)} ${(0,R.bf)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,R.bf)(e.padding)} ${(0,R.bf)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[H(t),D(t),_(t),B(t),(0,z.Z)(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const X=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:i,collapse:l}=o.useContext(M.E_),{prefixCls:s,className:c,rootClassName:d,style:u,bordered:p=!0,ghost:f,size:g,expandIconPosition:h="start",children:b,expandIcon:v}=e,y=(0,N.Z)((e=>{var t;return null!==(t=null!=g?g:e)&&void 0!==t?t:"middle"})),w=n("collapse",s),$=n(),[x,C,S]=W(w);const E=o.useMemo((()=>"left"===h?"start":"right"===h?"end":h),[h]),O=a()(`${w}-icon-position-${E}`,{[`${w}-borderless`]:!p,[`${w}-rtl`]:"rtl"===i,[`${w}-ghost`]:!!f,[`${w}-${y}`]:"middle"!==y},null==l?void 0:l.className,c,d,C,S),P=Object.assign(Object.assign({},(0,j.Z)($)),{motionAppear:!1,leavedClassName:`${w}-content-hidden`}),R=o.useMemo((()=>b?(0,m.Z)(b).map(((e,t)=>{var n,o;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(o=e.key)&&void 0!==o?o:String(t),{disabled:r,collapsible:i}=e.props,a=Object.assign(Object.assign({},(0,k.Z)(e.props,["disabled"])),{key:n,collapsible:null!=i?i:r?"disabled":void 0});return(0,Z.Tm)(e,a)}return e})):null),[b]);return x(o.createElement(I,Object.assign({ref:t,openMotion:P},(0,k.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=v?v(e):o.createElement(r.Z,{rotate:e.isActive?90:void 0});return(0,Z.Tm)(t,(()=>({className:a()(t.props.className,`${w}-arrow`)})))},prefixCls:w,className:O,style:Object.assign(Object.assign({},null==l?void 0:l.style),u)}),R))}));var F=Object.assign(X,{Panel:P})},1962:function(e,t,n){n.d(t,{default:function(){return _e}});var o=n(959),r=n(8667),i=n.n(r),a=n(4467),l=n(2363),s=n(7789),c=n(5088);function d(e){const[t,n]=l.useState(e);return l.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}var u=n(87),p=n(1034),f=n(832),m=n(7954),g=n(8025),h=n(7584);var b=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}};const v=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,u.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,u.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),y=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},w=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,p.Wf)(e)),v(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},y(e,e.controlHeightSM)),"&-large":Object.assign({},y(e,e.controlHeightLG))})}},$=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:d,itemMarginBottom:u}=e;return{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{marginBottom:u,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:f.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},x=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},C=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},S=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),E=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${n} ${n}-label`]:S(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${o}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},O=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${o}-col-24${n}-label,\n .${o}-col-xl-24${n}-label`]:S(e),[`@media (max-width: ${(0,u.bf)(e.screenXSMax)})`]:[E(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:S(e)}}],[`@media (max-width: ${(0,u.bf)(e.screenSMMax)})`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:S(e)}},[`@media (max-width: ${(0,u.bf)(e.screenMDMax)})`]:{[t]:{[`.${o}-col-md-24${n}-label`]:S(e)}},[`@media (max-width: ${(0,u.bf)(e.screenLGMax)})`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:S(e)}}}},I=(e,t)=>(0,g.TS)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var k=(0,h.I$)("Form",((e,t)=>{let{rootPrefixCls:n}=t;const o=I(e,n);return[w(o),$(o),b(o),x(o),C(o),O(o),(0,m.Z)(o),f.kr]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0})),{order:-1e3}),j=n(2259);const Z=[];function M(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}var N=e=>{let{help:t,helpStatus:n,errors:r=Z,warnings:u=Z,className:p,fieldId:f,onVisibleChanged:m}=e;const{prefixCls:g}=l.useContext(c.Rk),h=`${g}-item-explain`,b=(0,j.Z)(g),[v,y,w]=k(g,b),$=(0,l.useMemo)((()=>(0,s.Z)(g)),[g]),x=d(r),C=d(u),S=l.useMemo((()=>null!=t?[M(t,"help",n)]:[].concat((0,o.Z)(x.map(((e,t)=>M(e,"error","error",t)))),(0,o.Z)(C.map(((e,t)=>M(e,"warning","warning",t)))))),[t,n,x,C]),E={};return f&&(E.id=`${f}_help`),v(l.createElement(a.ZP,{motionDeadline:$.motionDeadline,motionName:`${g}-show-help`,visible:!!S.length,onVisibleChanged:m},(e=>{const{className:t,style:n}=e;return l.createElement("div",Object.assign({},E,{className:i()(h,t,w,b,p,y),style:n,role:"alert"}),l.createElement(a.V4,Object.assign({keys:S},(0,s.Z)(g),{motionName:`${g}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:o,className:r,style:a}=e;return l.createElement("div",{key:t,className:i()(r,{[`${h}-${o}`]:o}),style:a},n)})))})))},P=n(1045),R=n(8620),T=n(3407),z=n(1085),L=n(1727);const A=e=>"object"==typeof e&&null!=e&&1===e.nodeType,H=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,B=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&l>=n?i-e-o:a>t&&ln?a-t+r:0,_=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},W=(e,t)=>{var n,o,r,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:d}=t,u="function"==typeof c?c:e=>e!==c;if(!A(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let m=e;for(;A(m)&&u(m);){if(m=_(m),m===p){f.push(m);break}null!=m&&m===document.body&&B(m)&&!B(document.documentElement)||null!=m&&B(m,d)&&f.push(m)}const g=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,h=null!=(i=null==(r=window.visualViewport)?void 0:r.height)?i:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:w,top:$,right:x,bottom:C,left:S}=e.getBoundingClientRect(),{top:E,right:O,bottom:I,left:k}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let j="start"===l||"nearest"===l?$-E:"end"===l?C+I:$+y/2-E+I,Z="center"===s?S+w/2-k+O:"end"===s?x+O:S-k;const M=[];for(let e=0;e=0&&S>=0&&C<=h&&x<=g&&$>=r&&C<=c&&S>=d&&x<=i)return M;const u=getComputedStyle(t),m=parseInt(u.borderLeftWidth,10),E=parseInt(u.borderTopWidth,10),O=parseInt(u.borderRightWidth,10),I=parseInt(u.borderBottomWidth,10);let k=0,N=0;const P="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-O:0,R="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-I:0,T="offsetWidth"in t?0===t.offsetWidth?0:o/t.offsetWidth:0,z="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)k="start"===l?j:"end"===l?j-h:"nearest"===l?D(v,v+h,h,E,I,v+j,v+j+y,y):j-h/2,N="start"===s?Z:"center"===s?Z-g/2:"end"===s?Z-g:D(b,b+g,g,m,O,b+Z,b+Z+w,w),k=Math.max(0,k+v),N=Math.max(0,N+b);else{k="start"===l?j-r-E:"end"===l?j-c+I+R:"nearest"===l?D(r,c,n,E,I+R,j,j+y,y):j-(r+n/2)+R/2,N="start"===s?Z-d-m:"center"===s?Z-(d+o/2)+P/2:"end"===s?Z-i+O+P:D(d,i,o,m,O+P,Z,Z+w,w);const{scrollLeft:e,scrollTop:a}=t;k=0===z?0:Math.max(0,Math.min(a+k/z,t.scrollHeight-n/z+R)),N=0===T?0:Math.max(0,Math.min(e+N/T,t.scrollWidth-o/T+P)),j+=a-k,Z+=e-N}M.push({el:t,top:k,left:N})}return M},X=e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"};const F=["parentNode"],q="form_item";function Y(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function V(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return F.includes(n)?`${q}_${n}`:n}function G(e,t,n,o,r,i){let a=o;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||r&&n.validated)&&(a="success"),a}function U(e){return Y(e).join("_")}function K(e){const[t]=(0,P.cI)(),n=l.useRef({}),o=l.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const o=U(e);t?n.current[o]=t:delete n.current[o]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=V(Y(e),o.__INTERNAL__.name),r=n?document.getElementById(n):null;r&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(W(e,t));const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:i,left:a}of W(e,X(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}(r,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=U(e);return n.current[t]}})),[e,t]);return[o]}var Q=n(5225),J=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const n=l.useContext(T.Z),{getPrefixCls:o,direction:r,form:a}=l.useContext(R.E_),{prefixCls:s,className:d,rootClassName:u,size:p,disabled:f=n,form:m,colon:g,labelAlign:h,labelWrap:b,labelCol:v,wrapperCol:y,hideRequiredMark:w,layout:$="horizontal",scrollToFirstError:x,requiredMark:C,onFinishFailed:S,name:E,style:O,feedbackIcons:I}=e,Z=J(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),M=(0,z.Z)(p),N=l.useContext(Q.Z);const A=(0,l.useMemo)((()=>void 0!==C?C:!w&&(!a||void 0===a.requiredMark||a.requiredMark)),[w,C,a]),H=null!=g?g:null==a?void 0:a.colon,B=o("form",s),D=(0,j.Z)(B),[_,W,X]=k(B,D),F=i()(B,`${B}-${$}`,{[`${B}-hide-required-mark`]:!1===A,[`${B}-rtl`]:"rtl"===r,[`${B}-${M}`]:M},X,D,W,null==a?void 0:a.className,d,u),[q]=K(m),{__INTERNAL__:Y}=q;Y.name=E;const V=(0,l.useMemo)((()=>({name:E,labelAlign:h,labelCol:v,labelWrap:b,wrapperCol:y,vertical:"vertical"===$,colon:H,requiredMark:A,itemRef:Y.itemRef,form:q,feedbackIcons:I})),[E,h,v,y,$,H,A,q,I]);l.useImperativeHandle(t,(()=>q));const G=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),q.scrollToField(t,n)}};return _(l.createElement(T.n,{disabled:f},l.createElement(L.Z.Provider,{value:M},l.createElement(c.RV,{validateMessages:N},l.createElement(c.q3.Provider,{value:V},l.createElement(P.ZP,Object.assign({id:E},Z,{name:E,onFinishFailed:e=>{if(null==S||S(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==x)return void G(x,t);a&&void 0!==a.scrollToFirstError&&G(a.scrollToFirstError,t)}},form:q,style:Object.assign(Object.assign({},null==a?void 0:a.style),O),className:F})))))))};var te=l.forwardRef(ee),ne=n(1433),oe=n(5308),re=n(8793),ie=n(6975),ae=n(6862);const le=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,l.useContext)(c.aM);return{status:e,errors:t,warnings:n}};le.Context=c.aM;var se=le,ce=n(9221);var de=n(202),ue=n(3166),pe=n(3377),fe=n(2964),me=n(5756);const ge=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};var he=(0,h.bk)(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const o=I(e,n);return[ge(o)]}));var be=e=>{const{prefixCls:t,status:n,wrapperCol:o,children:r,errors:a,warnings:s,_internalItemRender:d,extra:u,help:p,fieldId:f,marginBottom:m,onErrorVisibleChanged:g}=e,h=`${t}-item`,b=l.useContext(c.q3),v=o||b.wrapperCol||{},y=i()(`${h}-control`,v.className),w=l.useMemo((()=>Object.assign({},b)),[b]);delete w.labelCol,delete w.wrapperCol;const $=l.createElement("div",{className:`${h}-control-input`},l.createElement("div",{className:`${h}-control-input-content`},r)),x=l.useMemo((()=>({prefixCls:t,status:n})),[t,n]),C=null!==m||a.length||s.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(c.Rk.Provider,{value:x},l.createElement(N,{fieldId:f,errors:a,warnings:s,help:p,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:g})),!!m&&l.createElement("div",{style:{width:0,height:m}})):null,S={};f&&(S.id=`${f}_extra`);const E=u?l.createElement("div",Object.assign({},S,{className:`${h}-extra`}),u):null,O=d&&"pro_table_render"===d.mark&&d.render?d.render(e,{input:$,errorList:C,extra:E}):l.createElement(l.Fragment,null,$,C,E);return l.createElement(c.q3.Provider,{value:w},l.createElement(me.Z,Object.assign({},v,{className:y}),O),l.createElement(he,{prefixCls:t}))},ve=n(3078),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},we=n(3298),$e=function(e,t){return l.createElement(we.Z,(0,ve.Z)({},e,{ref:t,icon:ye}))};var xe=l.forwardRef($e),Ce=n(3735),Se=n(7473),Ee=n(9424),Oe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:o,labelCol:r,labelAlign:a,colon:s,required:d,requiredMark:u,tooltip:p}=e;var f;const[m]=(0,Se.Z)("Form"),{vertical:g,labelAlign:h,labelCol:b,labelWrap:v,colon:y}=l.useContext(c.q3);if(!n)return null;const w=r||b||{},$=a||h,x=`${t}-item-label`,C=i()(x,"left"===$&&`${x}-left`,w.className,{[`${x}-wrap`]:!!v});let S=n;const E=!0===s||!1!==y&&!1!==s;E&&!g&&"string"==typeof n&&""!==n.trim()&&(S=n.replace(/[:|:]\s*$/,""));const O=function(e){return e?"object"!=typeof e||l.isValidElement(e)?{title:e}:e:null}(p);if(O){const{icon:e=l.createElement(xe,null)}=O,n=Oe(O,["icon"]),o=l.createElement(Ee.Z,Object.assign({},n),l.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));S=l.createElement(l.Fragment,null,S,o)}const I="optional"===u,k="function"==typeof u;k?S=u(S,{required:!!d}):I&&!d&&(S=l.createElement(l.Fragment,null,S,l.createElement("span",{className:`${t}-item-optional`,title:""},(null==m?void 0:m.optional)||(null===(f=Ce.Z.Form)||void 0===f?void 0:f.optional))));const j=i()({[`${t}-item-required`]:d,[`${t}-item-required-mark-optional`]:I||k,[`${t}-item-no-colon`]:!E});return l.createElement(me.Z,Object.assign({},w,{className:C}),l.createElement("label",{htmlFor:o,className:j,title:"string"==typeof n?n:""},S))},ke=n(6765),je=n(706),Ze=n(3867),Me=n(9519);const Ne={success:ke.Z,warning:Ze.Z,error:je.Z,validating:Me.Z};function Pe(e){let{children:t,errors:n,warnings:o,hasFeedback:r,validateStatus:a,prefixCls:s,meta:d,noStyle:u}=e;const p=`${s}-item`,{feedbackIcons:f}=l.useContext(c.q3),m=G(n,o,d,null,!!r,a),{isFormItemInput:g,status:h,hasFeedback:b,feedbackIcon:v}=l.useContext(c.aM),y=l.useMemo((()=>{var e;let t;if(r){const a=!0!==r&&r.icons||f,s=m&&(null===(e=null==a?void 0:a({status:m,errors:n,warnings:o}))||void 0===e?void 0:e[m]),c=m&&Ne[m];t=!1!==s&&c?l.createElement("span",{className:i()(`${p}-feedback-icon`,`${p}-feedback-icon-${m}`)},s||l.createElement(c,null)):null}const a={status:m||"",errors:n,warnings:o,hasFeedback:!!r,feedbackIcon:t,isFormItemInput:!0};return u&&(a.status=(null!=m?m:h)||"",a.isFormItemInput=g,a.hasFeedback=!!(null!=r?r:b),a.feedbackIcon=void 0!==r?a.feedbackIcon:v),a}),[m,r,u,g,h]);return l.createElement(c.aM.Provider,{value:y},t)}var Re=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{if(k&&S.current){const e=getComputedStyle(S.current);M(parseInt(e.marginBottom,10))}}),[k,j]);const N=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return G(e?E:f.errors,e?O:f.warnings,f,"",!!m,p)}(),P=i()(x,n,o,{[`${x}-with-help`]:I||E.length||O.length,[`${x}-has-feedback`]:N&&m,[`${x}-has-success`]:"success"===N,[`${x}-has-warning`]:"warning"===N,[`${x}-has-error`]:"error"===N,[`${x}-is-validating`]:"validating"===N,[`${x}-hidden`]:g});return l.createElement("div",{className:P,style:r,ref:S},l.createElement(fe.Z,Object.assign({className:`${x}-row`},(0,pe.Z)($,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(Ie,Object.assign({htmlFor:b},e,{requiredMark:C,required:null!=v?v:y,prefixCls:t})),l.createElement(be,Object.assign({},e,f,{errors:E,warnings:O,prefixCls:t,status:N,help:a,marginBottom:Z,onErrorVisibleChanged:e=>{e||M(null)}}),l.createElement(c.qI.Provider,{value:w},l.createElement(Pe,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:m,validateStatus:N},h)))),!!Z&&l.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-Z}}))}const ze=l.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>{const o=e[n],r=t[n];return o===r||"function"==typeof o||"function"==typeof r}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const Le=function(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:s,shouldUpdate:d,rules:u,children:p,required:f,label:m,messageVariables:g,trigger:h="onChange",validateTrigger:b,hidden:v,help:y}=e,{getPrefixCls:w}=l.useContext(R.E_),{name:$}=l.useContext(c.q3),x=function(e){if("function"==typeof e)return e;const t=(0,ae.Z)(e);return t.length<=1?t[0]:t}(p),C="function"==typeof x,S=l.useContext(c.qI),{validateTrigger:E}=l.useContext(P.zb),O=void 0!==b?b:E,I=!(null==t),Z=w("form",s),M=(0,j.Z)(Z),[N,T,z]=k(Z,M);(0,ie.ln)("Form.Item");const L=l.useContext(P.ZM),A=l.useRef(),[H,B]=function(e){const[t,n]=l.useState(e),o=(0,l.useRef)(null),r=(0,l.useRef)([]),i=(0,l.useRef)(!1);return l.useEffect((()=>(i.current=!1,()=>{i.current=!0,ce.Z.cancel(o.current),o.current=null})),[]),[t,function(e){i.current||(null===o.current&&(r.current=[],o.current=(0,ce.Z)((()=>{o.current=null,n((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}({}),[D,_]=(0,ne.Z)((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),W=(e,t)=>{B((n=>{const r=Object.assign({},n),i=[].concat((0,o.Z)(e.name.slice(0,-1)),(0,o.Z)(t)).join("__SPLIT__");return e.destroy?delete r[i]:r[i]=e,r}))},[X,F]=l.useMemo((()=>{const e=(0,o.Z)(D.errors),t=(0,o.Z)(D.warnings);return Object.values(H).forEach((n=>{e.push.apply(e,(0,o.Z)(n.errors||[])),t.push.apply(t,(0,o.Z)(n.warnings||[]))})),[e,t]}),[H,D.errors,D.warnings]),q=function(){const{itemRef:e}=l.useContext(c.q3),t=l.useRef({});return function(n,o){const r=o&&"object"==typeof o&&o.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===r||(t.current.name=i,t.current.originRef=r,t.current.ref=(0,oe.sQ)(e(n),r)),t.current.ref}}();function G(t,o,a){return n&&!v?l.createElement(Pe,{prefixCls:Z,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:X,warnings:F,noStyle:!0},t):l.createElement(Te,Object.assign({key:"row"},e,{className:i()(r,z,M,T),prefixCls:Z,fieldId:o,isRequired:a,errors:X,warnings:F,meta:D,onSubItemMetaChange:W}),t)}if(!I&&!C&&!a)return N(G(x));let U={};return"string"==typeof m?U.label=m:t&&(U.label=String(t)),g&&(U=Object.assign(Object.assign({},U),g)),N(l.createElement(P.gN,Object.assign({},e,{messageVariables:U,trigger:h,validateTrigger:O,onMetaChange:e=>{const t=null==L?void 0:L.getKey(e.name);if(_(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==y&&S){let n=e.name;if(e.destroy)n=A.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat((0,o.Z)(r)),A.current=n}S(e,n)}}}),((n,r,i)=>{const s=Y(t).length&&r?r.name:[],c=V(s,$),p=void 0!==f?f:!(!u||!u.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return t&&t.required&&!t.warningOnly}return!1}))),m=Object.assign({},n);let g=null;if(Array.isArray(x)&&I)g=x;else if(C&&(!d&&!a||I));else if(!a||C||I)if((0,re.l$)(x)){const t=Object.assign(Object.assign({},x.props),m);if(t.id||(t.id=c),y||X.length>0||F.length>0||e.extra){const n=[];(y||X.length>0)&&n.push(`${c}_help`),e.extra&&n.push(`${c}_extra`),t["aria-describedby"]=n.join(" ")}X.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),(0,oe.Yr)(x)&&(t.ref=q(s,x));new Set([].concat((0,o.Z)(Y(h)),(0,o.Z)(Y(O)))).forEach((e=>{t[e]=function(){for(var t,n,o,r,i,a=arguments.length,l=new Array(a),s=0;s{var{prefixCls:t,children:n}=e,o=He(e,["prefixCls","children"]);const{getPrefixCls:r}=l.useContext(R.E_),i=r("form",t),a=l.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return l.createElement(P.aV,Object.assign({},o),((e,t,o)=>l.createElement(c.Rk.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:o.errors,warnings:o.warnings}))))};const De=te;De.Item=Ae,De.List=Be,De.ErrorList=N,De.useForm=K,De.useFormInstance=function(){const{form:e}=(0,l.useContext)(c.q3);return e},De.useWatch=P.qo,De.Provider=c.RV,De.create=()=>{};var _e=De},4058:function(e,t,n){const o=(0,n(2363).createContext)({});t.Z=o},5756:function(e,t,n){var o=n(2363),r=n(8667),i=n.n(r),a=n(8620),l=n(4058),s=n(8448),c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=o.useContext(a.E_),{gutter:u,wrap:p}=o.useContext(l.Z),{prefixCls:f,span:m,order:g,offset:h,push:b,pull:v,className:y,children:w,flex:$,style:x}=e,C=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",f),[E,O,I]=(0,s.cG)(S);let k={};d.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete C[t],k=Object.assign(Object.assign({},k),{[`${S}-${t}-${n.span}`]:void 0!==n.span,[`${S}-${t}-order-${n.order}`]:n.order||0===n.order,[`${S}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${S}-${t}-push-${n.push}`]:n.push||0===n.push,[`${S}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${S}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${S}-rtl`]:"rtl"===r})}));const j=i()(S,{[`${S}-${m}`]:void 0!==m,[`${S}-order-${g}`]:g,[`${S}-offset-${h}`]:h,[`${S}-push-${b}`]:b,[`${S}-pull-${v}`]:v},y,k,O,I),Z={};if(u&&u[0]>0){const e=u[0]/2;Z.paddingLeft=e,Z.paddingRight=e}return $&&(Z.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}($),!1!==p||Z.minWidth||(Z.minWidth=0)),E(o.createElement("div",Object.assign({},C,{style:Object.assign(Object.assign({},Z),x),className:j,ref:t}),w))}));t.Z=u},2964:function(e,t,n){n.d(t,{Z:function(){return m}});var o=n(2363),r=n(8667),i=n.n(r),a=n(6202);const l=["xxl","xl","lg","md","sm","xs"];function s(){const[,e]=(0,a.ZP)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(l).reverse();return n.forEach(((e,o)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o{const e=new Map;let n=-1,o={};return{matchHandlers:{},dispatch(t){return o=t,e.forEach((e=>e(o))),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},o),{[e]:n}))},i=window.matchMedia(n);i.addListener(r),this.matchHandlers[n]={mql:i,listener:r},r(i)}))},responsiveMap:t}}),[e])}var c=n(8620),d=n(4058),u=n(8448),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:r,align:a,className:m,style:g,children:h,gutter:b=0,wrap:v}=e,y=p(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:w,direction:$}=o.useContext(c.E_),[x,C]=o.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[S,E]=o.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),O=f(a,S),I=f(r,S),k=o.useRef(b),j=s();o.useEffect((()=>{const e=j.subscribe((e=>{E(e);const t=k.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&C(e)}));return()=>j.unsubscribe(e)}),[]);const Z=w("row",n),[M,N,P]=(0,u.VM)(Z),R=(()=>{const e=[void 0,void 0];return(Array.isArray(b)?b:[b,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let o=0;o0?R[0]/-2:void 0;L&&(z.marginLeft=L,z.marginRight=L),[,z.rowGap]=R;const[A,H]=R,B=o.useMemo((()=>({gutter:[A,H],wrap:v})),[A,H,v]);return M(o.createElement(d.Z.Provider,{value:B},o.createElement("div",Object.assign({},y,{className:T,style:Object.assign(Object.assign({},z),g),ref:t}),h)))}))},8448:function(e,t,n){n.d(t,{VM:function(){return s},cG:function(){return c}});var o=n(87),r=n(7584),i=n(8025);const a=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},l=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let e=o;e>=0;e--)0===e?(r[`${n}${t}-${e}`]={display:"none"},r[`${n}-push-${e}`]={insetInlineStart:"auto"},r[`${n}-pull-${e}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${e}`]={marginInlineStart:0},r[`${n}${t}-order-${e}`]={order:0}):(r[`${n}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],r[`${n}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},r[`${n}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},r[`${n}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},r[`${n}${t}-order-${e}`]={order:e});return r})(e,t),s=(0,r.I$)("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),c=(0,r.I$)("Grid",(e=>{const t=(0,i.TS)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[a(t),l(t,""),l(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${(0,o.bf)(t)})`]:Object.assign({},l(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})))},2027:function(e,t,n){n.d(t,{Z:function(){return Ae}});var o=n(2363),r=n(1127),i=n(8667),a=n.n(i),l=n(3078),s=n(433),c=n(8914),d=n(4225),u=n(4326),p=n(6709);function f(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var m=n(2197),g=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],h=o.createContext(null),b=0;function v(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=(0,o.useState)(n?"loading":"normal"),a=(0,d.Z)(i,2),l=a[0],s=a[1],c=(0,o.useRef)(!1),u="error"===l;(0,o.useEffect)((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&s("error")})),function(){e=!1}}),[t]),(0,o.useEffect)((function(){n&&!c.current?s("loading"):u&&s("normal")}),[t]);var p=function(){s("normal")};return[function(e){c.current=!1,"loading"===l&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,p())},u&&r?{src:r}:{onLoad:p,src:t},l]}var y=n(3722),w=n(1850);function $(e,t,n,o){var r=w.unstable_batchedUpdates?function(e){w.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,r,o)}}}var x=n(7652),C=n(6460),S=n(9221),E={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};var O=n(2242);function I(e,t,n,o){var r=t+n,i=(n-o)/2;if(n>o){if(t>0)return(0,c.Z)({},e,i);if(t<0&&ro)return(0,c.Z)({},e,t<0?i:-i);return{}}function k(e,t,n,o){var r=f(),i=r.width,a=r.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=(0,s.Z)((0,s.Z)({},I("x",n,e,i)),I("y",o,t,a))),l}function j(e,t){var n=e.x-t.x,o=e.y-t.y;return Math.hypot(n,o)}function Z(e,t,n,r,i,a,l){var c=i.rotate,u=i.scale,p=i.x,f=i.y,m=(0,o.useState)(!1),g=(0,d.Z)(m,2),h=g[0],b=g[1],v=(0,o.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(e){v.current=(0,s.Z)((0,s.Z)({},v.current),e)};return(0,o.useEffect)((function(){var e;return n&&t&&(e=$(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:h,onTouchStart:function(e){if(t){e.stopPropagation(),b(!0);var n=e.touches,o=void 0===n?[]:n;o.length>1?y({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):y({point1:{x:o[0].clientX-p,y:o[0].clientY-f},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,o=v.current,r=o.point1,i=o.point2,s=o.eventType;if(n.length>1&&"touchZoom"===s){var c={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},p=function(e,t,n,o){var r=j(e,n),i=j(t,o);if(0===r&&0===i)return[e.x,e.y];var a=r/(r+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(r,i,c,u),f=(0,d.Z)(p,2),m=f[0],g=f[1],h=j(c,u)/j(r,i);l(h,"touchZoom",m,g,!0),y({point1:c,point2:u,eventType:"touchZoom"})}else"move"===s&&(a({x:n[0].clientX-r.x,y:n[0].clientY-r.y},"move"),y({eventType:"move"}))},onTouchEnd:function(){if(n){if(h&&b(!1),y({eventType:"none"}),r>u)return a({x:0,y:0,scale:r},"touchZoom");var t=e.current.offsetWidth*u,o=e.current.offsetHeight*u,i=e.current.getBoundingClientRect(),l=i.left,d=i.top,p=c%180!=0,f=k(p?o:t,p?t:o,l,d);f&&a((0,s.Z)({},f),"dragRebound")}}}}var M=n(9804),N=n(4467),P=function(e){var t=e.visible,n=e.maskTransitionName,r=e.getContainer,i=e.prefixCls,l=e.rootClassName,d=e.icons,u=e.countRender,p=e.showSwitch,f=e.showProgress,m=e.current,g=e.transform,b=e.count,v=e.scale,y=e.minScale,w=e.maxScale,$=e.closeIcon,C=e.onSwitchLeft,S=e.onSwitchRight,E=e.onClose,O=e.onZoomIn,I=e.onZoomOut,k=e.onRotateRight,j=e.onRotateLeft,Z=e.onFlipX,P=e.onFlipY,R=e.toolbarRender,T=e.zIndex,z=(0,o.useContext)(h),L=d.rotateLeft,A=d.rotateRight,H=d.zoomIn,B=d.zoomOut,D=d.close,_=d.left,W=d.right,X=d.flipX,F=d.flipY,q="".concat(i,"-operations-operation");o.useEffect((function(){var e=function(e){e.keyCode===x.Z.ESC&&E()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var Y=[{icon:F,onClick:P,type:"flipY"},{icon:X,onClick:Z,type:"flipX"},{icon:L,onClick:j,type:"rotateLeft"},{icon:A,onClick:k,type:"rotateRight"},{icon:B,onClick:I,type:"zoomOut",disabled:v<=y},{icon:H,onClick:O,type:"zoomIn",disabled:v===w}].map((function(e){var t,n=e.icon,r=e.onClick,l=e.type,s=e.disabled;return o.createElement("div",{className:a()(q,(t={},(0,c.Z)(t,"".concat(i,"-operations-operation-").concat(l),!0),(0,c.Z)(t,"".concat(i,"-operations-operation-disabled"),!!s),t)),onClick:r,key:l},n)})),V=o.createElement("div",{className:"".concat(i,"-operations")},Y);return o.createElement(N.ZP,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return o.createElement(M.Z,{open:!0,getContainer:null!=r?r:document.body},o.createElement("div",{className:a()("".concat(i,"-operations-wrapper"),t,l),style:(0,s.Z)((0,s.Z)({},n),{},{zIndex:T})},null===$?null:o.createElement("button",{className:"".concat(i,"-close"),onClick:E},$||D),p&&o.createElement(o.Fragment,null,o.createElement("div",{className:a()("".concat(i,"-switch-left"),(0,c.Z)({},"".concat(i,"-switch-left-disabled"),0===m)),onClick:C},_),o.createElement("div",{className:a()("".concat(i,"-switch-right"),(0,c.Z)({},"".concat(i,"-switch-right-disabled"),m===b-1)),onClick:S},W)),o.createElement("div",{className:"".concat(i,"-footer")},f&&o.createElement("div",{className:"".concat(i,"-progress")},u?u(m+1,b):"".concat(m+1," / ").concat(b)),R?R(V,(0,s.Z)({icons:{flipYIcon:Y[0],flipXIcon:Y[1],rotateLeftIcon:Y[2],rotateRightIcon:Y[3],zoomOutIcon:Y[4],zoomInIcon:Y[5]},actions:{onFlipY:P,onFlipX:Z,onRotateLeft:j,onRotateRight:k,onZoomOut:I,onZoomIn:O},transform:g},z?{current:m,total:b}:{})):V)))}))},R=["fallback","src","imgRef"],T=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],z=function(e){var t=e.fallback,n=e.src,r=e.imgRef,i=(0,p.Z)(e,R),a=v({src:n,fallback:t}),s=(0,d.Z)(a,2),c=s[0],u=s[1];return o.createElement("img",(0,l.Z)({ref:function(e){r.current=e,c(e)}},i,u))},L=function(e){var t=e.prefixCls,n=e.src,r=e.alt,i=e.fallback,u=e.movable,m=void 0===u||u,g=e.onClose,b=e.visible,v=e.icons,w=void 0===v?{}:v,I=e.rootClassName,j=e.closeIcon,M=e.getContainer,N=e.current,R=void 0===N?0:N,L=e.count,A=void 0===L?1:L,H=e.countRender,B=e.scaleStep,D=void 0===B?.5:B,_=e.minScale,W=void 0===_?1:_,X=e.maxScale,F=void 0===X?50:X,q=e.transitionName,Y=void 0===q?"zoom":q,V=e.maskTransitionName,G=void 0===V?"fade":V,U=e.imageRender,K=e.imgCommonProps,Q=e.toolbarRender,J=e.onTransform,ee=e.onChange,te=(0,p.Z)(e,T),ne=(0,o.useRef)(),oe=(0,o.useContext)(h),re=oe&&A>1,ie=oe&&A>=1,ae=(0,o.useState)(!0),le=(0,d.Z)(ae,2),se=le[0],ce=le[1],de=function(e,t,n,r){var i=(0,o.useRef)(null),a=(0,o.useRef)([]),l=(0,o.useState)(E),c=(0,d.Z)(l,2),u=c[0],p=c[1],m=function(e,t){null===i.current&&(a.current=[],i.current=(0,S.Z)((function(){p((function(e){var n=e;return a.current.forEach((function(e){n=(0,s.Z)((0,s.Z)({},n),e)})),i.current=null,null==r||r({transform:n,action:t}),n}))}))),a.current.push((0,s.Z)((0,s.Z)({},u),e))};return{transform:u,resetTransform:function(e){p(E),r&&!(0,C.Z)(E,u)&&r({transform:E,action:e})},updateTransform:m,dispatchZoomChange:function(o,r,i,a,l){var s=e.current,c=s.width,d=s.height,p=s.offsetWidth,g=s.offsetHeight,h=s.offsetLeft,b=s.offsetTop,v=o,y=u.scale*o;y>n?(y=n,v=n/u.scale):y0&&(o=1/o),l(o,"wheel",e.clientX,e.clientY)}}}}(ne,m,b,D,ue,fe,me),he=ge.isMoving,be=ge.onMouseDown,ve=ge.onWheel,ye=Z(ne,m,b,W,ue,fe,me),we=ye.isTouching,$e=ye.onTouchStart,xe=ye.onTouchMove,Ce=ye.onTouchEnd,Se=ue.rotate,Ee=ue.scale,Oe=a()((0,c.Z)({},"".concat(t,"-moving"),he));(0,o.useEffect)((function(){se||ce(!0)}),[se]);var Ie=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),R>0&&(ce(!1),pe("prev"),null==ee||ee(R-1,R))},ke=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),R({position:e||"absolute",inset:0}),Ie=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new ye.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},$e.vS),{padding:`0 ${(0,ve.bf)(o)}`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},ke=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,marginXL:r,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:c,iconCls:d,colorTextLightSolid:u}=e,p=new ye.C(n).setAlpha(.1),f=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:r,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:r,right:{_skip_check_:!0,value:r},display:"flex",color:u,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:f.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,ve.bf)(a)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},je=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,l=new ye.C(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},Ze=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Oe()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Oe()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[ke(e),je(e)]}]},Me=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Ie(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Oe())}}},Ne=e=>{const{previewCls:t}=e;return{[`${t}-root`]:(0,xe._y)(e,"zoom"),"&":(0,Ce.J$)(e,!0)}};var Pe=(0,Se.I$)("Image",(e=>{const t=`${e.componentCls}-preview`,n=(0,Ee.TS)(e,{previewCls:t,modalMaskBg:new ye.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Me(n),Ze(n),(0,we.QA)((0,Ee.TS)(n,{componentCls:t})),Ne(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new ye.C(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new ye.C(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new ye.C(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),Re=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,preview:n,className:i,rootClassName:l,style:s}=e,c=ze(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:d,locale:u=G.Z,getPopupContainer:p,image:f}=o.useContext(V.E_),m=d("image",t),g=d(),h=u.Image||G.Z.Image,b=(0,be.Z)(m),[v,y,w]=Pe(m,b),$=a()(l,y,w,b),x=a()(i,y,null==f?void 0:f.className),[C]=(0,q.Cn)("ImagePreview","object"==typeof n?n.zIndex:void 0),S=o.useMemo((()=>{if(!1===n)return n;const e="object"==typeof n?n:{},{getContainer:t}=e,i=ze(e,["getContainer"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${m}-mask-info`},o.createElement(r.Z,null),null==h?void 0:h.preview),icons:Te},i),{getContainer:t||p,transitionName:(0,Y.m)(g,"zoom",e.transitionName),maskTransitionName:(0,Y.m)(g,"fade",e.maskTransitionName),zIndex:C})}),[n,h]),E=Object.assign(Object.assign({},null==f?void 0:f.style),s);return v(o.createElement(F,Object.assign({prefixCls:m,preview:S,rootClassName:$,className:x,style:E},c)))};Le.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,r=Re(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=o.useContext(V.E_),l=i("image",t),s=`${l}-preview`,c=i(),d=(0,be.Z)(l),[u,p,f]=Pe(l,d),[m]=(0,q.Cn)("ImagePreview","object"==typeof n?n.zIndex:void 0),g=o.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},o=a()(p,f,d,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,Y.m)(c,"zoom",t.transitionName),maskTransitionName:(0,Y.m)(c,"fade",t.maskTransitionName),rootClassName:o,zIndex:m})}),[n]);return u(o.createElement(F.PreviewGroup,Object.assign({preview:g,previewPrefixCls:s,icons:Te},r)))};var Ae=Le},7671:function(e,t,n){var o=n(2964);t.Z=o.Z},7954:function(e,t){t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},8706:function(e,t,n){n.d(t,{ZP:function(){return l},qN:function(){return r},wZ:function(){return i}});var o=n(9130);const r=8;function i(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?r:o}}function a(e,t){return e?t:{}}function l(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:l,arrowOffsetHorizontal:s}=e,{arrowDistance:c=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,o.W)(e,t,i)),{"&:before":{background:t}})]},a(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}})),a(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}})),a(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l}})),a(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}))}}},9130:function(e,t,n){n.d(t,{W:function(){return i},w:function(){return r}});var o=n(87);function r(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),l=r-o*(1-1/Math.sqrt(2)),s=r-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*r-s,u=c,p=2*r-a,f=l,m=2*r-0,g=i,h=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),b=o*(Math.sqrt(2)-1);return{arrowShadowWidth:h,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${d} ${u} L ${p} ${f} A ${o} ${o} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${b}px 100%, 50% ${b}px, ${2*r-b}px 100%, ${b}px 100%)`}}const i=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:l,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,o.bf)(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}}},5884:function(e,t,n){n.d(t,{i:function(){return o}});const o=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},9424:function(e,t,n){n.d(t,{Z:function(){return A}});var o=n(2363),r=n(8667),i=n.n(r),a=n(7351),l=n(2197),s=n(9862),c=n(7789),d=n(8706);const u={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},p={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},f=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function m(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(u).forEach((e=>{const c=o&&p[e]||u[e],m=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=m,f.has(e)&&(m.autoArrow=!1),e){case"top":case"topLeft":case"topRight":m.offset[1]=-l-r;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=l+r;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-l-r;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=l+r}const g=(0,d.wZ)({contentRadius:i,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":m.offset[0]=-g.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":m.offset[0]=g.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":m.offset[1]=-g.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":m.offset[1]=g.arrowOffsetHorizontal+l}m.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,g,t,n),a&&(m.htmlRegion="visibleFirst")})),s}var g=n(8793),h=n(6975),b=n(6414),v=n(8620),y=n(2365),w=n(6202),$=n(1034),x=n(832),C=n(5884);function S(e,t){return C.i.reduce(((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],l=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}var E=n(8025),O=n(7584),I=n(87),k=n(9130);const j=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,$.Wf)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${(0,I.bf)(e.calc(c).div(2).equal())} ${(0,I.bf)(u)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,d.qN)}},[`${t}-content`]:{position:"relative"}}),S(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},(0,d.ZP)(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Z=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,d.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,k.w)((0,E.TS)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var M=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,O.I$)("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=(0,E.TS)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[j(r),(0,x._y)(e,"zoom-big-fast")]}),Z,{resetStyle:!1,injectStyle:t})(e)},N=n(959);const P=C.i.map((e=>`${e}-inverse`));function R(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?C.i.includes(e):[].concat((0,N.Z)(P),(0,N.Z)(C.i)).includes(e)}(t),o=i()({[`${e}-${t}`]:t&&n}),r={},a={};return t&&!n&&(r.background=t,a["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:a}}var T=e=>{const{prefixCls:t,className:n,placement:r="top",title:l,color:s,overlayInnerStyle:c}=e,{getPrefixCls:d}=o.useContext(v.E_),u=d("tooltip",t),[p,f,m]=M(u),g=R(u,s),h=g.arrowStyle,b=Object.assign(Object.assign({},c),g.overlayStyle),y=i()(f,m,u,`${u}-pure`,`${u}-placement-${r}`,n,g.className);return p(o.createElement("div",{className:y,style:h},o.createElement("div",{className:`${u}-arrow`}),o.createElement(a.G,Object.assign({},e,{className:f,prefixCls:u,overlayInnerStyle:b}),l)))},z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:d,openClassName:u,getTooltipContainer:p,overlayClassName:f,color:$,overlayInnerStyle:x,children:C,afterOpenChange:S,afterVisibleChange:E,destroyTooltipOnHide:O,arrow:I=!0,title:k,overlay:j,builtinPlacements:Z,arrowPointAtCenter:N=!1,autoAdjustOverflow:P=!0}=e,T=!!I,[,L]=(0,w.ZP)(),{getPopupContainer:A,getPrefixCls:H,direction:B}=o.useContext(v.E_),D=(0,h.ln)("Tooltip"),_=o.useRef(null),W=()=>{var e;null===(e=_.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>({forceAlign:W,forcePopupAlign:()=>{D.deprecated(!1,"forcePopupAlign","forceAlign"),W()}})));const[X,F]=(0,l.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),q=!k&&!j&&0!==k,Y=o.useMemo((()=>{var e,t;let n=N;return"object"==typeof I&&(n=null!==(t=null!==(e=I.pointAtCenter)&&void 0!==e?e:I.arrowPointAtCenter)&&void 0!==t?t:N),Z||m({arrowPointAtCenter:n,autoAdjustOverflow:P,arrowWidth:T?L.sizePopupArrow:0,borderRadius:L.borderRadius,offset:L.marginXXS,visibleFirst:!0})}),[N,I,Z,L]),V=o.useMemo((()=>0===k?k:j||k||""),[j,k]),G=o.createElement(y.BR,null,"function"==typeof V?V():V),{getPopupContainer:U,placement:K="top",mouseEnterDelay:Q=.1,mouseLeaveDelay:J=.1,overlayStyle:ee,rootClassName:te}=e,ne=z(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),oe=H("tooltip",d),re=H(),ie=e["data-popover-inject"];let ae=X;"open"in e||"visible"in e||!q||(ae=!1);const le=(0,g.l$)(C)&&!(0,g.M2)(C)?C:o.createElement("span",null,C),se=le.props,ce=se.className&&"string"!=typeof se.className?se.className:i()(se.className,u||`${oe}-open`),[de,ue,pe]=M(oe,!ie),fe=R(oe,$),me=fe.arrowStyle,ge=Object.assign(Object.assign({},x),fe.overlayStyle),he=i()(f,{[`${oe}-rtl`]:"rtl"===B},fe.className,te,ue,pe),[be,ve]=(0,s.Cn)("Tooltip",ne.zIndex),ye=o.createElement(a.Z,Object.assign({},ne,{zIndex:be,showArrow:T,placement:K,mouseEnterDelay:Q,mouseLeaveDelay:J,prefixCls:oe,overlayClassName:he,overlayStyle:Object.assign(Object.assign({},me),ee),getTooltipContainer:U||p||A,ref:_,builtinPlacements:Y,overlay:G,visible:ae,onVisibleChange:t=>{var n,o;F(!q&&t),q||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=S?S:E,overlayInnerStyle:ge,arrowContent:o.createElement("span",{className:`${oe}-arrow-content`}),motion:{motionName:(0,c.m)(re,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!O}),ae?(0,g.Tm)(le,{className:ce}):le);return de(o.createElement(b.Z.Provider,{value:ve},ye))}));L._InternalPanelDoNotUseOrYouWillBeFired=T;var A=L},7351:function(e,t,n){n.d(t,{G:function(){return a},Z:function(){return b}});var o=n(8667),r=n.n(o),i=n(2363);function a(e){var t=e.children,n=e.prefixCls,o=e.id,a=e.overlayInnerStyle,l=e.className,s=e.style;return i.createElement("div",{className:r()("".concat(n,"-content"),l),style:s},i.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:a},"function"==typeof t?t():t))}var l=n(3078),s=n(433),c=n(6709),d=n(3847),u={shiftX:64,adjustY:1},p={adjustX:1,shiftY:!0},f=[0,0],m={left:{points:["cr","cl"],overflow:p,offset:[-4,0],targetOffset:f},right:{points:["cl","cr"],overflow:p,offset:[4,0],targetOffset:f},top:{points:["bc","tc"],overflow:u,offset:[0,-4],targetOffset:f},bottom:{points:["tc","bc"],overflow:u,offset:[0,4],targetOffset:f},topLeft:{points:["bl","tl"],overflow:u,offset:[0,-4],targetOffset:f},leftTop:{points:["tr","tl"],overflow:p,offset:[-4,0],targetOffset:f},topRight:{points:["br","tr"],overflow:u,offset:[0,-4],targetOffset:f},rightTop:{points:["tl","tr"],overflow:p,offset:[4,0],targetOffset:f},bottomRight:{points:["tr","br"],overflow:u,offset:[0,4],targetOffset:f},rightBottom:{points:["bl","br"],overflow:p,offset:[4,0],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:u,offset:[0,4],targetOffset:f},leftBottom:{points:["br","bl"],overflow:p,offset:[-4,0],targetOffset:f}},g=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],h=function(e,t){var n=e.overlayClassName,o=e.trigger,r=void 0===o?["hover"]:o,u=e.mouseEnterDelay,p=void 0===u?0:u,f=e.mouseLeaveDelay,h=void 0===f?.1:f,b=e.overlayStyle,v=e.prefixCls,y=void 0===v?"rc-tooltip":v,w=e.children,$=e.onVisibleChange,x=e.afterVisibleChange,C=e.transitionName,S=e.animation,E=e.motion,O=e.placement,I=void 0===O?"right":O,k=e.align,j=void 0===k?{}:k,Z=e.destroyTooltipOnHide,M=void 0!==Z&&Z,N=e.defaultVisible,P=e.getTooltipContainer,R=e.overlayInnerStyle,T=(e.arrowContent,e.overlay),z=e.id,L=e.showArrow,A=void 0===L||L,H=(0,c.Z)(e,g),B=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,(function(){return B.current}));var D=(0,s.Z)({},H);"visible"in e&&(D.popupVisible=e.visible);return i.createElement(d.Z,(0,l.Z)({popupClassName:n,prefixCls:y,popup:function(){return i.createElement(a,{key:"content",prefixCls:y,id:z,overlayInnerStyle:R},T)},action:r,builtinPlacements:m,popupPlacement:I,ref:B,popupAlign:j,getPopupContainer:P,onPopupVisibleChange:$,afterPopupVisibleChange:x,popupTransitionName:C,popupAnimation:S,popupMotion:E,defaultPopupVisible:N,autoDestroy:M,mouseLeaveDelay:h,popupStyle:b,mouseEnterDelay:p,arrow:A},D),w)},b=(0,i.forwardRef)(h)}}]); \ No newline at end of file diff --git a/packages/examples/static/public/js/528684fc79a9370a.js b/packages/examples/static/public/js/528684fc79a9370a.js new file mode 100644 index 00000000..6c7990a6 --- /dev/null +++ b/packages/examples/static/public/js/528684fc79a9370a.js @@ -0,0 +1 @@ +!function(){"use strict";var e,t,n,r,o,u,i,f={},a={};function c(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return f[e](n,n.exports,c),n.exports}c.m=f,e=[],c.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(c.O).every(function(e){return c.O[e](n[a])})?n.splice(a--,1):(f=!1,o(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M512 12.64c-282.752 0-512 229.216-512 512 0 226.208 146.72 418.144 350.144 485.824 25.6 4.736 35.008-11.104 35.008-24.64 0-12.192-.48-52.544-.704-95.328-142.464 30.976-172.512-60.416-172.512-60.416-23.296-59.168-56.832-74.912-56.832-74.912-46.464-31.776 3.52-31.136 3.52-31.136 51.392 3.616 78.464 52.768 78.464 52.768 45.664 78.272 119.776 55.648 148.992 42.56 4.576-33.088 17.856-55.68 32.512-68.48-113.728-12.928-233.28-56.864-233.28-253.024 0-55.904 20-101.568 52.768-137.44-5.312-12.896-22.848-64.96 4.96-135.488 0 0 43.008-13.76 140.832 52.48 40.832-11.36 84.64-17.024 128.16-17.248 43.488.192 87.328 5.888 128.256 17.248 97.728-66.24 140.64-52.48 140.64-52.48 27.872 70.528 10.336 122.592 5.024 135.488 32.832 35.84 52.704 81.536 52.704 137.44 0 196.64-119.776 239.936-233.792 252.64 18.368 15.904 34.72 47.04 34.72 94.816 0 68.512-.608 123.648-.608 140.512 0 13.632 9.216 29.6 35.168 24.576C877.472 942.624 1024 750.784 1024 524.64c0-282.784-229.248-512-512-512"})})),w=(0,l.lazy)(()=>Promise.all([t.e(96),t.e(542),t.e(877)]).then(t.bind(t,8877))),k=(0,l.lazy)(()=>Promise.all([t.e(96),t.e(176)]).then(t.bind(t,8813))),Z=(0,l.memo)(function(){let e=(0,l.useMemo)(()=>"#/decode"===location.hash?"decode":(location.hash="#/encode","encode"),[]),s=(0,l.useCallback)(e=>{location.hash=`#/${e}`},[]),t=(0,l.useMemo)(()=>({maxCount:3}),[]),o=(0,l.useMemo)(()=>({margin:0}),[]),r=(0,l.useMemo)(()=>[{key:"encode",label:(0,n.jsxs)("div",{className:a.tabBarItem,children:[(0,n.jsx)(c.Z,{className:a.icon,component:g.Z}),(0,n.jsx)("span",{children:"二维码编码"})]}),children:(0,n.jsx)(l.Suspense,{fallback:(0,n.jsx)(u,{}),children:(0,n.jsx)(w,{})})},{key:"decode",label:(0,n.jsxs)("div",{className:a.tabBarItem,children:[(0,n.jsx)(c.Z,{className:a.icon,component:p.Z}),(0,n.jsx)("span",{children:"二维码解码"})]}),children:(0,n.jsx)(l.Suspense,{fallback:(0,n.jsx)(u,{}),children:(0,n.jsx)(k,{})})}],[]),h=(0,l.useMemo)(()=>({left:(0,n.jsx)("img",{title:"QRCode",className:a.logo,src:v,alt:"logo"}),right:(0,n.jsx)("a",{title:"GitHub",className:a.source,href:"https://github.com/nuintun/qrcode",target:"_blank",children:(0,n.jsx)(c.Z,{className:a.github,component:f})})}),[]);return(0,n.jsx)(x.default,{className:"ui-app",message:t,children:(0,n.jsx)(i.SV,{FallbackComponent:m,children:(0,n.jsx)(j.Z,{centered:!0,items:r,onChange:s,className:a.tabs,tabBarStyle:o,defaultActiveKey:e,tabBarExtraContent:h})})})});var y=(0,l.memo)(function(){return(0,n.jsx)(b.ZP,{locale:o.Z,theme:{cssVar:!0,hashed:!1,token:{borderRadius:4}},children:(0,n.jsx)(Z,{})})}),z=t(417);let C=document.getElementById("app");(0,z.s)(C).render((0,n.jsx)(y,{}))},3611:function(e,s,t){var n=t(9980);let a=(0,t(2363).memo)(e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M896.256 383.488H832V191.744H640.32V128h224.256c15.552 0 28.48 11.2 31.168 25.984l.512 5.696zm-768.192.256h64.32V192H384v-63.744H159.744a31.68 31.68 0 0 0-31.168 25.984l-.512 5.696zM896.256 640H832v191.744l-191.68-.064v63.808h224.256a31.68 31.68 0 0 0 31.168-25.984l.512-5.76zm-768.192.256h64.32v191.68H384v63.808H159.744a31.68 31.68 0 0 1-31.168-25.984l-.512-5.76zm639.68-159.808v64H256.256v-64z"})}));s.Z=a},8023:function(e,s,t){var n=t(9980);let a=(0,t(2363).memo)(e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"m140.8 517.2 169.4-164.1.1-15.5v-70.4l-258.1 250 258.1 249.9v-70.4l-.1-15.5zm724.3-4.8-169.4-164-.1-15.5v-70.4l258.1 249.9-258.1 250v-70.5l.1-15.5zM462.2 855h-77.6l159.1-695.4h77.6z"})}));s.Z=a},1047:function(e,s,t){e.exports=t.p+"images/158cf240fe1fc517.ico"}},function(e){e.O(0,[292],function(){return e(e.s=2467)}),e.O()}]); \ No newline at end of file diff --git a/packages/examples/static/public/js/6076e9e3d42db083.js b/packages/examples/static/public/js/6076e9e3d42db083.js deleted file mode 100644 index 4e231773..00000000 --- a/packages/examples/static/public/js/6076e9e3d42db083.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6076e9e3d42db083.js.LICENSE.txt */ -(self.webpackChunk=self.webpackChunk||[]).push([[908],{1207:function(e,t,n){"use strict";n.d(t,{iN:function(){return w},R_:function(){return y}});var r=n(8498),o=n(3948),a=2,i=.16,l=.05,c=.05,u=.15,s=5,f=4,d=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function p(e){var t=e.r,n=e.g,o=e.b,a=(0,r.py)(t,n,o);return{h:360*a.h,s:a.s,v:a.v}}function m(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function h(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-a*t:Math.round(e.h)+a*t:n?Math.round(e.h)+a*t:Math.round(e.h)-a*t)<0?r+=360:r>=360&&(r-=360),r}function v(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-i*t:t===f?e.s+i:e.s+l*t)>1&&(r=1),n&&t===s&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function g(e,t,n){var r;return(r=n?e.v+c*t:e.v-u*t)>1&&(r=1),Number(r.toFixed(2))}function y(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),a=s;a>0;a-=1){var i=p(r),l=m((0,o.uA)({h:h(i,a,!0),s:v(i,a,!0),v:g(i,a,!0)}));n.push(l)}n.push(m(r));for(var c=1;c<=f;c+=1){var u=p(r),y=m((0,o.uA)({h:h(u,c),s:v(u,c),v:g(u,c)}));n.push(y)}return"dark"===t.theme?d.map((function(e){var r,a,i,l=e.index,c=e.opacity;return m((r=(0,o.uA)(t.backgroundColor||"#141414"),a=(0,o.uA)(n[l]),i=100*c/100,{r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b}))})):n}var b={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},k={},E={};Object.keys(b).forEach((function(e){k[e]=y(b[e]),k[e].primary=k[e][5],E[e]=y(b[e],{theme:"dark",backgroundColor:"#141414"}),E[e].primary=E[e][5]}));k.red,k.volcano,k.gold,k.orange,k.yellow,k.lime,k.green,k.cyan;var w=k.blue;k.geekblue,k.purple,k.magenta,k.grey,k.grey},87:function(e,t,n){"use strict";n.d(t,{E4:function(){return st},jG:function(){return Z},t2:function(){return ee},ks:function(){return A},bf:function(){return I},CI:function(){return ct},fp:function(){return ne},xy:function(){return at}});var r=n(8914),o=n(4225),a=n(959),i=n(433);var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},c=n(6592),u=n(2363),s=n.t(u,2),f=(n(3754),n(6460),n(3798)),d=n(4627),p=function(){function e(t){(0,f.Z)(this,e),(0,r.Z)(this,"instanceId",void 0),(0,r.Z)(this,"cache",new Map),this.instanceId=t}return(0,d.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),r=t(this.cache.get(n));null===r?this.cache.delete(n):this.cache.set(n,r)}}]),e}(),m="data-token-hash",h="data-css-hash",v="__cssinjs_instance__";function g(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(h,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[v]=t[v]||e,t[v]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(h,"]"))).forEach((function(t){var n,o=t.getAttribute(h);r[o]?t[v]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new p(e)}var y=u.createContext({hashPriority:"low",cache:g(),defaultCache:!0}),b=y,k=n(4326),E=n(4714);var w=function(){function e(){(0,f.Z)(this,e),(0,r.Z)(this,"cache",void 0),(0,r.Z)(this,"keys",void 0),(0,r.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,d.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce((function(e,t){var n=(0,o.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),C+=1}return(0,d.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),M=new w;function Z(e){var t=Array.isArray(e)?e:[e];return M.has(t)||M.set(t,new S(t)),M.get(t)}var $=new WeakMap,P={};var O=new WeakMap;function F(e){var t=O.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof S?t+=r.id:r&&"object"===(0,k.Z)(r)?t+=F(r):t+=r})),O.set(e,t)),t}function N(e,t){return l("".concat(t,"_").concat(F(e)))}var _="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),T="_bAmBoO_";function L(e,t,n){if((0,E.Z)()){var r,o;(0,c.hq)(e,_);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",null==t||t(a),document.body.appendChild(a);var i=n?n(a):null===(r=getComputedStyle(a).content)||void 0===r?void 0:r.includes(T);return null===(o=a.parentNode)||void 0===o||o.removeChild(a),(0,c.jL)(_),i}return!1}var R=void 0;var z=(0,E.Z)();function I(e){return"number"==typeof e?"".concat(e,"px"):e}function j(e,t,n){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var l=(0,i.Z)((0,i.Z)({},a),{},(o={},(0,r.Z)(o,m,t),(0,r.Z)(o,h,n),o)),c=Object.keys(l).map((function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},D=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,o.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},B=function(e,t,n){var r={},a={};return Object.entries(e).forEach((function(e){var t,i,l=(0,o.Z)(e,2),c=l[0],u=l[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])a[c]=u;else if(!("string"!=typeof u&&"number"!=typeof u||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[c])){var s,f=A(c,null==n?void 0:n.prefix);r[f]="number"!=typeof u||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[c]?String(u):"".concat(u,"px"),a[c]="var(".concat(f,")")}})),[a,D(r,t,{scope:null==n?void 0:n.scope})]},H=n(3166),W=(0,i.Z)({},s).useInsertionEffect,V=W?function(e,t,n){return W((function(){return e(),t()}),n)}:function(e,t,n){u.useMemo(e,n),(0,H.Z)((function(){return t(!0)}),n)},U=void 0!==(0,i.Z)({},s).useInsertionEffect?function(e){var t=[],n=!1;return u.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};var q=function(){return!1};function K(e,t,n,r,i){var l=u.useContext(b).cache,c=[e].concat((0,a.Z)(t)),s=c.join("_"),f=U([s]),d=(q(),function(e){l.update(c,(function(t){var r=t||[void 0,void 0],a=(0,o.Z)(r,2),i=a[0];var l=[void 0===i?0:i,a[1]||n()];return e?e(l):l}))});u.useMemo((function(){d()}),[s]);var p=l.get(c)[1];return V((function(){null==i||i(p)}),(function(e){return d((function(t){var n=(0,o.Z)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==i||i(p)),[r+1,a]})),function(){l.update(c,(function(t){var n=t||[],a=(0,o.Z)(n,2),i=a[0],u=void 0===i?0:i,s=a[1];return 0===u-1?(f((function(){!e&&l.get(c)||null==r||r(s,!1)})),null):[u-1,s]}))}}),[s]),p}var G={},X="css",Y=new Map;var Q=0;function J(e,t){Y.set(e,(Y.get(e)||0)-1);var n=Array.from(Y.keys()),r=n.filter((function(e){return(Y.get(e)||0)<=0}));n.length-r.length>Q&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(m,'="').concat(e,'"]')).forEach((function(e){var n;e[v]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Y.delete(e)}))}var ee=function(e,t,n,r){var o=n.getDerivativeToken(e),a=(0,i.Z)((0,i.Z)({},o),t);return r&&(a=r(a)),a},te="token";function ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,u.useContext)(b),s=r.cache.instanceId,f=r.container,d=n.salt,p=void 0===d?"":d,g=n.override,y=void 0===g?G:g,k=n.formatToken,E=n.getComputedToken,w=n.cssVar,x=function(e,t){for(var n=$,r=0;r0?ve(Ze,--Se):0,xe--,10===Me&&(xe=1,we--),Me}function Oe(){return Me=Se2||Te(Me)>3?"":" "}function je(e,t){for(;--t&&Oe()&&!(Me<48||Me>102||Me>57&&Me<65||Me>70&&Me<97););return _e(e,Ne()+(t<6&&32==Fe()&&32==Oe()))}function Ae(e){for(;Oe();)switch(Me){case e:return Se;case 34:case 39:34!==e&&39!==e&&Ae(Me);break;case 40:41===e&&Ae(e);break;case 92:Oe()}return Se}function De(e,t){for(;Oe()&&e+Me!==57&&(e+Me!==84||47!==Fe()););return"/*"+_e(t,Se-1)+"*"+de(47===e?e:Oe())}function Be(e){for(;!Te(Fe());)Oe();return _e(e,Se)}function He(e){return Re(We("",null,null,null,[""],e=Le(e),0,[0],e))}function We(e,t,n,r,o,a,i,l,c){for(var u=0,s=0,f=i,d=0,p=0,m=0,h=1,v=1,g=1,y=0,b="",k=o,E=a,w=r,x=b;v;)switch(m=y,y=Oe()){case 40:if(108!=m&&58==ve(x,f-1)){-1!=he(x+=me(ze(y),"&","&\f"),"&\f",fe(u?l[u-1]:0))&&(g=-1);break}case 34:case 39:case 91:x+=ze(y);break;case 9:case 10:case 13:case 32:x+=Ie(m);break;case 92:x+=je(Ne()-1,7);continue;case 47:switch(Fe()){case 42:case 47:be(Ue(De(Oe(),Ne()),t,n,c),c);break;default:x+="/"}break;case 123*h:l[u++]=ye(x)*g;case 125*h:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+s:-1==g&&(x=me(x,/\f/g,"")),p>0&&ye(x)-f&&be(p>32?qe(x+";",r,n,f-1,c):qe(me(x," ","")+";",r,n,f-2,c),c);break;case 59:x+=";";default:if(be(w=Ve(x,t,n,u,s,o,l,b,k=[],E=[],f,a),a),123===y)if(0===s)We(x,t,w,w,k,a,f,l,E);else switch(99===d&&110===ve(x,3)?100:d){case 100:case 108:case 109:case 115:We(e,w,w,r&&be(Ve(e,w,w,0,0,o,l,b,o,k=[],f,E),E),o,E,f,l,r?k:E);break;default:We(x,w,w,w,[""],E,0,l,E)}}u=s=p=0,h=g=1,b=x="",f=i;break;case 58:f=1+ye(x),p=m;default:if(h<1)if(123==y)--h;else if(125==y&&0==h++&&125==Pe())continue;switch(x+=de(y),y*h){case 38:g=s>0?1:(x+="\f",-1);break;case 44:l[u++]=(ye(x)-1)*g,g=1;break;case 64:45===Fe()&&(x+=ze(Oe())),d=Fe(),s=f=ye(b=x+=Be(Ne())),y++;break;case 45:45===m&&2==ye(x)&&(h=0)}}return a}function Ve(e,t,n,r,o,a,i,l,c,u,s,f){for(var d=o-1,p=0===o?a:[""],m=function(e){return e.length}(p),h=0,v=0,g=0;h0?p[y]+" "+b:me(b,/&\f/g,p[y])))&&(c[g++]=k);return $e(e,t,n,0===o?ie:l,c,u,s,f)}function Ue(e,t,n,r){return $e(e,t,n,ae,de(Me),ge(e,2,-2),0,r)}function qe(e,t,n,r,o){return $e(e,t,n,le,ge(e,0,r),ge(e,r+1,-1),r,o)}var Ke,Ge="data-ant-cssinjs-cache-path",Xe="_FILE_STYLE__";var Ye=!0;function Qe(e){return function(){if(!Ke&&(Ke={},(0,E.Z)())){var e=document.createElement("div");e.className=Ge,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,o.Z)(t,2),r=n[0],a=n[1];Ke[r]=a}));var n,r=document.querySelector("style[".concat(Ge,"]"));r&&(Ye=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ke[e]}var Je="_multi_value_";function et(e){return ke(He(e),Ee).replace(/\{%%%\:[^;];}/g,";")}var tt=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},l=r.root,c=r.injectHash,u=r.parentSelectors,s=n.hashId,f=n.layer,d=(n.path,n.hashPriority),p=n.transformers,m=void 0===p?[]:p,h=(n.linters,""),v={};function g(t){var r=t.getName(s);if(!v[r]){var a=e(t.style,n,{root:!1,parentSelectors:u}),i=(0,o.Z)(a,1)[0];v[r]="@keyframes ".concat(t.getName(s)).concat(i)}}var y=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(y.forEach((function(t){var r="string"!=typeof t||l?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)g(r);else{var f=m.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(f).forEach((function(t){var r=f[t];if("object"!==(0,k.Z)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===(0,k.Z)(e)&&e&&("_skip_check_"in e||Je in e)}(r)){var p;function M(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;oe[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(s)),h+="".concat(n,":").concat(r,";")}var m=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,k.Z)(r)&&null!=r&&r[Je]&&Array.isArray(m)?m.forEach((function(e){M(t,e)})):M(t,m)}else{var y=!1,b=t.trim(),E=!1;(l||c)&&s?b.startsWith("@")?y=!0:b=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat((0,a.Z)(n.slice(1))).join(" ")})).join(",")}(t,s,d):!l||s||"&"!==b&&""!==b||(b="",E=!0);var w=e(r,n,{root:E,injectHash:y,parentSelectors:[].concat((0,a.Z)(u),[b])}),x=(0,o.Z)(w,2),C=x[0],S=x[1];v=(0,i.Z)((0,i.Z)({},v),S),h+="".concat(b).concat(C)}}))}})),l){if(f&&(void 0===R&&(R=L("@layer ".concat(_," { .").concat(_,' { content: "').concat(T,'"!important; } }'),(function(e){e.className=_}))),R)){var b=f.split(","),E=b[b.length-1].trim();h="@layer ".concat(E," {").concat(h,"}"),b.length>1&&(h="@layer ".concat(f,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,v]};function nt(e,t){return l("".concat(e.join("%")).concat(t))}function rt(){return null}var ot="style";function at(e,t){var n=e.token,i=e.path,l=e.hashId,s=e.layer,f=e.nonce,d=e.clientOnly,p=e.order,g=void 0===p?0:p,y=u.useContext(b),k=y.autoClear,w=(y.mock,y.defaultCache),x=y.hashPriority,C=y.container,S=y.ssrInline,M=y.transformers,Z=y.linters,$=y.cache,P=n._tokenKey,O=[P].concat((0,a.Z)(i)),F=z;var N=K(ot,O,(function(){var e=O.join("|");if(Qe(e)){var n=function(e){var t=Ke[e],n=null;if(t&&(0,E.Z)())if(Ye)n=Xe;else{var r=document.querySelector("style[".concat(h,'="').concat(Ke[e],'"]'));r?n=r.innerHTML:delete Ke[e]}return[n,t]}(e),r=(0,o.Z)(n,2),a=r[0],c=r[1];if(a)return[a,P,c,{},d,g]}var u=t(),f=tt(u,{hashId:l,hashPriority:x,layer:s,path:i.join("-"),transformers:M,linters:Z}),p=(0,o.Z)(f,2),m=p[0],v=p[1],y=et(m),b=nt(O,y);return[y,P,b,v,d,g]}),(function(e,t){var n=(0,o.Z)(e,3)[2];(t||k)&&z&&(0,c.jL)(n,{mark:h})}),(function(e){var t=(0,o.Z)(e,4),n=t[0],r=(t[1],t[2]),a=t[3];if(F&&n!==Xe){var i={mark:h,prepend:"queue",attachTo:C,priority:g},l="function"==typeof f?f():f;l&&(i.csp={nonce:l});var u=(0,c.hq)(n,r,i);u[v]=$.instanceId,u.setAttribute(m,P),Object.keys(a).forEach((function(e){(0,c.hq)(et(a[e]),"_effect-".concat(e),i)}))}})),_=(0,o.Z)(N,3),T=_[0],L=_[1],R=_[2];return function(e){var t,n;S&&!F&&w?t=u.createElement("style",(0,re.Z)({},(n={},(0,r.Z)(n,m,L),(0,r.Z)(n,h,R),n),{dangerouslySetInnerHTML:{__html:T}})):t=u.createElement(rt,null);return u.createElement(u.Fragment,null,t,e)}}var it,lt="cssVar",ct=function(e,t){var n=e.key,r=e.prefix,i=e.unitless,l=e.ignore,s=e.token,f=e.scope,d=void 0===f?"":f,p=(0,u.useContext)(b),g=p.cache.instanceId,y=p.container,k=s._tokenKey,E=[].concat((0,a.Z)(e.path),[n,d,k]);return K(lt,E,(function(){var e=t(),a=B(e,n,{prefix:r,unitless:i,ignore:l,scope:d}),c=(0,o.Z)(a,2),u=c[0],s=c[1];return[u,s,nt(E,s),n]}),(function(e){var t=(0,o.Z)(e,3)[2];z&&(0,c.jL)(t,{mark:h})}),(function(e){var t=(0,o.Z)(e,3),r=t[1],a=t[2];if(r){var i=(0,c.hq)(r,a,{mark:h,prepend:"queue",attachTo:y,priority:-999});i[v]=g,i.setAttribute(m,n)}}))};it={},(0,r.Z)(it,ot,(function(e,t,n){var r=(0,o.Z)(e,6),a=r[0],i=r[1],l=r[2],c=r[3],u=r[4],s=r[5],f=(n||{}).plain;if(u)return null;var d=a,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=j(a,i,l,p,f),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=et(c[e]);d+=j(n,i,"_effect-".concat(e),p,f)}})),[s,l,d]})),(0,r.Z)(it,te,(function(e,t,n){var r=(0,o.Z)(e,5),a=r[2],i=r[3],l=r[4],c=(n||{}).plain;if(!i)return null;var u=a._tokenKey;return[-999,u,j(i,l,u,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,r.Z)(it,lt,(function(e,t,n){var r=(0,o.Z)(e,4),a=r[1],i=r[2],l=r[3],c=(n||{}).plain;if(!a)return null;return[-999,i,j(a,l,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}));var ut=function(){function e(t,n){(0,f.Z)(this,e),(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"style",void 0),(0,r.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,d.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),st=ut;function ft(e){return e.notSplit=!0,e}ft(["borderTop","borderBottom"]),ft(["borderTop"]),ft(["borderBottom"]),ft(["borderLeft","borderRight"]),ft(["borderLeft"]),ft(["borderRight"])},3298:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(3078),o=n(4225),a=n(8914),i=n(6709),l=n(2363),c=n(8667),u=n.n(c),s=n(1207),f=n(9027),d=n(433),p=n(1824),m=["icon","className","onClick","style","primaryColor","secondaryColor"],h={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var v=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,a=e.primaryColor,c=e.secondaryColor,u=(0,i.Z)(e,m),s=l.useRef(),f=h;if(a&&(f={primaryColor:a,secondaryColor:c||(0,p.pw)(a)}),(0,p.C3)(s),(0,p.Kp)((0,p.r)(t),"icon should be icon definiton, but got ".concat(t)),!(0,p.r)(t))return null;var v=t;return v&&"function"==typeof v.icon&&(v=(0,d.Z)((0,d.Z)({},v),{},{icon:v.icon(f.primaryColor,f.secondaryColor)})),(0,p.R_)(v.icon,"svg-".concat(v.name),(0,d.Z)((0,d.Z)({className:n,onClick:r,style:o,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:s}))};v.displayName="IconReact",v.getTwoToneColors=function(){return(0,d.Z)({},h)},v.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;h.primaryColor=t,h.secondaryColor=n||(0,p.pw)(t),h.calculated=!!n};var g=v;function y(e){var t=(0,p.H9)(e),n=(0,o.Z)(t,2),r=n[0],a=n[1];return g.setTwoToneColors({primaryColor:r,secondaryColor:a})}var b=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];y(s.iN.primary);var k=l.forwardRef((function(e,t){var n,c=e.className,s=e.icon,d=e.spin,m=e.rotate,h=e.tabIndex,v=e.onClick,y=e.twoToneColor,k=(0,i.Z)(e,b),E=l.useContext(f.Z),w=E.prefixCls,x=void 0===w?"anticon":w,C=E.rootClassName,S=u()(C,x,(n={},(0,a.Z)(n,"".concat(x,"-").concat(s.name),!!s.name),(0,a.Z)(n,"".concat(x,"-spin"),!!d||"loading"===s.name),n),c),M=h;void 0===M&&v&&(M=-1);var Z=m?{msTransform:"rotate(".concat(m,"deg)"),transform:"rotate(".concat(m,"deg)")}:void 0,$=(0,p.H9)(y),P=(0,o.Z)($,2),O=P[0],F=P[1];return l.createElement("span",(0,r.Z)({role:"img","aria-label":s.name},k,{ref:t,tabIndex:M,onClick:v,className:S}),l.createElement(g,{icon:s,primaryColor:O,secondaryColor:F,style:Z}))}));k.displayName="AntdIcon",k.getTwoToneColor=function(){var e=g.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},k.setTwoToneColor=y;var E=k},9027:function(e,t,n){"use strict";var r=(0,n(2363).createContext)({});t.Z=r},677:function(e,t,n){"use strict";var r=n(3078),o=n(433),a=n(8914),i=n(6709),l=n(2363),c=n(8667),u=n.n(c),s=n(5308),f=n(9027),d=n(1824),p=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],m=l.forwardRef((function(e,t){var n=e.className,c=e.component,m=e.viewBox,h=e.spin,v=e.rotate,g=e.tabIndex,y=e.onClick,b=e.children,k=(0,i.Z)(e,p),E=l.useRef(),w=(0,s.x1)(E,t);(0,d.Kp)(Boolean(c||b),"Should have `component` prop or `children`."),(0,d.C3)(E);var x=l.useContext(f.Z),C=x.prefixCls,S=void 0===C?"anticon":C,M=x.rootClassName,Z=u()(M,S,n),$=u()((0,a.Z)({},"".concat(S,"-spin"),!!h)),P=v?{msTransform:"rotate(".concat(v,"deg)"),transform:"rotate(".concat(v,"deg)")}:void 0,O=(0,o.Z)((0,o.Z)({},d.vD),{},{className:$,style:P,viewBox:m});m||delete O.viewBox;var F=g;return void 0===F&&y&&(F=-1),l.createElement("span",(0,r.Z)({role:"img"},k,{ref:w,tabIndex:F,onClick:y,className:Z}),c?l.createElement(c,O,b):b?((0,d.Kp)(Boolean(m)||1===l.Children.count(b)&&l.isValidElement(b)&&"use"===l.Children.only(b).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),l.createElement("svg",(0,r.Z)({},O,{viewBox:m}),b)):null)}));m.displayName="AntdIcon",t.Z=m},6765:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(3078),o=n(2363),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},i=n(3298),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(l)},706:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(3078),o=n(2363),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},i=n(3298),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(l)},6822:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(3078),o=n(2363),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},i=n(3298),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(l)},3867:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(3078),o=n(2363),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},i=n(3298),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(l)},1244:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(3078),o=n(2363),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},i=n(3298),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(l)},9519:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(3078),o=n(2363),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},i=n(3298),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(l)},1824:function(e,t,n){"use strict";n.d(t,{C3:function(){return y},H9:function(){return v},Kp:function(){return f},R_:function(){return m},pw:function(){return h},r:function(){return d},vD:function(){return g}});var r=n(433),o=n(4326),a=n(1207),i=n(6592),l=n(6213),c=n(2242),u=n(2363),s=n(9027);function f(e,t){(0,c.ZP)(e,"[@ant-design/icons] ".concat(t))}function d(e){return"object"===(0,o.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,o.Z)(e.icon)||"function"==typeof e.icon)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function m(e,t,n){return n?u.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},p(e.attrs)),n),(e.children||[]).map((function(n,r){return m(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):u.createElement(e.tag,(0,r.Z)({key:t},p(e.attrs)),(e.children||[]).map((function(n,r){return m(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function h(e){return(0,a.R_)(e)[0]}function v(e){return e?Array.isArray(e)?e:[e]:[]}var g={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},y=function(e){var t=(0,u.useContext)(s.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,u.useEffect)((function(){var t=e.current,r=(0,l.A)(t);(0,i.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})}),[])}},8498:function(e,t,n){"use strict";n.d(t,{T6:function(){return p},VD:function(){return m},WE:function(){return u},Yt:function(){return h},lC:function(){return a},py:function(){return c},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return s}});var r=n(6101);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function a(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);const o=Math.max(e,t,n),a=Math.min(e,t,n);let i=0,l=0;const c=(o+a)/2;if(o===a)l=0,i=0;else{const r=o-a;switch(l=c>.5?r/(2-o-a):r/(o+a),o){case e:i=(t-n)/r+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){let o,a,l;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)a=n,l=n,o=n;else{const r=n<.5?n*(1+t):n+t-n*t,c=2*n-r;o=i(c,r,e+1/3),a=i(c,r,e),l=i(c,r,e-1/3)}return{r:255*o,g:255*a,b:255*l}}function c(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);const o=Math.max(e,t,n),a=Math.min(e,t,n);let i=0;const l=o,c=o-a,u=0===o?0:c/o;if(o===a)i=0;else{switch(o){case e:i=(t-n)/c+(t>16,g:(65280&e)>>8,b:255&e}}},477:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});const r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},3948:function(e,t,n){"use strict";n.d(t,{uA:function(){return i}});var r=n(8498),o=n(477),a=n(6101);function i(e){let t={r:0,g:0,b:0},n=1,i=null,l=null,c=null,u=!1,d=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;let t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};let n=s.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=s.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=s.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=s.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=s.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=s.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=s.hex8.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"};if(n=s.hex6.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"};if(n=s.hex4.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=s.hex3.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),u=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(i=(0,a.JX)(e.s),l=(0,a.JX)(e.v),t=(0,r.WE)(e.h,i,l),u=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(i=(0,a.JX)(e.s),c=(0,a.JX)(e.l),t=(0,r.ve)(e.h,i,c),u=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,a.Yq)(n),{ok:u,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const l="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",c=`[\\s|\\(]+(${l})[,|\\s]+(${l})[,|\\s]+(${l})\\s*\\)?`,u=`[\\s|\\(]+(${l})[,|\\s]+(${l})[,|\\s]+(${l})[,|\\s]+(${l})\\s*\\)?`,s={CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+u),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+u),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+u),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return Boolean(s.CSS_UNIT.exec(String(e)))}},6877:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(8498),o=n(477),a=n(3948),i=n(6101);class l{constructor(e="",t={}){if(e instanceof l)return e;"number"==typeof e&&(e=(0,r.Yt)(e)),this.originalInput=e;const n=(0,a.uA)(e);this.originalInput=e,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=t.format??n.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=n.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3}getLuminance(){const e=this.toRgb();let t,n,r;const o=e.r/255,a=e.g/255,i=e.b/255;return t=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),r=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),.2126*t+.7152*n+.0722*r}getAlpha(){return this.a}setAlpha(e){return this.a=(0,i.Yq)(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:e}=this.toHsl();return 0===e}toHsv(){const e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}}toHsvString(){const e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?`hsv(${t}, ${n}%, ${o}%)`:`hsva(${t}, ${n}%, ${o}%, ${this.roundA})`}toHsl(){const e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}}toHslString(){const e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?`hsl(${t}, ${n}%, ${o}%)`:`hsla(${t}, ${n}%, ${o}%, ${this.roundA})`}toHex(e=!1){return(0,r.vq)(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return(0,r.s)(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return 1===this.a?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?`rgb(${e}, ${t}, ${n})`:`rgba(${e}, ${t}, ${n}, ${this.roundA})`}toPercentageRgb(){const e=e=>`${Math.round(100*(0,i.sh)(e,255))}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){const e=e=>Math.round(100*(0,i.sh)(e,255));return 1===this.a?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toName(){if(0===this.a)return"transparent";if(this.a<1)return!1;const e="#"+(0,r.vq)(this.r,this.g,this.b,!1);for(const[t,n]of Object.entries(o.R))if(e===n)return t;return!1}toString(e){const t=Boolean(e);e=e??this.format;let n=!1;const r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new l(this.toString())}lighten(e=10){const t=this.toHsl();return t.l+=e/100,t.l=(0,i.V2)(t.l),new l(t)}brighten(e=10){const t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-e/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-e/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-e/100*255))),new l(t)}darken(e=10){const t=this.toHsl();return t.l-=e/100,t.l=(0,i.V2)(t.l),new l(t)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){const t=this.toHsl();return t.s-=e/100,t.s=(0,i.V2)(t.s),new l(t)}saturate(e=10){const t=this.toHsl();return t.s+=e/100,t.s=(0,i.V2)(t.s),new l(t)}greyscale(){return this.desaturate(100)}spin(e){const t=this.toHsl(),n=(t.h+e)%360;return t.h=n<0?360+n:n,new l(t)}mix(e,t=50){const n=this.toRgb(),r=new l(e).toRgb(),o=t/100,a={r:(r.r-n.r)*o+n.r,g:(r.g-n.g)*o+n.g,b:(r.b-n.b)*o+n.b,a:(r.a-n.a)*o+n.a};return new l(a)}analogous(e=6,t=30){const n=this.toHsl(),r=360/t,o=[this];for(n.h=(n.h-(r*e>>1)+720)%360;--e;)n.h=(n.h+r)%360,o.push(new l(n));return o}complement(){const e=this.toHsl();return e.h=(e.h+180)%360,new l(e)}monochromatic(e=6){const t=this.toHsv(),{h:n}=t,{s:r}=t;let{v:o}=t;const a=[],i=1/e;for(;e--;)a.push(new l({h:n,s:r,v:o})),o=(o+i)%1;return a}splitcomplement(){const e=this.toHsl(),{h:t}=e;return[this,new l({h:(t+72)%360,s:e.s,l:e.l}),new l({h:(t+216)%360,s:e.s,l:e.l})]}onBackground(e){const t=this.toRgb(),n=new l(e).toRgb(),r=t.a+n.a*(1-t.a);return new l({r:(t.r*t.a+n.r*n.a*(1-t.a))/r,g:(t.g*t.a+n.g*n.a*(1-t.a))/r,b:(t.b*t.a+n.b*n.a*(1-t.a))/r,a:r})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){const t=this.toHsl(),{h:n}=t,r=[this],o=360/e;for(let a=1;a1)&&(e=1),e}function i(e){return Number(e)<=1?100*Number(e)+"%":e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return l},JX:function(){return i},V2:function(){return o},Yq:function(){return a},sh:function(){return r}})},9804:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(4225),o=n(2363),a=n(1850),i=n(4714),l=(n(2242),n(5308)),c=o.createContext(null),u=n(959),s=n(3166),f=[];var d,p=n(6592);function m(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(e||void 0===d){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),d=o-a}return d}():n}var h="rc-util-locker-".concat(Date.now()),v=0;function g(e){var t=!!e,n=o.useState((function(){return v+=1,"".concat(h,"_").concat(v)})),a=(0,r.Z)(n,1)[0];(0,s.Z)((function(){if(t){var e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:m(n),height:m(r)}}(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,p.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),a)}else(0,p.jL)(a);return function(){(0,p.jL)(a)}}),[t,a])}var y=!1;var b=function(e){return!1!==e&&((0,i.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};var k=o.forwardRef((function(e,t){var n=e.open,d=e.autoLock,p=e.getContainer,m=(e.debug,e.autoDestroy),h=void 0===m||m,v=e.children,k=o.useState(n),E=(0,r.Z)(k,2),w=E[0],x=E[1],C=w||n;o.useEffect((function(){(h||n)&&x(n)}),[n,h]);var S=o.useState((function(){return b(p)})),M=(0,r.Z)(S,2),Z=M[0],$=M[1];o.useEffect((function(){var e=b(p);$(null!=e?e:null)}));var P=function(e,t){var n=o.useState((function(){return(0,i.Z)()?document.createElement("div"):null})),a=(0,r.Z)(n,1)[0],l=o.useRef(!1),d=o.useContext(c),p=o.useState(f),m=(0,r.Z)(p,2),h=m[0],v=m[1],g=d||(l.current?void 0:function(e){v((function(t){return[e].concat((0,u.Z)(t))}))});function y(){a.parentElement||document.body.appendChild(a),l.current=!0}function b(){var e;null===(e=a.parentElement)||void 0===e||e.removeChild(a),l.current=!1}return(0,s.Z)((function(){return e?d?d(y):y():b(),b}),[e]),(0,s.Z)((function(){h.length&&(h.forEach((function(e){return e()})),v(f))}),[h]),[a,g]}(C&&!Z),O=(0,r.Z)(P,2),F=O[0],N=O[1],_=null!=Z?Z:F;g(d&&n&&(0,i.Z)()&&(_===F||_===document.body));var T=null;v&&(0,l.Yr)(v)&&t&&(T=v.ref);var L=(0,l.x1)(T,t);if(!C||!(0,i.Z)()||void 0===Z)return null;var R,z=!1===_||("boolean"==typeof R&&(y=R),y),I=v;return t&&(I=o.cloneElement(v,{ref:L})),o.createElement(c.Provider,{value:N},z?I:(0,a.createPortal)(I,_))}))},3847:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(433),o=n(4225),a=n(6709),i=n(9804),l=n(8667),c=n.n(l),u=n(9102),s=n(5330),f=n(6213),d=n(2446),p=n(4710),m=n(3166),h=n(2695),v=n(2363),g=n(3078),y=n(4467),b=n(5308);function k(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,u=o.x,s=void 0===u?0:u,f=o.y,d=void 0===f?0:f,p=v.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],y=h[0],b=h[1],k=g[0],E=g[1];y!==k&&["t","b"].includes(y)?"t"===y?m.top=0:m.bottom=0:m.top=d,b!==E&&["l","r"].includes(b)?"l"===b?m.left=0:m.right=0:m.left=s}return v.createElement("div",{ref:p,className:c()("".concat(t,"-arrow"),i),style:m},l)}function E(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?v.createElement(y.ZP,(0,g.Z)({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return v.createElement("div",{style:{zIndex:r},className:c()("".concat(t,"-mask"),n)})})):null}var w=v.memo((function(e){return e.children}),(function(e,t){return t.cache}));var x=v.forwardRef((function(e,t){var n=e.popup,a=e.className,i=e.prefixCls,l=e.style,s=e.target,f=e.onVisibleChanged,d=e.open,p=e.keepDom,h=e.fresh,x=e.onClick,C=e.mask,S=e.arrow,M=e.arrowPos,Z=e.align,$=e.motion,P=e.maskMotion,O=e.forceRender,F=e.getPopupContainer,N=e.autoDestroy,_=e.portal,T=e.zIndex,L=e.onMouseEnter,R=e.onMouseLeave,z=e.onPointerEnter,I=e.ready,j=e.offsetX,A=e.offsetY,D=e.offsetR,B=e.offsetB,H=e.onAlign,W=e.onPrepare,V=e.stretch,U=e.targetWidth,q=e.targetHeight,K="function"==typeof n?n():n,G=d||p,X=(null==F?void 0:F.length)>0,Y=v.useState(!F||!X),Q=(0,o.Z)(Y,2),J=Q[0],ee=Q[1];if((0,m.Z)((function(){!J&&X&&s&&ee(!0)}),[J,X,s]),!J)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(I||!d){var re,oe=Z.points,ae=Z.dynamicInset||(null===(re=Z._experimental)||void 0===re?void 0:re.dynamicInset),ie=ae&&"r"===oe[0][1],le=ae&&"b"===oe[0][0];ie?(ne.right=D,ne.left=te):(ne.left=j,ne.right=te),le?(ne.bottom=B,ne.top=te):(ne.top=A,ne.bottom=te)}var ce={};return V&&(V.includes("height")&&q?ce.height=q:V.includes("minHeight")&&q&&(ce.minHeight=q),V.includes("width")&&U?ce.width=U:V.includes("minWidth")&&U&&(ce.minWidth=U)),d||(ce.pointerEvents="none"),v.createElement(_,{open:O||G,getContainer:F&&function(){return F(s)},autoDestroy:N},v.createElement(E,{prefixCls:i,open:d,zIndex:T,mask:C,motion:P}),v.createElement(u.Z,{onResize:H,disabled:!d},(function(e){return v.createElement(y.ZP,(0,g.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:O,leavedClassName:"".concat(i,"-hidden")},$,{onAppearPrepare:W,onEnterPrepare:W,visible:d,onVisibleChanged:function(e){var t;null==$||null===(t=$.onVisibleChanged)||void 0===t||t.call($,e),f(e)}}),(function(n,o){var u=n.className,s=n.style,f=c()(i,u,a);return v.createElement("div",{ref:(0,b.sQ)(e,t,o),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(M.x||0,"px"),"--arrow-y":"".concat(M.y||0,"px")},ne),ce),s),{},{boxSizing:"border-box",zIndex:T},l),onMouseEnter:L,onMouseLeave:R,onPointerEnter:z,onClick:x},S&&v.createElement(k,{prefixCls:i,arrow:S,arrowPos:M,align:Z}),v.createElement(w,{cache:!d&&!h},K))}))})))}));var C=v.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,b.Yr)(n),a=v.useCallback((function(e){(0,b.mH)(t,r?r(e):e)}),[r]),i=(0,b.x1)(a,n.ref);return o?v.cloneElement(n,{ref:i}):n})),S=v.createContext(null);function M(e){return e?Array.isArray(e)?e:[e]:[]}var Z=n(202);function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function P(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function O(e){return e.ownerDocument.defaultView}function F(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=O(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function _(e){return N(parseFloat(e),0)}function T(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=O(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,u=e.getBoundingClientRect(),s=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,m=_(a),h=_(i),v=_(l),g=_(c),y=N(Math.round(u.width/d*1e3)/1e3),b=N(Math.round(u.height/s*1e3)/1e3),k=(d-p-v-g)*y,E=(s-f-m-h)*b,w=m*b,x=h*b,C=v*y,S=g*y,M=0,Z=0;if("clip"===r){var $=_(o);M=$*y,Z=$*b}var P=u.x+C-M,F=u.y+w-Z,T=P+u.width+2*M-C-S-k,L=F+u.height+2*Z-w-x-E;n.left=Math.max(n.left,P),n.top=Math.max(n.top,F),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,L)}})),n}function L(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function R(e,t){var n=t||[],r=(0,o.Z)(n,2),a=r[0],i=r[1];return[L(e.width,a),L(e.height,i)]}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function I(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function j(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var A=n(959);n(2242);var D=n(9221);var B=["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"];var H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Z,t=v.forwardRef((function(t,n){var i=t.prefixCls,l=void 0===i?"rc-trigger-popup":i,g=t.children,y=t.action,b=void 0===y?"hover":y,k=t.showAction,E=t.hideAction,w=t.popupVisible,_=t.defaultPopupVisible,L=t.onPopupVisibleChange,H=t.afterPopupVisibleChange,W=t.mouseEnterDelay,V=t.mouseLeaveDelay,U=void 0===V?.1:V,q=t.focusDelay,K=t.blurDelay,G=t.mask,X=t.maskClosable,Y=void 0===X||X,Q=t.getPopupContainer,J=t.forceRender,ee=t.autoDestroy,te=t.destroyPopupOnHide,ne=t.popup,re=t.popupClassName,oe=t.popupStyle,ae=t.popupPlacement,ie=t.builtinPlacements,le=void 0===ie?{}:ie,ce=t.popupAlign,ue=t.zIndex,se=t.stretch,fe=t.getPopupClassNameFromAlign,de=t.fresh,pe=t.alignPoint,me=t.onPopupClick,he=t.onPopupAlign,ve=t.arrow,ge=t.popupMotion,ye=t.maskMotion,be=t.popupTransitionName,ke=t.popupAnimation,Ee=t.maskTransitionName,we=t.maskAnimation,xe=t.className,Ce=t.getTriggerDOMNode,Se=(0,a.Z)(t,B),Me=ee||te||!1,Ze=v.useState(!1),$e=(0,o.Z)(Ze,2),Pe=$e[0],Oe=$e[1];(0,m.Z)((function(){Oe((0,h.Z)())}),[]);var Fe=v.useRef({}),Ne=v.useContext(S),_e=v.useMemo((function(){return{registerSubPopup:function(e,t){Fe.current[e]=t,null==Ne||Ne.registerSubPopup(e,t)}}}),[Ne]),Te=(0,p.Z)(),Le=v.useState(null),Re=(0,o.Z)(Le,2),ze=Re[0],Ie=Re[1],je=(0,d.Z)((function(e){(0,s.S)(e)&&ze!==e&&Ie(e),null==Ne||Ne.registerSubPopup(Te,e)})),Ae=v.useState(null),De=(0,o.Z)(Ae,2),Be=De[0],He=De[1],We=v.useRef(null),Ve=(0,d.Z)((function(e){(0,s.S)(e)&&Be!==e&&(He(e),We.current=e)})),Ue=v.Children.only(g),qe=(null==Ue?void 0:Ue.props)||{},Ke={},Ge=(0,d.Z)((function(e){var t,n,r=Be;return(null==r?void 0:r.contains(e))||(null===(t=(0,f.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==ze?void 0:ze.contains(e))||(null===(n=(0,f.A)(ze))||void 0===n?void 0:n.host)===e||e===ze||Object.values(Fe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Xe=P(l,ge,ke,be),Ye=P(l,ye,we,Ee),Qe=v.useState(_||!1),Je=(0,o.Z)(Qe,2),et=Je[0],tt=Je[1],nt=null!=w?w:et,rt=(0,d.Z)((function(e){void 0===w&&tt(e)}));(0,m.Z)((function(){tt(w||!1)}),[w]);var ot=v.useRef(nt);ot.current=nt;var at=v.useRef([]);at.current=[];var it=(0,d.Z)((function(e){var t;rt(e),(null!==(t=at.current[at.current.length-1])&&void 0!==t?t:nt)!==e&&(at.current.push(e),null==L||L(e))})),lt=v.useRef(),ct=function(){clearTimeout(lt.current)},ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ct(),0===t?it(e):lt.current=setTimeout((function(){it(e)}),1e3*t)};v.useEffect((function(){return ct}),[]);var st=v.useState(!1),ft=(0,o.Z)(st,2),dt=ft[0],pt=ft[1];(0,m.Z)((function(e){e&&!nt||pt(!0)}),[nt]);var mt=v.useState(null),ht=(0,o.Z)(mt,2),vt=ht[0],gt=ht[1],yt=v.useState([0,0]),bt=(0,o.Z)(yt,2),kt=bt[0],Et=bt[1],wt=function(e){Et([e.clientX,e.clientY])},xt=function(e,t,n,a,i,l,c){var u=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[a]||{}}),f=(0,o.Z)(u,2),p=f[0],h=f[1],g=v.useRef(0),y=v.useMemo((function(){return t?F(t):[]}),[t]),b=v.useRef({});e||(b.current={});var k=(0,d.Z)((function(){if(t&&n&&e){var u,f,d,p=t,m=p.ownerDocument,v=O(p).getComputedStyle(p),g=v.width,k=v.height,E=v.position,w=p.style.left,x=p.style.top,C=p.style.right,S=p.style.bottom,M=p.style.overflow,$=(0,r.Z)((0,r.Z)({},i[a]),l),P=m.createElement("div");if(null===(u=p.parentElement)||void 0===u||u.appendChild(P),P.style.left="".concat(p.offsetLeft,"px"),P.style.top="".concat(p.offsetTop,"px"),P.style.position=E,P.style.height="".concat(p.offsetHeight,"px"),P.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))d={x:n[0],y:n[1],width:0,height:0};else{var F=n.getBoundingClientRect();d={x:F.x,y:F.y,width:F.width,height:F.height}}var _=p.getBoundingClientRect(),L=m.documentElement,A=L.clientWidth,D=L.clientHeight,B=L.scrollWidth,H=L.scrollHeight,W=L.scrollTop,V=L.scrollLeft,U=_.height,q=_.width,K=d.height,G=d.width,X={left:0,top:0,right:A,bottom:D},Y={left:-V,top:-W,right:B-V,bottom:H-W},Q=$.htmlRegion,J="visible",ee="visibleFirst";"scroll"!==Q&&Q!==ee&&(Q=J);var te=Q===ee,ne=T(Y,y),re=T(X,y),oe=Q===J?re:ne,ae=te?re:oe;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var ie=p.getBoundingClientRect();p.style.left=w,p.style.top=x,p.style.right=C,p.style.bottom=S,p.style.overflow=M,null===(f=p.parentElement)||void 0===f||f.removeChild(P);var le=N(Math.round(q/parseFloat(g)*1e3)/1e3),ce=N(Math.round(U/parseFloat(k)*1e3)/1e3);if(0===le||0===ce||(0,s.S)(n)&&!(0,Z.Z)(n))return;var ue=$.offset,se=$.targetOffset,fe=R(_,ue),de=(0,o.Z)(fe,2),pe=de[0],me=de[1],he=R(d,se),ve=(0,o.Z)(he,2),ge=ve[0],ye=ve[1];d.x-=ge,d.y-=ye;var be=$.points||[],ke=(0,o.Z)(be,2),Ee=ke[0],we=z(ke[1]),xe=z(Ee),Ce=I(d,we),Se=I(_,xe),Me=(0,r.Z)({},$),Ze=Ce.x-Se.x+pe,$e=Ce.y-Se.y+me;function Et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oe,r=_.x+e,o=_.y+t,a=r+q,i=o+U,l=Math.max(r,n.left),c=Math.max(o,n.top),u=Math.min(a,n.right),s=Math.min(i,n.bottom);return Math.max(0,(u-l)*(s-c))}var Pe,Oe,Fe,Ne,_e=Et(Ze,$e),Te=Et(Ze,$e,re),Le=I(d,["t","l"]),Re=I(_,["t","l"]),ze=I(d,["b","r"]),Ie=I(_,["b","r"]),je=$.overflow||{},Ae=je.adjustX,De=je.adjustY,Be=je.shiftX,He=je.shiftY,We=function(e){return"boolean"==typeof e?e:e>=0};function wt(){Pe=_.y+$e,Oe=Pe+U,Fe=_.x+Ze,Ne=Fe+q}wt();var Ve=We(De),Ue=xe[0]===we[0];if(Ve&&"t"===xe[0]&&(Oe>ae.bottom||b.current.bt)){var qe=$e;Ue?qe-=U-K:qe=Le.y-Ie.y-me;var Ke=Et(Ze,qe),Ge=Et(Ze,qe,re);Ke>_e||Ke===_e&&(!te||Ge>=Te)?(b.current.bt=!0,$e=qe,me=-me,Me.points=[j(xe,0),j(we,0)]):b.current.bt=!1}if(Ve&&"b"===xe[0]&&(Pe_e||Ye===_e&&(!te||Qe>=Te)?(b.current.tb=!0,$e=Xe,me=-me,Me.points=[j(xe,0),j(we,0)]):b.current.tb=!1}var Je=We(Ae),et=xe[1]===we[1];if(Je&&"l"===xe[1]&&(Ne>ae.right||b.current.rl)){var tt=Ze;et?tt-=q-G:tt=Le.x-Ie.x-pe;var nt=Et(tt,$e),rt=Et(tt,$e,re);nt>_e||nt===_e&&(!te||rt>=Te)?(b.current.rl=!0,Ze=tt,pe=-pe,Me.points=[j(xe,1),j(we,1)]):b.current.rl=!1}if(Je&&"r"===xe[1]&&(Fe_e||at===_e&&(!te||it>=Te)?(b.current.lr=!0,Ze=ot,pe=-pe,Me.points=[j(xe,1),j(we,1)]):b.current.lr=!1}wt();var lt=!0===Be?0:Be;"number"==typeof lt&&(Fere.right&&(Ze-=Ne-re.right-pe,d.x>re.right-lt&&(Ze+=d.x-re.right+lt)));var ct=!0===He?0:He;"number"==typeof ct&&(Pere.bottom&&($e-=Oe-re.bottom-me,d.y>re.bottom-ct&&($e+=d.y-re.bottom+ct)));var ut=_.x+Ze,st=ut+q,ft=_.y+$e,dt=ft+U,pt=d.x,mt=pt+G,ht=d.y,vt=ht+K,gt=(Math.max(ut,pt)+Math.min(st,mt))/2-ut,yt=(Math.max(ft,ht)+Math.min(dt,vt))/2-ft;null==c||c(t,Me);var bt=ie.right-_.x-(Ze+_.width),kt=ie.bottom-_.y-($e+_.height);h({ready:!0,offsetX:Ze/le,offsetY:$e/ce,offsetR:bt/le,offsetB:kt/ce,arrowX:gt/le,arrowY:yt/ce,scaleX:le,scaleY:ce,align:Me})}})),E=function(){h((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,m.Z)(E,[a]),(0,m.Z)((function(){e||E()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){g.current+=1;var e=g.current;Promise.resolve().then((function(){g.current===e&&k()}))}]}(nt,ze,pe?kt:Be,ae,le,ce,he),Ct=(0,o.Z)(xt,11),St=Ct[0],Mt=Ct[1],Zt=Ct[2],$t=Ct[3],Pt=Ct[4],Ot=Ct[5],Ft=Ct[6],Nt=Ct[7],_t=Ct[8],Tt=Ct[9],Lt=Ct[10],Rt=function(e,t,n,r){return v.useMemo((function(){var o=M(null!=n?n:t),a=M(null!=r?r:t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]}),[e,t,n,r])}(Pe,b,k,E),zt=(0,o.Z)(Rt,2),It=zt[0],jt=zt[1],At=It.has("click"),Dt=jt.has("click")||jt.has("contextMenu"),Bt=(0,d.Z)((function(){dt||Lt()}));!function(e,t,n,r,o){(0,m.Z)((function(){if(e&&t&&n){var a=n,i=F(t),l=F(a),c=O(a),u=new Set([c].concat((0,A.Z)(i),(0,A.Z)(l)));function s(){r(),o()}return u.forEach((function(e){e.addEventListener("scroll",s,{passive:!0})})),c.addEventListener("resize",s,{passive:!0}),r(),function(){u.forEach((function(e){e.removeEventListener("scroll",s),c.removeEventListener("resize",s)}))}}}),[e,t,n])}(nt,Be,ze,Bt,(function(){ot.current&&pe&&Dt&&ut(!1)})),(0,m.Z)((function(){Bt()}),[kt,ae]),(0,m.Z)((function(){!nt||null!=le&&le[ae]||Bt()}),[JSON.stringify(ce)]);var Ht=v.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i1?i-1:0),c=1;c1?n-1:0),o=1;o1?n-1:0),o=1;o({height:0,opacity:0}),o=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),i=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,l=(e,t,n)=>void 0!==n?n:`${e}-${t}`;t.Z=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:a,onLeaveActive:r,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500}}},8793:function(e,t,n){"use strict";var r;n.d(t,{M2:function(){return i},Tm:function(){return c},l$:function(){return a},wm:function(){return l}});var o=n(2363);const{isValidElement:a}=r||(r=n.t(o,2));function i(e){return e&&a(e)&&e.type===o.Fragment}function l(e,t,n){return a(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}function c(e,t){return l(e,e,t)}},6975:function(e,t,n){"use strict";n.d(t,{G8:function(){return a},ln:function(){return i}});var r=n(2363);n(2242);function o(){}const a=r.createContext({}),i=()=>{const e=()=>{};return e.deprecated=o,e}},8742:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(8667),o=n.n(r),a=n(5308),i=n(202),l=n(2363),c=n(8620),u=n(8793),s=n(7584);const f=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}};var d=(0,s.ZP)("Wave",(e=>[f(e)])),p=n(3931),m=n(9221),h=n(4467),v=n(7610);function g(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const y="ant-wave-target";function b(e){return Number.isNaN(e)?0:e}const k=e=>{const{className:t,target:n,component:r}=e,a=l.useRef(null),[i,c]=l.useState(null),[u,s]=l.useState([]),[f,d]=l.useState(0),[p,k]=l.useState(0),[E,w]=l.useState(0),[x,C]=l.useState(0),[S,M]=l.useState(!1),Z={left:f,top:p,width:E,height:x,borderRadius:u.map((e=>`${e}px`)).join(" ")};function $(){const e=getComputedStyle(n);c(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return g(t)?t:g(n)?n:g(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:b(-parseFloat(r))),k(t?n.offsetTop:b(-parseFloat(o))),w(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:a,borderTopRightRadius:i,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;s([a,i,u,l].map((e=>b(parseFloat(e)))))}if(i&&(Z["--wave-color"]=i),l.useEffect((()=>{if(n){const e=(0,m.Z)((()=>{$(),M(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver($),t.observe(n)),()=>{m.Z.cancel(e),null==t||t.disconnect()}}}),[]),!S)return null;const P=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(y));return l.createElement(h.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;(0,v.v)(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return l.createElement("div",{ref:a,className:o()(t,{"wave-quick":P},n),style:Z})}))};var E=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),(0,v.s)(l.createElement(k,Object.assign({},t,{target:e})),o)},w=n(6202);var x=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:s}=(0,l.useContext)(c.E_),f=(0,l.useRef)(null),h=s("wave"),[,v]=d(h),g=function(e,t,n){const{wave:r}=l.useContext(c.E_),[,o,a]=(0,w.ZP)(),i=(0,p.zX)((i=>{const l=e.current;if((null==r?void 0:r.disabled)||!l)return;const c=l.querySelector(`.${y}`)||l,{showEffect:u}=r||{};(u||E)(c,{className:t,token:o,component:n,event:i,hashId:a})})),u=l.useRef();return e=>{m.Z.cancel(u.current),u.current=(0,m.Z)((()=>{i(e)}))}}(f,o()(h,v),r);if(l.useEffect((()=>{const e=f.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!(0,i.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||g(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!l.isValidElement(t))return null!=t?t:null;const b=(0,a.Yr)(t)?(0,a.sQ)(t.ref,f):f;return(0,u.Tm)(t,{ref:b})}},6414:function(e,t,n){"use strict";const r=n(2363).createContext(void 0);t.Z=r},936:function(e,t,n){"use strict";n.d(t,{default:function(){return yt}});var r=n(2363),o=n(8667),a=n.n(o),i=n(8620),l=n(6822),c=n(959),u=n(4225),s=n(6709),f=n(433),d=n(1850),p=n(3078),m=n(8914),h=n(4467),v=n(7652),g=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.style,i=e.className,l=e.duration,c=void 0===l?4.5:l,s=e.eventKey,f=e.content,d=e.closable,h=e.closeIcon,g=void 0===h?"x":h,y=e.props,b=e.onClick,k=e.onNoticeClose,E=e.times,w=e.hovering,x=r.useState(!1),C=(0,u.Z)(x,2),S=C[0],M=C[1],Z=w||S,$=function(){k(s)};r.useEffect((function(){if(!Z&&c>0){var e=setTimeout((function(){$()}),1e3*c);return function(){clearTimeout(e)}}}),[c,Z,E]);var P="".concat(n,"-notice");return r.createElement("div",(0,p.Z)({},y,{ref:t,className:a()(P,i,(0,m.Z)({},"".concat(P,"-closable"),d)),style:o,onMouseEnter:function(e){var t;M(!0),null==y||null===(t=y.onMouseEnter)||void 0===t||t.call(y,e)},onMouseLeave:function(e){var t;M(!1),null==y||null===(t=y.onMouseLeave)||void 0===t||t.call(y,e)},onClick:b}),r.createElement("div",{className:"".concat(P,"-content")},f),d&&r.createElement("a",{tabIndex:0,className:"".concat(P,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==v.Z.ENTER||$()},onClick:function(e){e.preventDefault(),e.stopPropagation(),$()}},g))})),y=g,b=r.createContext({}),k=function(e){var t=e.children,n=e.classNames;return r.createElement(b.Provider,{value:{classNames:n}},t)},E=n(4326),w=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===(0,E.Z)(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,o]},x=["className","style","classNames","styles"];var C=function(e){var t,n=e.configList,o=e.placement,i=e.prefixCls,l=e.className,d=e.style,v=e.motion,g=e.onAllNoticeRemoved,k=e.onNoticeClose,E=e.stack,C=(0,r.useContext)(b).classNames,S=(0,r.useRef)({}),M=(0,r.useState)(null),Z=(0,u.Z)(M,2),$=Z[0],P=Z[1],O=(0,r.useState)([]),F=(0,u.Z)(O,2),N=F[0],_=F[1],T=n.map((function(e){return{config:e,key:String(e.key)}})),L=w(E),R=(0,u.Z)(L,2),z=R[0],I=R[1],j=I.offset,A=I.threshold,D=I.gap,B=z&&(N.length>0||T.length<=A),H="function"==typeof v?v(o):v;return(0,r.useEffect)((function(){z&&N.length>1&&_((function(e){return e.filter((function(e){return T.some((function(t){var n=t.key;return e===n}))}))}))}),[N,T,z]),(0,r.useEffect)((function(){var e,t;z&&S.current[null===(e=T[T.length-1])||void 0===e?void 0:e.key]&&P(S.current[null===(t=T[T.length-1])||void 0===t?void 0:t.key])}),[T,z]),r.createElement(h.V4,(0,p.Z)({key:o,className:a()(i,"".concat(i,"-").concat(o),null==C?void 0:C.list,l,(t={},(0,m.Z)(t,"".concat(i,"-stack"),!!z),(0,m.Z)(t,"".concat(i,"-stack-expanded"),B),t)),style:d,keys:T,motionAppear:!0},H,{onAllRemoved:function(){g(o)}}),(function(e,t){var n=e.config,l=e.className,u=e.style,d=e.index,m=n,h=m.key,v=m.times,g=String(h),b=n,E=b.className,w=b.style,M=b.classNames,Z=b.styles,P=(0,s.Z)(b,x),O=T.findIndex((function(e){return e.key===g})),F={};if(z){var L=T.length-1-(O>-1?O:d-1),R="top"===o||"bottom"===o?"-50%":"0";if(L>0){var I,A,H;F.height=B?null===(I=S.current[g])||void 0===I?void 0:I.offsetHeight:null==$?void 0:$.offsetHeight;for(var W=0,V=0;V-1?S.current[g]=e:delete S.current[g]},prefixCls:i,classNames:M,styles:Z,className:a()(E,null==C?void 0:C.notice),style:w,times:v,key:h,eventKey:h,onNoticeClose:k,hovering:z&&N.length>0})))}))},S=r.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-notification":n,a=e.container,i=e.motion,l=e.maxCount,s=e.className,p=e.style,m=e.onAllRemoved,h=e.stack,v=e.renderNotifications,g=r.useState([]),y=(0,u.Z)(g,2),b=y[0],k=y[1],E=function(e){var t,n=b.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),k((function(t){return t.filter((function(t){return t.key!==e}))}))};r.useImperativeHandle(t,(function(){return{open:function(e){k((function(t){var n,r=(0,c.Z)(t),o=r.findIndex((function(t){return t.key===e.key})),a=(0,f.Z)({},e);o>=0?(a.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=a):(a.times=0,r.push(a));return l>0&&r.length>l&&(r=r.slice(-l)),r}))},close:function(e){E(e)},destroy:function(){k([])}}}));var w=r.useState({}),x=(0,u.Z)(w,2),S=x[0],M=x[1];r.useEffect((function(){var e={};b.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(S).forEach((function(t){e[t]=e[t]||[]})),M(e)}),[b]);var Z=function(e){M((function(t){var n=(0,f.Z)({},t);return(n[e]||[]).length||delete n[e],n}))},$=r.useRef(!1);if(r.useEffect((function(){Object.keys(S).length>0?$.current=!0:$.current&&(null==m||m(),$.current=!1)}),[S]),!a)return null;var P=Object.keys(S);return(0,d.createPortal)(r.createElement(r.Fragment,null,P.map((function(e){var t=S[e],n=r.createElement(C,{key:e,configList:t,placement:e,prefixCls:o,className:null==s?void 0:s(e),style:null==p?void 0:p(e),motion:i,onNoticeClose:E,onAllNoticeRemoved:Z,stack:h});return v?v(n,{prefixCls:o,key:e}):n}))),a)}));var M=S,Z=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],$=function(){return document.body},P=0;function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?$:t,o=e.motion,a=e.prefixCls,i=e.maxCount,l=e.className,f=e.style,d=e.onAllRemoved,p=e.stack,m=e.renderNotifications,h=(0,s.Z)(e,Z),v=r.useState(),g=(0,u.Z)(v,2),y=g[0],b=g[1],k=r.useRef(),E=r.createElement(M,{container:y,ref:k,prefixCls:a,motion:o,maxCount:i,className:l,style:f,onAllRemoved:d,stack:p,renderNotifications:m}),w=r.useState([]),x=(0,u.Z)(w,2),C=x[0],S=x[1],O=r.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r{let{prefixCls:t,type:n,icon:o,children:i}=e;return r.createElement("div",{className:a()(`${t}-custom-content`,`${t}-${n}`)},o||z[n],r.createElement("span",null,i))};var j=n(87),A=n(9862),D=n(1034),B=n(7584),H=n(8025);const W=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:s,motionDurationSlow:f,marginXS:d,paddingXS:p,borderRadiusLG:m,zIndexPopup:h,contentPadding:v,contentBg:g}=e,y=`${t}-notice`,b=new j.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),k=new j.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),E={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:u},[`${y}-content`]:{display:"inline-block",padding:v,background:g,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},(0,D.Wf)(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:s},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:k,animationDuration:f,animationPlayState:"paused",animationTimingFunction:s},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},E)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},E),{padding:0,textAlign:"start"})}]};var V=(0,B.I$)("Message",(e=>{const t=(0,H.TS)(e,{height:150});return[W(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+A.u6+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));var U=n(2259),q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const o=(0,U.Z)(n),[i,l,c]=V(n,o);return i(r.createElement(k,{classNames:{list:a()(l,c,o)}},t))},X=(e,t)=>{let{prefixCls:n,key:o}=t;return r.createElement(G,{prefixCls:n,key:o},e)},Y=r.forwardRef(((e,t)=>{const{top:n,prefixCls:o,getContainer:c,maxCount:u,duration:s=K,rtl:f,transitionName:d,onAllRemoved:p}=e,{getPrefixCls:m,getPopupContainer:h,message:v}=r.useContext(i.E_),g=o||m("message"),y=r.createElement("span",{className:`${g}-close-x`},r.createElement(l.Z,{className:`${g}-close-icon`})),[b,k]=O({prefixCls:g,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>a()({[`${g}-rtl`]:f}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(g,d),closable:!1,closeIcon:y,duration:s,getContainer:()=>(null==c?void 0:c())||(null==h?void 0:h())||document.body,maxCount:u,onAllRemoved:p,renderNotifications:X});return r.useImperativeHandle(t,(()=>Object.assign(Object.assign({},b),{prefixCls:g,message:v}))),k}));let Q=0;function J(e){const t=r.useRef(null),n=((0,F.ln)("Message"),r.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:l}=t.current,c=`${i}-notice`,{content:u,icon:s,type:f,key:d,className:p,style:m,onClose:h}=n,v=q(n,["content","icon","type","key","className","style","onClose"]);let g=d;return null==g&&(Q+=1,g=`antd-message-${Q}`),function(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}((t=>(o(Object.assign(Object.assign({},v),{key:g,content:r.createElement(I,{prefixCls:i,type:f,icon:s},u),placement:"top",className:a()(f&&`${c}-${f}`,p,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),m),onClose:()=>{null==h||h(),t()}})),()=>{e(g)})))},o={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{o[e]=(t,r,o)=>{let a,i,l;a=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?l=r:(i=r,l=o);const c=Object.assign(Object.assign({onClose:l,duration:i},a),{type:e});return n(c)}})),o}),[]));return[n,r.createElement(Y,Object.assign({key:"message-holder"},e,{ref:t}))]}n(7610);function ee(e){return Object.assign(Object.assign({},e),{type:"warning"})}function te(e){return Object.assign(Object.assign({},e),{type:"info"})}function ne(e){return Object.assign(Object.assign({},e),{type:"success"})}function re(e){return Object.assign(Object.assign({},e),{type:"error"})}function oe(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var ae=[],ie=n(3735),le=n(7473),ce=n(7789),ue=n(2654),se=n(6202),fe=n(1433),de=n(4729),pe=n(248);function me(e){return!(!e||!e.then)}var he=e=>{const{type:t,children:n,prefixCls:o,buttonProps:a,close:i,autoFocus:l,emitEvent:c,isSilent:u,quitOnNullishReturnValue:s,actionFn:f}=e,d=r.useRef(!1),p=r.useRef(null),[m,h]=(0,fe.Z)(!1),v=function(){null==i||i.apply(void 0,arguments)};r.useEffect((()=>{let e=null;return l&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return r.createElement(de.ZP,Object.assign({},(0,pe.nx)(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!f)return void v();let t;if(c){if(t=f(e),s&&!me(t))return d.current=!1,void v(e)}else if(f.length)t=f(i),d.current=!1;else if(t=f(),!t)return void v();(e=>{me(e)&&(h(!0),e.then((function(){h(!1,!0),v.apply(void 0,arguments),d.current=!1}),(e=>{if(h(!1,!0),d.current=!1,!(null==u?void 0:u()))return Promise.reject(e)})))})(t)},loading:m,prefixCls:o},a,{ref:p}),n)};const ve=r.createContext({}),{Provider:ge}=ve;var ye=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:a,rootPrefixCls:i,close:l,onCancel:c,onConfirm:u}=(0,r.useContext)(ve);return a?r.createElement(he,{isSilent:o,actionFn:c,close:function(){null==l||l.apply(void 0,arguments),null==u||u(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null};var be=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:a,okTextLocale:i,okType:l,onConfirm:c,onOk:u}=(0,r.useContext)(ve);return r.createElement(he,{isSilent:n,type:l||"primary",actionFn:u,close:function(){null==t||t.apply(void 0,arguments),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${a}-btn`},i)},ke=n(3722);var Ee=n(4714);var we=n(6414),xe=n(5088),Ce=n(2365),Se=n(3931);function Me(){}const Ze=r.createContext({add:Me,remove:Me});var $e=n(3407);var Pe=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,r.useContext)(ve);return r.createElement(de.ZP,Object.assign({onClick:n},e),t)};var Oe=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:a}=(0,r.useContext)(ve);return r.createElement(de.ZP,Object.assign({},(0,pe.nx)(n),{loading:e,onClick:a},t),o)},Fe=n(4033);const Ne=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:a,onOk:i,onCancel:l,okButtonProps:u,cancelButtonProps:s,footer:f}=e,[d]=(0,le.Z)("Modal",(0,Fe.A)()),p={confirmLoading:a,okButtonProps:u,cancelButtonProps:s,okTextLocale:t||(null==d?void 0:d.okText),cancelTextLocale:o||(null==d?void 0:d.cancelText),okType:n,onOk:i,onCancel:l},m=r.useMemo((()=>p),(0,c.Z)(Object.values(p)));let h;return"function"==typeof f||void 0===f?(h=r.createElement(r.Fragment,null,r.createElement(Pe,null),r.createElement(Oe,null)),"function"==typeof f&&(h=f(h,{OkBtn:Oe,CancelBtn:Pe})),h=r.createElement(ge,{value:m},h)):h=f,r.createElement($e.n,{disabled:!1},h)};var _e=n(6432),Te=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{Le={x:e.pageX,y:e.pageY},setTimeout((()=>{Le=null}),100)};(0,Ee.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",Re,!0);var ze=e=>{var t;const{getPopupContainer:n,getPrefixCls:o,direction:c,modal:u}=r.useContext(i.E_),s=t=>{const{onCancel:n}=e;null==n||n(t)};const{prefixCls:f,className:d,rootClassName:p,open:m,wrapClassName:h,centered:v,getContainer:g,closeIcon:y,closable:b,focusTriggerAfterClose:k=!0,style:E,visible:w,width:x=520,footer:C,classNames:S,styles:M}=e,Z=Te(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),$=o("modal",f),P=o(),O=(0,U.Z)($),[F,N,_]=(0,_e.ZP)($,O),T=a()(h,{[`${$}-centered`]:!!v,[`${$}-wrap-rtl`]:"rtl"===c}),L=null!==C&&r.createElement(Ne,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:s})),[R,z]=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.createElement(l.Z,null);const a=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==arguments[4]&&arguments[4]);if(!a)return[!1,null];const i="boolean"==typeof t||null==t?o:t;return[!0,n?n(i):i]}(b,y,(e=>function(e,t){return r.createElement("span",{className:`${e}-close-x`},t||r.createElement(l.Z,{className:`${e}-close-icon`}))}($,e)),r.createElement(l.Z,{className:`${$}-close-icon`}),!0),I=function(e){const t=r.useContext(Ze),n=r.useRef();return(0,Se.zX)((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}(`.${$}-content`),[j,D]=(0,A.Cn)("Modal",Z.zIndex);return F(r.createElement(Ce.BR,null,r.createElement(xe.Ux,{status:!0,override:!0},r.createElement(we.Z.Provider,{value:D},r.createElement(ke.Z,Object.assign({width:x},Z,{zIndex:j,getContainer:void 0===g?n:g,prefixCls:$,rootClassName:a()(N,p,_,O),footer:L,visible:null!=m?m:w,mousePosition:null!==(t=Z.mousePosition)&&void 0!==t?t:Le,onClose:s,closable:R,closeIcon:z,focusTriggerAfterClose:k,transitionName:(0,ce.m)(P,"zoom",e.transitionName),maskTransitionName:(0,ce.m)(P,"fade",e.maskTransitionName),className:a()(N,d,null==u?void 0:u.className),style:Object.assign(Object.assign({},null==u?void 0:u.style),E),classNames:Object.assign(Object.assign({wrapper:T},null==u?void 0:u.classNames),S),styles:Object.assign(Object.assign({},null==u?void 0:u.styles),M),panelRef:I}))))))};const Ie=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,s=`${t}-confirm`;return{[s]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${s}-body-wrapper`]:Object.assign({},(0,D.dF)()),[`&${t} ${t}-body`]:{padding:u},[`${s}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${s}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,j.bf)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${s}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${s}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${s}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${s}-error ${s}-body > ${e.iconCls}`]:{color:e.colorError},[`${s}-warning ${s}-body > ${e.iconCls},\n ${s}-confirm ${s}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${s}-info ${s}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${s}-success ${s}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};var je=(0,B.bk)(["Modal","confirm"],(e=>{const t=(0,_e.B4)(e);return[Ie(t)]}),_e.eh,{order:-1e3}),Ae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oE),(0,c.Z)(Object.values(E))),x=r.createElement(r.Fragment,null,r.createElement(ye,null),r.createElement(be,null)),C=void 0!==e.title&&null!==e.title,S=`${l}-body`;return r.createElement("div",{className:`${l}-body-wrapper`},r.createElement("div",{className:a()(S,{[`${S}-has-title`]:C})},m,r.createElement("div",{className:`${l}-paragraph`},C&&r.createElement("span",{className:`${l}-title`},e.title),r.createElement("div",{className:`${l}-content`},e.content))),void 0===f||"function"==typeof f?r.createElement(ge,{value:w},r.createElement("div",{className:`${l}-btns`},"function"==typeof f?f(x,{OkBtn:be,CancelBtn:ye}):x)):f,r.createElement(je,{prefixCls:t}))}const Be=e=>{const{close:t,zIndex:n,afterClose:o,open:i,keyboard:l,centered:c,getContainer:u,maskStyle:s,direction:f,prefixCls:d,wrapClassName:p,rootPrefixCls:m,bodyStyle:h,closable:v=!1,closeIcon:g,modalRender:y,focusTriggerAfterClose:b,onConfirm:k,styles:E}=e;const w=`${d}-confirm`,x=e.width||416,C=e.style||{},S=void 0===e.mask||e.mask,M=void 0!==e.maskClosable&&e.maskClosable,Z=a()(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===f},e.className),[,$]=(0,se.ZP)(),P=r.useMemo((()=>void 0!==n?n:$.zIndexPopupBase+A.u6),[n,$]);return r.createElement(ze,{prefixCls:d,className:Z,wrapClassName:a()({[`${w}-centered`]:!!e.centered},p),onCancel:()=>{null==t||t({triggerCancel:!0}),null==k||k(!1)},open:i,title:"",footer:null,transitionName:(0,ce.m)(m||"","zoom",e.transitionName),maskTransitionName:(0,ce.m)(m||"","fade",e.maskTransitionName),mask:S,maskClosable:M,style:C,styles:Object.assign({body:h,mask:s},E),width:x,zIndex:P,afterClose:o,keyboard:l,centered:c,getContainer:u,closable:v,closeIcon:g,modalRender:y,focusTriggerAfterClose:b},r.createElement(De,Object.assign({},e,{confirmPrefixCls:w})))};var He=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:o,theme:a}=e;return r.createElement(ue.ZP,{prefixCls:t,iconPrefixCls:n,direction:o,theme:a},r.createElement(Be,Object.assign({},e)))},We=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:o,config:a}=e,l=We(e,["afterClose","config"]);const[u,s]=r.useState(!0),[f,d]=r.useState(a),{direction:p,getPrefixCls:m}=r.useContext(i.E_),h=m("modal"),v=m(),g=function(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));f.onCancel&&r&&f.onCancel.apply(f,[()=>{}].concat((0,c.Z)(t.slice(1))))};r.useImperativeHandle(t,(()=>({destroy:g,update:e=>{d((t=>Object.assign(Object.assign({},t),e)))}})));const y=null!==(n=f.okCancel)&&void 0!==n?n:"confirm"===f.type,[b]=(0,le.Z)("Modal",ie.Z.Modal);return r.createElement(He,Object.assign({prefixCls:h,rootPrefixCls:v},f,{close:g,open:u,afterClose:()=>{var e;o(),null===(e=f.afterClose)||void 0===e||e.call(f)},okText:f.okText||(y?null==b?void 0:b.okText:null==b?void 0:b.justOkText),direction:f.direction||p,cancelText:f.cancelText||(null==b?void 0:b.cancelText)},l))};var Ue=r.forwardRef(Ve);let qe=0;const Ke=r.memo(r.forwardRef(((e,t)=>{const[n,o]=function(){const[e,t]=r.useState([]);return[e,r.useCallback((e=>(t((t=>[].concat((0,c.Z)(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return r.useImperativeHandle(t,(()=>({patchElement:o})),[]),r.createElement(r.Fragment,null,n)})));var Ge=function(){const e=r.useRef(null),[t,n]=r.useState([]);r.useEffect((()=>{if(t.length){(0,c.Z)(t).forEach((e=>{e()})),n([])}}),[t]);const o=r.useCallback((t=>function(o){var a;qe+=1;const i=r.createRef();let l;const u=new Promise((e=>{l=e}));let s,f=!1;const d=r.createElement(Ue,{key:`modal-${qe}`,config:t(o),ref:i,afterClose:()=>{null==s||s()},isSilent:()=>f,onConfirm:e=>{l(e)}});s=null===(a=e.current)||void 0===a?void 0:a.patchElement(d),s&&ae.push(s);const p={destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat((0,c.Z)(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat((0,c.Z)(e),[t])))},then:e=>(f=!0,u.then(e))};return p}),[]);return[r.useMemo((()=>({info:o(te),success:o(ne),error:o(re),warning:o(ee),confirm:o(oe)})),[]),r.createElement(Ke,{key:"modal-holder",ref:e})]};L.Z,N.Z,_.Z,T.Z,R.Z;function Xe(e,t){return null===t||!1===t?null:t||r.createElement("span",{className:`${e}-close-x`},r.createElement(l.Z,{className:`${e}-close-icon`}))}const Ye={success:N.Z,info:L.Z,error:_.Z,warning:T.Z},Qe=e=>{const{prefixCls:t,icon:n,type:o,message:i,description:l,btn:c,role:u="alert"}=e;let s=null;return n?s=r.createElement("span",{className:`${t}-icon`},n):o&&(s=r.createElement(Ye[o]||null,{className:a()(`${t}-icon`,`${t}-icon-${o}`)})),r.createElement("div",{className:a()({[`${t}-with-icon`]:s}),role:u},s,r.createElement("div",{className:`${t}-message`},i),r.createElement("div",{className:`${t}-description`},l),c&&r.createElement("div",{className:`${t}-btn`},c))};var Je=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new j.E4("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new j.E4("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new j.E4("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new j.E4("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}};const et=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],tt={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},nt=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},rt=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},nt(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},rt(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},et.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[tt[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))};const at=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:s,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:m,fontSize:h,lineHeight:v,width:g,notificationIconSize:y,colorText:b}=e,k=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:d,borderRadius:i,boxShadow:r,[k]:{padding:p,width:g,maxWidth:`calc(100vw - ${(0,j.bf)(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:v,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:h,cursor:"pointer"},[`${k}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${k}-description`]:{fontSize:h,color:b},[`${k}-closable ${k}-message`]:{paddingInlineEnd:e.paddingLG},[`${k}-with-icon ${k}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(y).equal(),fontSize:o},[`${k}-with-icon ${k}-description`]:{marginInlineStart:e.calc(e.marginSM).add(y).equal(),fontSize:h},[`${k}-icon`]:{position:"absolute",fontSize:y,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:s}},[`${k}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.closeBtnHoverBg}},[`${k}-btn`]:{float:"right",marginTop:e.marginSM}}},it=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,l=new j.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},(0,D.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},at(e))}}]};var lt=(0,B.I$)("Notification",(e=>{const t=(e=>{const t=e.paddingMD,n=e.paddingLG;return(0,H.TS)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,j.bf)(e.paddingMD)} ${(0,j.bf)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})})(e);return[it(t),Je(t),ot(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+A.u6+50,width:384,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent})));var ct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const o=(0,U.Z)(n),[i,l,c]=lt(n,o);return i(r.createElement(k,{classNames:{list:a()(l,c,o)}},t))},ft=(e,t)=>{let{prefixCls:n,key:o}=t;return r.createElement(st,{prefixCls:n,key:o},e)},dt=r.forwardRef(((e,t)=>{const{top:n,bottom:o,prefixCls:l,getContainer:c,maxCount:u,rtl:s,onAllRemoved:f,stack:d}=e,{getPrefixCls:p,getPopupContainer:m,notification:h}=r.useContext(i.E_),[,v]=(0,se.ZP)(),g=l||p("notification"),[y,b]=O({prefixCls:g,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=o?o:24),className:()=>a()({[`${g}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(g),closable:!0,closeIcon:Xe(g),duration:4.5,getContainer:()=>(null==c?void 0:c())||(null==m?void 0:m())||document.body,maxCount:u,onAllRemoved:f,renderNotifications:ft,stack:!1!==d&&{threshold:"object"==typeof d?null==d?void 0:d.threshold:void 0,offset:8,gap:v.margin}});return r.useImperativeHandle(t,(()=>Object.assign(Object.assign({},y),{prefixCls:g,notification:h}))),b}));function pt(e){return function(e){const t=r.useRef(null),n=((0,F.ln)("Notification"),r.useMemo((()=>{const n=n=>{var o;if(!t.current)return;const{open:i,prefixCls:l,notification:c}=t.current,u=`${l}-notice`,{message:s,description:f,icon:d,type:p,btn:m,className:h,style:v,role:g="alert",closeIcon:y}=n,b=ct(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),k=Xe(u,y);return i(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:ut},b),{content:r.createElement(Qe,{prefixCls:u,icon:d,type:p,message:s,description:f,btn:m,role:g}),className:a()(p&&`${u}-${p}`,h,null==c?void 0:c.className),style:Object.assign(Object.assign({},null==c?void 0:c.style),v),closeIcon:k,closable:!!k}))},o={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{o[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),o}),[]));return[n,r.createElement(dt,Object.assign({key:"notification-holder"},e,{ref:t}))]}(e)}const mt=r.createContext({});var ht=r.createContext({message:{},notification:{},modal:{}});var vt=(0,B.I$)("App",(e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}}),(()=>({})));const gt=e=>{const{prefixCls:t,children:n,className:o,rootClassName:l,message:c,notification:u,style:s,component:f="div"}=e,{getPrefixCls:d}=(0,r.useContext)(i.E_),p=d("app",t),[m,h,v]=vt(p),g=a()(h,p,o,l,v),y=(0,r.useContext)(mt),b=r.useMemo((()=>({message:Object.assign(Object.assign({},y.message),c),notification:Object.assign(Object.assign({},y.notification),u)})),[c,u,y.message,y.notification]),[k,E]=J(b.message);const[w,x]=pt(b.notification),[C,S]=Ge(),M=r.useMemo((()=>({message:k,notification:w,modal:C})),[k,w,C]),Z=!1===f?r.Fragment:f,$={className:g,style:s};return m(r.createElement(ht.Provider,{value:M},r.createElement(mt.Provider,{value:b},r.createElement(Z,Object.assign({},!1===f?void 0:$),S,E,x,n))))};gt.useApp=()=>r.useContext(ht);var yt=gt},248:function(e,t,n){"use strict";n.d(t,{Te:function(){return u},aG:function(){return i},hU:function(){return s},nx:function(){return l}});var r=n(2363),o=n(8793);const a=/^[\u4e00-\u9fa5]{2}$/,i=a.test.bind(a);function l(e){return"danger"===e?{danger:!0}:{type:e}}function c(e){return"string"==typeof e}function u(e){return"text"===e||"link"===e}function s(e,t){let n=!1;const a=[];return r.Children.forEach(e,(e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=a.length-1,n=a[t];a[t]=`${n}${e}`}else a.push(e);n=r})),r.Children.map(a,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&c(e.type)&&i(e.props.children)?(0,o.Tm)(e,{children:e.props.children.split("").join(n)}):c(e)?i(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,o.M2)(e)?r.createElement("span",null,e):e}(e,t)))}},4729:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ue}});var r=n(2363),o=n(8667),a=n.n(o),i=n(3377),l=n(5308),c=n(8742),u=n(8620),s=n(3407),f=n(1085),d=n(2365),p=n(6202),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=r.useContext(u.E_),{prefixCls:o,size:i,className:l}=e,c=m(e,["prefixCls","size","className"]),s=t("btn-group",o),[,,f]=(0,p.ZP)();let d="";switch(i){case"large":d="lg";break;case"small":d="sm"}const v=a()(s,{[`${s}-${d}`]:d,[`${s}-rtl`]:"rtl"===n},l,f);return r.createElement(h.Provider,{value:i},r.createElement("div",Object.assign({},c,{className:v})))},g=n(248);const y=(0,r.forwardRef)(((e,t)=>{const{className:n,style:o,children:i,prefixCls:l}=e,c=a()(`${l}-icon`,n);return r.createElement("span",{ref:t,className:c,style:o},i)}));var b=y,k=n(9519),E=n(4467);const w=(0,r.forwardRef)(((e,t)=>{let{prefixCls:n,className:o,style:i,iconClassName:l}=e;const c=a()(`${n}-loading-icon`,o);return r.createElement(b,{prefixCls:n,className:c,style:i,ref:t},r.createElement(k.Z,{className:l}))})),x=()=>({width:0,opacity:0,transform:"scale(0)"}),C=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var S=e=>{const{prefixCls:t,loading:n,existIcon:o,className:a,style:i}=e,l=!!n;return o?r.createElement(w,{prefixCls:t,className:a,style:i}):r.createElement(E.ZP,{visible:l,motionName:`${t}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:x,onAppearActive:C,onEnterStart:x,onEnterActive:C,onLeaveStart:C,onLeaveActive:x},((e,n)=>{let{className:o,style:l}=e;return r.createElement(w,{prefixCls:t,className:a,style:Object.assign(Object.assign({},i),l),ref:n,iconClassName:o})}))},M=n(87),Z=n(1034),$=n(8025),P=n(7584);const O=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var F=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},O(`${t}-primary`,o),O(`${t}-danger`,a)]}};const N=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,M.bf)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,Z.Qy)(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},_=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),T=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),L=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),R=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),z=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},_(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),I=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},R(e))}),j=e=>Object.assign({},I(e)),A=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),D=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},j(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),_(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),z(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},_(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),z(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),I(e))}),B=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},j(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),_(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),z(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},_(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),z(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),I(e))}),H=e=>Object.assign(Object.assign({},D(e)),{borderStyle:"dashed"}),W=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},_(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),A(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},_(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),A(e))}),V=e=>Object.assign(Object.assign(Object.assign({},_(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),A(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},A(e)),_(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),U=e=>{const{componentCls:t}=e;return{[`${t}-default`]:D(e),[`${t}-primary`]:B(e),[`${t}-dashed`]:H(e),[`${t}-link`]:W(e),[`${t}-text`]:V(e),[`${t}-ghost`]:z(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${(0,M.bf)(c)} ${(0,M.bf)(i)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:T(e)},{[`${n}${n}-round${t}`]:L(e)}]},K=e=>q((0,$.TS)(e,{fontSize:e.contentFontSize})),G=e=>{const t=(0,$.TS)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return q(t,`${e.componentCls}-sm`)},X=e=>{const t=(0,$.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return q(t,`${e.componentCls}-lg`)},Y=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Q=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,$.TS)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},J=e=>{const t=e.fontSize,n=e.fontSize,r=e.fontSizeLG;return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,paddingBlock:Math.max((e.controlHeight-t*e.lineHeight)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*e.lineHeight)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*e.lineHeight)/2-e.lineWidth,0),onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r}};var ee=(0,P.I$)("Button",(e=>{const t=Q(e);return[N(t),G(t),K(t),X(t),Y(t),U(t),F(t)]}),J,{unitless:{fontWeight:!0}}),te=n(5788);function ne(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function re(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ne(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const oe=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${(0,M.bf)(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,M.bf)(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var ae=(0,P.bk)(["Button","compact"],(e=>{const t=Q(e);return[(0,te.c)(t),re(t),oe(t)]}),J),ie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const{loading:p=!1,prefixCls:m,type:v="default",danger:y,shape:k="default",size:E,styles:w,disabled:x,className:C,rootClassName:M,children:Z,icon:$,ghost:P=!1,block:O=!1,htmlType:F="button",classNames:N,style:_={}}=e,T=ie(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:L,autoInsertSpaceInButton:R,direction:z,button:I}=(0,r.useContext)(u.E_),j=L("btn",m),[A,D,B]=ee(j),H=(0,r.useContext)(s.Z),W=null!=x?x:H,V=(0,r.useContext)(h),U=(0,r.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(p)),[p]),[q,K]=(0,r.useState)(U.loading),[G,X]=(0,r.useState)(!1),Y=(0,r.createRef)(),Q=(0,l.sQ)(t,Y),J=1===r.Children.count(Z)&&!$&&!(0,g.Te)(v);(0,r.useEffect)((()=>{let e=null;return U.delay>0?e=setTimeout((()=>{e=null,K(!0)}),U.delay):K(U.loading),function(){e&&(clearTimeout(e),e=null)}}),[U]),(0,r.useEffect)((()=>{if(!Q||!Q.current||!1===R)return;const e=Q.current.textContent;J&&(0,g.aG)(e)?G||X(!0):G&&X(!1)}),[Q]);const te=t=>{const{onClick:n}=e;q||W?t.preventDefault():null==n||n(t)};const ne=!1!==R,{compactSize:re,compactItemClassnames:oe}=(0,d.ri)(j,z),le={large:"lg",small:"sm",middle:void 0},ce=(0,f.Z)((e=>{var t,n;return null!==(n=null!==(t=null!=E?E:re)&&void 0!==t?t:V)&&void 0!==n?n:e})),ue=ce&&le[ce]||"",se=q?"loading":$,fe=(0,i.Z)(T,["navigate"]),de=a()(j,D,B,{[`${j}-${k}`]:"default"!==k&&k,[`${j}-${v}`]:v,[`${j}-${ue}`]:ue,[`${j}-icon-only`]:!Z&&0!==Z&&!!se,[`${j}-background-ghost`]:P&&!(0,g.Te)(v),[`${j}-loading`]:q,[`${j}-two-chinese-chars`]:G&&ne&&!q,[`${j}-block`]:O,[`${j}-dangerous`]:!!y,[`${j}-rtl`]:"rtl"===z},oe,C,M,null==I?void 0:I.className),pe=Object.assign(Object.assign({},null==I?void 0:I.style),_),me=a()(null==N?void 0:N.icon,null===(n=null==I?void 0:I.classNames)||void 0===n?void 0:n.icon),he=Object.assign(Object.assign({},(null==w?void 0:w.icon)||{}),(null===(o=null==I?void 0:I.styles)||void 0===o?void 0:o.icon)||{}),ve=$&&!q?r.createElement(b,{prefixCls:j,className:me,style:he},$):r.createElement(S,{existIcon:!!$,prefixCls:j,loading:!!q}),ge=Z||0===Z?(0,g.hU)(Z,J&&ne):null;if(void 0!==fe.href)return A(r.createElement("a",Object.assign({},fe,{className:a()(de,{[`${j}-disabled`]:W}),href:W?void 0:fe.href,style:pe,onClick:te,ref:Q,tabIndex:W?-1:0}),ve,ge));let ye=r.createElement("button",Object.assign({},T,{type:F,className:de,style:pe,onClick:te,disabled:W,ref:Q}),ve,ge,oe&&r.createElement(ae,{key:"compact",prefixCls:j}));return(0,g.Te)(v)||(ye=r.createElement(c.Z,{component:"Button",disabled:!!q},ye)),A(ye)},ce=(0,r.forwardRef)(le);ce.Group=v,ce.__ANT_BUTTON=!0;var ue=ce},3407:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(2363);const o=r.createContext(!1),a=e=>{let{children:t,disabled:n}=e;const a=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:a},t)};t.Z=o},1727:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(2363);const o=r.createContext(void 0),a=e=>{let{children:t,size:n}=e;const a=r.useContext(o);return r.createElement(o.Provider,{value:n||a},t)};t.Z=o},8620:function(e,t,n){"use strict";n.d(t,{E_:function(){return a},oR:function(){return o}});var r=n(2363);const o="anticon",a=r.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:i}=a},2259:function(e,t,n){"use strict";var r=n(6202);t.Z=e=>{const[,,,,t]=(0,r.ZP)();return t?`${e}-css-var`:""}},1085:function(e,t,n){"use strict";var r=n(2363),o=n(1727);t.Z=e=>{const t=r.useContext(o.Z);return r.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])}},2654:function(e,t,n){"use strict";n.d(t,{ZP:function(){return W}});var r=n(2363),o=n.t(r,2),a=n(87),i=n(9027),l=n(3754),c=n(7835),u=n(6975),s=n(5225),f=n(4033),d=n(7456);var p=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;r.useEffect((()=>(0,f.f)(t&&t.Modal)),[t]);const a=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(d.Z.Provider,{value:a},n)},m=n(3735),h=n(38),v=n(757),g=n(8620),y=n(1207),b=n(6877),k=n(4714),E=n(6592);const w=`-ant-${Date.now()}-${Math.random()}`;function x(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new b.C(e),a=(0,y.R_)(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new b.C(t.primaryColor),a=(0,y.R_)(e.toRgbString());a.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const i=new b.C(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(i,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);(0,k.Z)()&&(0,E.hq)(n,`${w}-dynamic-theme`)}var C=n(3407),S=n(1727);var M=function(){return{componentDisabled:(0,r.useContext)(C.Z),componentSize:(0,r.useContext)(S.Z)}},Z=n(6460);const $=Object.assign({},o),{useId:P}=$;var O=void 0===P?()=>"":P;var F=n(4467),N=n(6202);function _(e){const{children:t}=e,[,n]=(0,N.ZP)(),{motion:o}=n,a=r.useRef(!1);return a.current=a.current||!1===o,a.current?r.createElement(F.zt,{motion:o},t):t}var T=()=>null,L=n(4580),R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:f,anchor:d,form:y,locale:b,componentSize:k,direction:E,space:w,virtual:x,dropdownMatchSelectWidth:M,popupMatchSelectWidth:$,popupOverflow:P,legacyLocale:F,parentContext:N,iconPrefixCls:I,theme:j,componentDisabled:A,segmented:D,statistic:B,spin:H,calendar:W,carousel:V,cascader:U,collapse:q,typography:K,checkbox:G,descriptions:X,divider:Y,drawer:Q,skeleton:J,steps:ee,image:te,layout:ne,list:re,mentions:oe,modal:ae,progress:ie,result:le,slider:ce,breadcrumb:ue,menu:se,pagination:fe,input:de,empty:pe,badge:me,radio:he,rate:ve,switch:ge,transfer:ye,avatar:be,message:ke,tag:Ee,table:we,card:xe,tabs:Ce,timeline:Se,timePicker:Me,upload:Ze,notification:$e,tree:Pe,colorPicker:Oe,datePicker:Fe,rangePicker:Ne,flex:_e,wave:Te,dropdown:Le,warning:Re}=e,ze=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||N.getPrefixCls("");return t?`${o}-${t}`:o}),[N.getPrefixCls,e.prefixCls]),Ie=I||N.iconPrefixCls||g.oR,je=n||N.csp;(0,L.Z)(Ie,je);const Ae=function(e,t){(0,u.ln)("ConfigProvider");const n=e||{},r=!1!==n.inherit&&t?t:h.u_,o=O();return(0,l.Z)((()=>{var a,i;if(!e)return t;const l=Object.assign({},r.components);Object.keys(e.components||{}).forEach((t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])}));const c=`css-var-${o.replace(/:/g,"")}`,u=(null!==(a=n.cssVar)&&void 0!==a?a:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof n.cssVar?n.cssVar:{}),{key:"object"==typeof n.cssVar&&(null===(i=n.cssVar)||void 0===i?void 0:i.key)||c});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:l,cssVar:u})}),[n,r],((e,t)=>e.some(((e,n)=>{const r=t[n];return!(0,Z.Z)(e,r,!0)}))))}(j,N.theme);const De={csp:je,autoInsertSpaceInButton:o,alert:f,anchor:d,locale:b||F,direction:E,space:w,virtual:x,popupMatchSelectWidth:null!=$?$:M,popupOverflow:P,getPrefixCls:ze,iconPrefixCls:Ie,theme:Ae,segmented:D,statistic:B,spin:H,calendar:W,carousel:V,cascader:U,collapse:q,typography:K,checkbox:G,descriptions:X,divider:Y,drawer:Q,skeleton:J,steps:ee,image:te,input:de,layout:ne,list:re,mentions:oe,modal:ae,progress:ie,result:le,slider:ce,breadcrumb:ue,menu:se,pagination:fe,empty:pe,badge:me,radio:he,rate:ve,switch:ge,transfer:ye,avatar:be,message:ke,tag:Ee,table:we,card:xe,tabs:Ce,timeline:Se,timePicker:Me,upload:Ze,notification:$e,tree:Pe,colorPicker:Oe,datePicker:Fe,rangePicker:Ne,flex:_e,wave:Te,dropdown:Le,warning:Re},Be=Object.assign({},N);Object.keys(De).forEach((e=>{void 0!==De[e]&&(Be[e]=De[e])})),z.forEach((t=>{const n=e[t];n&&(Be[t]=n)}));const He=(0,l.Z)((()=>Be),Be,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),We=r.useMemo((()=>({prefixCls:Ie,csp:je})),[Ie,je]);let Ve=r.createElement(r.Fragment,null,r.createElement(T,{dropdownMatchSelectWidth:M}),t);const Ue=r.useMemo((()=>{var e,t,n,r;return(0,c.T)((null===(e=m.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=He.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=He.form)||void 0===r?void 0:r.validateMessages)||{},(null==y?void 0:y.validateMessages)||{})}),[He,null==y?void 0:y.validateMessages]);Object.keys(Ue).length>0&&(Ve=r.createElement(s.Z.Provider,{value:Ue},Ve)),b&&(Ve=r.createElement(p,{locale:b,_ANT_MARK__:"internalMark"},Ve)),(Ie||je)&&(Ve=r.createElement(i.Z.Provider,{value:We},Ve)),k&&(Ve=r.createElement(S.q,{size:k},Ve)),Ve=r.createElement(_,null,Ve);const qe=r.useMemo((()=>{const e=Ae||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=R(e,["algorithm","token","components","cssVar"]),l=t&&(!Array.isArray(t)||t.length>0)?(0,a.jG)(t):h.uH,c={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=l:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,a.jG)(r.algorithm)),delete r.algorithm),c[t]=r}));const u=Object.assign(Object.assign({},v.Z),n);return Object.assign(Object.assign({},i),{theme:l,token:u,components:c,override:Object.assign({override:u},c),cssVar:o})}),[Ae]);return j&&(Ve=r.createElement(h.Mj.Provider,{value:qe},Ve)),He.warning&&(Ve=r.createElement(u.G8.Provider,{value:He.warning},Ve)),void 0!==A&&(Ve=r.createElement(C.n,{disabled:A},Ve)),r.createElement(g.E_.Provider,{value:He},Ve)},H=e=>{const t=r.useContext(g.E_),n=r.useContext(d.Z);return r.createElement(B,Object.assign({parentContext:t,legacyLocale:n},e))};H.ConfigContext=g.E_,H.SizeContext=S.Z,H.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(I=t),void 0!==n&&(j=n),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?A=r:x(D(),r))},H.useConfig=M,Object.defineProperty(H,"SizeContext",{get:()=>S.Z});var W=H},5088:function(e,t,n){"use strict";n.d(t,{RV:function(){return c},Rk:function(){return u},Ux:function(){return f},aM:function(){return s},q3:function(){return i},qI:function(){return l}});var r=n(2363),o=n(1045),a=n(3377);const i=r.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),l=r.createContext(null),c=e=>{const t=(0,a.Z)(e,["prefixCls"]);return r.createElement(o.RV,Object.assign({},t))},u=r.createContext({prefixCls:""}),s=r.createContext({});const f=e=>{let{children:t,status:n,override:o}=e;const a=(0,r.useContext)(s),i=(0,r.useMemo)((()=>{const e=Object.assign({},a);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,a]);return r.createElement(s.Provider,{value:i},t)}},5225:function(e,t,n){"use strict";var r=n(2363);t.Z=(0,r.createContext)(void 0)},7456:function(e,t,n){"use strict";const r=(0,n(2363).createContext)(void 0);t.Z=r},3735:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},o={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};var a={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const i={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o),timePickerLocale:Object.assign({},a)};const l="${label} is not a valid ${type}";var c={locale:"en",Pagination:r,DatePicker:i,TimePicker:a,Calendar:i,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}}},7473:function(e,t,n){"use strict";var r=n(2363),o=n(7456),a=n(3735);t.Z=(e,t)=>{const n=r.useContext(o.Z);return[r.useMemo((()=>{var r;const o=t||a.Z[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]),r.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?a.Z.locale:e}),[n])]}},4033:function(e,t,n){"use strict";n.d(t,{A:function(){return c},f:function(){return l}});var r=n(3735);let o=Object.assign({},r.Z.Modal),a=[];const i=()=>a.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),r.Z.Modal);function l(e){if(e){const t=Object.assign({},e);return a.push(t),o=i(),()=>{a=a.filter((e=>e!==t)),o=i()}}o=Object.assign({},r.Z.Modal)}function c(){return o}},6432:function(e,t,n){"use strict";n.d(t,{B4:function(){return p},QA:function(){return s},eh:function(){return m}});var r=n(1034),o=n(3767),a=n(832),i=n(8025),l=n(7584),c=n(87);function u(e){return{position:e,inset:0}}const s=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},u("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},u("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:(0,o.J$)(e)}]},f=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,c.bf)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,c.bf)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,c.bf)(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},(0,r.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},d=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},p=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,i.TS)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},m=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${(0,c.bf)(e.paddingMD)} ${(0,c.bf)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,c.bf)(e.padding)} ${(0,c.bf)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,c.bf)(e.paddingXS)} ${(0,c.bf)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,c.bf)(2*e.padding)} ${(0,c.bf)(2*e.padding)} ${(0,c.bf)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});t.ZP=(0,l.I$)("Modal",(e=>{const t=p(e);return[f(t),d(t),s(t),(0,a._y)(t,"zoom")]}),m,{unitless:{titleLineHeight:!0}})},718:function(e,t,n){"use strict";n.d(t,{ZP:function(){return F}});var r=n(2363),o=n(6765),a=n(706),i=n(3867),l=n(3078),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},u=n(3298),s=function(e,t){return r.createElement(u.Z,(0,l.Z)({},e,{ref:t,icon:c}))};var f=r.forwardRef(s),d=n(8667),p=n.n(d),m=n(8620);var h=()=>r.createElement("svg",{width:"252",height:"294"},r.createElement("defs",null,r.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(0 .012)"},r.createElement("mask",{fill:"#fff"}),r.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),r.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),r.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),r.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),r.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),r.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),r.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),r.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),r.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),r.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),r.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),r.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),r.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),r.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),r.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),r.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),r.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),r.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),r.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),r.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),r.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),r.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),r.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),r.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),r.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),r.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),r.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),r.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),r.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),r.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),r.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),r.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),r.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),r.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),r.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),r.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),r.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),r.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),r.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"})));var v=()=>r.createElement("svg",{width:"254",height:"294"},r.createElement("defs",null,r.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),r.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(0 .067)"},r.createElement("mask",{fill:"#fff"}),r.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),r.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),r.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),r.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),r.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),r.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),r.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),r.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),r.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),r.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),r.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),r.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),r.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),r.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),r.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),r.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),r.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),r.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),r.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),r.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),r.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),r.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),r.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),r.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),r.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),r.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),r.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),r.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),r.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),r.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),r.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),r.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),r.createElement("mask",{fill:"#fff"}),r.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),r.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),r.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),r.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),r.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),r.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),r.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),r.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),r.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),r.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),r.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),g=n(87),y=n(7584),b=n(8025);const k=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:a,paddingXS:i,paddingLG:l,marginXS:c,lineHeight:u}=e;return{[t]:{padding:`${(0,g.bf)(e.calc(l).mul(2).equal())} ${(0,g.bf)(a)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${(0,g.bf)(l)} ${(0,g.bf)(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},E=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},w=e=>(e=>[k(e),E(e)])(e);var x=(0,y.I$)("Result",(e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,a=(0,b.TS)(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[w(a)]}),(e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:3*e.fontSizeHeading3,extraMargin:`${e.paddingLG}px 0 0 0`})));var C=()=>r.createElement("svg",{width:"251",height:"294"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),r.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),r.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),r.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),r.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),r.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),r.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),r.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),r.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),r.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),r.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),r.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),r.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),r.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),r.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),r.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),r.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),r.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),r.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),r.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),r.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),r.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),r.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),r.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),r.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),r.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),r.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),r.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),r.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),r.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),r.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),r.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),r.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),r.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),r.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),r.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));const S={success:o.Z,error:a.Z,info:i.Z,warning:f},M={404:h,500:v,403:C},Z=Object.keys(M),$=e=>{let{prefixCls:t,icon:n,status:o}=e;const a=p()(`${t}-icon`);if(Z.includes(`${o}`)){const e=M[o];return r.createElement("div",{className:`${a} ${t}-image`},r.createElement(e,null))}const i=r.createElement(S[o]);return null===n||!1===n?null:r.createElement("div",{className:a},n||i)},P=e=>{let{prefixCls:t,extra:n}=e;return n?r.createElement("div",{className:`${t}-extra`},n):null},O=e=>{let{prefixCls:t,className:n,rootClassName:o,subTitle:a,title:i,style:l,children:c,status:u="info",icon:s,extra:f}=e;const{getPrefixCls:d,direction:h,result:v}=r.useContext(m.E_),g=d("result",t),[y,b,k]=x(g),E=p()(g,`${g}-${u}`,n,null==v?void 0:v.className,o,{[`${g}-rtl`]:"rtl"===h},b,k),w=Object.assign(Object.assign({},null==v?void 0:v.style),l);return y(r.createElement("div",{className:E,style:w},r.createElement($,{prefixCls:g,status:u,icon:s}),r.createElement("div",{className:`${g}-title`},i),a&&r.createElement("div",{className:`${g}-subtitle`},a),r.createElement(P,{prefixCls:g,extra:f}),c&&r.createElement("div",{className:`${g}-content`},c)))};O.PRESENTED_IMAGE_403=M[403],O.PRESENTED_IMAGE_404=M[404],O.PRESENTED_IMAGE_500=M[500];var F=O},2365:function(e,t,n){"use strict";n.d(t,{BR:function(){return c},ri:function(){return l}});var r=n(8667),o=n.n(r),a=(n(6862),n(2363));const i=a.createContext(null),l=(e,t)=>{const n=a.useContext(i),r=a.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:a,isLastItem:i}=n,l="vertical"===r?"-vertical-":"-";return o()(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},c=e=>{let{children:t}=e;return a.createElement(i.Provider,{value:null},t)}},5050:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(2363),o=n(8667),a=n.n(o),i=n(3377);function l(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},a=o.noTrailing,i=void 0!==a&&a,l=o.noLeading,c=void 0!==l&&l,u=o.debounceMode,s=void 0===u?void 0:u,f=!1,d=0;function p(){r&&clearTimeout(r)}function m(){for(var n=arguments.length,o=new Array(n),a=0;ae?c?(d=Date.now(),i||(r=setTimeout(s?h:m,e))):m():!0!==i&&(r=setTimeout(s?h:m,void 0===s?e-u:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),f=!n},m}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}var c=n(8793),u=n(8620),s=n(87),f=n(1034),d=n(7584),p=n(8025);const m=new s.E4("antSpinMove",{to:{opacity:1}}),h=new s.E4("antRotate",{to:{transform:"rotate(405deg)"}}),v=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},(0,f.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:m,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:h,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}};var g=(0,d.I$)("Spin",(e=>{const t=(0,p.TS)(e,{spinDotDefault:e.colorTextDescription});return[v(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}})),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,spinning:n=!0,delay:o=0,className:s,rootClassName:f,size:d="default",tip:p,wrapperClassName:m,style:h,children:v,fullscreen:k}=e,E=y(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:w}=r.useContext(u.E_),x=w("spin",t),[C,S,M]=g(x),[Z,$]=r.useState((()=>n&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,o)));r.useEffect((()=>{if(n){const e=l(o,(()=>{$(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}$(!1)}),[o,n]);const P=r.useMemo((()=>void 0!==v&&!k),[v,k]);const{direction:O,spin:F}=r.useContext(u.E_),N=a()(x,null==F?void 0:F.className,{[`${x}-sm`]:"small"===d,[`${x}-lg`]:"large"===d,[`${x}-spinning`]:Z,[`${x}-show-text`]:!!p,[`${x}-fullscreen`]:k,[`${x}-fullscreen-show`]:k&&Z,[`${x}-rtl`]:"rtl"===O},s,f,S,M),_=a()(`${x}-container`,{[`${x}-blur`]:Z}),T=(0,i.Z)(E,["indicator"]),L=Object.assign(Object.assign({},null==F?void 0:F.style),h),R=r.createElement("div",Object.assign({},T,{style:L,className:N,"aria-live":"polite","aria-busy":Z}),function(e,t){const{indicator:n}=t,o=`${e}-dot`;return null===n?null:(0,c.l$)(n)?(0,c.Tm)(n,{className:a()(n.props.className,o)}):(0,c.l$)(b)?(0,c.Tm)(b,{className:a()(b.props.className,o)}):r.createElement("span",{className:a()(o,`${e}-dot-spin`)},r.createElement("i",{className:`${e}-dot-item`,key:1}),r.createElement("i",{className:`${e}-dot-item`,key:2}),r.createElement("i",{className:`${e}-dot-item`,key:3}),r.createElement("i",{className:`${e}-dot-item`,key:4}))}(x,e),p&&(P||k)?r.createElement("div",{className:`${x}-text`},p):null);return C(P?r.createElement("div",Object.assign({},T,{className:a()(`${x}-nested-loading`,m,S,M)}),Z&&r.createElement("div",{key:"loading"},R),r.createElement("div",{className:_,key:"container"},v)):R)};k.setDefaultIndicator=e=>{b=e};var E=k},5788:function(e,t,n){"use strict";function r(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${i}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function o(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,a=`${n}-compact`;return{[a]:Object.assign(Object.assign({},r(e,a,t)),o(n,a,t))}}n.d(t,{c:function(){return a}})},1034:function(e,t,n){"use strict";n.d(t,{Lx:function(){return c},Qy:function(){return f},Ro:function(){return i},Wf:function(){return a},dF:function(){return l},du:function(){return u},vS:function(){return o}});var r=n(87);const o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),l=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),c=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),u=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},s=e=>({outline:`${(0,r.bf)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),f=e=>({"&:focus-visible":Object.assign({},s(e))})},3767:function(e,t,n){"use strict";n.d(t,{J$:function(){return l}});var r=n(87),o=n(5130);const a=new r.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new r.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,l=t?"&":"";return[(0,o.R)(r,a,i,e.motionDurationMid,t),{[`\n ${l}${r}-enter,\n ${l}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${l}${r}-leave`]:{animationTimingFunction:"linear"}}]}},5130:function(e,t,n){"use strict";n.d(t,{R:function(){return a}});const r=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),a=function(e,t,n,a){const i=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},r(a)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},o(a)),{animationPlayState:"paused"}),[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},9601:function(e,t,n){"use strict";n.d(t,{Qt:function(){return l},Uw:function(){return i},fJ:function(){return a},ly:function(){return c},oN:function(){return m}});var r=n(87),o=n(5130);const a=new r.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),i=new r.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new r.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),c=new r.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),u=new r.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),s=new r.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),f=new r.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),d=new r.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),p={"slide-up":{inKeyframes:a,outKeyframes:i},"slide-down":{inKeyframes:l,outKeyframes:c},"slide-left":{inKeyframes:u,outKeyframes:s},"slide-right":{inKeyframes:f,outKeyframes:d}},m=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=p[t];return[(0,o.R)(r,a,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},832:function(e,t,n){"use strict";n.d(t,{_y:function(){return y},kr:function(){return a}});var r=n(87),o=n(5130);const a=new r.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),i=new r.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),l=new r.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),c=new r.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),u=new r.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),s=new r.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),f=new r.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),d=new r.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),p=new r.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),m=new r.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),h=new r.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),v=new r.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),g={zoom:{inKeyframes:a,outKeyframes:i},"zoom-big":{inKeyframes:l,outKeyframes:c},"zoom-big-fast":{inKeyframes:l,outKeyframes:c},"zoom-left":{inKeyframes:f,outKeyframes:d},"zoom-right":{inKeyframes:p,outKeyframes:m},"zoom-up":{inKeyframes:u,outKeyframes:s},"zoom-down":{inKeyframes:h,outKeyframes:v}},y=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=g[t];return[(0,o.R)(r,a,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},789:function(e,t,n){"use strict";n.d(t,{Z:function(){return kn}});var r=n(2363),o=n(6822),a=n(3078),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},l=n(3298),c=function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))};var u=r.forwardRef(c),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},f=function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:s}))};var d=r.forwardRef(f),p=n(8667),m=n.n(p),h=n(8914),v=n(433),g=n(4225),y=n(4326),b=n(6709),k=n(2197),E=n(2695),w=n(2242);var x=(0,r.createContext)(null),C=n(959),S=n(9102),M=n(2446),Z=n(5308),$=n(9221),P=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,a=e.indicatorSize,i=(0,r.useState)(),l=(0,g.Z)(i,2),c=l[0],u=l[1],s=(0,r.useRef)(),f=function(e){return"function"==typeof a?a(e):"number"==typeof a?a:e};function d(){$.Z.cancel(s.current)}return(0,r.useEffect)((function(){var e={};return t&&(n?(o?(e.right=t.right+t.width/2,e.transform="translateX(50%)"):(e.left=t.left+t.width/2,e.transform="translateX(-50%)"),e.width=f(t.width)):(e.top=t.top+t.height/2,e.transform="translateY(-50%)",e.height=f(t.height))),d(),s.current=(0,$.Z)((function(){u(e)})),d}),[t,n,o,a]),{style:c}},O={width:0,height:0,left:0,top:0};function F(e,t){var n=r.useRef(e),o=r.useState({}),a=(0,g.Z)(o,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,a({})}]}var N=Math.pow(.995,20);var _=n(3166);function T(e){var t=(0,r.useState)(0),n=(0,g.Z)(t,2),o=n[0],a=n[1],i=(0,r.useRef)(0),l=(0,r.useRef)();return l.current=e,(0,_.o)((function(){var e;null===(e=l.current)||void 0===e||e.call(l)}),[o]),function(){i.current===o&&(i.current+=1,a(i.current))}}var L={width:0,height:0,left:0,top:0,right:0};function R(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function z(e){return String(e).replace(/"/g,"TABS_DQ")}function I(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var j=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,a=e.locale,i=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null})),A=j;var D=r.forwardRef((function(e,t){var n,o=e.position,a=e.prefixCls,i=e.extra;if(!i)return null;var l={};return"object"!==(0,y.Z)(i)||r.isValidElement(i)?l.right=i:l=i,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(a,"-extra-content"),ref:t},n):null})),B=n(3847),H=n(7652),W=H.Z.ESC,V=H.Z.TAB;var U=(0,r.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,a=e.prefixCls,i=(0,r.useMemo)((function(){return"function"==typeof n?n():n}),[n]),l=(0,Z.sQ)(t,null==i?void 0:i.ref);return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:"".concat(a,"-arrow")}),r.cloneElement(i,{ref:(0,Z.Yr)(i)?l:void 0}))})),q={adjustX:1,adjustY:1},K=[0,0],G={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-4],targetOffset:K},top:{points:["bc","tc"],overflow:q,offset:[0,-4],targetOffset:K},topRight:{points:["br","tr"],overflow:q,offset:[0,-4],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,4],targetOffset:K},bottom:{points:["tc","bc"],overflow:q,offset:[0,4],targetOffset:K},bottomRight:{points:["tr","br"],overflow:q,offset:[0,4],targetOffset:K}},X=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Y(e,t){var n,o=e.arrow,i=void 0!==o&&o,l=e.prefixCls,c=void 0===l?"rc-dropdown":l,u=e.transitionName,s=e.animation,f=e.align,d=e.placement,p=void 0===d?"bottomLeft":d,v=e.placements,y=void 0===v?G:v,k=e.getPopupContainer,E=e.showAction,w=e.hideAction,x=e.overlayClassName,C=e.overlayStyle,S=e.visible,M=e.trigger,P=void 0===M?["hover"]:M,O=e.autoFocus,F=e.overlay,N=e.children,_=e.onVisibleChange,T=(0,b.Z)(e,X),L=r.useState(),R=(0,g.Z)(L,2),z=R[0],I=R[1],j="visible"in e?S:z,A=r.useRef(null),D=r.useRef(null),H=r.useRef(null);r.useImperativeHandle(t,(function(){return A.current}));var q=function(e){I(e),null==_||_(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,a=e.autoFocus,i=e.overlayRef,l=r.useRef(!1),c=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},u=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),l.current=!0,0))},s=function(e){switch(e.keyCode){case W:c();break;case V:var t=!1;l.current||(t=u()),t?e.preventDefault():c()}};r.useEffect((function(){return t?(window.addEventListener("keydown",s),a&&(0,$.Z)(u,3),function(){window.removeEventListener("keydown",s),l.current=!1}):function(){l.current=!1}}),[t])}({visible:j,triggerRef:H,onVisibleChange:q,autoFocus:O,overlayRef:D});var K,Y,Q,J=function(){return r.createElement(U,{ref:D,overlay:F,prefixCls:c,arrow:i})},ee=r.cloneElement(N,{className:m()(null===(n=N.props)||void 0===n?void 0:n.className,j&&(K=e.openClassName,void 0!==K?K:"".concat(c,"-open"))),ref:(0,Z.Yr)(N)?(0,Z.sQ)(H,N.ref):void 0}),te=w;return te||-1===P.indexOf("contextMenu")||(te=["click"]),r.createElement(B.Z,(0,a.Z)({builtinPlacements:y},T,{prefixCls:c,ref:A,popupClassName:m()(x,(0,h.Z)({},"".concat(c,"-show-arrow"),i)),popupStyle:C,action:P,showAction:E,hideAction:te,popupPlacement:p,popupAlign:f,popupTransitionName:u,popupAnimation:s,popupVisible:j,stretch:(Y=e.minOverlayWidthMatchTrigger,Q=e.alignPoint,("minOverlayWidthMatchTrigger"in e?Y:!Q)?"minWidth":""),popup:"function"==typeof F?J:J(),onPopupVisibleChange:q,onPopupClick:function(t){var n=e.onOverlayClick;I(!1),n&&n(t)},getPopupContainer:k}),ee)}var Q=r.forwardRef(Y),J=n(363),ee=n(6460),te=n(1850),ne=r.createContext(null);function re(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function oe(e){return re(r.useContext(ne),e)}var ae=n(3754),ie=["children","locked"],le=r.createContext(null);function ce(e){var t=e.children,n=e.locked,o=(0,b.Z)(e,ie),a=r.useContext(le),i=(0,ae.Z)((function(){return e=a,t=o,n=(0,v.Z)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[a,o],(function(e,t){return!(n||e[0]===t[0]&&(0,ee.Z)(e[1],t[1],!0))}));return r.createElement(le.Provider,{value:i},t)}var ue=[],se=r.createContext(null);function fe(){return r.useContext(se)}var de=r.createContext(ue);function pe(e){var t=r.useContext(de);return r.useMemo((function(){return void 0!==e?[].concat((0,C.Z)(t),[e]):t}),[t,e])}var me=r.createContext(null),he=r.createContext({}),ve=n(202);function ge(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,ve.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}function ye(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,C.Z)(e.querySelectorAll("*")).filter((function(e){return ge(e,t)}));return ge(e,t)&&n.unshift(e),n}var be=H.Z.LEFT,ke=H.Z.RIGHT,Ee=H.Z.UP,we=H.Z.DOWN,xe=H.Z.ENTER,Ce=H.Z.ESC,Se=H.Z.HOME,Me=H.Z.END,Ze=[Ee,we,be,ke];function $e(e,t){return ye(e,!0).filter((function(e){return t.has(e)}))}function Pe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=$e(e,t),a=o.length,i=o.findIndex((function(e){return n===e}));return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}var Oe=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var a=document.querySelector("[data-menu-id='".concat(re(t,e),"']"));a&&(n.add(a),o.set(a,e),r.set(e,a))})),{elements:n,key2element:r,element2key:o}};function Fe(e,t,n,o,a,i,l,c,u,s){var f=r.useRef(),d=r.useRef();d.current=t;var p=function(){$.Z.cancel(f.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var m=r.which;if([].concat(Ze,[xe,Ce,Se,Me]).includes(m)){var v=i(),g=Oe(v,o),y=g,b=y.elements,k=y.key2element,E=y.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(k.get(t),b),x=E.get(w),C=function(e,t,n,r){var o,a,i,l,c="prev",u="next",s="children",f="parent";if("inline"===e&&r===xe)return{inlineTrigger:!0};var d=(o={},(0,h.Z)(o,Ee,c),(0,h.Z)(o,we,u),o),p=(a={},(0,h.Z)(a,be,n?u:c),(0,h.Z)(a,ke,n?c:u),(0,h.Z)(a,we,s),(0,h.Z)(a,xe,s),a),m=(i={},(0,h.Z)(i,Ee,c),(0,h.Z)(i,we,u),(0,h.Z)(i,xe,s),(0,h.Z)(i,Ce,f),(0,h.Z)(i,be,n?s:f),(0,h.Z)(i,ke,n?f:s),i);switch(null===(l={inline:d,horizontal:p,vertical:m,inlineSub:d,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(e,1===l(x,!0).length,n,m);if(!C&&m!==Se&&m!==Me)return;(Ze.includes(m)||[Se,Me].includes(m))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=E.get(e);c(r),p(),f.current=(0,$.Z)((function(){d.current===r&&t.focus()}))}};if([Se,Me].includes(m)||C.sibling||!w){var M,Z,P=$e(M=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):a.current,b);Z=m===Se?P[0]:m===Me?P[P.length-1]:Pe(M,b,w,C.offset),S(Z)}else if(C.inlineTrigger)u(x);else if(C.offset>0)u(x,!0),p(),f.current=(0,$.Z)((function(){g=Oe(v,o);var e=w.getAttribute("aria-controls"),t=Pe(document.getElementById(e),g.elements);S(t)}),5);else if(C.offset<0){var O=l(x,!0),F=O[O.length-2],N=k.get(F);u(F,!1),S(N)}}null==s||s(r)}}var Ne="__RC_UTIL_PATH_SPLIT__",_e=function(e){return e.join(Ne)},Te="rc-menu-more";function Le(){var e=r.useState({}),t=(0,g.Z)(e,2)[1],n=(0,r.useRef)(new Map),o=(0,r.useRef)(new Map),a=r.useState([]),i=(0,g.Z)(a,2),l=i[0],c=i[1],u=(0,r.useRef)(0),s=(0,r.useRef)(!1),f=(0,r.useCallback)((function(e,r){var a=_e(r);o.current.set(a,e),n.current.set(e,a),u.current+=1;var i,l=u.current;i=function(){l===u.current&&(s.current||t({}))},Promise.resolve().then(i)}),[]),d=(0,r.useCallback)((function(e,t){var r=_e(t);o.current.delete(r),n.current.delete(e)}),[]),p=(0,r.useCallback)((function(e){c(e)}),[]),m=(0,r.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(Ne);return t&&l.includes(o[0])&&o.unshift(Te),o}),[l]),h=(0,r.useCallback)((function(e,t){return e.some((function(e){return m(e,!0).includes(t)}))}),[m]),v=(0,r.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Ne),r=new Set;return(0,C.Z)(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return r.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:f,unregisterPath:d,refreshOverflowKeys:p,isSubPathKey:h,getKeyPath:m,getKeys:function(){var e=(0,C.Z)(n.current.keys());return l.length&&e.push(Te),e},getSubPathKeys:v}}function Re(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(w.motionAppear=!1);var x=w.onVisibleChanged;return w.onVisibleChanged=function(e){return m.current||e||k(!0),null==x?void 0:x(e)},b?null:r.createElement(ce,{mode:l,locked:!m.current},r.createElement(mt.ZP,(0,a.Z)({visible:E},w,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(at,{id:t,className:n,style:o},i)})))}var vt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gt=["active"],yt=function(e){var t,n=e.style,o=e.className,i=e.title,l=e.eventKey,c=(e.warnKey,e.disabled),u=e.internalPopupClose,s=e.children,f=e.itemIcon,d=e.expandIcon,p=e.popupClassName,y=e.popupOffset,k=e.popupStyle,E=e.onClick,w=e.onMouseEnter,x=e.onMouseLeave,C=e.onTitleClick,S=e.onTitleMouseEnter,M=e.onTitleMouseLeave,Z=(0,b.Z)(e,vt),$=oe(l),P=r.useContext(le),O=P.prefixCls,F=P.mode,N=P.openKeys,_=P.disabled,T=P.overflowDisabled,L=P.activeKey,R=P.selectedKeys,z=P.itemIcon,I=P.expandIcon,j=P.onItemClick,A=P.onOpenChange,D=P.onActive,B=r.useContext(he)._internalRenderSubMenuItem,H=r.useContext(me).isSubPathKey,W=pe(),V="".concat(O,"-submenu"),U=_||c,q=r.useRef(),K=r.useRef();var G=null!=f?f:z,X=null!=d?d:I,Y=N.includes(l),Q=!T&&Y,ee=H(R,l),te=We(l,U,S,M),ne=te.active,re=(0,b.Z)(te,gt),ae=r.useState(!1),ie=(0,g.Z)(ae,2),ue=ie[0],se=ie[1],fe=function(e){U||se(e)},de=r.useMemo((function(){return ne||"inline"!==F&&(ue||H([L],l))}),[F,ne,L,ue,l,H]),ve=Ve(W.length),ge=Re((function(e){null==E||E(Ke(e)),j(e)})),ye=$&&"".concat($,"-popup"),be=r.createElement("div",(0,a.Z)({role:"menuitem",style:ve,className:"".concat(V,"-title"),tabIndex:U?null:-1,ref:q,title:"string"==typeof i?i:null,"data-menu-id":T&&$?null:$,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":ye,"aria-disabled":U,onClick:function(e){U||(null==C||C({key:l,domEvent:e}),"inline"===F&&A(l,!Y))},onFocus:function(){D(l)}},re),i,r.createElement(Ue,{icon:"horizontal"!==F?X:void 0,props:(0,v.Z)((0,v.Z)({},e),{},{isOpen:Q,isSubMenu:!0})},r.createElement("i",{className:"".concat(V,"-arrow")}))),ke=r.useRef(F);if("inline"!==F&&W.length>1?ke.current="vertical":ke.current=F,!T){var Ee=ke.current;be=r.createElement(pt,{mode:Ee,prefixCls:V,visible:!u&&Q&&"inline"!==F,popupClassName:p,popupOffset:y,popupStyle:k,popup:r.createElement(ce,{mode:"horizontal"===Ee?"vertical":Ee},r.createElement(at,{id:ye,ref:K},s)),disabled:U,onVisibleChange:function(e){"inline"!==F&&A(l,e)}},be)}var we=r.createElement(J.Z.Item,(0,a.Z)({role:"none"},Z,{component:"li",style:n,className:m()(V,"".concat(V,"-").concat(F),o,(t={},(0,h.Z)(t,"".concat(V,"-open"),Q),(0,h.Z)(t,"".concat(V,"-active"),de),(0,h.Z)(t,"".concat(V,"-selected"),ee),(0,h.Z)(t,"".concat(V,"-disabled"),U),t)),onMouseEnter:function(e){fe(!0),null==w||w({key:l,domEvent:e})},onMouseLeave:function(e){fe(!1),null==x||x({key:l,domEvent:e})}}),be,!T&&r.createElement(ht,{id:ye,open:Q,keyPath:W},s));return B&&(we=B(we,e,{selected:ee,active:de,open:Q,disabled:U})),r.createElement(ce,{onItemClick:ge,mode:"horizontal"===F?"vertical":F,itemIcon:G,expandIcon:X},we)};function bt(e){var t,n=e.eventKey,o=e.children,a=pe(n),i=lt(o,a),l=fe();return r.useEffect((function(){if(l)return l.registerPath(n,a),function(){l.unregisterPath(n,a)}}),[a]),t=l?i:r.createElement(yt,e,i),r.createElement(de.Provider,{value:a},t)}var kt=["className","title","eventKey","children"],Et=["children"],wt=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=(0,b.Z)(e,kt),l=r.useContext(le).prefixCls,c="".concat(l,"-item-group");return r.createElement("li",(0,a.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:m()(c,t)}),r.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof n?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function xt(e){var t=e.children,n=(0,b.Z)(e,Et),o=lt(t,pe(n.eventKey));return fe()?o:r.createElement(wt,(0,He.Z)(n,["warnKey"]),o)}function Ct(e){var t=e.className,n=e.style,o=r.useContext(le).prefixCls;return fe()?null:r.createElement("li",{role:"separator",className:m()("".concat(o,"-item-divider"),t),style:n})}var St=["label","children","key","type"];function Mt(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,y.Z)(e)){var n=e,o=n.label,i=n.children,l=n.key,c=n.type,u=(0,b.Z)(n,St),s=null!=l?l:"tmp-".concat(t);return i||"group"===c?"group"===c?r.createElement(xt,(0,a.Z)({key:s},u,{title:o}),Mt(i)):r.createElement(bt,(0,a.Z)({key:s},u,{title:o}),Mt(i)):"divider"===c?r.createElement(Ct,(0,a.Z)({key:s},u)):r.createElement(tt,(0,a.Z)({key:s},u),o)}return null})).filter((function(e){return e}))}function Zt(e,t,n){var r=e;return t&&(r=Mt(t)),lt(r,n)}var $t=["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"],Pt=[],Ot=r.forwardRef((function(e,t){var n,o,i=e,l=i.prefixCls,c=void 0===l?"rc-menu":l,u=i.rootClassName,s=i.style,f=i.className,d=i.tabIndex,p=void 0===d?0:d,y=i.items,E=i.children,w=i.direction,x=i.id,S=i.mode,M=void 0===S?"vertical":S,Z=i.inlineCollapsed,$=i.disabled,P=i.disabledOverflow,O=i.subMenuOpenDelay,F=void 0===O?.1:O,N=i.subMenuCloseDelay,_=void 0===N?.1:N,T=i.forceSubMenuRender,L=i.defaultOpenKeys,R=i.openKeys,z=i.activeKey,I=i.defaultActiveFirst,j=i.selectable,A=void 0===j||j,D=i.multiple,B=void 0!==D&&D,H=i.defaultSelectedKeys,W=i.selectedKeys,V=i.onSelect,U=i.onDeselect,q=i.inlineIndent,K=void 0===q?24:q,G=i.motion,X=i.defaultMotions,Y=i.triggerSubMenuAction,Q=void 0===Y?"hover":Y,re=i.builtinPlacements,oe=i.itemIcon,ae=i.expandIcon,ie=i.overflowedIndicator,le=void 0===ie?"...":ie,ue=i.overflowedIndicatorPopupClassName,fe=i.getPopupContainer,de=i.onClick,pe=i.onOpenChange,ve=i.onKeyDown,ge=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),ye=i._internalRenderSubMenuItem,be=(0,b.Z)(i,$t),ke=r.useMemo((function(){return Zt(E,y,Pt)}),[E,y]),Ee=r.useState(!1),we=(0,g.Z)(Ee,2),xe=we[0],Ce=we[1],Se=r.useRef(),Me=function(e){var t=(0,k.Z)(e,{value:e}),n=(0,g.Z)(t,2),o=n[0],a=n[1];return r.useEffect((function(){Ie+=1;var e="".concat(ze,"-").concat(Ie);a("rc-menu-uuid-".concat(e))}),[]),o}(x),Ze="rtl"===w;var Pe=(0,k.Z)(L,{value:R,postState:function(e){return e||Pt}}),Ne=(0,g.Z)(Pe,2),_e=Ne[0],je=Ne[1],Ae=function(e){function t(){je(e),null==pe||pe(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,te.flushSync)(t):t()},De=r.useState(_e),Be=(0,g.Z)(De,2),He=Be[0],We=Be[1],Ve=r.useRef(!1),Ue=r.useMemo((function(){return"inline"!==M&&"vertical"!==M||!Z?[M,!1]:["vertical",Z]}),[M,Z]),qe=(0,g.Z)(Ue,2),Ge=qe[0],Xe=qe[1],Ye="inline"===Ge,Qe=r.useState(Ge),Je=(0,g.Z)(Qe,2),et=Je[0],nt=Je[1],rt=r.useState(Xe),ot=(0,g.Z)(rt,2),at=ot[0],it=ot[1];r.useEffect((function(){nt(Ge),it(Xe),Ve.current&&(Ye?je(He):Ae(Pt))}),[Ge,Xe]);var lt=r.useState(0),ct=(0,g.Z)(lt,2),ut=ct[0],st=ct[1],ft=ut>=ke.length-1||"horizontal"!==et||P;r.useEffect((function(){Ye&&We(_e)}),[_e]),r.useEffect((function(){return Ve.current=!0,function(){Ve.current=!1}}),[]);var dt=Le(),pt=dt.registerPath,mt=dt.unregisterPath,ht=dt.refreshOverflowKeys,vt=dt.isSubPathKey,gt=dt.getKeyPath,yt=dt.getKeys,kt=dt.getSubPathKeys,Et=r.useMemo((function(){return{registerPath:pt,unregisterPath:mt}}),[pt,mt]),wt=r.useMemo((function(){return{isSubPathKey:vt}}),[vt]);r.useEffect((function(){ht(ft?Pt:ke.slice(ut+1).map((function(e){return e.key})))}),[ut,ft]);var xt=(0,k.Z)(z||I&&(null===(n=ke[0])||void 0===n?void 0:n.key),{value:z}),Ct=(0,g.Z)(xt,2),St=Ct[0],Mt=Ct[1],Ot=Re((function(e){Mt(e)})),Ft=Re((function(){Mt(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:Se.current,focus:function(e){var t,n,r=yt(),o=Oe(r,Me),a=o.elements,i=o.key2element,l=o.element2key,c=$e(Se.current,a),u=null!=St?St:c[0]?l.get(c[0]):null===(t=ke.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,s=i.get(u);u&&s&&(null==s||null===(n=s.focus)||void 0===n||n.call(s,e))}}}));var Nt=(0,k.Z)(H||[],{value:W,postState:function(e){return Array.isArray(e)?e:null==e?Pt:[e]}}),_t=(0,g.Z)(Nt,2),Tt=_t[0],Lt=_t[1],Rt=Re((function(e){null==de||de(Ke(e)),function(e){if(A){var t,n=e.key,r=Tt.includes(n);t=B?r?Tt.filter((function(e){return e!==n})):[].concat((0,C.Z)(Tt),[n]):[n],Lt(t);var o=(0,v.Z)((0,v.Z)({},e),{},{selectedKeys:t});r?null==U||U(o):null==V||V(o)}!B&&_e.length&&"inline"!==et&&Ae(Pt)}(e)})),zt=Re((function(e,t){var n=_e.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==et){var r=kt(e);n=n.filter((function(e){return!r.has(e)}))}(0,ee.Z)(_e,n,!0)||Ae(n,!0)})),It=Fe(et,St,Ze,Me,Se,yt,gt,Mt,(function(e,t){var n=null!=t?t:!_e.includes(e);zt(e,n)}),ve);r.useEffect((function(){Ce(!0)}),[]);var jt=r.useMemo((function(){return{_internalRenderMenuItem:ge,_internalRenderSubMenuItem:ye}}),[ge,ye]),At="horizontal"!==et||P?ke:ke.map((function(e,t){return r.createElement(ce,{key:e.key,overflowDisabled:t>ut},e)})),Dt=r.createElement(J.Z,(0,a.Z)({id:x,ref:Se,prefixCls:"".concat(c,"-overflow"),component:"ul",itemComponent:tt,className:m()(c,"".concat(c,"-root"),"".concat(c,"-").concat(et),f,(o={},(0,h.Z)(o,"".concat(c,"-inline-collapsed"),at),(0,h.Z)(o,"".concat(c,"-rtl"),Ze),o),u),dir:w,style:s,role:"menu",tabIndex:p,data:At,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ke.slice(-t):null;return r.createElement(bt,{eventKey:Te,title:le,disabled:ft,internalPopupClose:0===t,popupClassName:ue},n)},maxCount:"horizontal"!==et||P?J.Z.INVALIDATE:J.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){st(e)},onKeyDown:It},be));return r.createElement(he.Provider,{value:jt},r.createElement(ne.Provider,{value:Me},r.createElement(ce,{prefixCls:c,rootClassName:u,mode:et,openKeys:_e,rtl:Ze,disabled:$,motion:xe?G:null,defaultMotions:xe?X:null,activeKey:St,onActive:Ot,onInactive:Ft,selectedKeys:Tt,inlineIndent:K,subMenuOpenDelay:F,subMenuCloseDelay:_,forceSubMenuRender:T,builtinPlacements:re,triggerSubMenuAction:Q,getPopupContainer:fe,itemIcon:oe,expandIcon:ae,onItemClick:Rt,onOpenChange:zt},r.createElement(me.Provider,{value:wt},Dt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(se.Provider,{value:Et},ke)))))})),Ft=Ot;Ft.Item=tt,Ft.SubMenu=bt,Ft.ItemGroup=xt,Ft.Divider=Ct;var Nt=Ft,_t=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,a=e.tabs,i=e.locale,l=e.mobile,c=e.moreIcon,u=void 0===c?"More":c,s=e.moreTransitionName,f=e.style,d=e.className,p=e.editable,v=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,k=e.onTabClick,E=e.getPopupContainer,w=e.popupClassName,x=(0,r.useState)(!1),C=(0,g.Z)(x,2),S=C[0],M=C[1],Z=(0,r.useState)(null),$=(0,g.Z)(Z,2),P=$[0],O=$[1],F="".concat(o,"-more-popup"),N="".concat(n,"-dropdown"),_=null!==P?"".concat(F,"-").concat(P):null,T=null==i?void 0:i.dropdownAriaLabel;var L=r.createElement(Nt,{onClick:function(e){var t=e.key,n=e.domEvent;k(t,n),M(!1)},prefixCls:"".concat(N,"-menu"),id:F,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[P],"aria-label":void 0!==T?T:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,a=e.closeIcon,i=e.key,l=e.label,c=I(t,a,p,n);return r.createElement(tt,{key:i,id:"".concat(F,"-").concat(i),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(i),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(N,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}(e,i)}},a||p.removeIcon||"×"))})));function R(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===P}))||0,r=t.length,o=0;ot?"left":"right"})})),Y=(0,g.Z)(X,2),Q=Y[0],J=Y[1],ee=F(0,(function(e,t){!G&&w&&w({direction:e>t?"top":"bottom"})})),te=(0,g.Z)(ee,2),ne=te[0],re=te[1],oe=(0,r.useState)([0,0]),ae=(0,g.Z)(oe,2),ie=ae[0],le=ae[1],ce=(0,r.useState)([0,0]),ue=(0,g.Z)(ce,2),se=ue[0],fe=ue[1],de=(0,r.useState)([0,0]),pe=(0,g.Z)(de,2),me=pe[0],he=pe[1],ve=(0,r.useState)([0,0]),ge=(0,g.Z)(ve,2),ye=ge[0],be=ge[1],ke=function(e){var t=(0,r.useRef)([]),n=(0,r.useState)({}),o=(0,g.Z)(n,2)[1],a=(0,r.useRef)("function"==typeof e?e():e),i=T((function(){var e=a.current;t.current.forEach((function(t){e=t(e)})),t.current=[],a.current=e,o({})}));return[a.current,function(e){t.current.push(e),i()}]}(new Map),Ee=(0,g.Z)(ke,2),we=Ee[0],xe=Ee[1],Ce=function(e,t,n){return(0,r.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||O,a=o.left+o.width,i=0;i_e?_e:e}G&&s?(Ne=0,_e=Math.max(0,Me-Oe)):(Ne=Math.min(0,Oe-Me),_e=0);var Le=(0,r.useRef)(null),Re=(0,r.useState)(),ze=(0,g.Z)(Re,2),Ie=ze[0],je=ze[1];function Ae(){je(Date.now())}function De(){Le.current&&clearTimeout(Le.current)}!function(e,t){var n=(0,r.useState)(),o=(0,g.Z)(n,2),a=o[0],i=o[1],l=(0,r.useState)(0),c=(0,g.Z)(l,2),u=c[0],s=c[1],f=(0,r.useState)(0),d=(0,g.Z)(f,2),p=d[0],m=d[1],h=(0,r.useState)(),v=(0,g.Z)(h,2),y=v[0],b=v[1],k=(0,r.useRef)(),E=(0,r.useRef)(),w=(0,r.useRef)(null);w.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(k.current)},onTouchMove:function(e){if(a){e.preventDefault();var n=e.touches[0],r=n.screenX,o=n.screenY;i({x:r,y:o});var l=r-a.x,c=o-a.y;t(l,c);var f=Date.now();s(f),m(f-u),b({x:l,y:c})}},onTouchEnd:function(){if(a&&(i(null),b(null),y)){var e=y.x/p,n=y.y/p,r=Math.abs(e),o=Math.abs(n);if(Math.max(r,o)<.1)return;var l=e,c=n;k.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(k.current):t(20*(l*=N),20*(c*=N))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,a=Math.abs(n),i=Math.abs(r);a===i?o="x"===E.current?n:r:a>i?(o=n,E.current="x"):(o=r,E.current="y"),t(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function t(e){w.current.onTouchMove(e)}function n(e){w.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){w.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){w.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(V,(function(e,t){function n(e,t){e((function(e){return Te(e+t)}))}return!!Pe&&(G?n(J,e):n(re,t),De(),Ae(),!0)})),(0,r.useEffect)((function(){return De(),Ie&&(Le.current=setTimeout((function(){je(0)}),100)),De}),[Ie]);var Be=function(e,t,n,o,a,i,l){var c,u,s,f=l.tabs,d=l.tabPosition,p=l.rtl;return["top","bottom"].includes(d)?(c="width",u=p?"right":"left",s=Math.abs(n)):(c="height",u="top",s=-n),(0,r.useMemo)((function(){if(!f.length)return[0,0];for(var n=f.length,r=n,o=0;os+t){r=o-1;break}}for(var i=0,l=n-1;l>=0;l-=1)if((e.get(f[l].key)||L)[u]=r?[0,0]:[i,r]}),[e,t,o,a,i,s,d,f.map((function(e){return e.key})).join("_"),p])}(Ce,Oe,G?Q:ne,Me,Ze,$e,(0,v.Z)((0,v.Z)({},e),{},{tabs:j})),He=(0,g.Z)(Be,2),We=He[0],Ve=He[1],Ue=(0,M.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=Ce.get(e)||{width:0,height:0,left:0,right:0,top:0};if(G){var n=Q;s?t.rightQ+Oe&&(n=t.right+t.width-Oe):t.left<-Q?n=-t.left:t.left+t.width>-Q+Oe&&(n=-(t.left+t.width-Oe)),re(0),J(Te(n))}else{var r=ne;t.top<-ne?r=-t.top:t.top+t.height>-ne+Oe&&(r=-(t.top+t.height-Oe)),J(0),re(Te(r))}})),qe={};"top"===y||"bottom"===y?qe[s?"marginRight":"marginLeft"]=b:qe.marginTop=b;var Ke=j.map((function(e,t){var n=e.key;return r.createElement(Lt,{id:l,prefixCls:I,key:n,tab:e,style:0===t?void 0:qe,closable:e.closable,editable:d,active:n===u,renderWrapper:k,removeAriaLabel:null==p?void 0:p.removeAriaLabel,onClick:function(e){E(n,e)},onFocus:function(){Ue(n),Ae(),V.current&&(s||(V.current.scrollLeft=0),V.current.scrollTop=0)}})})),Ge=function(){return xe((function(){var e,t=new Map,n=null===(e=U.current)||void 0===e?void 0:e.getBoundingClientRect();return j.forEach((function(e){var r,o=e.key,a=null===(r=U.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(z(o),'"]'));if(a){var i=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,a=e.offsetLeft,i=e.getBoundingClientRect(),l=i.width,c=i.height,u=i.x,s=i.y;return Math.abs(l-n)<1?[l,c,u-t.x,s-t.y]:[n,r,a,o]}(a,n),l=(0,g.Z)(i,4),c=l[0],u=l[1],s=l[2],f=l[3];t.set(o,{width:c,height:u,left:s,top:f})}})),t}))};(0,r.useEffect)((function(){Ge()}),[j.map((function(e){return e.key})).join("_")]);var Xe=T((function(){var e=Rt(B),t=Rt(H),n=Rt(W);le([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Rt(K);he(r);var o=Rt(q);be(o);var a=Rt(U);fe([a[0]-r[0],a[1]-r[1]]),Ge()})),Ye=j.slice(0,We),Qe=j.slice(Ve+1),Je=[].concat((0,C.Z)(Ye),(0,C.Z)(Qe)),et=Ce.get(u),tt=P({activeTabOffset:et,horizontal:G,rtl:s,indicatorSize:$}).style;(0,r.useEffect)((function(){Ue()}),[u,Ne,_e,R(et),R(Ce),G]),(0,r.useEffect)((function(){Xe()}),[s]);var nt,rt,ot,at,it=!!Je.length,lt="".concat(I,"-nav-wrap");return G?s?(rt=Q>0,nt=Q!==_e):(nt=Q<0,rt=Q!==Ne):(ot=ne<0,at=ne!==Ne),r.createElement(S.Z,{onResize:Xe},r.createElement("div",{ref:(0,Z.x1)(t,B),role:"tablist",className:m()("".concat(I,"-nav"),o),style:i,onKeyDown:function(){Ae()}},r.createElement(D,{ref:H,position:"left",extra:f,prefixCls:I}),r.createElement(S.Z,{onResize:Xe},r.createElement("div",{className:m()(lt,(n={},(0,h.Z)(n,"".concat(lt,"-ping-left"),nt),(0,h.Z)(n,"".concat(lt,"-ping-right"),rt),(0,h.Z)(n,"".concat(lt,"-ping-top"),ot),(0,h.Z)(n,"".concat(lt,"-ping-bottom"),at),n)),ref:V},r.createElement(S.Z,{onResize:Xe},r.createElement("div",{ref:U,className:"".concat(I,"-nav-list"),style:{transform:"translate(".concat(Q,"px, ").concat(ne,"px)"),transition:Ie?"none":void 0}},Ke,r.createElement(A,{ref:K,prefixCls:I,locale:p,editable:d,style:(0,v.Z)((0,v.Z)({},0===Ke.length?void 0:qe),{},{visibility:it?"hidden":null})}),r.createElement("div",{className:m()("".concat(I,"-ink-bar"),(0,h.Z)({},"".concat(I,"-ink-bar-animated"),c.inkBar)),style:tt}))))),r.createElement(Tt,(0,a.Z)({},e,{removeAriaLabel:null==p?void 0:p.removeAriaLabel,ref:q,prefixCls:I,tabs:Je,className:!it&&Fe,tabMoving:!!Ie})),r.createElement(D,{ref:W,position:"right",extra:f,prefixCls:I})))})),jt=It,At=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,a=e.style,i=e.id,l=e.active,c=e.tabKey,u=e.children;return r.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!l,style:a,className:m()(n,l&&"".concat(n,"-active"),o),ref:t},u)}));var Dt=At,Bt=["renderTabBar"],Ht=["label","key"];var Wt=function(e){var t=e.renderTabBar,n=(0,b.Z)(e,Bt),o=r.useContext(x).tabs;return t?t((0,v.Z)((0,v.Z)({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=(0,b.Z)(e,Ht);return r.createElement(Dt,(0,a.Z)({tab:t,key:n,tabKey:n},o))}))}),jt):r.createElement(jt,n)},Vt=["key","forceRender","style","className","destroyInactiveTabPane"],Ut=function(e){var t=e.id,n=e.activeKey,o=e.animated,i=e.tabPosition,l=e.destroyInactiveTabPane,c=r.useContext(x),u=c.prefixCls,s=c.tabs,f=o.tabPane,d="".concat(u,"-tabpane");return r.createElement("div",{className:m()("".concat(u,"-content-holder"))},r.createElement("div",{className:m()("".concat(u,"-content"),"".concat(u,"-content-").concat(i),(0,h.Z)({},"".concat(u,"-content-animated"),f))},s.map((function(e){var i=e.key,c=e.forceRender,u=e.style,s=e.className,p=e.destroyInactiveTabPane,h=(0,b.Z)(e,Vt),g=i===n;return r.createElement(mt.ZP,(0,a.Z)({key:i,visible:g,forceRender:c,removeOnLeave:!(!l&&!p),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,l=e.className;return r.createElement(Dt,(0,a.Z)({},h,{prefixCls:d,id:t,tabKey:i,animated:f,active:g,style:(0,v.Z)((0,v.Z)({},u),o),className:m()(s,l),ref:n}))}))}))))},qt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Kt=0,Gt=r.forwardRef((function(e,t){var n,o=e.id,i=e.prefixCls,l=void 0===i?"rc-tabs":i,c=e.className,u=e.items,s=e.direction,f=e.activeKey,d=e.defaultActiveKey,p=e.editable,w=e.animated,C=e.tabPosition,S=void 0===C?"top":C,M=e.tabBarGutter,Z=e.tabBarStyle,$=e.tabBarExtraContent,P=e.locale,O=e.moreIcon,F=e.moreTransitionName,N=e.destroyInactiveTabPane,_=e.renderTabBar,T=e.onChange,L=e.onTabClick,R=e.onTabScroll,z=e.getPopupContainer,I=e.popupClassName,j=e.indicatorSize,A=(0,b.Z)(e,qt),D=r.useMemo((function(){return(u||[]).filter((function(e){return e&&"object"===(0,y.Z)(e)&&"key"in e}))}),[u]),B="rtl"===s,H=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,v.Z)({inkBar:!0},"object"===(0,y.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(w),W=(0,r.useState)(!1),V=(0,g.Z)(W,2),U=V[0],q=V[1];(0,r.useEffect)((function(){q((0,E.Z)())}),[]);var K=(0,k.Z)((function(){var e;return null===(e=D[0])||void 0===e?void 0:e.key}),{value:f,defaultValue:d}),G=(0,g.Z)(K,2),X=G[0],Y=G[1],Q=(0,r.useState)((function(){return D.findIndex((function(e){return e.key===X}))})),J=(0,g.Z)(Q,2),ee=J[0],te=J[1];(0,r.useEffect)((function(){var e,t=D.findIndex((function(e){return e.key===X}));-1===t&&(t=Math.max(0,Math.min(ee,D.length-1)),Y(null===(e=D[t])||void 0===e?void 0:e.key));te(t)}),[D.map((function(e){return e.key})).join("_"),X,ee]);var ne=(0,k.Z)(null,{value:o}),re=(0,g.Z)(ne,2),oe=re[0],ae=re[1];(0,r.useEffect)((function(){o||(ae("rc-tabs-".concat(Kt)),Kt+=1)}),[]);var ie={id:oe,activeKey:X,animated:H,tabPosition:S,rtl:B,mobile:U},le=(0,v.Z)((0,v.Z)({},ie),{},{editable:p,locale:P,moreIcon:O,moreTransitionName:F,tabBarGutter:M,onTabClick:function(e,t){null==L||L(e,t);var n=e!==X;Y(e),n&&(null==T||T(e))},onTabScroll:R,extra:$,style:Z,panes:null,getPopupContainer:z,popupClassName:I,indicatorSize:j});return r.createElement(x.Provider,{value:{tabs:D,prefixCls:l}},r.createElement("div",(0,a.Z)({ref:t,id:o,className:m()(l,"".concat(l,"-").concat(S),(n={},(0,h.Z)(n,"".concat(l,"-mobile"),U),(0,h.Z)(n,"".concat(l,"-editable"),p),(0,h.Z)(n,"".concat(l,"-rtl"),B),n),c)},A),r.createElement(Wt,(0,a.Z)({},le,{renderTabBar:_})),r.createElement(Ut,(0,a.Z)({destroyInactiveTabPane:N},ie,{animated:H}))))}));var Xt=Gt,Yt=n(8620),Qt=n(1085),Jt=n(7789);const en={motionAppear:!1,motionEnter:!0,motionLeave:!0};var tn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,ln.oN)(e,"slide-up"),(0,ln.oN)(e,"slide-down")]]};const un=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${(0,nn.bf)(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,nn.bf)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,nn.bf)(e.borderRadiusLG)} ${(0,nn.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,nn.bf)(e.borderRadiusLG)} ${(0,nn.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,nn.bf)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,nn.bf)(e.borderRadiusLG)} 0 0 ${(0,nn.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,nn.bf)(e.borderRadiusLG)} ${(0,nn.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},sn=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,rn.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,nn.bf)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},rn.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,nn.bf)(e.paddingXXS)} ${(0,nn.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},fn=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,nn.bf)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,nn.bf)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,nn.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,nn.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},dn=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,nn.bf)(e.borderRadius)} ${(0,nn.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,nn.bf)(e.borderRadius)} ${(0,nn.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,nn.bf)(e.borderRadius)} ${(0,nn.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,nn.bf)(e.borderRadius)} 0 0 ${(0,nn.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},pn=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,rn.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},mn=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,nn.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,nn.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,nn.bf)(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},hn=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,rn.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${(0,nn.bf)(e.paddingXS)}`,background:"transparent",border:`${(0,nn.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,nn.bf)(e.borderRadiusLG)} ${(0,nn.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},(0,rn.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),pn(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var vn=(0,on.I$)("Tabs",(e=>{const t=(0,an.TS)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,nn.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,nn.bf)(e.horizontalItemGutter)}`});return[dn(t),mn(t),fn(t),sn(t),un(t),hn(t),cn(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}})),gn=n(2259);var yn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{type:t,className:n,rootClassName:a,size:i,onEdit:l,hideAdd:c,centered:s,addIcon:f,popupClassName:p,children:h,items:v,animated:g,style:y,indicatorSize:b}=e,k=yn(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:E,moreIcon:w=r.createElement(u,null)}=k,{direction:x,tabs:C,getPrefixCls:S,getPopupContainer:M}=r.useContext(Yt.E_),Z=S("tabs",E),$=(0,gn.Z)(Z),[P,O,F]=vn(Z,$);let N;"editable-card"===t&&(N={onEdit:(e,t)=>{let{key:n,event:r}=t;null==l||l("add"===e?r:n,e)},removeIcon:r.createElement(o.Z,null),addIcon:f||r.createElement(d,null),showAdd:!0!==c});const _=S();const T=function(e,t){return e||function(e){return e.filter((e=>e))}((0,it.Z)(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,a=tn(r,["tab"]);return Object.assign(Object.assign({key:String(t)},a),{label:o})}return null})))}(v,h),L=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},en),{motionName:(0,Jt.m)(e,"switch")})),t}(Z,g),R=(0,Qt.Z)(i),z=Object.assign(Object.assign({},null==C?void 0:C.style),y);return P(r.createElement(Xt,Object.assign({direction:x,getPopupContainer:M,moreTransitionName:`${_}-slide-up`},k,{items:T,className:m()({[`${Z}-${R}`]:R,[`${Z}-card`]:["card","editable-card"].includes(t),[`${Z}-editable-card`]:"editable-card"===t,[`${Z}-centered`]:s},null==C?void 0:C.className,n,a,O,F,$),popupClassName:m()(p,O,F,$),style:z,editable:N,moreIcon:w,prefixCls:Z,animated:L,indicatorSize:null!=b?b:null==C?void 0:C.indicatorSize})))};bn.TabPane=()=>null;var kn=bn},38:function(e,t,n){"use strict";n.d(t,{Mj:function(){return u},uH:function(){return l},u_:function(){return c}});var r=n(2363),o=n(87),a=n(6122),i=n(757);const l=(0,o.jG)(a.Z),c={token:i.Z,override:{override:i.Z},hashed:!0},u=r.createContext(c)},6122:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(1207),o=n(3291);var a=n(757),i=n(7524);var l=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};var c=n(6877);const u=(e,t)=>new c.C(e).setAlpha(t).toRgbString(),s=(e,t)=>new c.C(e).darken(t).toHexString(),f=e=>{const t=(0,r.R_)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},d=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:u(r,.88),colorTextSecondary:u(r,.65),colorTextTertiary:u(r,.45),colorTextQuaternary:u(r,.25),colorFill:u(r,.15),colorFillSecondary:u(r,.06),colorFillTertiary:u(r,.04),colorFillQuaternary:u(r,.02),colorBgLayout:s(n,4),colorBgContainer:s(n,0),colorBgElevated:s(n,0),colorBgSpotlight:u(r,.85),colorBgBlur:"transparent",colorBorder:s(n,15),colorBorderSecondary:s(n,6)}};var p=n(1243);function m(e){const t=Object.keys(a.M).map((t=>{const n=(0,r.R_)(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,i.Z)(e,{generateColorPalettes:f,generateNeutralColorPalettes:d})),(0,p.Z)(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(0,o.Z)(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},l(r))}(e))}},757:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});const r={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});t.Z=o},7524:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6877);function o(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:a,colorWarning:i,colorError:l,colorInfo:c,colorPrimary:u,colorBgBase:s,colorTextBase:f}=e,d=n(u),p=n(a),m=n(i),h=n(l),v=n(c),g=o(s,f),y=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new r.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},3291:function(e,t){"use strict";t.Z=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}}},1243:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),a=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(a/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],a=n[0],i=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}}},6202:function(e,t,n){"use strict";n.d(t,{ZP:function(){return m},ID:function(){return f},NJ:function(){return s}});var r=n(2363),o=n(87),a="5.12.6",i=n(38),l=n(757),c=n(2528),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,a=u(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=(0,c.Z)(i),a&&Object.entries(a).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=u(n,["theme"]);let a=o;r&&(a=p(Object.assign(Object.assign({},i),o),{override:o},r)),i[t]=a})),i};function m(){const{token:e,hashed:t,theme:n,override:u,cssVar:m}=r.useContext(i.Mj),h=`${a}-${t||""}`,v=n||i.uH,[g,y,b]=(0,o.fp)(v,[l.Z,e],{salt:h,override:u,getComputedToken:p,formatToken:c.Z,cssVar:m&&{prefix:m.prefix,key:m.key,unitless:s,ignore:f,preserve:d}});return[v,b,t?y:"",g,m]}},2528:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(6877),o=n(757);function a(e){return e>=0&&e<=255}var i=function(e,t){const{r:n,g:o,b:i,a:l}=new r.C(e).toRgb();if(l<1)return e;const{r:c,g:u,b:s}=new r.C(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-c*(1-e))/e),l=Math.round((o-u*(1-e))/e),f=Math.round((i-s*(1-e))/e);if(a(t)&&a(l)&&a(f))return new r.C({r:t,g:l,b:f,a:Math.round(100*e)/100}).toRgbString()}return new r.C({r:n,g:o,b:i,a:1}).toRgbString()},l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete a[e]}));const c=Object.assign(Object.assign({},n),a),u=1200,s=1600;if(!1===c.motion){const e="0s";c.motionDurationFast=e,c.motionDurationMid=e,c.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},c),{colorFillContent:c.colorFillSecondary,colorFillContentHover:c.colorFill,colorFillAlter:c.colorFillQuaternary,colorBgContainerDisabled:c.colorFillTertiary,colorBorderBg:c.colorBgContainer,colorSplit:i(c.colorBorderSecondary,c.colorBgContainer),colorTextPlaceholder:c.colorTextQuaternary,colorTextDisabled:c.colorTextQuaternary,colorTextHeading:c.colorText,colorTextLabel:c.colorTextSecondary,colorTextDescription:c.colorTextTertiary,colorTextLightSolid:c.colorWhite,colorHighlight:c.colorError,colorBgTextHover:c.colorFillSecondary,colorBgTextActive:c.colorFill,colorIcon:c.colorTextTertiary,colorIconHover:c.colorText,colorErrorOutline:i(c.colorErrorBg,c.colorBgContainer),colorWarningOutline:i(c.colorWarningBg,c.colorBgContainer),fontSizeIcon:c.fontSizeSM,lineWidthFocus:4*c.lineWidth,lineWidth:c.lineWidth,controlOutlineWidth:2*c.lineWidth,controlInteractiveSize:c.controlHeight/2,controlItemBgHover:c.colorFillTertiary,controlItemBgActive:c.colorPrimaryBg,controlItemBgActiveHover:c.colorPrimaryBgHover,controlItemBgActiveDisabled:c.colorFill,controlTmpOutline:c.colorFillQuaternary,controlOutline:i(c.colorPrimaryBg,c.colorBgContainer),lineType:c.lineType,borderRadius:c.borderRadius,borderRadiusXS:c.borderRadiusXS,borderRadiusSM:c.borderRadiusSM,borderRadiusLG:c.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:c.sizeXXS,paddingXS:c.sizeXS,paddingSM:c.sizeSM,padding:c.size,paddingMD:c.sizeMD,paddingLG:c.sizeLG,paddingXL:c.sizeXL,paddingContentHorizontalLG:c.sizeLG,paddingContentVerticalLG:c.sizeMS,paddingContentHorizontal:c.sizeMS,paddingContentVertical:c.sizeSM,paddingContentHorizontalSM:c.size,paddingContentVerticalSM:c.sizeXS,marginXXS:c.sizeXXS,marginXS:c.sizeXS,marginSM:c.sizeSM,margin:c.size,marginMD:c.sizeMD,marginLG:c.sizeLG,marginXL:c.sizeXL,marginXXL:c.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:u,screenXLMin:u,screenXLMax:1599,screenXXL:s,screenXXLMin:s,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new r.C("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new r.C("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new r.C("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),a)}},7584:function(e,t,n){"use strict";n.d(t,{ZP:function(){return x},I$:function(){return S},bk:function(){return C}});var r=n(2363),o=n(87),a=(n(3931),n(8620)),i=n(1034),l=n(6202),c=n(3798),u=n(4627),s=n(2845),f=n(9393);var d=(0,u.Z)((function e(){(0,c.Z)(this,e)}));let p=function(e){(0,s.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;return(0,c.Z)(this,n),(r=t.call(this)).result=0,e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,u.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(d);const m="CALC_UNIT";function h(e){return"number"==typeof e?`${e}${m}`:e}let v=function(e){(0,s.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;return(0,c.Z)(this,n),(r=t.call(this)).result="",e instanceof n?r.result=`(${e.result})`:"number"==typeof e?r.result=h(e):"string"==typeof e&&(r.result=e),r}return(0,u.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${h(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${h(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{},n=new RegExp(`${m}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}]),n}(d);var g=e=>{const t="css"===e?v:p;return e=>new t(e)};var y=n(8025),b=n(4580);const k=(e,t,n)=>{var r;return"function"==typeof n?n((0,y.TS)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},E=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==o?void 0:o[t])||(null==o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null==o?void 0:o[t]))}))}let a=Object.assign(Object.assign({},n),o);return(null==r?void 0:r.format)&&(a=r.format(a)),Object.keys(a).forEach((e=>{a[e]===t[e]&&delete a[e]})),a},w=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function x(e,t,n){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const u=Array.isArray(e)?e:[e,e],[s]=u,f=u.join("-");return e=>{const[u,d,p,m,h]=(0,l.ZP)(),{getPrefixCls:v,iconPrefixCls:x,csp:C}=(0,r.useContext)(a.E_),S=v(),M=h?"css":"js",Z=g(M),{max:$,min:P}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.bf)(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.bf)(e))).join(",")})`}}}(M),O={theme:u,token:m,hashId:p,nonce:()=>null==C?void 0:C.nonce,clientOnly:c.clientOnly,order:c.order||-999};(0,o.xy)(Object.assign(Object.assign({},O),{clientOnly:!1,path:["Shared",S]}),(()=>[{"&":(0,i.Lx)(m)}])),(0,b.Z)(x,C);return[(0,o.xy)(Object.assign(Object.assign({},O),{path:[f,e,x]}),(()=>{if(!1===c.injectStyle)return[];const{token:r,flush:a}=(0,y.ZP)(m),l=k(s,d,n),u=`.${e}`,f=E(s,d,l,{deprecatedTokens:c.deprecatedTokens,format:c.format});h&&Object.keys(l).forEach((e=>{l[e]=`var(${(0,o.ks)(e,w(s,h.prefix))})`}));const v=(0,y.TS)(r,{componentCls:u,prefixCls:e,iconCls:`.${x}`,antCls:`.${S}`,calc:Z,max:$,min:P},h?l:f),g=t(v,{hashId:p,prefixCls:e,rootPrefixCls:S,iconPrefixCls:x});return a(s,f),[!1===c.resetStyle?null:(0,i.du)(v,e),g]})),p]}}const C=(e,t,n,r)=>{const o=x(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}},S=(e,t,n,a)=>{const i=x(e,t,n,a),c=((e,t,n)=>{function a(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:i={},injectStyle:c=!0}=null!=n?n:{},u={[a("zIndexPopup")]:!0};Object.keys(i).forEach((e=>{u[a(e)]=i[e]}));const s=r=>{let{rootCls:i,cssVar:c}=r;const[,s]=(0,l.ZP)();return(0,o.CI)({path:[e],prefix:c.prefix,key:null==c?void 0:c.key,unitless:Object.assign(Object.assign({},l.NJ),u),ignore:l.ID,token:s,scope:i},(()=>{const r=k(e,s,t),o=E(e,s,r,{format:null==n?void 0:n.format,deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((e=>{o[a(e)]=o[e],delete o[e]})),o})),null};return t=>{const[,,,,n]=(0,l.ZP)();return[o=>c&&n?r.createElement(r.Fragment,null,r.createElement(s,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,a);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=i(e),[r,o]=c(t);return[r,n,o]}}},8025:function(e,t,n){"use strict";n.d(t,{TS:function(){return a}});const r="undefined"!=typeof CSSINJS_STATISTIC;let o=!0;function a(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(a,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),o=!0,a}const i={};function l(){}t.ZP=e=>{let t,n=e,a=l;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get(e,n){return o&&t.add(n),e[n]}}),a=(e,n)=>{var r;i[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=i[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:a}}},4580:function(e,t,n){"use strict";var r=n(87),o=n(1034),a=n(6202);t.Z=(e,t)=>{const[n,i]=(0,a.ZP)();return(0,r.xy)({theme:n,token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,o.Ro)()),{[`.${e} .${e}-icon`]:{display:"block"}})}]))}},4987:function(e,t,n){"use strict";var r=n(6856).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(2362));t.default=o.default},2362:function(e,t,n){"use strict";var r=n(6856).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6702)),a=r(n(139));const i={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},o.default),timePickerLocale:Object.assign({},a.default)};i.lang.ok="确定";t.default=i},3320:function(e,t,n){"use strict";var r=n(6856).default;t.Z=void 0;var o=r(n(4421)),a=r(n(4987)),i=r(n(2362)),l=r(n(139));const c="${label}不是一个有效的${type}",u={locale:"zh-cn",Pagination:o.default,DatePicker:i.default,TimePicker:l.default,Calendar:a.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:c,method:c,array:c,object:c,number:c,date:c,boolean:c,integer:c,float:c,regexp:c,email:c,url:c,hex:c},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};t.Z=u},139:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}},3722:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(3078),o=n(4225),a=n(9804),i=n(2363),l=i.createContext({}),c=n(433),u=n(8667),s=n.n(u),f=n(5965),d=n(4710),p=n(7652),m=n(286);function h(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function v(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var g=n(4467),y=n(5308),b=i.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),k={width:0,height:0,overflow:"hidden",outline:"none"};var E=i.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,a=e.style,u=e.title,f=e.ariaId,d=e.footer,p=e.closable,m=e.closeIcon,h=e.onClose,v=e.children,g=e.bodyStyle,E=e.bodyProps,w=e.modalRender,x=e.onMouseDown,C=e.onMouseUp,S=e.holderRef,M=e.visible,Z=e.forceRender,$=e.width,P=e.height,O=e.classNames,F=e.styles,N=i.useContext(l).panel,_=(0,y.x1)(S,N),T=(0,i.useRef)(),L=(0,i.useRef)();i.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=T.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===L.current?T.current.focus():e||t!==T.current||L.current.focus()}}}));var R,z,I,j={};void 0!==$&&(j.width=$),void 0!==P&&(j.height=P),d&&(R=i.createElement("div",{className:s()("".concat(n,"-footer"),null==O?void 0:O.footer),style:(0,c.Z)({},null==F?void 0:F.footer)},d)),u&&(z=i.createElement("div",{className:s()("".concat(n,"-header"),null==O?void 0:O.header),style:(0,c.Z)({},null==F?void 0:F.header)},i.createElement("div",{className:"".concat(n,"-title"),id:f},u))),p&&(I=i.createElement("button",{type:"button",onClick:h,"aria-label":"Close",className:"".concat(n,"-close")},m||i.createElement("span",{className:"".concat(n,"-close-x")})));var A=i.createElement("div",{className:s()("".concat(n,"-content"),null==O?void 0:O.content),style:null==F?void 0:F.content},I,z,i.createElement("div",(0,r.Z)({className:s()("".concat(n,"-body"),null==O?void 0:O.body),style:(0,c.Z)((0,c.Z)({},g),null==F?void 0:F.body)},E),v),R);return i.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?f:null,"aria-modal":"true",ref:_,style:(0,c.Z)((0,c.Z)({},a),j),className:s()(n,o),onMouseDown:x,onMouseUp:C},i.createElement("div",{tabIndex:0,ref:T,style:k,"aria-hidden":"true"}),i.createElement(b,{shouldUpdate:M||Z},w?w(A):A),i.createElement("div",{tabIndex:0,ref:L,style:k,"aria-hidden":"true"}))})),w=i.forwardRef((function(e,t){var n=e.prefixCls,a=e.title,l=e.style,u=e.className,f=e.visible,d=e.forceRender,p=e.destroyOnClose,m=e.motionName,h=e.ariaId,y=e.onVisibleChanged,b=e.mousePosition,k=(0,i.useRef)(),w=i.useState(),x=(0,o.Z)(w,2),C=x[0],S=x[1],M={};function Z(){var e,t,n,r,o,a=(e=k.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=v(o),n.top+=v(o,!0),n);S(b?"".concat(b.x-a.left,"px ").concat(b.y-a.top,"px"):"")}return C&&(M.transformOrigin=C),i.createElement(g.ZP,{visible:f,onVisibleChanged:y,onAppearPrepare:Z,onEnterPrepare:Z,forceRender:d,motionName:m,removeOnLeave:p,ref:k},(function(o,f){var d=o.className,p=o.style;return i.createElement(E,(0,r.Z)({},e,{ref:t,title:a,ariaId:h,prefixCls:n,holderRef:f,style:(0,c.Z)((0,c.Z)((0,c.Z)({},p),l),M),className:s()(u,d)}))}))}));w.displayName="Content";var x=w;function C(e){var t=e.prefixCls,n=e.style,o=e.visible,a=e.maskProps,l=e.motionName,u=e.className;return i.createElement(g.ZP,{key:"mask",visible:o,motionName:l,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var l=e.className,f=e.style;return i.createElement("div",(0,r.Z)({ref:o,style:(0,c.Z)((0,c.Z)({},f),n),className:s()("".concat(t,"-mask"),l,u)},a))}))}n(2242);function S(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,a=e.zIndex,l=e.visible,u=void 0!==l&&l,v=e.keyboard,g=void 0===v||v,y=e.focusTriggerAfterClose,b=void 0===y||y,k=e.wrapStyle,E=e.wrapClassName,w=e.wrapProps,S=e.onClose,M=e.afterOpenChange,Z=e.afterClose,$=e.transitionName,P=e.animation,O=e.closable,F=void 0===O||O,N=e.mask,_=void 0===N||N,T=e.maskTransitionName,L=e.maskAnimation,R=e.maskClosable,z=void 0===R||R,I=e.maskStyle,j=e.maskProps,A=e.rootClassName,D=e.classNames,B=e.styles;var H=(0,i.useRef)(),W=(0,i.useRef)(),V=(0,i.useRef)(),U=i.useState(u),q=(0,o.Z)(U,2),K=q[0],G=q[1],X=(0,d.Z)();function Y(e){null==S||S(e)}var Q=(0,i.useRef)(!1),J=(0,i.useRef)(),ee=null;return z&&(ee=function(e){Q.current?Q.current=!1:W.current===e.target&&Y(e)}),(0,i.useEffect)((function(){u&&(G(!0),(0,f.Z)(W.current,document.activeElement)||(H.current=document.activeElement))}),[u]),(0,i.useEffect)((function(){return function(){clearTimeout(J.current)}}),[]),i.createElement("div",(0,r.Z)({className:s()("".concat(n,"-root"),A)},(0,m.Z)(e,{data:!0})),i.createElement(C,{prefixCls:n,visible:_&&u,motionName:h(n,T,L),style:(0,c.Z)((0,c.Z)({zIndex:a},I),null==B?void 0:B.mask),maskProps:j,className:null==D?void 0:D.mask}),i.createElement("div",(0,r.Z)({tabIndex:-1,onKeyDown:function(e){if(g&&e.keyCode===p.Z.ESC)return e.stopPropagation(),void Y(e);u&&e.keyCode===p.Z.TAB&&V.current.changeActive(!e.shiftKey)},className:s()("".concat(n,"-wrap"),E,null==D?void 0:D.wrapper),ref:W,onClick:ee,style:(0,c.Z)((0,c.Z)((0,c.Z)({zIndex:a},k),null==B?void 0:B.wrapper),{},{display:K?null:"none"})},w),i.createElement(x,(0,r.Z)({},e,{onMouseDown:function(){clearTimeout(J.current),Q.current=!0},onMouseUp:function(){J.current=setTimeout((function(){Q.current=!1}))},ref:V,closable:F,ariaId:X,prefixCls:n,visible:u&&K,onClose:Y,onVisibleChanged:function(e){if(e)(0,f.Z)(W.current,document.activeElement)||null===(t=V.current)||void 0===t||t.focus();else{if(G(!1),_&&H.current&&b){try{H.current.focus({preventScroll:!0})}catch(e){}H.current=null}K&&(null==Z||Z())}var t;null==M||M(e)},motionName:h(n,$,P)}))))}var M=function(e){var t=e.visible,n=e.getContainer,c=e.forceRender,u=e.destroyOnClose,s=void 0!==u&&u,f=e.afterClose,d=e.panelRef,p=i.useState(t),m=(0,o.Z)(p,2),h=m[0],v=m[1],g=i.useMemo((function(){return{panel:d}}),[d]);return i.useEffect((function(){t&&v(!0)}),[t]),c||!s||h?i.createElement(l.Provider,{value:g},i.createElement(a.Z,{open:t||c||h,autoDestroy:!1,getContainer:n,autoLock:t||h},i.createElement(S,(0,r.Z)({},e,{destroyOnClose:s,afterClose:function(){null==f||f(),v(!1)}})))):null};M.displayName="Dialog";var Z=M},1045:function(e,t,n){"use strict";n.d(t,{gN:function(){return be},zb:function(){return E},RV:function(){return Oe},aV:function(){return ke},ZM:function(){return w},ZP:function(){return Ie},cI:function(){return $e},qo:function(){return Re}});var r=n(2363),o=n(3078),a=n(6709),i=n(2010),l=n(2727),c=n(433),u=n(959),s=n(3798),f=n(4627),d=n(929),p=n(2845),m=n(9393),h=n(8914),v=n(6862),g=n(6460),y=n(2242),b="RC_FORM_INTERNAL_HOOKS",k=function(){(0,y.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},E=r.createContext({getFieldValue:k,getFieldsValue:k,getFieldError:k,getFieldWarning:k,getFieldsError:k,isFieldsTouched:k,isFieldTouched:k,isFieldValidating:k,isFieldsValidating:k,resetFields:k,setFields:k,setFieldValue:k,setFieldsValue:k,validateFields:k,submit:k,getInternalHooks:function(){return k(),{dispatch:k,initEntityValue:k,registerField:k,useSubscribe:k,setInitialValues:k,destroyForm:k,setCallbacks:k,registerWatch:k,getFields:k,setValidateMessages:k,setPreserve:k,getInitialValue:k}}}),w=r.createContext(null);function x(e){return null==e?[]:Array.isArray(e)?e:[e]}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=a)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function N(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function _(e,t,n){var r=0,o=e.length;!function a(i){if(i&&i.length)n(i);else{var l=r;r+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,D=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,B={integer:function(e){return B.number(e)&&parseInt(e,10)===e},float:function(e){return B.number(e)&&!B.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!B.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(A)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(I)return I;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),c=function(e){return e&&e.exact?a:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};c.v4=function(e){return e&&e.exact?i:new RegExp(""+t(e)+n+t(e),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp(""+t(e)+o+t(e),"g")};var u=c.v4().source,s=c.v6().source;return I=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+u+"|"+s+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(D)}},H="enum",W={required:j,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(F(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)j(e,t,n,r,o);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?B[a](t)||r.push(F(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(F(o.messages.types[a],e.fullField,e.type))}},range:function(e,t,n,r,o){var a="number"==typeof e.len,i="number"==typeof e.min,l="number"==typeof e.max,c=t,u=null,s="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(s?u="number":f?u="string":d&&(u="array"),!u)return!1;d&&(c=t.length),f&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?c!==e.len&&r.push(F(o.messages[u].len,e.fullField,e.len)):i&&!l&&ce.max?r.push(F(o.messages[u].max,e.fullField,e.max)):i&&l&&(ce.max)&&r.push(F(o.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[H]=Array.isArray(e[H])?e[H]:[],-1===e[H].indexOf(t)&&r.push(F(o.messages[H],e.fullField,e[H].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(F(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(F(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},V=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,a)&&!e.required)return n();W.required(e,t,r,i,o,a),N(t,a)||W.type(e,t,r,i,o)}n(i)},U={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return n();W.required(e,t,r,a,o,"string"),N(t,"string")||(W.type(e,t,r,a,o),W.range(e,t,r,a,o),W.pattern(e,t,r,a,o),!0===e.whitespace&&W.whitespace(e,t,r,a,o))}n(a)},method:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();W.required(e,t,r,a,o),void 0!==t&&W.type(e,t,r,a,o)}n(a)},number:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),N(t)&&!e.required)return n();W.required(e,t,r,a,o),void 0!==t&&(W.type(e,t,r,a,o),W.range(e,t,r,a,o))}n(a)},boolean:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();W.required(e,t,r,a,o),void 0!==t&&W.type(e,t,r,a,o)}n(a)},regexp:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();W.required(e,t,r,a,o),N(t)||W.type(e,t,r,a,o)}n(a)},integer:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();W.required(e,t,r,a,o),void 0!==t&&(W.type(e,t,r,a,o),W.range(e,t,r,a,o))}n(a)},float:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();W.required(e,t,r,a,o),void 0!==t&&(W.type(e,t,r,a,o),W.range(e,t,r,a,o))}n(a)},array:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();W.required(e,t,r,a,o,"array"),null!=t&&(W.type(e,t,r,a,o),W.range(e,t,r,a,o))}n(a)},object:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();W.required(e,t,r,a,o),void 0!==t&&W.type(e,t,r,a,o)}n(a)},enum:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();W.required(e,t,r,a,o),void 0!==t&&W.enum(e,t,r,a,o)}n(a)},pattern:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return n();W.required(e,t,r,a,o),N(t,"string")||W.pattern(e,t,r,a,o)}n(a)},date:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"date")&&!e.required)return n();var i;if(W.required(e,t,r,a,o),!N(t,"date"))i=t instanceof Date?t:new Date(t),W.type(e,i,r,a,o),i&&W.range(e,i.getTime(),r,a,o)}n(a)},url:V,hex:V,email:V,required:function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":typeof t;W.required(e,t,r,a,o,i),n(a)},any:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();W.required(e,t,r,a,o)}n(a)}};function q(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var K=q(),G=function(){function e(e){this.rules=null,this._messages=K,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=z(q(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var a=t,i=n,l=r;if("function"==typeof i&&(l=i,i={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,a),Promise.resolve(a);if(i.messages){var c=this.messages();c===K&&(c=q()),z(c,i.messages),i.messages=c}else i.messages=this.messages();var u={};(i.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=a[e];n.forEach((function(n){var i=n;"function"==typeof i.transform&&(a===t&&(a=C({},a)),r=a[e]=i.transform(r)),(i="function"==typeof i?{validator:i}:C({},i)).validator=o.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=o.getType(i),u[e]=u[e]||[],u[e].push({rule:i,value:r,source:a,field:e}))}))}));var s={};return L(u,i,(function(t,n){var r,o=t.rule,l=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function c(e,t){return C({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function u(r){void 0===r&&(r=[]);var u=Array.isArray(r)?r:[r];!i.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==o.message&&(u=[].concat(o.message));var f=u.map(R(o,a));if(i.first&&f.length)return s[o.field]=1,n(f);if(l){if(o.required&&!t.value)return void 0!==o.message?f=[].concat(o.message).map(R(o,a)):i.error&&(f=[i.error(o,F(i.messages.required,o.field))]),n(f);var d={};o.defaultField&&Object.keys(t.value).map((function(e){d[e]=o.defaultField})),d=C({},d,t.rule.fields);var p={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(c.bind(null,e))}));var m=new e(p);m.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),m.validate(t.value,t.rule.options||i,(function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(f)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,u,t.source,i);else if(o.validator){try{r=o.validator(o,t.value,u,t.source,i)}catch(e){null==console.error||console.error(e),i.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===r?u():!1===r?u("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?u(r):r instanceof Error&&u(r.message)}r&&r.then&&r.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,r=[],o={},i=0;i2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return de(t,e,n)}))}function de(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function pe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,le.Z)(t.target)&&e in t.target?t.target[e]:t}function me(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat((0,u.Z)(e.slice(0,n)),[o],(0,u.Z)(e.slice(n,t)),(0,u.Z)(e.slice(t+1,r))):a<0?[].concat((0,u.Z)(e.slice(0,t)),(0,u.Z)(e.slice(t+1,n+1)),[o],(0,u.Z)(e.slice(n+1,r))):e}var he=["name"],ve=[];function ge(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var ye=function(e){(0,p.Z)(n,e);var t=(0,m.Z)(n);function n(e){var o;((0,s.Z)(this,n),o=t.call(this,e),(0,h.Z)((0,d.Z)(o),"state",{resetCount:0}),(0,h.Z)((0,d.Z)(o),"cancelRegisterFunc",null),(0,h.Z)((0,d.Z)(o),"mounted",!1),(0,h.Z)((0,d.Z)(o),"touched",!1),(0,h.Z)((0,d.Z)(o),"dirty",!1),(0,h.Z)((0,d.Z)(o),"validatePromise",void 0),(0,h.Z)((0,d.Z)(o),"prevValidating",void 0),(0,h.Z)((0,d.Z)(o),"errors",ve),(0,h.Z)((0,d.Z)(o),"warnings",ve),(0,h.Z)((0,d.Z)(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,ue(r)),o.cancelRegisterFunc=null})),(0,h.Z)((0,d.Z)(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat((0,u.Z)(r),(0,u.Z)(t)):[]})),(0,h.Z)((0,d.Z)(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),(0,h.Z)((0,d.Z)(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),(0,h.Z)((0,d.Z)(o),"metaCache",null),(0,h.Z)((0,d.Z)(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=(0,c.Z)((0,c.Z)({},o.getMeta()),{},{destroy:e});(0,g.Z)(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),(0,h.Z)((0,d.Z)(o),"onStoreChange",(function(e,t,n){var r=o.props,a=r.shouldUpdate,i=r.dependencies,l=void 0===i?[]:i,c=r.onReset,u=n.store,s=o.getNamePath(),f=o.getValue(e),d=o.getValue(u),p=t&&fe(t,s);switch("valueUpdate"===n.type&&"external"===n.source&&f!==d&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=ve,o.warnings=ve,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=ve,o.warnings=ve,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(a)return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||ve),"warnings"in m&&(o.warnings=m.warnings||ve),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&fe(t,s,!0))return void o.reRender();if(a&&!s.length&&ge(a,e,u,f,d,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(ue).some((function(e){return fe(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||s.length||a)&&ge(a,e,u,f,d,n))return void o.reRender()}!0===a&&o.reRender()})),(0,h.Z)((0,d.Z)(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},a=r.triggerName,c=r.validateOnly,s=void 0!==c&&c,f=Promise.resolve().then((0,l.Z)((0,i.Z)().mark((function r(){var l,c,s,d,p,m,h;return(0,i.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(l=o.props,c=l.validateFirst,s=void 0!==c&&c,d=l.messageVariables,p=l.validateDebounce,m=o.getRules(),a&&(m=m.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||x(t).includes(a)}))),!p||!a){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,p)}));case 8:if(o.validatePromise===f){r.next=10;break}return r.abrupt("return",[]);case 10:return(h=oe(t,n,m,e,s,d)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ve;if(o.validatePromise===f){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,a=void 0===o?ve:o;t?r.push.apply(r,(0,u.Z)(a)):n.push.apply(n,(0,u.Z)(a))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",h);case 13:case"end":return r.stop()}}),r)}))));return s||(o.validatePromise=f,o.dirty=!0,o.errors=ve,o.warnings=ve,o.triggerMetaEvent(),o.reRender()),f})),(0,h.Z)((0,d.Z)(o),"isFieldValidating",(function(){return!!o.validatePromise})),(0,h.Z)((0,d.Z)(o),"isFieldTouched",(function(){return o.touched})),(0,h.Z)((0,d.Z)(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(b).getInitialValue)(o.getNamePath())})),(0,h.Z)((0,d.Z)(o),"getErrors",(function(){return o.errors})),(0,h.Z)((0,d.Z)(o),"getWarnings",(function(){return o.warnings})),(0,h.Z)((0,d.Z)(o),"isListField",(function(){return o.props.isListField})),(0,h.Z)((0,d.Z)(o),"isList",(function(){return o.props.isList})),(0,h.Z)((0,d.Z)(o),"isPreserve",(function(){return o.props.preserve})),(0,h.Z)((0,d.Z)(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),(0,h.Z)((0,d.Z)(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return(0,c.Z)((0,c.Z)({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=(0,v.Z)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),(0,h.Z)((0,d.Z)(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return(0,ce.Z)(e||t(!0),n)})),(0,h.Z)((0,d.Z)(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.trigger,r=t.validateTrigger,a=t.getValueFromEvent,i=t.normalize,l=t.valuePropName,u=t.getValueProps,s=t.fieldContext,f=void 0!==r?r:s.validateTrigger,d=o.getNamePath(),p=s.getInternalHooks,m=s.getFieldsValue,v=p(b).dispatch,g=o.getValue(),y=u||function(e){return(0,h.Z)({},l,e)},k=e[n],E=(0,c.Z)((0,c.Z)({},e),y(g));return E[n]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(d.keys=[].concat((0,u.Z)(d.keys.slice(0,t)),[d.id],(0,u.Z)(d.keys.slice(t))),a([].concat((0,u.Z)(n.slice(0,t)),[e],(0,u.Z)(n.slice(t))))):(d.keys=[].concat((0,u.Z)(d.keys),[d.id]),a([].concat((0,u.Z)(n),[e]))),d.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(d.keys=d.keys.filter((function(e,t){return!n.has(t)})),a(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(d.keys=me(d.keys,e,t),a(me(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map((function(e,t){var n=d.keys[t];return void 0===n&&(d.keys[t]=d.id,n=d.keys[t],d.id+=1),{name:t,key:n,isListField:!0}})),c,t)}))))},Ee=n(4225);var we="__@field_split__";function xe(e){return e.map((function(e){return"".concat((0,le.Z)(e),":").concat(e)})).join(we)}var Ce=function(){function e(){(0,s.Z)(this,e),(0,h.Z)(this,"kvs",new Map)}return(0,f.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(xe(e),t)}},{key:"get",value:function(e){return this.kvs.get(xe(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(xe(e))}},{key:"map",value:function(e){return(0,u.Z)(this.kvs.entries()).map((function(t){var n=(0,Ee.Z)(t,2),r=n[0],o=n[1],a=r.split(we);return e({key:a.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,Ee.Z)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),Se=Ce,Me=["name"],Ze=(0,f.Z)((function e(t){var n=this;(0,s.Z)(this,e),(0,h.Z)(this,"formHooked",!1),(0,h.Z)(this,"forceRootUpdate",void 0),(0,h.Z)(this,"subscribable",!0),(0,h.Z)(this,"store",{}),(0,h.Z)(this,"fieldEntities",[]),(0,h.Z)(this,"initialValues",{}),(0,h.Z)(this,"callbacks",{}),(0,h.Z)(this,"validateMessages",null),(0,h.Z)(this,"preserve",null),(0,h.Z)(this,"lastValidatePromise",null),(0,h.Z)(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),(0,h.Z)(this,"getInternalHooks",(function(e){return e===b?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,y.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),(0,h.Z)(this,"useSubscribe",(function(e){n.subscribable=e})),(0,h.Z)(this,"prevWithoutPreserves",null),(0,h.Z)(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=(0,Q.T)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=(0,Q.Z)(o,n,(0,ce.Z)(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),(0,h.Z)(this,"destroyForm",(function(){var e=new Se;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),(0,h.Z)(this,"getInitialValue",(function(e){var t=(0,ce.Z)(n.initialValues,e);return e.length?(0,Q.T)(t):t})),(0,h.Z)(this,"setCallbacks",(function(e){n.callbacks=e})),(0,h.Z)(this,"setValidateMessages",(function(e){n.validateMessages=e})),(0,h.Z)(this,"setPreserve",(function(e){n.preserve=e})),(0,h.Z)(this,"watchList",[]),(0,h.Z)(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),(0,h.Z)(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),(0,h.Z)(this,"timeoutId",null),(0,h.Z)(this,"warningUnhooked",(function(){0})),(0,h.Z)(this,"updateStore",(function(e){n.store=e})),(0,h.Z)(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),(0,h.Z)(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Se;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),(0,h.Z)(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=ue(e);return t.get(n)||{INVALIDATE_NAME_PATH:ue(e)}}))})),(0,h.Z)(this,"getFieldsValue",(function(e,t){var r,o,a;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===(0,le.Z)(e)&&(a=e.strict,o=e.filter),!0===r&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return i.forEach((function(e){var t,n,i,c,u="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(a){if(null!==(i=(c=e).isList)&&void 0!==i&&i.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var s="getMeta"in e?e.getMeta():null;o(s)&&l.push(u)}else l.push(u)})),se(n.store,l.map(ue))})),(0,h.Z)(this,"getFieldValue",(function(e){n.warningUnhooked();var t=ue(e);return(0,ce.Z)(n.store,t)})),(0,h.Z)(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:ue(e[n]),errors:[],warnings:[]}}))})),(0,h.Z)(this,"getFieldError",(function(e){n.warningUnhooked();var t=ue(e);return n.getFieldsError([t])[0].errors})),(0,h.Z)(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=ue(e);return n.getFieldsError([t])[0].warnings})),(0,h.Z)(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new Se,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,(0,u.Z)((0,u.Z)(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))(0,y.ZP)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var a=t.get(o);if(a&&a.size>1)(0,y.ZP)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var i=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==i||n.updateStore((0,Q.Z)(n.store,o,(0,u.Z)(a)[0].value))}}}}))})),(0,h.Z)(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore((0,Q.T)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(ue);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore((0,Q.Z)(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),(0,h.Z)(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=(0,a.Z)(e,Me),l=ue(o);r.push(l),"value"in i&&n.updateStore((0,Q.Z)(n.store,l,i.value)),n.notifyObservers(t,[l],{type:"setField",data:e})})),n.notifyWatch(r)})),(0,h.Z)(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,c.Z)((0,c.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),(0,h.Z)(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,ce.Z)(n.store,r)&&n.updateStore((0,Q.Z)(n.store,r,t))}})),(0,h.Z)(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),(0,h.Z)(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||a.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every((function(e){return!de(e.getNamePath(),t)}))){var l=n.store;n.updateStore((0,Q.Z)(l,t,i,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),(0,h.Z)(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,a=e.triggerName;n.validateFields([o],{triggerName:a})}})),(0,h.Z)(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=(0,c.Z)((0,c.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),(0,h.Z)(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,u.Z)(r))}),r})),(0,h.Z)(this,"updateValue",(function(e,t){var r=ue(e),o=n.store;n.updateStore((0,Q.Z)(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var a=n.triggerDependenciesUpdate(o,r),i=n.callbacks.onValuesChange;i&&i(se(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,u.Z)(a)))})),(0,h.Z)(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,Q.T)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),(0,h.Z)(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),(0,h.Z)(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Se;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=ue(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),(0,h.Z)(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var a=new Se;t.forEach((function(e){var t=e.name,n=e.errors;a.set(t,n)})),o.forEach((function(e){e.errors=a.get(e.name)||e.errors}))}var i=o.filter((function(t){var n=t.name;return fe(e,n)}));i.length&&r(i,o)}})),(0,h.Z)(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var a=!!r,i=a?r.map(ue):[],l=[],s=String(Date.now()),f=new Set,d=o||{},p=d.recursive,m=d.dirty;n.getFieldEntities(!0).forEach((function(e){if(a||i.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!m||e.isFieldDirty())){var t=e.getNamePath();if(f.add(t.join(s)),!a||fe(i,t,p)){var r=e.validateRules((0,c.Z)({validateMessages:(0,c.Z)((0,c.Z)({},Y),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,(0,u.Z)(n)):r.push.apply(r,(0,u.Z)(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var h=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,a){e.forEach((function(e,i){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[i]=e,n>0||(t&&a(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=h,h.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var v=h.then((function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==h})}));v.catch((function(e){return e}));var g=i.filter((function(e){return f.has(e.join(s))}));return n.triggerOnFieldsChange(g),v})),(0,h.Z)(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));var $e=function(e){var t=r.useRef(),n=r.useState({}),o=(0,Ee.Z)(n,2)[1];if(!t.current)if(e)t.current=e;else{var a=new Ze((function(){o({})}));t.current=a.getForm()}return[t.current]},Pe=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Oe=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,a=e.children,i=r.useContext(Pe),l=r.useRef({});return r.createElement(Pe.Provider,{value:(0,c.Z)((0,c.Z)({},i),{},{validateMessages:(0,c.Z)((0,c.Z)({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=(0,c.Z)((0,c.Z)({},l.current),{},(0,h.Z)({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=(0,c.Z)({},l.current);delete t[e],l.current=t,i.unregisterForm(e)}})},a)},Fe=Pe,Ne=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],_e=function(e,t){var n=e.name,i=e.initialValues,l=e.fields,s=e.form,f=e.preserve,d=e.children,p=e.component,m=void 0===p?"form":p,h=e.validateMessages,v=e.validateTrigger,g=void 0===v?"onChange":v,y=e.onValuesChange,k=e.onFieldsChange,x=e.onFinish,C=e.onFinishFailed,S=(0,a.Z)(e,Ne),M=r.useContext(Fe),Z=$e(s),$=(0,Ee.Z)(Z,1)[0],P=$.getInternalHooks(b),O=P.useSubscribe,F=P.setInitialValues,N=P.setCallbacks,_=P.setValidateMessages,T=P.setPreserve,L=P.destroyForm;r.useImperativeHandle(t,(function(){return $})),r.useEffect((function(){return M.registerForm(n,$),function(){M.unregisterForm(n)}}),[M,$,n]),_((0,c.Z)((0,c.Z)({},M.validateMessages),h)),N({onValuesChange:y,onFieldsChange:function(e){if(M.triggerFormChange(n,e),k){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,Y.Z)((function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)}));e.current=a},t]}(),u=(0,a.Z)(c,2),s=u[0],d=u[1];var p=t?J:Q;return X((function(){if(i!==Z&&i!==F){var e=p.indexOf(i),t=p[e+1],r=n(i);r===ee?l(t,!0):t&&s((function(e){function n(){e.isCanceled()||l(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),f.useEffect((function(){return function(){d()}}),[]),[function(){l($,!0)},i]};var oe=function(e){var t=e;"object"===(0,i.Z)(e)&&(t=e.transitionSupport);var n=f.forwardRef((function(e,n){var i=e.visible,l=void 0===i||i,d=e.removeOnLeave,p=void 0===d||d,h=e.forceRender,v=e.children,g=e.motionName,y=e.leavedClassName,b=e.eventProps,k=function(e,n){return!(!e.motionName||!t||!1===n)}(e,f.useContext(m).motion),Z=(0,f.useRef)(),F=(0,f.useRef)();var _=function(e,t,n,i){var l=i.motionEnter,c=void 0===l||l,u=i.motionAppear,s=void 0===u||u,d=i.motionLeave,p=void 0===d||d,m=i.motionDeadline,h=i.motionLeaveImmediately,v=i.onAppearPrepare,g=i.onEnterPrepare,y=i.onLeavePrepare,b=i.onAppearStart,k=i.onEnterStart,E=i.onLeaveStart,Z=i.onAppearActive,F=i.onEnterActive,_=i.onLeaveActive,T=i.onAppearEnd,L=i.onEnterEnd,R=i.onLeaveEnd,z=i.onVisibleChanged,I=(0,w.Z)(),j=(0,a.Z)(I,2),A=j[0],D=j[1],B=(0,w.Z)(x),H=(0,a.Z)(B,2),W=H[0],V=H[1],U=(0,w.Z)(null),q=(0,a.Z)(U,2),K=q[0],Y=q[1],Q=(0,f.useRef)(!1),J=(0,f.useRef)(null);function oe(){return n()}var ae=(0,f.useRef)(!1);function ie(){V(x,!0),Y(null,!0)}function le(e){var t=oe();if(!e||e.deadline||e.target===t){var n,r=ae.current;W===C&&r?n=null==T?void 0:T(t,e):W===S&&r?n=null==L?void 0:L(t,e):W===M&&r&&(n=null==R?void 0:R(t,e)),W!==x&&r&&!1!==n&&ie()}}var ce=G(le),ue=(0,a.Z)(ce,1)[0],se=function(e){var t,n,o;switch(e){case C:return t={},(0,r.Z)(t,$,v),(0,r.Z)(t,P,b),(0,r.Z)(t,O,Z),t;case S:return n={},(0,r.Z)(n,$,g),(0,r.Z)(n,P,k),(0,r.Z)(n,O,F),n;case M:return o={},(0,r.Z)(o,$,y),(0,r.Z)(o,P,E),(0,r.Z)(o,O,_),o;default:return{}}},fe=f.useMemo((function(){return se(W)}),[W]),de=re(W,!e,(function(e){if(e===$){var t=fe[$];return t?t(oe()):ee}var n;return he in fe&&Y((null===(n=fe[he])||void 0===n?void 0:n.call(fe,oe(),null))||null),he===O&&(ue(oe()),m>0&&(clearTimeout(J.current),J.current=setTimeout((function(){le({deadline:!0})}),m))),he===N&&ie(),te})),pe=(0,a.Z)(de,2),me=pe[0],he=pe[1],ve=ne(he);ae.current=ve,X((function(){D(t);var n,r=Q.current;Q.current=!0,!r&&t&&s&&(n=C),r&&t&&c&&(n=S),(r&&!t&&p||!r&&h&&!t&&p)&&(n=M);var o=se(n);n&&(e||o[$])?(V(n),me()):V(x)}),[t]),(0,f.useEffect)((function(){(W===C&&!s||W===S&&!c||W===M&&!p)&&V(x)}),[s,c,p]),(0,f.useEffect)((function(){return function(){Q.current=!1,clearTimeout(J.current)}}),[]);var ge=f.useRef(!1);(0,f.useEffect)((function(){A&&(ge.current=!0),void 0!==A&&W===x&&((ge.current||A)&&(null==z||z(A)),ge.current=!0)}),[A,W]);var ye=K;return fe[$]&&he===P&&(ye=(0,o.Z)({transition:"none"},ye)),[W,he,ye,null!=A?A:t]}(k,l,(function(){try{return Z.current instanceof HTMLElement?Z.current:(0,u.Z)(F.current)}catch(e){return null}}),e),T=(0,a.Z)(_,4),L=T[0],R=T[1],z=T[2],I=T[3],j=f.useRef(I);I&&(j.current=!0);var A,D=f.useCallback((function(e){Z.current=e,(0,s.mH)(n,e)}),[n]),B=(0,o.Z)((0,o.Z)({},b),{},{visible:l});if(v)if(L===x)A=I?v((0,o.Z)({},B),D):!p&&j.current&&y?v((0,o.Z)((0,o.Z)({},B),{},{className:y}),D):h||!p&&!y?v((0,o.Z)((0,o.Z)({},B),{},{style:{display:"none"}}),D):null;else{var H,W;R===$?W="prepare":ne(R)?W="active":R===P&&(W="start");var V=K(g,"".concat(L,"-").concat(W));A=v((0,o.Z)((0,o.Z)({},B),{},{className:c()(K(g,L),(H={},(0,r.Z)(H,V,V&&W),(0,r.Z)(H,g,"string"==typeof g),H)),style:z}),D)}else A=null;f.isValidElement(A)&&(0,s.Yr)(A)&&(A.ref||(A=f.cloneElement(A,{ref:D})));return f.createElement(E,{ref:F},A)}));return n.displayName="CSSMotion",n}(V),ae=n(3078),ie=n(929),le="add",ce="keep",ue="remove",se="removed";function fe(e){var t;return t=e&&"object"===(0,i.Z)(e)&&"key"in e?e:{key:e},(0,o.Z)((0,o.Z)({},t),{},{key:String(t.key)})}function de(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(fe)}var pe=["component","children","onVisibleChanged","onAllRemoved"],me=["status"],he=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,n=function(e){(0,y.Z)(a,e);var n=(0,b.Z)(a);function a(){var e;(0,v.Z)(this,a);for(var t=arguments.length,i=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,a=t.length,i=de(e),l=de(t);i.forEach((function(e){for(var t=!1,i=r;i1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ue}))).forEach((function(t){t.key===e&&(t.status=ce)}))})),n}(r,a);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==se||e.status!==ue}))}}}]),a}(f.Component);return(0,r.Z)(n,"defaultProps",{component:"div"}),n}(V),ge=oe},363:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(3078),o=n(433),a=n(4225),i=n(6709),l=n(2363),c=n(8667),u=n.n(c),s=n(9102),f=n(3166),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0;function m(e,t){var n=e.prefixCls,a=e.invalidate,c=e.item,f=e.renderItem,m=e.responsive,h=e.responsiveDisabled,v=e.registerSize,g=e.itemKey,y=e.className,b=e.style,k=e.children,E=e.display,w=e.order,x=e.component,C=void 0===x?"div":x,S=(0,i.Z)(e,d),M=m&&!E;function Z(e){v(g,e)}l.useEffect((function(){return function(){Z(null)}}),[]);var $,P=f&&c!==p?f(c):k;a||($={opacity:M?0:1,height:M?0:p,overflowY:M?"hidden":p,order:m?w:p,pointerEvents:M?"none":p,position:M?"absolute":p});var O={};M&&(O["aria-hidden"]=!0);var F=l.createElement(C,(0,r.Z)({className:u()(!a&&n,y),style:(0,o.Z)((0,o.Z)({},$),b)},O,S,{ref:t}),P);return m&&(F=l.createElement(s.Z,{onResize:function(e){Z(e.offsetWidth)},disabled:h},F)),F}var h=l.forwardRef(m);h.displayName="Item";var v=h,g=n(2446),y=n(1850),b=n(9221);function k(){var e=l.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,b.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,y.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function E(e,t){var n=l.useState(t),r=(0,a.Z)(n,2),o=r[0],i=r[1];return[o,(0,g.Z)((function(t){e((function(){i(t)}))}))]}var w=l.createContext(null),x=["component"],C=["className"],S=["className"],M=function(e,t){var n=l.useContext(w);if(!n){var o=e.component,a=void 0===o?"div":o,c=(0,i.Z)(e,x);return l.createElement(a,(0,r.Z)({},c,{ref:t}))}var s=n.className,f=(0,i.Z)(n,C),d=e.className,p=(0,i.Z)(e,S);return l.createElement(w.Provider,{value:null},l.createElement(v,(0,r.Z)({ref:t,className:u()(s,d)},f,p)))},Z=l.forwardRef(M);Z.displayName="RawItem";var $=Z,P=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],O="responsive",F="invalidate";function N(e){return"+ ".concat(e.length," ...")}function _(e,t){var n=e.prefixCls,c=void 0===n?"rc-overflow":n,d=e.data,p=void 0===d?[]:d,m=e.renderItem,h=e.renderRawItem,g=e.itemKey,y=e.itemWidth,b=void 0===y?10:y,x=e.ssr,C=e.style,S=e.className,M=e.maxCount,Z=e.renderRest,$=e.renderRawRest,_=e.suffix,T=e.component,L=void 0===T?"div":T,R=e.itemComponent,z=e.onVisibleChange,I=(0,i.Z)(e,P),j="full"===x,A=k(),D=E(A,null),B=(0,a.Z)(D,2),H=B[0],W=B[1],V=H||0,U=E(A,new Map),q=(0,a.Z)(U,2),K=q[0],G=q[1],X=E(A,0),Y=(0,a.Z)(X,2),Q=Y[0],J=Y[1],ee=E(A,0),te=(0,a.Z)(ee,2),ne=te[0],re=te[1],oe=E(A,0),ae=(0,a.Z)(oe,2),ie=ae[0],le=ae[1],ce=(0,l.useState)(null),ue=(0,a.Z)(ce,2),se=ue[0],fe=ue[1],de=(0,l.useState)(null),pe=(0,a.Z)(de,2),me=pe[0],he=pe[1],ve=l.useMemo((function(){return null===me&&j?Number.MAX_SAFE_INTEGER:me||0}),[me,H]),ge=(0,l.useState)(!1),ye=(0,a.Z)(ge,2),be=ye[0],ke=ye[1],Ee="".concat(c,"-item"),we=Math.max(Q,ne),xe=M===O,Ce=p.length&&xe,Se=M===F,Me=Ce||"number"==typeof M&&p.length>M,Ze=(0,l.useMemo)((function(){var e=p;return Ce?e=null===H&&j?p:p.slice(0,Math.min(p.length,V/b)):"number"==typeof M&&(e=p.slice(0,M)),e}),[p,b,H,M,Ce]),$e=(0,l.useMemo)((function(){return Ce?p.slice(ve+1):p.slice(Ze.length)}),[p,Ze,Ce,ve]),Pe=(0,l.useCallback)((function(e,t){var n;return"function"==typeof g?g(e):null!==(n=g&&(null==e?void 0:e[g]))&&void 0!==n?n:t}),[g]),Oe=(0,l.useCallback)(m||function(e){return e},[m]);function Fe(e,t,n){(me!==e||void 0!==t&&t!==se)&&(he(e),n||(ke(eV){Fe(r-1,e-o-ie+ne);break}}_&&_e(0)+ie>V&&fe(null)}}),[V,K,ne,ie,Pe,Ze]);var Te=be&&!!$e.length,Le={};null!==se&&Ce&&(Le={position:"absolute",left:se,top:0});var Re,ze={prefixCls:Ee,responsive:Ce,component:R,invalidate:Se},Ie=h?function(e,t){var n=Pe(e,t);return l.createElement(w.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},ze),{},{order:t,item:e,itemKey:n,registerSize:Ne,display:t<=ve})},h(e,t))}:function(e,t){var n=Pe(e,t);return l.createElement(v,(0,r.Z)({},ze,{order:t,key:n,item:e,renderItem:Oe,itemKey:n,registerSize:Ne,display:t<=ve}))},je={order:Te?ve:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:function(e,t){re(t),J(ne)},display:Te};if($)$&&(Re=l.createElement(w.Provider,{value:(0,o.Z)((0,o.Z)({},ze),je)},$($e)));else{var Ae=Z||N;Re=l.createElement(v,(0,r.Z)({},ze,je),"function"==typeof Ae?Ae($e):Ae)}var De=l.createElement(L,(0,r.Z)({className:u()(!Se&&c,S),style:C,ref:t},I),Ze.map(Ie),Me?Re:null,_&&l.createElement(v,(0,r.Z)({},ze,{responsive:xe,responsiveDisabled:!Ce,order:ve,className:"".concat(Ee,"-suffix"),registerSize:function(e,t){le(t)},display:!0,style:Le}),_));return xe&&(De=l.createElement(s.Z,{onResize:function(e,t){W(t.clientWidth)},disabled:!Ce},De)),De}var T=l.forwardRef(_);T.displayName="Overflow",T.Item=$,T.RESPONSIVE=O,T.INVALIDATE=F;var L=T},4421:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},6702:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"}},9102:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(3078),o=n(2363),a=n(6862),i=(n(2242),n(433)),l=n(4326),c=n(5330),u=n(5308),s=o.createContext(null);var f=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){d&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),v?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){d&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;h.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),y=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),O="undefined"!=typeof WeakMap?new WeakMap:new f,F=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=g.getInstance(),r=new P(t,n,this);O.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){F.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}}));var N=void 0!==p.ResizeObserver?p.ResizeObserver:F,_=new Map;var T=new N((function(e){e.forEach((function(e){var t,n=e.target;null===(t=_.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var L=n(3798),R=n(4627),z=n(2845),I=n(9393),j=function(e){(0,z.Z)(n,e);var t=(0,I.Z)(n);function n(){return(0,L.Z)(this,n),t.apply(this,arguments)}return(0,R.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function A(e,t){var n=e.children,r=e.disabled,a=o.useRef(null),f=o.useRef(null),d=o.useContext(s),p="function"==typeof n,m=p?n(a):n,h=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!p&&o.isValidElement(m)&&(0,u.Yr)(m),g=v?m.ref:null,y=(0,u.x1)(g,a),b=function(){var e;return(0,c.Z)(a.current)||(a.current&&"object"===(0,l.Z)(a.current)?(0,c.Z)(null===(e=a.current)||void 0===e?void 0:e.nativeElement):null)||(0,c.Z)(f.current)};o.useImperativeHandle(t,(function(){return b()}));var k=o.useRef(e);k.current=e;var E=o.useCallback((function(e){var t=k.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,l=o.height,c=e.offsetWidth,u=e.offsetHeight,s=Math.floor(a),f=Math.floor(l);if(h.current.width!==s||h.current.height!==f||h.current.offsetWidth!==c||h.current.offsetHeight!==u){var p={width:s,height:f,offsetWidth:c,offsetHeight:u};h.current=p;var m=c===Math.round(a)?a:c,v=u===Math.round(l)?l:u,g=(0,i.Z)((0,i.Z)({},p),{},{offsetWidth:m,offsetHeight:v});null==d||d(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return o.useEffect((function(){var e,t,n=b();return n&&!r&&(e=n,t=E,_.has(e)||(_.set(e,new Set),T.observe(e)),_.get(e).add(t)),function(){return function(e,t){_.has(e)&&(_.get(e).delete(t),_.get(e).size||(T.unobserve(e),_.delete(e)))}(n,E)}}),[a.current,r]),o.createElement(j,{ref:f},v?o.cloneElement(m,{ref:y}):m)}var D=o.forwardRef(A);function B(e,t){var n=e.children;return("function"==typeof n?[n]:(0,a.Z)(n)).map((function(n,a){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(a);return o.createElement(D,(0,r.Z)({},e,{key:i,ref:0===a?t:void 0}),n)}))}var H=o.forwardRef(B);H.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),a=o.useRef([]),i=o.useContext(s),l=o.useCallback((function(e,t,o){r.current+=1;var l=r.current;a.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){l===r.current&&(null==n||n(a.current),a.current=[])})),null==i||i(e,t,o)}),[n,i]);return o.createElement(s.Provider,{value:l},t)};var W=H},6862:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2363),o=n(7313);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(a(e)):(0,o.isFragment)(e)&&e.props?n=n.concat(a(e.props.children,t)):n.push(e))})),n}},4714:function(e,t,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:function(){return r}})},5965:function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:function(){return r}})},6592:function(e,t,n){"use strict";n.d(t,{hq:function(){return h},jL:function(){return m}});var r=n(4714),o=n(5965),a="data-rc-order",i="data-rc-priority",l="rc-util-key",c=new Map;function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):l}function s(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return Array.from((c.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var n=t.csp,o=t.prepend,l=t.priority,c=void 0===l?0:l,u=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),d="prependQueue"===u,p=document.createElement("style");p.setAttribute(a,u),d&&c&&p.setAttribute(i,"".concat(c)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var m=s(t),h=m.firstChild;if(o){if(d){var v=f(m).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(a)))return!1;var t=Number(e.getAttribute(i)||0);return c>=t}));if(v.length)return m.insertBefore(p,v[v.length-1].nextSibling),p}m.insertBefore(p,h)}else m.appendChild(p);return p}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(s(t)).find((function(n){return n.getAttribute(u(t))===e}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p(e,t);n&&s(t).removeChild(n)}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=c.get(e);if(!n||!(0,o.Z)(document,n)){var r=d("",t),a=r.parentNode;c.set(e,a),e.removeChild(r)}}(s(n),n);var r=p(t,n);if(r){var a,i,l;if(null!==(a=n.csp)&&void 0!==a&&a.nonce&&r.nonce!==(null===(i=n.csp)||void 0===i?void 0:i.nonce))r.nonce=null===(l=n.csp)||void 0===l?void 0:l.nonce;return r.innerHTML!==e&&(r.innerHTML=e),r}var f=d(e,n);return f.setAttribute(u(n),t),f}},5330:function(e,t,n){"use strict";n.d(t,{S:function(){return a},Z:function(){return i}});var r=n(2363),o=n(1850);function a(e){return e instanceof HTMLElement||e instanceof SVGElement}function i(e){return a(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},202:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}},6213:function(e,t,n){"use strict";function r(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,{A:function(){return o}})},7652:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},7610:function(e,t,n){"use strict";var r;n.d(t,{s:function(){return v},v:function(){return k}});var o,a=n(2010),i=n(2727),l=n(4326),c=n(433),u=n(1850),s=(0,c.Z)({},r||(r=n.t(u,2))),f=s.version,d=s.render,p=s.unmountComponentAtNode;try{Number((f||"").split(".")[0])>=18&&(o=s.createRoot)}catch(e){}function m(e){var t=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,l.Z)(t)&&(t.usingClientEntryPoint=e)}var h="__rc_react_root__";function v(e,t){o?function(e,t){m(!0);var n=t[h]||o(t);m(!1),n.render(e),t[h]=n}(e,t):function(e,t){d(e,t)}(e,t)}function g(e){return y.apply(this,arguments)}function y(){return(y=(0,i.Z)((0,a.Z)().mark((function e(t){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[h])||void 0===e||e.unmount(),delete t[h]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){p(e)}function k(e){return E.apply(this,arguments)}function E(){return(E=(0,i.Z)((0,a.Z)().mark((function e(t){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===o){e.next=2;break}return e.abrupt("return",g(t));case 2:b(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},2446:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2363);function o(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o2&&void 0!==arguments[2]&&arguments[2],a=new Set;return function e(t,i){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.has(t);if((0,o.ZP)(!c,"Warning: There may be circular references"),c)return!1;if(t===i)return!0;if(n&&l>1)return!1;a.add(t);var u=l+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var s=0;s