| @@ -1,44 +1,31 @@ | ||
| 1 | -!function(){var e,t,n={7526:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],c=i[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),u=0,d=c>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,s[u++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,l=0,s=r-o;l<s;l+=a)i.push(c(e,l,l+a>s?s:l+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var o,i,a=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8287:function(e,t,n){"use strict";var r=n(7526),o=n(251),i=n(5336); | |
| 2 | -/*! | |
| 3 | - * The buffer module from node.js, for the browser. | |
| 4 | - * | |
| 5 | - * @author Feross Aboukhadijeh <http://feross.org> | |
| 6 | - * @license MIT | |
| 7 | - */function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return s(this,e,t,n)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n);e=l(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=l(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?l(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=l(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|p(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return $(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,a=1,l=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,c/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<l;i++)if(s(e,i)===s(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===c)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+c>l&&(n=l-c),i=n;i>=0;i--){for(var d=!0,f=0;f<c;f++)if(s(e,i+f)!==s(t,f)){d=!1;break}if(d)return i}return-1}function y(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var l=parseInt(t.substr(2*a,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function w(e,t,n,r){return H(B(t,e.length-n),e,n,r)}function x(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return x(e,t,n,r)}function C(e,t,n,r){return H(F(t),e,n,r)}function k(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,l,c,s=e[o],u=null,d=s>239?4:s>223?3:s>191?2:1;if(o+d<=n)switch(d){case 1:s<128&&(u=s);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&s)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&s)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&l)&&(c=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=_));return n}(r)}t.hp=c,t.IS=50,c.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return s(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?l(e,t):void 0!==n?"string"==typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):v.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.IS;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(i,a),s=this.slice(r,o),u=e.slice(t,n),d=0;d<l;++d)if(s[d]!==u[d]){i=s[d],a=u[d];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function $(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=z(e[i]);return o}function I(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function A(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function T(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,r,i){return i||T(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return i||T(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/a|0)-l&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a|0)-l&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:B(new c(e,r).toString()),l=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%l]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},5336:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},7965:function(e,t,n){"use strict";var r=n(6426),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,c,s,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return u}},9578:function(e,t,n){"use strict";var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,'/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{height:1px;left:-100000px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{word-wrap:break-word;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;line-height:1.42;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-increment:list-0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:"";display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:none}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{-webkit-box-sizing:border-box;box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;-webkit-transform:translateY(10px);transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{margin-bottom:5px;margin-top:5px;padding:5px 10px;white-space:pre-wrap}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;padding:2px 4px;width:24px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{margin-top:-9px;position:absolute;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.2);box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;-webkit-box-shadow:0 0 5px #ddd;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{border:1px solid #ccc;display:none;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}',""]),t.A=o},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},4353:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",c="week",s="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:d,w:c,d:l,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=m;var x="$isDayjsObject",S=function(e){return e instanceof O||!(!e||!e[x])},C=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},E=b;E.l=C,E.i=S,E.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function m(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return k(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<k(e)},g.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),p=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,m=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case s:return r?p(1,m):p(0,m+1);case c:var y=this.$locale().weekStart||0,w=(v<y?v+7:v)-y;return p(r?g-w:g+(6-w),m);case l:case f:return h(b+"Hours",0);case a:return h(b+"Minutes",1);case i:return h(b+"Seconds",2);case o:return h(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,c=E.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[f]=u+"Date",n[s]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],h=c===l?this.$D+(t-this.$W):t;if(c===s||c===d){var v=this.clone().set(f,1);v.$d[p](h),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[E.p(e)]()},g.add=function(r,u){var f,p=this;r=Number(r);var h=E.p(u),v=function(e){var t=k(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(h===s)return this.set(s,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return v(1);if(h===c)return v(7);var m=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,g=this.$d.getTime()+r*m;return E.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return E.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(v,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return l+1;case"MM":return E.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,s,3);case"MMMM":return d(s,l);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,p){var h,v=this,m=E.p(f),g=k(r),b=(g.utcOffset()-this.utcOffset())*t,y=this-g,w=function(){return E.m(v,g)};switch(m){case d:h=w()/12;break;case s:h=w();break;case u:h=w()/3;break;case c:h=(y-b)/6048e5;break;case l:h=(y-b)/864e5;break;case a:h=y/n;break;case i:h=y/t;break;case o:h=y/e;break;default:h=y}return p?h:E.a(h)},g.daysInMonth=function(){return this.endOf(s).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return E.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),_=O.prototype;return k.prototype=_,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",d],["$D",f]].forEach((function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,O,k),e.$i=!0),k},k.locale=C,k.isDayjs=S,k.unix=function(e){return k(1e3*e)},k.en=w[y],k.Ls=w,k.p={},k}()},7375:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}}()},445:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],s=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[o,function(e){var t=s("months"),n=(s("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=d[s],f=u&&u[0],p=u&&u[1];a[c]=p?{regex:f,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var l=a[1];if("string"==typeof l){var c=!0===a[2],s=!0===a[3],u=c||s,d=a[2];s&&(d=a[2]),i=this.$locale(),!c&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,i=r.month,a=r.day,l=r.hours,c=r.minutes,s=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,h=a||(o||i?1:p.getDate()),v=o||p.getFullYear(),m=0;o&&!i||(m=i>0?i-1:p.getMonth());var g=l||0,b=c||0,y=s||0,w=u||0;return d?new Date(Date.UTC(v,m,h,g,b,y,w+60*d.offset*1e3)):n?new Date(Date.UTC(v,m,h,g,b,y,w)):new Date(v,m,h,g,b,y,w)}catch(e){return new Date("")}}(t,l,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var p=l.length,h=1;h<=p;h+=1){a[1]=l[h-1];var v=n.apply(this,a);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},1840:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),c=o(a[n]),s=l||c.map((function(e){return e.slice(0,r)}));if(!i)return s;var u=a.weekStart;return s.map((function(e,t){return s[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},8134:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},8623:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},6986:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}()},251:function(e,t){ | |
| 1 | +(()=>{var e,t,n={2:(e,t,n)=>{var r=n(2199),o=n(4664),i=n(5950);e.exports=function(e){return r(e,i,o)}},8:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6773);t.debounce=function(e,t=0,n={}){"object"!=typeof n&&(n={});const{leading:o=!1,trailing:i=!0,maxWait:a}=n,l=Array(2);let c;o&&(l[0]="leading"),i&&(l[1]="trailing");let s=null;const u=r.debounce(function(...t){c=e.apply(this,t),s=null},t,{edges:l}),d=function(...t){return null!=a&&(null===s&&(s=Date.now()),Date.now()-s>=a)?(c=e.apply(this,t),s=Date.now(),u.cancel(),u.schedule(),c):(u.apply(this,t),c)};return d.cancel=u.cancel,d.flush=()=>(u.flush(),c),d}},25:(e,t,n)=>{e.exports=n(1334).last},58:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9181);t.isArrayLike=function(e){return null!=e&&"function"!=typeof e&&r.isLength(e.length)}},79:(e,t,n)=>{var r=n(3702),o=n(80),i=n(4739),a=n(8655),l=n(1175);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},80:(e,t,n)=>{var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},184:(e,t,n)=>{e.exports=n(4259).sortBy},251:(e,t)=>{ | |
| 8 | 2 | /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ |
| 9 | -t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,c=(1<<l)-1,s=c>>1,u=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=s}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,c,s=8*i-o-1,u=(1<<s)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(l=0,a=u):a+d>=1?(l=(t*c-1)*Math.pow(2,o),a+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<<o|l,s+=o;s>0;e[n+p]=255&a,p+=h,a/=256,s-=8);e[n+p-h]|=128*v}},311:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},5580:function(e,t,n){var r=n(6110)(n(9325),"DataView");e.exports=r},1549:function(e,t,n){var r=n(2032),o=n(3862),i=n(6721),a=n(2749),l=n(5749);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},79:function(e,t,n){var r=n(3702),o=n(80),i=n(4739),a=n(8655),l=n(1175);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},8223:function(e,t,n){var r=n(6110)(n(9325),"Map");e.exports=r},3661:function(e,t,n){var r=n(3040),o=n(7670),i=n(289),a=n(4509),l=n(2949);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},2804:function(e,t,n){var r=n(6110)(n(9325),"Promise");e.exports=r},6545:function(e,t,n){var r=n(6110)(n(9325),"Set");e.exports=r},8859:function(e,t,n){var r=n(3661),o=n(1380),i=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},7217:function(e,t,n){var r=n(79),o=n(1420),i=n(938),a=n(3605),l=n(9817),c=n(945);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=l,s.prototype.set=c,e.exports=s},1873:function(e,t,n){var r=n(9325).Symbol;e.exports=r},7828:function(e,t,n){var r=n(9325).Uint8Array;e.exports=r},8303:function(e,t,n){var r=n(6110)(n(9325),"WeakMap");e.exports=r},9770:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},695:function(e,t,n){var r=n(8096),o=n(2428),i=n(6449),a=n(3656),l=n(361),c=n(7167),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&c(e),p=n||u||d||f,h=p?r(e.length,String):[],v=h.length;for(var m in e)!t&&!s.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||l(m,v))||h.push(m);return h}},4528:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4248:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6025:function(e,t,n){var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2199:function(e,t,n){var r=n(4528),o=n(6449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},2552:function(e,t,n){var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},7534:function(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},270:function(e,t,n){var r=n(7068),o=n(346);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,l))}},7068:function(e,t,n){var r=n(7217),o=n(5911),i=n(1986),a=n(689),l=n(5861),c=n(6449),s=n(3656),u=n(7167),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,g){var b=c(e),y=c(t),w=b?f:l(e),x=y?f:l(t),S=(w=w==d?p:w)==p,C=(x=x==d?p:x)==p,k=w==x;if(k&&s(e)){if(!s(t))return!1;b=!0,S=!1}if(k&&!S)return g||(g=new r),b||u(e)?o(e,t,n,v,m,g):i(e,t,w,n,v,m,g);if(!(1&n)){var E=S&&h.call(e,"__wrapped__"),O=C&&h.call(t,"__wrapped__");if(E||O){var _=E?e.value():e,$=O?t.value():t;return g||(g=new r),m(_,$,n,v,g)}}return!!k&&(g||(g=new r),a(e,t,n,v,m,g))}},5083:function(e,t,n){var r=n(1882),o=n(7296),i=n(3805),a=n(7473),l=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,u=c.toString,d=s.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:l).test(a(e))}},4901:function(e,t,n){var r=n(2552),o=n(294),i=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},8984:function(e,t,n){var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8096:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7301:function(e){e.exports=function(e){return function(t){return e(t)}}},9219:function(e){e.exports=function(e,t){return e.has(t)}},5481:function(e,t,n){var r=n(9325)["__core-js_shared__"];e.exports=r},5911:function(e,t,n){var r=n(8859),o=n(4248),i=n(9219);e.exports=function(e,t,n,a,l,c){var s=1&n,u=e.length,d=t.length;if(u!=d&&!(s&&d>u))return!1;var f=c.get(e),p=c.get(t);if(f&&p)return f==t&&p==e;var h=-1,v=!0,m=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var g=e[h],b=t[h];if(a)var y=s?a(b,g,h,t,e,c):a(g,b,h,e,t,c);if(void 0!==y){if(y)continue;v=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(g===e||l(g,e,n,a,c)))return m.push(t)}))){v=!1;break}}else if(g!==b&&!l(g,b,n,a,c)){v=!1;break}}return c.delete(e),c.delete(t),v}},1986:function(e,t,n){var r=n(1873),o=n(7828),i=n(5288),a=n(5911),l=n(317),c=n(4247),s=r?r.prototype:void 0,u=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=l;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var v=f.get(e);if(v)return v==t;r|=2,f.set(e,t);var m=a(p(e),p(t),r,s,d,f);return f.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689:function(e,t,n){var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var c=1&n,s=r(e),u=s.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var f=s[d];if(!(c?f in t:o.call(t,f)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var v=!0;l.set(e,t),l.set(t,e);for(var m=c;++d<u;){var g=e[f=s[d]],b=t[f];if(i)var y=c?i(b,g,f,t,e,l):i(g,b,f,e,t,l);if(!(void 0===y?g===b||a(g,b,n,i,l):y)){v=!1;break}m||(m="constructor"==f)}if(v&&!m){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return l.delete(e),l.delete(t),v}},4840:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2:function(e,t,n){var r=n(2199),o=n(4664),i=n(5950);e.exports=function(e){return r(e,i,o)}},2651:function(e,t,n){var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},6110:function(e,t,n){var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},659:function(e,t,n){var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},4664:function(e,t,n){var r=n(9770),o=n(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},5861:function(e,t,n){var r=n(5580),o=n(8223),i=n(2804),a=n(6545),l=n(8303),c=n(2552),s=n(7473),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",v=s(r),m=s(o),g=s(i),b=s(a),y=s(l),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=f||l&&w(new l)!=p)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case v:return h;case m:return u;case g:return d;case b:return f;case y:return p}return t}),e.exports=w},392:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},2032:function(e,t,n){var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:function(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749:function(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749:function(e,t,n){var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},361:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},4218:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:function(e,t,n){var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5527:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3702:function(e){e.exports=function(){this.__data__=[],this.size=0}},80:function(e,t,n){var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},4739:function(e,t,n){var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:function(e,t,n){var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:function(e,t,n){var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:function(e,t,n){var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:function(e,t,n){var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:function(e,t,n){var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},317:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},1042:function(e,t,n){var r=n(6110)(Object,"create");e.exports=r},3650:function(e,t,n){var r=n(4335)(Object.keys,Object);e.exports=r},6009:function(e,t,n){e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},9350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},9325:function(e,t,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1380:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:function(e){e.exports=function(e){return this.__data__.has(e)}},4247:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},1420:function(e,t,n){var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605:function(e){e.exports=function(e){return this.__data__.get(e)}},9817:function(e){e.exports=function(e){return this.__data__.has(e)}},945:function(e,t,n){var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},7473:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},4480:function(e,t,n){var r=n(9761).runInContext();e.exports=n(3424)(r,r)},3424:function(e,t,n){var r=n(6962),o=n(2874),i=Array.prototype.push;function a(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function l(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function c(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}e.exports=function e(t,n,s,u){var d="function"==typeof n,f=n===Object(n);if(f&&(u=s,s=n,n=void 0),null==s)throw new TypeError;u||(u={});var p={cap:!("cap"in u)||u.cap,curry:!("curry"in u)||u.curry,fixed:!("fixed"in u)||u.fixed,immutable:!("immutable"in u)||u.immutable,rearg:!("rearg"in u)||u.rearg},h=d?s:o,v="curry"in u&&u.curry,m="fixed"in u&&u.fixed,g="rearg"in u&&u.rearg,b=d?s.runInContext():void 0,y=d?s:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},w=y.ary,x=y.assign,S=y.clone,C=y.curry,k=y.forEach,E=y.isArray,O=y.isError,_=y.isFunction,$=y.isWeakMap,j=y.keys,N=y.rearg,I=y.toInteger,P=y.toPath,M=j(r.aryMethod),R={castArray:function(e){return function(){var t=arguments[0];return E(t)?e(l(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),r=n.length;return p.cap&&"number"==typeof t?(t=t>2?t-2:1,r&&r<=t?n:a(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!_(n))return e(n,Object(t));var r=[];return k(j(t),(function(e){_(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),k(r,(function(e){var t=e[1];_(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:I(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return C(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),u)}}};function A(e,t){if(p.cap){var n=r.iterateeRearg[e];if(n)return function(e,t){return z(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(N(a(e,n),t),n)}))}(t,n);var o=!d&&r.iterateeAry[e];if(o)return function(e,t){return z(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,o)}return t}function T(e,t,n){if(p.fixed&&(m||!r.skipFixed[e])){var o=r.methodSpread[e],a=o&&o.start;return void 0===a?w(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var a=o[t],l=o.slice(0,t);return a&&i.apply(l,a),t!=r&&i.apply(l,o.slice(t+1)),e.apply(this,l)}}(t,a)}return t}function q(e,t,n){return p.rearg&&n>1&&(g||!r.skipRearg[e])?N(t,r.methodRearg[e]||r.aryRearg[n]):t}function L(e,t){for(var n=-1,r=(t=P(t)).length,o=r-1,i=S(Object(e)),a=i;null!=a&&++n<r;){var l=t[n],c=a[l];null==c||_(c)||O(c)||$(c)||(a[l]=S(n==o?c:Object(c))),a=a[l]}return i}function D(t,n){var o=r.aliasToReal[t]||t,i=r.remap[o]||o,a=u;return function(t){var r=d?b:y,l=d?b[i]:n,c=x(x({},a),t);return e(r,o,l,c)}}function z(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=p.rearg?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function B(e,t,n){var o,i=r.aliasToReal[e]||e,a=t,s=R[i];return s?a=s(t):p.immutable&&(r.mutate.array[i]?a=c(t,l):r.mutate.object[i]?a=c(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[i]&&(a=c(t,L))),k(M,(function(e){return k(r.aryMethod[e],(function(t){if(i==t){var n=r.methodSpread[i],l=n&&n.afterRearg;return o=l?T(i,q(i,a,e),e):q(i,T(i,a,e),e),o=function(e,t,n){return v||p.curry&&n>1?C(t,n):t}(0,o=A(i,o),e),!1}})),!o})),o||(o=a),o==t&&(o=v?C(o,1):function(){return t.apply(this,arguments)}),o.convert=D(i,t),o.placeholder=t.placeholder=n,o}if(!f)return B(n,s,h);var F=s,H=[];return k(M,(function(e){k(r.aryMethod[e],(function(e){var t=F[r.remap[e]||e];t&&H.push([e,B(e,t,F)])}))})),k(j(F),(function(e){var t=F[e];if("function"==typeof t){for(var n=H.length;n--;)if(H[n][0]==e)return;t.convert=D(e,t),H.push([e,t])}})),k(H,(function(e){F[e[0]]=e[1]})),F.convert=function(e){return F.runInContext.convert(e)(void 0)},F.placeholder=F,k(j(F),(function(e){k(r.realToAlias[e]||[],(function(t){F[t]=F[e]}))})),F}},6962:function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var i=n[o];e.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},2874:function(e){e.exports={}},2428:function(e,t,n){var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=c},6449:function(e){var t=Array.isArray;e.exports=t},4894:function(e,t,n){var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3656:function(e,t,n){e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,c=(l?l.isBuffer:void 0)||o;e.exports=c},2404:function(e,t,n){var r=n(270);e.exports=function(e,t){return r(e,t)}},1882:function(e,t,n){var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3805:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},7167:function(e,t,n){var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},5950:function(e,t,n){var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},2543:function(e,t,n){var r; | |
| 3 | +t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,c=(1<<l)-1,s=c>>1,u=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=s}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,c,s=8*i-o-1,u=(1<<s)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(l=0,a=u):a+d>=1?(l=(t*c-1)*Math.pow(2,o),a+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<<o|l,s+=o;s>0;e[n+p]=255&a,p+=h,a/=256,s-=8);e[n+p-h]|=128*m}},270:(e,t,n)=>{var r=n(7068),o=n(346);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,l))}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},316:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8509),o=n(58),i=n(4905),a=n(6761);t.isIterateeCall=function(e,t,n){return!!i.isObject(n)&&(!!("number"==typeof t&&o.isArrayLike(n)&&r.isIndex(t)&&t<n.length||"string"==typeof t&&t in n)&&a.eq(n[t],e))}},317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},445:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},l=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[r,c("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,c("week")],ww:[r,c("week")],M:[o,c("month")],MM:[r,c("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};function p(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=i.length,c=0;c<l;c+=1){var s=i[c],u=f[s],d=u&&u[0],p=u&&u[1];i[c]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,c=o.parser,s=e.slice(r),u=a.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(l=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var l=i[1];if("string"==typeof l){var c=!0===i[2],s=!0===i[3],u=c||s,d=i[2];s&&(d=i[2]),a=this.$locale(),!c&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),i=o.year,a=o.month,l=o.day,c=o.hours,s=o.minutes,u=o.seconds,d=o.milliseconds,f=o.zone,h=o.week,m=new Date,v=l||(i||a?1:m.getDate()),g=i||m.getFullYear(),b=0;i&&!a||(b=a>0?a-1:m.getMonth());var y,x=c||0,w=s||0,S=u||0,C=d||0;return f?new Date(Date.UTC(g,b,v,x,w,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(g,b,v,x,w,S,C)):(y=new Date(g,b,v,x,w,S,C),h&&(y=r(y).week(h).toDate()),y)}catch(e){return new Date("")}}(t,l,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var f=l.length,h=1;h<=f;h+=1){i[1]=l[h-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===f&&(this.$d=new Date(""))}else o.call(this,e)}}}()},645:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.last=function(e){return e[e.length-1]}},659:(e,t,n)=>{var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},689:(e,t,n)=>{var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var c=1&n,s=r(e),u=s.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var f=s[d];if(!(c?f in t:o.call(t,f)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=!0;l.set(e,t),l.set(t,e);for(var v=c;++d<u;){var g=e[f=s[d]],b=t[f];if(i)var y=c?i(b,g,f,t,e,l):i(g,b,f,e,t,l);if(!(void 0===y?g===b||a(g,b,n,i,l):y)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return l.delete(e),l.delete(t),m}},695:(e,t,n)=>{var r=n(8096),o=n(2428),i=n(6449),a=n(3656),l=n(361),c=n(7167),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&c(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var v in e)!t&&!s.call(e,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,m))||h.push(v);return h}},717:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8273);t.isMatch=function(e,t){return r.isMatchWith(e,t,()=>{})}},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},945:(e,t,n)=>{var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},1020:(e,t,n)=>{"use strict"; | |
| 10 | 4 | /** |
| 11 | - * @license | |
| 12 | - * Lodash <https://lodash.com/> | |
| 13 | - * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> | |
| 14 | - * Released under MIT license <https://lodash.com/license> | |
| 15 | - * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | |
| 16 | - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | |
| 17 | - */e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",c=16,s=32,u=64,d=128,f=256,p=1/0,h=9007199254740991,v=NaN,m=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",s],["partialRight",u],["rearg",f]],b="[object Arguments]",y="[object Array]",w="[object Boolean]",x="[object Date]",S="[object Error]",C="[object Function]",k="[object GeneratorFunction]",E="[object Map]",O="[object Number]",_="[object Object]",$="[object Promise]",j="[object RegExp]",N="[object Set]",I="[object String]",P="[object Symbol]",M="[object WeakMap]",R="[object ArrayBuffer]",A="[object DataView]",T="[object Float32Array]",q="[object Float64Array]",L="[object Int8Array]",D="[object Int16Array]",z="[object Int32Array]",B="[object Uint8Array]",F="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",V=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,X=RegExp(Y.source),Q=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,le=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",_e="a-z\\xdf-\\xf6\\xf8-\\xff",$e="A-Z\\xc0-\\xd6\\xd8-\\xde",je="\\ufe0e\\ufe0f",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ie="['’]",Pe="["+ke+"]",Me="["+Ne+"]",Re="["+Ee+"]",Ae="\\d+",Te="["+Oe+"]",qe="["+_e+"]",Le="[^"+ke+Ne+Ae+Oe+_e+$e+"]",De="\\ud83c[\\udffb-\\udfff]",ze="[^"+ke+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+$e+"]",We="\\u200d",Ve="(?:"+qe+"|"+Le+")",Ue="(?:"+He+"|"+Le+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Re+"|"+De+")"+"?",Xe="["+je+"]?",Qe=Xe+Ke+("(?:"+We+"(?:"+[ze,Be,Fe].join("|")+")"+Xe+Ke+")*"),Ze="(?:"+[Te,Be,Fe].join("|")+")"+Qe,Je="(?:"+[ze+Re+"?",Re,Be,Fe,Pe].join("|")+")",et=RegExp(Ie,"g"),tt=RegExp(Re,"g"),nt=RegExp(De+"(?="+De+")|"+Je+Qe,"g"),rt=RegExp([He+"?"+qe+"+"+Ge+"(?="+[Me,He,"$"].join("|")+")",Ue+"+"+Ye+"(?="+[Me,He+Ve,"$"].join("|")+")",He+"?"+Ve+"+"+Ge,He+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Ze].join("|"),"g"),ot=RegExp("["+We+ke+Ee+je+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lt=-1,ct={};ct[T]=ct[q]=ct[L]=ct[D]=ct[z]=ct[B]=ct[F]=ct[H]=ct[W]=!0,ct[b]=ct[y]=ct[R]=ct[w]=ct[A]=ct[x]=ct[S]=ct[C]=ct[E]=ct[O]=ct[_]=ct[j]=ct[N]=ct[I]=ct[M]=!1;var st={};st[b]=st[y]=st[R]=st[A]=st[w]=st[x]=st[T]=st[q]=st[L]=st[D]=st[z]=st[E]=st[O]=st[_]=st[j]=st[N]=st[I]=st[P]=st[B]=st[F]=st[H]=st[W]=!0,st[S]=st[C]=st[M]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,vt=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,bt=gt&>.exports===mt,yt=bt&&pt.process,wt=function(){try{var e=gt&>.require&>.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),xt=wt&&wt.isArrayBuffer,St=wt&&wt.isDate,Ct=wt&&wt.isMap,kt=wt&&wt.isRegExp,Et=wt&&wt.isSet,Ot=wt&&wt.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function $t(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function jt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Mt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Rt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function At(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Tt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function qt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Lt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=Gt("length");function Bt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ft(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Vt,n)}function Wt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Vt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:v}function Gt(e){return function(t){return null==t?o:t[e]}}function Yt(e){return function(t){return null==e?o:e[t]}}function Kt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Xt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Jt(e){return function(t){return e(t)}}function en(e,t){return At(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Yt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Yt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ln(e){return"\\"+ut[e]}function cn(e){return ot.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,i[o++]=n)}return i}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return cn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):zt(e)}function vn(e){return cn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&le.test(e.charAt(t)););return t}var gn=Yt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var bn=function e(t){var n,r=(t=null==t?vt:bn.defaults(vt.Object(),t,bn.pick(vt,at))).Array,le=t.Date,ke=t.Error,Ee=t.Function,Oe=t.Math,_e=t.Object,$e=t.RegExp,je=t.String,Ne=t.TypeError,Ie=r.prototype,Pe=Ee.prototype,Me=_e.prototype,Re=t["__core-js_shared__"],Ae=Pe.toString,Te=Me.hasOwnProperty,qe=0,Le=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Me.toString,ze=Ae.call(_e),Be=vt._,Fe=$e("^"+Ae.call(Te).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=bt?t.Buffer:o,We=t.Symbol,Ve=t.Uint8Array,Ue=He?He.allocUnsafe:o,Ge=un(_e.getPrototypeOf,_e),Ye=_e.create,Ke=Me.propertyIsEnumerable,Xe=Ie.splice,Qe=We?We.isConcatSpreadable:o,Ze=We?We.iterator:o,Je=We?We.toStringTag:o,nt=function(){try{var e=pi(_e,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,ut=le&&le.now!==vt.Date.now&&le.now,pt=t.setTimeout!==vt.setTimeout&&t.setTimeout,ht=Oe.ceil,mt=Oe.floor,gt=_e.getOwnPropertySymbols,yt=He?He.isBuffer:o,wt=t.isFinite,zt=Ie.join,Yt=un(_e.keys,_e),yn=Oe.max,wn=Oe.min,xn=le.now,Sn=t.parseInt,Cn=Oe.random,kn=Ie.reverse,En=pi(t,"DataView"),On=pi(t,"Map"),_n=pi(t,"Promise"),$n=pi(t,"Set"),jn=pi(t,"WeakMap"),Nn=pi(_e,"create"),In=jn&&new jn,Pn={},Mn=Di(En),Rn=Di(On),An=Di(_n),Tn=Di($n),qn=Di(jn),Ln=We?We.prototype:o,Dn=Ln?Ln.valueOf:o,zn=Ln?Ln.toString:o;function Bn(e){if(nl(e)&&!Va(e)&&!(e instanceof Vn)){if(e instanceof Wn)return e;if(Te.call(e,"__wrapped__"))return zi(e)}return new Wn(e)}var Fn=function(){function e(){}return function(t){if(!tl(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Hn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Qn(e,t){var n=Va(e),r=!n&&Wa(e),o=!n&&!r&&Ka(e),i=!n&&!r&&!o&&ul(e),a=n||r||o||i,l=a?Qt(e.length,je):[],c=l.length;for(var s in e)!t&&!Te.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||wi(s,c))||l.push(s);return l}function Zn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Jn(e,t){return Ti(Io(e),cr(t,0,e.length))}function er(e){return Ti(Io(e))}function tr(e,t,n){(n!==o&&!Ba(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Te.call(e,t)&&Ba(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function or(e,t,n,r){return pr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Po(t,Pl(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){for(var n=-1,i=t.length,a=r(i),l=null==e;++n<i;)a[n]=l?o:_l(e,t[n]);return a}function cr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var l,c=1&t,s=2&t,u=4&t;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!tl(e))return e;var d=Va(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Te.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Io(e,l)}else{var f=mi(e),p=f==C||f==k;if(Ka(e))return Eo(e,c);if(f==_||f==b||p&&!i){if(l=s||p?{}:bi(e),!c)return s?function(e,t){return Po(e,vi(e),t)}(e,function(e,t){return e&&Po(t,Ml(t),e)}(l,e)):function(e,t){return Po(e,hi(e),t)}(e,ir(l,e))}else{if(!st[f])return i?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case R:return Oo(e);case w:case x:return new r(+e);case A:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case q:case L:case D:case z:case B:case F:case H:case W:return _o(e,n);case E:return new r;case O:case I:return new r(e);case j:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new r;case P:return o=e,Dn?_e(Dn.call(o)):{}}var o}(e,f,c)}}a||(a=new Xn);var h=a.get(e);if(h)return h;a.set(e,l),ll(e)?e.forEach((function(r){l.add(sr(r,t,n,r,e,a))})):rl(e)&&e.forEach((function(r,o){l.set(o,sr(r,t,n,o,e,a))}));var v=d?o:(u?s?ai:ii:s?Ml:Pl)(e);return jt(v||e,(function(r,o){v&&(r=e[o=r]),nr(l,o,sr(r,t,n,o,e,a))})),l}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=_e(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Ne(i);return Pi((function(){e.apply(o,n)}),t)}function fr(e,t,n,r){var o=-1,i=Mt,a=!0,l=e.length,c=[],s=t.length;if(!l)return c;n&&(t=At(t,Jt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Kn(t));e:for(;++o<l;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=s;f--;)if(t[f]===d)continue e;c.push(u)}else i(t,d,r)||c.push(u)}return c}Bn.templateSettings={escape:Z,evaluate:J,interpolate:ee,variable:"",imports:{_:Bn}},Bn.prototype=Hn.prototype,Bn.prototype.constructor=Bn,Wn.prototype=Fn(Hn.prototype),Wn.prototype.constructor=Wn,Vn.prototype=Fn(Hn.prototype),Vn.prototype.constructor=Vn,Un.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},Un.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Un.prototype.get=function(e){var t=this.__data__;if(Nn){var n=t[e];return n===a?o:n}return Te.call(t,e)?t[e]:o},Un.prototype.has=function(e){var t=this.__data__;return Nn?t[e]!==o:Te.call(t,e)},Un.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nn&&t===o?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},Gn.prototype.has=function(e){return rr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(On||Gn),string:new Un}},Yn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return di(this,e).get(e)},Yn.prototype.has=function(e){return di(this,e).has(e)},Yn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var pr=Ao(xr),hr=Ao(Sr,!0);function vr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],l=t(a);if(null!=l&&(c===o?l==l&&!sl(l):n(l,c)))var c=l,s=a}return s}function gr(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?br(l,t-1,n,r,o):Tt(o,l):r||(o[o.length]=l)}return o}var yr=To(),wr=To(!0);function xr(e,t){return e&&yr(e,t,Pl)}function Sr(e,t){return e&&wr(e,t,Pl)}function Cr(e,t){return Pt(t,(function(t){return Za(e[t])}))}function kr(e,t){for(var n=0,r=(t=xo(t,e)).length;null!=e&&n<r;)e=e[Li(t[n++])];return n&&n==r?e:o}function Er(e,t,n){var r=t(e);return Va(e)?r:Tt(r,n(e))}function Or(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in _e(e)?function(e){var t=Te.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(e){}var i=De.call(e);r&&(t?e[Je]=n:delete e[Je]);return i}(e):function(e){return De.call(e)}(e)}function _r(e,t){return e>t}function $r(e,t){return null!=e&&Te.call(e,t)}function jr(e,t){return null!=e&&t in _e(e)}function Nr(e,t,n){for(var i=n?Rt:Mt,a=e[0].length,l=e.length,c=l,s=r(l),u=1/0,d=[];c--;){var f=e[c];c&&t&&(f=At(f,Jt(t))),u=wn(f.length,u),s[c]=!n&&(t||a>=120&&f.length>=120)?new Kn(c&&f):o}f=e[0];var p=-1,h=s[0];e:for(;++p<a&&d.length<u;){var v=f[p],m=t?t(v):v;if(v=n||0!==v?v:0,!(h?tn(h,m):i(d,m,n))){for(c=l;--c;){var g=s[c];if(!(g?tn(g,m):i(e[c],m,n)))continue e}h&&h.push(m),d.push(v)}}return d}function Ir(e,t,n){var r=null==(e=ji(e,t=xo(t,e)))?e:e[Li(Qi(t))];return null==r?o:_t(r,e,n)}function Pr(e){return nl(e)&&Or(e)==b}function Mr(e,t,n,r,i){return e===t||(null==e||null==t||!nl(e)&&!nl(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var l=Va(e),c=Va(t),s=l?y:mi(e),u=c?y:mi(t),d=(s=s==b?_:s)==_,f=(u=u==b?_:u)==_,p=s==u;if(p&&Ka(e)){if(!Ka(t))return!1;l=!0,d=!1}if(p&&!d)return a||(a=new Xn),l||ul(e)?ri(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case w:case x:case O:return Ba(+e,+t);case S:return e.name==t.name&&e.message==t.message;case j:case I:return e==t+"";case E:var l=sn;case N:var c=1&r;if(l||(l=fn),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var u=ri(l(e),l(t),r,o,i,a);return a.delete(e),u;case P:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,s,n,r,i,a);if(!(1&n)){var h=d&&Te.call(e,"__wrapped__"),v=f&&Te.call(t,"__wrapped__");if(h||v){var m=h?e.value():e,g=v?t.value():t;return a||(a=new Xn),i(m,g,n,r,a)}}if(!p)return!1;return a||(a=new Xn),function(e,t,n,r,i,a){var l=1&n,c=ii(e),s=c.length,u=ii(t),d=u.length;if(s!=d&&!l)return!1;var f=s;for(;f--;){var p=c[f];if(!(l?p in t:Te.call(t,p)))return!1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var m=!0;a.set(e,t),a.set(t,e);var g=l;for(;++f<s;){var b=e[p=c[f]],y=t[p];if(r)var w=l?r(y,b,p,t,e,a):r(b,y,p,e,t,a);if(!(w===o?b===y||i(b,y,n,r,a):w)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var x=e.constructor,S=t.constructor;x==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,i,a)}(e,t,n,r,Mr,i))}function Rr(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;for(e=_e(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var s=(c=n[i])[0],u=e[s],d=c[1];if(l&&c[2]){if(u===o&&!(s in e))return!1}else{var f=new Xn;if(r)var p=r(u,d,s,e,t,f);if(!(p===o?Mr(d,u,3,r,f):p))return!1}}return!0}function Ar(e){return!(!tl(e)||(t=e,Le&&Le in t))&&(Za(e)?Fe:be).test(Di(e));var t}function Tr(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?Va(e)?Fr(e[0],e[1]):Br(e):pc(e)}function qr(e){if(!Ei(e))return Yt(e);var t=[];for(var n in _e(e))Te.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!tl(e))return function(e){var t=[];if(null!=e)for(var n in _e(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&Te.call(e,r))&&n.push(r);return n}function Dr(e,t){return e<t}function zr(e,t){var n=-1,o=Ga(e)?r(e.length):[];return pr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Br(e){var t=fi(e);return 1==t.length&&t[0][2]?_i(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function Fr(e,t){return Si(e)&&Oi(t)?_i(Li(e),t):function(n){var r=_l(n,e);return r===o&&r===t?$l(n,e):Mr(t,r,3)}}function Hr(e,t,n,r,i){e!==t&&yr(t,(function(a,l){if(i||(i=new Xn),tl(a))!function(e,t,n,r,i,a,l){var c=Ni(e,n),s=Ni(t,n),u=l.get(s);if(u)return void tr(e,n,u);var d=a?a(c,s,n+"",e,t,l):o,f=d===o;if(f){var p=Va(s),h=!p&&Ka(s),v=!p&&!h&&ul(s);d=s,p||h||v?Va(c)?d=c:Ya(c)?d=Io(c):h?(f=!1,d=Eo(s,!0)):v?(f=!1,d=_o(s,!0)):d=[]:il(s)||Wa(s)?(d=c,Wa(c)?d=bl(c):tl(c)&&!Za(c)||(d=bi(s))):f=!1}f&&(l.set(s,d),i(d,s,r,a,l),l.delete(s));tr(e,n,d)}(e,t,l,n,Hr,r,i);else{var c=r?r(Ni(e,l),a,l+"",e,t,i):o;c===o&&(c=a),tr(e,l,c)}}),Ml)}function Wr(e,t){var n=e.length;if(n)return wi(t+=t<0?n:0,n)?e[t]:o}function Vr(e,t,n){t=t.length?At(t,(function(e){return Va(e)?function(t){return kr(t,1===e.length?e[0]:e)}:e})):[oc];var r=-1;t=At(t,Jt(ui()));var o=zr(e,(function(e,n,o){var i=At(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;for(;++r<a;){var c=$o(o[r],i[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ur(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=kr(e,a);n(l,a)&&eo(i,xo(a,e),l)}return i}function Gr(e,t,n,r){var o=r?Wt:Ht,i=-1,a=t.length,l=e;for(e===t&&(t=Io(t)),n&&(l=At(e,Jt(n)));++i<a;)for(var c=0,s=t[i],u=n?n(s):s;(c=o(l,u,c,r))>-1;)l!==e&&Xe.call(l,c,1),Xe.call(e,c,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;wi(o)?Xe.call(e,o,1):po(e,o)}}return e}function Kr(e,t){return e+mt(Cn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Mi($i(e,t,oc),e+"")}function Zr(e){return Zn(Bl(e))}function Jr(e,t){var n=Bl(e);return Ti(n,cr(t,0,n.length))}function eo(e,t,n,r){if(!tl(e))return e;for(var i=-1,a=(t=xo(t,e)).length,l=a-1,c=e;null!=c&&++i<a;){var s=Li(t[i]),u=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var d=c[s];(u=r?r(d,s,c):o)===o&&(u=tl(d)?d:wi(t[i+1])?[]:{})}nr(c,s,u),c=c[s]}return e}var to=In?function(e,t){return In.set(e,t),e}:oc,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:oc;function ro(e){return Ti(Bl(e))}function oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function io(e,t){var n;return pr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!sl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return lo(e,t,oc,n)}function lo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,c=null===t,s=sl(t),u=t===o;i<a;){var d=mt((i+a)/2),f=n(e[d]),p=f!==o,h=null===f,v=f==f,m=sl(f);if(l)var g=r||v;else g=u?v&&(r||p):c?v&&p&&(r||!h):s?v&&p&&!h&&(r||!m):!h&&!m&&(r?f<=t:f<t);g?i=d+1:a=d}return wn(a,4294967294)}function co(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Ba(l,c)){var c=l;i[o++]=0===a?0:a}}return i}function so(e){return"number"==typeof e?e:sl(e)?v:+e}function uo(e){if("string"==typeof e)return e;if(Va(e))return At(e,uo)+"";if(sl(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fo(e,t,n){var r=-1,o=Mt,i=e.length,a=!0,l=[],c=l;if(n)a=!1,o=Rt;else if(i>=200){var s=t?null:Qo(e);if(s)return fn(s);a=!1,o=tn,c=new Kn}else c=t?[]:l;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),l.push(u)}else o(c,d,n)||(c!==l&&c.push(d),l.push(u))}return l}function po(e,t){return null==(e=ji(e,t=xo(t,e)))||delete e[Li(Qi(t))]}function ho(e,t,n,r){return eo(e,t,n(kr(e,t)),r)}function vo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function mo(e,t){var n=e;return n instanceof Vn&&(n=n.value()),qt(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),n)}function go(e,t,n){var o=e.length;if(o<2)return o?fo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var l=e[i],c=-1;++c<o;)c!=i&&(a[i]=fr(a[i]||l,e[c],t,n));return fo(br(a,1),t,n)}function bo(e,t,n){for(var r=-1,i=e.length,a=t.length,l={};++r<i;){var c=r<a?t[r]:o;n(l,e[r],c)}return l}function yo(e){return Ya(e)?e:[]}function wo(e){return"function"==typeof e?e:oc}function xo(e,t){return Va(e)?e:Si(e,t)?[e]:qi(yl(e))}var So=Qr;function Co(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var ko=ot||function(e){return vt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function _o(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function $o(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=sl(e),l=t!==o,c=null===t,s=t==t,u=sl(t);if(!c&&!u&&!a&&e>t||a&&l&&s&&!c&&!u||r&&l&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||c&&n&&i||!l&&i||!s)return-1}return 0}function jo(e,t,n,o){for(var i=-1,a=e.length,l=n.length,c=-1,s=t.length,u=yn(a-l,0),d=r(s+u),f=!o;++c<s;)d[c]=t[c];for(;++i<l;)(f||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[c++]=e[i++];return d}function No(e,t,n,o){for(var i=-1,a=e.length,l=-1,c=n.length,s=-1,u=t.length,d=yn(a-c,0),f=r(d+u),p=!o;++i<d;)f[i]=e[i];for(var h=i;++s<u;)f[h+s]=t[s];for(;++l<c;)(p||i<a)&&(f[h+n[l]]=e[i++]);return f}function Io(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Po(e,t,n,r){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var c=t[a],s=r?r(n[c],e[c],c,n,e):o;s===o&&(s=e[c]),i?ar(n,c,s):nr(n,c,s)}return n}function Mo(e,t){return function(n,r){var o=Va(n)?$t:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function Ro(e){return Qr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&xi(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=_e(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t}))}function Ao(e,t){return function(n,r){if(null==n)return n;if(!Ga(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=_e(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function To(e){return function(t,n,r){for(var o=-1,i=_e(t),a=r(t),l=a.length;l--;){var c=a[e?l:++o];if(!1===n(i[c],c,i))break}return t}}function qo(e){return function(t){var n=cn(t=yl(t))?vn(t):o,r=n?n[0]:t.charAt(0),i=n?Co(n,1).join(""):t.slice(1);return r[e]()+i}}function Lo(e){return function(t){return qt(Zl(Wl(t).replace(et,"")),e,"")}}function Do(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),r=e.apply(n,t);return tl(r)?r:n}}function zo(e){return function(t,n,r){var i=_e(t);if(!Ga(t)){var a=ui(n,3);t=Pl(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function Bo(e){return oi((function(t){var n=t.length,r=n,a=Wn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Ne(i);if(a&&!c&&"wrapper"==ci(l))var c=new Wn([],!0)}for(r=c?r:n;++r<n;){var s=ci(l=t[r]),u="wrapper"==s?li(l):o;c=u&&Ci(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[ci(u[0])].apply(c,u[3]):1==l.length&&Ci(l)?c[s]():c.thru(l)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Va(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Fo(e,t,n,i,a,l,c,s,u,f){var p=t&d,h=1&t,v=2&t,m=24&t,g=512&t,b=v?o:Do(e);return function d(){for(var y=arguments.length,w=r(y),x=y;x--;)w[x]=arguments[x];if(m)var S=si(d),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,S);if(i&&(w=jo(w,i,a,m)),l&&(w=No(w,l,c,m)),y-=C,m&&y<f){var k=dn(w,S);return Ko(e,t,Fo,d.placeholder,n,w,k,s,u,f-y)}var E=h?n:this,O=v?E[e]:e;return y=w.length,s?w=function(e,t){var n=e.length,r=wn(t.length,n),i=Io(e);for(;r--;){var a=t[r];e[r]=wi(a,n)?i[a]:o}return e}(w,s):g&&y>1&&w.reverse(),p&&u<y&&(w.length=u),this&&this!==vt&&this instanceof d&&(O=b||Do(O)),O.apply(E,w)}}function Ho(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Wo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=so(n),r=so(r)),i=e(n,r)}return i}}function Vo(e){return oi((function(t){return t=At(t,Jt(ui())),Qr((function(n){var r=this;return e(t,(function(e){return _t(e,r,n)}))}))}))}function Uo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Xr(t,e):t;var r=Xr(t,ht(e/hn(t)));return cn(t)?Co(vn(r),0,e).join(""):r.slice(0,e)}function Go(e){return function(t,n,i){return i&&"number"!=typeof i&&xi(t,n,i)&&(n=i=o),t=hl(t),n===o?(n=t,t=0):n=hl(n),function(e,t,n,o){for(var i=-1,a=yn(ht((t-e)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=e,e+=n;return l}(t,n,i=i===o?t<n?1:-1:hl(i),e)}}function Yo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gl(t),n=gl(n)),e(t,n)}}function Ko(e,t,n,r,i,a,l,c,d,f){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(t&=-4);var h=[e,t,i,p?a:o,p?l:o,p?o:a,p?o:l,c,d,f],v=n.apply(o,h);return Ci(e)&&Ii(v,h),v.placeholder=r,Ri(v,e,t)}function Xo(e){var t=Oe[e];return function(e,n){if(e=gl(e),(n=null==n?0:wn(vl(n),292))&&wt(e)){var r=(yl(e)+"e").split("e");return+((r=(yl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Qo=$n&&1/fn(new $n([,-0]))[1]==p?function(e){return new $n(e)}:sc;function Zo(e){return function(t){var n=mi(t);return n==E?sn(t):n==N?pn(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,n,a,p,h,v,m){var g=2&t;if(!g&&"function"!=typeof e)throw new Ne(i);var b=a?a.length:0;if(b||(t&=-97,a=p=o),v=v===o?v:yn(vl(v),0),m=m===o?m:vl(m),b-=p?p.length:0,t&u){var y=a,w=p;a=p=o}var x=g?o:li(e),S=[e,t,n,a,p,y,w,h,v,m];if(x&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var s=e[3];e[3]=s?jo(s,c,t[4]):c,e[4]=s?dn(e[3],l):t[4]}(c=t[5])&&(s=e[5],e[5]=s?No(s,c,t[6]):c,e[6]=s?dn(e[5],l):t[6]);(c=t[7])&&(e[7]=c);r&d&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,x),e=S[0],t=S[1],n=S[2],a=S[3],p=S[4],!(m=S[9]=S[9]===o?g?0:e.length:yn(S[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==c?function(e,t,n){var i=Do(e);return function a(){for(var l=arguments.length,c=r(l),s=l,u=si(a);s--;)c[s]=arguments[s];var d=l<3&&c[0]!==u&&c[l-1]!==u?[]:dn(c,u);return(l-=d.length)<n?Ko(e,t,Fo,a.placeholder,o,c,d,o,o,n-l):_t(this&&this!==vt&&this instanceof a?i:e,this,c)}}(e,t,m):t!=s&&33!=t||p.length?Fo.apply(o,S):function(e,t,n,o){var i=1&t,a=Do(e);return function t(){for(var l=-1,c=arguments.length,s=-1,u=o.length,d=r(u+c),f=this&&this!==vt&&this instanceof t?a:e;++s<u;)d[s]=o[s];for(;c--;)d[s++]=arguments[++l];return _t(f,i?n:this,d)}}(e,t,n,a);else var C=function(e,t,n){var r=1&t,o=Do(e);return function t(){return(this&&this!==vt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ri((x?to:Ii)(C,S),e,t)}function ei(e,t,n,r){return e===o||Ba(e,Me[n])&&!Te.call(r,n)?t:e}function ti(e,t,n,r,i,a){return tl(e)&&tl(t)&&(a.set(t,e),Hr(e,t,o,ti,a),a.delete(t)),e}function ni(e){return il(e)?o:e}function ri(e,t,n,r,i,a){var l=1&n,c=e.length,s=t.length;if(c!=s&&!(l&&s>c))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=2&n?new Kn:o;for(a.set(e,t),a.set(t,e);++f<c;){var v=e[f],m=t[f];if(r)var g=l?r(m,v,f,t,e,a):r(v,m,f,e,t,a);if(g!==o){if(g)continue;p=!1;break}if(h){if(!Dt(t,(function(e,t){if(!tn(h,t)&&(v===e||i(v,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(v!==m&&!i(v,m,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function oi(e){return Mi($i(e,o,Ui),e+"")}function ii(e){return Er(e,Pl,hi)}function ai(e){return Er(e,Ml,vi)}var li=In?function(e){return In.get(e)}:sc;function ci(e){for(var t=e.name+"",n=Pn[t],r=Te.call(Pn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function si(e){return(Te.call(Bn,"placeholder")?Bn:e).placeholder}function ui(){var e=Bn.iteratee||ic;return e=e===ic?Tr:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function fi(e){for(var t=Pl(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function pi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Ar(n)?n:o}var hi=gt?function(e){return null==e?[]:(e=_e(e),Pt(gt(e),(function(t){return Ke.call(e,t)})))}:mc,vi=gt?function(e){for(var t=[];e;)Tt(t,hi(e)),e=Ge(e);return t}:mc,mi=Or;function gi(e,t,n){for(var r=-1,o=(t=xo(t,e)).length,i=!1;++r<o;){var a=Li(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&el(o)&&wi(a,o)&&(Va(e)||Wa(e))}function bi(e){return"function"!=typeof e.constructor||Ei(e)?{}:Fn(Ge(e))}function yi(e){return Va(e)||Wa(e)||!!(Qe&&e&&e[Qe])}function wi(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function xi(e,t,n){if(!tl(n))return!1;var r=typeof t;return!!("number"==r?Ga(n)&&wi(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function Si(e,t){if(Va(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!sl(e))||(ne.test(e)||!te.test(e)||null!=t&&e in _e(t))}function Ci(e){var t=ci(e),n=Bn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=li(n);return!!r&&e===r[0]}(En&&mi(new En(new ArrayBuffer(1)))!=A||On&&mi(new On)!=E||_n&&mi(_n.resolve())!=$||$n&&mi(new $n)!=N||jn&&mi(new jn)!=M)&&(mi=function(e){var t=Or(e),n=t==_?e.constructor:o,r=n?Di(n):"";if(r)switch(r){case Mn:return A;case Rn:return E;case An:return $;case Tn:return N;case qn:return M}return t});var ki=Re?Za:gc;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function Oi(e){return e==e&&!tl(e)}function _i(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in _e(n)))}}function $i(e,t,n){return t=yn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=yn(o.length-t,0),l=r(a);++i<a;)l[i]=o[t+i];i=-1;for(var c=r(t+1);++i<t;)c[i]=o[i];return c[t]=n(l),_t(e,this,c)}}function ji(e,t){return t.length<2?e:kr(e,oo(t,0,-1))}function Ni(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ii=Ai(to),Pi=pt||function(e,t){return vt.setTimeout(e,t)},Mi=Ai(no);function Ri(e,t,n){var r=t+"";return Mi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return jt(g,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(r),n)))}function Ai(e){var t=0,n=0;return function(){var r=xn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ti(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var qi=function(e){var t=Aa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function Li(e){if("string"==typeof e||sl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Di(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function zi(e){if(e instanceof Vn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Qr((function(e,t){return Ya(e)?fr(e,br(t,1,Ya,!0)):[]})),Fi=Qr((function(e,t){var n=Qi(t);return Ya(n)&&(n=o),Ya(e)?fr(e,br(t,1,Ya,!0),ui(n,2)):[]})),Hi=Qr((function(e,t){var n=Qi(t);return Ya(n)&&(n=o),Ya(e)?fr(e,br(t,1,Ya,!0),o,n):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vl(n);return o<0&&(o=yn(r+o,0)),Ft(e,ui(t,3),o)}function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=vl(n),i=n<0?yn(r+i,0):wn(i,r-1)),Ft(e,ui(t,3),i,!0)}function Ui(e){return(null==e?0:e.length)?br(e,1):[]}function Gi(e){return e&&e.length?e[0]:o}var Yi=Qr((function(e){var t=At(e,yo);return t.length&&t[0]===e[0]?Nr(t):[]})),Ki=Qr((function(e){var t=Qi(e),n=At(e,yo);return t===Qi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Nr(n,ui(t,2)):[]})),Xi=Qr((function(e){var t=Qi(e),n=At(e,yo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Nr(n,o,t):[]}));function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Qr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=oi((function(e,t){var n=null==e?0:e.length,r=lr(e,t);return Yr(e,At(t,(function(e){return wi(e,n)?+e:e})).sort($o)),r}));function ta(e){return null==e?e:kn.call(e)}var na=Qr((function(e){return fo(br(e,1,Ya,!0))})),ra=Qr((function(e){var t=Qi(e);return Ya(t)&&(t=o),fo(br(e,1,Ya,!0),ui(t,2))})),oa=Qr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,fo(br(e,1,Ya,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Ya(e))return t=yn(e.length,t),!0})),Qt(t,(function(t){return At(e,Gt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:At(n,(function(e){return _t(t,o,e)}))}var la=Qr((function(e,t){return Ya(e)?fr(e,t):[]})),ca=Qr((function(e){return go(Pt(e,Ya))})),sa=Qr((function(e){var t=Qi(e);return Ya(t)&&(t=o),go(Pt(e,Ya),ui(t,2))})),ua=Qr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,go(Pt(e,Ya),o,t)})),da=Qr(ia);var fa=Qr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function pa(e){var t=Bn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=oi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&wi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ma=Mo((function(e,t,n){Te.call(e,n)?++e[n]:ar(e,n,1)}));var ga=zo(Wi),ba=zo(Vi);function ya(e,t){return(Va(e)?jt:pr)(e,ui(t,3))}function wa(e,t){return(Va(e)?Nt:hr)(e,ui(t,3))}var xa=Mo((function(e,t,n){Te.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Sa=Qr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ga(e)?r(e.length):[];return pr(e,(function(e){a[++o]=i?_t(t,e,n):Ir(e,t,n)})),a})),Ca=Mo((function(e,t,n){ar(e,n,t)}));function ka(e,t){return(Va(e)?At:zr)(e,ui(t,3))}var Ea=Mo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Oa=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,br(t,1),[])})),_a=ut||function(){return vt.Date.now()};function $a(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,d,o,o,o,o,t)}function ja(e,t){var n;if("function"!=typeof t)throw new Ne(i);return e=vl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Na=Qr((function(e,t,n){var r=1;if(n.length){var o=dn(n,si(Na));r|=s}return Jo(e,r,t,n,o)})),Ia=Qr((function(e,t,n){var r=3;if(n.length){var o=dn(n,si(Ia));r|=s}return Jo(t,r,e,n,o)}));function Pa(e,t,n){var r,a,l,c,s,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ne(i);function v(t){var n=r,i=a;return r=a=o,d=t,c=e.apply(i,n)}function m(e){var n=e-u;return u===o||n>=t||n<0||p&&e-d>=l}function g(){var e=_a();if(m(e))return b(e);s=Pi(g,function(e){var n=t-(e-u);return p?wn(n,l-(e-d)):n}(e))}function b(e){return s=o,h&&r?v(e):(r=a=o,c)}function y(){var e=_a(),n=m(e);if(r=arguments,a=this,u=e,n){if(s===o)return function(e){return d=e,s=Pi(g,t),f?v(e):c}(u);if(p)return ko(s),s=Pi(g,t),v(u)}return s===o&&(s=Pi(g,t)),c}return t=gl(t)||0,tl(n)&&(f=!!n.leading,l=(p="maxWait"in n)?yn(gl(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),y.cancel=function(){s!==o&&ko(s),d=0,r=u=a=s=o},y.flush=function(){return s===o?c:b(_a())},y}var Ma=Qr((function(e,t){return dr(e,1,t)})),Ra=Qr((function(e,t,n){return dr(e,gl(t)||0,n)}));function Aa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Aa.Cache||Yn),n}function Ta(e){if("function"!=typeof e)throw new Ne(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Aa.Cache=Yn;var qa=So((function(e,t){var n=(t=1==t.length&&Va(t[0])?At(t[0],Jt(ui())):At(br(t,1),Jt(ui()))).length;return Qr((function(r){for(var o=-1,i=wn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return _t(e,this,r)}))})),La=Qr((function(e,t){var n=dn(t,si(La));return Jo(e,s,o,t,n)})),Da=Qr((function(e,t){var n=dn(t,si(Da));return Jo(e,u,o,t,n)})),za=oi((function(e,t){return Jo(e,f,o,o,o,t)}));function Ba(e,t){return e===t||e!=e&&t!=t}var Fa=Yo(_r),Ha=Yo((function(e,t){return e>=t})),Wa=Pr(function(){return arguments}())?Pr:function(e){return nl(e)&&Te.call(e,"callee")&&!Ke.call(e,"callee")},Va=r.isArray,Ua=xt?Jt(xt):function(e){return nl(e)&&Or(e)==R};function Ga(e){return null!=e&&el(e.length)&&!Za(e)}function Ya(e){return nl(e)&&Ga(e)}var Ka=yt||gc,Xa=St?Jt(St):function(e){return nl(e)&&Or(e)==x};function Qa(e){if(!nl(e))return!1;var t=Or(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Za(e){if(!tl(e))return!1;var t=Or(e);return t==C||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==vl(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function nl(e){return null!=e&&"object"==typeof e}var rl=Ct?Jt(Ct):function(e){return nl(e)&&mi(e)==E};function ol(e){return"number"==typeof e||nl(e)&&Or(e)==O}function il(e){if(!nl(e)||Or(e)!=_)return!1;var t=Ge(e);if(null===t)return!0;var n=Te.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==ze}var al=kt?Jt(kt):function(e){return nl(e)&&Or(e)==j};var ll=Et?Jt(Et):function(e){return nl(e)&&mi(e)==N};function cl(e){return"string"==typeof e||!Va(e)&&nl(e)&&Or(e)==I}function sl(e){return"symbol"==typeof e||nl(e)&&Or(e)==P}var ul=Ot?Jt(Ot):function(e){return nl(e)&&el(e.length)&&!!ct[Or(e)]};var dl=Yo(Dr),fl=Yo((function(e,t){return e<=t}));function pl(e){if(!e)return[];if(Ga(e))return cl(e)?vn(e):Io(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=mi(e);return(t==E?sn:t==N?fn:Bl)(e)}function hl(e){return e?(e=gl(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vl(e){var t=hl(e),n=t%1;return t==t?n?t-n:t:0}function ml(e){return e?cr(vl(e),0,m):0}function gl(e){if("number"==typeof e)return e;if(sl(e))return v;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ge.test(e);return n||ye.test(e)?ft(e.slice(2),n?2:8):me.test(e)?v:+e}function bl(e){return Po(e,Ml(e))}function yl(e){return null==e?"":uo(e)}var wl=Ro((function(e,t){if(Ei(t)||Ga(t))Po(t,Pl(t),e);else for(var n in t)Te.call(t,n)&&nr(e,n,t[n])})),xl=Ro((function(e,t){Po(t,Ml(t),e)})),Sl=Ro((function(e,t,n,r){Po(t,Ml(t),e,r)})),Cl=Ro((function(e,t,n,r){Po(t,Pl(t),e,r)})),kl=oi(lr);var El=Qr((function(e,t){e=_e(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&xi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=Ml(a),c=-1,s=l.length;++c<s;){var u=l[c],d=e[u];(d===o||Ba(d,Me[u])&&!Te.call(e,u))&&(e[u]=a[u])}return e})),Ol=Qr((function(e){return e.push(o,ti),_t(Al,o,e)}));function _l(e,t,n){var r=null==e?o:kr(e,t);return r===o?n:r}function $l(e,t){return null!=e&&gi(e,t,jr)}var jl=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),tc(oc)),Nl=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Te.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Il=Qr(Ir);function Pl(e){return Ga(e)?Qn(e):qr(e)}function Ml(e){return Ga(e)?Qn(e,!0):Lr(e)}var Rl=Ro((function(e,t,n){Hr(e,t,n)})),Al=Ro((function(e,t,n,r){Hr(e,t,n,r)})),Tl=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=At(t,(function(t){return t=xo(t,e),r||(r=t.length>1),t})),Po(e,ai(e),n),r&&(n=sr(n,7,ni));for(var o=t.length;o--;)po(n,t[o]);return n}));var ql=oi((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return $l(e,n)}))}(e,t)}));function Ll(e,t){if(null==e)return{};var n=At(ai(e),(function(e){return[e]}));return t=ui(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var Dl=Zo(Pl),zl=Zo(Ml);function Bl(e){return null==e?[]:en(e,Pl(e))}var Fl=Lo((function(e,t,n){return t=t.toLowerCase(),e+(n?Hl(t):t)}));function Hl(e){return Ql(yl(e).toLowerCase())}function Wl(e){return(e=yl(e))&&e.replace(xe,on).replace(tt,"")}var Vl=Lo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ul=Lo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gl=qo("toLowerCase");var Yl=Lo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Kl=Lo((function(e,t,n){return e+(n?" ":"")+Ql(t)}));var Xl=Lo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ql=qo("toUpperCase");function Zl(e,t,n){return e=yl(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Jl=Qr((function(e,t){try{return _t(e,o,t)}catch(e){return Qa(e)?e:new ke(e)}})),ec=oi((function(e,t){return jt(t,(function(t){t=Li(t),ar(e,t,Na(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Bo(),rc=Bo(!0);function oc(e){return e}function ic(e){return Tr("function"==typeof e?e:sr(e,1))}var ac=Qr((function(e,t){return function(n){return Ir(n,e,t)}})),lc=Qr((function(e,t){return function(n){return Ir(e,n,t)}}));function cc(e,t,n){var r=Pl(t),o=Cr(t,r);null!=n||tl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Cr(t,Pl(t)));var i=!(tl(n)&&"chain"in n&&!n.chain),a=Za(e);return jt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Io(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tt([this.value()],arguments))})})),e}function sc(){}var uc=Vo(At),dc=Vo(It),fc=Vo(Dt);function pc(e){return Si(e)?Gt(Li(e)):function(e){return function(t){return kr(t,e)}}(e)}var hc=Go(),vc=Go(!0);function mc(){return[]}function gc(){return!1}var bc=Wo((function(e,t){return e+t}),0),yc=Xo("ceil"),wc=Wo((function(e,t){return e/t}),1),xc=Xo("floor");var Sc,Cc=Wo((function(e,t){return e*t}),1),kc=Xo("round"),Ec=Wo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Ne(i);return e=vl(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=$a,Bn.assign=wl,Bn.assignIn=xl,Bn.assignInWith=Sl,Bn.assignWith=Cl,Bn.at=kl,Bn.before=ja,Bn.bind=Na,Bn.bindAll=ec,Bn.bindKey=Ia,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},Bn.chain=pa,Bn.chunk=function(e,t,n){t=(n?xi(e,t,n):t===o)?1:yn(vl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,c=r(ht(i/t));a<i;)c[l++]=oo(e,a,a+=t);return c},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Tt(Va(n)?Io(n):[n],br(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Ne(i);return[n(e[0]),e[1]]})):[],Qr((function(n){for(var r=-1;++r<t;){var o=e[r];if(_t(o[0],this,n))return _t(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Pl(e);return function(n){return ur(n,e,t)}}(sr(e,1))},Bn.constant=tc,Bn.countBy=ma,Bn.create=function(e,t){var n=Fn(e);return null==t?n:ir(n,t)},Bn.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Jo(t,c,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Pa,Bn.defaults=El,Bn.defaultsDeep=Ol,Bn.defer=Ma,Bn.delay=Ra,Bn.difference=Bi,Bn.differenceBy=Fi,Bn.differenceWith=Hi,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:vl(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:vl(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?vo(e,ui(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?vo(e,ui(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&xi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=vl(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:vl(r))<0&&(r+=i),r=n>r?0:ml(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Va(e)?Pt:gr)(e,ui(t,3))},Bn.flatMap=function(e,t){return br(ka(e,t),1)},Bn.flatMapDeep=function(e,t){return br(ka(e,t),p)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:vl(n),br(ka(e,t),n)},Bn.flatten=Ui,Bn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,p):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===o?1:vl(t)):[]},Bn.flip=function(e){return Jo(e,512)},Bn.flow=nc,Bn.flowRight=rc,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:Cr(e,Pl(e))},Bn.functionsIn=function(e){return null==e?[]:Cr(e,Ml(e))},Bn.groupBy=xa,Bn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Bn.intersection=Yi,Bn.intersectionBy=Ki,Bn.intersectionWith=Xi,Bn.invert=jl,Bn.invertBy=Nl,Bn.invokeMap=Sa,Bn.iteratee=ic,Bn.keyBy=Ca,Bn.keys=Pl,Bn.keysIn=Ml,Bn.map=ka,Bn.mapKeys=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Br(sr(e,1))},Bn.matchesProperty=function(e,t){return Fr(e,sr(t,1))},Bn.memoize=Aa,Bn.merge=Rl,Bn.mergeWith=Al,Bn.method=ac,Bn.methodOf=lc,Bn.mixin=cc,Bn.negate=Ta,Bn.nthArg=function(e){return e=vl(e),Qr((function(t){return Wr(t,e)}))},Bn.omit=Tl,Bn.omitBy=function(e,t){return Ll(e,Ta(ui(t)))},Bn.once=function(e){return ja(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Va(t)||(t=null==t?[]:[t]),Va(n=r?o:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Bn.over=uc,Bn.overArgs=qa,Bn.overEvery=dc,Bn.overSome=fc,Bn.partial=La,Bn.partialRight=Da,Bn.partition=Ea,Bn.pick=ql,Bn.pickBy=Ll,Bn.property=pc,Bn.propertyOf=function(e){return function(t){return null==e?o:kr(e,t)}},Bn.pull=Zi,Bn.pullAll=Ji,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ui(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,o,n):e},Bn.pullAt=ea,Bn.range=hc,Bn.rangeRight=vc,Bn.rearg=za,Bn.reject=function(e,t){return(Va(e)?Pt:gr)(e,Ta(ui(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Yr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new Ne(i);return Qr(e,t=t===o?t:vl(t))},Bn.reverse=ta,Bn.sampleSize=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:vl(t),(Va(e)?Jn:Jr)(e,t)},Bn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},Bn.shuffle=function(e){return(Va(e)?er:ro)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&xi(e,t,n)?(t=0,n=r):(t=null==t?0:vl(t),n=n===o?r:vl(n)),oo(e,t,n)):[]},Bn.sortBy=Oa,Bn.sortedUniq=function(e){return e&&e.length?co(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?co(e,ui(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&xi(e,t,n)&&(t=n=o),(n=n===o?m:n>>>0)?(e=yl(e))&&("string"==typeof t||null!=t&&!al(t))&&!(t=uo(t))&&cn(e)?Co(vn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Ne(i);return t=null==t?0:yn(vl(t),0),Qr((function(n){var r=n[t],o=Co(n,0,t);return r&&Tt(o,r),_t(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:vl(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:vl(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?vo(e,ui(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?vo(e,ui(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ne(i);return tl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Pa(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=ha,Bn.toArray=pl,Bn.toPairs=Dl,Bn.toPairsIn=zl,Bn.toPath=function(e){return Va(e)?At(e,Li):sl(e)?[e]:Io(qi(yl(e)))},Bn.toPlainObject=bl,Bn.transform=function(e,t,n){var r=Va(e),o=r||Ka(e)||ul(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:tl(e)&&Za(i)?Fn(Ge(e)):{}}return(o?jt:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return $a(e,1)},Bn.union=na,Bn.unionBy=ra,Bn.unionWith=oa,Bn.uniq=function(e){return e&&e.length?fo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?fo(e,ui(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?fo(e,o,t):[]},Bn.unset=function(e,t){return null==e||po(e,t)},Bn.unzip=ia,Bn.unzipWith=aa,Bn.update=function(e,t,n){return null==e?e:ho(e,t,wo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ho(e,t,wo(n),r)},Bn.values=Bl,Bn.valuesIn=function(e){return null==e?[]:en(e,Ml(e))},Bn.without=la,Bn.words=Zl,Bn.wrap=function(e,t){return La(wo(t),e)},Bn.xor=ca,Bn.xorBy=sa,Bn.xorWith=ua,Bn.zip=da,Bn.zipObject=function(e,t){return bo(e||[],t||[],nr)},Bn.zipObjectDeep=function(e,t){return bo(e||[],t||[],eo)},Bn.zipWith=fa,Bn.entries=Dl,Bn.entriesIn=zl,Bn.extend=xl,Bn.extendWith=Sl,cc(Bn,Bn),Bn.add=bc,Bn.attempt=Jl,Bn.camelCase=Fl,Bn.capitalize=Hl,Bn.ceil=yc,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=gl(n))==n?n:0),t!==o&&(t=(t=gl(t))==t?t:0),cr(gl(e),t,n)},Bn.clone=function(e){return sr(e,4)},Bn.cloneDeep=function(e){return sr(e,5)},Bn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||ur(e,t,Pl(t))},Bn.deburr=Wl,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=wc,Bn.endsWith=function(e,t,n){e=yl(e),t=uo(t);var r=e.length,i=n=n===o?r:cr(vl(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=yl(e))&&Q.test(e)?e.replace(K,an):e},Bn.escapeRegExp=function(e){return(e=yl(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,n){var r=Va(e)?It:vr;return n&&xi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.find=ga,Bn.findIndex=Wi,Bn.findKey=function(e,t){return Bt(e,ui(t,3),xr)},Bn.findLast=ba,Bn.findLastIndex=Vi,Bn.findLastKey=function(e,t){return Bt(e,ui(t,3),Sr)},Bn.floor=xc,Bn.forEach=ya,Bn.forEachRight=wa,Bn.forIn=function(e,t){return null==e?e:yr(e,ui(t,3),Ml)},Bn.forInRight=function(e,t){return null==e?e:wr(e,ui(t,3),Ml)},Bn.forOwn=function(e,t){return e&&xr(e,ui(t,3))},Bn.forOwnRight=function(e,t){return e&&Sr(e,ui(t,3))},Bn.get=_l,Bn.gt=Fa,Bn.gte=Ha,Bn.has=function(e,t){return null!=e&&gi(e,t,$r)},Bn.hasIn=$l,Bn.head=Gi,Bn.identity=oc,Bn.includes=function(e,t,n,r){e=Ga(e)?e:Bl(e),n=n&&!r?vl(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),cl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ht(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vl(n);return o<0&&(o=yn(r+o,0)),Ht(e,t,o)},Bn.inRange=function(e,t,n){return t=hl(t),n===o?(n=t,t=0):n=hl(n),function(e,t,n){return e>=wn(t,n)&&e<yn(t,n)}(e=gl(e),t,n)},Bn.invoke=Il,Bn.isArguments=Wa,Bn.isArray=Va,Bn.isArrayBuffer=Ua,Bn.isArrayLike=Ga,Bn.isArrayLikeObject=Ya,Bn.isBoolean=function(e){return!0===e||!1===e||nl(e)&&Or(e)==w},Bn.isBuffer=Ka,Bn.isDate=Xa,Bn.isElement=function(e){return nl(e)&&1===e.nodeType&&!il(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(Va(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||ul(e)||Wa(e)))return!e.length;var t=mi(e);if(t==E||t==N)return!e.size;if(Ei(e))return!qr(e).length;for(var n in e)if(Te.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Mr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Mr(e,t,o,n):!!r},Bn.isError=Qa,Bn.isFinite=function(e){return"number"==typeof e&&wt(e)},Bn.isFunction=Za,Bn.isInteger=Ja,Bn.isLength=el,Bn.isMap=rl,Bn.isMatch=function(e,t){return e===t||Rr(e,t,fi(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Rr(e,t,fi(t),n)},Bn.isNaN=function(e){return ol(e)&&e!=+e},Bn.isNative=function(e){if(ki(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ar(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=ol,Bn.isObject=tl,Bn.isObjectLike=nl,Bn.isPlainObject=il,Bn.isRegExp=al,Bn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=h},Bn.isSet=ll,Bn.isString=cl,Bn.isSymbol=sl,Bn.isTypedArray=ul,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return nl(e)&&mi(e)==M},Bn.isWeakSet=function(e){return nl(e)&&"[object WeakSet]"==Or(e)},Bn.join=function(e,t){return null==e?"":zt.call(e,t)},Bn.kebabCase=Vl,Bn.last=Qi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=vl(n))<0?yn(r+i,0):wn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ft(e,Vt,i,!0)},Bn.lowerCase=Ul,Bn.lowerFirst=Gl,Bn.lt=dl,Bn.lte=fl,Bn.max=function(e){return e&&e.length?mr(e,oc,_r):o},Bn.maxBy=function(e,t){return e&&e.length?mr(e,ui(t,2),_r):o},Bn.mean=function(e){return Ut(e,oc)},Bn.meanBy=function(e,t){return Ut(e,ui(t,2))},Bn.min=function(e){return e&&e.length?mr(e,oc,Dr):o},Bn.minBy=function(e,t){return e&&e.length?mr(e,ui(t,2),Dr):o},Bn.stubArray=mc,Bn.stubFalse=gc,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=Cc,Bn.nth=function(e,t){return e&&e.length?Wr(e,vl(t)):o},Bn.noConflict=function(){return vt._===this&&(vt._=Be),this},Bn.noop=sc,Bn.now=_a,Bn.pad=function(e,t,n){e=yl(e);var r=(t=vl(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Uo(mt(o),n)+e+Uo(ht(o),n)},Bn.padEnd=function(e,t,n){e=yl(e);var r=(t=vl(t))?hn(e):0;return t&&r<t?e+Uo(t-r,n):e},Bn.padStart=function(e,t,n){e=yl(e);var r=(t=vl(t))?hn(e):0;return t&&r<t?Uo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(yl(e).replace(ae,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hl(e),t===o?(t=e,e=0):t=hl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Cn();return wn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Bn.reduce=function(e,t,n){var r=Va(e)?qt:Kt,o=arguments.length<3;return r(e,ui(t,4),n,o,pr)},Bn.reduceRight=function(e,t,n){var r=Va(e)?Lt:Kt,o=arguments.length<3;return r(e,ui(t,4),n,o,hr)},Bn.repeat=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:vl(t),Xr(yl(e),t)},Bn.replace=function(){var e=arguments,t=yl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Li(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Bn.round=kc,Bn.runInContext=e,Bn.sample=function(e){return(Va(e)?Zn:Zr)(e)},Bn.size=function(e){if(null==e)return 0;if(Ga(e))return cl(e)?hn(e):e.length;var t=mi(e);return t==E||t==N?e.size:qr(e).length},Bn.snakeCase=Yl,Bn.some=function(e,t,n){var r=Va(e)?Dt:io;return n&&xi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.sortedIndex=function(e,t){return ao(e,t)},Bn.sortedIndexBy=function(e,t,n){return lo(e,t,ui(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&Ba(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ao(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return lo(e,t,ui(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},Bn.startCase=Kl,Bn.startsWith=function(e,t,n){return e=yl(e),n=null==n?0:cr(vl(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Bn.subtract=Ec,Bn.sum=function(e){return e&&e.length?Xt(e,oc):0},Bn.sumBy=function(e,t){return e&&e.length?Xt(e,ui(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&xi(e,t,n)&&(t=o),e=yl(e),t=Sl({},t,r,ei);var i,a,l=Sl({},t.imports,r.imports,ei),c=Pl(l),s=en(l,c),u=0,d=t.interpolate||Se,f="__p += '",p=$e((t.escape||Se).source+"|"+d.source+"|"+(d===ee?he:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),h="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lt+"]")+"\n";e.replace(p,(function(t,n,r,o,l,c){return r||(r=o),f+=e.slice(u,c).replace(Ce,ln),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";var v=Te.call(t,"variable")&&t.variable;if(v){if(fe.test(v))throw new ke("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(V,""):f).replace(U,"$1").replace(G,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Jl((function(){return Ee(c,h+"return "+f).apply(o,s)}));if(m.source=f,Qa(m))throw m;return m},Bn.times=function(e,t){if((e=vl(e))<1||e>h)return[];var n=m,r=wn(e,m);t=ui(t),e-=m;for(var o=Qt(r,t);++n<e;)t(n);return o},Bn.toFinite=hl,Bn.toInteger=vl,Bn.toLength=ml,Bn.toLower=function(e){return yl(e).toLowerCase()},Bn.toNumber=gl,Bn.toSafeInteger=function(e){return e?cr(vl(e),-9007199254740991,h):0===e?e:0},Bn.toString=yl,Bn.toUpper=function(e){return yl(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=yl(e))&&(n||t===o))return Zt(e);if(!e||!(t=uo(t)))return e;var r=vn(e),i=vn(t);return Co(r,nn(r,i),rn(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=yl(e))&&(n||t===o))return e.slice(0,mn(e)+1);if(!e||!(t=uo(t)))return e;var r=vn(e);return Co(r,0,rn(r,vn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=yl(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var r=vn(e);return Co(r,nn(r,vn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(tl(t)){var i="separator"in t?t.separator:i;n="length"in t?vl(t.length):n,r="omission"in t?uo(t.omission):r}var a=(e=yl(e)).length;if(cn(e)){var l=vn(e);a=l.length}if(n>=a)return e;var c=n-hn(r);if(c<1)return r;var s=l?Co(l,0,c).join(""):e.slice(0,c);if(i===o)return s+r;if(l&&(c+=s.length-c),al(i)){if(e.slice(c).search(i)){var u,d=s;for(i.global||(i=$e(i.source,yl(ve.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;s=s.slice(0,f===o?c:f)}}else if(e.indexOf(uo(i),c)!=c){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r},Bn.unescape=function(e){return(e=yl(e))&&X.test(e)?e.replace(Y,gn):e},Bn.uniqueId=function(e){var t=++qe;return yl(e)+t},Bn.upperCase=Xl,Bn.upperFirst=Ql,Bn.each=ya,Bn.eachRight=wa,Bn.first=Gi,cc(Bn,(Sc={},xr(Bn,(function(e,t){Te.call(Bn.prototype,t)||(Sc[t]=e)})),Sc),{chain:!1}),Bn.VERSION="4.17.21",jt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),jt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===o?1:yn(vl(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),jt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),jt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),jt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(oc)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Ir(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ta(ui(e)))},Vn.prototype.slice=function(e,t){e=vl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=vl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(m)},xr(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,c=t instanceof Vn,s=l[0],u=c||Va(t),d=function(e){var t=i.apply(Bn,Tt([e],l));return r&&f?t[0]:t};u&&n&&"function"==typeof s&&1!=s.length&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,v=c&&!p;if(!a&&u){t=v?t:new Vn(this);var m=e.apply(t,l);return m.__actions__.push({func:ha,args:[d],thisArg:o}),new Wn(m,f)}return h&&v?e.apply(this,l):(m=this.thru(d),h?r?m.value()[0]:m.value():m)})})),jt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Va(o)?o:[],e)}return this[n]((function(n){return t.apply(Va(n)?n:[],e)}))}})),xr(Vn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Te.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}})),Pn[Fo(o,2).name]=[{name:"wrapper",func:o}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Va(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=wn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,c=l-a,s=r?l:a-1,u=this.__iteratees__,d=u.length,f=0,p=wn(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return mo(e,this.__actions__);var h=[];e:for(;c--&&f<p;){for(var v=-1,m=e[s+=t];++v<d;){var g=u[v],b=g.iteratee,y=g.type,w=b(m);if(2==y)m=w;else if(!w){if(1==y)continue e;break e}}h[f++]=m}return h},Bn.prototype.at=va,Bn.prototype.chain=function(){return pa(this)},Bn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=pl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=zi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new Wn(t,this.__chain__)}return this.thru(ta)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Ze&&(Bn.prototype[Ze]=function(){return this}),Bn}();vt._=bn,(r=function(){return bn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},9761:function(e,t,n){var r; | |
| 18 | -/** | |
| 19 | - * @license | |
| 20 | - * Lodash <https://lodash.com/> | |
| 21 | - * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> | |
| 22 | - * Released under MIT license <https://lodash.com/license> | |
| 23 | - * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | |
| 24 | - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | |
| 25 | - */e=n.nmd(e),function(){function o(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function i(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function l(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function c(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function s(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function u(e,t){return!(null==e||!e.length)&&w(e,t,0)>-1}function d(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function f(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function p(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function h(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function v(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function m(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function g(e){return e.match(tt)||[]}function b(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function y(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function w(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):y(e,S,n)}function x(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function S(e){return e!=e}function C(e,t){var n=null==e?0:e.length;return n?_(e,t)/n:re}function k(e){return function(t){return null==t?U:t[e]}}function E(e){return function(t){return null==e?U:e[t]}}function O(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function _(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==U&&(n=n===U?i:n+i)}return n}function $(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function j(e){return e?e.slice(0,W(e)+1).replace(Xe,""):e}function N(e){return function(t){return e(t)}}function I(e,t){return f(t,(function(t){return e[t]}))}function P(e,t){return e.has(t)}function M(e,t){for(var n=-1,r=e.length;++n<r&&w(t,e[n],0)>-1;);return n}function R(e,t){for(var n=e.length;n--&&w(t,e[n],0)>-1;);return n}function A(e){return"\\"+en[e]}function T(e){return Yt.test(e)}function q(e){return Kt.test(e)}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function D(e,t){return function(n){return e(t(n))}}function z(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==K||(e[n]=K,i[o++]=n)}return i}function B(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function F(e){return T(e)?function(e){for(var t=Ut.lastIndex=0;Ut.test(e);)++t;return t}(e):bn(e)}function H(e){return T(e)?function(e){return e.match(Ut)||[]}(e):function(e){return e.split("")}(e)}function W(e){for(var t=e.length;t--&&Qe.test(e.charAt(t)););return t}function V(e){return e.match(Gt)||[]}var U,G="Expected a function",Y="__lodash_hash_undefined__",K="__lodash_placeholder__",X=16,Q=32,Z=64,J=128,ee=256,te=1/0,ne=9007199254740991,re=NaN,oe=4294967295,ie=oe-1,ae=oe>>>1,le=[["ary",J],["bind",1],["bindKey",2],["curry",8],["curryRight",X],["flip",512],["partial",Q],["partialRight",Z],["rearg",ee]],ce="[object Arguments]",se="[object Array]",ue="[object Boolean]",de="[object Date]",fe="[object Error]",pe="[object Function]",he="[object GeneratorFunction]",ve="[object Map]",me="[object Number]",ge="[object Object]",be="[object Promise]",ye="[object RegExp]",we="[object Set]",xe="[object String]",Se="[object Symbol]",Ce="[object WeakMap]",ke="[object ArrayBuffer]",Ee="[object DataView]",Oe="[object Float32Array]",_e="[object Float64Array]",$e="[object Int8Array]",je="[object Int16Array]",Ne="[object Int32Array]",Ie="[object Uint8Array]",Pe="[object Uint8ClampedArray]",Me="[object Uint16Array]",Re="[object Uint32Array]",Ae=/\b__p \+= '';/g,Te=/\b(__p \+=) '' \+/g,qe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Le=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,ze=RegExp(Le.source),Be=RegExp(De.source),Fe=/<%-([\s\S]+?)%>/g,He=/<%([\s\S]+?)%>/g,We=/<%=([\s\S]+?)%>/g,Ve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ue=/^\w*$/,Ge=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ye=/[\\^$.*+?()[\]{}|]/g,Ke=RegExp(Ye.source),Xe=/^\s+/,Qe=/\s/,Ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Je=/\{\n\/\* \[wrapped with (.+)\] \*/,et=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/[()=,{}\[\]\/\s]/,rt=/\\(\\)?/g,ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,it=/\w*$/,at=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,ct=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,dt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ft=/($^)/,pt=/['\n\r\u2028\u2029\\]/g,ht="\\ud800-\\udfff",vt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",mt="\\u2700-\\u27bf",gt="a-z\\xdf-\\xf6\\xf8-\\xff",bt="A-Z\\xc0-\\xd6\\xd8-\\xde",yt="\\ufe0e\\ufe0f",wt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xt="['’]",St="["+ht+"]",Ct="["+wt+"]",kt="["+vt+"]",Et="\\d+",Ot="["+mt+"]",_t="["+gt+"]",$t="[^"+ht+wt+Et+mt+gt+bt+"]",jt="\\ud83c[\\udffb-\\udfff]",Nt="[^"+ht+"]",It="(?:\\ud83c[\\udde6-\\uddff]){2}",Pt="[\\ud800-\\udbff][\\udc00-\\udfff]",Mt="["+bt+"]",Rt="\\u200d",At="(?:"+_t+"|"+$t+")",Tt="(?:"+Mt+"|"+$t+")",qt="(?:['’](?:d|ll|m|re|s|t|ve))?",Lt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Dt="(?:"+kt+"|"+jt+")"+"?",zt="["+yt+"]?",Bt=zt+Dt+("(?:"+Rt+"(?:"+[Nt,It,Pt].join("|")+")"+zt+Dt+")*"),Ft="(?:"+[Ot,It,Pt].join("|")+")"+Bt,Ht="(?:"+[Nt+kt+"?",kt,It,Pt,St].join("|")+")",Wt=RegExp(xt,"g"),Vt=RegExp(kt,"g"),Ut=RegExp(jt+"(?="+jt+")|"+Ht+Bt,"g"),Gt=RegExp([Mt+"?"+_t+"+"+qt+"(?="+[Ct,Mt,"$"].join("|")+")",Tt+"+"+Lt+"(?="+[Ct,Mt+At,"$"].join("|")+")",Mt+"?"+At+"+"+qt,Mt+"+"+Lt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Et,Ft].join("|"),"g"),Yt=RegExp("["+Rt+ht+vt+yt+"]"),Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qt=-1,Zt={};Zt[Oe]=Zt[_e]=Zt[$e]=Zt[je]=Zt[Ne]=Zt[Ie]=Zt[Pe]=Zt[Me]=Zt[Re]=!0,Zt[ce]=Zt[se]=Zt[ke]=Zt[ue]=Zt[Ee]=Zt[de]=Zt[fe]=Zt[pe]=Zt[ve]=Zt[me]=Zt[ge]=Zt[ye]=Zt[we]=Zt[xe]=Zt[Ce]=!1;var Jt={};Jt[ce]=Jt[se]=Jt[ke]=Jt[Ee]=Jt[ue]=Jt[de]=Jt[Oe]=Jt[_e]=Jt[$e]=Jt[je]=Jt[Ne]=Jt[ve]=Jt[me]=Jt[ge]=Jt[ye]=Jt[we]=Jt[xe]=Jt[Se]=Jt[Ie]=Jt[Pe]=Jt[Me]=Jt[Re]=!0,Jt[fe]=Jt[pe]=Jt[Ce]=!1;var en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tn=parseFloat,nn=parseInt,rn="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,on="object"==typeof self&&self&&self.Object===Object&&self,an=rn||on||Function("return this")(),ln=t&&!t.nodeType&&t,cn=ln&&e&&!e.nodeType&&e,sn=cn&&cn.exports===ln,un=sn&&rn.process,dn=function(){try{var e=cn&&cn.require&&cn.require("util").types;return e||un&&un.binding&&un.binding("util")}catch(e){}}(),fn=dn&&dn.isArrayBuffer,pn=dn&&dn.isDate,hn=dn&&dn.isMap,vn=dn&&dn.isRegExp,mn=dn&&dn.isSet,gn=dn&&dn.isTypedArray,bn=k("length"),yn=E({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),wn=E({"&":"&","<":"<",">":">",'"':""","'":"'"}),xn=E({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Sn=function e(t){function n(e){if(Bo(e)&&!Nl(e)&&!(e instanceof Qe)){if(e instanceof E)return e;if(Ni.call(e,"__wrapped__"))return po(e)}return new E(e)}function r(){}function E(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=U}function Qe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oe,this.__views__=[]}function tt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ht(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function vt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function mt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new vt;++t<n;)this.add(e[t])}function gt(e){this.size=(this.__data__=new ht(e)).size}function bt(e,t){var n=Nl(e),r=!n&&jl(e),o=!n&&!r&&Pl(e),i=!n&&!r&&!o&&ql(e),a=n||r||o||i,l=a?$(e.length,Ci):[],c=l.length;for(var s in e)!t&&!Ni.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Xr(s,c))||l.push(s);return l}function yt(e){var t=e.length;return t?e[Mn(0,t-1)]:U}function wt(e,t){return co(ur(e),jt(t,0,e.length))}function xt(e){return co(ur(e))}function St(e,t,n){(n===U||Mo(e[t],n))&&(n!==U||t in e)||_t(e,t,n)}function Ct(e,t,n){var r=e[t];Ni.call(e,t)&&Mo(r,n)&&(n!==U||t in e)||_t(e,t,n)}function kt(e,t){for(var n=e.length;n--;)if(Mo(e[n][0],t))return n;return-1}function Et(e,t,n,r){return $a(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Ot(e,t){return e&&dr(t,ti(t),e)}function _t(e,t,n){"__proto__"==t&&Yi?Yi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $t(e,t){for(var n=-1,r=t.length,o=mi(r),i=null==e;++n<r;)o[n]=i?U:Jo(e,t[n]);return o}function jt(e,t,n){return e==e&&(n!==U&&(e=e<=n?e:n),t!==U&&(e=e>=t?e:t)),e}function Nt(e,t,n,r,o,i){var l,c=1&t,s=2&t,u=4&t;if(n&&(l=o?n(e,r,o,i):n(e)),l!==U)return l;if(!zo(e))return e;var d=Nl(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ni.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return ur(e,l)}else{var f=za(e),p=f==pe||f==he;if(Pl(e))return or(e,c);if(f==ge||f==ce||p&&!o){if(l=s||p?{}:Yr(e),!c)return s?function(e,t){return dr(e,Da(e),t)}(e,function(e,t){return e&&dr(t,ni(t),e)}(l,e)):function(e,t){return dr(e,La(e),t)}(e,Ot(l,e))}else{if(!Jt[f])return o?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case ke:return ir(e);case ue:case de:return new r(+e);case Ee:return function(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case Oe:case _e:case $e:case je:case Ne:case Ie:case Pe:case Me:case Re:return ar(e,n);case ve:return new r;case me:case xe:return new r(e);case ye:return function(e){var t=new e.constructor(e.source,it.exec(e));return t.lastIndex=e.lastIndex,t}(e);case we:return new r;case Se:return function(e){return Ea?xi(Ea.call(e)):{}}(e)}}(e,f,c)}}i||(i=new gt);var h=i.get(e);if(h)return h;i.set(e,l),Tl(e)?e.forEach((function(r){l.add(Nt(r,t,n,r,e,i))})):Rl(e)&&e.forEach((function(r,o){l.set(o,Nt(r,t,n,o,e,i))}));var v=d?U:(u?s?zr:Dr:s?ni:ti)(e);return a(v||e,(function(r,o){v&&(r=e[o=r]),Ct(l,o,Nt(r,t,n,o,e,i))})),l}function It(e,t,n){var r=n.length;if(null==e)return!r;for(e=xi(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===U&&!(o in e)||!i(a))return!1}return!0}function Pt(e,t,n){if("function"!=typeof e)throw new ki(G);return Ha((function(){e.apply(U,n)}),t)}function Mt(e,t,n,r){var o=-1,i=u,a=!0,l=e.length,c=[],s=t.length;if(!l)return c;n&&(t=f(t,N(n))),r?(i=d,a=!1):t.length>=200&&(i=P,a=!1,t=new mt(t));e:for(;++o<l;){var p=e[o],h=null==n?p:n(p);if(p=r||0!==p?p:0,a&&h==h){for(var v=s;v--;)if(t[v]===h)continue e;c.push(p)}else i(t,h,r)||c.push(p)}return c}function Rt(e,t){var n=!0;return $a(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function At(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(l===U?a==a&&!Vo(a):n(a,l)))var l=a,c=i}return c}function Tt(e,t){var n=[];return $a(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function qt(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Kr),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?qt(l,t-1,n,r,o):p(o,l):r||(o[o.length]=l)}return o}function Lt(e,t){return e&&Na(e,t,ti)}function Dt(e,t){return e&&Ia(e,t,ti)}function zt(e,t){return s(t,(function(t){return qo(e[t])}))}function Bt(e,t){for(var n=0,r=(t=nr(t,e)).length;null!=e&&n<r;)e=e[so(t[n++])];return n&&n==r?e:U}function Ft(e,t,n){var r=t(e);return Nl(e)?r:p(r,n(e))}function Ht(e){return null==e?e===U?"[object Undefined]":"[object Null]":Gi&&Gi in xi(e)?function(e){var t=Ni.call(e,Gi),n=e[Gi];try{e[Gi]=U;var r=!0}catch(e){}var o=Mi.call(e);return r&&(t?e[Gi]=n:delete e[Gi]),o}(e):function(e){return Mi.call(e)}(e)}function Ut(e,t){return e>t}function Gt(e,t){return null!=e&&Ni.call(e,t)}function Yt(e,t){return null!=e&&t in xi(e)}function Kt(e,t,n){for(var r=n?d:u,o=e[0].length,i=e.length,a=i,l=mi(i),c=1/0,s=[];a--;){var p=e[a];a&&t&&(p=f(p,N(t))),c=aa(p.length,c),l[a]=!n&&(t||o>=120&&p.length>=120)?new mt(a&&p):U}p=e[0];var h=-1,v=l[0];e:for(;++h<o&&s.length<c;){var m=p[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(v?P(v,g):r(s,g,n))){for(a=i;--a;){var b=l[a];if(!(b?P(b,g):r(e[a],g,n)))continue e}v&&v.push(g),s.push(m)}}return s}function en(e,t,n){var r=null==(e=oo(e,t=nr(t,e)))?e:e[so(bo(t))];return null==r?U:o(r,e,n)}function rn(e){return Bo(e)&&Ht(e)==ce}function on(e,t,n,r,o){return e===t||(null==e||null==t||!Bo(e)&&!Bo(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=Nl(e),l=Nl(t),c=a?se:za(e),s=l?se:za(t);c=c==ce?ge:c,s=s==ce?ge:s;var u=c==ge,d=s==ge,f=c==s;if(f&&Pl(e)){if(!Pl(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new gt),a||ql(e)?qr(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case Ee:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ke:return!(e.byteLength!=t.byteLength||!i(new Di(e),new Di(t)));case ue:case de:case me:return Mo(+e,+t);case fe:return e.name==t.name&&e.message==t.message;case ye:case xe:return e==t+"";case ve:var l=L;case we:var c=1&r;if(l||(l=B),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var u=qr(l(e),l(t),r,o,i,a);return a.delete(e),u;case Se:if(Ea)return Ea.call(e)==Ea.call(t)}return!1}(e,t,c,n,r,o,i);if(!(1&n)){var p=u&&Ni.call(e,"__wrapped__"),h=d&&Ni.call(t,"__wrapped__");if(p||h){var v=p?e.value():e,m=h?t.value():t;return i||(i=new gt),o(v,m,n,r,i)}}return!!f&&(i||(i=new gt),function(e,t,n,r,o,i){var a=1&n,l=Dr(e),c=l.length;if(c!=Dr(t).length&&!a)return!1;for(var s=c;s--;){var u=l[s];if(!(a?u in t:Ni.call(t,u)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++s<c;){var v=e[u=l[s]],m=t[u];if(r)var g=a?r(m,v,u,t,e,i):r(v,m,u,e,t,i);if(!(g===U?v===m||o(v,m,n,r,i):g)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,i))}(e,t,n,r,on,o))}function ln(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=xi(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){var c=(l=n[o])[0],s=e[c],u=l[1];if(a&&l[2]){if(s===U&&!(c in e))return!1}else{var d=new gt;if(r)var f=r(s,u,c,e,t,d);if(!(f===U?on(u,s,3,r,d):f))return!1}}return!0}function cn(e){return!(!zo(e)||function(e){return!!Pi&&Pi in e}(e))&&(qo(e)?Ti:ct).test(uo(e))}function un(e){return"function"==typeof e?e:null==e?si:"object"==typeof e?Nl(e)?On(e[0],e[1]):En(e):pi(e)}function dn(e){if(!eo(e))return oa(e);var t=[];for(var n in xi(e))Ni.call(e,n)&&"constructor"!=n&&t.push(n);return t}function bn(e){if(!zo(e))return function(e){var t=[];if(null!=e)for(var n in xi(e))t.push(n);return t}(e);var t=eo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ni.call(e,r))&&n.push(r);return n}function Cn(e,t){return e<t}function kn(e,t){var n=-1,r=Ro(e)?mi(e.length):[];return $a(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function En(e){var t=Vr(e);return 1==t.length&&t[0][2]?no(t[0][0],t[0][1]):function(n){return n===e||ln(n,e,t)}}function On(e,t){return Zr(e)&&to(t)?no(so(e),t):function(n){var r=Jo(n,e);return r===U&&r===t?ei(n,e):on(t,r,3)}}function _n(e,t,n,r,o){e!==t&&Na(t,(function(i,a){if(o||(o=new gt),zo(i))!function(e,t,n,r,o,i,a){var l=io(e,n),c=io(t,n),s=a.get(c);if(s)return St(e,n,s),U;var u=i?i(l,c,n+"",e,t,a):U,d=u===U;if(d){var f=Nl(c),p=!f&&Pl(c),h=!f&&!p&&ql(c);u=c,f||p||h?Nl(l)?u=l:Ao(l)?u=ur(l):p?(d=!1,u=or(c,!0)):h?(d=!1,u=ar(c,!0)):u=[]:Ho(c)||jl(c)?(u=l,jl(l)?u=Qo(l):zo(l)&&!qo(l)||(u=Yr(c))):d=!1}d&&(a.set(c,u),o(u,c,r,i,a),a.delete(c)),St(e,n,u)}(e,t,a,n,_n,r,o);else{var l=r?r(io(e,a),i,a+"",e,t,o):U;l===U&&(l=i),St(e,a,l)}}),ni)}function $n(e,t){var n=e.length;if(n)return Xr(t+=t<0?n:0,n)?e[t]:U}function jn(e,t,n){t=t.length?f(t,(function(e){return Nl(e)?function(t){return Bt(t,1===e.length?e[0]:e)}:e})):[si];var r=-1;return t=f(t,N(Hr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(kn(e,(function(e,n,o){return{criteria:f(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var c=lr(o[r],i[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Nn(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=Bt(e,a);n(l,a)&&Ln(i,nr(a,e),l)}return i}function In(e,t,n,r){var o=r?x:w,i=-1,a=t.length,l=e;for(e===t&&(t=ur(t)),n&&(l=f(e,N(n)));++i<a;)for(var c=0,s=t[i],u=n?n(s):s;(c=o(l,u,c,r))>-1;)l!==e&&Wi.call(l,c,1),Wi.call(e,c,1);return e}function Pn(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Xr(o)?Wi.call(e,o,1):Yn(e,o)}}return e}function Mn(e,t){return e+Ji(sa()*(t-e+1))}function Rn(e,t){var n="";if(!e||t<1||t>ne)return n;do{t%2&&(n+=e),(t=Ji(t/2))&&(e+=e)}while(t);return n}function An(e,t){return Wa(ro(e,t,si),e+"")}function Tn(e){return yt(oi(e))}function qn(e,t){var n=oi(e);return co(n,jt(t,0,n.length))}function Ln(e,t,n,r){if(!zo(e))return e;for(var o=-1,i=(t=nr(t,e)).length,a=i-1,l=e;null!=l&&++o<i;){var c=so(t[o]),s=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var u=l[c];(s=r?r(u,c,l):U)===U&&(s=zo(u)?u:Xr(t[o+1])?[]:{})}Ct(l,c,s),l=l[c]}return e}function Dn(e){return co(oi(e))}function zn(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=mi(o);++r<o;)i[r]=e[r+t];return i}function Bn(e,t){var n;return $a(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Fn(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=ae){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Vo(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Hn(e,t,si,n)}function Hn(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,l=null===t,c=Vo(t),s=t===U;o<i;){var u=Ji((o+i)/2),d=n(e[u]),f=d!==U,p=null===d,h=d==d,v=Vo(d);if(a)var m=r||h;else m=s?h&&(r||f):l?h&&f&&(r||!p):c?h&&f&&!p&&(r||!v):!p&&!v&&(r?d<=t:d<t);m?o=u+1:i=u}return aa(i,ie)}function Wn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Mo(l,c)){var c=l;i[o++]=0===a?0:a}}return i}function Vn(e){return"number"==typeof e?e:Vo(e)?re:+e}function Un(e){if("string"==typeof e)return e;if(Nl(e))return f(e,Un)+"";if(Vo(e))return Oa?Oa.call(e):"";var t=e+"";return"0"==t&&1/e==-te?"-0":t}function Gn(e,t,n){var r=-1,o=u,i=e.length,a=!0,l=[],c=l;if(n)a=!1,o=d;else if(i>=200){var s=t?null:Ta(e);if(s)return B(s);a=!1,o=P,c=new mt}else c=t?[]:l;e:for(;++r<i;){var f=e[r],p=t?t(f):f;if(f=n||0!==f?f:0,a&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue e;t&&c.push(p),l.push(f)}else o(c,p,n)||(c!==l&&c.push(p),l.push(f))}return l}function Yn(e,t){return null==(e=oo(e,t=nr(t,e)))||delete e[so(bo(t))]}function Kn(e,t,n,r){return Ln(e,t,n(Bt(e,t)),r)}function Xn(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?zn(e,r?0:i,r?i+1:o):zn(e,r?i+1:0,r?o:i)}function Qn(e,t){var n=e;return n instanceof Qe&&(n=n.value()),h(t,(function(e,t){return t.func.apply(t.thisArg,p([e],t.args))}),n)}function Zn(e,t,n){var r=e.length;if(r<2)return r?Gn(e[0]):[];for(var o=-1,i=mi(r);++o<r;)for(var a=e[o],l=-1;++l<r;)l!=o&&(i[o]=Mt(i[o]||a,e[l],t,n));return Gn(qt(i,1),t,n)}function Jn(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;)n(a,e[r],r<i?t[r]:U);return a}function er(e){return Ao(e)?e:[]}function tr(e){return"function"==typeof e?e:si}function nr(e,t){return Nl(e)?e:Zr(e,t)?[e]:Va(Zo(e))}function rr(e,t,n){var r=e.length;return n=n===U?r:n,!t&&n>=r?e:zn(e,t,n)}function or(e,t){if(t)return e.slice();var n=e.length,r=zi?zi(n):new e.constructor(n);return e.copy(r),r}function ir(e){var t=new e.constructor(e.byteLength);return new Di(t).set(new Di(e)),t}function ar(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.length)}function lr(e,t){if(e!==t){var n=e!==U,r=null===e,o=e==e,i=Vo(e),a=t!==U,l=null===t,c=t==t,s=Vo(t);if(!l&&!s&&!i&&e>t||i&&a&&c&&!l&&!s||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!s&&e<t||s&&n&&o&&!r&&!i||l&&n&&o||!a&&o||!c)return-1}return 0}function cr(e,t,n,r){for(var o=-1,i=e.length,a=n.length,l=-1,c=t.length,s=ia(i-a,0),u=mi(c+s),d=!r;++l<c;)u[l]=t[l];for(;++o<a;)(d||o<i)&&(u[n[o]]=e[o]);for(;s--;)u[l++]=e[o++];return u}function sr(e,t,n,r){for(var o=-1,i=e.length,a=-1,l=n.length,c=-1,s=t.length,u=ia(i-l,0),d=mi(u+s),f=!r;++o<u;)d[o]=e[o];for(var p=o;++c<s;)d[p+c]=t[c];for(;++a<l;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function ur(e,t){var n=-1,r=e.length;for(t||(t=mi(r));++n<r;)t[n]=e[n];return t}function dr(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],c=r?r(n[l],e[l],l,n,e):U;c===U&&(c=e[l]),o?_t(n,l,c):Ct(n,l,c)}return n}function fr(e,t){return function(n,r){var o=Nl(n)?i:Et,a=t?t():{};return o(n,e,Hr(r,2),a)}}function pr(e){return An((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:U,a=o>2?n[2]:U;for(i=e.length>3&&"function"==typeof i?(o--,i):U,a&&Qr(n[0],n[1],a)&&(i=o<3?U:i,o=1),t=xi(t);++r<o;){var l=n[r];l&&e(t,l,r,i)}return t}))}function hr(e,t){return function(n,r){if(null==n)return n;if(!Ro(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=xi(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function vr(e){return function(t,n,r){for(var o=-1,i=xi(t),a=r(t),l=a.length;l--;){var c=a[e?l:++o];if(!1===n(i[c],c,i))break}return t}}function mr(e){return function(t){var n=T(t=Zo(t))?H(t):U,r=n?n[0]:t.charAt(0),o=n?rr(n,1).join(""):t.slice(1);return r[e]()+o}}function gr(e){return function(t){return h(li(ai(t).replace(Wt,"")),e,"")}}function br(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=_a(e.prototype),r=e.apply(n,t);return zo(r)?r:n}}function yr(e,t,n){var r=br(e);return function i(){for(var a=arguments.length,l=mi(a),c=a,s=Fr(i);c--;)l[c]=arguments[c];var u=a<3&&l[0]!==s&&l[a-1]!==s?[]:z(l,s);return(a-=u.length)<n?Nr(e,t,Sr,i.placeholder,U,l,u,U,U,n-a):o(this&&this!==an&&this instanceof i?r:e,this,l)}}function wr(e){return function(t,n,r){var o=xi(t);if(!Ro(t)){var i=Hr(n,3);t=ti(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:U}}function xr(e){return Lr((function(t){var n=t.length,r=n,o=E.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new ki(G);if(o&&!a&&"wrapper"==Br(i))var a=new E([],!0)}for(r=a?r:n;++r<n;){var l=Br(i=t[r]),c="wrapper"==l?qa(i):U;a=c&&Jr(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?a[Br(c[0])].apply(a,c[3]):1==i.length&&Jr(i)?a[l]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Nl(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Sr(e,t,n,r,o,i,a,l,c,s){var u=t&J,d=1&t,f=2&t,p=24&t,h=512&t,v=f?U:br(e);return function m(){for(var g=arguments.length,b=mi(g),y=g;y--;)b[y]=arguments[y];if(p)var w=Fr(m),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,w);if(r&&(b=cr(b,r,o,p)),i&&(b=sr(b,i,a,p)),g-=x,p&&g<s)return Nr(e,t,Sr,m.placeholder,n,b,z(b,w),l,c,s-g);var S=d?n:this,C=f?S[e]:e;return g=b.length,l?b=function(e,t){for(var n=e.length,r=aa(t.length,n),o=ur(e);r--;){var i=t[r];e[r]=Xr(i,n)?o[i]:U}return e}(b,l):h&&g>1&&b.reverse(),u&&c<g&&(b.length=c),this&&this!==an&&this instanceof m&&(C=v||br(C)),C.apply(S,b)}}function Cr(e,t){return function(n,r){return function(e,t,n,r){return Lt(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function kr(e,t){return function(n,r){var o;if(n===U&&r===U)return t;if(n!==U&&(o=n),r!==U){if(o===U)return r;"string"==typeof n||"string"==typeof r?(n=Un(n),r=Un(r)):(n=Vn(n),r=Vn(r)),o=e(n,r)}return o}}function Er(e){return Lr((function(t){return t=f(t,N(Hr())),An((function(n){var r=this;return e(t,(function(e){return o(e,r,n)}))}))}))}function Or(e,t){var n=(t=t===U?" ":Un(t)).length;if(n<2)return n?Rn(t,e):t;var r=Rn(t,Zi(e/F(t)));return T(t)?rr(H(r),0,e).join(""):r.slice(0,e)}function _r(e,t,n,r){var i=1&t,a=br(e);return function t(){for(var l=-1,c=arguments.length,s=-1,u=r.length,d=mi(u+c),f=this&&this!==an&&this instanceof t?a:e;++s<u;)d[s]=r[s];for(;c--;)d[s++]=arguments[++l];return o(f,i?n:this,d)}}function $r(e){return function(t,n,r){return r&&"number"!=typeof r&&Qr(t,n,r)&&(n=r=U),t=Go(t),n===U?(n=t,t=0):n=Go(n),function(e,t,n,r){for(var o=-1,i=ia(Zi((t-e)/(n||1)),0),a=mi(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=r===U?t<n?1:-1:Go(r),e)}}function jr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Xo(t),n=Xo(n)),e(t,n)}}function Nr(e,t,n,r,o,i,a,l,c,s){var u=8&t;t|=u?Q:Z,4&(t&=~(u?Z:Q))||(t&=-4);var d=[e,t,o,u?i:U,u?a:U,u?U:i,u?U:a,l,c,s],f=n.apply(U,d);return Jr(e)&&Fa(f,d),f.placeholder=r,ao(f,e,t)}function Ir(e){var t=wi[e];return function(e,n){if(e=Xo(e),(n=null==n?0:aa(Yo(n),292))&&na(e)){var r=(Zo(e)+"e").split("e");return+((r=(Zo(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function Pr(e){return function(t){var n=za(t);return n==ve?L(t):n==we?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return f(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Mr(e,t,n,r,o,i,a,l){var c=2&t;if(!c&&"function"!=typeof e)throw new ki(G);var s=r?r.length:0;if(s||(t&=-97,r=o=U),a=a===U?a:ia(Yo(a),0),l=l===U?l:Yo(l),s-=o?o.length:0,t&Z){var u=r,d=o;r=o=U}var f=c?U:qa(e),p=[e,t,n,r,o,u,d,i,a,l];if(f&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==J&&8==n||r==J&&n==ee&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?cr(c,l,t[4]):l,e[4]=c?z(e[3],K):t[4]}l=t[5],l&&(c=e[5],e[5]=c?sr(c,l,t[6]):l,e[6]=c?z(e[5],K):t[6]),l=t[7],l&&(e[7]=l),r&J&&(e[8]=null==e[8]?t[8]:aa(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(p,f),e=p[0],t=p[1],n=p[2],r=p[3],o=p[4],!(l=p[9]=p[9]===U?c?0:e.length:ia(p[9]-s,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||t==X?yr(e,t,l):t!=Q&&33!=t||o.length?Sr.apply(U,p):_r(e,t,n,r);else var h=function(e,t,n){var r=1&t,o=br(e);return function t(){return(this&&this!==an&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ao((f?Pa:Fa)(h,p),e,t)}function Rr(e,t,n,r){return e===U||Mo(e,_i[n])&&!Ni.call(r,n)?t:e}function Ar(e,t,n,r,o,i){return zo(e)&&zo(t)&&(i.set(t,e),_n(e,t,U,Ar,i),i.delete(t)),e}function Tr(e){return Ho(e)?U:e}function qr(e,t,n,r,o,i){var a=1&n,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var s=i.get(e),u=i.get(t);if(s&&u)return s==t&&u==e;var d=-1,f=!0,p=2&n?new mt:U;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],v=t[d];if(r)var g=a?r(v,h,d,t,e,i):r(h,v,d,e,t,i);if(g!==U){if(g)continue;f=!1;break}if(p){if(!m(t,(function(e,t){if(!P(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Lr(e){return Wa(ro(e,U,mo),e+"")}function Dr(e){return Ft(e,ti,La)}function zr(e){return Ft(e,ni,Da)}function Br(e){for(var t=e.name+"",n=ba[t],r=Ni.call(ba,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Fr(e){return(Ni.call(n,"placeholder")?n:e).placeholder}function Hr(){var e=n.iteratee||ui;return e=e===ui?un:e,arguments.length?e(arguments[0],arguments[1]):e}function Wr(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Vr(e){for(var t=ti(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,to(o)]}return t}function Ur(e,t){var n=function(e,t){return null==e?U:e[t]}(e,t);return cn(n)?n:U}function Gr(e,t,n){for(var r=-1,o=(t=nr(t,e)).length,i=!1;++r<o;){var a=so(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Do(o)&&Xr(a,o)&&(Nl(e)||jl(e))}function Yr(e){return"function"!=typeof e.constructor||eo(e)?{}:_a(Bi(e))}function Kr(e){return Nl(e)||jl(e)||!!(Vi&&e&&e[Vi])}function Xr(e,t){var n=typeof e;return!!(t=null==t?ne:t)&&("number"==n||"symbol"!=n&&ut.test(e))&&e>-1&&e%1==0&&e<t}function Qr(e,t,n){if(!zo(n))return!1;var r=typeof t;return!!("number"==r?Ro(n)&&Xr(t,n.length):"string"==r&&t in n)&&Mo(n[t],e)}function Zr(e,t){if(Nl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Vo(e))||Ue.test(e)||!Ve.test(e)||null!=t&&e in xi(t)}function Jr(e){var t=Br(e),r=n[t];if("function"!=typeof r||!(t in Qe.prototype))return!1;if(e===r)return!0;var o=qa(r);return!!o&&e===o[0]}function eo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_i)}function to(e){return e==e&&!zo(e)}function no(e,t){return function(n){return null!=n&&n[e]===t&&(t!==U||e in xi(n))}}function ro(e,t,n){return t=ia(t===U?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ia(r.length-t,0),l=mi(a);++i<a;)l[i]=r[t+i];i=-1;for(var c=mi(t+1);++i<t;)c[i]=r[i];return c[t]=n(l),o(e,this,c)}}function oo(e,t){return t.length<2?e:Bt(e,zn(t,0,-1))}function io(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ao(e,t,n){var r=t+"";return Wa(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ze,"{\n/* [wrapped with "+t+"] */\n")}(r,fo(function(e){var t=e.match(Je);return t?t[1].split(et):[]}(r),n)))}function lo(e){var t=0,n=0;return function(){var r=la(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(U,arguments)}}function co(e,t){var n=-1,r=e.length,o=r-1;for(t=t===U?r:t;++n<t;){var i=Mn(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function so(e){if("string"==typeof e||Vo(e))return e;var t=e+"";return"0"==t&&1/e==-te?"-0":t}function uo(e){if(null!=e){try{return ji.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function fo(e,t){return a(le,(function(n){var r="_."+n[0];t&n[1]&&!u(e,r)&&e.push(r)})),e.sort()}function po(e){if(e instanceof Qe)return e.clone();var t=new E(e.__wrapped__,e.__chain__);return t.__actions__=ur(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Yo(n);return o<0&&(o=ia(r+o,0)),y(e,Hr(t,3),o)}function vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==U&&(o=Yo(n),o=n<0?ia(r+o,0):aa(o,r-1)),y(e,Hr(t,3),o,!0)}function mo(e){return null!=e&&e.length?qt(e,1):[]}function go(e){return e&&e.length?e[0]:U}function bo(e){var t=null==e?0:e.length;return t?e[t-1]:U}function yo(e,t){return e&&e.length&&t&&t.length?In(e,t):e}function wo(e){return null==e?e:ua.call(e)}function xo(e){if(!e||!e.length)return[];var t=0;return e=s(e,(function(e){if(Ao(e))return t=ia(e.length,t),!0})),$(t,(function(t){return f(e,k(t))}))}function So(e,t){if(!e||!e.length)return[];var n=xo(e);return null==t?n:f(n,(function(e){return o(t,U,e)}))}function Co(e){var t=n(e);return t.__chain__=!0,t}function ko(e,t){return t(e)}function Eo(e,t){return(Nl(e)?a:$a)(e,Hr(t,3))}function Oo(e,t){return(Nl(e)?l:ja)(e,Hr(t,3))}function _o(e,t){return(Nl(e)?f:kn)(e,Hr(t,3))}function $o(e,t,n){return t=n?U:t,t=e&&null==t?e.length:t,Mr(e,J,U,U,U,U,t)}function jo(e,t){var n;if("function"!=typeof t)throw new ki(G);return e=Yo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=U),n}}function No(e,t,n){function r(t){var n=c,r=s;return c=s=U,h=t,d=e.apply(r,n)}function o(e){var n=e-p;return p===U||n>=t||n<0||m&&e-h>=u}function i(){var e=bl();return o(e)?a(e):(f=Ha(i,function(e){var n=t-(e-p);return m?aa(n,u-(e-h)):n}(e)),U)}function a(e){return f=U,g&&c?r(e):(c=s=U,d)}function l(){var e=bl(),n=o(e);if(c=arguments,s=this,p=e,n){if(f===U)return function(e){return h=e,f=Ha(i,t),v?r(e):d}(p);if(m)return Aa(f),f=Ha(i,t),r(p)}return f===U&&(f=Ha(i,t)),d}var c,s,u,d,f,p,h=0,v=!1,m=!1,g=!0;if("function"!=typeof e)throw new ki(G);return t=Xo(t)||0,zo(n)&&(v=!!n.leading,u=(m="maxWait"in n)?ia(Xo(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),l.cancel=function(){f!==U&&Aa(f),h=0,c=p=s=f=U},l.flush=function(){return f===U?d:a(bl())},l}function Io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ki(G);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Io.Cache||vt),n}function Po(e){if("function"!=typeof e)throw new ki(G);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Mo(e,t){return e===t||e!=e&&t!=t}function Ro(e){return null!=e&&Do(e.length)&&!qo(e)}function Ao(e){return Bo(e)&&Ro(e)}function To(e){if(!Bo(e))return!1;var t=Ht(e);return t==fe||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ho(e)}function qo(e){if(!zo(e))return!1;var t=Ht(e);return t==pe||t==he||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Lo(e){return"number"==typeof e&&e==Yo(e)}function Do(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ne}function zo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Bo(e){return null!=e&&"object"==typeof e}function Fo(e){return"number"==typeof e||Bo(e)&&Ht(e)==me}function Ho(e){if(!Bo(e)||Ht(e)!=ge)return!1;var t=Bi(e);if(null===t)return!0;var n=Ni.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ji.call(n)==Ri}function Wo(e){return"string"==typeof e||!Nl(e)&&Bo(e)&&Ht(e)==xe}function Vo(e){return"symbol"==typeof e||Bo(e)&&Ht(e)==Se}function Uo(e){if(!e)return[];if(Ro(e))return Wo(e)?H(e):ur(e);if(Ui&&e[Ui])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ui]());var t=za(e);return(t==ve?L:t==we?B:oi)(e)}function Go(e){return e?(e=Xo(e))===te||e===-te?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Yo(e){var t=Go(e),n=t%1;return t==t?n?t-n:t:0}function Ko(e){return e?jt(Yo(e),0,oe):0}function Xo(e){if("number"==typeof e)return e;if(Vo(e))return re;if(zo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=j(e);var n=lt.test(e);return n||st.test(e)?nn(e.slice(2),n?2:8):at.test(e)?re:+e}function Qo(e){return dr(e,ni(e))}function Zo(e){return null==e?"":Un(e)}function Jo(e,t,n){var r=null==e?U:Bt(e,t);return r===U?n:r}function ei(e,t){return null!=e&&Gr(e,t,Yt)}function ti(e){return Ro(e)?bt(e):dn(e)}function ni(e){return Ro(e)?bt(e,!0):bn(e)}function ri(e,t){if(null==e)return{};var n=f(zr(e),(function(e){return[e]}));return t=Hr(t),Nn(e,n,(function(e,n){return t(e,n[0])}))}function oi(e){return null==e?[]:I(e,ti(e))}function ii(e){return sc(Zo(e).toLowerCase())}function ai(e){return(e=Zo(e))&&e.replace(dt,yn).replace(Vt,"")}function li(e,t,n){return e=Zo(e),(t=n?U:t)===U?q(e)?V(e):g(e):e.match(t)||[]}function ci(e){return function(){return e}}function si(e){return e}function ui(e){return un("function"==typeof e?e:Nt(e,1))}function di(e,t,n){var r=ti(t),o=zt(t,r);null!=n||zo(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=zt(t,ti(t)));var i=!(zo(n)&&"chain"in n&&!n.chain),l=qo(e);return a(o,(function(n){var r=t[n];e[n]=r,l&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ur(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,p([this.value()],arguments))})})),e}function fi(){}function pi(e){return Zr(e)?k(so(e)):function(e){return function(t){return Bt(t,e)}}(e)}function hi(){return[]}function vi(){return!1}var mi=(t=null==t?an:Sn.defaults(an.Object(),t,Sn.pick(an,Xt))).Array,gi=t.Date,bi=t.Error,yi=t.Function,wi=t.Math,xi=t.Object,Si=t.RegExp,Ci=t.String,ki=t.TypeError,Ei=mi.prototype,Oi=yi.prototype,_i=xi.prototype,$i=t["__core-js_shared__"],ji=Oi.toString,Ni=_i.hasOwnProperty,Ii=0,Pi=function(){var e=/[^.]+$/.exec($i&&$i.keys&&$i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Mi=_i.toString,Ri=ji.call(xi),Ai=an._,Ti=Si("^"+ji.call(Ni).replace(Ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qi=sn?t.Buffer:U,Li=t.Symbol,Di=t.Uint8Array,zi=qi?qi.allocUnsafe:U,Bi=D(xi.getPrototypeOf,xi),Fi=xi.create,Hi=_i.propertyIsEnumerable,Wi=Ei.splice,Vi=Li?Li.isConcatSpreadable:U,Ui=Li?Li.iterator:U,Gi=Li?Li.toStringTag:U,Yi=function(){try{var e=Ur(xi,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ki=t.clearTimeout!==an.clearTimeout&&t.clearTimeout,Xi=gi&&gi.now!==an.Date.now&&gi.now,Qi=t.setTimeout!==an.setTimeout&&t.setTimeout,Zi=wi.ceil,Ji=wi.floor,ea=xi.getOwnPropertySymbols,ta=qi?qi.isBuffer:U,na=t.isFinite,ra=Ei.join,oa=D(xi.keys,xi),ia=wi.max,aa=wi.min,la=gi.now,ca=t.parseInt,sa=wi.random,ua=Ei.reverse,da=Ur(t,"DataView"),fa=Ur(t,"Map"),pa=Ur(t,"Promise"),ha=Ur(t,"Set"),va=Ur(t,"WeakMap"),ma=Ur(xi,"create"),ga=va&&new va,ba={},ya=uo(da),wa=uo(fa),xa=uo(pa),Sa=uo(ha),Ca=uo(va),ka=Li?Li.prototype:U,Ea=ka?ka.valueOf:U,Oa=ka?ka.toString:U,_a=function(){function e(){}return function(t){if(!zo(t))return{};if(Fi)return Fi(t);e.prototype=t;var n=new e;return e.prototype=U,n}}();n.templateSettings={escape:Fe,evaluate:He,interpolate:We,variable:"",imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,E.prototype=_a(r.prototype),E.prototype.constructor=E,Qe.prototype=_a(r.prototype),Qe.prototype.constructor=Qe,tt.prototype.clear=function(){this.__data__=ma?ma(null):{},this.size=0},tt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},tt.prototype.get=function(e){var t=this.__data__;if(ma){var n=t[e];return n===Y?U:n}return Ni.call(t,e)?t[e]:U},tt.prototype.has=function(e){var t=this.__data__;return ma?t[e]!==U:Ni.call(t,e)},tt.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ma&&t===U?Y:t,this},ht.prototype.clear=function(){this.__data__=[],this.size=0},ht.prototype.delete=function(e){var t=this.__data__,n=kt(t,e);return!(n<0||(n==t.length-1?t.pop():Wi.call(t,n,1),--this.size,0))},ht.prototype.get=function(e){var t=this.__data__,n=kt(t,e);return n<0?U:t[n][1]},ht.prototype.has=function(e){return kt(this.__data__,e)>-1},ht.prototype.set=function(e,t){var n=this.__data__,r=kt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},vt.prototype.clear=function(){this.size=0,this.__data__={hash:new tt,map:new(fa||ht),string:new tt}},vt.prototype.delete=function(e){var t=Wr(this,e).delete(e);return this.size-=t?1:0,t},vt.prototype.get=function(e){return Wr(this,e).get(e)},vt.prototype.has=function(e){return Wr(this,e).has(e)},vt.prototype.set=function(e,t){var n=Wr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},mt.prototype.add=mt.prototype.push=function(e){return this.__data__.set(e,Y),this},mt.prototype.has=function(e){return this.__data__.has(e)},gt.prototype.clear=function(){this.__data__=new ht,this.size=0},gt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},gt.prototype.get=function(e){return this.__data__.get(e)},gt.prototype.has=function(e){return this.__data__.has(e)},gt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ht){var r=n.__data__;if(!fa||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new vt(r)}return n.set(e,t),this.size=n.size,this};var $a=hr(Lt),ja=hr(Dt,!0),Na=vr(),Ia=vr(!0),Pa=ga?function(e,t){return ga.set(e,t),e}:si,Ma=Yi?function(e,t){return Yi(e,"toString",{configurable:!0,enumerable:!1,value:ci(t),writable:!0})}:si,Ra=An,Aa=Ki||function(e){return an.clearTimeout(e)},Ta=ha&&1/B(new ha([,-0]))[1]==te?function(e){return new ha(e)}:fi,qa=ga?function(e){return ga.get(e)}:fi,La=ea?function(e){return null==e?[]:(e=xi(e),s(ea(e),(function(t){return Hi.call(e,t)})))}:hi,Da=ea?function(e){for(var t=[];e;)p(t,La(e)),e=Bi(e);return t}:hi,za=Ht;(da&&za(new da(new ArrayBuffer(1)))!=Ee||fa&&za(new fa)!=ve||pa&&za(pa.resolve())!=be||ha&&za(new ha)!=we||va&&za(new va)!=Ce)&&(za=function(e){var t=Ht(e),n=t==ge?e.constructor:U,r=n?uo(n):"";if(r)switch(r){case ya:return Ee;case wa:return ve;case xa:return be;case Sa:return we;case Ca:return Ce}return t});var Ba=$i?qo:vi,Fa=lo(Pa),Ha=Qi||function(e,t){return an.setTimeout(e,t)},Wa=lo(Ma),Va=function(e){var t=Io(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ge,(function(e,n,r,o){t.push(r?o.replace(rt,"$1"):n||e)})),t})),Ua=An((function(e,t){return Ao(e)?Mt(e,qt(t,1,Ao,!0)):[]})),Ga=An((function(e,t){var n=bo(t);return Ao(n)&&(n=U),Ao(e)?Mt(e,qt(t,1,Ao,!0),Hr(n,2)):[]})),Ya=An((function(e,t){var n=bo(t);return Ao(n)&&(n=U),Ao(e)?Mt(e,qt(t,1,Ao,!0),U,n):[]})),Ka=An((function(e){var t=f(e,er);return t.length&&t[0]===e[0]?Kt(t):[]})),Xa=An((function(e){var t=bo(e),n=f(e,er);return t===bo(n)?t=U:n.pop(),n.length&&n[0]===e[0]?Kt(n,Hr(t,2)):[]})),Qa=An((function(e){var t=bo(e),n=f(e,er);return(t="function"==typeof t?t:U)&&n.pop(),n.length&&n[0]===e[0]?Kt(n,U,t):[]})),Za=An(yo),Ja=Lr((function(e,t){var n=null==e?0:e.length,r=$t(e,t);return Pn(e,f(t,(function(e){return Xr(e,n)?+e:e})).sort(lr)),r})),el=An((function(e){return Gn(qt(e,1,Ao,!0))})),tl=An((function(e){var t=bo(e);return Ao(t)&&(t=U),Gn(qt(e,1,Ao,!0),Hr(t,2))})),nl=An((function(e){var t=bo(e);return t="function"==typeof t?t:U,Gn(qt(e,1,Ao,!0),U,t)})),rl=An((function(e,t){return Ao(e)?Mt(e,t):[]})),ol=An((function(e){return Zn(s(e,Ao))})),il=An((function(e){var t=bo(e);return Ao(t)&&(t=U),Zn(s(e,Ao),Hr(t,2))})),al=An((function(e){var t=bo(e);return t="function"==typeof t?t:U,Zn(s(e,Ao),U,t)})),ll=An(xo),cl=An((function(e){var t=e.length,n=t>1?e[t-1]:U;return n="function"==typeof n?(e.pop(),n):U,So(e,n)})),sl=Lr((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return $t(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Qe&&Xr(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ko,args:[o],thisArg:U}),new E(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(U),e}))):this.thru(o)})),ul=fr((function(e,t,n){Ni.call(e,n)?++e[n]:_t(e,n,1)})),dl=wr(ho),fl=wr(vo),pl=fr((function(e,t,n){Ni.call(e,n)?e[n].push(t):_t(e,n,[t])})),hl=An((function(e,t,n){var r=-1,i="function"==typeof t,a=Ro(e)?mi(e.length):[];return $a(e,(function(e){a[++r]=i?o(t,e,n):en(e,t,n)})),a})),vl=fr((function(e,t,n){_t(e,n,t)})),ml=fr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),gl=An((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Qr(e,t[0],t[1])?t=[]:n>2&&Qr(t[0],t[1],t[2])&&(t=[t[0]]),jn(e,qt(t,1),[])})),bl=Xi||function(){return an.Date.now()},yl=An((function(e,t,n){var r=1;if(n.length){var o=z(n,Fr(yl));r|=Q}return Mr(e,r,t,n,o)})),wl=An((function(e,t,n){var r=3;if(n.length){var o=z(n,Fr(wl));r|=Q}return Mr(t,r,e,n,o)})),xl=An((function(e,t){return Pt(e,1,t)})),Sl=An((function(e,t,n){return Pt(e,Xo(t)||0,n)}));Io.Cache=vt;var Cl=Ra((function(e,t){var n=(t=1==t.length&&Nl(t[0])?f(t[0],N(Hr())):f(qt(t,1),N(Hr()))).length;return An((function(r){for(var i=-1,a=aa(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return o(e,this,r)}))})),kl=An((function(e,t){return Mr(e,Q,U,t,z(t,Fr(kl)))})),El=An((function(e,t){return Mr(e,Z,U,t,z(t,Fr(El)))})),Ol=Lr((function(e,t){return Mr(e,ee,U,U,U,t)})),_l=jr(Ut),$l=jr((function(e,t){return e>=t})),jl=rn(function(){return arguments}())?rn:function(e){return Bo(e)&&Ni.call(e,"callee")&&!Hi.call(e,"callee")},Nl=mi.isArray,Il=fn?N(fn):function(e){return Bo(e)&&Ht(e)==ke},Pl=ta||vi,Ml=pn?N(pn):function(e){return Bo(e)&&Ht(e)==de},Rl=hn?N(hn):function(e){return Bo(e)&&za(e)==ve},Al=vn?N(vn):function(e){return Bo(e)&&Ht(e)==ye},Tl=mn?N(mn):function(e){return Bo(e)&&za(e)==we},ql=gn?N(gn):function(e){return Bo(e)&&Do(e.length)&&!!Zt[Ht(e)]},Ll=jr(Cn),Dl=jr((function(e,t){return e<=t})),zl=pr((function(e,t){if(eo(t)||Ro(t))return dr(t,ti(t),e),U;for(var n in t)Ni.call(t,n)&&Ct(e,n,t[n])})),Bl=pr((function(e,t){dr(t,ni(t),e)})),Fl=pr((function(e,t,n,r){dr(t,ni(t),e,r)})),Hl=pr((function(e,t,n,r){dr(t,ti(t),e,r)})),Wl=Lr($t),Vl=An((function(e,t){e=xi(e);var n=-1,r=t.length,o=r>2?t[2]:U;for(o&&Qr(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=ni(i),l=-1,c=a.length;++l<c;){var s=a[l],u=e[s];(u===U||Mo(u,_i[s])&&!Ni.call(e,s))&&(e[s]=i[s])}return e})),Ul=An((function(e){return e.push(U,Ar),o(Ql,U,e)})),Gl=Cr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Mi.call(t)),e[t]=n}),ci(si)),Yl=Cr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Mi.call(t)),Ni.call(e,t)?e[t].push(n):e[t]=[n]}),Hr),Kl=An(en),Xl=pr((function(e,t,n){_n(e,t,n)})),Ql=pr((function(e,t,n,r){_n(e,t,n,r)})),Zl=Lr((function(e,t){var n={};if(null==e)return n;var r=!1;t=f(t,(function(t){return t=nr(t,e),r||(r=t.length>1),t})),dr(e,zr(e),n),r&&(n=Nt(n,7,Tr));for(var o=t.length;o--;)Yn(n,t[o]);return n})),Jl=Lr((function(e,t){return null==e?{}:function(e,t){return Nn(e,t,(function(t,n){return ei(e,n)}))}(e,t)})),ec=Pr(ti),tc=Pr(ni),nc=gr((function(e,t,n){return t=t.toLowerCase(),e+(n?ii(t):t)})),rc=gr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),oc=gr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ic=mr("toLowerCase"),ac=gr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),lc=gr((function(e,t,n){return e+(n?" ":"")+sc(t)})),cc=gr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),sc=mr("toUpperCase"),uc=An((function(e,t){try{return o(e,U,t)}catch(e){return To(e)?e:new bi(e)}})),dc=Lr((function(e,t){return a(t,(function(t){t=so(t),_t(e,t,yl(e[t],e))})),e})),fc=xr(),pc=xr(!0),hc=An((function(e,t){return function(n){return en(n,e,t)}})),vc=An((function(e,t){return function(n){return en(e,n,t)}})),mc=Er(f),gc=Er(c),bc=Er(m),yc=$r(),wc=$r(!0),xc=kr((function(e,t){return e+t}),0),Sc=Ir("ceil"),Cc=kr((function(e,t){return e/t}),1),kc=Ir("floor"),Ec=kr((function(e,t){return e*t}),1),Oc=Ir("round"),_c=kr((function(e,t){return e-t}),0);return n.after=function(e,t){if("function"!=typeof t)throw new ki(G);return e=Yo(e),function(){if(--e<1)return t.apply(this,arguments)}},n.ary=$o,n.assign=zl,n.assignIn=Bl,n.assignInWith=Fl,n.assignWith=Hl,n.at=Wl,n.before=jo,n.bind=yl,n.bindAll=dc,n.bindKey=wl,n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Nl(e)?e:[e]},n.chain=Co,n.chunk=function(e,t,n){t=(n?Qr(e,t,n):t===U)?1:ia(Yo(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=mi(Zi(r/t));o<r;)a[i++]=zn(e,o,o+=t);return a},n.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=mi(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return p(Nl(n)?ur(n):[n],qt(t,1))},n.cond=function(e){var t=null==e?0:e.length,n=Hr();return e=t?f(e,(function(e){if("function"!=typeof e[1])throw new ki(G);return[n(e[0]),e[1]]})):[],An((function(n){for(var r=-1;++r<t;){var i=e[r];if(o(i[0],this,n))return o(i[1],this,n)}}))},n.conforms=function(e){return function(e){var t=ti(e);return function(n){return It(n,e,t)}}(Nt(e,1))},n.constant=ci,n.countBy=ul,n.create=function(e,t){var n=_a(e);return null==t?n:Ot(n,t)},n.curry=function e(t,n,r){var o=Mr(t,8,U,U,U,U,U,n=r?U:n);return o.placeholder=e.placeholder,o},n.curryRight=function e(t,n,r){var o=Mr(t,X,U,U,U,U,U,n=r?U:n);return o.placeholder=e.placeholder,o},n.debounce=No,n.defaults=Vl,n.defaultsDeep=Ul,n.defer=xl,n.delay=Sl,n.difference=Ua,n.differenceBy=Ga,n.differenceWith=Ya,n.drop=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,(t=n||t===U?1:Yo(t))<0?0:t,r):[]},n.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,0,(t=r-(t=n||t===U?1:Yo(t)))<0?0:t):[]},n.dropRightWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3),!0,!0):[]},n.dropWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3),!0):[]},n.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Qr(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Yo(n))<0&&(n=-n>o?0:o+n),(r=r===U||r>o?o:Yo(r))<0&&(r+=o),r=n>r?0:Ko(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},n.filter=function(e,t){return(Nl(e)?s:Tt)(e,Hr(t,3))},n.flatMap=function(e,t){return qt(_o(e,t),1)},n.flatMapDeep=function(e,t){return qt(_o(e,t),te)},n.flatMapDepth=function(e,t,n){return n=n===U?1:Yo(n),qt(_o(e,t),n)},n.flatten=mo,n.flattenDeep=function(e){return null!=e&&e.length?qt(e,te):[]},n.flattenDepth=function(e,t){return null!=e&&e.length?qt(e,t=t===U?1:Yo(t)):[]},n.flip=function(e){return Mr(e,512)},n.flow=fc,n.flowRight=pc,n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},n.functions=function(e){return null==e?[]:zt(e,ti(e))},n.functionsIn=function(e){return null==e?[]:zt(e,ni(e))},n.groupBy=pl,n.initial=function(e){return null!=e&&e.length?zn(e,0,-1):[]},n.intersection=Ka,n.intersectionBy=Xa,n.intersectionWith=Qa,n.invert=Gl,n.invertBy=Yl,n.invokeMap=hl,n.iteratee=ui,n.keyBy=vl,n.keys=ti,n.keysIn=ni,n.map=_o,n.mapKeys=function(e,t){var n={};return t=Hr(t,3),Lt(e,(function(e,r,o){_t(n,t(e,r,o),e)})),n},n.mapValues=function(e,t){var n={};return t=Hr(t,3),Lt(e,(function(e,r,o){_t(n,r,t(e,r,o))})),n},n.matches=function(e){return En(Nt(e,1))},n.matchesProperty=function(e,t){return On(e,Nt(t,1))},n.memoize=Io,n.merge=Xl,n.mergeWith=Ql,n.method=hc,n.methodOf=vc,n.mixin=di,n.negate=Po,n.nthArg=function(e){return e=Yo(e),An((function(t){return $n(t,e)}))},n.omit=Zl,n.omitBy=function(e,t){return ri(e,Po(Hr(t)))},n.once=function(e){return jo(2,e)},n.orderBy=function(e,t,n,r){return null==e?[]:(Nl(t)||(t=null==t?[]:[t]),Nl(n=r?U:n)||(n=null==n?[]:[n]),jn(e,t,n))},n.over=mc,n.overArgs=Cl,n.overEvery=gc,n.overSome=bc,n.partial=kl,n.partialRight=El,n.partition=ml,n.pick=Jl,n.pickBy=ri,n.property=pi,n.propertyOf=function(e){return function(t){return null==e?U:Bt(e,t)}},n.pull=Za,n.pullAll=yo,n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?In(e,t,Hr(n,2)):e},n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?In(e,t,U,n):e},n.pullAt=Ja,n.range=yc,n.rangeRight=wc,n.rearg=Ol,n.reject=function(e,t){return(Nl(e)?s:Tt)(e,Po(Hr(t,3)))},n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Hr(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Pn(e,o),n},n.rest=function(e,t){if("function"!=typeof e)throw new ki(G);return An(e,t=t===U?t:Yo(t))},n.reverse=wo,n.sampleSize=function(e,t,n){return t=(n?Qr(e,t,n):t===U)?1:Yo(t),(Nl(e)?wt:qn)(e,t)},n.set=function(e,t,n){return null==e?e:Ln(e,t,n)},n.setWith=function(e,t,n,r){return r="function"==typeof r?r:U,null==e?e:Ln(e,t,n,r)},n.shuffle=function(e){return(Nl(e)?xt:Dn)(e)},n.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Qr(e,t,n)?(t=0,n=r):(t=null==t?0:Yo(t),n=n===U?r:Yo(n)),zn(e,t,n)):[]},n.sortBy=gl,n.sortedUniq=function(e){return e&&e.length?Wn(e):[]},n.sortedUniqBy=function(e,t){return e&&e.length?Wn(e,Hr(t,2)):[]},n.split=function(e,t,n){return n&&"number"!=typeof n&&Qr(e,t,n)&&(t=n=U),(n=n===U?oe:n>>>0)?(e=Zo(e))&&("string"==typeof t||null!=t&&!Al(t))&&(!(t=Un(t))&&T(e))?rr(H(e),0,n):e.split(t,n):[]},n.spread=function(e,t){if("function"!=typeof e)throw new ki(G);return t=null==t?0:ia(Yo(t),0),An((function(n){var r=n[t],i=rr(n,0,t);return r&&p(i,r),o(e,this,i)}))},n.tail=function(e){var t=null==e?0:e.length;return t?zn(e,1,t):[]},n.take=function(e,t,n){return e&&e.length?zn(e,0,(t=n||t===U?1:Yo(t))<0?0:t):[]},n.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,(t=r-(t=n||t===U?1:Yo(t)))<0?0:t,r):[]},n.takeRightWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3),!1,!0):[]},n.takeWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3)):[]},n.tap=function(e,t){return t(e),e},n.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ki(G);return zo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),No(e,t,{leading:r,maxWait:t,trailing:o})},n.thru=ko,n.toArray=Uo,n.toPairs=ec,n.toPairsIn=tc,n.toPath=function(e){return Nl(e)?f(e,so):Vo(e)?[e]:ur(Va(Zo(e)))},n.toPlainObject=Qo,n.transform=function(e,t,n){var r=Nl(e),o=r||Pl(e)||ql(e);if(t=Hr(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:zo(e)&&qo(i)?_a(Bi(e)):{}}return(o?a:Lt)(e,(function(e,r,o){return t(n,e,r,o)})),n},n.unary=function(e){return $o(e,1)},n.union=el,n.unionBy=tl,n.unionWith=nl,n.uniq=function(e){return e&&e.length?Gn(e):[]},n.uniqBy=function(e,t){return e&&e.length?Gn(e,Hr(t,2)):[]},n.uniqWith=function(e,t){return t="function"==typeof t?t:U,e&&e.length?Gn(e,U,t):[]},n.unset=function(e,t){return null==e||Yn(e,t)},n.unzip=xo,n.unzipWith=So,n.update=function(e,t,n){return null==e?e:Kn(e,t,tr(n))},n.updateWith=function(e,t,n,r){return r="function"==typeof r?r:U,null==e?e:Kn(e,t,tr(n),r)},n.values=oi,n.valuesIn=function(e){return null==e?[]:I(e,ni(e))},n.without=rl,n.words=li,n.wrap=function(e,t){return kl(tr(t),e)},n.xor=ol,n.xorBy=il,n.xorWith=al,n.zip=ll,n.zipObject=function(e,t){return Jn(e||[],t||[],Ct)},n.zipObjectDeep=function(e,t){return Jn(e||[],t||[],Ln)},n.zipWith=cl,n.entries=ec,n.entriesIn=tc,n.extend=Bl,n.extendWith=Fl,di(n,n),n.add=xc,n.attempt=uc,n.camelCase=nc,n.capitalize=ii,n.ceil=Sc,n.clamp=function(e,t,n){return n===U&&(n=t,t=U),n!==U&&(n=(n=Xo(n))==n?n:0),t!==U&&(t=(t=Xo(t))==t?t:0),jt(Xo(e),t,n)},n.clone=function(e){return Nt(e,4)},n.cloneDeep=function(e){return Nt(e,5)},n.cloneDeepWith=function(e,t){return Nt(e,5,t="function"==typeof t?t:U)},n.cloneWith=function(e,t){return Nt(e,4,t="function"==typeof t?t:U)},n.conformsTo=function(e,t){return null==t||It(e,t,ti(t))},n.deburr=ai,n.defaultTo=function(e,t){return null==e||e!=e?t:e},n.divide=Cc,n.endsWith=function(e,t,n){e=Zo(e),t=Un(t);var r=e.length,o=n=n===U?r:jt(Yo(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},n.eq=Mo,n.escape=function(e){return(e=Zo(e))&&Be.test(e)?e.replace(De,wn):e},n.escapeRegExp=function(e){return(e=Zo(e))&&Ke.test(e)?e.replace(Ye,"\\$&"):e},n.every=function(e,t,n){var r=Nl(e)?c:Rt;return n&&Qr(e,t,n)&&(t=U),r(e,Hr(t,3))},n.find=dl,n.findIndex=ho,n.findKey=function(e,t){return b(e,Hr(t,3),Lt)},n.findLast=fl,n.findLastIndex=vo,n.findLastKey=function(e,t){return b(e,Hr(t,3),Dt)},n.floor=kc,n.forEach=Eo,n.forEachRight=Oo,n.forIn=function(e,t){return null==e?e:Na(e,Hr(t,3),ni)},n.forInRight=function(e,t){return null==e?e:Ia(e,Hr(t,3),ni)},n.forOwn=function(e,t){return e&&Lt(e,Hr(t,3))},n.forOwnRight=function(e,t){return e&&Dt(e,Hr(t,3))},n.get=Jo,n.gt=_l,n.gte=$l,n.has=function(e,t){return null!=e&&Gr(e,t,Gt)},n.hasIn=ei,n.head=go,n.identity=si,n.includes=function(e,t,n,r){e=Ro(e)?e:oi(e),n=n&&!r?Yo(n):0;var o=e.length;return n<0&&(n=ia(o+n,0)),Wo(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&w(e,t,n)>-1},n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Yo(n);return o<0&&(o=ia(r+o,0)),w(e,t,o)},n.inRange=function(e,t,n){return t=Go(t),n===U?(n=t,t=0):n=Go(n),function(e,t,n){return e>=aa(t,n)&&e<ia(t,n)}(e=Xo(e),t,n)},n.invoke=Kl,n.isArguments=jl,n.isArray=Nl,n.isArrayBuffer=Il,n.isArrayLike=Ro,n.isArrayLikeObject=Ao,n.isBoolean=function(e){return!0===e||!1===e||Bo(e)&&Ht(e)==ue},n.isBuffer=Pl,n.isDate=Ml,n.isElement=function(e){return Bo(e)&&1===e.nodeType&&!Ho(e)},n.isEmpty=function(e){if(null==e)return!0;if(Ro(e)&&(Nl(e)||"string"==typeof e||"function"==typeof e.splice||Pl(e)||ql(e)||jl(e)))return!e.length;var t=za(e);if(t==ve||t==we)return!e.size;if(eo(e))return!dn(e).length;for(var n in e)if(Ni.call(e,n))return!1;return!0},n.isEqual=function(e,t){return on(e,t)},n.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:U)?n(e,t):U;return r===U?on(e,t,U,n):!!r},n.isError=To,n.isFinite=function(e){return"number"==typeof e&&na(e)},n.isFunction=qo,n.isInteger=Lo,n.isLength=Do,n.isMap=Rl,n.isMatch=function(e,t){return e===t||ln(e,t,Vr(t))},n.isMatchWith=function(e,t,n){return n="function"==typeof n?n:U,ln(e,t,Vr(t),n)},n.isNaN=function(e){return Fo(e)&&e!=+e},n.isNative=function(e){if(Ba(e))throw new bi("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return cn(e)},n.isNil=function(e){return null==e},n.isNull=function(e){return null===e},n.isNumber=Fo,n.isObject=zo,n.isObjectLike=Bo,n.isPlainObject=Ho,n.isRegExp=Al,n.isSafeInteger=function(e){return Lo(e)&&e>=-ne&&e<=ne},n.isSet=Tl,n.isString=Wo,n.isSymbol=Vo,n.isTypedArray=ql,n.isUndefined=function(e){return e===U},n.isWeakMap=function(e){return Bo(e)&&za(e)==Ce},n.isWeakSet=function(e){return Bo(e)&&"[object WeakSet]"==Ht(e)},n.join=function(e,t){return null==e?"":ra.call(e,t)},n.kebabCase=rc,n.last=bo,n.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==U&&(o=(o=Yo(n))<0?ia(r+o,0):aa(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):y(e,S,o,!0)},n.lowerCase=oc,n.lowerFirst=ic,n.lt=Ll,n.lte=Dl,n.max=function(e){return e&&e.length?At(e,si,Ut):U},n.maxBy=function(e,t){return e&&e.length?At(e,Hr(t,2),Ut):U},n.mean=function(e){return C(e,si)},n.meanBy=function(e,t){return C(e,Hr(t,2))},n.min=function(e){return e&&e.length?At(e,si,Cn):U},n.minBy=function(e,t){return e&&e.length?At(e,Hr(t,2),Cn):U},n.stubArray=hi,n.stubFalse=vi,n.stubObject=function(){return{}},n.stubString=function(){return""},n.stubTrue=function(){return!0},n.multiply=Ec,n.nth=function(e,t){return e&&e.length?$n(e,Yo(t)):U},n.noConflict=function(){return an._===this&&(an._=Ai),this},n.noop=fi,n.now=bl,n.pad=function(e,t,n){e=Zo(e);var r=(t=Yo(t))?F(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Or(Ji(o),n)+e+Or(Zi(o),n)},n.padEnd=function(e,t,n){e=Zo(e);var r=(t=Yo(t))?F(e):0;return t&&r<t?e+Or(t-r,n):e},n.padStart=function(e,t,n){e=Zo(e);var r=(t=Yo(t))?F(e):0;return t&&r<t?Or(t-r,n)+e:e},n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ca(Zo(e).replace(Xe,""),t||0)},n.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Qr(e,t,n)&&(t=n=U),n===U&&("boolean"==typeof t?(n=t,t=U):"boolean"==typeof e&&(n=e,e=U)),e===U&&t===U?(e=0,t=1):(e=Go(e),t===U?(t=e,e=0):t=Go(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=sa();return aa(e+o*(t-e+tn("1e-"+((o+"").length-1))),t)}return Mn(e,t)},n.reduce=function(e,t,n){var r=Nl(e)?h:O,o=arguments.length<3;return r(e,Hr(t,4),n,o,$a)},n.reduceRight=function(e,t,n){var r=Nl(e)?v:O,o=arguments.length<3;return r(e,Hr(t,4),n,o,ja)},n.repeat=function(e,t,n){return t=(n?Qr(e,t,n):t===U)?1:Yo(t),Rn(Zo(e),t)},n.replace=function(){var e=arguments,t=Zo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},n.result=function(e,t,n){var r=-1,o=(t=nr(t,e)).length;for(o||(o=1,e=U);++r<o;){var i=null==e?U:e[so(t[r])];i===U&&(r=o,i=n),e=qo(i)?i.call(e):i}return e},n.round=Oc,n.runInContext=e,n.sample=function(e){return(Nl(e)?yt:Tn)(e)},n.size=function(e){if(null==e)return 0;if(Ro(e))return Wo(e)?F(e):e.length;var t=za(e);return t==ve||t==we?e.size:dn(e).length},n.snakeCase=ac,n.some=function(e,t,n){var r=Nl(e)?m:Bn;return n&&Qr(e,t,n)&&(t=U),r(e,Hr(t,3))},n.sortedIndex=function(e,t){return Fn(e,t)},n.sortedIndexBy=function(e,t,n){return Hn(e,t,Hr(n,2))},n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Fn(e,t);if(r<n&&Mo(e[r],t))return r}return-1},n.sortedLastIndex=function(e,t){return Fn(e,t,!0)},n.sortedLastIndexBy=function(e,t,n){return Hn(e,t,Hr(n,2),!0)},n.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Fn(e,t,!0)-1;if(Mo(e[n],t))return n}return-1},n.startCase=lc,n.startsWith=function(e,t,n){return e=Zo(e),n=null==n?0:jt(Yo(n),0,e.length),t=Un(t),e.slice(n,n+t.length)==t},n.subtract=_c,n.sum=function(e){return e&&e.length?_(e,si):0},n.sumBy=function(e,t){return e&&e.length?_(e,Hr(t,2)):0},n.template=function(e,t,r){var o=n.templateSettings;r&&Qr(e,t,r)&&(t=U),e=Zo(e),t=Fl({},t,o,Rr);var i,a,l=Fl({},t.imports,o.imports,Rr),c=ti(l),s=I(l,c),u=0,d=t.interpolate||ft,f="__p += '",p=Si((t.escape||ft).source+"|"+d.source+"|"+(d===We?ot:ft).source+"|"+(t.evaluate||ft).source+"|$","g"),h="//# sourceURL="+(Ni.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qt+"]")+"\n";e.replace(p,(function(t,n,r,o,l,c){return r||(r=o),f+=e.slice(u,c).replace(pt,A),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";var v=Ni.call(t,"variable")&&t.variable;if(v){if(nt.test(v))throw new bi("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(Ae,""):f).replace(Te,"$1").replace(qe,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=uc((function(){return yi(c,h+"return "+f).apply(U,s)}));if(m.source=f,To(m))throw m;return m},n.times=function(e,t){if((e=Yo(e))<1||e>ne)return[];var n=oe,r=aa(e,oe);t=Hr(t),e-=oe;for(var o=$(r,t);++n<e;)t(n);return o},n.toFinite=Go,n.toInteger=Yo,n.toLength=Ko,n.toLower=function(e){return Zo(e).toLowerCase()},n.toNumber=Xo,n.toSafeInteger=function(e){return e?jt(Yo(e),-ne,ne):0===e?e:0},n.toString=Zo,n.toUpper=function(e){return Zo(e).toUpperCase()},n.trim=function(e,t,n){if((e=Zo(e))&&(n||t===U))return j(e);if(!e||!(t=Un(t)))return e;var r=H(e),o=H(t);return rr(r,M(r,o),R(r,o)+1).join("")},n.trimEnd=function(e,t,n){if((e=Zo(e))&&(n||t===U))return e.slice(0,W(e)+1);if(!e||!(t=Un(t)))return e;var r=H(e);return rr(r,0,R(r,H(t))+1).join("")},n.trimStart=function(e,t,n){if((e=Zo(e))&&(n||t===U))return e.replace(Xe,"");if(!e||!(t=Un(t)))return e;var r=H(e);return rr(r,M(r,H(t))).join("")},n.truncate=function(e,t){var n=30,r="...";if(zo(t)){var o="separator"in t?t.separator:o;n="length"in t?Yo(t.length):n,r="omission"in t?Un(t.omission):r}var i=(e=Zo(e)).length;if(T(e)){var a=H(e);i=a.length}if(n>=i)return e;var l=n-F(r);if(l<1)return r;var c=a?rr(a,0,l).join(""):e.slice(0,l);if(o===U)return c+r;if(a&&(l+=c.length-l),Al(o)){if(e.slice(l).search(o)){var s,u=c;for(o.global||(o=Si(o.source,Zo(it.exec(o))+"g")),o.lastIndex=0;s=o.exec(u);)var d=s.index;c=c.slice(0,d===U?l:d)}}else if(e.indexOf(Un(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+r},n.unescape=function(e){return(e=Zo(e))&&ze.test(e)?e.replace(Le,xn):e},n.uniqueId=function(e){var t=++Ii;return Zo(e)+t},n.upperCase=cc,n.upperFirst=sc,n.each=Eo,n.eachRight=Oo,n.first=go,di(n,function(){var e={};return Lt(n,(function(t,r){Ni.call(n.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),n.VERSION="4.17.21",a(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){n[e].placeholder=n})),a(["drop","take"],(function(e,t){Qe.prototype[e]=function(n){n=n===U?1:ia(Yo(n),0);var r=this.__filtered__&&!t?new Qe(this):this.clone();return r.__filtered__?r.__takeCount__=aa(n,r.__takeCount__):r.__views__.push({size:aa(n,oe),type:e+(r.__dir__<0?"Right":"")}),r},Qe.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),a(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Qe.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Hr(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),a(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Qe.prototype[e]=function(){return this[n](1).value()[0]}})),a(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Qe.prototype[e]=function(){return this.__filtered__?new Qe(this):this[n](1)}})),Qe.prototype.compact=function(){return this.filter(si)},Qe.prototype.find=function(e){return this.filter(e).head()},Qe.prototype.findLast=function(e){return this.reverse().find(e)},Qe.prototype.invokeMap=An((function(e,t){return"function"==typeof e?new Qe(this):this.map((function(n){return en(n,e,t)}))})),Qe.prototype.reject=function(e){return this.filter(Po(Hr(e)))},Qe.prototype.slice=function(e,t){e=Yo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Qe(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==U&&(n=(t=Yo(t))<0?n.dropRight(-t):n.take(t-e)),n)},Qe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Qe.prototype.toArray=function(){return this.take(oe)},Lt(Qe.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=n[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(n.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,c=t instanceof Qe,s=l[0],u=c||Nl(t),d=function(e){var t=i.apply(n,p([e],l));return o&&f?t[0]:t};u&&r&&"function"==typeof s&&1!=s.length&&(c=u=!1);var f=this.__chain__,h=!!this.__actions__.length,v=a&&!f,m=c&&!h;if(!a&&u){t=m?t:new Qe(this);var g=e.apply(t,l);return g.__actions__.push({func:ko,args:[d],thisArg:U}),new E(g,f)}return v&&m?e.apply(this,l):(g=this.thru(d),v?o?g.value()[0]:g.value():g)})})),a(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ei[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var n=this.value();return t.apply(Nl(n)?n:[],e)}return this[r]((function(n){return t.apply(Nl(n)?n:[],e)}))}})),Lt(Qe.prototype,(function(e,t){var r=n[t];if(r){var o=r.name+"";Ni.call(ba,o)||(ba[o]=[]),ba[o].push({name:t,func:r})}})),ba[Sr(U,2).name]=[{name:"wrapper",func:U}],Qe.prototype.clone=function(){var e=new Qe(this.__wrapped__);return e.__actions__=ur(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ur(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ur(this.__views__),e},Qe.prototype.reverse=function(){if(this.__filtered__){var e=new Qe(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Qe.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Nl(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=aa(t,e+a);break;case"takeRight":e=ia(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,c=l-a,s=r?l:a-1,u=this.__iteratees__,d=u.length,f=0,p=aa(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return Qn(e,this.__actions__);var h=[];e:for(;c--&&f<p;){for(var v=-1,m=e[s+=t];++v<d;){var g=u[v],b=g.iteratee,y=g.type,w=b(m);if(2==y)m=w;else if(!w){if(1==y)continue e;break e}}h[f++]=m}return h},n.prototype.at=sl,n.prototype.chain=function(){return Co(this)},n.prototype.commit=function(){return new E(this.value(),this.__chain__)},n.prototype.next=function(){this.__values__===U&&(this.__values__=Uo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?U:this.__values__[this.__index__++]}},n.prototype.plant=function(e){for(var t,n=this;n instanceof r;){var o=po(n);o.__index__=0,o.__values__=U,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Qe){var t=e;return this.__actions__.length&&(t=new Qe(this)),(t=t.reverse()).__actions__.push({func:ko,args:[wo],thisArg:U}),new E(t,this.__chain__)}return this.thru(wo)},n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=function(){return Qn(this.__wrapped__,this.__actions__)},n.prototype.first=n.prototype.head,Ui&&(n.prototype[Ui]=function(){return this}),n}();an._=Sn,void 0===(r=function(){return Sn}.call(t,n,t,e))||(e.exports=r)}.call(this)},3345:function(e){e.exports=function(){return[]}},9935:function(e){e.exports=function(){return!1}},5606:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,c=[],s=!1,u=-1;function d(){s&&l&&(s=!1,l.length?c=l.concat(c):u=-1,c.length&&f())}function f(){if(!s){var e=a(d);s=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||s||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2694:function(e,t,n){"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:function(e,t,n){e.exports=n(2694)()},6925:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1574:function(e,t,n){var r,o=n(8287).hp; | |
| 5 | + * @license React | |
| 6 | + * react-jsx-runtime.production.min.js | |
| 7 | + * | |
| 8 | + * Copyright (c) Facebook, Inc. and its affiliates. | |
| 9 | + * | |
| 10 | + * This source code is licensed under the MIT license found in the | |
| 11 | + * LICENSE file in the root directory of this source tree. | |
| 12 | + */var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,u=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},1081:(e,t,n)=>{e.exports=n(2810).uniqBy},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},1334:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(645),o=n(4483),i=n(58);t.last=function(e){if(i.isArrayLike(e))return r.last(o.toArray(e))}},1366:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isSymbol=function(e){return"symbol"==typeof e||e instanceof Symbol}},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1420:(e,t,n)=>{var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},1465:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toKey=function(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}},1549:(e,t,n)=>{var r=n(2032),o=n(3862),i=n(6721),a=n(2749),l=n(5749);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},1574:function(e,t,n){var r,o=n(8287).hp; | |
| 26 | 13 | /*! |
| 27 | 14 | * Quill Editor v1.3.7 |
| 28 | 15 | * https://quilljs.com/ |
| 29 | 16 | * Copyright (c) 2014, Jason Chen |
| 30 | 17 | * Copyright (c) 2013, salesforce.com |
| 31 | - */"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),l=n(46),c=n(47),s=n(48),u=n(49),d=n(12),f=n(32),p=n(33),h=n(31),v=n(1),m={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:s.default,Scroll:a.default,Block:c.default,Inline:l.default,Text:u.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=m},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=i;var a,l={},c={},s={},u={};function d(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=u[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=u.block:e&a.LEVEL&a.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||s[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return u[r.blotName||r.attrName]=r,"string"==typeof r.keyName?l[r.keyName]=r:(null!=r.className&&(c[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(e){null!=s[e]&&null!=r.className||(s[e]=r)})))),r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),c=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};c.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},c.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},c.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},c.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},c.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},c.prototype.filter=function(e){return this.ops.filter(e)},c.prototype.forEach=function(e){this.ops.forEach(e)},c.prototype.map=function(e){return this.ops.map(e)},c.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},c.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},c.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},c.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},c.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=a.length(i)}return new c(n)},c.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),r.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var s=new c(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())s.push(n.next());else if("delete"===t.peekType())s.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),d=t.next(u),f=n.next(u);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=u:p.insert=d.insert;var h=a.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),s.push(p),!n.hasNext()&&o(s.ops[s.ops.length-1],p)){var v=new c(t.rest());return s.concat(v).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&s.push(f)}return s.chop()},c.prototype.concat=function(e){var t=new c(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},c.prototype.diff=function(e,t){if(this.ops===e.ops)return new c;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new c,s=r(n[0],n[1],t),u=a.iterator(this.ops),d=a.iterator(e.ops);return s.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var l=u.next(n),c=d.next(n);o(l.insert,c.insert)?i.retain(n,a.attributes.diff(l.attributes,c.attributes)):i.push(c).delete(n)}t-=n}})),i.chop()},c.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new c,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),s="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(s<0)r.push(n.next());else if(s>0)r.push(n.next(s));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new c}}r.length()>0&&e(r,{},o)},c.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),o=new c;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),l=n.next(i),s=r.next(i);if(l.delete)continue;s.delete?o.push(s):o.retain(i,a.attributes.transform(l.attributes,s.attributes,t))}else o.retain(a.length(n.next()));return o.chop()},c.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=c},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},l=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},c=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(l(o)||(i=a(o)))?(i?(i=!1,u=r&&a(r)?r:[]):u=r&&l(r)?r:{},c(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&c(d,{name:n,newValue:o}));return d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=d(n(3)),a=d(n(2)),l=d(n(0)),c=d(n(16)),s=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=l.default.create(m.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(l.default.Embed);v.scope=l.default.Scope.BLOCK_BLOT;var m=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))}),new a.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(l.default.query(r,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof c.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[s.default,l.default.Embed,u.default],t.bubbleFormats=g,t.BlockEmbed=v,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=m(n(2)),l=m(n(14)),c=m(n(8)),s=m(n(9)),u=m(n(0)),d=n(15),f=m(d),p=m(n(3)),h=m(n(10)),v=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(0,h.default)("quill"),y=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=w(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new c.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(c.default.events.EDITOR_CHANGE,(function(e){e===c.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(c.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;x.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=S(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;return x.call(this,(function(){var r=n.getSelection(!0),o=new a.default;if(null==r)return o;if(u.default.query(e,u.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,g({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,g({},e,t))}return n.setSelection(r,c.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var a,l=this,c=S(e,t,n,r,i),s=o(c,4);return e=s[0],t=s[1],a=s[2],i=s[3],x.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,l=this,c=S(e,t,n,r,i),s=o(c,4);return e=s[0],t=s[1],a=s[2],i=s[3],x.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=S(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=S(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return x.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,i){var a,l=this,c=S(e,0,n,r,i),s=o(c,4);return e=s[0],a=s[2],i=s[3],x.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=S(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return x.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=S(t,n,r),a=o(i,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new d.Range(t,n),r),r!==c.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return x.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function w(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==y.DEFAULTS.theme){if(t.theme=y.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=v.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=y.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},y.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function x(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===c.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=C(o,l,t):0!==r&&(o=C(o,n,r,t)),this.setSelection(o,c.default.sources.SILENT)),l.length()>0){var s,u,d=[c.default.events.TEXT_CHANGE,l,i,t];(s=this.emitter).emit.apply(s,[c.default.events.EDITOR_CHANGE].concat(d)),t!==c.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return l}function S(e,t,n,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(a=n,i=o):"string"==typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||c.default.sources.API]}function C(e,t,n,r){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var s=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==c.default.sources.USER)})),u=o(s,2);i=u[0],l=u[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===c.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=o(f,2);i=p[0],l=p[1]}return new d.Range(i,l-i)}y.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},y.events=c.default.events,y.sources=c.default.sources,y.version="1.3.7",y.imports={delta:a.default,parchment:u.default,"core/module":s.default,"core/theme":v.default},t.expandConfig=w,t.overload=S,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);c.allowedChildren=[c,a.default.Embed,i.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default.Text);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var l=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var c=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",l.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){l.log.apply(l,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);c.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},c.sources={API:"api",SILENT:"silent",USER:"user"},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return r.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){o=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var s,u;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(c(e)){if(!c(t))return!1;if(e.length!==t.length)return!1;for(s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}try{var d=o(e),f=o(t)}catch(e){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),s=d.length-1;s>=0;s--)if(d[s]!=f[s])return!1;for(s=d.length-1;s>=0;s--)if(u=d[s],!a(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function l(e){return null==e}function c(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=d(n(2)),l=d(n(0)),c=d(n(4)),s=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(s.default);v.blotName="code",v.tagName="CODE";var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(u.default,this.length()-1),a=r(o,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=l.default.query(r,l.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,c=i-a+1,s=this.isolate(a,c),u=s.next;s.format(r,o),u instanceof t&&u.formatAt(0,e-a+n-c,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(u.default,e),i=r(o,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(c.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=v,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=g(n(2)),l=g(n(20)),c=g(n(0)),s=g(n(13)),u=g(n(24)),d=n(4),f=g(d),p=g(n(16)),h=g(n(21)),v=g(n(11)),m=g(n(3));function g(e){return e&&e.__esModule?e:{default:e}}var b=/^[ -~]*$/,y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var s=a.retain||a.delete||a.insert.length||1,u=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),v=o(h,2),g=v[0],b=v[1],y=(0,m.default)({},(0,d.bubbleFormats)(g));if(g instanceof f.default){var w=g.descendant(c.default.Leaf,b),x=o(w,1)[0];y=(0,m.default)(y,(0,d.bubbleFormats)(x))}u=l.default.attributes.diff(y,u)||{}}else if("object"===r(a.insert)){var S=Object.keys(a.insert)[0];if(null==S)return e;t.scroll.insertAt(e,S,a.insert[S])}i+=s}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,s,n,u[n])})),e+s}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof s.default){var l=e-t.offset(n.scroll),c=t.newlineIndex(l+a)-l+1;t.formatAt(l,c,o,r[o])}else t.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof f.default?n.push(t):t instanceof c.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(c.default.Leaf,e,t));var i=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=w((0,d.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),l=i[0],c=i[1],u=0,d=new a.default;null!=l&&(u=l instanceof s.default?l.newlineIndex(c)-c+1:l.length()-c,d=l.delta().slice(c,c+u-1).insert("\n"));var f=this.getContents(e,t+u).diff((new a.default).insert(n).concat(d)),p=(new a.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(b)&&c.default.find(t[0].target)){var o=c.default.find(t[0].target),i=(0,d.bubbleFormats)(o),l=o.offset(this.scroll),s=t[0].oldValue.replace(u.default.CONTENTS,""),f=(new a.default).insert(s),p=(new a.default).insert(o.value());e=(new a.default).retain(l).concat(f.diff(p,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,v.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function w(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),a=s(n(21)),l=s(n(11)),c=s(n(8));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,s(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,c.default.sources.USER),1)})),this.emitter.on(c.default.events.EDITOR_CHANGE,(function(e,t){e===c.default.events.TEXT_CHANGE&&t.length()>0&&r.update(c.default.sources.SILENT)})),this.emitter.on(c.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(c.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(c.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l)}})),this.update(c.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(c.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),a=r(i,2),l=a[0],c=a[1];if(null==l)return null;var s=l.position(c,!0),u=r(s,2);o=u[0],c=u[1];var d=document.createRange();if(t>0){d.setStart(o,c);var f=this.scroll.leaf(e+t),p=r(f,2);if(l=p[0],c=p[1],null==l)return null;var h=l.position(c,!0),v=r(h,2);return o=v[0],c=v[1],d.setEnd(o,c),d.getBoundingClientRect()}var m="left",g=void 0;return o instanceof Text?(c<o.data.length?(d.setStart(o,c),d.setEnd(o,c+1)):(d.setStart(o,c-1),d.setEnd(o,c),m="right"),g=d.getBoundingClientRect()):(g=l.domNode.getBoundingClientRect(),c>0&&(m="right")),{bottom:g.top+g.height,height:g.height,left:g[m],right:g[m],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],a=n[1],l=i.default.find(o,!0),c=l.offset(t.scroll);return 0===a?c:l instanceof i.default.Container?c+l.length():c+l.index(o,a)})),a=Math.min(Math.max.apply(Math,u(o)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(u(o)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!v(this.root,e.startContainer)||!e.collapsed&&!v(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),c=r(l,2),s=c[0],u=c[1],d=s.position(u,0!==n),f=r(d,2);a=f[0],u=f[1],o.push(a,u)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],l=a;if(t.length>0){var c=this.scroll.line(Math.min(t.index+t.length,o));l=r(c,1)[0]}if(null!=a&&null!=l){var s=e.getBoundingClientRect();n.top<s.top?e.scrollTop-=s.top-n.top:n.bottom>s.bottom&&(e.scrollTop+=n.bottom-s.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,u(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],s=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var u;!this.composing&&null!=s&&s.native.collapsed&&s.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[c.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(u=this.emitter).emit.apply(u,[c.default.events.EDITOR_CHANGE].concat(f)),e!==c.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function v(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default.Embed);l.blotName="break",l.tagName="BR",t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),l=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=s(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof l.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=a})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var a=null==n?l.create("text",t):l.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],a=[[this,e]];return o instanceof t?a.concat(o.path(i,n)):(null!=o&&a.push([o,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,o){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var r=s(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(a.default);function s(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch(n){t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),l=n(17),c=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=c.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(l.default);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function i(a,c,s,u,d){"object"==typeof c&&(s=c.depth,u=c.prototype,d=c.includeNonEnumerable,c=c.circular);var f=[],p=[],h=void 0!==o;return void 0===c&&(c=!0),void 0===s&&(s=1/0),function a(s,v){if(null===s)return null;if(0===v)return s;var m,g;if("object"!=typeof s)return s;if(e(s,t))m=new t;else if(e(s,n))m=new n;else if(e(s,r))m=new r((function(e,t){s.then((function(t){e(a(t,v-1))}),(function(e){t(a(e,v-1))}))}));else if(i.__isArray(s))m=[];else if(i.__isRegExp(s))m=new RegExp(s.source,l(s)),s.lastIndex&&(m.lastIndex=s.lastIndex);else if(i.__isDate(s))m=new Date(s.getTime());else{if(h&&o.isBuffer(s))return m=o.allocUnsafe?o.allocUnsafe(s.length):new o(s.length),s.copy(m),m;e(s,Error)?m=Object.create(s):void 0===u?(g=Object.getPrototypeOf(s),m=Object.create(g)):(m=Object.create(u),g=u)}if(c){var b=f.indexOf(s);if(-1!=b)return p[b];f.push(s),p.push(m)}for(var y in e(s,t)&&s.forEach((function(e,t){var n=a(t,v-1),r=a(e,v-1);m.set(n,r)})),e(s,n)&&s.forEach((function(e){var t=a(e,v-1);m.add(t)})),s){var w;g&&(w=Object.getOwnPropertyDescriptor(g,y)),w&&null==w.set||(m[y]=a(s[y],v-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(s);for(y=0;y<x.length;y++){var S=x[y];(!(k=Object.getOwnPropertyDescriptor(s,S))||k.enumerable||d)&&(m[S]=a(s[S],v-1),k.enumerable||Object.defineProperty(m,S,{enumerable:!1}))}}if(d){var C=Object.getOwnPropertyNames(s);for(y=0;y<C.length;y++){var k,E=C[y];(k=Object.getOwnPropertyDescriptor(s,E))&&k.enumerable||(m[E]=a(s[E],v-1),Object.defineProperty(m,E,{enumerable:!1}))}}return m}(a,s)}function a(e){return Object.prototype.toString.call(e)}function l(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return i.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},i.__objToStr=a,i.__isDate=function(e){return"object"==typeof e&&"[object Date]"===a(e)},i.__isArray=function(e){return"object"==typeof e&&"[object Array]"===a(e)},i.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===a(e)},i.__getRegExpFlags=l,i}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=p(n(0)),l=p(n(8)),c=n(4),s=p(c),u=p(n(16)),d=p(n(13)),f=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof s.default||e instanceof c.BlockEmbed}var v=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),a=r(o,2),l=a[0],s=a[1],f=this.line(e+n),p=r(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&s>0){if(l instanceof c.BlockEmbed||p instanceof c.BlockEmbed)return void this.optimize();if(l instanceof d.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var v=p.newlineIndex(0);v>-1&&p.split(v+1)}var m=p.children.head instanceof u.default?null:p.children.head;l.moveChildren(p,m),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var l=a.default.create(n,r);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[s.default,c.BlockEmbed,f.default],t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=v(n(21)),l=v(n(11)),c=v(n(3)),s=v(n(2)),u=v(n(20)),d=v(n(0)),f=v(n(5)),p=v(n(10)),h=v(n(9));function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,p.default)("quill:keyboard"),b=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},k),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},x),r.addBinding({key:t.keys.DELETE},{collapsed:!0},S)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},x),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},S)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},C),r.addBinding({key:t.keys.DELETE},{collapsed:!1},C),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},x),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=_(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=_(e);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,c.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var c=e.quill.getSelection();if(null!=c&&e.quill.hasFocus()){var s=e.quill.getLine(c.index),u=o(s,2),f=u[0],p=u[1],h=e.quill.getLeaf(c.index),v=o(h,2),m=v[0],g=v[1],b=0===c.length?[m,g]:e.quill.getLeaf(c.index+c.length),y=o(b,2),w=y[0],x=y[1],S=m instanceof d.default.Text?m.value().slice(0,g):"",C=w instanceof d.default.Text?w.value().slice(x):"",k={collapsed:0===c.length,empty:0===c.length&&f.length()<=1,format:e.quill.getFormat(c),offset:p,prefix:S,suffix:C};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==k.collapsed)return!1;if(null!=t.empty&&t.empty!==k.empty)return!1;if(null!=t.offset&&t.offset!==k.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==k.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=k.format[e]:!1===t.format[e]?null==k.format[e]:(0,l.default)(t.format[e],k.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(k.prefix)||null!=t.suffix&&!t.suffix.test(k.suffix)||!0===t.handler.call(e,c,k))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function w(e,t){var n,r=e===y.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},r,/^$/),m(n,"handler",(function(n){var r=n.index;e===y.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof d.default.Embed&&(e===y.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),n}function x(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=o(a,1)[0];if(null!=l&&l.length()>1){var c=r.formats(),s=this.quill.getFormat(e.index-1,1);i=u.default.attributes.diff(c,s)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function S(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),l=o(a,1)[0];if(t.offset>=l.length()-1){var c=this.quill.getLine(e.index+1),s=o(c,1)[0];if(s){var d=l.formats(),p=this.quill.getFormat(e.index,1);r=u.default.attributes.diff(d,p)||{},i=s.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,f.default.sources.USER)}}function C(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=u.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function k(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function E(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),l=o(a,2),c=l[0],s=l[1];if(null!=c){var u=this.quill.getIndex(c),p=c.newlineIndex(s,!0)+1,h=c.newlineIndex(u+s+i),v=c.domNode.textContent.slice(p,h).split("\n");s=0,v.forEach((function(t,o){e?(c.insertAt(p+s,n.TAB),s+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(c.deleteAt(p+s,n.TAB.length),s-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),s+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(r,i,f.default.sources.SILENT)}}}}function O(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function _(e){if("string"==typeof e||"number"==typeof e)return _({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:O("bold"),italic:O("italic"),underline:O("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":E(!0),"outdent code-block":E(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new s.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,c.default)({},r.formats(),{list:"checked"}),l=(new s.default).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],l=(new s.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],l=i[1];if(l>n)return!0;var c=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":c="unchecked";break;case"[x]":c="checked";break;case"-":case"*":c="bullet";break;default:c="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var u=(new s.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:c});this.quill.updateContents(u,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new s.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":w(y.keys.LEFT,!1),"embed left shift":w(y.keys.LEFT,!0),"embed right":w(y.keys.RIGHT,!1),"embed right shift":w(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=c(n(0)),l=c(n(7));function c(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,i=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,c=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var s=[e,n.start.offset,n.end.offset];o=s[0],i=s[1],c=s[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(o=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,c].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),f=r(d,2);return i=f[0],c=f[1],{startNode:o,startOffset:i,endNode:o,endOffset:c}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\ufeff",t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=n(4),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);l.allowedChildren=[i.default,o.BlockEmbed,l],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(l.default.Attributor.Style),s=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),u=new c("color","color",{scope:l.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=s,t.ColorStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);function c(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=l,t.sanitize=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}var c=0;function s(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+c,c+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(0)),o=g(n(5)),i=n(4),a=g(i),l=g(n(16)),c=g(n(25)),s=g(n(24)),u=g(n(35)),d=g(n(6)),f=g(n(22)),p=g(n(7)),h=g(n(55)),v=g(n(42)),m=g(n(23));function g(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":c.default,"blots/cursor":s.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":v.default,"modules/keyboard":m.default}),r.default.register(a.default,l.default,s.default,d.default,f.default,p.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var c="\ufeff",s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(c),n.rightGuard=document.createTextNode(c),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(c).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=c,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(i.default.Embed);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new i.default.Attributor.Attribute("align","align",a),c=new i.default.Attributor.Class("align","ql-align",a),s=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=l,t.AlignClass=c,t.AlignStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(26),l=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),c=new a.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},l=new i.default.Attributor.Attribute("direction","dir",a),c=new i.default.Attributor.Class("direction","ql-direction",a),s=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=l,t.DirectionClass=c,t.DirectionStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new l.default.Attributor.Class("font","ql-font",c),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(l.default.Attributor.Style),d=new u("font","font-family",c);t.FontStyle=d,t.FontClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=l},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,o){e!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var r=c(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function c(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=h(n(3)),a=h(n(2)),l=h(n(8)),c=h(n(23)),s=h(n(34)),u=h(n(59)),d=h(n(60)),f=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[!1,"center","right","justify"],y=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],S=["small",!1,"large","huge"],C=function(e){function t(e,n){v(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),r}return g(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&E(e,b),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&E(e,y,"background"===n?"#ffffff":"#000000"),new u.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?E(e,w):e.classList.contains("ql-header")?E(e,x):e.classList.contains("ql-size")&&E(e,S)),new f.default(e)})),this.quill.on(l.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(s.default);C.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),l.default.sources.USER),e.quill.setSelection(r.index+1,l.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var k=function(e){function t(e,n){v(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){c.default.match(t,"enter")?(e.save(),t.preventDefault()):c.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,l.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",l.default.sources.USER),this.quill.setSelection(i+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=k,t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],a=e-o[1],l=this.iterator(i);(r=l())&&a<e+t;){var c=r.length();e>a?n(r,e-a,Math.min(t,a+c-e)):n(r,0,Math.min(c,e+t-a)),a+=c}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},c=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(c),e.optimize(n))},s=t,u=0;s.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(c),o=(s=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=a.query(r,a.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=a.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,r=1,o=0;function i(e,t,u){if(e==t)return e?[[o,e]]:[];(u<0||e.length<u)&&(u=null);var f=l(e,t),p=e.substring(0,f);f=c(e=e.substring(f),t=t.substring(f));var h=e.substring(e.length-f),v=function(e,t){var s;if(!e)return[[r,t]];if(!t)return[[n,e]];var u=e.length>t.length?e:t,d=e.length>t.length?t:e,f=u.indexOf(d);if(-1!=f)return s=[[r,u.substring(0,f)],[o,d],[r,u.substring(f+d.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==d.length)return[[n,e],[r,t]];var p=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,i,a,s=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(s,u+1));){var f=l(e.substring(n),t.substring(u)),p=c(e.substring(0,n),t.substring(0,u));d.length<p+f&&(d=t.substring(u-p,u)+t.substring(u,u+f),r=e.substring(0,n-p),o=e.substring(n+f),i=t.substring(0,u-p),a=t.substring(u+f))}return 2*d.length>=e.length?[r,o,i,a,d]:null}var i,a,s,u,d,f=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!f&&!p)return null;i=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(a=i[0],s=i[1],u=i[2],d=i[3]):(u=i[0],d=i[1],a=i[2],s=i[3]);var h=i[4];return[a,s,u,d,h]}(e,t);if(p){var h=p[0],v=p[1],m=p[2],g=p[3],b=p[4],y=i(h,m),w=i(v,g);return y.concat([[o,b]],w)}return function(e,t){for(var o=e.length,i=t.length,l=Math.ceil((o+i)/2),c=l,s=2*l,u=new Array(s),d=new Array(s),f=0;f<s;f++)u[f]=-1,d[f]=-1;u[c+1]=0,d[c+1]=0;for(var p=o-i,h=p%2!=0,v=0,m=0,g=0,b=0,y=0;y<l;y++){for(var w=-y+v;w<=y-m;w+=2){for(var x=c+w,S=(_=w==-y||w!=y&&u[x-1]<u[x+1]?u[x+1]:u[x-1]+1)-w;_<o&&S<i&&e.charAt(_)==t.charAt(S);)_++,S++;if(u[x]=_,_>o)m+=2;else if(S>i)v+=2;else if(h&&(E=c+p-w)>=0&&E<s&&-1!=d[E]&&_>=(k=o-d[E]))return a(e,t,_,S)}for(var C=-y+g;C<=y-b;C+=2){for(var k,E=c+C,O=(k=C==-y||C!=y&&d[E-1]<d[E+1]?d[E+1]:d[E-1]+1)-C;k<o&&O<i&&e.charAt(o-k-1)==t.charAt(i-O-1);)k++,O++;if(d[E]=k,k>o)b+=2;else if(O>i)g+=2;else if(!h){var _;if((x=c+p-C)>=0&&x<s&&-1!=u[x])if(S=c+(_=u[x])-x,_>=(k=o-k))return a(e,t,_,S)}}}return[[n,e],[r,t]]}(e,t)}(e=e.substring(0,e.length-f),t=t.substring(0,t.length-f));return p&&v.unshift([o,p]),h&&v.push([o,h]),s(v),null!=u&&(v=function(e,t){var r=function(e,t){if(0===t)return[o,e];for(var r=0,i=0;i<e.length;i++){var a=e[i];if(a[0]===n||a[0]===o){var l=r+a[1].length;if(t===l)return[i+1,e];if(t<l){e=e.slice();var c=t-r,s=[a[0],a[1].slice(0,c)],u=[a[0],a[1].slice(c)];return e.splice(i,1,s,u),[i+1,e]}r=l}}throw new Error("cursor_pos is out of bounds!")}(e,t),i=r[1],a=r[0],l=i[a],c=i[a+1];if(null==l)return e;if(l[0]!==o)return e;if(null!=c&&l[1]+c[1]===c[1]+l[1])return i.splice(a,2,c,l),d(i,a,2);if(null!=c&&0===c[1].indexOf(l[1])){i.splice(a,2,[c[0],l[1]],[0,l[1]]);var s=c[1].slice(l[1].length);return s.length>0&&i.splice(a+2,0,[c[0],s]),d(i,a,3)}return e}(v,u)),v=function(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},l=2;l<e.length;l+=1)e[l-2][0]===o&&a(e[l-2][1])&&e[l-1][0]===n&&i(e[l-1][1])&&e[l][0]===r&&i(e[l][1])&&(t=!0,e[l-1][1]=e[l-2][1].slice(-1)+e[l-1][1],e[l][1]=e[l-2][1].slice(-1)+e[l][1],e[l-2][1]=e[l-2][1].slice(0,-1));if(!t)return e;var c=[];for(l=0;l<e.length;l+=1)e[l][1].length>0&&c.push(e[l]);return c}(v)}function a(e,t,n,r){var o=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),c=t.substring(r),s=i(o,a),u=i(l,c);return s.concat(u)}function l(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function s(e){e.push([o,""]);for(var t,i=0,a=0,u=0,d="",f="";i<e.length;)switch(e[i][0]){case r:u++,f+=e[i][1],i++;break;case n:a++,d+=e[i][1],i++;break;case o:a+u>1?(0!==a&&0!==u&&(0!==(t=l(f,d))&&(i-a-u>0&&e[i-a-u-1][0]==o?e[i-a-u-1][1]+=f.substring(0,t):(e.splice(0,0,[o,f.substring(0,t)]),i++),f=f.substring(t),d=d.substring(t)),0!==(t=c(f,d))&&(e[i][1]=f.substring(f.length-t)+e[i][1],f=f.substring(0,f.length-t),d=d.substring(0,d.length-t))),0===a?e.splice(i-u,a+u,[r,f]):0===u?e.splice(i-a,a+u,[n,d]):e.splice(i-a-u,a+u,[n,d],[r,f]),i=i-a-u+(a?1:0)+(u?1:0)+1):0!==i&&e[i-1][0]==o?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,u=0,a=0,d="",f=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(i=1;i<e.length-1;)e[i-1][0]==o&&e[i+1][0]==o&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),p=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),p=!0)),i++;p&&s(e)}var u=i;function d(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}u.INSERT=r,u.DELETE=n,u.EQUAL=o,e.exports=u},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,l=new Array(a);i<a;i++)l[i]=o[i].fn;return l},a.prototype.emit=function(e,t,n,o,i,a){var l=r?r+e:e;if(!this._events[l])return!1;var c,s,u=this._events[l],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,i),!0;case 6:return u.fn.call(u.context,t,n,o,i,a),!0}for(s=1,c=new Array(d-1);s<d;s++)c[s-1]=arguments[s];u.fn.apply(u.context,c)}else{var f,p=u.length;for(s=0;s<p;s++)switch(u[s].once&&this.removeListener(e,u[s].fn,void 0,!0),d){case 1:u[s].fn.call(u[s].context);break;case 2:u[s].fn.call(u[s].context,t);break;case 3:u[s].fn.call(u[s].context,t,n);break;case 4:u[s].fn.call(u[s].context,t,n,o);break;default:if(!c)for(f=1,c=new Array(d-1);f<d;f++)c[f-1]=arguments[f];u[s].fn.apply(u[s].context,c)}}return!0},a.prototype.on=function(e,t,n){var o=new i(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var c=0,s=[],u=l.length;c<u;c++)(l[c].fn!==t||i&&!l[c].once||n&&l[c].context!==n)&&s.push(l[c]);s.length?this._events[a]=1===s.length?s[0]:s:0==--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=y(n(3)),l=y(n(2)),c=y(n(0)),s=y(n(5)),u=y(n(10)),d=y(n(9)),f=n(36),p=n(37),h=y(n(13)),v=n(26),m=n(38),g=n(39),b=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=(0,u.default)("quill:clipboard"),S="__ql-matcher",C=[[Node.TEXT_NODE,q],[Node.TEXT_NODE,A],["br",function(e,t){return j(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,T],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===$(e).fontStyle&&(n.italic=!0),r.fontWeight&&($(e).fontWeight.startsWith("bold")||parseInt($(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=_(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=c.default.query(e);if(null==n||"list-item"!==n.blotName||!j(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(c.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",P.bind(P,"bold")],["i",P.bind(P,"italic")],["style",function(){return new l.default}]],k=[f.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),E=[f.AlignStyle,p.BackgroundStyle,v.ColorStyle,m.DirectionStyle,g.FontStyle,b.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),O=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],C.concat(r.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],a=t[1];(n.matchVisual||a!==T)&&r.addMatcher(i,a)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],c=i[1],s=I(this.container,a,c);return j(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new l.default).retain(s.length()-1).delete(1))),x.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,s.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),s.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(s.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,s.default.sources.USER),t.quill.setSelection(r.length()-n.length,s.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[S]=e[S]||[],e[S].push(l)}))}})),[t,n]}}]),t}(d.default);function _(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return _(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},w({},t,n),r.attributes))}),new l.default)}function $(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function j(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function N(e){if(0===e.childNodes.length)return!1;var t=$(e);return["block","list-item"].indexOf(t.display)>-1}function I(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=I(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[S]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new l.default):new l.default}function P(e,t,n){return _(n,e,!0)}function M(e,t){var n=c.default.Attributor.Attribute.keys(e),r=c.default.Attributor.Class.keys(e),o=c.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=c.default.query(t,c.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=k[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=E[t])||n.attrName!==t&&n.keyName!==t||(n=E[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=_(t,i)),t}function R(e,t){var n=c.default.query(e);if(null==n)return t;if(n.prototype instanceof c.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new l.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=_(t,n.blotName,n.formats(e)));return t}function A(e,t){return j(t,"\n")||(N(e)||t.length()>0&&e.nextSibling&&N(e.nextSibling))&&t.insert("\n"),t}function T(e,t){if(N(e)&&null!=e.nextElementSibling&&!j(t,"\n\n")){var n=e.offsetHeight+parseFloat($(e).marginTop)+parseFloat($(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function q(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!$(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&N(e.parentNode)||null!=e.previousSibling&&N(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&N(e.parentNode)||null!=e.nextSibling&&N(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}O.DEFAULTS={matchers:[],matchVisual:!0},t.default=O,t.matchAttributor=M,t.matchBlot=R,t.matchNewline=A,t.matchSpacing=T,t.matchText=q},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="bold",l.tagName=["STRONG","B"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(2)),a=u(n(0)),l=u(n(5)),c=u(n(10)),s=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=(0,c.default)("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");v(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=r(e,1)[0];i.update(t)})),i):(o=f.error("Container required for toolbar",i.options),d(i,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void f.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void f.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var c=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var s=e.options[e.selectedIndex];c=!s.hasAttribute("selected")&&(s.value||!1)}else c=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=r(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,c);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(c=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(d.index).delete(d.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,c)),l.default.sources.USER)}else t.quill.format(n,c,l.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=r(n,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var c=t[i];"string"==typeof c&&(c=c.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+c+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var s=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",s)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(s.default);function h(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function v(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)h(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):h(n,t,r)}})),e.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=p,t.addControls=v},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=p(n(3)),l=p(n(8)),c=n(43),s=p(c),u=p(n(27)),d=n(15),f=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return m(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(s.default);b.DEFAULTS=(0,a.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){h(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return m(t,e),i(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,n,o){if(null!=t){if(0===t.length&&o===l.default.sources.USER){var i=e.quill.scroll.descendant(u.default,t.index),a=r(i,2),c=a[0],s=a[1];if(null!=c){e.linkRange=new d.Range(t.index-s,c.length());var f=u.default.formats(c.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(c.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=A(n(29)),o=n(36),i=n(38),a=n(64),l=A(n(65)),c=A(n(66)),s=n(67),u=A(s),d=n(37),f=n(26),p=n(39),h=n(40),v=A(n(56)),m=A(n(68)),g=A(n(27)),b=A(n(69)),y=A(n(70)),w=A(n(71)),x=A(n(72)),S=A(n(73)),C=n(13),k=A(C),E=A(n(74)),O=A(n(75)),_=A(n(57)),$=A(n(41)),j=A(n(28)),N=A(n(59)),I=A(n(60)),P=A(n(61)),M=A(n(108)),R=A(n(62));function A(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":k.default,"formats/header":c.default,"formats/list":u.default,"formats/bold":v.default,"formats/code":C.Code,"formats/italic":m.default,"formats/link":g.default,"formats/script":b.default,"formats/strike":y.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":S.default,"formats/list/item":s.ListItem,"modules/formula":E.default,"modules/syntax":O.default,"modules/toolbar":_.default,"themes/bubble":M.default,"themes/snow":R.default,"ui/icons":$.default,"ui/picker":j.default,"ui/icon-picker":I.default,"ui/color-picker":N.default,"ui/tooltip":P.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(l.default.Attributor.Class),s=new c("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="blockquote",i.tagName="blockquote",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(0)),a=c(n(4)),l=c(n(25));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"format",value:function(e,n){e!==p.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);f.blotName="list-item",f.tagName="LI";var p=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=i.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return d(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof f)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[f],t.ListItem=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="script",l.tagName=["SUB","SUP"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="strike",i.tagName="S",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="underline",i.tagName="U",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=n(27),s=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){s.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return s.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,c.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(4),l=n(27),c=(r=l)&&r.__esModule?r:{default:r},s=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){s.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return s.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return c.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(35)),a=c(n(5)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){s(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),r(t,null,[{key:"register",value:function(){a.default.register(f,!0)}}]),t}(l.default);t.FormulaBlot=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(0)),a=c(n(5)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(c(n(13)).default);f.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){s(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return d(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(f,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=d(n(3)),a=d(n(8)),l=n(43),c=d(l),s=n(15),u=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return h(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(c.default);m.DEFAULTS=(0,i.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(e){function t(e,n){f(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,o){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var l=i[i.length-1],c=r.quill.getIndex(l),u=Math.min(l.length()-1,t.index+t.length-c),d=r.quill.getBounds(new s.Range(c,u));r.position(d)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=g,t.default=m},function(e,t,n){e.exports=n(63)}]).default},e.exports=r()},7787:function(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"); | |
| 18 | + */"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),l=n(46),c=n(47),s=n(48),u=n(49),d=n(12),f=n(32),p=n(33),h=n(31),m=n(1),v={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:s.default,Scroll:a.default,Block:c.default,Inline:l.default,Text:u.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=v},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=i;var a,l={},c={},s={},u={};function d(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=u[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=u.block:e&a.LEVEL&a.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||s[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map(function(t){return e(t)});var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return u[r.blotName||r.attrName]=r,"string"==typeof r.keyName?l[r.keyName]=r:(null!=r.className&&(c[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map(function(e){return e.toUpperCase()}):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach(function(e){null!=s[e]&&null!=r.className||(s[e]=r)}))),r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),c=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};c.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},c.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},c.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},c.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},c.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},c.prototype.filter=function(e){return this.ops.filter(e)},c.prototype.forEach=function(e){this.ops.forEach(e)},c.prototype.map=function(e){return this.ops.map(e)},c.prototype.partition=function(e){var t=[],n=[];return this.forEach(function(r){(e(r)?t:n).push(r)}),[t,n]},c.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},c.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e},0)},c.prototype.length=function(){return this.reduce(function(e,t){return e+a.length(t)},0)},c.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=a.length(i)}return new c(n)},c.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),r.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var s=new c(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())s.push(n.next());else if("delete"===t.peekType())s.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),d=t.next(u),f=n.next(u);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=u:p.insert=d.insert;var h=a.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),s.push(p),!n.hasNext()&&o(s.ops[s.ops.length-1],p)){var m=new c(t.rest());return s.concat(m).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&s.push(f)}return s.chop()},c.prototype.concat=function(e){var t=new c(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},c.prototype.diff=function(e,t){if(this.ops===e.ops)return new c;var n=[this,e].map(function(t){return t.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")}),i=new c,s=r(n[0],n[1],t),u=a.iterator(this.ops),d=a.iterator(e.ops);return s.forEach(function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var l=u.next(n),c=d.next(n);o(l.insert,c.insert)?i.retain(n,a.attributes.diff(l.attributes,c.attributes)):i.push(c).delete(n)}t-=n}}),i.chop()},c.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new c,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),s="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(s<0)r.push(n.next());else if(s>0)r.push(n.next(s));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new c}}r.length()>0&&e(r,{},o)},c.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),o=new c;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),l=n.next(i),s=r.next(i);if(l.delete)continue;s.delete?o.push(s):o.retain(i,a.attributes.transform(l.attributes,s.attributes,t))}else o.retain(a.length(n.next()));return o.chop()},c.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=c},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},l=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},c=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(l(o)||(i=a(o)))?(i?(i=!1,u=r&&a(r)?r:[]):u=r&&l(r)?r:{},c(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&c(d,{name:n,newValue:o}));return d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=d(n(3)),a=d(n(2)),l=d(n(0)),c=d(n(16)),s=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=l.default.create(v.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(l.default.Embed);m.scope=l.default.Scope.BLOCK_BLOT;var v=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce(function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))},new a.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(l.default.query(r,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce(function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length},e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof c.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[s.default,l.default.Embed,u.default],t.bubbleFormats=g,t.BlockEmbed=m,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=v(n(2)),l=v(n(14)),c=v(n(8)),s=v(n(9)),u=v(n(0)),d=n(15),f=v(d),p=v(n(3)),h=v(n(10)),m=v(n(34));function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(0,h.default)("quill"),y=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=x(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new c.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(c.default.events.EDITOR_CHANGE,function(e){e===c.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(c.default.events.SCROLL_UPDATE,function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;w.call(n,function(){return n.editor.update(null,t,o)},e)});var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach(function(r){n.register(r,e[r],t)})}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=S(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],w.call(this,function(){return r.editor.deleteText(e,t)},n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;return w.call(this,function(){var r=n.getSelection(!0),o=new a.default;if(null==r)return o;if(u.default.query(e,u.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,g({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,g({},e,t))}return n.setSelection(r,c.default.sources.SILENT),o},r)}},{key:"formatLine",value:function(e,t,n,r,i){var a,l=this,c=S(e,t,n,r,i),s=o(c,4);return e=s[0],t=s[1],a=s[2],i=s[3],w.call(this,function(){return l.editor.formatLine(e,t,a)},i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,l=this,c=S(e,t,n,r,i),s=o(c,4);return e=s[0],t=s[1],a=s[2],i=s[3],w.call(this,function(){return l.editor.formatText(e,t,a)},i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=S(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=S(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,function(){return o.editor.insertEmbed(t,n,r)},i,t)}},{key:"insertText",value:function(e,t,n,r,i){var a,l=this,c=S(e,0,n,r,i),s=o(c,4);return e=s[0],a=s[2],i=s[3],w.call(this,function(){return l.editor.insertText(e,t,a)},i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=S(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],w.call(this,function(){return r.editor.removeFormat(e,t)},n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return w.call(this,function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)},n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=S(t,n,r),a=o(i,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new d.Range(t,n),r),r!==c.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return w.call(this,function(){return e=new a.default(e),t.editor.applyDelta(e,n)},n,!0)}}]),e}();function x(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==y.DEFAULTS.theme){if(t.theme=y.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach(function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce(function(e,t){var n=y.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e},{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},y.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach(function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))}),t.modules=Object.keys(t.modules).reduce(function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e},{}),t}function w(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===c.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=C(o,l,t):0!==r&&(o=C(o,n,r,t)),this.setSelection(o,c.default.sources.SILENT)),l.length()>0){var s,u,d=[c.default.events.TEXT_CHANGE,l,i,t];(s=this.emitter).emit.apply(s,[c.default.events.EDITOR_CHANGE].concat(d)),t!==c.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return l}function S(e,t,n,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(a=n,i=o):"string"==typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||c.default.sources.API]}function C(e,t,n,r){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var s=[e.index,e.index+e.length].map(function(e){return t.transformPosition(e,r!==c.default.sources.USER)}),u=o(s,2);i=u[0],l=u[1]}else{var f=[e.index,e.index+e.length].map(function(e){return e<t||e===t&&r===c.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)}),p=o(f,2);i=p[0],l=p[1]}return new d.Range(i,l-i)}y.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},y.events=c.default.events,y.sources=c.default.sources,y.version="1.3.7",y.imports={delta:a.default,parchment:u.default,"core/module":s.default,"core/theme":m.default},t.expandConfig=x,t.overload=S,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);c.allowedChildren=[c,a.default.Embed,i.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default.Text);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var l=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)})})});var c=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",l.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){l.log.apply(l,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach(function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))})}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);c.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},c.sources={API:"api",SILENT:"silent",USER:"user"},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return r.reduce(function(t,n){return t[n]=i.bind(console,n,e),t},{})}i.level=a.level=function(e){o=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var s,u;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(c(e)){if(!c(t))return!1;if(e.length!==t.length)return!1;for(s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}try{var d=o(e),f=o(t)}catch(e){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),s=d.length-1;s>=0;s--)if(d[s]!=f[s])return!1;for(s=d.length-1;s>=0;s--)if(u=d[s],!a(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function l(e){return null==e}function c(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=d(n(2)),l=d(n(0)),c=d(n(4)),s=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(s.default);m.blotName="code",m.tagName="CODE";var v=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce(function(t,n){return t.insert(n).insert("\n",e.formats())},new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(u.default,this.length()-1),a=r(o,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=l.default.query(r,l.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,c=i-a+1,s=this.isolate(a,c),u=s.next;s.format(r,o),u instanceof t&&u.formatAt(0,e-a+n-c,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(u.default,e),i=r(o,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()})}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(c.default);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",t.Code=m,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=g(n(2)),l=g(n(20)),c=g(n(0)),s=g(n(13)),u=g(n(24)),d=n(4),f=g(d),p=g(n(16)),h=g(n(21)),m=g(n(11)),v=g(n(3));function g(e){return e&&e.__esModule?e:{default:e}}var b=/^[ -~]*$/,y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce(function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)},new a.default)}(e)).reduce(function(e,a){var s=a.retain||a.delete||a.insert.length||1,u=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),m=o(h,2),g=m[0],b=m[1],y=(0,v.default)({},(0,d.bubbleFormats)(g));if(g instanceof f.default){var x=g.descendant(c.default.Leaf,b),w=o(x,1)[0];y=(0,v.default)(y,(0,d.bubbleFormats)(w))}u=l.default.attributes.diff(y,u)||{}}else if("object"===r(a.insert)){var S=Object.keys(a.insert)[0];if(null==S)return e;t.scroll.insertAt(e,S,a.insert[S])}i+=s}return Object.keys(u).forEach(function(n){t.scroll.formatAt(e,s,n,u[n])}),e+s},0),e.reduce(function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach(function(t){var i=t.length();if(t instanceof s.default){var l=e-t.offset(n.scroll),c=t.newlineIndex(l+a)-l+1;t.formatAt(l,c,o,r[o])}else t.format(o,r[o]);a-=i})}}),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(o){n.scroll.formatAt(e,t,o,r[o])}),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(e,t){return e.concat(t.delta())},new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach(function(e){var t=o(e,1)[0];t instanceof f.default?n.push(t):t instanceof c.default.Leaf&&r.push(t)}):(n=this.scroll.lines(e,t),r=this.scroll.descendants(c.default.Leaf,e,t));var i=[n,r].map(function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=x((0,d.bubbleFormats)(n),t)}return t});return v.default.apply(v.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter(function(e){return"string"==typeof e.insert}).map(function(e){return e.insert}).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach(function(o){n.scroll.formatAt(e,t.length,o,r[o])}),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),l=i[0],c=i[1],u=0,d=new a.default;null!=l&&(u=l instanceof s.default?l.newlineIndex(c)-c+1:l.length()-c,d=l.delta().slice(c,c+u-1).insert("\n"));var f=this.getContents(e,t+u).diff((new a.default).insert(n).concat(d)),p=(new a.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(b)&&c.default.find(t[0].target)){var o=c.default.find(t[0].target),i=(0,d.bubbleFormats)(o),l=o.offset(this.scroll),s=t[0].oldValue.replace(u.default.CONTENTS,""),f=(new a.default).insert(s),p=(new a.default).insert(o.value());e=(new a.default).retain(l).concat(f.diff(p,n)).reduce(function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)},new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function x(e,t){return Object.keys(t).reduce(function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n},{})}t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),a=s(n(21)),l=s(n(11)),c=s(n(8));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,s(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,c.default.sources.USER),1)}),this.emitter.on(c.default.events.EDITOR_CHANGE,function(e,t){e===c.default.events.TEXT_CHANGE&&t.length()>0&&r.update(c.default.sources.SILENT)}),this.emitter.on(c.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(c.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}})}}),this.emitter.on(c.default.events.SCROLL_OPTIMIZE,function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l)}}),this.update(c.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",function(){e.composing=!0}),this.root.addEventListener("compositionend",function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout(function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,function(){e.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){e.mouseDown=!1,e.update(c.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),a=r(i,2),l=a[0],c=a[1];if(null==l)return null;var s=l.position(c,!0),u=r(s,2);o=u[0],c=u[1];var d=document.createRange();if(t>0){d.setStart(o,c);var f=this.scroll.leaf(e+t),p=r(f,2);if(l=p[0],c=p[1],null==l)return null;var h=l.position(c,!0),m=r(h,2);return o=m[0],c=m[1],d.setEnd(o,c),d.getBoundingClientRect()}var v="left",g=void 0;return o instanceof Text?(c<o.data.length?(d.setStart(o,c),d.setEnd(o,c+1)):(d.setStart(o,c-1),d.setEnd(o,c),v="right"),g=d.getBoundingClientRect()):(g=l.domNode.getBoundingClientRect(),c>0&&(v="right")),{bottom:g.top+g.height,height:g.height,left:g[v],right:g[v],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map(function(e){var n=r(e,2),o=n[0],a=n[1],l=i.default.find(o,!0),c=l.offset(t.scroll);return 0===a?c:l instanceof i.default.Container?c+l.length():c+l.index(o,a)}),a=Math.min(Math.max.apply(Math,u(o)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(u(o)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n}),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach(function(e,n){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),c=r(l,2),s=c[0],u=c[1],d=s.position(u,0!==n),f=r(d,2);a=f[0],u=f[1],o.push(a,u)}),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],l=a;if(t.length>0){var c=this.scroll.line(Math.min(t.index+t.length,o));l=r(c,1)[0]}if(null!=a&&null!=l){var s=e.getBoundingClientRect();n.top<s.top?e.scrollTop-=s.top-n.top:n.bottom>s.bottom&&(e.scrollTop+=n.bottom-s.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,u(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],s=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var u;!this.composing&&null!=s&&s.native.collapsed&&s.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[c.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(u=this.emitter).emit.apply(u,[c.default.events.EDITOR_CHANGE].concat(f)),e!==c.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function m(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default.Embed);l.blotName="break",l.tagName="BR",t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),l=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var n=s(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof l.ParchmentError)return;throw e}})},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,function(e,t,n){e.deleteAt(t,n)})},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=a}),o},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,function(e,t,o){e.formatAt(t,o,n,r)})},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var a=null==n?l.create("text",t):l.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return e instanceof t}))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce(function(e,t){return e+t.length()},0)},t.prototype.moveChildren=function(e,t){this.children.forEach(function(n){e.insertBefore(n,t)})},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],a=[[this,e]];return o instanceof t?a.concat(o.path(i,n)):(null!=o&&a.push([o,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),function(e,r,o){e=e.split(r,t),n.appendChild(e)}),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach(function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))}),o.forEach(function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}}),r.filter(function(e){return e.parentNode==n.domNode}).sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var r=s(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))})},t}(a.default);function s(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch(n){t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(e){t.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),l=n(17),c=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=c.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some(function(e){return e.target===r.domNode&&"attributes"===e.type})&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(l.default);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce(function(e,t){return null!=r[t]&&(e[t]=r[t]),e},{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce(function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce(function(n,r){return void 0===e[r]&&(n[r]=t[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function i(a,c,s,u,d){"object"==typeof c&&(s=c.depth,u=c.prototype,d=c.includeNonEnumerable,c=c.circular);var f=[],p=[],h=void 0!==o;return void 0===c&&(c=!0),void 0===s&&(s=1/0),function a(s,m){if(null===s)return null;if(0===m)return s;var v,g;if("object"!=typeof s)return s;if(e(s,t))v=new t;else if(e(s,n))v=new n;else if(e(s,r))v=new r(function(e,t){s.then(function(t){e(a(t,m-1))},function(e){t(a(e,m-1))})});else if(i.__isArray(s))v=[];else if(i.__isRegExp(s))v=new RegExp(s.source,l(s)),s.lastIndex&&(v.lastIndex=s.lastIndex);else if(i.__isDate(s))v=new Date(s.getTime());else{if(h&&o.isBuffer(s))return v=o.allocUnsafe?o.allocUnsafe(s.length):new o(s.length),s.copy(v),v;e(s,Error)?v=Object.create(s):void 0===u?(g=Object.getPrototypeOf(s),v=Object.create(g)):(v=Object.create(u),g=u)}if(c){var b=f.indexOf(s);if(-1!=b)return p[b];f.push(s),p.push(v)}for(var y in e(s,t)&&s.forEach(function(e,t){var n=a(t,m-1),r=a(e,m-1);v.set(n,r)}),e(s,n)&&s.forEach(function(e){var t=a(e,m-1);v.add(t)}),s){var x;g&&(x=Object.getOwnPropertyDescriptor(g,y)),x&&null==x.set||(v[y]=a(s[y],m-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(s);for(y=0;y<w.length;y++){var S=w[y];(!(O=Object.getOwnPropertyDescriptor(s,S))||O.enumerable||d)&&(v[S]=a(s[S],m-1),O.enumerable||Object.defineProperty(v,S,{enumerable:!1}))}}if(d){var C=Object.getOwnPropertyNames(s);for(y=0;y<C.length;y++){var O,k=C[y];(O=Object.getOwnPropertyDescriptor(s,k))&&O.enumerable||(v[k]=a(s[k],m-1),Object.defineProperty(v,k,{enumerable:!1}))}}return v}(a,s)}function a(e){return Object.prototype.toString.call(e)}function l(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return i.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},i.__objToStr=a,i.__isDate=function(e){return"object"==typeof e&&"[object Date]"===a(e)},i.__isArray=function(e){return"object"==typeof e&&"[object Array]"===a(e)},i.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===a(e)},i.__getRegExpFlags=l,i}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=p(n(0)),l=p(n(8)),c=n(4),s=p(c),u=p(n(16)),d=p(n(13)),f=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof s.default||e instanceof c.BlockEmbed}var m=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(e,t){return e[t]=!0,e},{})),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),a=r(o,2),l=a[0],s=a[1],f=this.line(e+n),p=r(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&s>0){if(l instanceof c.BlockEmbed||p instanceof c.BlockEmbed)return void this.optimize();if(l instanceof d.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var m=p.newlineIndex(0);m>-1&&p.split(m+1)}var v=p.children.head instanceof u.default?null:p.children.head;l.moveChildren(p,v),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var l=a.default.create(n,r);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,function(t,n,r){h(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,n,i))),i-=r}),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[s.default,c.BlockEmbed,f.default],t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=m(n(21)),l=m(n(11)),c=m(n(3)),s=m(n(2)),u=m(n(20)),d=m(n(0)),f=m(n(5)),p=m(n(10)),h=m(n(9));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,p.default)("quill:keyboard"),b=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])}),r.addBinding({key:t.keys.ENTER,shiftKey:null},O),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),r.addBinding({key:t.keys.DELETE},{collapsed:!0},S)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},S)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},C),r.addBinding({key:t.keys.DELETE},{collapsed:!1},C),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=j(t),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!t[n]!==e[n]&&null!==t[n]})&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=j(e);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,c.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter(function(e){return t.match(n,e)});if(0!==a.length){var c=e.quill.getSelection();if(null!=c&&e.quill.hasFocus()){var s=e.quill.getLine(c.index),u=o(s,2),f=u[0],p=u[1],h=e.quill.getLeaf(c.index),m=o(h,2),v=m[0],g=m[1],b=0===c.length?[v,g]:e.quill.getLeaf(c.index+c.length),y=o(b,2),x=y[0],w=y[1],S=v instanceof d.default.Text?v.value().slice(0,g):"",C=x instanceof d.default.Text?x.value().slice(w):"",O={collapsed:0===c.length,empty:0===c.length&&f.length()<=1,format:e.quill.getFormat(c),offset:p,prefix:S,suffix:C};a.some(function(t){if(null!=t.collapsed&&t.collapsed!==O.collapsed)return!1;if(null!=t.empty&&t.empty!==O.empty)return!1;if(null!=t.offset&&t.offset!==O.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(e){return null==O.format[e]}))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every(function(e){return!0===t.format[e]?null!=O.format[e]:!1===t.format[e]?null==O.format[e]:(0,l.default)(t.format[e],O.format[e])}))return!1;return!(null!=t.prefix&&!t.prefix.test(O.prefix)||null!=t.suffix&&!t.suffix.test(O.suffix)||!0===t.handler.call(e,c,O))})&&n.preventDefault()}}}})}}]),t}(h.default);function x(e,t){var n,r=e===y.keys.LEFT?"prefix":"suffix";return v(n={key:e,shiftKey:t,altKey:null},r,/^$/),v(n,"handler",function(n){var r=n.index;e===y.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof d.default.Embed&&(e===y.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))}),n}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=o(a,1)[0];if(null!=l&&l.length()>1){var c=r.formats(),s=this.quill.getFormat(e.index-1,1);i=u.default.attributes.diff(c,s)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function S(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),l=o(a,1)[0];if(t.offset>=l.length()-1){var c=this.quill.getLine(e.index+1),s=o(c,1)[0];if(s){var d=l.formats(),p=this.quill.getFormat(e.index,1);r=u.default.attributes.diff(d,p)||{},i=s.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,f.default.sources.USER)}}function C(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=u.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function O(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce(function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e},{});this.quill.insertText(e.index,"\n",r,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))})}function k(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),l=o(a,2),c=l[0],s=l[1];if(null!=c){var u=this.quill.getIndex(c),p=c.newlineIndex(s,!0)+1,h=c.newlineIndex(u+s+i),m=c.domNode.textContent.slice(p,h).split("\n");s=0,m.forEach(function(t,o){e?(c.insertAt(p+s,n.TAB),s+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(c.deleteAt(p+s,n.TAB.length),s-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),s+=t.length+1}),this.quill.update(f.default.sources.USER),this.quill.setSelection(r,i,f.default.sources.SILENT)}}}}function E(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function j(e){if("string"==typeof e||"number"==typeof e)return j({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:E("bold"),italic:E("italic"),underline:E("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":k(!0),"outdent code-block":k(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new s.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,c.default)({},r.formats(),{list:"checked"}),l=(new s.default).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],l=(new s.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],l=i[1];if(l>n)return!0;var c=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":c="unchecked";break;case"[x]":c="checked";break;case"-":case"*":c="bullet";break;default:c="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var u=(new s.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:c});this.quill.updateContents(u,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new s.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":x(y.keys.LEFT,!1),"embed left shift":x(y.keys.LEFT,!0),"embed right":x(y.keys.RIGHT,!1),"embed right shift":x(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=c(n(0)),l=c(n(7));function c(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,i=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,c=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var s=[e,n.start.offset,n.end.offset];o=s[0],i=s[1],c=s[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(o=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,c].map(function(e){return Math.max(0,Math.min(o.data.length,e-1))}),f=r(d,2);return i=f[0],c=f[1],{startNode:o,startOffset:i,endNode:o,endOffset:c}}}}},{key:"update",value:function(e,t){var n=this;if(e.some(function(e){return"characterData"===e.type&&e.target===n.textNode})){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\ufeff",t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=n(4),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);l.allowedChildren=[i.default,o.BlockEmbed,l],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(e){return("00"+parseInt(e).toString(16)).slice(-2)}).join("")):n}}]),t}(l.default.Attributor.Style),s=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),u=new c("color","color",{scope:l.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=s,t.ColorStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);function c(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=l,t.sanitize=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}var c=0;function s(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.togglePicker()}),this.label.addEventListener("keydown",function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",function(){t.selectItem(n,!0)}),n.addEventListener("keydown",function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}}),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+c,c+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach(function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)}),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(t){e.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout(function(){return e.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(0)),o=g(n(5)),i=n(4),a=g(i),l=g(n(16)),c=g(n(25)),s=g(n(24)),u=g(n(35)),d=g(n(6)),f=g(n(22)),p=g(n(7)),h=g(n(55)),m=g(n(42)),v=g(n(23));function g(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":c.default,"blots/cursor":s.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":v.default}),r.default.register(a.default,l.default,s.default,d.default,f.default,p.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach(function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)})},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach(function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)})},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(t,n){return t[n]=e.attributes[n].value(e.domNode),t},{})},e}();t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(t+"-")})}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach(function(t){e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(t){null==e.modules[t]&&e.addModule(t)})}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var c="\ufeff",s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(e){n.contentNode.appendChild(e)}),n.leftGuard=document.createTextNode(c),n.rightGuard=document.createTextNode(c),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(c).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=c,t}},{key:"update",value:function(e,t){var n=this;e.forEach(function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}})}}]),t}(i.default.Embed);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new i.default.Attributor.Attribute("align","align",a),c=new i.default.Attributor.Class("align","ql-align",a),s=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=l,t.AlignClass=c,t.AlignStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(26),l=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),c=new a.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},l=new i.default.Attributor.Attribute("direction","dir",a),c=new i.default.Attributor.Class("direction","ql-direction",a),s=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=l,t.DirectionClass=c,t.DirectionStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new l.default.Attributor.Class("font","ql-font",c),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(l.default.Attributor.Style),d=new u("font","font-family",c);t.FontStyle=d,t.FontClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=l},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,function(e,t,n,o){e!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(t):r.record(t,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var r=c(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}),this.stack.redo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function c(e){var t=e.reduce(function(e,t){return e+=t.delete||0},0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)}))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=h(n(3)),a=h(n(2)),l=h(n(8)),c=h(n(23)),s=h(n(34)),u=h(n(59)),d=h(n(60)),f=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[!1,"center","right","justify"],y=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],x=[!1,"serif","monospace"],w=["1","2","3",!1],S=["small",!1,"large","huge"],C=function(e){function t(e,n){m(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(e){e.container.contains(n.target)||e.close()})}),r}return g(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach(function(e){(e.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}})})}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map(function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&k(e,b),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&k(e,y,"background"===n?"#ffffff":"#000000"),new u.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?k(e,x):e.classList.contains("ql-header")?k(e,w):e.classList.contains("ql-size")&&k(e,S)),new f.default(e)}),this.quill.on(l.default.events.EDITOR_CHANGE,function(){n.pickers.forEach(function(e){e.update()})})}}]),t}(s.default);C.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),l.default.sources.USER),e.quill.setSelection(r.index+1,l.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}}),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var O=function(e){function t(e,n){m(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(t){c.default.match(t,"enter")?(e.save(),t.preventDefault()):c.default.match(t,"escape")&&(e.cancel(),t.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,l.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",l.default.sources.USER),this.quill.setSelection(i+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)})}t.BaseTooltip=O,t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],a=e-o[1],l=this.iterator(i);(r=l())&&a<e+t;){var c=r.length();e>a?n(r,e-a,Math.min(t,a+c-e)):n(r,0,Math.min(c,e+t-a)),a+=c}},e.prototype.map=function(e){return this.reduce(function(t,n){return t.push(e(n)),t},[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver(function(e){n.update(e)}),n.observer.observe(n.domNode,l),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach(function(e){e.remove()}):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},c=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(c),e.optimize(n))},s=t,u=0;s.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach(function(e){l(e,!1)})})):"attributes"===e.type&&l(t.prev)),l(t))}),this.children.forEach(c),o=(s=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map(function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)}).forEach(function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)}),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach(function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)}),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=a.query(r,a.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=a.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some(function(e){return"characterData"===e.type&&e.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(e,t){var n=-1;function r(e,t,c){if(e==t)return e?[[0,e]]:[];(c<0||e.length<c)&&(c=null);var u=i(e,t),d=e.substring(0,u);u=a(e=e.substring(u),t=t.substring(u));var f=e.substring(e.length-u),p=function(e,t){var l;if(!e)return[[1,t]];if(!t)return[[n,e]];var c=e.length>t.length?e:t,s=e.length>t.length?t:e,u=c.indexOf(s);if(-1!=u)return l=[[1,c.substring(0,u)],[0,s],[1,c.substring(u+s.length)]],e.length>t.length&&(l[0][0]=l[2][0]=n),l;if(1==s.length)return[[n,e],[1,t]];var d=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,l,c,s=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(s,u+1));){var f=i(e.substring(n),t.substring(u)),p=a(e.substring(0,n),t.substring(0,u));d.length<p+f&&(d=t.substring(u-p,u)+t.substring(u,u+f),r=e.substring(0,n-p),o=e.substring(n+f),l=t.substring(0,u-p),c=t.substring(u+f))}return 2*d.length>=e.length?[r,o,l,c,d]:null}var l,c,s,u,d,f=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!f&&!p)return null;l=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(c=l[0],s=l[1],u=l[2],d=l[3]):(u=l[0],d=l[1],c=l[2],s=l[3]);var h=l[4];return[c,s,u,d,h]}(e,t);if(d){var f=d[0],p=d[1],h=d[2],m=d[3],v=d[4],g=r(f,h),b=r(p,m);return g.concat([[0,v]],b)}return function(e,t){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),l=a,c=2*a,s=new Array(c),u=new Array(c),d=0;d<c;d++)s[d]=-1,u[d]=-1;s[l+1]=0,u[l+1]=0;for(var f=r-i,p=f%2!=0,h=0,m=0,v=0,g=0,b=0;b<a;b++){for(var y=-b+h;y<=b-m;y+=2){for(var x=l+y,w=(E=y==-b||y!=b&&s[x-1]<s[x+1]?s[x+1]:s[x-1]+1)-y;E<r&&w<i&&e.charAt(E)==t.charAt(w);)E++,w++;if(s[x]=E,E>r)m+=2;else if(w>i)h+=2;else if(p&&(O=l+f-y)>=0&&O<c&&-1!=u[O]&&E>=(C=r-u[O]))return o(e,t,E,w)}for(var S=-b+v;S<=b-g;S+=2){for(var C,O=l+S,k=(C=S==-b||S!=b&&u[O-1]<u[O+1]?u[O+1]:u[O-1]+1)-S;C<r&&k<i&&e.charAt(r-C-1)==t.charAt(i-k-1);)C++,k++;if(u[O]=C,C>r)g+=2;else if(k>i)v+=2;else if(!p){var E;if((x=l+f-S)>=0&&x<c&&-1!=s[x])if(w=l+(E=s[x])-x,E>=(C=r-C))return o(e,t,E,w)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-u),t=t.substring(0,t.length-u));return d&&p.unshift([0,d]),f&&p.push([0,f]),l(p),null!=c&&(p=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,o=0;o<e.length;o++){var i=e[o];if(i[0]===n||0===i[0]){var a=r+i[1].length;if(t===a)return[o+1,e];if(t<a){e=e.slice();var l=t-r,c=[i[0],i[1].slice(0,l)],s=[i[0],i[1].slice(l)];return e.splice(o,1,c,s),[o+1,e]}r=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=r[1],i=r[0],a=o[i],l=o[i+1];if(null==a)return e;if(0!==a[0])return e;if(null!=l&&a[1]+l[1]===l[1]+a[1])return o.splice(i,2,l,a),s(o,i,2);if(null!=l&&0===l[1].indexOf(a[1])){o.splice(i,2,[l[0],a[1]],[0,a[1]]);var c=l[1].slice(a[1].length);return c.length>0&&o.splice(i+2,0,[l[0],c]),s(o,i,3)}return e}(p,c)),p=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},i=2;i<e.length;i+=1)0===e[i-2][0]&&o(e[i-2][1])&&e[i-1][0]===n&&r(e[i-1][1])&&1===e[i][0]&&r(e[i][1])&&(t=!0,e[i-1][1]=e[i-2][1].slice(-1)+e[i-1][1],e[i][1]=e[i-2][1].slice(-1)+e[i][1],e[i-2][1]=e[i-2][1].slice(0,-1));if(!t)return e;var a=[];for(i=0;i<e.length;i+=1)e[i][1].length>0&&a.push(e[i]);return a}(p)}function o(e,t,n,o){var i=e.substring(0,n),a=t.substring(0,o),l=e.substring(n),c=t.substring(o),s=r(i,a),u=r(l,c);return s.concat(u)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function l(e){e.push([0,""]);for(var t,r=0,o=0,c=0,s="",u="";r<e.length;)switch(e[r][0]){case 1:c++,u+=e[r][1],r++;break;case n:o++,s+=e[r][1],r++;break;case 0:o+c>1?(0!==o&&0!==c&&(0!==(t=i(u,s))&&(r-o-c>0&&0==e[r-o-c-1][0]?e[r-o-c-1][1]+=u.substring(0,t):(e.splice(0,0,[0,u.substring(0,t)]),r++),u=u.substring(t),s=s.substring(t)),0!==(t=a(u,s))&&(e[r][1]=u.substring(u.length-t)+e[r][1],u=u.substring(0,u.length-t),s=s.substring(0,s.length-t))),0===o?e.splice(r-c,o+c,[1,u]):0===c?e.splice(r-o,o+c,[n,s]):e.splice(r-o-c,o+c,[n,s],[1,u]),r=r-o-c+(o?1:0)+(c?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,c=0,o=0,s="",u=""}""===e[e.length-1][1]&&e.pop();var d=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),d=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),d=!0)),r++;d&&l(e)}var c=r;function s(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}c.INSERT=1,c.DELETE=n,c.EQUAL=0,e.exports=c},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,l=new Array(a);i<a;i++)l[i]=o[i].fn;return l},a.prototype.emit=function(e,t,n,o,i,a){var l=r?r+e:e;if(!this._events[l])return!1;var c,s,u=this._events[l],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,i),!0;case 6:return u.fn.call(u.context,t,n,o,i,a),!0}for(s=1,c=new Array(d-1);s<d;s++)c[s-1]=arguments[s];u.fn.apply(u.context,c)}else{var f,p=u.length;for(s=0;s<p;s++)switch(u[s].once&&this.removeListener(e,u[s].fn,void 0,!0),d){case 1:u[s].fn.call(u[s].context);break;case 2:u[s].fn.call(u[s].context,t);break;case 3:u[s].fn.call(u[s].context,t,n);break;case 4:u[s].fn.call(u[s].context,t,n,o);break;default:if(!c)for(f=1,c=new Array(d-1);f<d;f++)c[f-1]=arguments[f];u[s].fn.apply(u[s].context,c)}}return!0},a.prototype.on=function(e,t,n){var o=new i(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0===--this._eventsCount?this._events=new o:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||(0===--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var c=0,s=[],u=l.length;c<u;c++)(l[c].fn!==t||i&&!l[c].once||n&&l[c].context!==n)&&s.push(l[c]);s.length?this._events[a]=1===s.length?s[0]:s:0===--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=y(n(3)),l=y(n(2)),c=y(n(0)),s=y(n(5)),u=y(n(10)),d=y(n(9)),f=n(36),p=n(37),h=y(n(13)),m=n(26),v=n(38),g=n(39),b=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,u.default)("quill:clipboard"),S="__ql-matcher",C=[[Node.TEXT_NODE,D],[Node.TEXT_NODE,A],["br",function(e,t){return P(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,T],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===$(e).fontStyle&&(n.italic=!0),r.fontWeight&&($(e).fontWeight.startsWith("bold")||parseInt($(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=j(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=c.default.query(e);if(null==n||"list-item"!==n.blotName||!P(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(c.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",I.bind(I,"bold")],["i",I.bind(I,"italic")],["style",function(){return new l.default}]],O=[f.AlignAttribute,v.DirectionAttribute].reduce(function(e,t){return e[t.keyName]=t,e},{}),k=[f.AlignStyle,p.BackgroundStyle,m.ColorStyle,v.DirectionStyle,g.FontStyle,b.SizeStyle].reduce(function(e,t){return e[t.keyName]=t,e},{}),E=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],C.concat(r.options.matchers).forEach(function(e){var t=o(e,2),i=t[0],a=t[1];(n.matchVisual||a!==R)&&r.addMatcher(i,a)}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,x({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],c=i[1],s=_(this.container,a,c);return P(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new l.default).retain(s.length()-1).delete(1))),w.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,s.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),s.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(s.default.sources.SILENT),setTimeout(function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,s.default.sources.USER),t.quill.setSelection(r.length()-n.length,s.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach(function(r){var i=o(r,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),function(e){e[S]=e[S]||[],e[S].push(l)})}}),[t,n]}}]),t}(d.default);function j(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce(function(e,n){return j(e,n,t[n])},e):e.reduce(function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},x({},t,n),r.attributes))},new l.default)}function $(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function P(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function N(e){if(0===e.childNodes.length)return!1;var t=$(e);return["block","list-item"].indexOf(t.display)>-1}function _(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce(function(t,n){return n(e,t)},new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],function(r,o){var i=_(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce(function(e,t){return t(o,e)},i),i=(o[S]||[]).reduce(function(e,t){return t(o,e)},i)),r.concat(i)},new l.default):new l.default}function I(e,t,n){return j(n,e,!0)}function M(e,t){var n=c.default.Attributor.Attribute.keys(e),r=c.default.Attributor.Class.keys(e),o=c.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach(function(t){var n=c.default.query(t,c.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=O[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=k[t])||n.attrName!==t&&n.keyName!==t||(n=k[t],i[n.attrName]=n.value(e)||void 0))}),Object.keys(i).length>0&&(t=j(t,i)),t}function T(e,t){var n=c.default.query(e);if(null==n)return t;if(n.prototype instanceof c.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new l.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=j(t,n.blotName,n.formats(e)));return t}function A(e,t){return P(t,"\n")||(N(e)||t.length()>0&&e.nextSibling&&N(e.nextSibling))&&t.insert("\n"),t}function R(e,t){if(N(e)&&null!=e.nextElementSibling&&!P(t,"\n\n")){var n=e.offsetHeight+parseFloat($(e).marginTop)+parseFloat($(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function D(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!$(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&N(e.parentNode)||null!=e.previousSibling&&N(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&N(e.parentNode)||null!=e.nextSibling&&N(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}E.DEFAULTS={matchers:[],matchVisual:!0},t.default=E,t.matchAttributor=M,t.matchBlot=T,t.matchNewline=A,t.matchSpacing=R,t.matchText=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="bold",l.tagName=["STRONG","B"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(2)),a=u(n(0)),l=u(n(5)),c=u(n(10)),s=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=(0,c.default)("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");m(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach(function(e){i.addHandler(e,i.options.handlers[e])}),[].forEach.call(i.container.querySelectorAll("button, select"),function(e){i.attach(e)}),i.quill.on(l.default.events.EDITOR_CHANGE,function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)}),i.quill.on(l.default.events.SCROLL_OPTIMIZE,function(){var e=i.quill.selection.getRange(),t=r(e,1)[0];i.update(t)}),i):(o=f.error("Container required for toolbar",i.options),d(i,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,function(e){return 0===e.indexOf("ql-")});if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void f.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void f.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,function(o){var c=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var s=e.options[e.selectedIndex];c=!s.hasAttribute("selected")&&(s.value||!1)}else c=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=r(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,c);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(c=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(d.index).delete(d.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,c)),l.default.sources.USER)}else t.quill.format(n,c,l.default.sources.USER);t.update(d)}),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(function(n){var o=r(n,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var c=t[i];"string"==typeof c&&(c=c.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+c+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var s=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",s)}else a.classList.toggle("ql-active",null!=t[i])})}}]),t}(s.default);function h(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(function(e){if("string"==typeof e)h(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach(function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)}),e.appendChild(r)}(n,t,r):h(n,t,r)}}),e.appendChild(n)})}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)})}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=p,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(e){e.classList.add("ql-primary")}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=n[e.getAttribute("data-value")||""]}),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"}),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=p(n(3)),l=p(n(8)),c=n(43),s=p(c),u=p(n(27)),d=n(15),f=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return v(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(t,n){e.handlers.link.call(e,!n.format.link)})}}]),t}(s.default);b.DEFAULTS=(0,a.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){h(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return v(t,e),i(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(t,n,o){if(null!=t){if(0===t.length&&o===l.default.sources.USER){var i=e.quill.scroll.descendant(u.default,t.index),a=r(i,2),c=a[0],s=a[1];if(null!=c){e.linkRange=new d.Range(t.index-s,c.length());var f=u.default.formats(c.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}})}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(c.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=A(n(29)),o=n(36),i=n(38),a=n(64),l=A(n(65)),c=A(n(66)),s=n(67),u=A(s),d=n(37),f=n(26),p=n(39),h=n(40),m=A(n(56)),v=A(n(68)),g=A(n(27)),b=A(n(69)),y=A(n(70)),x=A(n(71)),w=A(n(72)),S=A(n(73)),C=n(13),O=A(C),k=A(n(74)),E=A(n(75)),j=A(n(57)),$=A(n(41)),P=A(n(28)),N=A(n(59)),_=A(n(60)),I=A(n(61)),M=A(n(108)),T=A(n(62));function A(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":O.default,"formats/header":c.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":C.Code,"formats/italic":v.default,"formats/link":g.default,"formats/script":b.default,"formats/strike":y.default,"formats/underline":x.default,"formats/image":w.default,"formats/video":S.default,"formats/list/item":s.ListItem,"modules/formula":k.default,"modules/syntax":E.default,"modules/toolbar":j.default,"themes/bubble":M.default,"themes/snow":T.default,"ui/icons":$.default,"ui/picker":P.default,"ui/icon-picker":_.default,"ui/color-picker":N.default,"ui/tooltip":I.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(l.default.Attributor.Class),s=new c("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="blockquote",i.tagName="blockquote",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(0)),a=c(n(4)),l=c(n(25));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"format",value:function(e,n){e!==p.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);f.blotName="list-item",f.tagName="LI";var p=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=i.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return d(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof f)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[f],t.ListItem=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="script",l.tagName=["SUB","SUP"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="strike",i.tagName="S",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="underline",i.tagName="U",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=n(27),s=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){s.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return s.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,c.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(4),l=n(27),c=(r=l)&&r.__esModule?r:{default:r},s=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){s.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return s.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:"sanitize",value:function(e){return c.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(35)),a=c(n(5)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){s(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),r(t,null,[{key:"register",value:function(){a.default.register(f,!0)}}]),t}(l.default);t.FormulaBlot=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(0)),a=c(n(5)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(c(n(13)).default);f.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){s(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(o),o=setTimeout(function(){r.highlight(),o=null},r.options.interval)}),r.highlight(),r}return d(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(f,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=d(n(3)),a=d(n(8)),l=n(43),c=d(l),s=n(15),u=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return h(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(c.default);v.DEFAULTS=(0,i.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(e){function t(e,n){f(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(a.default.events.EDITOR_CHANGE,function(e,t,n,o){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var l=i[i.length-1],c=r.quill.getIndex(l),u=Math.min(l.length()-1,t.index+t.length-c),d=r.quill.getBounds(new s.Range(c,u));r.position(d)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")}),this.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=g,t.default=v},function(e,t,n){e.exports=n(63)}]).default},e.exports=r()},1840:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),c=o(a[n]),s=l||c.map(function(e){return e.slice(0,r)});if(!i)return s;var u=a.weekStart;return s.map(function(e,t){return s[(t+(u||0))%7]})},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},1846:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},1882:(e,t,n)=>{var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1986:(e,t,n)=>{var r=n(1873),o=n(7828),i=n(5288),a=n(5911),l=n(317),c=n(4247),s=r?r.prototype:void 0,u=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=l;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var v=a(p(e),p(t),r,s,d,f);return f.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2049:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}},2162:(e,t,n)=>{"use strict"; | |
| 32 | 19 | /** |
| 33 | 20 | * @license React |
| 34 | - * react-is.production.min.js | |
| 21 | + * use-sync-external-store-shim/with-selector.production.js | |
| 35 | 22 | * |
| 36 | - * Copyright (c) Facebook, Inc. and its affiliates. | |
| 23 | + * Copyright (c) Meta Platforms, Inc. and affiliates. | |
| 37 | 24 | * |
| 38 | 25 | * This source code is licensed under the MIT license found in the |
| 39 | 26 | * LICENSE file in the root directory of this source tree. |
| 40 | - */function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case d:case v:case h:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isFragment=function(e){return g(e)===i},t.isMemo=function(e){return g(e)===h}},6351:function(e,t,n){"use strict";e.exports=n(7787)},2551:function(e,t,n){"use strict"; | |
| 27 | + */var r=n(6540),o=n(9888);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=r.useRef,c=r.useEffect,s=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!c){if(c=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(a=e,t):(a=e,l=n)}var a,l,c=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,n,r,o]);var p=a(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},2199:(e,t,n)=>{var r=n(4528),o=n(6449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},2404:(e,t,n)=>{var r=n(270);e.exports=function(e,t){return r(e,t)}},2428:(e,t,n)=>{var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=c},2520:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPrimitive=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}},2551:(e,t,n)=>{"use strict"; | |
| 41 | 28 | /** |
| 42 | 29 | * @license React |
| 43 | 30 | * react-dom.production.min.js |
| 44 | 31 | * |
| @@ -45,18 +32,26 @@ | ||
| 45 | 32 | * Copyright (c) Facebook, Inc. and its affiliates. |
| 46 | 33 | * |
| 47 | 34 | * This source code is licensed under the MIT license found in the |
| 48 | 35 | * LICENSE file in the root directory of this source tree. |
| 49 | - */var r=n(6540),o=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function c(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),_=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var T,q=Object.assign;function L(e){if(void 0===T)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);T=t&&t[1]||""}return"\n"+T+e}var D=!1;function z(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var c="\n"+o[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=a&&0<=l);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function B(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case E:return"Profiler";case k:return"StrictMode";case j:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case $:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,ke=null;function Ee(e){if(e=wo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Oe(e){Ce?ke?ke.push(e):ke=[e]:Ce=e}function _e(){if(Ce){var e=Ce,t=ke;if(ke=Ce=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function $e(e,t){return e(t)}function je(){}var Ne=!1;function Ie(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return $e(e,t,n)}finally{Ne=!1,(null!==Ce||null!==ke)&&(je(),_e())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Me=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){Me=!1}function Ae(e,t,n,r,o,i,a,l,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Te=!1,qe=null,Le=!1,De=null,ze={onError:function(e){Te=!0,qe=e}};function Be(e,t,n,r,o,i,a,l,c){Te=!1,qe=null,Ae.apply(ze,arguments)}function Fe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Fe(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Fe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return We(o),e;if(a===r)return We(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,c=o.child;c;){if(c===n){l=!0,n=o,r=a;break}if(c===r){l=!0,r=o,n=a;break}c=c.sibling}if(!l){for(c=a.child;c;){if(c===n){l=!0,n=a,r=o;break}if(c===r){l=!0,r=a,n=o;break}c=c.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Ye=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Qe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ct|0)|0},lt=Math.log,ct=Math.LN2;var st=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=st;return!(4194240&(st<<=1))&&(st=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var xt,St,Ct,kt,Et,Ot=!1,_t=[],$t=null,jt=null,Nt=null,It=new Map,Pt=new Map,Mt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function At(e,t){switch(e){case"focusin":case"focusout":$t=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Tt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function qt(e){var t=yo(e.target);if(null!==t){var n=Fe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Et(e.priority,(function(){Ct(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Dt(e,t,n){Lt(e)&&n.delete(t)}function zt(){Ot=!1,null!==$t&&Lt($t)&&($t=null),null!==jt&&Lt(jt)&&(jt=null),null!==Nt&&Lt(Nt)&&(Nt=null),It.forEach(Dt),Pt.forEach(Dt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Ft(e){function t(t){return Bt(t,e)}if(0<_t.length){Bt(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==$t&&Bt($t,e),null!==jt&&Bt(jt,e),null!==Nt&&Bt(Nt,e),It.forEach(t),Pt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)qt(n),null===n.blockedOn&&Mt.shift()}var Ht=w.ReactCurrentBatchConfig,Wt=!0;function Vt(e,t,n,r){var o=yt,i=Ht.transition;Ht.transition=null;try{yt=1,Gt(e,t,n,r)}finally{yt=o,Ht.transition=i}}function Ut(e,t,n,r){var o=yt,i=Ht.transition;Ht.transition=null;try{yt=4,Gt(e,t,n,r)}finally{yt=o,Ht.transition=i}}function Gt(e,t,n,r){if(Wt){var o=Kt(e,t,n,r);if(null===o)Wr(e,t,r,Yt,n),At(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return $t=Tt($t,e,t,n,r,o),!0;case"dragenter":return jt=Tt(jt,e,t,n,r,o),!0;case"mouseover":return Nt=Tt(Nt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Tt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,Tt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(At(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Kt(e,t,n,r))&&Wr(e,t,r,Yt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Yt=null;function Kt(e,t,n,r){if(Yt=null,null!==(e=yo(e=xe(r))))if(null===(t=Fe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,cn,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(sn),dn=q({},sn,{view:0,detail:0}),fn=on(dn),pn=q({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(an=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=an=0,cn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),vn=on(q({},pn,{dataTransfer:0})),mn=on(q({},dn,{relatedTarget:0})),gn=on(q({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=q({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),wn=on(q({},sn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function En(){return kn}var On=q({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=on(On),$n=on(q({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=on(q({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Nn=on(q({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=q({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(In),Mn=[9,13,27,32],Rn=u&&"CompositionEvent"in window,An=null;u&&"documentMode"in document&&(An=document.documentMode);var Tn=u&&"TextEvent"in window&&!An,qn=u&&(!Rn||An&&8<An&&11>=An),Ln=String.fromCharCode(32),Dn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Vn(e,t,n,r){Oe(r),0<(t=Ur(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Gn=null;function Yn(e){Lr(e,0)}function Kn(e){if(G(xo(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Zn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Un&&(Un.detachEvent("onpropertychange",nr),Gn=Un=null)}function nr(e){if("value"===e.propertyName&&Kn(Gn)){var t=[];Vn(t,Gn,e,xe(e)),Ie(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Un=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Gn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,gr=null,br=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==Y(r)||("selectionStart"in(r=mr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=Ur(gr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Cr={},kr={};function Er(e){if(Cr[e])return Cr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Cr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Or=Er("animationend"),_r=Er("animationiteration"),$r=Er("animationstart"),jr=Er("transitionend"),Nr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Nr.set(e,t),c(t,[e])}for(var Mr=0;Mr<Ir.length;Mr++){var Rr=Ir[Mr];Pr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Pr(Or,"onAnimationEnd"),Pr(_r,"onAnimationIteration"),Pr($r,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(jr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ar));function qr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,c,s){if(Be.apply(this,arguments),Te){if(!Te)throw Error(i(198));var u=qe;Te=!1,qe=null,Le||(Le=!0,De=u)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,s=l.currentTarget;if(l=l.listener,c!==i&&o.isPropagationStopped())break e;qr(o,l,s),i=c}else for(a=0;a<r.length;a++){if(c=(l=r[a]).instance,s=l.currentTarget,l=l.listener,c!==i&&o.isPropagationStopped())break e;qr(o,l,s),i=c}}}if(Le)throw e=De,Le=!1,De=null,e}function Dr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Tr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Xt(t)){case 1:var o=Vt;break;case 4:o=Ut;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===o||8===c.nodeType&&c.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=yo(l)))return;if(5===(c=a.tag)||6===c){r=i=a;continue e}l=l.parentNode}}r=r.return}Ie((function(){var r=i,o=xe(n),a=[];e:{var l=Nr.get(e);if(void 0!==l){var c=un,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":c=_n;break;case"focusin":s="focus",c=mn;break;case"focusout":s="blur",c=mn;break;case"beforeblur":case"afterblur":c=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=jn;break;case Or:case _r:case $r:c=gn;break;case jr:c=Nn;break;case"scroll":c=fn;break;case"wheel":c=Pn;break;case"copy":case"cut":case"paste":c=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=$n}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==f&&(null!=(v=Pe(h,f))&&u.push(Vr(h,v,p)))),d)break;h=h.return}0<u.length&&(l=new c(l,s,null,n,o),a.push({event:l,listeners:u}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!yo(s)&&!s[vo])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(s=(s=n.relatedTarget||n.toElement)?yo(s):null)&&(s!==(d=Fe(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(c=null,s=r),c!==s)){if(u=hn,v="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=$n,v="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==c?l:xo(c),p=null==s?l:xo(s),(l=new u(v,h+"leave",c,n,o)).target=d,l.relatedTarget=p,v=null,yo(o)===r&&((u=new u(f,h+"enter",s,n,o)).target=p,u.relatedTarget=d,v=u),d=v,c&&s)e:{for(f=s,h=0,p=u=c;p;p=Gr(p))h++;for(p=0,v=f;v;v=Gr(v))p++;for(;0<h-p;)u=Gr(u),h--;for(;0<p-h;)f=Gr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Gr(u),f=Gr(f)}u=null}else u=null;null!==c&&Yr(a,l,c,u,!1),null!==s&&null!==d&&Yr(a,d,s,u,!0)}if("select"===(c=(l=r?xo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var m=Xn;else if(Wn(l))if(Qn)m=ar;else{m=or;var g=rr}else(c=l.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=ir);switch(m&&(m=m(e,r))?Vn(a,m,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.value)),g=r?xo(r):window,e){case"focusin":(Wn(g)||"true"===g.contentEditable)&&(mr=g,gr=r,br=null);break;case"focusout":br=gr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(a,n,o);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(a,n,o)}var b;if(Rn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Fn?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(qn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Fn&&(b=en()):(Zt="value"in(Qt=o)?Qt.value:Qt.textContent,Fn=!0)),0<(g=Ur(r,y)).length&&(y=new wn(y,e,null,n,o),a.push({event:y,listeners:g}),b?y.data=b:null!==(b=Bn(n))&&(y.data=b))),(b=Tn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Dn=!0,Ln);case"textInput":return(e=t.data)===Ln&&Dn?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!Rn&&zn(e,t)?(e=en(),Jt=Zt=Qt=null,Fn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Lr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Pe(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Pe(e,t))&&r.push(Vr(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,c=l.alternate,s=l.stateNode;if(null!==c&&c===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(c=Pe(n,i))&&a.unshift(Vr(n,c,l)):o||null!=(c=Pe(n,i))&&a.push(Vr(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function co(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ft(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ft(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,vo="__reactContainer$"+fo,mo="__reactEvents$"+fo,go="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[vo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[ho]||null}var Co=[],ko=-1;function Eo(e){return{current:e}}function Oo(e){0>ko||(e.current=Co[ko],Co[ko]=null,ko--)}function _o(e,t){ko++,Co[ko]=e.current,e.current=t}var $o={},jo=Eo($o),No=Eo(!1),Io=$o;function Po(e,t){var n=e.type.contextTypes;if(!n)return $o;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!=(e=e.childContextTypes)}function Ro(){Oo(No),Oo(jo)}function Ao(e,t,n){if(jo.current!==$o)throw Error(i(168));_o(jo,t),_o(No,n)}function To(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return q({},n,r)}function qo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$o,Io=jo.current,_o(jo,e),_o(No,No.current),!0}function Lo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=To(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Oo(No),Oo(jo),_o(jo,e)):Oo(No),_o(No,n)}var Do=null,zo=!1,Bo=!1;function Fo(e){null===Do?Do=[e]:Do.push(e)}function Ho(){if(!Bo&&null!==Do){Bo=!0;var e=0,t=yt;try{var n=Do;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Do=null,zo=!1}catch(t){throw null!==Do&&(Do=Do.slice(e+1)),Ge(Je,Ho),t}finally{yt=t,Bo=!1}}return null}var Wo=[],Vo=0,Uo=null,Go=0,Yo=[],Ko=0,Xo=null,Qo=1,Zo="";function Jo(e,t){Wo[Vo++]=Go,Wo[Vo++]=Uo,Uo=e,Go=t}function ei(e,t,n){Yo[Ko++]=Qo,Yo[Ko++]=Zo,Yo[Ko++]=Xo,Xo=e;var r=Qo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Qo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Uo;)Uo=Wo[--Vo],Wo[Vo]=null,Go=Wo[--Vo],Wo[Vo]=null;for(;e===Xo;)Xo=Yo[--Ko],Yo[Ko]=null,Zo=Yo[--Ko],Yo[Ko]=null,Qo=Yo[--Ko],Yo[Ko]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Is(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Qo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Is(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return!(!(1&e.mode)||128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!ci(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&ci(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function vi(e){null===ai?ai=[e]:ai.push(e)}var mi=w.ReactCurrentBatchConfig;function gi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ms(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=qs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===P&&yi(i)===t.type)?((r=o(t,n.props)).ref=gi(e,t,n),r.return=e,r):((r=Rs(n.type,n.key,n.props,null,e.mode,r)).ref=gi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ls(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=As(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=qs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Rs(t.type,t.key,t.props,null,e.mode,n)).ref=gi(e,null,t),n.return=e,n;case S:return(t=Ls(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(te(t)||A(t))return(t=As(t,e.mode,n,null)).return=e,t;bi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?s(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null;case P:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||A(n))return null!==o?null:d(e,t,n,r,null);bi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||A(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function v(o,i,l,c){for(var s=null,u=null,d=i,v=i=0,m=null;null!==d&&v<l.length;v++){d.index>v?(m=d,d=null):m=d.sibling;var g=p(o,d,l[v],c);if(null===g){null===d&&(d=m);break}e&&d&&null===g.alternate&&t(o,d),i=a(g,i,v),null===u?s=g:u.sibling=g,u=g,d=m}if(v===l.length)return n(o,d),ii&&Jo(o,v),s;if(null===d){for(;v<l.length;v++)null!==(d=f(o,l[v],c))&&(i=a(d,i,v),null===u?s=d:u.sibling=d,u=d);return ii&&Jo(o,v),s}for(d=r(o,d);v<l.length;v++)null!==(m=h(d,o,v,l[v],c))&&(e&&null!==m.alternate&&d.delete(null===m.key?v:m.key),i=a(m,i,v),null===u?s=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,v),s}function m(o,l,c,s){var u=A(c);if("function"!=typeof u)throw Error(i(150));if(null==(c=u.call(c)))throw Error(i(151));for(var d=u=null,v=l,m=l=0,g=null,b=c.next();null!==v&&!b.done;m++,b=c.next()){v.index>m?(g=v,v=null):g=v.sibling;var y=p(o,v,b.value,s);if(null===y){null===v&&(v=g);break}e&&v&&null===y.alternate&&t(o,v),l=a(y,l,m),null===d?u=y:d.sibling=y,d=y,v=g}if(b.done)return n(o,v),ii&&Jo(o,m),u;if(null===v){for(;!b.done;m++,b=c.next())null!==(b=f(o,b.value,s))&&(l=a(b,l,m),null===d?u=b:d.sibling=b,d=b);return ii&&Jo(o,m),u}for(v=r(o,v);!b.done;m++,b=c.next())null!==(b=h(v,o,m,b.value,s))&&(e&&null!==b.alternate&&v.delete(null===b.key?m:b.key),l=a(b,l,m),null===d?u=b:d.sibling=b,d=b);return e&&v.forEach((function(e){return t(o,e)})),ii&&Jo(o,m),u}return function e(r,i,a,c){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var s=a.key,u=i;null!==u;){if(u.key===s){if((s=a.type)===C){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===P&&yi(s)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=gi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===C?((i=As(a.props.children,r.mode,c,a.key)).return=r,r=i):((c=Rs(a.type,a.key,a.props,null,r.mode,c)).ref=gi(r,i,a),c.return=r,r=c)}return l(r);case S:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ls(a,r.mode,c)).return=r,r=i}return l(r);case P:return e(r,i,(u=a._init)(a._payload),c)}if(te(a))return v(r,i,a,c);if(A(a))return m(r,i,a,c);bi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=qs(a,r.mode,c)).return=r,r=i),l(r)):n(r,i)}}var xi=wi(!0),Si=wi(!1),Ci=Eo(null),ki=null,Ei=null,Oi=null;function _i(){Oi=Ei=ki=null}function $i(e){var t=Ci.current;Oo(Ci),e._currentValue=t}function ji(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ni(e,t){ki=e,Oi=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===ki)throw Error(i(308));Ei=e,ki.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Pi=null;function Mi(e){null===Pi?Pi=[e]:Pi.push(e)}function Ri(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ai(e,r)}function Ai(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ti=!1;function qi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&$c){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ai(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ai(e,n)}function Bi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Fi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hi(e,t,n,r){var o=e.updateQueue;Ti=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,s=c.next;c.next=null,null===a?i=s:a.next=s,a=c;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=s:l.next=s,u.lastBaseUpdate=c))}if(null!==i){var d=o.baseState;for(a=0,u=s=c=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,v=l;switch(f=t,p=n,v.tag){case 1:if("function"==typeof(h=v.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=v.payload)?h.call(p,d,f):h))break e;d=q({},d,f);break e;case 2:Ti=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(s=u=p,c=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(c=d),o.baseState=c,o.firstBaseUpdate=s,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Tc|=a,e.lanes=a,e.memoizedState=d}}function Wi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Vi={},Ui=Eo(Vi),Gi=Eo(Vi),Yi=Eo(Vi);function Ki(e){if(e===Vi)throw Error(i(174));return e}function Xi(e,t){switch(_o(Yi,t),_o(Gi,e),_o(Ui,Vi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(Ui),_o(Ui,t)}function Qi(){Oo(Ui),Oo(Gi),Oo(Yi)}function Zi(e){Ki(Yi.current);var t=Ki(Ui.current),n=ce(t,e.type);t!==n&&(_o(Gi,e),_o(Ui,n))}function Ji(e){Gi.current===e&&(Oo(Ui),Oo(Gi))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,la=null,ca=null,sa=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function va(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:el,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,sa=ca=null,t.updateQueue=null,oa.current=tl,e=n(r,o)}while(da)}if(oa.current=Za,t=null!==ca&&null!==ca.next,aa=0,sa=ca=la=null,ua=!1,t)throw Error(i(300));return e}function ga(){var e=0!==fa;return fa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sa?la.memoizedState=sa=e:sa=sa.next=e,sa}function ya(){if(null===ca){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ca.next;var t=null===sa?la.memoizedState:sa.next;if(null!==t)sa=t,ca=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ca=e).memoizedState,baseState:ca.baseState,baseQueue:ca.baseQueue,queue:ca.queue,next:null},null===sa?la.memoizedState=sa=e:sa=sa.next=e}return sa}function wa(e,t){return"function"==typeof t?t(e):t}function xa(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ca,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var c=l=null,s=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(c=s=f,l=r):s=s.next=f,la.lanes|=d,Tc|=d}u=u.next}while(null!==u&&u!==a);null===s?l=r:s.next=c,lr(r,t.memoizedState)||(yl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Tc|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(yl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ca(){}function ka(e,t){var n=la,r=ya(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,yl=!0),r=r.queue,Ta(_a.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==sa&&1&sa.memoizedState.tag){if(n.flags|=2048,Ia(9,Oa.bind(null,n,r,o,t),void 0,null),null===jc)throw Error(i(349));30&aa||Ea(n,t,o)}return o}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oa(e,t,n,r){t.value=n,t.getSnapshot=r,$a(t)&&ja(e)}function _a(e,t,n){return n((function(){$a(t)&&ja(e)}))}function $a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function ja(e){var t=Ai(e,1);null!==t&&ns(t,e,1,-1)}function Na(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,la,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return ya().memoizedState}function Ma(e,t,n,r){var o=ba();la.flags|=e,o.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Ra(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==ca){var a=ca.memoizedState;if(i=a.destroy,null!==r&&va(r,a.deps))return void(o.memoizedState=Ia(t,n,i,r))}la.flags|=e,o.memoizedState=Ia(1|t,n,i,r)}function Aa(e,t){return Ma(8390656,8,e,t)}function Ta(e,t){return Ra(2048,8,e,t)}function qa(e,t){return Ra(4,2,e,t)}function La(e,t){return Ra(4,4,e,t)}function Da(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!=n?n.concat([e]):null,Ra(4,4,Da.bind(null,t,e),n)}function Ba(){}function Fa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ha(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&aa?(lr(n,t)||(n=vt(),la.lanes|=n,Tc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n)}function Va(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function Ua(){return ya().memoizedState}function Ga(e,t,n){var r=ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e))Xa(t,n);else if(null!==(n=Ri(e,t,n,r))){ns(n,e,r,es()),Qa(n,t,r)}}function Ya(e,t,n){var r=ts(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Xa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var c=t.interleaved;return null===c?(o.next=o,Mi(t)):(o.next=c.next,c.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ri(e,t,o,r))&&(ns(n,e,r,o=es()),Qa(n,t,r))}}function Ka(e){var t=e.alternate;return e===la||null!==t&&t===la}function Xa(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Za={readContext:Ii,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ja={readContext:Ii,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:Aa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,Da.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ga.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Na,useDebugValue:Ba,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Na(!1),t=e[0];return e=Va.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,o=ba();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===jc)throw Error(i(349));30&aa||Ea(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Aa(_a.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,Oa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=jc.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ii,useCallback:Fa,useContext:Ii,useEffect:Ta,useImperativeHandle:za,useInsertionEffect:qa,useLayoutEffect:La,useMemo:Ha,useReducer:xa,useRef:Pa,useState:function(){return xa(wa)},useDebugValue:Ba,useDeferredValue:function(e){return Wa(ya(),ca.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:ka,useId:Ua,unstable_isNewReconciler:!1},tl={readContext:Ii,useCallback:Fa,useContext:Ii,useEffect:Ta,useImperativeHandle:za,useInsertionEffect:qa,useLayoutEffect:La,useMemo:Ha,useReducer:Sa,useRef:Pa,useState:function(){return Sa(wa)},useDebugValue:Ba,useDeferredValue:function(e){var t=ya();return null===ca?t.memoizedState=e:Wa(t,ca.memoizedState,e)},useTransition:function(){return[Sa(wa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:ka,useId:Ua,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=q({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:q({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&Fe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Di(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(ns(t,e,o,r),Bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Di(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(ns(t,e,o,r),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),o=Di(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=zi(e,o,r))&&(ns(t,e,r,n),Bi(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(o,i))}function al(e,t,n){var r=!1,o=$o,i=t.contextType;return"object"==typeof i&&null!==i?i=Ii(i):(o=Mo(t)?Io:jo.current,i=(r=null!=(r=t.contextTypes))?Po(e,o):$o),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function cl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},qi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ii(i):(i=Mo(t)?Io:jo.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rl(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Hi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function sl(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Di(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wc||(Wc=!0,Vc=r),dl(0,t)},n}function hl(e,t,n){(n=Di(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Uc?Uc=new Set([this]):Uc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Es.bind(null,e,t,n),t.then(e,e))}function ml(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Di(-1,1)).tag=2,zi(n,t,1))),n.lanes|=1),e)}var bl=w.ReactCurrentOwner,yl=!1;function wl(e,t,n,r){t.child=null===e?Si(t,null,n,r):xi(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var i=t.ref;return Ni(t,o),r=ma(e,t,n,r,i,o),n=ga(),null===e||yl?(ii&&n&&ti(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ps(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rs(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cl(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(a,r)&&e.ref===t.ref)return Wl(e,t,o)}return t.flags|=1,(e=Ms(i,r)).ref=t.ref,e.return=t,t.child=e}function Cl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Wl(e,t,o);131072&e.flags&&(yl=!0)}}return Ol(e,t,n,r,o)}function kl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_o(Mc,Pc),Pc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,_o(Mc,Pc),Pc|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_o(Mc,Pc),Pc|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_o(Mc,Pc),Pc|=r;return wl(e,t,o,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ol(e,t,n,r,o){var i=Mo(n)?Io:jo.current;return i=Po(t,i),Ni(t,o),n=ma(e,t,n,r,i,o),r=ga(),null===e||yl?(ii&&r&&ti(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function _l(e,t,n,r,o){if(Mo(n)){var i=!0;qo(t)}else i=!1;if(Ni(t,o),null===t.stateNode)Hl(e,t),al(t,n,r),cl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=Ii(s):s=Po(t,s=Mo(n)?Io:jo.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||c!==s)&&ll(t,a,r,s),Ti=!1;var f=t.memoizedState;a.state=f,Hi(t,r,a,o),c=t.memoizedState,l!==r||f!==c||No.current||Ti?("function"==typeof u&&(rl(t,n,u,r),c=t.memoizedState),(l=Ti||il(t,n,l,r,f,c,s))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Li(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:nl(t.type,l),a.props=s,d=t.pendingProps,f=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=Ii(c):c=Po(t,c=Mo(n)?Io:jo.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==c)&&ll(t,a,r,c),Ti=!1,f=t.memoizedState,a.state=f,Hi(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||No.current||Ti?("function"==typeof p&&(rl(t,n,p,r),h=t.memoizedState),(s=Ti||il(t,n,s,r,f,h,c)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=c,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return $l(e,t,n,r,i,o)}function $l(e,t,n,r,o,i){El(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Lo(t,n,!1),Wl(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&Lo(t,n,!0),t.child}function jl(e){var t=e.stateNode;t.pendingContext?Ao(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ao(0,t.context,!1),Xi(e,t.containerInfo)}function Nl(e,t,n,r,o){return hi(),vi(o),t.flags|=256,wl(e,t,n,r),t.child}var Il,Pl,Ml,Rl,Al={dehydrated:null,treeContext:null,retryLane:0};function Tl(e){return{baseLanes:e,cachePool:null,transitions:null}}function ql(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,c=!!(128&t.flags);if((r=c)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_o(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=o.children,e=o.fallback,l?(o=t.mode,l=t.child,c={mode:"hidden",children:c},1&o||null===l?l=Ts(c,o,0,null):(l.childLanes=0,l.pendingProps=c),e=As(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Tl(n),t.memoizedState=Al,e):Ll(t,c));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Dl(e,t,l,r=ul(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ts({mode:"visible",children:r.children},o,0,null),(a=As(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&xi(t,e.child,null,l),t.child.memoizedState=Tl(l),t.memoizedState=Al,a);if(!(1&t.mode))return Dl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var c=r.dgst;return r=c,Dl(e,t,l,r=ul(a=Error(i(419)),r,void 0))}if(c=!!(l&e.childLanes),yl||c){if(null!==(r=jc)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|l)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ai(e,o),ns(r,e,o,-1))}return vs(),Dl(e,t,l,r=ul(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=_s.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Yo[Ko++]=Qo,Yo[Ko++]=Zo,Yo[Ko++]=Xo,Qo=e.id,Zo=e.overflow,Xo=t),t=Ll(t,r.children),t.flags|=4096,t)}(e,t,c,o,r,a,n);if(l){l=o.fallback,c=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&c||t.child===a?(o=Ms(a,s)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?l=Ms(r,l):(l=As(l,c,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,c=null===(c=e.child.memoizedState)?Tl(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},l.memoizedState=c,l.childLanes=e.childLanes&~n,t.memoizedState=Al,o}return e=(l=e.child).sibling,o=Ms(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ll(e,t){return(t=Ts({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Dl(e,t,n,r){return null!==r&&vi(r),xi(t,e.child,null,n),(e=Ll(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ji(e.return,t,n)}function Bl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Fl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zl(e,n,t);else if(19===e.tag)zl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_o(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,i);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Tc|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ms(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ms(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vl(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ul(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ul(t),null;case 1:case 17:return Mo(t.type)&&Ro(),Ul(t),null;case 3:return r=t.stateNode,Qi(),Oo(No),Oo(jo),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(as(ai),ai=null))),Pl(e,t),Ul(t),null;case 5:Ji(t);var o=Ki(Yi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ml(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ul(t),null}if(e=Ki(Ui.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(o=0;o<Ar.length;o++)Dr(Ar[o],r);break;case"source":Dr("error",r);break;case"img":case"image":case"link":Dr("error",r),Dr("load",r);break;case"details":Dr("toggle",r);break;case"input":X(r,a),Dr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Dr("invalid",r);break;case"textarea":oe(r,a),Dr("invalid",r)}for(var c in be(n,a),o=null,a)if(a.hasOwnProperty(c)){var s=a[c];"children"===c?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(c)&&null!=s&&"onScroll"===c&&Dr("scroll",r)}switch(n){case"input":U(r),J(r,a,!0);break;case"textarea":U(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{c=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[po]=t,e[ho]=r,Il(e,t,!1,!1),t.stateNode=e;e:{switch(c=ye(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),o=r;break;case"iframe":case"object":case"embed":Dr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ar.length;o++)Dr(Ar[o],e);o=r;break;case"source":Dr("error",e),o=r;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),o=r;break;case"details":Dr("toggle",e),o=r;break;case"input":X(e,r),o=K(e,r),Dr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=q({},r,{value:void 0}),Dr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Dr("invalid",e)}for(a in be(n,o),s=o)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?me(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Dr("scroll",e):null!=u&&y(e,a,u,c))}switch(n){case"input":U(e),J(e,r,!1);break;case"textarea":U(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ul(t),null;case 6:if(e&&null!=t.stateNode)Rl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Ki(Yi.current),Ki(Ui.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Ul(t),null;case 13:if(Oo(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ul(t),a=!1}else null!==ai&&(as(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Rc&&(Rc=3):vs())),null!==t.updateQueue&&(t.flags|=4),Ul(t),null);case 4:return Qi(),Pl(e,t),null===e&&Fr(t.stateNode.containerInfo),Ul(t),null;case 10:return $i(t.type._context),Ul(t),null;case 19:if(Oo(ea),null===(a=t.memoizedState))return Ul(t),null;if(r=!!(128&t.flags),null===(c=a.rendering))if(r)Vl(a,!1);else{if(0!==Rc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(c=ta(e))){for(t.flags|=128,Vl(a,!1),null!==(r=c.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _o(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Fc&&(t.flags|=128,r=!0,Vl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(c))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!ii)return Ul(t),null}else 2*Qe()-a.renderingStartTime>Fc&&1073741824!==n&&(t.flags|=128,r=!0,Vl(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=a.last)?n.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,_o(ea,r?1&n|2:1&n),t):(Ul(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Pc)&&(Ul(t),6&t.subtreeFlags&&(t.flags|=8192)):Ul(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Yl(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&Ro(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Oo(No),Oo(jo),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Oo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ea),null;case 4:return Qi(),null;case 10:return $i(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}Il=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Pl=function(){},Ml=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ki(Ui.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=q({},o,{value:void 0}),r=q({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var c=o[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(c=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==c&&(null!=s||null!=c))if("style"===u)if(c){for(i in c)!c.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&c[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Dr("scroll",e),a||c===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Rl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kl=!1,Xl=!1,Ql="function"==typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){ks(e,t,n)}else n.current=null}function ec(e,t,n){try{n()}catch(n){ks(e,t,n)}}var tc=!1;function nc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&ec(t,n,i)}o=o.next}while(o!==r)}}function rc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ic(e){var t=e.alternate;null!==t&&(e.alternate=null,ic(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[mo],delete t[go],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ac(e){return 5===e.tag||3===e.tag||4===e.tag}function lc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ac(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cc(e,t,n),e=e.sibling;null!==e;)cc(e,t,n),e=e.sibling}function sc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(sc(e,t,n),e=e.sibling;null!==e;)sc(e,t,n),e=e.sibling}var uc=null,dc=!1;function fc(e,t,n){for(n=n.child;null!==n;)pc(e,t,n),n=n.sibling}function pc(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||Jl(n,t);case 6:var r=uc,o=dc;uc=null,fc(e,t,n),dc=o,null!==(uc=r)&&(dc?(e=uc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):uc.removeChild(n.stateNode));break;case 18:null!==uc&&(dc?(e=uc,n=n.stateNode,8===e.nodeType?co(e.parentNode,n):1===e.nodeType&&co(e,n),Ft(e)):co(uc,n.stateNode));break;case 4:r=uc,o=dc,uc=n.stateNode.containerInfo,dc=!0,fc(e,t,n),uc=r,dc=o;break;case 0:case 11:case 14:case 15:if(!Xl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&ec(n,t,a),o=o.next}while(o!==r)}fc(e,t,n);break;case 1:if(!Xl&&(Jl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ks(n,t,e)}fc(e,t,n);break;case 21:fc(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,fc(e,t,n),Xl=r):fc(e,t,n);break;default:fc(e,t,n)}}function hc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach((function(t){var r=$s.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,c=l;e:for(;null!==c;){switch(c.tag){case 5:uc=c.stateNode,dc=!1;break e;case 3:case 4:uc=c.stateNode.containerInfo,dc=!0;break e}c=c.return}if(null===uc)throw Error(i(160));pc(a,l,o),uc=null,dc=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){ks(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mc(t,e),t=t.sibling}function mc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vc(t,e),gc(e),4&r){try{nc(3,e,e.return),rc(3,e)}catch(t){ks(e,e.return,t)}try{nc(5,e,e.return)}catch(t){ks(e,e.return,t)}}break;case 1:vc(t,e),gc(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(vc(t,e),gc(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){ks(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,c=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===c&&"radio"===a.type&&null!=a.name&&Q(o,a),ye(c,l);var u=ye(c,a);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?me(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,u)}switch(c){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){ks(e,e.return,t)}}break;case 6:if(vc(t,e),gc(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){ks(e,e.return,t)}}break;case 3:if(vc(t,e),gc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ft(t.containerInfo)}catch(t){ks(e,e.return,t)}break;case 4:default:vc(t,e),gc(e);break;case 13:vc(t,e),gc(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bc=Qe())),4&r&&hc(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(u=Xl)||d,vc(t,e),Xl=u):vc(t,e),gc(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:nc(4,p,p.return);break;case 1:Jl(p,p.return);var v=p.stateNode;if("function"==typeof v.componentWillUnmount){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){ks(r,n,e)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){xc(f);continue}}null!==h?(h.return=p,Zl=h):xc(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(c=f.stateNode,l=null!=(s=f.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,c.style.display=ve("display",l))}catch(t){ks(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){ks(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vc(t,e),gc(e),4&r&&hc(e);case 21:}}function gc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ac(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),sc(e,lc(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;cc(e,lc(e),a);break;default:throw Error(i(161))}}catch(t){ks(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bc(e,t,n){Zl=e,yc(e,t,n)}function yc(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Kl;if(!a){var l=o.alternate,c=null!==l&&null!==l.memoizedState||Xl;l=Kl;var s=Xl;if(Kl=a,(Xl=c)&&!s)for(Zl=o;null!==Zl;)c=(a=Zl).child,22===a.tag&&null!==a.memoizedState?Sc(o):null!==c?(c.return=a,Zl=c):Sc(o);for(;null!==i;)Zl=i,yc(i,t,n),i=i.sibling;Zl=o,Kl=l,Xl=s}wc(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zl=i):wc(e)}}function wc(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xl||rc(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wi(t,l,n)}break;case 5:var c=t.stateNode;if(null===n&&4&t.flags){n=c;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ft(f)}}}break;default:throw Error(i(163))}Xl||512&t.flags&&oc(t)}catch(e){ks(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function xc(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Sc(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rc(4,t)}catch(e){ks(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){ks(t,o,e)}}var i=t.return;try{oc(t)}catch(e){ks(t,i,e)}break;case 5:var a=t.return;try{oc(t)}catch(e){ks(t,a,e)}}}catch(e){ks(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Cc,kc=Math.ceil,Ec=w.ReactCurrentDispatcher,Oc=w.ReactCurrentOwner,_c=w.ReactCurrentBatchConfig,$c=0,jc=null,Nc=null,Ic=0,Pc=0,Mc=Eo(0),Rc=0,Ac=null,Tc=0,qc=0,Lc=0,Dc=null,zc=null,Bc=0,Fc=1/0,Hc=null,Wc=!1,Vc=null,Uc=null,Gc=!1,Yc=null,Kc=0,Xc=0,Qc=null,Zc=-1,Jc=0;function es(){return 6&$c?Qe():-1!==Zc?Zc:Zc=Qe()}function ts(e){return 1&e.mode?2&$c&&0!==Ic?Ic&-Ic:null!==mi.transition?(0===Jc&&(Jc=vt()),Jc):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function ns(e,t,n,r){if(50<Xc)throw Xc=0,Qc=null,Error(i(185));gt(e,n,r),2&$c&&e===jc||(e===jc&&(!(2&$c)&&(qc|=n),4===Rc&&ls(e,Ic)),rs(e,r),1===n&&0===$c&&!(1&t.mode)&&(Fc=Qe()+500,zo&&Ho()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,c=o[a];-1===c?l&n&&!(l&r)||(o[a]=pt(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===jc?Ic:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){zo=!0,Fo(e)}(cs.bind(null,e)):Fo(cs.bind(null,e)),ao((function(){!(6&$c)&&Ho()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=js(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if(Zc=-1,Jc=0,6&$c)throw Error(i(327));var n=e.callbackNode;if(Ss()&&e.callbackNode!==n)return null;var r=ft(e,e===jc?Ic:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=ms(e,r);else{t=r;var o=$c;$c|=2;var a=hs();for(jc===e&&Ic===t||(Hc=null,Fc=Qe()+500,fs(e,t));;)try{bs();break}catch(t){ps(e,t)}_i(),Ec.current=a,$c=o,null!==Nc?t=0:(jc=null,Ic=0,t=Rc)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=is(e,o))),1===t)throw n=Ac,fs(e,0),ls(e,r),rs(e,Qe()),n;if(6===t)ls(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=ms(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=is(e,a))),1!==t)))throw n=Ac,fs(e,0),ls(e,r),rs(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xs(e,zc,Hc);break;case 3:if(ls(e,r),(130023424&r)===r&&10<(t=Bc+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xs.bind(null,e,zc,Hc),t);break}xs(e,zc,Hc);break;case 4:if(ls(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kc(r/1960))-r)){e.timeoutHandle=ro(xs.bind(null,e,zc,Hc),r);break}xs(e,zc,Hc);break;default:throw Error(i(329))}}}return rs(e,Qe()),e.callbackNode===n?os.bind(null,e):null}function is(e,t){var n=Dc;return e.current.memoizedState.isDehydrated&&(fs(e,t).flags|=256),2!==(e=ms(e,t))&&(t=zc,zc=n,null!==t&&as(t)),e}function as(e){null===zc?zc=e:zc.push.apply(zc,e)}function ls(e,t){for(t&=~Lc,t&=~qc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cs(e){if(6&$c)throw Error(i(327));Ss();var t=ft(e,0);if(!(1&t))return rs(e,Qe()),null;var n=ms(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=is(e,r))}if(1===n)throw n=Ac,fs(e,0),ls(e,t),rs(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,zc,Hc),rs(e,Qe()),null}function ss(e,t){var n=$c;$c|=1;try{return e(t)}finally{0===($c=n)&&(Fc=Qe()+500,zo&&Ho())}}function us(e){null!==Yc&&0===Yc.tag&&!(6&$c)&&Ss();var t=$c;$c|=1;var n=_c.transition,r=yt;try{if(_c.transition=null,yt=1,e)return e()}finally{yt=r,_c.transition=n,!(6&($c=t))&&Ho()}}function ds(){Pc=Mc.current,Oo(Mc)}function fs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Nc)for(n=Nc.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ro();break;case 3:Qi(),Oo(No),Oo(jo),ra();break;case 5:Ji(r);break;case 4:Qi();break;case 13:case 19:Oo(ea);break;case 10:$i(r.type._context);break;case 22:case 23:ds()}n=n.return}if(jc=e,Nc=e=Ms(e.current,null),Ic=Pc=t,Rc=0,Ac=null,Lc=qc=Tc=0,zc=Dc=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function ps(e,t){for(;;){var n=Nc;try{if(_i(),oa.current=Za,ua){for(var r=la.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,sa=ca=la=null,da=!1,fa=0,Oc.current=null,null===n||null===n.return){Rc=1,Ac=t,Nc=null;break}e:{var a=e,l=n.return,c=n,s=t;if(t=Ic,c.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,d=c,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ml(l);if(null!==h){h.flags&=-257,gl(h,l,c,0,t),1&h.mode&&vl(a,u,t),s=u;var v=(t=h).updateQueue;if(null===v){var m=new Set;m.add(s),t.updateQueue=m}else v.add(s);break e}if(!(1&t)){vl(a,u,t),vs();break e}s=Error(i(426))}else if(ii&&1&c.mode){var g=ml(l);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gl(g,l,c,0,t),vi(sl(s,c));break e}}a=s=sl(s,c),4!==Rc&&(Rc=2),null===Dc?Dc=[a]:Dc.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,pl(0,s,t));break e;case 1:c=s;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Uc&&Uc.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,hl(a,c,t));break e}}a=a.return}while(null!==a)}ws(n)}catch(e){t=e,Nc===n&&null!==n&&(Nc=n=n.return);continue}break}}function hs(){var e=Ec.current;return Ec.current=Za,null===e?Za:e}function vs(){0!==Rc&&3!==Rc&&2!==Rc||(Rc=4),null===jc||!(268435455&Tc)&&!(268435455&qc)||ls(jc,Ic)}function ms(e,t){var n=$c;$c|=2;var r=hs();for(jc===e&&Ic===t||(Hc=null,fs(e,t));;)try{gs();break}catch(t){ps(e,t)}if(_i(),$c=n,Ec.current=r,null!==Nc)throw Error(i(261));return jc=null,Ic=0,Rc}function gs(){for(;null!==Nc;)ys(Nc)}function bs(){for(;null!==Nc&&!Ke();)ys(Nc)}function ys(e){var t=Cc(e.alternate,e,Pc);e.memoizedProps=e.pendingProps,null===t?ws(e):Nc=t,Oc.current=null}function ws(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Nc=n);if(null===e)return Rc=6,void(Nc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Gl(n,t,Pc)))return void(Nc=n);if(null!==(t=t.sibling))return void(Nc=t);Nc=t=e}while(null!==t);0===Rc&&(Rc=5)}function xs(e,t,n){var r=yt,o=_c.transition;try{_c.transition=null,yt=1,function(e,t,n,r){do{Ss()}while(null!==Yc);if(6&$c)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===jc&&(Nc=jc=null,Ic=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Gc||(Gc=!0,js(tt,(function(){return Ss(),null}))),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=_c.transition,_c.transition=null;var l=yt;yt=1;var c=$c;$c|=4,Oc.current=null,function(e,t){if(eo=Wt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,c=-1,s=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(c=l+o),f!==a||0!==r&&3!==f.nodeType||(s=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(c=l),p===a&&++d===r&&(s=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===c||-1===s?null:{start:c,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var v=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var m=v.memoizedProps,g=v.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:nl(t.type,m),g);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){ks(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}v=tc,tc=!1}(e,n),mc(n,e),hr(to),Wt=!!eo,to=eo=null,e.current=n,bc(n,e,o),Xe(),$c=c,yt=l,_c.transition=a}else e.current=n;if(Gc&&(Gc=!1,Yc=e,Kc=o),a=e.pendingLanes,0===a&&(Uc=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rs(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Wc)throw Wc=!1,e=Vc,Vc=null,e;!!(1&Kc)&&0!==e.tag&&Ss(),a=e.pendingLanes,1&a?e===Qc?Xc++:(Xc=0,Qc=e):Xc=0,Ho()}(e,t,n,r)}finally{_c.transition=o,yt=r}return null}function Ss(){if(null!==Yc){var e=wt(Kc),t=_c.transition,n=yt;try{if(_c.transition=null,yt=16>e?16:e,null===Yc)var r=!1;else{if(e=Yc,Yc=null,Kc=0,6&$c)throw Error(i(331));var o=$c;for($c|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(16&Zl.flags){var c=a.deletions;if(null!==c){for(var s=0;s<c.length;s++){var u=c[s];for(Zl=u;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:nc(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(ic(d),d===u){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var v=a.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Zl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(2048&(a=Zl).flags)switch(a.tag){case 0:case 11:case 15:nc(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zl=b;break e}Zl=a.return}}var y=e.current;for(Zl=y;null!==Zl;){var w=(l=Zl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Zl=w;else e:for(l=y;null!==Zl;){if(2048&(c=Zl).flags)try{switch(c.tag){case 0:case 11:case 15:rc(9,c)}}catch(e){ks(c,c.return,e)}if(c===l){Zl=null;break e}var x=c.sibling;if(null!==x){x.return=c.return,Zl=x;break e}Zl=c.return}}if($c=o,Ho(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,_c.transition=t}}return!1}function Cs(e,t,n){e=zi(e,t=pl(0,t=sl(n,t),1),1),t=es(),null!==e&&(gt(e,1,t),rs(e,t))}function ks(e,t,n){if(3===e.tag)Cs(e,e,n);else for(;null!==t;){if(3===t.tag){Cs(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Uc||!Uc.has(r))){t=zi(t,e=hl(t,e=sl(n,e),1),1),e=es(),null!==t&&(gt(t,1,e),rs(t,e));break}}t=t.return}}function Es(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,jc===e&&(Ic&n)===n&&(4===Rc||3===Rc&&(130023424&Ic)===Ic&&500>Qe()-Bc?fs(e,0):Lc|=n),rs(e,t)}function Os(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=es();null!==(e=Ai(e,t))&&(gt(e,t,n),rs(e,n))}function _s(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Os(e,n)}function $s(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Os(e,n)}function js(e,t){return Ge(e,t)}function Ns(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Is(e,t,n,r){return new Ns(e,t,n,r)}function Ps(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ms(e,t){var n=e.alternate;return null===n?((n=Is(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rs(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Ps(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case C:return As(n.children,o,a,t);case k:l=8,o|=8;break;case E:return(e=Is(12,n,t,2|o)).elementType=E,e.lanes=a,e;case j:return(e=Is(13,n,t,o)).elementType=j,e.lanes=a,e;case N:return(e=Is(19,n,t,o)).elementType=N,e.lanes=a,e;case M:return Ts(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case _:l=9;break e;case $:l=11;break e;case I:l=14;break e;case P:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Is(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function As(e,t,n,r){return(e=Is(7,e,r,t)).lanes=n,e}function Ts(e,t,n,r){return(e=Is(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function qs(e,t,n){return(e=Is(6,e,null,t)).lanes=n,e}function Ls(e,t,n){return(t=Is(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ds(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zs(e,t,n,r,o,i,a,l,c){return e=new Ds(e,t,n,l,c),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Is(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qi(i),e}function Bs(e){if(!e)return $o;e:{if(Fe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mo(n))return To(e,n,t)}return t}function Fs(e,t,n,r,o,i,a,l,c){return(e=zs(n,r,!0,e,0,i,0,l,c)).context=Bs(null),n=e.current,(i=Di(r=es(),o=ts(n))).callback=null!=t?t:null,zi(n,i,o),e.current.lanes=o,gt(e,o,r),rs(e,r),e}function Hs(e,t,n,r){var o=t.current,i=es(),a=ts(o);return n=Bs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Di(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zi(o,t,a))&&(ns(e,o,a,i),Bi(e,o,a)),a}function Ws(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Us(e,t){Vs(e,t),(e=e.alternate)&&Vs(e,t)}Cc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||No.current)yl=!0;else{if(!(e.lanes&n||128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:jl(t),hi();break;case 5:Zi(t);break;case 1:Mo(t.type)&&qo(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_o(Ci,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_o(ea,1&ea.current),t.flags|=128,null):n&t.child.childLanes?ql(e,t,n):(_o(ea,1&ea.current),null!==(e=Wl(e,t,n))?e.sibling:null);_o(ea,1&ea.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Fl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),_o(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Wl(e,t,n)}(e,t,n);yl=!!(131072&e.flags)}else yl=!1,ii&&1048576&t.flags&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hl(e,t),e=t.pendingProps;var o=Po(t,jo.current);Ni(t,n),o=ma(null,t,r,e,o,n);var a=ga();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(a=!0,qo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,qi(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,cl(t,r,e,n),t=$l(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ps(e)?1:0;if(null!=e){if((e=e.$$typeof)===$)return 11;if(e===I)return 14}return 2}(r),e=nl(r,e),o){case 0:t=Ol(null,t,r,e,n);break e;case 1:t=_l(null,t,r,e,n);break e;case 11:t=xl(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,nl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ol(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,_l(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(jl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Li(e,t),Hi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Nl(e,t,r,n,o=sl(Error(i(423)),t));break e}if(r!==o){t=Nl(e,t,r,n,o=sl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Wl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),El(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ui(t),null;case 13:return ql(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,_o(Ci,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!No.current){t=Wl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var c=a.dependencies;if(null!==c){l=a.child;for(var s=c.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Di(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),ji(a.return,n,t),c.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ji(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ni(t,n),r=r(o=Ii(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),Sl(e,t,r,o=nl(r.type,o),n);case 15:return Cl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Hl(e,t),t.tag=1,Mo(r)?(e=!0,qo(t)):e=!1,Ni(t,n),al(t,r,o),cl(t,r,o,n),$l(null,t,r,!0,e,n);case 19:return Fl(e,t,n);case 22:return kl(e,t,n)}throw Error(i(156,t.tag))};var Gs="function"==typeof reportError?reportError:function(e){console.error(e)};function Ys(e){this._internalRoot=e}function Ks(e){this._internalRoot=e}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function Js(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Ws(a);l.call(e)}}Hs(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Ws(a);i.call(e)}}var a=Fs(t,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=a,e[vo]=a.current,Fr(8===e.nodeType?e.parentNode:e),us(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Ws(c);l.call(e)}}var c=zs(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=c,e[vo]=c.current,Fr(8===e.nodeType?e.parentNode:e),us((function(){Hs(t,c,n,r)})),c}(n,t,e,o,r);return Ws(a)}Ks.prototype.render=Ys.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hs(e,t,null,null)},Ks.prototype.unmount=Ys.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;us((function(){Hs(null,e,null,null)})),t[vo]=null}},Ks.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&qt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rs(t,Qe()),!(6&$c)&&(Fc=Qe()+500,Ho()))}break;case 13:us((function(){var t=Ai(e,1);if(null!==t){var n=es();ns(t,e,1,n)}})),Us(e,1)}},St=function(e){if(13===e.tag){var t=Ai(e,134217728);if(null!==t)ns(t,e,134217728,es());Us(e,134217728)}},Ct=function(e){if(13===e.tag){var t=ts(e),n=Ai(e,t);if(null!==n)ns(n,e,t,es());Us(e,t)}},kt=function(){return yt},Et=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Se=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));G(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},$e=ss,je=us;var eu={usingClientEntryPoint:!1,Events:[wo,xo,So,Oe,_e,ss]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xs(e))throw Error(i(299));var n=!1,r="",o=Gs;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zs(e,1,!1,null,0,n,0,r,o),e[vo]=t.current,Fr(8===e.nodeType?e.parentNode:e),new Ys(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return us(e)},t.hydrate=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Gs;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Fs(t,null,e,1,null!=n?n:null,o,0,a,l),e[vo]=t.current,Fr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ks(t)},t.render=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qs(e))throw Error(i(40));return!!e._reactRootContainer&&(us((function(){Js(null,null,e,!1,(function(){e._reactRootContainer=null,e[vo]=null}))})),!0)},t.unstable_batchedUpdates=ss,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qs(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Js(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338:function(e,t,n){"use strict";var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},961:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},5708:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},c=l(n(6540)),s=l(n(961)),u=l(n(2404)),d=l(n(1574)),f=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,o){var i,a,l,c;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,o,n.unprivilegedEditor):"selection-change"===e&&(null===(c=(l=n).onEditorChangeSelection)||void 0===c||c.call(l,t,o,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!=r?r:"",n}return o(t,e),t.prototype.validateProps=function(e){var t;if(c.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(c.default.Children.count(e.children)&&"textarea"===(null===(t=c.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),i=null!=(n=e.value)?n:"";this.isEqualValue(i,o)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),a(this.cleanProps,this.dirtyProps).some((function(t){return!u.default(e[t],r.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!u.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(r=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(r),p((function(){return n.setEditorSelection(l,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new d.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?u.default(e.ops,t.ops):u.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),p((function(){return n.setEditorSelection(e,r)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=s.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return c.default.Children.count(n)?c.default.cloneElement(c.default.Children.only(n),o):r?c.default.createElement("pre",i({},o)):c.default.createElement("div",i({},o))},t.prototype.render=function(){var e;return c.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!=e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var o,i;if(this.editor){var a=this.isDelta(this.value)?r.getContents():r.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(o=this.props).onChange)||void 0===i||i.call(o,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,o,i,a,l,c;if(this.editor){var s=this.getEditorSelection(),d=!s&&e,f=s&&!e;u.default(e,s)||(this.selection=e,null===(o=(r=this.props).onChangeSelection)||void 0===o||o.call(r,e,t,n),d?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):f&&(null===(c=(l=this.props).onBlur)||void 0===c||c.call(l,s,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=d.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(c.default.Component);function p(e){Promise.resolve().then(e)}e.exports=f},1020:function(e,t,n){"use strict"; | |
| 36 | + */var r=n(6540),o=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function c(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){v[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){v[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){v[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){v[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){v[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(g,b);v[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(g,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(g,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),j=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var T=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}var R,D=Object.assign;function L(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var q=!1;function z(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var c="\n"+o[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=a&&0<=l);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function B(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case k:return"Profiler";case O:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case $:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function F(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ue(e,t)})}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ge=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,Oe=null;function ke(e){if(e=xo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Ee(e){Ce?Oe?Oe.push(e):Oe=[e]:Ce=e}function je(){if(Ce){var e=Ce,t=Oe;if(Oe=Ce=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function $e(e,t){return e(t)}function Pe(){}var Ne=!1;function _e(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return $e(e,t,n)}finally{Ne=!1,(null!==Ce||null!==Oe)&&(Pe(),je())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Me=!1;if(u)try{var Te={};Object.defineProperty(Te,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch(ue){Me=!1}function Ae(e,t,n,r,o,i,a,l,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Re=!1,De=null,Le=!1,qe=null,ze={onError:function(e){Re=!0,De=e}};function Be(e,t,n,r,o,i,a,l,c){Re=!1,De=null,Ae.apply(ze,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(i(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return We(o),e;if(a===r)return We(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,c=o.child;c;){if(c===n){l=!0,n=o,r=a;break}if(c===r){l=!0,r=o,n=a;break}c=c.sibling}if(!l){for(c=a.child;c;){if(c===n){l=!0,n=a,r=o;break}if(c===r){l=!0,r=a,n=o;break}c=c.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var Ve=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Qe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ct|0)|0},lt=Math.log,ct=Math.LN2;var st=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=st;return!(4194240&(st<<=1))&&(st=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,Ct,Ot,kt,Et=!1,jt=[],$t=null,Pt=null,Nt=null,_t=new Map,It=new Map,Mt=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function At(e,t){switch(e){case"focusin":case"focusout":$t=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":_t.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Rt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=yo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void kt(e.priority,function(){Ct(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function qt(e,t,n){Lt(e)&&n.delete(t)}function zt(){Et=!1,null!==$t&&Lt($t)&&($t=null),null!==Pt&&Lt(Pt)&&(Pt=null),null!==Nt&&Lt(Nt)&&(Nt=null),_t.forEach(qt),It.forEach(qt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<jt.length){Bt(jt[0],e);for(var n=1;n<jt.length;n++){var r=jt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==$t&&Bt($t,e),null!==Pt&&Bt(Pt,e),null!==Nt&&Bt(Nt,e),_t.forEach(t),It.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Mt.shift()}var Ft=x.ReactCurrentBatchConfig,Wt=!0;function Kt(e,t,n,r){var o=yt,i=Ft.transition;Ft.transition=null;try{yt=1,Vt(e,t,n,r)}finally{yt=o,Ft.transition=i}}function Ut(e,t,n,r){var o=yt,i=Ft.transition;Ft.transition=null;try{yt=4,Vt(e,t,n,r)}finally{yt=o,Ft.transition=i}}function Vt(e,t,n,r){if(Wt){var o=Yt(e,t,n,r);if(null===o)Wr(e,t,r,Gt,n),At(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return $t=Rt($t,e,t,n,r,o),!0;case"dragenter":return Pt=Rt(Pt,e,t,n,r,o),!0;case"mouseover":return Nt=Rt(Nt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return _t.set(i,Rt(_t.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Rt(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(At(e,r),4&t&&-1<Tt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&wt(i),null===(i=Yt(e,t,n,r))&&Wr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=yo(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,cn,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(sn),dn=D({},sn,{view:0,detail:0}),fn=on(dn),pn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(an=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=an=0,cn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),mn=on(D({},pn,{dataTransfer:0})),vn=on(D({},dn,{relatedTarget:0})),gn=on(D({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=D({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),xn=on(D({},sn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function kn(){return On}var En=D({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jn=on(En),$n=on(D({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Nn=on(D({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=D({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(_n),Mn=[9,13,27,32],Tn=u&&"CompositionEvent"in window,An=null;u&&"documentMode"in document&&(An=document.documentMode);var Rn=u&&"TextEvent"in window&&!An,Dn=u&&(!Tn||An&&8<An&&11>=An),Ln=String.fromCharCode(32),qn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Fn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Kn(e,t,n,r){Ee(r),0<(t=Ur(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Vn=null;function Gn(e){Lr(e,0)}function Yn(e){if(V(wo(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Zn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Un&&(Un.detachEvent("onpropertychange",nr),Vn=Un=null)}function nr(e){if("value"===e.propertyName&&Yn(Vn)){var t=[];Kn(t,Vn,e,we(e)),_e(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Un=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Vn)}function ir(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==vr||vr!==G(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=Ur(gr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Cr={},Or={};function kr(e){if(Cr[e])return Cr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Or)return Cr[e]=n[t];return e}u&&(Or=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Er=kr("animationend"),jr=kr("animationiteration"),$r=kr("animationstart"),Pr=kr("transitionend"),Nr=new Map,_r="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Nr.set(e,t),c(t,[e])}for(var Mr=0;Mr<_r.length;Mr++){var Tr=_r[Mr];Ir(Tr.toLowerCase(),"on"+(Tr[0].toUpperCase()+Tr.slice(1)))}Ir(Er,"onAnimationEnd"),Ir(jr,"onAnimationIteration"),Ir($r,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Pr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ar));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,c,s){if(Be.apply(this,arguments),Re){if(!Re)throw Error(i(198));var u=De;Re=!1,De=null,Le||(Le=!0,qe=u)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,s=l.currentTarget;if(l=l.listener,c!==i&&o.isPropagationStopped())break e;Dr(o,l,s),i=c}else for(a=0;a<r.length;a++){if(c=(l=r[a]).instance,s=l.currentTarget,l=l.listener,c!==i&&o.isPropagationStopped())break e;Dr(o,l,s),i=c}}}if(Le)throw e=qe,Le=!1,qe=null,e}function qr(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Fr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach(function(t){"selectionchange"!==t&&(Rr.has(t)||zr(t,!1,e),zr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function Fr(e,t,n,r){switch(Xt(t)){case 1:var o=Kt;break;case 4:o=Ut;break;default:o=Vt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===o||8===c.nodeType&&c.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=yo(l)))return;if(5===(c=a.tag)||6===c){r=i=a;continue e}l=l.parentNode}}r=r.return}_e(function(){var r=i,o=we(n),a=[];e:{var l=Nr.get(e);if(void 0!==l){var c=un,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":c=jn;break;case"focusin":s="focus",c=vn;break;case"focusout":s="blur",c=vn;break;case"beforeblur":case"afterblur":c=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Pn;break;case Er:case jr:case $r:c=gn;break;case Pr:c=Nn;break;case"scroll":c=fn;break;case"wheel":c=In;break;case"copy":case"cut":case"paste":c=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=$n}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Ie(h,f))&&u.push(Kr(h,m,p)))),d)break;h=h.return}0<u.length&&(l=new c(l,s,null,n,o),a.push({event:l,listeners:u}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(s=n.relatedTarget||n.fromElement)||!yo(s)&&!s[mo])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(s=(s=n.relatedTarget||n.toElement)?yo(s):null)&&(s!==(d=He(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(c=null,s=r),c!==s)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=$n,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==c?l:wo(c),p=null==s?l:wo(s),(l=new u(m,h+"leave",c,n,o)).target=d,l.relatedTarget=p,m=null,yo(o)===r&&((u=new u(f,h+"enter",s,n,o)).target=p,u.relatedTarget=d,m=u),d=m,c&&s)e:{for(f=s,h=0,p=u=c;p;p=Vr(p))h++;for(p=0,m=f;m;m=Vr(m))p++;for(;0<h-p;)u=Vr(u),h--;for(;0<p-h;)f=Vr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Vr(u),f=Vr(f)}u=null}else u=null;null!==c&&Gr(a,l,c,u,!1),null!==s&&null!==d&&Gr(a,d,s,u,!0)}if("select"===(c=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var v=Xn;else if(Wn(l))if(Qn)v=ar;else{v=or;var g=rr}else(c=l.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Kn(a,v,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.value)),g=r?wo(r):window,e){case"focusin":(Wn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,br=null);break;case"focusout":br=gr=vr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var b;if(Tn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(b=en()):(Zt="value"in(Qt=o)?Qt.value:Qt.textContent,Hn=!0)),0<(g=Ur(r,y)).length&&(y=new xn(y,e,null,n,o),a.push({event:y,listeners:g}),b?y.data=b:null!==(b=Bn(n))&&(y.data=b))),(b=Rn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(qn=!0,Ln);case"textInput":return(e=t.data)===Ln&&qn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Tn&&zn(e,t)?(e=en(),Jt=Zt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Lr(a,t)})}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ie(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Ie(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,c=l.alternate,s=l.stateNode;if(null!==c&&c===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(c=Ie(n,i))&&a.unshift(Kr(n,c,l)):o||null!=(c=Ie(n,i))&&a.push(Kr(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout(function(){throw e})}function co(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,vo="__reactEvents$"+fo,go="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[ho]||null}var Co=[],Oo=-1;function ko(e){return{current:e}}function Eo(e){0>Oo||(e.current=Co[Oo],Co[Oo]=null,Oo--)}function jo(e,t){Oo++,Co[Oo]=e.current,e.current=t}var $o={},Po=ko($o),No=ko(!1),_o=$o;function Io(e,t){var n=e.type.contextTypes;if(!n)return $o;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!=(e=e.childContextTypes)}function To(){Eo(No),Eo(Po)}function Ao(e,t,n){if(Po.current!==$o)throw Error(i(168));jo(Po,t),jo(No,n)}function Ro(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,F(e)||"Unknown",o));return D({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$o,_o=Po.current,jo(Po,e),jo(No,No.current),!0}function Lo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ro(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,Eo(No),Eo(Po),jo(Po,e)):Eo(No),jo(No,n)}var qo=null,zo=!1,Bo=!1;function Ho(e){null===qo?qo=[e]:qo.push(e)}function Fo(){if(!Bo&&null!==qo){Bo=!0;var e=0,t=yt;try{var n=qo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}qo=null,zo=!1}catch(t){throw null!==qo&&(qo=qo.slice(e+1)),Ve(Je,Fo),t}finally{yt=t,Bo=!1}}return null}var Wo=[],Ko=0,Uo=null,Vo=0,Go=[],Yo=0,Xo=null,Qo=1,Zo="";function Jo(e,t){Wo[Ko++]=Vo,Wo[Ko++]=Uo,Uo=e,Vo=t}function ei(e,t,n){Go[Yo++]=Qo,Go[Yo++]=Zo,Go[Yo++]=Xo,Xo=e;var r=Qo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Qo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Uo;)Uo=Wo[--Ko],Wo[Ko]=null,Vo=Wo[--Ko],Wo[Ko]=null;for(;e===Xo;)Xo=Go[--Yo],Go[Yo]=null,Zo=Go[--Yo],Go[Yo]=null,Qo=Go[--Yo],Go[Yo]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=_s(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Qo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=_s(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return!(!(1&e.mode)||128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!ci(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&ci(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var vi=x.ReactCurrentBatchConfig;function gi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ms(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Ds(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===I&&yi(i)===t.type)?((r=o(t,n.props)).ref=gi(e,t,n),r.return=e,r):((r=Ts(n.type,n.key,n.props,null,e.mode,r)).ref=gi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ls(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=As(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ds(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ts(t.type,t.key,t.props,null,e.mode,n)).ref=gi(e,null,t),n.return=e,n;case S:return(t=Ls(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(te(t)||A(t))return(t=As(t,e.mode,n,null)).return=e,t;bi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?s(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null;case I:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||A(n))return null!==o?null:d(e,t,n,r,null);bi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||A(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function m(o,i,l,c){for(var s=null,u=null,d=i,m=i=0,v=null;null!==d&&m<l.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(o,d,l[m],c);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(o,d),i=a(g,i,m),null===u?s=g:u.sibling=g,u=g,d=v}if(m===l.length)return n(o,d),ii&&Jo(o,m),s;if(null===d){for(;m<l.length;m++)null!==(d=f(o,l[m],c))&&(i=a(d,i,m),null===u?s=d:u.sibling=d,u=d);return ii&&Jo(o,m),s}for(d=r(o,d);m<l.length;m++)null!==(v=h(d,o,m,l[m],c))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),i=a(v,i,m),null===u?s=v:u.sibling=v,u=v);return e&&d.forEach(function(e){return t(o,e)}),ii&&Jo(o,m),s}function v(o,l,c,s){var u=A(c);if("function"!=typeof u)throw Error(i(150));if(null==(c=u.call(c)))throw Error(i(151));for(var d=u=null,m=l,v=l=0,g=null,b=c.next();null!==m&&!b.done;v++,b=c.next()){m.index>v?(g=m,m=null):g=m.sibling;var y=p(o,m,b.value,s);if(null===y){null===m&&(m=g);break}e&&m&&null===y.alternate&&t(o,m),l=a(y,l,v),null===d?u=y:d.sibling=y,d=y,m=g}if(b.done)return n(o,m),ii&&Jo(o,v),u;if(null===m){for(;!b.done;v++,b=c.next())null!==(b=f(o,b.value,s))&&(l=a(b,l,v),null===d?u=b:d.sibling=b,d=b);return ii&&Jo(o,v),u}for(m=r(o,m);!b.done;v++,b=c.next())null!==(b=h(m,o,v,b.value,s))&&(e&&null!==b.alternate&&m.delete(null===b.key?v:b.key),l=a(b,l,v),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach(function(e){return t(o,e)}),ii&&Jo(o,v),u}return function e(r,i,a,c){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var s=a.key,u=i;null!==u;){if(u.key===s){if((s=a.type)===C){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===I&&yi(s)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=gi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===C?((i=As(a.props.children,r.mode,c,a.key)).return=r,r=i):((c=Ts(a.type,a.key,a.props,null,r.mode,c)).ref=gi(r,i,a),c.return=r,r=c)}return l(r);case S:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ls(a,r.mode,c)).return=r,r=i}return l(r);case I:return e(r,i,(u=a._init)(a._payload),c)}if(te(a))return m(r,i,a,c);if(A(a))return v(r,i,a,c);bi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Ds(a,r.mode,c)).return=r,r=i),l(r)):n(r,i)}}var wi=xi(!0),Si=xi(!1),Ci=ko(null),Oi=null,ki=null,Ei=null;function ji(){Ei=ki=Oi=null}function $i(e){var t=Ci.current;Eo(Ci),e._currentValue=t}function Pi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ni(e,t){Oi=e,Ei=ki=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(yl=!0),e.firstContext=null)}function _i(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===ki){if(null===Oi)throw Error(i(308));ki=e,Oi.dependencies={lanes:0,firstContext:e}}else ki=ki.next=e;return t}var Ii=null;function Mi(e){null===Ii?Ii=[e]:Ii.push(e)}function Ti(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ai(e,r)}function Ai(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ri=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&$c){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ai(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ai(e,n)}function Bi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fi(e,t,n,r){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,s=c.next;c.next=null,null===a?i=s:a.next=s,a=c;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=s:l.next=s,u.lastBaseUpdate=c))}if(null!==i){var d=o.baseState;for(a=0,u=s=c=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=D({},d,f);break e;case 2:Ri=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(s=u=p,c=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(c=d),o.baseState=c,o.firstBaseUpdate=s,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Rc|=a,e.lanes=a,e.memoizedState=d}}function Wi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Ki={},Ui=ko(Ki),Vi=ko(Ki),Gi=ko(Ki);function Yi(e){if(e===Ki)throw Error(i(174));return e}function Xi(e,t){switch(jo(Gi,t),jo(Vi,e),jo(Ui,Ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Ui),jo(Ui,t)}function Qi(){Eo(Ui),Eo(Vi),Eo(Gi)}function Zi(e){Yi(Gi.current);var t=Yi(Ui.current),n=ce(t,e.type);t!==n&&(jo(Vi,e),jo(Ui,n))}function Ji(e){Vi.current===e&&(Eo(Ui),Eo(Vi))}var ea=ko(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=x.ReactCurrentDispatcher,ia=x.ReactCurrentBatchConfig,aa=0,la=null,ca=null,sa=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:el,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,sa=ca=null,t.updateQueue=null,oa.current=tl,e=n(r,o)}while(da)}if(oa.current=Za,t=null!==ca&&null!==ca.next,aa=0,sa=ca=la=null,ua=!1,t)throw Error(i(300));return e}function ga(){var e=0!==fa;return fa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sa?la.memoizedState=sa=e:sa=sa.next=e,sa}function ya(){if(null===ca){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ca.next;var t=null===sa?la.memoizedState:sa.next;if(null!==t)sa=t,ca=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ca=e).memoizedState,baseState:ca.baseState,baseQueue:ca.baseQueue,queue:ca.queue,next:null},null===sa?la.memoizedState=sa=e:sa=sa.next=e}return sa}function xa(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ca,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var c=l=null,s=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(c=s=f,l=r):s=s.next=f,la.lanes|=d,Rc|=d}u=u.next}while(null!==u&&u!==a);null===s?l=r:s.next=c,lr(r,t.memoizedState)||(yl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Rc|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(yl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ca(){}function Oa(e,t){var n=la,r=ya(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,yl=!0),r=r.queue,Ra(ja.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==sa&&1&sa.memoizedState.tag){if(n.flags|=2048,_a(9,Ea.bind(null,n,r,o,t),void 0,null),null===Pc)throw Error(i(349));30&aa||ka(n,t,o)}return o}function ka(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,$a(t)&&Pa(e)}function ja(e,t,n){return n(function(){$a(t)&&Pa(e)})}function $a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Pa(e){var t=Ai(e,1);null!==t&&ns(t,e,1,-1)}function Na(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,la,e),[t.memoizedState,e]}function _a(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ia(){return ya().memoizedState}function Ma(e,t,n,r){var o=ba();la.flags|=e,o.memoizedState=_a(1|t,n,void 0,void 0===r?null:r)}function Ta(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==ca){var a=ca.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=_a(t,n,i,r))}la.flags|=e,o.memoizedState=_a(1|t,n,i,r)}function Aa(e,t){return Ma(8390656,8,e,t)}function Ra(e,t){return Ta(2048,8,e,t)}function Da(e,t){return Ta(4,2,e,t)}function La(e,t){return Ta(4,4,e,t)}function qa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!=n?n.concat([e]):null,Ta(4,4,qa.bind(null,t,e),n)}function Ba(){}function Ha(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&aa?(lr(n,t)||(n=mt(),la.lanes|=n,Rc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n)}function Ka(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function Ua(){return ya().memoizedState}function Va(e,t,n){var r=ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(e))Xa(t,n);else if(null!==(n=Ti(e,t,n,r))){ns(n,e,r,es()),Qa(n,t,r)}}function Ga(e,t,n){var r=ts(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Xa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var c=t.interleaved;return null===c?(o.next=o,Mi(t)):(o.next=c.next,c.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ti(e,t,o,r))&&(ns(n,e,r,o=es()),Qa(n,t,r))}}function Ya(e){var t=e.alternate;return e===la||null!==t&&t===la}function Xa(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Za={readContext:_i,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ja={readContext:_i,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:Aa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,qa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Va.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Na,useDebugValue:Ba,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Na(!1),t=e[0];return e=Ka.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,o=ba();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Pc)throw Error(i(349));30&aa||ka(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Aa(ja.bind(null,r,a,e),[e]),r.flags|=2048,_a(9,Ea.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=Pc.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:_i,useCallback:Ha,useContext:_i,useEffect:Ra,useImperativeHandle:za,useInsertionEffect:Da,useLayoutEffect:La,useMemo:Fa,useReducer:wa,useRef:Ia,useState:function(){return wa(xa)},useDebugValue:Ba,useDeferredValue:function(e){return Wa(ya(),ca.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Oa,useId:Ua,unstable_isNewReconciler:!1},tl={readContext:_i,useCallback:Ha,useContext:_i,useEffect:Ra,useImperativeHandle:za,useInsertionEffect:Da,useLayoutEffect:La,useMemo:Fa,useReducer:Sa,useRef:Ia,useState:function(){return Sa(xa)},useDebugValue:Ba,useDeferredValue:function(e){var t=ya();return null===ca?t.memoizedState=e:Wa(t,ca.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Oa,useId:Ua,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=qi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(ns(t,e,o,r),Bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=qi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(ns(t,e,o,r),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),o=qi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=zi(e,o,r))&&(ns(t,e,r,n),Bi(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(o,i))}function al(e,t,n){var r=!1,o=$o,i=t.contextType;return"object"==typeof i&&null!==i?i=_i(i):(o=Mo(t)?_o:Po.current,i=(r=null!=(r=t.contextTypes))?Io(e,o):$o),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function cl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=_i(i):(i=Mo(t)?_o:Po.current,o.context=Io(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rl(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Fi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function sl(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var fl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=qi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wc||(Wc=!0,Kc=r),dl(0,t)},n}function hl(e,t,n){(n=qi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Uc?Uc=new Set([this]):Uc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=ks.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=qi(-1,1)).tag=2,zi(n,t,1))),n.lanes|=1),e)}var bl=x.ReactCurrentOwner,yl=!1;function xl(e,t,n,r){t.child=null===e?Si(t,null,n,r):wi(t,e.child,n,r)}function wl(e,t,n,r,o){n=n.render;var i=t.ref;return Ni(t,o),r=va(e,t,n,r,i,o),n=ga(),null===e||yl?(ii&&n&&ti(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Is(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ts(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cl(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(a,r)&&e.ref===t.ref)return Wl(e,t,o)}return t.flags|=1,(e=Ms(i,r)).ref=t.ref,e.return=t,t.child=e}function Cl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Wl(e,t,o);131072&e.flags&&(yl=!0)}}return El(e,t,n,r,o)}function Ol(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,jo(Mc,Ic),Ic|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,jo(Mc,Ic),Ic|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},jo(Mc,Ic),Ic|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,jo(Mc,Ic),Ic|=r;return xl(e,t,o,n),t.child}function kl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function El(e,t,n,r,o){var i=Mo(n)?_o:Po.current;return i=Io(t,i),Ni(t,o),n=va(e,t,n,r,i,o),r=ga(),null===e||yl?(ii&&r&&ti(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function jl(e,t,n,r,o){if(Mo(n)){var i=!0;Do(t)}else i=!1;if(Ni(t,o),null===t.stateNode)Fl(e,t),al(t,n,r),cl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=_i(s):s=Io(t,s=Mo(n)?_o:Po.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||c!==s)&&ll(t,a,r,s),Ri=!1;var f=t.memoizedState;a.state=f,Fi(t,r,a,o),c=t.memoizedState,l!==r||f!==c||No.current||Ri?("function"==typeof u&&(rl(t,n,u,r),c=t.memoizedState),(l=Ri||il(t,n,l,r,f,c,s))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Li(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:nl(t.type,l),a.props=s,d=t.pendingProps,f=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=_i(c):c=Io(t,c=Mo(n)?_o:Po.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==c)&&ll(t,a,r,c),Ri=!1,f=t.memoizedState,a.state=f,Fi(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||No.current||Ri?("function"==typeof p&&(rl(t,n,p,r),h=t.memoizedState),(s=Ri||il(t,n,s,r,f,h,c)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=c,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return $l(e,t,n,r,i,o)}function $l(e,t,n,r,o,i){kl(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Lo(t,n,!1),Wl(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&Lo(t,n,!0),t.child}function Pl(e){var t=e.stateNode;t.pendingContext?Ao(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ao(0,t.context,!1),Xi(e,t.containerInfo)}function Nl(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xl(e,t,n,r),t.child}var _l,Il,Ml,Tl,Al={dehydrated:null,treeContext:null,retryLane:0};function Rl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dl(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,c=!!(128&t.flags);if((r=c)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),jo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=o.children,e=o.fallback,l?(o=t.mode,l=t.child,c={mode:"hidden",children:c},1&o||null===l?l=Rs(c,o,0,null):(l.childLanes=0,l.pendingProps=c),e=As(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Rl(n),t.memoizedState=Al,e):Ll(t,c));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,ql(e,t,l,r=ul(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Rs({mode:"visible",children:r.children},o,0,null),(a=As(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&wi(t,e.child,null,l),t.child.memoizedState=Rl(l),t.memoizedState=Al,a);if(!(1&t.mode))return ql(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var c=r.dgst;return r=c,ql(e,t,l,r=ul(a=Error(i(419)),r,void 0))}if(c=0!==(l&e.childLanes),yl||c){if(null!==(r=Pc)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ai(e,o),ns(r,e,o,-1))}return ms(),ql(e,t,l,r=ul(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=js.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Yo++]=Qo,Go[Yo++]=Zo,Go[Yo++]=Xo,Qo=e.id,Zo=e.overflow,Xo=t),t=Ll(t,r.children),t.flags|=4096,t)}(e,t,c,o,r,a,n);if(l){l=o.fallback,c=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&c||t.child===a?(o=Ms(a,s)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?l=Ms(r,l):(l=As(l,c,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,c=null===(c=e.child.memoizedState)?Rl(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},l.memoizedState=c,l.childLanes=e.childLanes&~n,t.memoizedState=Al,o}return e=(l=e.child).sibling,o=Ms(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ll(e,t){return(t=Rs({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function ql(e,t,n,r){return null!==r&&mi(r),wi(t,e.child,null,n),(e=Ll(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Pi(e.return,t,n)}function Bl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zl(e,n,t);else if(19===e.tag)zl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(jo(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,i);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Fl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rc|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ms(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ms(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Kl(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ul(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ul(t),null;case 1:case 17:return Mo(t.type)&&To(),Ul(t),null;case 3:return r=t.stateNode,Qi(),Eo(No),Eo(Po),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(as(ai),ai=null))),Il(e,t),Ul(t),null;case 5:Ji(t);var o=Yi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ml(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ul(t),null}if(e=Yi(Ui.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":qr("cancel",r),qr("close",r);break;case"iframe":case"object":case"embed":qr("load",r);break;case"video":case"audio":for(o=0;o<Ar.length;o++)qr(Ar[o],r);break;case"source":qr("error",r);break;case"img":case"image":case"link":qr("error",r),qr("load",r);break;case"details":qr("toggle",r);break;case"input":X(r,a),qr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},qr("invalid",r);break;case"textarea":oe(r,a),qr("invalid",r)}for(var c in be(n,a),o=null,a)if(a.hasOwnProperty(c)){var s=a[c];"children"===c?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(c)&&null!=s&&"onScroll"===c&&qr("scroll",r)}switch(n){case"input":U(r),J(r,a,!0);break;case"textarea":U(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{c=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[po]=t,e[ho]=r,_l(e,t,!1,!1),t.stateNode=e;e:{switch(c=ye(n,r),n){case"dialog":qr("cancel",e),qr("close",e),o=r;break;case"iframe":case"object":case"embed":qr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ar.length;o++)qr(Ar[o],e);o=r;break;case"source":qr("error",e),o=r;break;case"img":case"image":case"link":qr("error",e),qr("load",e),o=r;break;case"details":qr("toggle",e),o=r;break;case"input":X(e,r),o=Y(e,r),qr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=D({},r,{value:void 0}),qr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),qr("invalid",e)}for(a in be(n,o),s=o)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?ve(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=u&&"onScroll"===a&&qr("scroll",e):null!=u&&y(e,a,u,c))}switch(n){case"input":U(e),J(e,r,!1);break;case"textarea":U(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ul(t),null;case 6:if(e&&null!=t.stateNode)Tl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Yi(Gi.current),Yi(Ui.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Ul(t),null;case 13:if(Eo(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ul(t),a=!1}else null!==ai&&(as(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Tc&&(Tc=3):ms())),null!==t.updateQueue&&(t.flags|=4),Ul(t),null);case 4:return Qi(),Il(e,t),null===e&&Hr(t.stateNode.containerInfo),Ul(t),null;case 10:return $i(t.type._context),Ul(t),null;case 19:if(Eo(ea),null===(a=t.memoizedState))return Ul(t),null;if(r=!!(128&t.flags),null===(c=a.rendering))if(r)Kl(a,!1);else{if(0!==Tc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(c=ta(e))){for(t.flags|=128,Kl(a,!1),null!==(r=c.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return jo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Hc&&(t.flags|=128,r=!0,Kl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(c))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Kl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!ii)return Ul(t),null}else 2*Qe()-a.renderingStartTime>Hc&&1073741824!==n&&(t.flags|=128,r=!0,Kl(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=a.last)?n.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,jo(ea,r?1&n|2:1&n),t):(Ul(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Ic)&&(Ul(t),6&t.subtreeFlags&&(t.flags|=8192)):Ul(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gl(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&To(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Eo(No),Eo(Po),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Eo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ea),null;case 4:return Qi(),null;case 10:return $i(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}_l=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Il=function(){},Ml=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Yi(Ui.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=D({},o,{value:void 0}),r=D({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var c=o[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(c=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==c&&(null!=s||null!=c))if("style"===u)if(c){for(i in c)!c.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&c[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&qr("scroll",e),a||c===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Tl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yl=!1,Xl=!1,Ql="function"==typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Os(e,t,n)}else n.current=null}function ec(e,t,n){try{n()}catch(n){Os(e,t,n)}}var tc=!1;function nc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&ec(t,n,i)}o=o.next}while(o!==r)}}function rc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ic(e){var t=e.alternate;null!==t&&(e.alternate=null,ic(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[vo],delete t[go],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ac(e){return 5===e.tag||3===e.tag||4===e.tag}function lc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ac(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cc(e,t,n),e=e.sibling;null!==e;)cc(e,t,n),e=e.sibling}function sc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(sc(e,t,n),e=e.sibling;null!==e;)sc(e,t,n),e=e.sibling}var uc=null,dc=!1;function fc(e,t,n){for(n=n.child;null!==n;)pc(e,t,n),n=n.sibling}function pc(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||Jl(n,t);case 6:var r=uc,o=dc;uc=null,fc(e,t,n),dc=o,null!==(uc=r)&&(dc?(e=uc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):uc.removeChild(n.stateNode));break;case 18:null!==uc&&(dc?(e=uc,n=n.stateNode,8===e.nodeType?co(e.parentNode,n):1===e.nodeType&&co(e,n),Ht(e)):co(uc,n.stateNode));break;case 4:r=uc,o=dc,uc=n.stateNode.containerInfo,dc=!0,fc(e,t,n),uc=r,dc=o;break;case 0:case 11:case 14:case 15:if(!Xl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&ec(n,t,a),o=o.next}while(o!==r)}fc(e,t,n);break;case 1:if(!Xl&&(Jl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Os(n,t,e)}fc(e,t,n);break;case 21:fc(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,fc(e,t,n),Xl=r):fc(e,t,n);break;default:fc(e,t,n)}}function hc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach(function(t){var r=$s.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function mc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,c=l;e:for(;null!==c;){switch(c.tag){case 5:uc=c.stateNode,dc=!1;break e;case 3:case 4:uc=c.stateNode.containerInfo,dc=!0;break e}c=c.return}if(null===uc)throw Error(i(160));pc(a,l,o),uc=null,dc=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Os(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vc(t,e),t=t.sibling}function vc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mc(t,e),gc(e),4&r){try{nc(3,e,e.return),rc(3,e)}catch(t){Os(e,e.return,t)}try{nc(5,e,e.return)}catch(t){Os(e,e.return,t)}}break;case 1:mc(t,e),gc(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(mc(t,e),gc(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Os(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,c=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===c&&"radio"===a.type&&null!=a.name&&Q(o,a),ye(c,l);var u=ye(c,a);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?ve(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,u)}switch(c){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Os(e,e.return,t)}}break;case 6:if(mc(t,e),gc(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Os(e,e.return,t)}}break;case 3:if(mc(t,e),gc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Os(e,e.return,t)}break;case 4:default:mc(t,e),gc(e);break;case 13:mc(t,e),gc(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bc=Qe())),4&r&&hc(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(u=Xl)||d,mc(t,e),Xl=u):mc(t,e),gc(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:nc(4,p,p.return);break;case 1:Jl(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Os(r,n,e)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){wc(f);continue}}null!==h?(h.return=p,Zl=h):wc(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(c=f.stateNode,l=null!=(s=f.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,c.style.display=me("display",l))}catch(t){Os(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){Os(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:mc(t,e),gc(e),4&r&&hc(e);case 21:}}function gc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ac(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),sc(e,lc(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;cc(e,lc(e),a);break;default:throw Error(i(161))}}catch(t){Os(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bc(e,t,n){Zl=e,yc(e,t,n)}function yc(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Yl;if(!a){var l=o.alternate,c=null!==l&&null!==l.memoizedState||Xl;l=Yl;var s=Xl;if(Yl=a,(Xl=c)&&!s)for(Zl=o;null!==Zl;)c=(a=Zl).child,22===a.tag&&null!==a.memoizedState?Sc(o):null!==c?(c.return=a,Zl=c):Sc(o);for(;null!==i;)Zl=i,yc(i,t,n),i=i.sibling;Zl=o,Yl=l,Xl=s}xc(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zl=i):xc(e)}}function xc(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xl||rc(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wi(t,l,n)}break;case 5:var c=t.stateNode;if(null===n&&4&t.flags){n=c;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(i(163))}Xl||512&t.flags&&oc(t)}catch(e){Os(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function wc(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Sc(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rc(4,t)}catch(e){Os(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Os(t,o,e)}}var i=t.return;try{oc(t)}catch(e){Os(t,i,e)}break;case 5:var a=t.return;try{oc(t)}catch(e){Os(t,a,e)}}}catch(e){Os(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Cc,Oc=Math.ceil,kc=x.ReactCurrentDispatcher,Ec=x.ReactCurrentOwner,jc=x.ReactCurrentBatchConfig,$c=0,Pc=null,Nc=null,_c=0,Ic=0,Mc=ko(0),Tc=0,Ac=null,Rc=0,Dc=0,Lc=0,qc=null,zc=null,Bc=0,Hc=1/0,Fc=null,Wc=!1,Kc=null,Uc=null,Vc=!1,Gc=null,Yc=0,Xc=0,Qc=null,Zc=-1,Jc=0;function es(){return 6&$c?Qe():-1!==Zc?Zc:Zc=Qe()}function ts(e){return 1&e.mode?2&$c&&0!==_c?_c&-_c:null!==vi.transition?(0===Jc&&(Jc=mt()),Jc):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function ns(e,t,n,r){if(50<Xc)throw Xc=0,Qc=null,Error(i(185));gt(e,n,r),2&$c&&e===Pc||(e===Pc&&(!(2&$c)&&(Dc|=n),4===Tc&&ls(e,_c)),rs(e,r),1===n&&0===$c&&!(1&t.mode)&&(Hc=Qe()+500,zo&&Fo()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,c=o[a];-1===c?0!==(l&n)&&0===(l&r)||(o[a]=pt(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===Pc?_c:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){zo=!0,Ho(e)}(cs.bind(null,e)):Ho(cs.bind(null,e)),ao(function(){!(6&$c)&&Fo()}),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ps(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if(Zc=-1,Jc=0,6&$c)throw Error(i(327));var n=e.callbackNode;if(Ss()&&e.callbackNode!==n)return null;var r=ft(e,e===Pc?_c:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=vs(e,r);else{t=r;var o=$c;$c|=2;var a=hs();for(Pc===e&&_c===t||(Fc=null,Hc=Qe()+500,fs(e,t));;)try{bs();break}catch(t){ps(e,t)}ji(),kc.current=a,$c=o,null!==Nc?t=0:(Pc=null,_c=0,t=Tc)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=is(e,o))),1===t)throw n=Ac,fs(e,0),ls(e,r),rs(e,Qe()),n;if(6===t)ls(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=vs(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=is(e,a))),1!==t)))throw n=Ac,fs(e,0),ls(e,r),rs(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:ws(e,zc,Fc);break;case 3:if(ls(e,r),(130023424&r)===r&&10<(t=Bc+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(ws.bind(null,e,zc,Fc),t);break}ws(e,zc,Fc);break;case 4:if(ls(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Oc(r/1960))-r)){e.timeoutHandle=ro(ws.bind(null,e,zc,Fc),r);break}ws(e,zc,Fc);break;default:throw Error(i(329))}}}return rs(e,Qe()),e.callbackNode===n?os.bind(null,e):null}function is(e,t){var n=qc;return e.current.memoizedState.isDehydrated&&(fs(e,t).flags|=256),2!==(e=vs(e,t))&&(t=zc,zc=n,null!==t&&as(t)),e}function as(e){null===zc?zc=e:zc.push.apply(zc,e)}function ls(e,t){for(t&=~Lc,t&=~Dc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cs(e){if(6&$c)throw Error(i(327));Ss();var t=ft(e,0);if(!(1&t))return rs(e,Qe()),null;var n=vs(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=is(e,r))}if(1===n)throw n=Ac,fs(e,0),ls(e,t),rs(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ws(e,zc,Fc),rs(e,Qe()),null}function ss(e,t){var n=$c;$c|=1;try{return e(t)}finally{0===($c=n)&&(Hc=Qe()+500,zo&&Fo())}}function us(e){null!==Gc&&0===Gc.tag&&!(6&$c)&&Ss();var t=$c;$c|=1;var n=jc.transition,r=yt;try{if(jc.transition=null,yt=1,e)return e()}finally{yt=r,jc.transition=n,!(6&($c=t))&&Fo()}}function ds(){Ic=Mc.current,Eo(Mc)}function fs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Nc)for(n=Nc.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&To();break;case 3:Qi(),Eo(No),Eo(Po),ra();break;case 5:Ji(r);break;case 4:Qi();break;case 13:case 19:Eo(ea);break;case 10:$i(r.type._context);break;case 22:case 23:ds()}n=n.return}if(Pc=e,Nc=e=Ms(e.current,null),_c=Ic=t,Tc=0,Ac=null,Lc=Dc=Rc=0,zc=qc=null,null!==Ii){for(t=0;t<Ii.length;t++)if(null!==(r=(n=Ii[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ii=null}return e}function ps(e,t){for(;;){var n=Nc;try{if(ji(),oa.current=Za,ua){for(var r=la.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,sa=ca=la=null,da=!1,fa=0,Ec.current=null,null===n||null===n.return){Tc=1,Ac=t,Nc=null;break}e:{var a=e,l=n.return,c=n,s=t;if(t=_c,c.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,d=c,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,gl(h,l,c,0,t),1&h.mode&&ml(a,u,t),s=u;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(s),t.updateQueue=v}else m.add(s);break e}if(!(1&t)){ml(a,u,t),ms();break e}s=Error(i(426))}else if(ii&&1&c.mode){var g=vl(l);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gl(g,l,c,0,t),mi(sl(s,c));break e}}a=s=sl(s,c),4!==Tc&&(Tc=2),null===qc?qc=[a]:qc.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,pl(0,s,t));break e;case 1:c=s;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Uc&&Uc.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,hl(a,c,t));break e}}a=a.return}while(null!==a)}xs(n)}catch(e){t=e,Nc===n&&null!==n&&(Nc=n=n.return);continue}break}}function hs(){var e=kc.current;return kc.current=Za,null===e?Za:e}function ms(){0!==Tc&&3!==Tc&&2!==Tc||(Tc=4),null===Pc||!(268435455&Rc)&&!(268435455&Dc)||ls(Pc,_c)}function vs(e,t){var n=$c;$c|=2;var r=hs();for(Pc===e&&_c===t||(Fc=null,fs(e,t));;)try{gs();break}catch(t){ps(e,t)}if(ji(),$c=n,kc.current=r,null!==Nc)throw Error(i(261));return Pc=null,_c=0,Tc}function gs(){for(;null!==Nc;)ys(Nc)}function bs(){for(;null!==Nc&&!Ye();)ys(Nc)}function ys(e){var t=Cc(e.alternate,e,Ic);e.memoizedProps=e.pendingProps,null===t?xs(e):Nc=t,Ec.current=null}function xs(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gl(n,t)))return n.flags&=32767,void(Nc=n);if(null===e)return Tc=6,void(Nc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vl(n,t,Ic)))return void(Nc=n);if(null!==(t=t.sibling))return void(Nc=t);Nc=t=e}while(null!==t);0===Tc&&(Tc=5)}function ws(e,t,n){var r=yt,o=jc.transition;try{jc.transition=null,yt=1,function(e,t,n,r){do{Ss()}while(null!==Gc);if(6&$c)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Pc&&(Nc=Pc=null,_c=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Vc||(Vc=!0,Ps(tt,function(){return Ss(),null})),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=jc.transition,jc.transition=null;var l=yt;yt=1;var c=$c;$c|=4,Ec.current=null,function(e,t){if(eo=Wt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,c=-1,s=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(c=l+o),f!==a||0!==r&&3!==f.nodeType||(s=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(c=l),p===a&&++d===r&&(s=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===c||-1===s?null:{start:c,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?v:nl(t.type,v),g);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(e){Os(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}m=tc,tc=!1}(e,n),vc(n,e),hr(to),Wt=!!eo,to=eo=null,e.current=n,bc(n,e,o),Xe(),$c=c,yt=l,jc.transition=a}else e.current=n;if(Vc&&(Vc=!1,Gc=e,Yc=o),a=e.pendingLanes,0===a&&(Uc=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rs(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Wc)throw Wc=!1,e=Kc,Kc=null,e;!!(1&Yc)&&0!==e.tag&&Ss(),a=e.pendingLanes,1&a?e===Qc?Xc++:(Xc=0,Qc=e):Xc=0,Fo()}(e,t,n,r)}finally{jc.transition=o,yt=r}return null}function Ss(){if(null!==Gc){var e=xt(Yc),t=jc.transition,n=yt;try{if(jc.transition=null,yt=16>e?16:e,null===Gc)var r=!1;else{if(e=Gc,Gc=null,Yc=0,6&$c)throw Error(i(331));var o=$c;for($c|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(16&Zl.flags){var c=a.deletions;if(null!==c){for(var s=0;s<c.length;s++){var u=c[s];for(Zl=u;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:nc(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(ic(d),d===u){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Zl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(2048&(a=Zl).flags)switch(a.tag){case 0:case 11:case 15:nc(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zl=b;break e}Zl=a.return}}var y=e.current;for(Zl=y;null!==Zl;){var x=(l=Zl).child;if(2064&l.subtreeFlags&&null!==x)x.return=l,Zl=x;else e:for(l=y;null!==Zl;){if(2048&(c=Zl).flags)try{switch(c.tag){case 0:case 11:case 15:rc(9,c)}}catch(e){Os(c,c.return,e)}if(c===l){Zl=null;break e}var w=c.sibling;if(null!==w){w.return=c.return,Zl=w;break e}Zl=c.return}}if($c=o,Fo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,jc.transition=t}}return!1}function Cs(e,t,n){e=zi(e,t=pl(0,t=sl(n,t),1),1),t=es(),null!==e&&(gt(e,1,t),rs(e,t))}function Os(e,t,n){if(3===e.tag)Cs(e,e,n);else for(;null!==t;){if(3===t.tag){Cs(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Uc||!Uc.has(r))){t=zi(t,e=hl(t,e=sl(n,e),1),1),e=es(),null!==t&&(gt(t,1,e),rs(t,e));break}}t=t.return}}function ks(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,Pc===e&&(_c&n)===n&&(4===Tc||3===Tc&&(130023424&_c)===_c&&500>Qe()-Bc?fs(e,0):Lc|=n),rs(e,t)}function Es(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=es();null!==(e=Ai(e,t))&&(gt(e,t,n),rs(e,n))}function js(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Es(e,n)}function $s(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Es(e,n)}function Ps(e,t){return Ve(e,t)}function Ns(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _s(e,t,n,r){return new Ns(e,t,n,r)}function Is(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ms(e,t){var n=e.alternate;return null===n?((n=_s(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ts(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Is(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case C:return As(n.children,o,a,t);case O:l=8,o|=8;break;case k:return(e=_s(12,n,t,2|o)).elementType=k,e.lanes=a,e;case P:return(e=_s(13,n,t,o)).elementType=P,e.lanes=a,e;case N:return(e=_s(19,n,t,o)).elementType=N,e.lanes=a,e;case M:return Rs(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:l=10;break e;case j:l=9;break e;case $:l=11;break e;case _:l=14;break e;case I:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=_s(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function As(e,t,n,r){return(e=_s(7,e,r,t)).lanes=n,e}function Rs(e,t,n,r){return(e=_s(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Ds(e,t,n){return(e=_s(6,e,null,t)).lanes=n,e}function Ls(e,t,n){return(t=_s(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qs(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zs(e,t,n,r,o,i,a,l,c){return e=new qs(e,t,n,l,c),1===t?(t=1,!0===i&&(t|=8)):t=0,i=_s(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function Bs(e){if(!e)return $o;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mo(n))return Ro(e,n,t)}return t}function Hs(e,t,n,r,o,i,a,l,c){return(e=zs(n,r,!0,e,0,i,0,l,c)).context=Bs(null),n=e.current,(i=qi(r=es(),o=ts(n))).callback=null!=t?t:null,zi(n,i,o),e.current.lanes=o,gt(e,o,r),rs(e,r),e}function Fs(e,t,n,r){var o=t.current,i=es(),a=ts(o);return n=Bs(n),null===t.context?t.context=n:t.pendingContext=n,(t=qi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zi(o,t,a))&&(ns(e,o,a,i),Bi(e,o,a)),a}function Ws(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ks(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Us(e,t){Ks(e,t),(e=e.alternate)&&Ks(e,t)}Cc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||No.current)yl=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Pl(t),hi();break;case 5:Zi(t);break;case 1:Mo(t.type)&&Do(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;jo(Ci,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(jo(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Dl(e,t,n):(jo(ea,1&ea.current),null!==(e=Wl(e,t,n))?e.sibling:null);jo(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),jo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ol(e,t,n)}return Wl(e,t,n)}(e,t,n);yl=!!(131072&e.flags)}else yl=!1,ii&&1048576&t.flags&&ei(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fl(e,t),e=t.pendingProps;var o=Io(t,Po.current);Ni(t,n),o=va(null,t,r,e,o,n);var a=ga();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Di(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,cl(t,r,e,n),t=$l(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),xl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Is(e)?1:0;if(null!=e){if((e=e.$$typeof)===$)return 11;if(e===_)return 14}return 2}(r),e=nl(r,e),o){case 0:t=El(null,t,r,e,n);break e;case 1:t=jl(null,t,r,e,n);break e;case 11:t=wl(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,nl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,El(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,jl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Pl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Li(e,t),Fi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Nl(e,t,r,n,o=sl(Error(i(423)),t));break e}if(r!==o){t=Nl(e,t,r,n,o=sl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Wl(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),kl(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Dl(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,wl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,jo(Ci,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!No.current){t=Wl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var c=a.dependencies;if(null!==c){l=a.child;for(var s=c.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=qi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Pi(a.return,n,t),c.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),Pi(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ni(t,n),r=r(o=_i(o)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),Sl(e,t,r,o=nl(r.type,o),n);case 15:return Cl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Fl(e,t),t.tag=1,Mo(r)?(e=!0,Do(t)):e=!1,Ni(t,n),al(t,r,o),cl(t,r,o,n),$l(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return Ol(e,t,n)}throw Error(i(156,t.tag))};var Vs="function"==typeof reportError?reportError:function(e){console.error(e)};function Gs(e){this._internalRoot=e}function Ys(e){this._internalRoot=e}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function Js(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Ws(a);l.call(e)}}Fs(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Ws(a);i.call(e)}}var a=Hs(t,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=a,e[mo]=a.current,Hr(8===e.nodeType?e.parentNode:e),us(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Ws(c);l.call(e)}}var c=zs(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=c,e[mo]=c.current,Hr(8===e.nodeType?e.parentNode:e),us(function(){Fs(t,c,n,r)}),c}(n,t,e,o,r);return Ws(a)}Ys.prototype.render=Gs.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Fs(e,t,null,null)},Ys.prototype.unmount=Gs.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;us(function(){Fs(null,e,null,null)}),t[mo]=null}},Ys.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ot();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Dt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rs(t,Qe()),!(6&$c)&&(Hc=Qe()+500,Fo()))}break;case 13:us(function(){var t=Ai(e,1);if(null!==t){var n=es();ns(t,e,1,n)}}),Us(e,1)}},St=function(e){if(13===e.tag){var t=Ai(e,134217728);if(null!==t)ns(t,e,134217728,es());Us(e,134217728)}},Ct=function(e){if(13===e.tag){var t=ts(e),n=Ai(e,t);if(null!==n)ns(n,e,t,es());Us(e,t)}},Ot=function(){return yt},kt=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Se=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));V(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},$e=ss,Pe=us;var eu={usingClientEntryPoint:!1,Events:[xo,wo,So,Ee,je,ss]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xs(e))throw Error(i(299));var n=!1,r="",o=Vs;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zs(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Gs(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ke(t))?null:e.stateNode},t.flushSync=function(e){return us(e)},t.hydrate=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Vs;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Hs(t,null,e,1,null!=n?n:null,o,0,a,l),e[mo]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ys(t)},t.render=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qs(e))throw Error(i(40));return!!e._reactRootContainer&&(us(function(){Js(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},t.unstable_batchedUpdates=ss,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qs(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Js(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},2552:(e,t,n)=>{var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},2686:(e,t,n)=>{e.exports=n(4200).get},2749:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119; | |
| 37 | +/** @license React v16.13.1 | |
| 38 | + * react-is.production.min.js | |
| 39 | + * | |
| 40 | + * Copyright (c) Facebook, Inc. and its affiliates. | |
| 41 | + * | |
| 42 | + * This source code is licensed under the MIT license found in the | |
| 43 | + * LICENSE file in the root directory of this source tree. | |
| 44 | + */function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case f:case v:case m:case c:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}},2804:(e,t,n)=>{var r=n(6110)(n(9325),"Promise");e.exports=r},2810:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8805),o=n(6440),i=n(8161),a=n(8202);t.uniqBy=function(e,t=o.identity){return i.isArrayLikeObject(e)?r.uniqBy(Array.from(e),a.iteratee(t)):[]}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},2984:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2049);t.isArguments=function(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===r.getTag(e)}},3025:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toPath=function(e){const t=[],n=e.length;if(0===n)return t;let r=0,o="",i="",a=!1;for(46===e.charCodeAt(0)&&(t.push(""),r++);r<n;){const l=e[r];i?"\\"===l&&r+1<n?(r++,o+=e[r]):l===i?i="":o+=l:a?'"'===l||"'"===l?i=l:"]"===l?(a=!1,t.push(o),o=""):o+=l:"["===l?(a=!0,o&&(t.push(o),o="")):"."===l?o&&(t.push(o),o=""):o+=l,r++}return o&&t.push(o),t}},3036:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(717),o=n(1465),i=n(3923),a=n(4200),l=n(7324);t.matchesProperty=function(e,t){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=o.toKey(e)}return t=i.cloneDeep(t),function(n){const o=a.get(n,e);return void 0===o?l.has(n,e):void 0===t?void 0===o:r.isMatch(o,t)}}},3040:(e,t,n)=>{var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},3097:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3500),o=n(3998),i=n(3025);t.orderBy=function(e,t,n,a){if(null==e)return[];n=a?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=null==t?[null]:[t]),0===t.length&&(t=[null]),Array.isArray(n)||(n=null==n?[]:[n]),n=n.map(e=>String(e));const l=(e,t)=>{let n=e;for(let e=0;e<t.length&&null!=n;++e)n=n[t[e]];return n},c=t.map(e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"==typeof e||Array.isArray(e)||o.isKey(e)?e:{key:e,path:i.toPath(e)}));return e.map(e=>({original:e,criteria:c.map(t=>((e,t)=>null==t||null==e?t:"object"==typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:l(t,e.path):"function"==typeof e?e(t):Array.isArray(e)?l(t,e):"object"==typeof t?t[e]:t)(t,e))})).slice().sort((e,t)=>{for(let o=0;o<c.length;o++){const i=r.compareValues(e.criteria[o],t.criteria[o],n[o]);if(0!==i)return i}return 0}).map(e=>e.original)}},3345:e=>{e.exports=function(){return[]}},3403:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(4200);t.property=function(e){return function(t){return r.get(t,e)}}},3412:(e,t,n)=>{e.exports=n(5012).range},3500:(e,t)=>{"use strict";function n(e){return"symbol"==typeof e?1:null===e?2:void 0===e?3:e!=e?4:0}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.compareValues=(e,t,r)=>{if(e!==t){const o=n(e),i=n(t);if(o===i&&0===o){if(e<t)return"desc"===r?1:-1;if(e>t)return"desc"===r?-1:1}return"desc"===r?i-o:o-i}return 0}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},3650:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,c=(l?l.isBuffer:void 0)||o;e.exports=c},3661:(e,t,n)=>{var r=n(3040),o=n(7670),i=n(289),a=n(4509),l=n(2949);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3844:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3964);t.cloneDeep=function(e){return r.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},3908:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}},3923:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9467);t.cloneDeep=function(e){return r.cloneDeepWith(e)}},3964:(e,t,n)=>{"use strict";var r=n(8287).hp;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const o=n(6012),i=n(2049),a=n(9184),l=n(2520),c=n(3908);function s(e,t,n,o=new Map,d=void 0){const f=d?.(e,t,n,o);if(void 0!==f)return f;if(l.isPrimitive(e))return e;if(o.has(e))return o.get(e);if(Array.isArray(e)){const t=new Array(e.length);o.set(e,t);for(let r=0;r<e.length;r++)t[r]=s(e[r],r,n,o,d);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;o.set(e,t);for(const[r,i]of e)t.set(r,s(i,r,n,o,d));return t}if(e instanceof Set){const t=new Set;o.set(e,t);for(const r of e)t.add(s(r,void 0,n,o,d));return t}if(void 0!==r&&r.isBuffer(e))return e.subarray();if(c.isTypedArray(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);o.set(e,t);for(let r=0;r<e.length;r++)t[r]=s(e[r],r,n,o,d);return t}if(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return o.set(e,t),u(t,e,n,o,d),t}if("undefined"!=typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return o.set(e,t),u(t,e,n,o,d),t}if(e instanceof Blob){const t=new Blob([e],{type:e.type});return o.set(e,t),u(t,e,n,o,d),t}if(e instanceof Error){const t=new e.constructor;return o.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,u(t,e,n,o,d),t}if("object"==typeof e&&function(e){switch(i.getTag(e)){case a.argumentsTag:case a.arrayTag:case a.arrayBufferTag:case a.dataViewTag:case a.booleanTag:case a.dateTag:case a.float32ArrayTag:case a.float64ArrayTag:case a.int8ArrayTag:case a.int16ArrayTag:case a.int32ArrayTag:case a.mapTag:case a.numberTag:case a.objectTag:case a.regexpTag:case a.setTag:case a.stringTag:case a.symbolTag:case a.uint8ArrayTag:case a.uint8ClampedArrayTag:case a.uint16ArrayTag:case a.uint32ArrayTag:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return o.set(e,t),u(t,e,n,o,d),t}return e}function u(e,t,n=e,r,i){const a=[...Object.keys(t),...o.getSymbols(t)];for(let o=0;o<a.length;o++){const l=a[o],c=Object.getOwnPropertyDescriptor(e,l);(null==c||c.writable)&&(e[l]=s(t[l],l,n,r,i))}}t.cloneDeepWith=function(e,t){return s(e,void 0,e,new Map,t)},t.cloneDeepWithImpl=s,t.copyProperties=u},3998:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1366),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.isKey=function(e,t){return!Array.isArray(e)&&(!("number"!=typeof e&&"boolean"!=typeof e&&null!=e&&!r.isSymbol(e))||("string"==typeof e&&(i.test(e)||!o.test(e))||null!=t&&Object.hasOwn(t,e)))}},4128:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var l=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],l]:e._events[c].push(l):(e._events[c]=l,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},l.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},l.prototype.emit=function(e,t,r,o,i,a){var l=n?n+e:e;if(!this._events[l])return!1;var c,s,u=this._events[l],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(s=1,c=new Array(d-1);s<d;s++)c[s-1]=arguments[s];u.fn.apply(u.context,c)}else{var f,p=u.length;for(s=0;s<p;s++)switch(u[s].once&&this.removeListener(e,u[s].fn,void 0,!0),d){case 1:u[s].fn.call(u[s].context);break;case 2:u[s].fn.call(u[s].context,t);break;case 3:u[s].fn.call(u[s].context,t,r);break;case 4:u[s].fn.call(u[s].context,t,r,o);break;default:if(!c)for(f=1,c=new Array(d-1);f<d;f++)c[f-1]=arguments[f];u[s].fn.apply(u[s].context,c)}}return!0},l.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var l=this._events[i];if(l.fn)l.fn!==t||o&&!l.once||r&&l.context!==r||a(this,i);else{for(var c=0,s=[],u=l.length;c<u;c++)(l[c].fn!==t||o&&!l[c].once||r&&l[c].context!==r)&&s.push(l[c]);s.length?this._events[i]=1===s.length?s[0]:s:a(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l},4200:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8193),o=n(5112),i=n(1465),a=n(3025);t.get=function e(t,n,l){if(null==t)return l;switch(typeof n){case"string":{if(r.isUnsafeProperty(n))return l;const i=t[n];return void 0===i?o.isDeepKey(n)?e(t,a.toPath(n),l):l:i}case"number":case"symbol":{"number"==typeof n&&(n=i.toKey(n));const e=t[n];return void 0===e?l:e}default:{if(Array.isArray(n))return function(e,t,n){if(0===t.length)return n;let o=e;for(let e=0;e<t.length;e++){if(null==o)return n;if(r.isUnsafeProperty(t[e]))return n;o=o[t[e]]}if(void 0===o)return n;return o}(t,n,l);if(n=Object.is(n?.valueOf(),-0)?"-0":String(n),r.isUnsafeProperty(n))return l;const e=t[n];return void 0===e?l:e}}}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},4248:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},4259:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3097),o=n(5711),i=n(316);t.sortBy=function(e,...t){const n=t.length;return n>1&&i.isIterateeCall(e,t[0],t[1])?t=[]:n>2&&i.isIterateeCall(t[0],t[1],t[2])&&(t=[t[0]]),r.orderBy(e,o.flatten(t),["asc"])}},4297:(e,t,n)=>{e.exports=n(5259).throttle},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4353:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",c="week",s="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:d,w:c,d:l,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",x={};x[y]=v;var w="$isDayjsObject",S=function(e){return e instanceof E||!(!e||!e[w])},C=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(o=i),n&&(x[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},O=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},k=b;k.l=C,k.i=S,k.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function v(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return O(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<O(e)},g.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!k.u(t)||t,u=k.p(e),p=function(e,t){var o=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case s:return r?p(1,v):p(0,v+1);case c:var y=this.$locale().weekStart||0,x=(m<y?m+7:m)-y;return p(r?g-x:g+(6-x),v);case l:case f:return h(b+"Hours",0);case a:return h(b+"Minutes",1);case i:return h(b+"Seconds",2);case o:return h(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,c=k.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[f]=u+"Date",n[s]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],h=c===l?this.$D+(t-this.$W):t;if(c===s||c===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[k.p(e)]()},g.add=function(r,u){var f,p=this;r=Number(r);var h=k.p(u),m=function(e){var t=O(p);return k.w(t.date(t.date()+Math.round(e*r)),p)};if(h===s)return this.set(s,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return m(1);if(h===c)return m(7);var v=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,g=this.$d.getTime()+r*v;return k.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),i=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return k.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return l+1;case"MM":return k.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,s,3);case"MMMM":return d(s,l);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return k.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,p){var h,m=this,v=k.p(f),g=O(r),b=(g.utcOffset()-this.utcOffset())*t,y=this-g,x=function(){return k.m(m,g)};switch(v){case d:h=x()/12;break;case s:h=x();break;case u:h=x()/3;break;case c:h=(y-b)/6048e5;break;case l:h=(y-b)/864e5;break;case a:h=y/n;break;case i:h=y/t;break;case o:h=y/e;break;default:h=y}return p?h:k.a(h)},g.daysInMonth=function(){return this.endOf(s).$D},g.$locale=function(){return x[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),j=E.prototype;return O.prototype=j,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",d],["$D",f]].forEach(function(e){j[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),O.extend=function(e,t){return e.$i||(e(t,E,O),e.$i=!0),O},O.locale=C,O.isDayjs=S,O.unix=function(e){return O(1e3*e)},O.en=x[y],O.Ls=x,O.p={},O}()},4363:(e,t,n)=>{"use strict";n(2799)},4483:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toArray=function(e){return Array.isArray(e)?e:Array.from(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},4528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4569:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8919);t.toFinite=function(e){if(!e)return 0===e?e:0;if((e=r.toNumber(e))===1/0||e===-1/0){return(e<0?-1:1)*Number.MAX_VALUE}return e==e?e:0}},4634:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},4664:(e,t,n)=>{var r=n(9770),o=n(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=l},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},4894:(e,t,n)=>{var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4901:(e,t,n)=>{var r=n(2552),o=n(294),i=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},4905:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isObject=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},5012:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(316),o=n(4569);t.range=function(e,t,n){n&&"number"!=typeof n&&r.isIterateeCall(e,t,n)&&(t=n=void 0),e=o.toFinite(e),void 0===t?(t=e,e=0):t=o.toFinite(t),n=void 0===n?e<t?1:-1:o.toFinite(n);const i=Math.max(Math.ceil((t-e)/(n||1)),0),a=new Array(i);for(let t=0;t<i;t++)a[t]=e,e+=n;return a}},5072:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function l(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],s=n[c]||0,u="".concat(c," ").concat(s);n[c]=s+1;var d=l(u),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:v(f,t),references:1}),r.push(u)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach(function(e){t.setAttribute(e,r[e])}),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function v(e,t){var n,r,o;if(t.singleton){var i=m++;n=h||(h=s(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=s(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=l(n[r]);a[o].references--}for(var i=c(e,t),s=0;s<n.length;s++){var u=l(n[s]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},5083:(e,t,n)=>{var r=n(1882),o=n(7296),i=n(3805),a=n(7473),l=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,u=c.toString,d=s.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:l).test(a(e))}},5112:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isDeepKey=function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}},5160:(e,t,n)=>{"use strict";var r=n(6540); | |
| 50 | 45 | /** |
| 51 | 46 | * @license React |
| 52 | - * react-jsx-runtime.production.min.js | |
| 47 | + * use-sync-external-store-with-selector.production.js | |
| 53 | 48 | * |
| 54 | - * Copyright (c) Facebook, Inc. and its affiliates. | |
| 49 | + * Copyright (c) Meta Platforms, Inc. and affiliates. | |
| 55 | 50 | * |
| 56 | 51 | * This source code is licensed under the MIT license found in the |
| 57 | 52 | * LICENSE file in the root directory of this source tree. |
| 58 | - */var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,u=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},5287:function(e,t){"use strict"; | |
| 53 | + */var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,l=r.useEffect,c=r.useMemo,s=r.useDebugValue},5259:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8);t.throttle=function(e,t=0,n={}){const{leading:o=!0,trailing:i=!0}=n;return r.debounce(e,t,{leading:o,maxWait:t,trailing:i})}},5287:(e,t)=>{"use strict"; | |
| 59 | 54 | /** |
| 60 | 55 | * @license React |
| 61 | 56 | * react.production.min.js |
| 62 | 57 | * |
| @@ -63,9 +58,14 @@ | ||
| 63 | 58 | * Copyright (c) Facebook, Inc. and its affiliates. |
| 64 | 59 | * |
| 65 | 60 | * This source code is licensed under the MIT license found in the |
| 66 | 61 | * LICENSE file in the root directory of this source tree. |
| 67 | - */var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var w=y.prototype=new b;w.constructor=y,v(w,g.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var s=Array(c),u=0;u<c;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:C.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function $(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var c=!1;if(null===e)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return a=a(c=e),e=""===i?"."+$(c,0):i,x(a)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),j(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(c=0,i=""===i?".":i+":",x(e))for(var s=0;s<e.length;s++){var u=i+$(l=e[s],s);c+=j(l,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),s=0;!(l=e.next()).done;)c+=j(l=l.value,t,o,u=i+$(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function N(e,t,n){if(null==e)return e;var r=[],o=0;return j(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},M={transition:null},R={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:M,ReactCurrentOwner:C};function A(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=A,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)S.call(t,s)&&!k.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){c=Array(s);for(var u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=A,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},6540:function(e,t,n){"use strict";e.exports=n(5287)},4848:function(e,t,n){"use strict";e.exports=n(1020)},7463:function(e,t){"use strict"; | |
| 62 | + */var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var x=y.prototype=new b;x.constructor=y,m(x,g.prototype),x.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!O.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var s=Array(c),u=0;u<c;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:C.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var j=/\/+/g;function $(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function P(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var c=!1;if(null===e)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return a=a(c=e),e=""===i?"."+$(c,0):i,w(a)?(o="",null!=e&&(o=e.replace(j,"$&/")+"/"),P(a,t,o,"",function(e){return e})):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(j,"$&/")+"/")+e)),t.push(a)),1;if(c=0,i=""===i?".":i+":",w(e))for(var s=0;s<e.length;s++){var u=i+$(l=e[s],s);c+=P(l,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),s=0;!(l=e.next()).done;)c+=P(l=l.value,t,o,u=i+$(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function N(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",function(e){return t.call(n,e,o++)}),r}function _(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},M={transition:null},T={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:M,ReactCurrentOwner:C};function A(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.act=A,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)S.call(t,s)&&!O.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){c=Array(s);for(var u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:_}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=A,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5338:(e,t,n)=>{"use strict";var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5580:(e,t,n)=>{var r=n(6110)(n(9325),"DataView");e.exports=r},5606:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,c=[],s=!1,u=-1;function d(){s&&l&&(s=!1,l.length?c=l.concat(c):u=-1,c.length&&f())}function f(){if(!s){var e=a(d);s=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||s||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5708:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},c=l(n(6540)),s=l(n(961)),u=l(n(2404)),d=l(n(1574)),f=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,o){var i,a,l,c;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,o,n.unprivilegedEditor):"selection-change"===e&&(null===(c=(l=n).onEditorChangeSelection)||void 0===c||c.call(l,t,o,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!=r?r:"",n}return o(t,e),t.prototype.validateProps=function(e){var t;if(c.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(c.default.Children.count(e.children)&&"textarea"===(null===(t=c.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),i=null!=(n=e.value)?n:"";this.isEqualValue(i,o)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),a(this.cleanProps,this.dirtyProps).some(function(t){return!u.default(e[t],r.props[t])})},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some(function(n){return!u.default(e[n],t.props[n])})},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(r=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(r),p(function(){return n.setEditorSelection(l,a)})}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new d.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?u.default(e.ops,t.ops):u.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),p(function(){return n.setEditorSelection(e,r)})},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=s.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return c.default.Children.count(n)?c.default.cloneElement(c.default.Children.only(n),o):r?c.default.createElement("pre",i({},o)):c.default.createElement("div",i({},o))},t.prototype.render=function(){var e;return c.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!=e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var o,i;if(this.editor){var a=this.isDelta(this.value)?r.getContents():r.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(o=this.props).onChange)||void 0===i||i.call(o,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,o,i,a,l,c;if(this.editor){var s=this.getEditorSelection(),d=!s&&e,f=s&&!e;u.default(e,s)||(this.selection=e,null===(o=(r=this.props).onChangeSelection)||void 0===o||o.call(r,e,t,n),d?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):f&&(null===(c=(l=this.props).onBlur)||void 0===c||c.call(l,s,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=d.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(c.default.Component);function p(e){Promise.resolve().then(e)}e.exports=f},5711:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.flatten=function(e,t=1){const n=[],r=Math.floor(t),o=(e,t)=>{for(let i=0;i<e.length;i++){const a=e[i];Array.isArray(a)&&t<r?o(a,t+1):n.push(a)}};return o(e,0),n}},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5861:(e,t,n)=>{var r=n(5580),o=n(8223),i=n(2804),a=n(6545),l=n(8303),c=n(2552),s=n(7473),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=s(r),v=s(o),g=s(i),b=s(a),y=s(l),x=c;(r&&x(new r(new ArrayBuffer(1)))!=h||o&&x(new o)!=u||i&&x(i.resolve())!=d||a&&x(new a)!=f||l&&x(new l)!=p)&&(x=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case m:return h;case v:return u;case g:return d;case b:return f;case y:return p}return t}),e.exports=x},5911:(e,t,n)=>{var r=n(8859),o=n(4248),i=n(9219);e.exports=function(e,t,n,a,l,c){var s=1&n,u=e.length,d=t.length;if(u!=d&&!(s&&d>u))return!1;var f=c.get(e),p=c.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var g=e[h],b=t[h];if(a)var y=s?a(b,g,h,t,e,c):a(g,b,h,e,t,c);if(void 0!==y){if(y)continue;m=!1;break}if(v){if(!o(t,function(e,t){if(!i(v,t)&&(g===e||l(g,e,n,a,c)))return v.push(t)})){m=!1;break}}else if(g!==b&&!l(g,b,n,a,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},5950:(e,t,n)=>{var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},6009:(e,t,n)=>{e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},6012:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getSymbols=function(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},6110:(e,t,n)=>{var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},6351:(e,t,n)=>{"use strict";e.exports=n(7787)},6426:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},6440:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.identity=function(e){return e}},6449:e=>{var t=Array.isArray;e.exports=t},6452:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()(function(e){return e[1]});o.push([e.id,'/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{height:1px;left:-100000px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{word-wrap:break-word;box-sizing:border-box;height:100%;line-height:1.42;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-increment:list-0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:"";display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:none}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{margin-bottom:5px;margin-top:5px;padding:5px 10px;white-space:pre-wrap}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;padding:2px 4px;width:24px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{margin-top:-9px;position:absolute;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{border:1px solid #ccc;display:none;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}',""]);const i=o},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},6545:(e,t,n)=>{var r=n(6110)(n(9325),"Set");e.exports=r},6721:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},6761:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.eq=function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}},6773:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.debounce=function(e,t,{signal:n,edges:r}={}){let o,i=null;const a=null!=r&&r.includes("leading"),l=null==r||r.includes("trailing"),c=()=>{null!==i&&(e.apply(o,i),o=void 0,i=null)};let s=null;const u=()=>{null!=s&&clearTimeout(s),s=setTimeout(()=>{s=null,l&&c(),d()},t)},d=()=>{null!==s&&(clearTimeout(s),s=null),o=void 0,i=null},f=function(...e){if(n?.aborted)return;o=this,i=e;const t=null==s;u(),a&&t&&c()};return f.schedule=u,f.cancel=d,f.flush=()=>{c()},n?.addEventListener("abort",d,{once:!0}),f}},6942:(e,t)=>{var n; | |
| 63 | +/*! | |
| 64 | + Copyright (c) 2018 Jed Watson. | |
| 65 | + Licensed under the MIT License (MIT), see | |
| 66 | + http://jedwatson.github.io/classnames | |
| 67 | +*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6986:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}()},7068:(e,t,n)=>{var r=n(7217),o=n(5911),i=n(1986),a=n(689),l=n(5861),c=n(6449),s=n(3656),u=n(7167),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,g){var b=c(e),y=c(t),x=b?f:l(e),w=y?f:l(t),S=(x=x==d?p:x)==p,C=(w=w==d?p:w)==p,O=x==w;if(O&&s(e)){if(!s(t))return!1;b=!0,S=!1}if(O&&!S)return g||(g=new r),b||u(e)?o(e,t,n,m,v,g):i(e,t,x,n,m,v,g);if(!(1&n)){var k=S&&h.call(e,"__wrapped__"),E=C&&h.call(t,"__wrapped__");if(k||E){var j=k?e.value():e,$=E?t.value():t;return g||(g=new r),v(j,$,n,m,g)}}return!!O&&(g||(g=new r),a(e,t,n,m,v,g))}},7167:(e,t,n)=>{var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},7217:(e,t,n)=>{var r=n(79),o=n(1420),i=n(938),a=n(3605),l=n(9817),c=n(945);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=l,s.prototype.set=c,e.exports=s},7296:(e,t,n)=>{var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},7324:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(5112),o=n(8509),i=n(2984),a=n(3025);t.has=function(e,t){let n;if(n=Array.isArray(t)?t:"string"==typeof t&&r.isDeepKey(t)&&null==e?.[t]?a.toPath(t):[t],0===n.length)return!1;let l=e;for(let e=0;e<n.length;e++){const t=n[e];if(null==l||!Object.hasOwn(l,t)){if(!((Array.isArray(l)||i.isArguments(l))&&o.isIndex(t)&&t<l.length))return!1}l=l[t]}return!0}},7375:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(i)}}}()},7463:(e,t)=>{"use strict"; | |
| 68 | 68 | /** |
| 69 | 69 | * @license React |
| 70 | 70 | * scheduler.production.min.js |
| 71 | 71 | * |
| @@ -72,11 +72,116 @@ | ||
| 72 | 72 | * Copyright (c) Facebook, Inc. and its affiliates. |
| 73 | 73 | * |
| 74 | 74 | * This source code is licensed under the MIT license found in the |
| 75 | 75 | * LICENSE file in the root directory of this source tree. |
| 76 | - */function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,c=e[l],s=l+1,u=e[s];if(0>i(c,n))s<o&&0>i(u,c)?(e[r]=u,e[s]=n,r=s):(e[r]=c,e[l]=n,r=l);else{if(!(s<o&&0>i(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var s=[],u=[],d=1,f=null,p=3,h=!1,v=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(s,t)}t=r(u)}}function x(e){if(m=!1,w(e),!v)if(null!==r(s))v=!0,M(S);else{var t=r(u);null!==t&&R(x,t.startTime-e)}}function S(e,n){v=!1,m&&(m=!1,b(O),O=-1),h=!0;var i=p;try{for(w(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!j());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(s)&&o(s),w(n)}else o(s);f=r(s)}if(null!==f)var c=!0;else{var d=r(u);null!==d&&R(x,d.startTime-n),c=!1}return c}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,k=!1,E=null,O=-1,_=5,$=-1;function j(){return!(t.unstable_now()-$<_)}function N(){if(null!==E){var e=t.unstable_now();$=e;var n=!0;try{n=E(!0,e)}finally{n?C():(k=!1,E=null)}}else k=!1}if("function"==typeof y)C=function(){y(N)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,P=I.port2;I.port1.onmessage=N,C=function(){P.postMessage(null)}}else C=function(){g(N,0)};function M(e){E=e,k||(k=!0,C())}function R(e,n){O=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||h||(v=!0,M(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(s)&&e===r(u)&&(m?(b(O),O=-1):m=!0,R(x,i-a))):(e.sortIndex=l,n(s,e),v||h||(v=!0,M(S))),e},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},9982:function(e,t,n){"use strict";e.exports=n(7463)},5072:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function l(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],s=n[c]||0,u="".concat(c," ").concat(s);n[c]=s+1;var d=l(u),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:m(f,t),references:1}),r.push(u)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=s(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=s(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=l(n[r]);a[o].references--}for(var i=c(e,t),s=0;s<n.length;s++){var u=l(n[s]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},6426:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},6942:function(e,t){var n; | |
| 76 | + */function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,c=e[l],s=l+1,u=e[s];if(0>i(c,n))s<o&&0>i(u,c)?(e[r]=u,e[s]=n,r=s):(e[r]=c,e[l]=n,r=l);else{if(!(s<o&&0>i(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var s=[],u=[],d=1,f=null,p=3,h=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(s,t)}t=r(u)}}function w(e){if(v=!1,x(e),!m)if(null!==r(s))m=!0,M(S);else{var t=r(u);null!==t&&T(w,t.startTime-e)}}function S(e,n){m=!1,v&&(v=!1,b(E),E=-1),h=!0;var i=p;try{for(x(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!P());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(s)&&o(s),x(n)}else o(s);f=r(s)}if(null!==f)var c=!0;else{var d=r(u);null!==d&&T(w,d.startTime-n),c=!1}return c}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,O=!1,k=null,E=-1,j=5,$=-1;function P(){return!(t.unstable_now()-$<j)}function N(){if(null!==k){var e=t.unstable_now();$=e;var n=!0;try{n=k(!0,e)}finally{n?C():(O=!1,k=null)}}else O=!1}if("function"==typeof y)C=function(){y(N)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,I=_.port2;_.port1.onmessage=N,C=function(){I.postMessage(null)}}else C=function(){g(N,0)};function M(e){k=e,O||(O=!0,C())}function T(e,n){E=g(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,M(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(s)&&e===r(u)&&(v?(b(E),E=-1):v=!0,T(w,i-a))):(e.sortIndex=l,n(s,e),m||h||(m=!0,M(S))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],c=i[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),u=0,d=c>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,s[u++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,l=0,c=r-o;l<c;l+=a)i.push(s(e,l,l+a>c?c:l+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function s(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(c(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7534:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},7787:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"); | |
| 77 | +/** | |
| 78 | + * @license React | |
| 79 | + * react-is.production.min.js | |
| 80 | + * | |
| 81 | + * Copyright (c) Facebook, Inc. and its affiliates. | |
| 82 | + * | |
| 83 | + * This source code is licensed under the MIT license found in the | |
| 84 | + * LICENSE file in the root directory of this source tree. | |
| 85 | + */function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case d:case m:case h:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return g(e)===h}},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},7861:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(717),o=n(3844);t.matches=function(e){return e=o.cloneDeep(e),t=>r.isMatch(t,e)}},7965:(e,t,n)=>{"use strict";var r=n(6426),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,c,s,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return u}},8096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},8134:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},8161:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(58),o=n(1846);t.isArrayLikeObject=function(e){return o.isObjectLike(e)&&r.isArrayLike(e)}},8193:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isUnsafeProperty=function(e){return"__proto__"===e}},8202:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6440),o=n(3403),i=n(7861),a=n(3036);t.iteratee=function(e){if(null==e)return r.identity;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?a.matchesProperty(e[0],e[1]):i.matches(e);case"string":case"symbol":case"number":return o.property(e)}}},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},8273:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(717),o=n(4905),i=n(2520),a=n(6761);function l(e,t,n,r){if(t===e)return!0;switch(typeof t){case"object":return function(e,t,n,r){if(null==t)return!0;if(Array.isArray(t))return c(e,t,n,r);if(t instanceof Map)return function(e,t,n,r){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const[o,i]of t.entries()){if(!1===n(e.get(o),i,o,e,t,r))return!1}return!0}(e,t,n,r);if(t instanceof Set)return s(e,t,n,r);const o=Object.keys(t);if(null==e)return 0===o.length;if(0===o.length)return!0;if(r&&r.has(t))return r.get(t)===e;r&&r.set(t,e);try{for(let a=0;a<o.length;a++){const l=o[a];if(!i.isPrimitive(e)&&!(l in e))return!1;if(void 0===t[l]&&void 0!==e[l])return!1;if(null===t[l]&&null!==e[l])return!1;if(!n(e[l],t[l],l,e,t,r))return!1}return!0}finally{r&&r.delete(t)}}(e,t,n,r);case"function":return Object.keys(t).length>0?l(e,{...t},n,r):a.eq(e,t);default:return o.isObject(e)?"string"!=typeof t||""===t:a.eq(e,t)}}function c(e,t,n,r){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const o=new Set;for(let i=0;i<t.length;i++){const a=t[i];let l=!1;for(let c=0;c<e.length;c++){if(o.has(c))continue;let s=!1;if(n(e[c],a,i,e,t,r)&&(s=!0),s){o.add(c),l=!0;break}}if(!l)return!1}return!0}function s(e,t,n,r){return 0===t.size||e instanceof Set&&c([...e],[...t],n,r)}t.isMatchWith=function(e,t,n){return"function"!=typeof n?r.isMatch(e,t):l(e,t,function e(t,r,o,i,a,c){const s=n(t,r,o,i,a,c);return void 0!==s?Boolean(s):l(t,r,e,c)},new Map)},t.isSetMatch=s},8287:(e,t,n)=>{"use strict";var r=n(7526),o=n(251),i=n(4634); | |
| 77 | 86 | /*! |
| 78 | - Copyright (c) 2018 Jed Watson. | |
| 79 | - Licensed under the MIT License (MIT), see | |
| 80 | - http://jedwatson.github.io/classnames | |
| 81 | -*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},o.nc=void 0,function(){"use strict";var e=o(5338),t=o(6540),n=o.t(t,2),r=o(4848),i=(0,t.createContext)(),a=function(e){var n=e.reducer,o=e.initialState,a=e.children;return(0,r.jsx)(i.Provider,{value:(0,t.useReducer)(n,o),children:a})},l=function(){return(0,t.useContext)(i)},c="UPDATE_STATE_ITEM",s="UPDATE_SECTIONS",u="UPDATE_DATA_ITEM",d="UPDATE_DATA_OPTIONS",f="UPDATE_DATA_BLOCK_ID_ACTION",p=o(2543),h=o.n(p);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | |
| 82 | -m=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:$(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",b={};function y(){}function w(){}function x(){}var S={};s(S,a,(function(){return this}));var C=Object.getPrototypeOf,k=C&&C(C(M([])));k&&k!==n&&r.call(k,a)&&(S=k);var E=x.prototype=y.prototype=Object.create(S);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==v(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function $(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=j(l,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?g:p,s.arg===b)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=g,r.method="throw",r.arg=s.arg)}}}function j(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(v(t)+" is not iterable")}return w.prototype=x,o(E,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=s(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,s(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},O(_.prototype),s(_.prototype,l,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new _(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(E),s(E,c,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}function g(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){g(i,r,o,a,l,"next",e)}function l(e){g(i,r,o,a,l,"throw",e)}a(void 0)}))}}function y(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}function w(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C,k=o(961),E=S({},o.t(k,2)),O=E.version,_=E.render,$=E.unmountComponentAtNode;try{Number((O||"").split(".")[0])>=18&&(C=E.createRoot)}catch(e){}function j(e){var t=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===v(t)&&(t.usingClientEntryPoint=e)}var N="__rc_react_root__";function I(e,t){C?function(e,t){j(!0);var n=t[N]||C(t);j(!1),n.render(e),t[N]=n}(e,t):function(e,t){_(e,t)}(e,t)}function P(e){return M.apply(this,arguments)}function M(){return M=b(m().mark((function e(t){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[N])||void 0===e||e.unmount(),delete t[N]})));case 1:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function R(e){$(e)}function A(e){return T.apply(this,arguments)}function T(){return T=b(m().mark((function e(t){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===C){e.next=2;break}return e.abrupt("return",P(t));case 2:R(t);case 3:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}const q=t.createContext({});const L="ant",D="anticon",z=["outlined","borderless","filled"],B=t.createContext({getPrefixCls:(e,t)=>t||(e?`${L}-${e}`:L),iconPrefixCls:D}),{Consumer:F}=B;function H(e){if(Array.isArray(e))return e}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function V(e,t){if(e){if("string"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function U(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function G(e,t){return H(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||V(e,t)||U()}function Y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function K(e){return function(e){if(Array.isArray(e))return W(e)}(e)||Y(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var X=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)};function Q(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Z(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}var J="data-rc-order",ee="data-rc-priority",te="rc-util-key",ne=new Map;function re(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):te}function oe(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ie(e){return Array.from((ne.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Q())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(J,a),l&&i&&c.setAttribute(ee,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=oe(t),u=s.firstChild;if(r){if(l){var d=(t.styles||ie(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(J)))return!1;var t=Number(e.getAttribute(ee)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=oe(t);return(t.styles||ie(n)).find((function(n){return n.getAttribute(re(t))===e}))}function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=le(e,t);n&&oe(t).removeChild(n)}function se(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=oe(n),o=ie(r),i=S(S({},n),{},{styles:o});!function(e,t){var n=ne.get(e);if(!n||!Z(document,n)){var r=ae("",t),o=r.parentNode;ne.set(e,o),e.removeChild(r)}}(r,i);var a=le(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=ae(e,i);return u.setAttribute(re(i),t),u}function ue(e,n,r){var o=t.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=e(),o.current.condition=n),o.current.value}var de={},fe=[];function pe(e,t){}function he(e,t){}function ve(e,t,n){t||de[n]||(e(!1,n),de[n]=!0)}function me(e,t){ve(pe,e,t)}function ge(e,t){ve(he,e,t)}me.preMessage=function(e){fe.push(e)},me.resetWarned=function(){de={}},me.noteOnce=ge;var be=me;var ye=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(be(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===v(t)&&"object"===v(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)};function we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function Se(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ce="%";function ke(e){return e.join(Ce)}var Ee=function(){function e(t){we(this,e),w(this,"instanceId",void 0),w(this,"cache",new Map),this.instanceId=t}return Se(e,[{key:"get",value:function(e){return this.opGet(ke(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(ke(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),Oe=Ee,_e="data-token-hash",$e="data-css-hash",je="__cssinjs_instance__";function Ne(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat($e,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[je]=t[je]||e,t[je]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat($e,"]"))).forEach((function(t){var n,o=t.getAttribute($e);r[o]?t[je]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new Oe(e)}var Ie=t.createContext({hashPriority:"low",cache:Ne(),defaultCache:!0}),Pe=Ie,Me="CALC_UNIT";new RegExp(Me,"g");var Re=function(){function e(){we(this,e),w(this,"cache",void 0),w(this,"keys",void 0),w(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Se(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 o=this.keys.reduce((function(e,t){var n=G(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=G(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();w(Re,"MAX_CACHE_SIZE",20),w(Re,"MAX_CACHE_OFFSET",5);var Ae=0,Te=function(){function e(t){we(this,e),w(this,"derivatives",void 0),w(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ae,0===t.length&&t.length,Ae+=1}return Se(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),qe=new Re;function Le(e){var t=Array.isArray(e)?e:[e];return qe.has(t)||qe.set(t,new Te(t)),qe.get(t)}var De=new WeakMap,ze={};var Be=new WeakMap;function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Be.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof Te?n+=o.id:o&&"object"===v(o)?n+=Fe(o,t):n+=o})),t&&(n=X(n)),Be.set(e,n)),n}function He(e,t){return X("".concat(t,"_").concat(Fe(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var We=Q();function Ve(e){return"number"==typeof e?"".concat(e,"px"):e}function Ue(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=S(S({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},w(w({},_e,t),$e,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Ge=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()},Ye=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=G(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Ke=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=G(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=Ge(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,Ye(r,t,{scope:null==n?void 0:n.scope})]},Xe=Q()?t.useLayoutEffect:t.useEffect,Qe=function(e,n){var r=t.useRef(!0);Xe((function(){return e(r.current)}),n),Xe((function(){return r.current=!1,function(){r.current=!0}}),[])},Ze=function(e,t){Qe((function(t){if(!t)return e()}),t)},Je=Qe,et=S({},n).useInsertionEffect,tt=et?function(e,t,n){return et((function(){return e(),t()}),n)}:function(e,n,r){t.useMemo(e,r),Je((function(){return n(!0)}),r)},nt=void 0!==S({},n).useInsertionEffect?function(e){var n=[],r=!1;return t.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),e),function(e){r||n.push(e)}}:function(){return function(e){e()}};var rt=function(){return!1};function ot(e,n,r,o,i){var a=t.useContext(Pe).cache,l=ke([e].concat(K(n))),c=nt([l]),s=(rt(),function(e){a.opUpdate(l,(function(t){var n=G(t||[void 0,void 0],2),o=n[0];var i=[void 0===o?0:o,n[1]||r()];return e?e(i):i}))});t.useMemo((function(){s()}),[l]);var u=a.opGet(l)[1];return tt((function(){null==i||i(u)}),(function(e){return s((function(t){var n=G(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(u)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=G(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null==o||o(s,!1)})),null):[i-1,s]}))}}),[l]),u}var it={},at="css",lt=new Map;var ct=0;function st(e,t){lt.set(e,(lt.get(e)||0)-1);var n=Array.from(lt.keys()),r=n.filter((function(e){return(lt.get(e)||0)<=0}));n.length-r.length>ct&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(_e,'="').concat(e,'"]')).forEach((function(e){var n;e[je]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),lt.delete(e)}))}var ut=function(e,t,n,r){var o=S(S({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},dt="token";function ft(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,t.useContext)(Pe),i=o.cache.instanceId,a=o.container,l=r.salt,c=void 0===l?"":l,s=r.override,u=void 0===s?it:s,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,h=function(e,t){for(var n=De,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(ze)||n.set(ze,e()),n.get(ze)}((function(){return Object.assign.apply(Object,[{}].concat(K(n)))}),n),v=Fe(h),m=Fe(u),g=p?Fe(p):"",b=ot(dt,[c,e.id,v,m,g],(function(){var t,n=f?f(h,u,e):ut(h,u,e,d),r=S({},n),o="";if(p){var i=G(Ke(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=He(n,c);n._tokenKey=a,r._tokenKey=He(r,c);var l=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=l,function(e){lt.set(e,(lt.get(e)||0)+1)}(l);var s="".concat(at,"-").concat(X(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]}),(function(e){st(e[0]._themeKey,i)}),(function(e){var t=G(e,4),n=t[0],r=t[3];if(p&&r){var o=se(r,X("css-variables-".concat(n._themeKey)),{mark:$e,prepend:"queue",attachTo:a,priority:-999});o[je]=i,o.setAttribute(_e,n._themeKey)}}));return b}function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pt.apply(null,arguments)}var ht={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},vt="comm",mt="rule",gt="decl",bt="@import",yt="@keyframes",wt="@layer",xt=Math.abs,St=String.fromCharCode;Object.assign;function Ct(e){return e.trim()}function kt(e,t,n){return e.replace(t,n)}function Et(e,t,n){return e.indexOf(t,n)}function Ot(e,t){return 0|e.charCodeAt(t)}function _t(e,t,n){return e.slice(t,n)}function $t(e){return e.length}function jt(e,t){return t.push(e),e}function Nt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function It(e,t,n,r){switch(e.type){case wt:if(e.children.length)break;case bt:case gt:return e.return=e.return||e.value;case vt:return"";case yt:return e.return=e.value+"{"+Nt(e.children,r)+"}";case mt:if(!$t(e.value=e.props.join(",")))return""}return $t(n=Nt(e.children,r))?e.return=e.value+"{"+n+"}":""}var Pt=1,Mt=1,Rt=0,At=0,Tt=0,qt="";function Lt(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Pt,column:Mt,length:a,return:"",siblings:l}}function Dt(){return Tt=At>0?Ot(qt,--At):0,Mt--,10===Tt&&(Mt=1,Pt--),Tt}function zt(){return Tt=At<Rt?Ot(qt,At++):0,Mt++,10===Tt&&(Mt=1,Pt++),Tt}function Bt(){return Ot(qt,At)}function Ft(){return At}function Ht(e,t){return _t(qt,e,t)}function Wt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Vt(e){return Pt=Mt=1,Rt=$t(qt=e),At=0,[]}function Ut(e){return qt="",e}function Gt(e){return Ct(Ht(At-1,Xt(91===e?e+2:40===e?e+1:e)))}function Yt(e){for(;(Tt=Bt())&&Tt<33;)zt();return Wt(e)>2||Wt(Tt)>3?"":" "}function Kt(e,t){for(;--t&&zt()&&!(Tt<48||Tt>102||Tt>57&&Tt<65||Tt>70&&Tt<97););return Ht(e,Ft()+(t<6&&32==Bt()&&32==zt()))}function Xt(e){for(;zt();)switch(Tt){case e:return At;case 34:case 39:34!==e&&39!==e&&Xt(Tt);break;case 40:41===e&&Xt(e);break;case 92:zt()}return At}function Qt(e,t){for(;zt()&&e+Tt!==57&&(e+Tt!==84||47!==Bt()););return"/*"+Ht(t,At-1)+"*"+St(47===e?e:zt())}function Zt(e){for(;!Wt(Bt());)zt();return Ht(e,At)}function Jt(e){return Ut(en("",null,null,null,[""],e=Vt(e),0,[0],e))}function en(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,h=0,v=1,m=1,g=1,b=0,y="",w=o,x=i,S=r,C=y;m;)switch(h=b,b=zt()){case 40:if(108!=h&&58==Ot(C,d-1)){-1!=Et(C+=kt(Gt(b),"&","&\f"),"&\f",xt(s?l[s-1]:0))&&(g=-1);break}case 34:case 39:case 91:C+=Gt(b);break;case 9:case 10:case 13:case 32:C+=Yt(h);break;case 92:C+=Kt(Ft()-1,7);continue;case 47:switch(Bt()){case 42:case 47:jt(nn(Qt(zt(),Ft()),t,n,c),c);break;default:C+="/"}break;case 123*v:l[s++]=$t(C)*g;case 125*v:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==g&&(C=kt(C,/\f/g,"")),p>0&&$t(C)-d&&jt(p>32?rn(C+";",r,n,d-1,c):rn(kt(C," ","")+";",r,n,d-2,c),c);break;case 59:C+=";";default:if(jt(S=tn(C,t,n,s,u,o,l,y,w=[],x=[],d,i),i),123===b)if(0===u)en(C,t,S,S,w,i,d,l,x);else switch(99===f&&110===Ot(C,3)?100:f){case 100:case 108:case 109:case 115:en(e,S,S,r&&jt(tn(e,S,S,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:en(C,S,S,S,[""],x,0,l,x)}}s=u=p=0,v=g=1,y=C="",d=a;break;case 58:d=1+$t(C),p=h;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==Dt())continue;switch(C+=St(b),b*v){case 38:g=u>0?1:(C+="\f",-1);break;case 44:l[s++]=($t(C)-1)*g,g=1;break;case 64:45===Bt()&&(C+=Gt(zt())),f=Bt(),u=d=$t(y=C+=Zt(Ft())),b++;break;case 45:45===h&&2==$t(C)&&(v=0)}}return i}function tn(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),v=0,m=0,g=0;v<r;++v)for(var b=0,y=_t(e,f+1,f=xt(m=a[v])),w=e;b<h;++b)(w=Ct(m>0?p[b]+" "+y:kt(y,/&\f/g,p[b])))&&(c[g++]=w);return Lt(e,t,n,0===o?mt:l,c,s,u,d)}function nn(e,t,n,r){return Lt(e,t,n,vt,St(Tt),_t(e,2,-2),0,r)}function rn(e,t,n,r,o){return Lt(e,t,n,gt,_t(e,0,r),_t(e,r+1,-1),r,o)}var on,an="data-ant-cssinjs-cache-path",ln="_FILE_STYLE__";var cn=!0;function sn(e){return function(){if(!on&&(on={},Q())){var e=document.createElement("div");e.className=an,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=G(e.split(":"),2),n=t[0],r=t[1];on[n]=r}));var n,r=document.querySelector("style[".concat(an,"]"));r&&(cn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!on[e]}var un="_multi_value_";function dn(e){return Nt(Jt(e),It).replace(/\{%%%\:[^;];}/g,";")}var fn=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:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function h(t){var r=t.getName(l);if(!p[r]){var o=G(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var m=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]);return m.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=d.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(c).forEach((function(t){var r=c[t];if("object"!==v(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===v(e)&&e&&("_skip_check_"in e||un in e)}(r)){var u;function C(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;ht[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===v(r)&&null!=r&&r[un]&&Array.isArray(d)?d.forEach((function(e){C(t,e)})):C(t,d)}else{var m=!1,g=t.trim(),b=!1;(o||i)&&l?g.startsWith("@")?m=!0:g=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(K(n.slice(1))).join(" ")})).join(",")}(t,l,s):!o||l||"&"!==g&&""!==g||(g="",b=!0);var y=G(e(r,n,{root:b,injectHash:m,parentSelectors:[].concat(K(a),[g])}),2),w=y[0],x=y[1];p=S(S({},p),x),f+="".concat(g).concat(w)}}))}})),o?c&&(f="@layer ".concat(c.name," {").concat(f,"}"),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,p]};function pn(e,t){return X("".concat(e.join("%")).concat(t))}function hn(){return null}var vn="style";function mn(e,n){var r=e.token,o=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=t.useContext(Pe),f=d.autoClear,p=(d.mock,d.defaultCache),h=d.hashPriority,v=d.container,m=d.ssrInline,g=d.transformers,b=d.linters,y=d.cache,x=d.layer,C=r._tokenKey,k=[C];x&&k.push("layer"),k.push.apply(k,K(o));var E=We;var O=ot(vn,k,(function(){var e=k.join("|");if(sn(e)){var t=function(e){var t=on[e],n=null;if(t&&Q())if(cn)n=ln;else{var r=document.querySelector("style[".concat($e,'="').concat(on[e],'"]'));r?n=r.innerHTML:delete on[e]}return[n,t]}(e),r=G(t,2),l=r[0],s=r[1];if(l)return[l,C,s,{},c,u]}var d=n(),f=G(fn(d,{hashId:i,hashPriority:h,layer:x?a:void 0,path:o.join("-"),transformers:g,linters:b}),2),p=f[0],v=f[1],m=dn(p),y=pn(k,m);return[m,C,y,v,c,u]}),(function(e,t){var n=G(e,3)[2];(t||f)&&We&&ce(n,{mark:$e})}),(function(e){var t=G(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(E&&n!==ln){var i={mark:$e,prepend:!x&&"queue",attachTo:v,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){se(dn(o[e]),"_layer-".concat(e),S(S({},i),{},{prepend:!0}))}));var d=se(n,r,i);d[je]=y.instanceId,d.setAttribute(_e,C),s.forEach((function(e){se(dn(o[e]),"_effect-".concat(e),i)}))}})),_=G(O,3),$=_[0],j=_[1],N=_[2];return function(e){var n;return n=m&&!E&&p?t.createElement("style",pt({},w(w({},_e,j),$e,N),{dangerouslySetInnerHTML:{__html:$}})):t.createElement(hn,null),t.createElement(t.Fragment,null,n,e)}}var gn="cssVar",bn=function(e,n){var r=e.key,o=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=(0,t.useContext)(Pe),d=u.cache.instanceId,f=u.container,p=l._tokenKey,h=[].concat(K(e.path),[r,s,p]),v=ot(gn,h,(function(){var e=n(),t=G(Ke(e,r,{prefix:o,unitless:i,ignore:a,scope:s}),2),l=t[0],c=t[1];return[l,c,pn(h,c),r]}),(function(e){var t=G(e,3)[2];We&&ce(t,{mark:$e})}),(function(e){var t=G(e,3),n=t[1],o=t[2];if(n){var i=se(n,o,{mark:$e,prepend:"queue",attachTo:f,priority:-999});i[je]=d,i.setAttribute(_e,r)}}));return v};w(w(w({},vn,(function(e,t,n){var r=G(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=Ue(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Ue(dn(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),dt,(function(e,t,n){var r=G(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,Ue(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),gn,(function(e,t,n){var r=G(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Ue(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var yn=function(){function e(t,n){we(this,e),w(this,"name",void 0),w(this,"style",void 0),w(this,"_keyframe",!0),this.name=t,this.style=n}return Se(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}(),wn=yn;function xn(e){return e.notSplit=!0,e}xn(["borderTop","borderBottom"]),xn(["borderTop"]),xn(["borderBottom"]),xn(["borderLeft","borderRight"]),xn(["borderLeft"]),xn(["borderRight"]);var Sn=(0,t.createContext)({});function Cn(e){return H(e)||Y(e)||V(e)||U()}function kn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function En(e,t,n,r){if(!t.length)return n;var o,i=Cn(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?K(e):S({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=En(o[a],l,n,r),o}function On(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!kn(e,t.slice(0,-1))?e:En(e,t,n,r)}function _n(e){return Array.isArray(e)?[]:{}}var $n="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function jn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=_n(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=kn(e,n),c=Array.isArray(l);if(c||"object"===v(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=kn(r,n);c?r=On(r,n,[]):s&&"object"===v(s)||(r=On(r,n,_n(l))),$n(l).forEach((function(e){t([].concat(K(n),[e]),a)}))}}else r=On(r,n,l)}([])})),r}function Nn(){}const In=t.createContext({}),Pn=()=>{const e=()=>{};return e.deprecated=Nn,e};var Mn=(0,t.createContext)(void 0),Rn={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"},An=S(S({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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 Tn={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var qn={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"]},An),timePickerLocale:Object.assign({},Tn)};const Ln="${label} is not a valid ${type}";var Dn={locale:"en",Pagination:Rn,DatePicker:qn,TimePicker:Tn,Calendar:qn,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:Ln,method:Ln,array:Ln,object:Ln,number:Ln,date:Ln,boolean:Ln,integer:Ln,float:Ln,regexp:Ln,email:Ln,url:Ln,hex:Ln},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let zn=Object.assign({},Dn.Modal),Bn=[];const Fn=()=>Bn.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Dn.Modal);function Hn(){return zn}var Wn=(0,t.createContext)(void 0);var Vn=e=>{const{locale:n={},children:r,_ANT_MARK__:o}=e;t.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Bn.push(t),zn=Fn(),()=>{Bn=Bn.filter((e=>e!==t)),zn=Fn()}}zn=Object.assign({},Dn.Modal)}(null==n?void 0:n.Modal);return e}),[n]);const i=t.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return t.createElement(Wn.Provider,{value:i},r)};function Un(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Gn(e){return Math.min(1,Math.max(0,e))}function Yn(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Kn(e){return e<=1?"".concat(100*Number(e),"%"):e}function Xn(e){return 1===e.length?"0"+e:String(e)}function Qn(e,t,n){e=Un(e,255),t=Un(t,255),n=Un(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function Zn(e,t,n){return n<0&&(n+=1),n>1&&(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 Jn(e,t,n){e=Un(e,255),t=Un(t,255),n=Un(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function er(e,t,n,r){var o=[Xn(Math.round(e).toString(16)),Xn(Math.round(t).toString(16)),Xn(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function tr(e){return Math.round(255*parseFloat(e)).toString(16)}function nr(e){return rr(e)/255}function rr(e){return parseInt(e,16)}var or={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"};function ir(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(or[e])e=or[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=sr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=sr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=sr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=sr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=sr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=sr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=sr.hex8.exec(e),n)return{r:rr(n[1]),g:rr(n[2]),b:rr(n[3]),a:nr(n[4]),format:t?"name":"hex8"};if(n=sr.hex6.exec(e),n)return{r:rr(n[1]),g:rr(n[2]),b:rr(n[3]),format:t?"name":"hex"};if(n=sr.hex4.exec(e),n)return{r:rr(n[1]+n[1]),g:rr(n[2]+n[2]),b:rr(n[3]+n[3]),a:nr(n[4]+n[4]),format:t?"name":"hex8"};if(n=sr.hex3.exec(e),n)return{r:rr(n[1]+n[1]),g:rr(n[2]+n[2]),b:rr(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(ur(e.r)&&ur(e.g)&&ur(e.b)?(t=function(e,t,n){return{r:255*Un(e,255),g:255*Un(t,255),b:255*Un(n,255)}}(e.r,e.g,e.b),a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):ur(e.h)&&ur(e.s)&&ur(e.v)?(r=Kn(e.s),o=Kn(e.v),t=function(e,t,n){e=6*Un(e,360),t=Un(t,100),n=Un(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,r,o),a=!0,l="hsv"):ur(e.h)&&ur(e.s)&&ur(e.l)&&(r=Kn(e.s),i=Kn(e.l),t=function(e,t,n){var r,o,i;if(e=Un(e,360),t=Un(t,100),n=Un(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Zn(l,a,e+1/3),o=Zn(l,a,e),i=Zn(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Yn(n),{ok:a,format:e.format||l,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}}var ar="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),lr="[\\s|\\(]+(".concat(ar,")[,|\\s]+(").concat(ar,")[,|\\s]+(").concat(ar,")\\s*\\)?"),cr="[\\s|\\(]+(".concat(ar,")[,|\\s]+(").concat(ar,")[,|\\s]+(").concat(ar,")[,|\\s]+(").concat(ar,")\\s*\\)?"),sr={CSS_UNIT:new RegExp(ar),rgb:new RegExp("rgb"+lr),rgba:new RegExp("rgba"+cr),hsl:new RegExp("hsl"+lr),hsla:new RegExp("hsla"+cr),hsv:new RegExp("hsv"+lr),hsva:new RegExp("hsva"+cr),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 ur(e){return Boolean(sr.CSS_UNIT.exec(String(e)))}var dr=2,fr=.16,pr=.05,hr=.05,vr=.15,mr=5,gr=4,br=[{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 yr(e){var t=Jn(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function wr(e){var t=e.r,n=e.g,r=e.b;return"#".concat(er(t,n,r,!1))}function xr(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-dr*t:Math.round(e.h)+dr*t:n?Math.round(e.h)+dr*t:Math.round(e.h)-dr*t)<0?r+=360:r>=360&&(r-=360),r}function Sr(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-fr*t:t===gr?e.s+fr:e.s+pr*t)>1&&(r=1),n&&t===mr&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Cr(e,t,n){var r;return(r=n?e.v+hr*t:e.v-vr*t)>1&&(r=1),Number(r.toFixed(2))}function kr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=ir(e),o=mr;o>0;o-=1){var i=yr(r),a=wr(ir({h:xr(i,o,!0),s:Sr(i,o,!0),v:Cr(i,o,!0)}));n.push(a)}n.push(wr(r));for(var l=1;l<=gr;l+=1){var c=yr(r),s=wr(ir({h:xr(c,l),s:Sr(c,l),v:Cr(c,l)}));n.push(s)}return"dark"===t.theme?br.map((function(e){var r=e.index,o=e.opacity,i=wr(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}(ir(t.backgroundColor||"#141414"),ir(n[r]),100*o));return i})):n}var Er={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"},Or=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Or.primary=Or[5];var _r=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];_r.primary=_r[5];var $r=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];$r.primary=$r[5];var jr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];jr.primary=jr[5];var Nr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Nr.primary=Nr[5];var Ir=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ir.primary=Ir[5];var Pr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Pr.primary=Pr[5];var Mr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Mr.primary=Mr[5];var Rr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Rr.primary=Rr[5];var Ar=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ar.primary=Ar[5];var Tr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Tr.primary=Tr[5];var qr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];qr.primary=qr[5];var Lr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Lr.primary=Lr[5];var Dr={red:Or,volcano:_r,orange:$r,gold:jr,yellow:Nr,lime:Ir,green:Pr,cyan:Mr,blue:Rr,geekblue:Ar,purple:Tr,magenta:qr,grey:Lr},zr=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];zr.primary=zr[5];var Br=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Br.primary=Br[5];var Fr=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Fr.primary=Fr[5];var Hr=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Hr.primary=Hr[5];var Wr=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Wr.primary=Wr[5];var Vr=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Vr.primary=Vr[5];var Ur=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Ur.primary=Ur[5];var Gr=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Gr.primary=Gr[5];var Yr=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Yr.primary=Yr[5];var Kr=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Kr.primary=Kr[5];var Xr=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Xr.primary=Xr[5];var Qr=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Qr.primary=Qr[5];var Zr=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Zr.primary=Zr[5];const Jr={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"};var eo=Object.assign(Object.assign({},Jr),{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}),to=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=ir(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.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=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Yn(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Jn(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Jn(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Qn(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Qn(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),er(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i=[Xn(Math.round(e).toString(16)),Xn(Math.round(t).toString(16)),Xn(Math.round(n).toString(16)),Xn(tr(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Un(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Un(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+er(this.r,this.g,this.b,!1),t=0,n=Object.entries(or);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,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()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Gn(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Gn(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Gn(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Gn(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();var no=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 ro=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function oo(e){return(e+8)/e}var io=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:oo(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const ao=(e,t)=>new to(e).setAlpha(t).toRgbString(),lo=(e,t)=>new to(e).darken(t).toHexString(),co=e=>{const t=kr(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]}},so=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ao(r,.88),colorTextSecondary:ao(r,.65),colorTextTertiary:ao(r,.45),colorTextQuaternary:ao(r,.25),colorFill:ao(r,.15),colorFillSecondary:ao(r,.06),colorFillTertiary:ao(r,.04),colorFillQuaternary:ao(r,.02),colorBgLayout:lo(n,4),colorBgContainer:lo(n,0),colorBgElevated:lo(n,0),colorBgSpotlight:ao(r,.85),colorBgBlur:"transparent",colorBorder:lo(n,15),colorBorderSecondary:lo(n,6)}};const uo=Le((function(e){Er.pink=Er.magenta,Dr.pink=Dr.magenta;const t=Object.keys(Jr).map((t=>{const n=e[t]===Er[t]?Dr[t]:kr(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),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(o),p=n(i),h=n(a),v=n(l),m=r(s,u),g=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},m),{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:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgActive:h[3],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:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[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:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new to("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:co,generateNeutralColorPalettes:so})),io(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)),ro(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},no(r))}(e))})),fo={token:eo,override:{override:eo},hashed:!0},po=t.createContext(fo),ho=`-ant-${Date.now()}-${Math.random()}`;function vo(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 to(e),i=kr(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new to(t.primaryColor),i=kr(e.toRgbString());i.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 a=new to(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");const i=Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`));return`\n :root {\n ${i.join("\n")}\n }\n `.trim()}(e,t);Q()&&se(n,`${ho}-dynamic-theme`)}const mo=t.createContext(!1),go=e=>{let{children:n,disabled:r}=e;const o=t.useContext(mo);return t.createElement(mo.Provider,{value:null!=r?r:o},n)};var bo=mo;const yo=t.createContext(void 0),wo=e=>{let{children:n,size:r}=e;const o=t.useContext(yo);return t.createElement(yo.Provider,{value:r||o},n)};var xo=yo;var So=function(){return{componentDisabled:(0,t.useContext)(bo),componentSize:(0,t.useContext)(xo)}};const Co=Object.assign({},n),{useId:ko}=Co;var Eo=void 0===ko?()=>"":ko;var Oo=o(6942),_o=o.n(Oo);function $o(e){return e instanceof HTMLElement||e instanceof SVGElement}function jo(e){var n,r=function(e){return e&&"object"===v(e)&&$o(e.nativeElement)?e.nativeElement:$o(e)?e:null}(e);return r||(e instanceof t.Component?null===(n=k.findDOMNode)||void 0===n?void 0:n.call(k,e):null)}var No=o(6351),Io=function(e,t){"function"==typeof e?e(t):"object"===v(e)&&e&&"current"in e&&(e.current=t)},Po=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){Io(t,e)}))}},Mo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ue((function(){return Po.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},Ro=function(e){var t,n,r=(0,No.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===No.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===No.ForwardRef)};function Ao(e){return(0,t.isValidElement)(e)&&!(0,No.isFragment)(e)}Number(t.version.split(".")[0]);function To(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var qo=["children"],Lo=t.createContext({});function Do(e){var n=e.children,r=To(e,qo);return t.createElement(Lo.Provider,{value:r},n)}function zo(e,t){return zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zo(e,t)}function Bo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zo(e,t)}function Fo(e){return Fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fo(e)}function Ho(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ho=function(){return!!e})()}function Wo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vo(e,t){if(t&&("object"==v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wo(e)}function Uo(e){var t=Ho();return function(){var n,r=Fo(e);if(t){var o=Fo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vo(this,n)}}var Go=function(e){Bo(n,e);var t=Uo(n);function n(){return we(this,n),t.apply(this,arguments)}return Se(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component),Yo=Go;function Ko(e){var n=t.useRef();n.current=e;var r=t.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}function Xo(e){var n=t.useRef(!1),r=G(t.useState(e),2),o=r[0],i=r[1];return t.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||i(e)}]}function Qo(e){return void 0!==e}function Zo(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=G(Xo((function(){return Qo(o)?o:Qo(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=Ko(i),p=G(Xo([u]),2),h=p[0],v=p[1];return Ze((function(){var e=h[0];c!==e&&f(c,e)}),[h]),Ze((function(){Qo(o)||s(o)}),[o]),[d,Ko((function(e,t){s(e,t),v([u],t)}))]}var Jo="none",ei="appear",ti="enter",ni="leave",ri="none",oi="prepare",ii="start",ai="active",li="end",ci="prepared";function si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var ui=function(e,t){var n={animationend:si("Animation","AnimationEnd"),transitionend:si("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Q(),"undefined"!=typeof window?window:{}),di={};if(Q()){var fi=document.createElement("div");di=fi.style}var pi={};function hi(e){if(pi[e])return pi[e];var t=ui[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in di)return pi[e]=t[i],pi[e]}return""}var vi=hi("animationend"),mi=hi("transitionend"),gi=!(!vi||!mi),bi=vi||"animationend",yi=mi||"transitionend";function wi(e,t){if(!e)return null;if("object"===v(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var xi=function(e){var n=(0,t.useRef)();function r(t){t&&(t.removeEventListener(yi,e),t.removeEventListener(bi,e))}return t.useEffect((function(){return function(){r(n.current)}}),[]),[function(t){n.current&&n.current!==t&&r(n.current),t&&t!==n.current&&(t.addEventListener(yi,e),t.addEventListener(bi,e),n.current=t)},r]},Si=Q()?t.useLayoutEffect:t.useEffect,Ci=function(e){return+setTimeout(e,16)},ki=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ci=function(e){return window.requestAnimationFrame(e)},ki=function(e){return window.cancelAnimationFrame(e)});var Ei=0,Oi=new Map;function _i(e){Oi.delete(e)}var $i=function(e){var t=Ei+=1;return function n(r){if(0===r)_i(t),e();else{var o=Ci((function(){n(r-1)}));Oi.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};$i.cancel=function(e){var t=Oi.get(e);return _i(e),ki(t)};var ji=$i,Ni=[oi,ii,ai,li],Ii=[oi,ci],Pi=!1,Mi=!0;function Ri(e){return e===ai||e===li}var Ai=function(e,n,r){var o=G(Xo(ri),2),i=o[0],a=o[1],l=function(){var e=t.useRef(null);function n(){ji.cancel(e.current)}return t.useEffect((function(){return function(){n()}}),[]),[function t(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=ji((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):t(r,o-1)}));e.current=i},n]}(),c=G(l,2),s=c[0],u=c[1];var d=n?Ii:Ni;return Si((function(){if(i!==ri&&i!==li){var e=d.indexOf(i),t=d[e+1],n=r(i);n===Pi?a(t,!0):t&&s((function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[e,i]),t.useEffect((function(){return function(){u()}}),[]),[function(){a(oi,!0)},i]};function Ti(e,n,r,o){var i=o.motionEnter,a=void 0===i||i,l=o.motionAppear,c=void 0===l||l,s=o.motionLeave,u=void 0===s||s,d=o.motionDeadline,f=o.motionLeaveImmediately,p=o.onAppearPrepare,h=o.onEnterPrepare,v=o.onLeavePrepare,m=o.onAppearStart,g=o.onEnterStart,b=o.onLeaveStart,y=o.onAppearActive,x=o.onEnterActive,C=o.onLeaveActive,k=o.onAppearEnd,E=o.onEnterEnd,O=o.onLeaveEnd,_=o.onVisibleChanged,$=G(Xo(),2),j=$[0],N=$[1],I=function(e){var n=G(t.useReducer((function(e){return e+1}),0),2)[1],r=t.useRef(e);return[Ko((function(){return r.current})),Ko((function(e){r.current="function"==typeof e?e(r.current):e,n()}))]}(Jo),P=G(I,2),M=P[0],R=P[1],A=G(Xo(null),2),T=A[0],q=A[1],L=M(),D=(0,t.useRef)(!1),z=(0,t.useRef)(null);function B(){return r()}var F=(0,t.useRef)(!1);function H(){R(Jo),q(null,!0)}var W=Ko((function(e){var t=M();if(t!==Jo){var n=B();if(!e||e.deadline||e.target===n){var r,o=F.current;t===ei&&o?r=null==k?void 0:k(n,e):t===ti&&o?r=null==E?void 0:E(n,e):t===ni&&o&&(r=null==O?void 0:O(n,e)),o&&!1!==r&&H()}}})),V=G(xi(W),1)[0],U=function(e){switch(e){case ei:return w(w(w({},oi,p),ii,m),ai,y);case ti:return w(w(w({},oi,h),ii,g),ai,x);case ni:return w(w(w({},oi,v),ii,b),ai,C);default:return{}}},Y=t.useMemo((function(){return U(L)}),[L]),K=G(Ai(L,!e,(function(e){if(e===oi){var t=Y[oi];return t?t(B()):Pi}var n;Q in Y&&q((null===(n=Y[Q])||void 0===n?void 0:n.call(Y,B(),null))||null);return Q===ai&&L!==Jo&&(V(B()),d>0&&(clearTimeout(z.current),z.current=setTimeout((function(){W({deadline:!0})}),d))),Q===ci&&H(),Mi})),2),X=K[0],Q=K[1],Z=Ri(Q);F.current=Z,Si((function(){N(n);var t,r=D.current;D.current=!0,!r&&n&&c&&(t=ei),r&&n&&a&&(t=ti),(r&&!n&&u||!r&&f&&!n&&u)&&(t=ni);var o=U(t);t&&(e||o[oi])?(R(t),X()):R(Jo)}),[n]),(0,t.useEffect)((function(){(L===ei&&!c||L===ti&&!a||L===ni&&!u)&&R(Jo)}),[c,a,u]),(0,t.useEffect)((function(){return function(){D.current=!1,clearTimeout(z.current)}}),[]);var J=t.useRef(!1);(0,t.useEffect)((function(){j&&(J.current=!0),void 0!==j&&L===Jo&&((J.current||j)&&(null==_||_(j)),J.current=!0)}),[j,L]);var ee=T;return Y[oi]&&Q===ii&&(ee=S({transition:"none"},ee)),[L,Q,ee,null!=j?j:n]}var qi=function(e){var n=e;"object"===v(e)&&(n=e.transitionSupport);var r=t.forwardRef((function(e,r){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,c=e.forceRender,s=e.children,u=e.motionName,d=e.leavedClassName,f=e.eventProps,p=function(e,t){return!(!e.motionName||!n||!1===t)}(e,t.useContext(Lo).motion),h=(0,t.useRef)(),v=(0,t.useRef)();var m=G(Ti(p,i,(function(){try{return h.current instanceof HTMLElement?h.current:jo(v.current)}catch(e){return null}}),e),4),g=m[0],b=m[1],y=m[2],x=m[3],C=t.useRef(x);x&&(C.current=!0);var k,E=t.useCallback((function(e){h.current=e,Io(r,e)}),[r]),O=S(S({},f),{},{visible:i});if(s)if(g===Jo)k=x?s(S({},O),E):!l&&C.current&&d?s(S(S({},O),{},{className:d}),E):c||!l&&!d?s(S(S({},O),{},{style:{display:"none"}}),E):null;else{var _;b===oi?_="prepare":Ri(b)?_="active":b===ii&&(_="start");var $=wi(u,"".concat(g,"-").concat(_));k=s(S(S({},O),{},{className:_o()(wi(u,g),w(w({},$,$&&_),u,"string"==typeof u)),style:y}),E)}else k=null;t.isValidElement(k)&&Ro(k)&&(k.ref||(k=t.cloneElement(k,{ref:E})));return t.createElement(Yo,{ref:v},k)}));return r.displayName="CSSMotion",r}(gi),Li="add",Di="keep",zi="remove",Bi="removed";function Fi(e){var t;return S(S({},t=e&&"object"===v(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Hi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Fi)}var Wi=["component","children","onVisibleChanged","onAllRemoved"],Vi=["status"],Ui=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var Gi=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qi,n=function(n){Bo(o,n);var r=Uo(o);function o(){var e;we(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return w(Wo(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),w(Wo(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:S(S({},e),{},{status:Bi})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Bi})).length})),e}return Se(o,[{key:"render",value:function(){var n=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=To(o,Wi),u=i||t.Fragment,d={};return Ui.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,t.createElement(u,s,r.map((function(r,o){var i=r.status,s=To(r,Vi),u=i===Li||i===Di;return t.createElement(e,pt({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(e){(null==l||l(e,{key:s.key}),e)||0===n.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(S(S({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Hi(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Hi(e),a=Hi(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return S(S({},e),{},{status:Li})}))),r=i),n.push(S(S({},l),{},{status:Di})),r+=1,t=!0;break}}t||n.push(S(S({},e),{},{status:zi}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return S(S({},e),{},{status:Li})}))));var l={};n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1}));var c=Object.keys(l).filter((function(e){return l[e]>1}));return c.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==zi})),n.forEach((function(t){t.key===e&&(t.status=Di)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Bi||e.status!==zi}))}}}]),o}(t.Component);return w(n,"defaultProps",{component:"div"}),n}(gi),Yi=qi,Ki="5.20.2";function Xi(e){return e>=0&&e<=255}var Qi=function(e,t){const{r:n,g:r,b:o,a:i}=new to(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new to(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(Xi(t)&&Xi(i)&&Xi(s))return new to({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new to({r:n,g:r,b:o,a:1}).toRgbString()},Zi=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Ji(e){const{override:t}=e,n=Zi(e,["override"]),r=Object.assign({},t);Object.keys(eo).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Qi(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Qi(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Qi(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Qi(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.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:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new to("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new to("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new to("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)"}),r)}var ea=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ta={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},na={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},ra={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},oa=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=ea(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Ji(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=ea(n,["theme"]);let i=o;r&&(i=oa(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function ia(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t.useContext(po),a=`${Ki}-${n||""}`,l=r||uo,[c,s,u]=ft(l,[eo,e],{salt:a,override:o,getComputedToken:oa,formatToken:Ji,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:ta,ignore:na,preserve:ra}});return[l,u,n?s:"",c,i]}function aa(e){const{children:n}=e,[,r]=ia(),{motion:o}=r,i=t.useRef(!1);return i.current=i.current||!1===o,i.current?t.createElement(Do,{motion:o},n):n}var la=()=>null;const ca={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},sa=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}},ua=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, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),da=e=>({outline:`${Ve(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),fa=e=>({"&:focus-visible":Object.assign({},da(e))});var pa=(e,t)=>{const[n,r]=ia();return mn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},ha=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const va=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ma,ga,ba,ya;function wa(){return ma||L}function xa(){return ga||D}const Sa=()=>({getPrefixCls:(e,t)=>t||(e?`${wa()}-${e}`:wa()),getIconPrefixCls:xa,getRootPrefixCls:()=>ma||wa(),getTheme:()=>ba,holderRender:ya}),Ca=e=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:m,parentContext:g,iconPrefixCls:b,theme:y,componentDisabled:w,segmented:x,statistic:S,spin:C,calendar:k,carousel:E,cascader:O,collapse:_,typography:$,checkbox:j,descriptions:N,divider:I,drawer:P,skeleton:M,steps:R,image:A,layout:T,list:q,mentions:L,modal:z,progress:F,result:H,slider:W,breadcrumb:V,menu:U,pagination:G,input:Y,textArea:K,empty:X,badge:Q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:le,timeline:ce,timePicker:se,upload:de,notification:fe,tree:pe,colorPicker:he,datePicker:ve,rangePicker:me,flex:ge,wave:be,dropdown:we,warning:xe,tour:Se,floatButtonGroup:Ce,variant:ke,inputNumber:Ee,treeSelect:Oe}=e,_e=t.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||g.getPrefixCls("");return t?`${o}-${t}`:o}),[g.getPrefixCls,e.prefixCls]),$e=b||g.iconPrefixCls||D,je=r||g.csp;pa($e,je);const Ne=function(e,t,n){var r;Pn("ConfigProvider");const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},fo),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:fo.hashed,cssVar:null==t?void 0:t.cssVar}),a=Eo();return ue((()=>{var r,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])}));const s=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||s});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:u})}),[o,i],((e,t)=>e.some(((e,n)=>{const r=t[n];return!ye(e,r,!0)}))))}(y,g.theme,{prefixCls:_e("")});const Ie={csp:je,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||m,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=h?h:p,popupOverflow:v,getPrefixCls:_e,iconPrefixCls:$e,theme:Ne,segmented:x,statistic:S,spin:C,calendar:k,carousel:E,cascader:O,collapse:_,typography:$,checkbox:j,descriptions:N,divider:I,drawer:P,skeleton:M,steps:R,image:A,input:Y,textArea:K,layout:T,list:q,mentions:L,modal:z,progress:F,result:H,slider:W,breadcrumb:V,menu:U,pagination:G,empty:X,badge:Q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:le,timeline:ce,timePicker:se,upload:de,notification:fe,tree:pe,colorPicker:he,datePicker:ve,rangePicker:me,flex:ge,wave:be,dropdown:we,warning:xe,tour:Se,floatButtonGroup:Ce,variant:ke,inputNumber:Ee,treeSelect:Oe};const Pe=Object.assign({},g);Object.keys(Ie).forEach((e=>{void 0!==Ie[e]&&(Pe[e]=Ie[e])})),va.forEach((t=>{const n=e[t];n&&(Pe[t]=n)})),void 0!==o&&(Pe.button=Object.assign({autoInsertSpace:o},Pe.button));const Me=ue((()=>Pe),Pe,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Re=t.useMemo((()=>({prefixCls:$e,csp:je})),[$e,je]);let Ae=t.createElement(t.Fragment,null,t.createElement(la,{dropdownMatchSelectWidth:p}),n);const Te=t.useMemo((()=>{var e,t,n,r;return jn((null===(e=Dn.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Me.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Me.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Me,null==l?void 0:l.validateMessages]);Object.keys(Te).length>0&&(Ae=t.createElement(Mn.Provider,{value:Te},Ae)),c&&(Ae=t.createElement(Vn,{locale:c,_ANT_MARK__:"internalMark"},Ae)),($e||je)&&(Ae=t.createElement(Sn.Provider,{value:Re},Ae)),s&&(Ae=t.createElement(wo,{size:s},Ae)),Ae=t.createElement(aa,null,Ae);const qe=t.useMemo((()=>{const e=Ne||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=ha(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Le(t):uo,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Le(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},eo),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[Ne]);return y&&(Ae=t.createElement(po.Provider,{value:qe},Ae)),Me.warning&&(Ae=t.createElement(In.Provider,{value:Me.warning},Ae)),void 0!==w&&(Ae=t.createElement(go,{disabled:w},Ae)),t.createElement(B.Provider,{value:Me},Ae)},ka=e=>{const n=t.useContext(B),r=t.useContext(Wn);return t.createElement(Ca,Object.assign({parentContext:n,legacyLocale:r},e))};ka.ConfigContext=B,ka.SizeContext=xo,ka.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(ma=t),void 0!==n&&(ga=n),"holderRender"in e&&(ya=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?ba=r:vo(wa(),r))},ka.useConfig=So,Object.defineProperty(ka,"SizeContext",{get:()=>xo});var Ea=ka,Oa={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"};function _a(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function $a(e){return function(e){return _a(e)instanceof ShadowRoot}(e)?_a(e):null}function ja(e){return"object"===v(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===v(e.icon)||"function"==typeof e.icon)}function Na(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(n)]=r;return t}),{})}function Ia(e,n,r){return r?t.createElement(e.tag,S(S({key:n},Na(e.attrs)),r),(e.children||[]).map((function(t,r){return Ia(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,S({key:n},Na(e.attrs)),(e.children||[]).map((function(t,r){return Ia(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Pa(e){return kr(e)[0]}function Ma(e){return e?Array.isArray(e)?e:[e]:[]}var Ra=["icon","className","onClick","style","primaryColor","secondaryColor"],Aa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ta=function(e){var n,r,o,i,a,l=e.icon,c=e.className,s=e.onClick,u=e.style,d=e.primaryColor,f=e.secondaryColor,p=To(e,Ra),h=t.useRef(),v=Aa;if(d&&(v={primaryColor:d,secondaryColor:f||Pa(d)}),n=h,r=(0,t.useContext)(Sn),o=r.csp,i=r.prefixCls,a="\n.anticon {\n display: inline-flex;\n align-items: center;\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",i&&(a=a.replace(/anticon/g,i)),(0,t.useEffect)((function(){var e=$a(n.current);se(a,"@ant-design-icons",{prepend:!0,csp:o,attachTo:e})}),[]),function(e,t){be(e,"[@ant-design/icons] ".concat(t))}(ja(l),"icon should be icon definiton, but got ".concat(l)),!ja(l))return null;var m=l;return m&&"function"==typeof m.icon&&(m=S(S({},m),{},{icon:m.icon(v.primaryColor,v.secondaryColor)})),Ia(m.icon,"svg-".concat(m.name),S(S({className:c,onClick:s,style:u,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p),{},{ref:h}))};Ta.displayName="IconReact",Ta.getTwoToneColors=function(){return S({},Aa)},Ta.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Aa.primaryColor=t,Aa.secondaryColor=n||Pa(t),Aa.calculated=!!n};var qa=Ta;function La(e){var t=G(Ma(e),2),n=t[0],r=t[1];return qa.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Da=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];La(Rr.primary);var za=t.forwardRef((function(e,n){var r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=To(e,Da),d=t.useContext(Sn),f=d.prefixCls,p=void 0===f?"anticon":f,h=d.rootClassName,v=_o()(h,p,w(w({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),m=l;void 0===m&&c&&(m=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=G(Ma(s),2),y=b[0],x=b[1];return t.createElement("span",pt({role:"img","aria-label":o.name},u,{ref:n,tabIndex:m,onClick:c,className:v}),t.createElement(qa,{icon:o,primaryColor:y,secondaryColor:x,style:g}))}));za.displayName="AntdIcon",za.getTwoToneColor=function(){var e=qa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},za.setTwoToneColor=La;var Ba=za,Fa=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Oa}))};var Ha=t.forwardRef(Fa),Wa={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"},Va=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Wa}))};var Ua=t.forwardRef(Va),Ga={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"},Ya=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Ga}))};var Ka=t.forwardRef(Ya),Xa={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"},Qa=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Xa}))};var Za=t.forwardRef(Qa),Ja={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"},el=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Ja}))};var tl=t.forwardRef(el),nl={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"},rl=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:nl}))};var ol=t.forwardRef(rl),il={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>=il.F1&&t<=il.F12)return!1;switch(t){case il.ALT:case il.CAPS_LOCK:case il.CONTEXT_MENU:case il.CTRL:case il.DOWN:case il.END:case il.ESC:case il.HOME:case il.INSERT:case il.LEFT:case il.MAC_FF_META:case il.META:case il.NUMLOCK:case il.NUM_CENTER:case il.PAGE_DOWN:case il.PAGE_UP:case il.PAUSE:case il.PRINT_SCREEN:case il.RIGHT:case il.SHIFT:case il.UP:case il.WIN_KEY:case il.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=il.ZERO&&e<=il.NINE)return!0;if(e>=il.NUM_ZERO&&e<=il.NUM_MULTIPLY)return!0;if(e>=il.A&&e<=il.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case il.SPACE:case il.QUESTION_MARK:case il.NUM_PLUS:case il.NUM_MINUS:case il.NUM_PERIOD:case il.NUM_DIVISION:case il.SEMICOLON:case il.DASH:case il.EQUALS:case il.COMMA:case il.PERIOD:case il.SLASH:case il.APOSTROPHE:case il.SINGLE_QUOTE:case il.OPEN_SQUARE_BRACKET:case il.BACKSLASH:case il.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},al=il,ll="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),cl="aria-",sl="data-";function ul(e,t){return 0===e.indexOf(t)}function dl(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:S({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||ul(n,cl))||t.data&&ul(n,sl)||t.attr&&ll.includes(n))&&(r[n]=e[n])})),r}var fl=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.style,i=e.className,a=e.duration,l=void 0===a?4.5:a,c=e.showProgress,s=e.pauseOnHover,u=void 0===s||s,d=e.eventKey,f=e.content,p=e.closable,h=e.closeIcon,m=void 0===h?"x":h,g=e.props,b=e.onClick,y=e.onNoticeClose,x=e.times,S=e.hovering,C=G(t.useState(!1),2),k=C[0],E=C[1],O=G(t.useState(0),2),_=O[0],$=O[1],j=G(t.useState(0),2),N=j[0],I=j[1],P=S||k,M=l>0&&c,R=function(){y(d)};t.useEffect((function(){if(!P&&l>0){var e=Date.now()-N,t=setTimeout((function(){R()}),1e3*l-N);return function(){u&&clearTimeout(t),I(Date.now()-e)}}}),[l,P,x]),t.useEffect((function(){if(!P&&M&&(u||0===N)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+N-t,o=Math.min(r/(1e3*l),1);$(100*o),o<1&&n()}))}(),function(){u&&cancelAnimationFrame(e)}}}),[l,N,P,M,x]);var A=t.useMemo((function(){return"object"===v(p)&&null!==p?p:p?{closeIcon:m}:{}}),[p,m]),T=dl(A,!0),q=100-(!_||_<0?0:_>100?100:_),L="".concat(r,"-notice");return t.createElement("div",pt({},g,{ref:n,className:_o()(L,i,w({},"".concat(L,"-closable"),p)),style:o,onMouseEnter:function(e){var t;E(!0),null==g||null===(t=g.onMouseEnter)||void 0===t||t.call(g,e)},onMouseLeave:function(e){var t;E(!1),null==g||null===(t=g.onMouseLeave)||void 0===t||t.call(g,e)},onClick:b}),t.createElement("div",{className:"".concat(L,"-content")},f),p&&t.createElement("a",pt({tabIndex:0,className:"".concat(L,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==al.ENTER||R()},"aria-label":"Close"},T,{onClick:function(e){e.preventDefault(),e.stopPropagation(),R()}}),A.closeIcon),M&&t.createElement("progress",{className:"".concat(L,"-progress"),max:"100",value:q},q+"%"))})),pl=fl,hl=t.createContext({}),vl=function(e){var n=e.children,r=e.classNames;return t.createElement(hl.Provider,{value:{classNames:r}},n)},ml=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===v(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]},gl=["className","style","classNames","styles"];var bl=function(e){var n=e.configList,r=e.placement,o=e.prefixCls,i=e.className,a=e.style,l=e.motion,c=e.onAllNoticeRemoved,s=e.onNoticeClose,u=e.stack,d=(0,t.useContext)(hl).classNames,f=(0,t.useRef)({}),p=G((0,t.useState)(null),2),h=p[0],v=p[1],m=G((0,t.useState)([]),2),g=m[0],b=m[1],y=n.map((function(e){return{config:e,key:String(e.key)}})),x=G(ml(u),2),C=x[0],k=x[1],E=k.offset,O=k.threshold,_=k.gap,$=C&&(g.length>0||y.length<=O),j="function"==typeof l?l(r):l;return(0,t.useEffect)((function(){C&&g.length>1&&b((function(e){return e.filter((function(e){return y.some((function(t){var n=t.key;return e===n}))}))}))}),[g,y,C]),(0,t.useEffect)((function(){var e,t;C&&f.current[null===(e=y[y.length-1])||void 0===e?void 0:e.key]&&v(f.current[null===(t=y[y.length-1])||void 0===t?void 0:t.key])}),[y,C]),t.createElement(Gi,pt({key:r,className:_o()(o,"".concat(o,"-").concat(r),null==d?void 0:d.list,i,w(w({},"".concat(o,"-stack"),!!C),"".concat(o,"-stack-expanded"),$)),style:a,keys:y,motionAppear:!0},j,{onAllRemoved:function(){c(r)}}),(function(e,n){var i=e.config,a=e.className,l=e.style,c=e.index,u=i,p=u.key,v=u.times,m=String(p),w=i,x=w.className,k=w.style,O=w.classNames,j=w.styles,N=To(w,gl),I=y.findIndex((function(e){return e.key===m})),P={};if(C){var M=y.length-1-(I>-1?I:c-1),R="top"===r||"bottom"===r?"-50%":"0";if(M>0){var A,T,q;P.height=$?null===(A=f.current[m])||void 0===A?void 0:A.offsetHeight:null==h?void 0:h.offsetHeight;for(var L=0,D=0;D<M;D++){var z;L+=(null===(z=f.current[y[y.length-1-D].key])||void 0===z?void 0:z.offsetHeight)+_}var B=($?L:M*E)*(r.startsWith("top")?1:-1),F=!$&&null!=h&&h.offsetWidth&&null!==(T=f.current[m])&&void 0!==T&&T.offsetWidth?((null==h?void 0:h.offsetWidth)-2*E*(M<3?M:3))/(null===(q=f.current[m])||void 0===q?void 0:q.offsetWidth):1;P.transform="translate3d(".concat(R,", ").concat(B,"px, 0) scaleX(").concat(F,")")}else P.transform="translate3d(".concat(R,", 0, 0)")}return t.createElement("div",{ref:n,className:_o()("".concat(o,"-notice-wrapper"),a,null==O?void 0:O.wrapper),style:S(S(S({},l),P),null==j?void 0:j.wrapper),onMouseEnter:function(){return b((function(e){return e.includes(m)?e:[].concat(K(e),[m])}))},onMouseLeave:function(){return b((function(e){return e.filter((function(e){return e!==m}))}))}},t.createElement(pl,pt({},N,{ref:function(e){I>-1?f.current[m]=e:delete f.current[m]},prefixCls:o,classNames:O,styles:j,className:_o()(x,null==d?void 0:d.notice),style:k,times:v,key:p,eventKey:p,onNoticeClose:s,hovering:C&&g.length>0})))}))},yl=t.forwardRef((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-notification":r,i=e.container,a=e.motion,l=e.maxCount,c=e.className,s=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=G(t.useState([]),2),h=p[0],v=p[1],m=function(e){var t,n=h.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),v((function(t){return t.filter((function(t){return t.key!==e}))}))};t.useImperativeHandle(n,(function(){return{open:function(e){v((function(t){var n,r=K(t),o=r.findIndex((function(t){return t.key===e.key})),i=S({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return l>0&&r.length>l&&(r=r.slice(-l)),r}))},close:function(e){m(e)},destroy:function(){v([])}}}));var g=G(t.useState({}),2),b=g[0],y=g[1];t.useEffect((function(){var e={};h.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),y(e)}),[h]);var w=function(e){y((function(t){var n=S({},t);return(n[e]||[]).length||delete n[e],n}))},x=t.useRef(!1);if(t.useEffect((function(){Object.keys(b).length>0?x.current=!0:x.current&&(null==u||u(),x.current=!1)}),[b]),!i)return null;var C=Object.keys(b);return(0,k.createPortal)(t.createElement(t.Fragment,null,C.map((function(e){var n=b[e],r=t.createElement(bl,{key:e,configList:n,placement:e,prefixCls:o,className:null==c?void 0:c(e),style:null==s?void 0:s(e),motion:a,onNoticeClose:m,onAllNoticeRemoved:w,stack:d});return f?f(r,{prefixCls:o,key:e}):r}))),i)}));var wl=yl,xl=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Sl=function(){return document.body},Cl=0;function kl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getContainer,r=void 0===n?Sl:n,o=e.motion,i=e.prefixCls,a=e.maxCount,l=e.className,c=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=To(e,xl),p=G(t.useState(),2),h=p[0],v=p[1],m=t.useRef(),g=t.createElement(wl,{container:h,ref:m,prefixCls:i,motion:o,maxCount:a,className:l,style:c,onAllRemoved:s,stack:u,renderNotifications:d}),b=G(t.useState([]),2),y=b[0],w=b[1],x=t.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(f,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(Cl),Cl+=1),w((function(e){return[].concat(K(e),[{type:"open",config:t}])}))},close:function(e){w((function(t){return[].concat(K(t),[{type:"close",key:e}])}))},destroy:function(){w((function(e){return[].concat(K(e),[{type:"destroy"}])}))}}}),[]);return t.useEffect((function(){v(r())})),t.useEffect((function(){m.current&&y.length&&(y.forEach((function(e){switch(e.type){case"open":m.current.open(e.config);break;case"close":m.current.close(e.key);break;case"destroy":m.current.destroy()}})),w((function(e){return e.filter((function(e){return!y.includes(e)}))})))}),[y]),[x,g]}var El=e=>{const[,,,,t]=ia();return t?`${e}-css-var`:""};var Ol=t.createContext(void 0);const _l=100,$l=1e3,jl={Modal:_l,Drawer:_l,Popover:_l,Popconfirm:_l,Tooltip:_l,Tour:_l},Nl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Il(e,n){const[,r]=ia(),o=t.useContext(Ol),i=function(e){return e in jl}(e);let a;if(void 0!==n)a=[n,n];else{let t=null!=o?o:0;t+=i?(o?0:r.zIndexPopupBase)+jl[e]:Nl[e],a=[void 0===o?n:t,t]}return a}var Pl=Se((function e(){we(this,e)})),Ml="CALC_UNIT",Rl=new RegExp(Ml,"g");function Al(e){return"number"==typeof e?"".concat(e).concat(Ml):e}var Tl=function(e){Bo(n,e);var t=Uo(n);function n(e,r){var o;we(this,n),w(Wo(o=t.call(this)),"result",""),w(Wo(o),"unitlessCssVar",void 0),w(Wo(o),"lowPriority",void 0);var i=v(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=Al(e):"string"===i&&(o.result=e),o}return Se(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Al(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Al(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Rl,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Pl),ql=function(e){Bo(n,e);var t=Uo(n);function n(e){var r;return we(this,n),w(Wo(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return Se(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}(Pl),Ll=function(e,t){var n="css"===e?Tl:ql;return function(e){return new n(e,t)}},Dl=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function zl(e,t,n,r){var o=S({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=G(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))}));var i=S(S({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var Bl="undefined"!=typeof CSSINJS_STATISTIC,Fl=!0;function Hl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Bl)return Object.assign.apply(Object,[{}].concat(t));Fl=!1;var r={};return t.forEach((function(e){"object"===v(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Fl=!0,r}var Wl={};function Vl(){}var Ul=function(e){var t,n=e,r=Vl;return Bl&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return Fl&&t.add(n),e[n]}}),r=function(e,n){var r;Wl[e]={global:Array.from(t),component:S(S({},null===(r=Wl[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}};function Gl(e,t,n){var r;return"function"==typeof n?n(Hl(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var Yl=function(){function e(){we(this,e),w(this,"map",new Map),w(this,"objectIDMap",new WeakMap),w(this,"nextID",0),w(this,"lastAccessBeat",new Map),w(this,"accessBeat",0)}return Se(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this,n=e.map((function(e){return e&&"object"===v(e)?"obj_".concat(t.getObjectID(e)):"".concat(v(e),"_").concat(e)}));return n.join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),Kl=new Yl;var Xl=function(e,n){return t.useMemo((function(){var t=Kl.get(n);if(t)return t;var r=e();return Kl.set(n,r),r}),n)},Ql=function(){return{}};const{genStyleHooks:Zl,genComponentStyleHook:Jl,genSubStyleComponent:ec}=function(e){var n=e.useCSP,r=void 0===n?Ql:n,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function s(e,t,n){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=Array.isArray(e)?e:[e,e],u=G(s,1)[0],d=s.join("-");return function(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,f=o(),p=f.theme,h=f.realToken,m=f.hashId,g=f.token,b=f.cssVar,y=i(),w=y.rootPrefixCls,x=y.iconPrefixCls,C=r(),k=b?"css":"js",E=Xl((function(){var e=new Set;return b&&Object.keys(c.unitless||{}).forEach((function(t){e.add(Ge(t,b.prefix)),e.add(Ge(t,Dl(u,b.prefix)))})),Ll(k,e)}),[k,u,null==b?void 0:b.prefix]),O=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<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return Ve(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return Ve(e)})).join(","),")")}}}(k),_=O.max,$=O.min,j={theme:p,token:g,hashId:m,nonce:function(){return C.nonce},clientOnly:c.clientOnly,layer:{name:"antd"},order:c.order||-999};mn(S(S({},j),{},{clientOnly:!1,path:["Shared",w]}),(function(){return"function"==typeof a?a(g):[]}));var N=mn(S(S({},j),{},{path:[d,e,x]}),(function(){if(!1===c.injectStyle)return[];var r=Ul(g),o=r.token,i=r.flush,a=Gl(u,h,n),d=".".concat(e),f=zl(u,h,a,{deprecatedTokens:c.deprecatedTokens});b&&"object"===v(a)&&Object.keys(a).forEach((function(e){a[e]="var(".concat(Ge(e,Dl(u,b.prefix)),")")}));var p=Hl(o,{componentCls:d,prefixCls:e,iconCls:".".concat(x),antCls:".".concat(w),calc:E,max:_,min:$},b?a:f),y=t(p,{hashId:m,prefixCls:e,rootPrefixCls:w,iconPrefixCls:x});i(u,f);var S="function"==typeof l?l(p,e,s,c.resetFont):null;return[!1===c.resetStyle?null:S,y]}));return[N,m]}}return{genStyleHooks:function(e,n,r,i){var a=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=S(S({},"function"==typeof c?c(e):{}),{},w({},l("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[l(e)]=u[e]}));var f=S(S({},i),{},{unitless:d,prefixToken:l}),p=s(e,n,r,f),h=function(e,n,r){var i=r.unitless,a=r.injectStyle,l=void 0===a||a,c=r.prefixToken,s=r.ignore,u=function(t){var a=t.rootCls,l=t.cssVar,u=void 0===l?{}:l,d=o().realToken;return bn({path:[e],prefix:u.prefix,key:u.key,unitless:i,ignore:s,token:d,scope:a},(function(){var t=Gl(e,d,n),o=zl(e,d,t,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(t).forEach((function(e){o[c(e)]=o[e],delete o[e]})),o})),null},d=function(n){var r=o().cssVar;return[function(o){return l&&r?t.createElement(t.Fragment,null,t.createElement(u,{rootCls:n,cssVar:r,component:e}),o):o},null==r?void 0:r.key]};return d}(a,r,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=G(p(e,t),2)[1],r=G(h(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,S({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=(0,t.useContext)(B);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=ia();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:n}=(0,t.useContext)(B);return pa(n,e),null!=e?e:{}},getResetStyles:e=>[{"&":ua(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>ta});var tc=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new wn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new wn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new wn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new wn("antNotificationLeftFadeIn",{"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:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${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:c}}}}};const nc=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],rc={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},oc=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${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)},ic=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)};var ac=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},oc(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},ic(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"}}}},nc.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[rc[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))};const lc=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:s,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,notificationProgressBg:v,notificationProgressHeight:m,fontSize:g,lineHeight:b,width:y,notificationIconSize:w,colorText:x}=e,S=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[S]:{padding:p,width:y,maxWidth:`calc(100vw - ${Ve(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:g,color:x},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:o},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:g},[`${S}-icon`]:{position:"absolute",fontSize:w,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:s},[`&-error${t}`]:{color:u}},[`${S}-close`]:Object.assign({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.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},fa(e)),[`${S}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Ve(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:m,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:v},"&::-webkit-progress-value":{borderRadius:a,background:v}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},cc=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new wn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},sa(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:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,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",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},lc(e))}}]},sc=e=>({zIndexPopup:e.zIndexPopupBase+$l+50,width:384}),uc=e=>{const t=e.paddingMD,n=e.paddingLG;return Hl(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:`${Ve(e.paddingMD)} ${Ve(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})};var dc=Zl("Notification",(e=>{const t=uc(e);return[cc(t),tc(t),ac(t)]}),sc),fc=ec(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=uc(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},lc(n)),{width:n.width,maxWidth:`calc(100vw - ${Ve(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),sc),pc=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function hc(e,n){return null===n||!1===n?null:n||t.createElement(Ka,{className:`${e}-close-icon`})}const vc={success:Ha,info:tl,error:Ua,warning:Za},mc=e=>{const{prefixCls:n,icon:r,type:o,message:i,description:a,btn:l,role:c="alert"}=e;let s=null;return r?s=t.createElement("span",{className:`${n}-icon`},r):o&&(s=t.createElement(vc[o]||null,{className:_o()(`${n}-icon`,`${n}-icon-${o}`)})),t.createElement("div",{className:_o()({[`${n}-with-icon`]:s}),role:c},s,t.createElement("div",{className:`${n}-message`},i),t.createElement("div",{className:`${n}-description`},a),l&&t.createElement("div",{className:`${n}-btn`},l))};var gc=e=>{const{prefixCls:n,className:r,icon:o,type:i,message:a,description:l,btn:c,closable:s=!0,closeIcon:u,className:d}=e,f=pc(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:p}=t.useContext(B),h=n||p("notification"),v=`${h}-notice`,m=El(h),[g,b,y]=dc(h,m);return g(t.createElement("div",{className:_o()(`${v}-pure-panel`,b,r,y,m)},t.createElement(fc,{prefixCls:h}),t.createElement(pl,Object.assign({},f,{prefixCls:h,eventKey:"pure",duration:null,closable:s,className:_o()({notificationClassName:d}),closeIcon:hc(h,u),content:t.createElement(mc,{prefixCls:v,icon:o,type:i,message:a,description:l,btn:c})}))))};var bc=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yc="topRight",wc=e=>{let{children:n,prefixCls:r}=e;const o=El(r),[i,a,l]=dc(r,o);return i(t.createElement(vl,{classNames:{list:_o()(a,l,o)}},n))},xc=(e,n)=>{let{prefixCls:r,key:o}=n;return t.createElement(wc,{prefixCls:r,key:o},e)},Sc=t.forwardRef(((e,n)=>{const{top:r,bottom:o,prefixCls:i,getContainer:a,maxCount:l,rtl:c,onAllRemoved:s,stack:u,duration:d,pauseOnHover:f=!0,showProgress:p}=e,{getPrefixCls:h,getPopupContainer:v,notification:m,direction:g}=(0,t.useContext)(B),[,b]=ia(),y=i||h("notification"),[w,x]=kl({prefixCls:y,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!=r?r:24,null!=o?o:24),className:()=>_o()({[`${y}-rtl`]:null!=c?c:"rtl"===g}),motion:()=>function(e){return{motionName:`${e}-fade`}}(y),closable:!0,closeIcon:hc(y),duration:null!=d?d:4.5,getContainer:()=>(null==a?void 0:a())||(null==v?void 0:v())||document.body,maxCount:l,pauseOnHover:f,showProgress:p,onAllRemoved:s,renderNotifications:xc,stack:!1!==u&&{threshold:"object"==typeof u?null==u?void 0:u.threshold:void 0,offset:8,gap:b.margin}});return t.useImperativeHandle(n,(()=>Object.assign(Object.assign({},w),{prefixCls:y,notification:m}))),x}));function Cc(e){const n=t.useRef(null),r=(Pn("Notification"),t.useMemo((()=>{const r=r=>{var o;if(!n.current)return;const{open:i,prefixCls:a,notification:l}=n.current,c=`${a}-notice`,{message:s,description:u,icon:d,type:f,btn:p,className:h,style:v,role:m="alert",closeIcon:g,closable:b}=r,y=bc(r,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),w=hc(c,void 0!==g?g:null==l?void 0:l.closeIcon);return i(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:yc},y),{content:t.createElement(mc,{prefixCls:c,icon:d,type:f,message:s,description:u,btn:p,role:m}),className:_o()(f&&`${c}-${f}`,h,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),v),closeIcon:w,closable:null!=b?b:!!w}))},o={open:r,destroy:e=>{var t,r;void 0!==e?null===(t=n.current)||void 0===t||t.close(e):null===(r=n.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{o[e]=t=>r(Object.assign(Object.assign({},t),{type:e}))})),o}),[]));return[r,t.createElement(Sc,Object.assign({key:"notification-holder"},e,{ref:n}))]}let kc=null,Ec=e=>e(),Oc=[],_c={};function $c(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=_c,l=(null==e?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const jc=t.forwardRef(((e,n)=>{const{notificationConfig:r,sync:o}=e,{getPrefixCls:i}=(0,t.useContext)(B),a=_c.prefixCls||i("notification"),l=(0,t.useContext)(q),[c,s]=Cc(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),l.notification));return t.useEffect(o,[]),t.useImperativeHandle(n,(()=>{const e=Object.assign({},c);return Object.keys(e).forEach((t=>{e[t]=function(){return o(),c[t].apply(c,arguments)}})),{instance:e,sync:o}})),s})),Nc=t.forwardRef(((e,n)=>{const[r,o]=t.useState($c),i=()=>{o($c)};t.useEffect(i,[]);const a=Sa(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=t.createElement(jc,{ref:n,sync:i,notificationConfig:r});return t.createElement(Ea,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function Ic(){if(!kc){const e=document.createDocumentFragment(),n={fragment:e};return kc=n,void Ec((()=>{I(t.createElement(Nc,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then((()=>{!n.instance&&t&&(n.instance=t,n.sync=r,Ic())}))}}),e)}))}kc.instance&&(Oc.forEach((e=>{switch(e.type){case"open":Ec((()=>{kc.instance.open(Object.assign(Object.assign({},_c),e.config))}));break;case"destroy":Ec((()=>{null==kc||kc.instance.destroy(e.key)}))}})),Oc=[])}function Pc(e){Sa();Oc.push({type:"open",config:e}),Ic()}const Mc={open:Pc,destroy:e=>{Oc.push({type:"destroy",key:e}),Ic()},config:function(e){_c=Object.assign(Object.assign({},_c),e),Ec((()=>{var e;null===(e=null==kc?void 0:kc.sync)||void 0===e||e.call(kc)}))},useNotification:function(e){return Cc(e)},_InternalPanelDoNotUseOrYouWillBeFired:gc},Rc=Mc;["success","info","warning","error"].forEach((e=>{Rc[e]=t=>Pc(Object.assign(Object.assign({},t),{type:e}))}));var Ac=Rc;function Tc(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var qc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function Lc(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const Dc=(e,n,r)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof r?r(e.props||{}):r):n;function zc(e,t){return Dc(e,e,t)}const Bc=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 ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var Fc=Jl("Wave",(e=>[Bc(e)]));const Hc=`${L}-wave-target`;function Wc(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}function Vc(e){return Number.isNaN(e)?0:e}const Uc=e=>{const{className:n,target:r,component:o}=e,i=t.useRef(null),[a,l]=t.useState(null),[c,s]=t.useState([]),[u,d]=t.useState(0),[f,p]=t.useState(0),[h,v]=t.useState(0),[m,g]=t.useState(0),[b,y]=t.useState(!1),w={left:u,top:f,width:h,height:m,borderRadius:c.map((e=>`${e}px`)).join(" ")};function x(){const e=getComputedStyle(r);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Wc(t)?t:Wc(n)?n:Wc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:Vc(-parseFloat(n))),p(t?r.offsetTop:Vc(-parseFloat(o))),v(r.offsetWidth),g(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>Vc(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),t.useEffect((()=>{if(r){const e=ji((()=>{x(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(r)),()=>{ji.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const S=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(Hc));return t.createElement(Yi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;A(e).then((()=>{null==e||e.remove()}))}return!1}},((e,r)=>{let{className:o}=e;return t.createElement("div",{ref:Po(i,r),className:_o()(n,o,{"wave-quick":S}),style:w})}))};var Gc=(e,n)=>{var r;const{component:o}=n;if("Checkbox"===o&&!(null===(r=e.querySelector("input"))||void 0===r?void 0:r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),I(t.createElement(Uc,Object.assign({},n,{target:e})),i)};var Yc=(e,n,r)=>{const{wave:o}=t.useContext(B),[,i,a]=ia(),l=Ko((t=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${Hc}`)||l,{showEffect:s}=o||{};(s||Gc)(c,{className:n,token:i,component:r,event:t,hashId:a})})),c=t.useRef();return e=>{ji.cancel(c.current),c.current=ji((()=>{l(e)}))}};var Kc=e=>{const{children:n,disabled:r,component:o}=e,{getPrefixCls:i}=(0,t.useContext)(B),a=(0,t.useRef)(null),l=i("wave"),[,c]=Fc(l),s=Yc(a,_o()(l,c),o);if(t.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!qc(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!t.isValidElement(n))return null!=n?n:null;return zc(n,{ref:Ro(n)?Po(n.ref,a):a})};var Xc=e=>{const n=t.useContext(xo);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])};function Qc(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Qc(e)):(0,No.isFragment)(e)&&e.props?r=r.concat(Qc(e.props.children,n)):r.push(e))})),r}const Zc=t.createContext(null),Jc=(e,n)=>{const r=t.useContext(Zc),o=t.useMemo((()=>{if(!r)return"";const{compactDirection:t,isFirstItem:o,isLastItem:i}=r,a="vertical"===t?"-vertical-":"-";return _o()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===n})}),[e,n,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:o}},es=e=>{let{children:n}=e;return t.createElement(Zc.Provider,{value:null},n)};var ts=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ns=t.createContext(void 0);var rs=e=>{const{getPrefixCls:n,direction:r}=t.useContext(B),{prefixCls:o,size:i,className:a}=e,l=ts(e,["prefixCls","size","className"]),c=n("btn-group",o),[,,s]=ia();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}const d=_o()(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===r},a,s);return t.createElement(ns.Provider,{value:i},t.createElement("div",Object.assign({},l,{className:d})))};const os=/^[\u4e00-\u9fa5]{2}$/,is=os.test.bind(os);function as(e){return"danger"===e?{danger:!0}:{type:e}}function ls(e){return"string"==typeof e}function cs(e){return"text"===e||"link"===e}function ss(e,n){let r=!1;const o=[];return t.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),t.Children.map(o,(e=>function(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&ls(e.type)&&is(e.props.children)?zc(e,{children:e.props.children.split("").join(r)}):ls(e)?is(e)?t.createElement("span",null,e.split("").join(r)):t.createElement("span",null,e):Lc(e)?t.createElement("span",null,e):e}(e,n)))}const us=(0,t.forwardRef)(((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,l=_o()(`${a}-icon`,r);return t.createElement("span",{ref:n,className:l,style:o},i)}));var ds=us;const fs=(0,t.forwardRef)(((e,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=e,l=_o()(`${r}-loading-icon`,o);return t.createElement(ds,{prefixCls:r,className:l,style:i,ref:n},t.createElement(ol,{className:a}))})),ps=()=>({width:0,opacity:0,transform:"scale(0)"}),hs=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var vs=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=e,l=!!r;return o?t.createElement(fs,{prefixCls:n,className:i,style:a}):t.createElement(Yi,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:ps,onAppearActive:hs,onEnterStart:ps,onEnterActive:hs,onLeaveStart:hs,onLeaveActive:ps},((e,r)=>{let{className:o,style:l}=e;return t.createElement(fs,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))};const ms=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var gs=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},ms(`${t}-primary`,o),ms(`${t}-danger`,i)]}};const bs=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Hl(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},ys=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:oo(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:oo(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:oo(s);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,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,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},ws=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ve(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},fa(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},xs=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Ss=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Cs=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),ks=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Es=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},xs(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Os=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ks(e))}),_s=e=>Object.assign({},Os(e)),$s=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),js=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_s(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),xs(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Es(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},xs(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Es(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Os(e))}),Ns=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_s(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),xs(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Es(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},xs(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Es(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Os(e))}),Is=e=>Object.assign(Object.assign({},js(e)),{borderStyle:"dashed"}),Ps=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},xs(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$s(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},xs(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),$s(e))}),Ms=e=>Object.assign(Object.assign(Object.assign({},xs(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),$s(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},$s(e)),xs(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Rs=e=>{const{componentCls:t}=e;return{[`${t}-default`]:js(e),[`${t}-primary`]:Ns(e),[`${t}-dashed`]:Is(e),[`${t}-link`]:Ps(e),[`${t}-text`]:Ms(e),[`${t}-ghost`]:Es(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},As=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${Ve(s)} ${Ve(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{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}`]:Ss(e)},{[`${n}${n}-round${t}`]:Cs(e)}]},Ts=e=>{const t=Hl(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return As(t,e.componentCls)},qs=e=>{const t=Hl(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return As(t,`${e.componentCls}-sm`)},Ls=e=>{const t=Hl(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return As(t,`${e.componentCls}-lg`)},Ds=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var zs=Zl("Button",(e=>{const t=bs(e);return[ws(t),Ts(t),qs(t),Ls(t),Ds(t),Rs(t),gs(t)]}),ys,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Bs(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).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] ${a}`]:{zIndex:0}})}}function Fs(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 Hs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Bs(e,r,t)),Fs(n,r,t))}}function Ws(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 Vs(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Ws(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 Us=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% + ${Ve(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% + ${Ve(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var Gs=ec(["Button","compact"],(e=>{const t=bs(e);return[Hs(t),Vs(t),Us(t)]}),ys),Ys=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ks=t.forwardRef(((e,n)=>{var r,o,i;const{loading:a=!1,prefixCls:l,type:c,danger:s=!1,shape:u="default",size:d,styles:f,disabled:p,className:h,rootClassName:v,children:m,icon:g,iconPosition:b="start",ghost:y=!1,block:w=!1,htmlType:x="button",classNames:S,style:C={},autoInsertSpace:k}=e,E=Ys(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=c||"default",{getPrefixCls:_,direction:$,button:j}=(0,t.useContext)(B),N=null===(r=null!=k?k:null==j?void 0:j.autoInsertSpace)||void 0===r||r,I=_("btn",l),[P,M,R]=zs(I),A=(0,t.useContext)(bo),T=null!=p?p:A,q=(0,t.useContext)(ns),L=(0,t.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}}(a)),[a]),[D,z]=(0,t.useState)(L.loading),[F,H]=(0,t.useState)(!1),W=Po(n,(0,t.createRef)()),V=1===t.Children.count(m)&&!g&&!cs(O);(0,t.useEffect)((()=>{let e=null;return L.delay>0?e=setTimeout((()=>{e=null,z(!0)}),L.delay):z(L.loading),function(){e&&(clearTimeout(e),e=null)}}),[L]),(0,t.useEffect)((()=>{if(!W||!W.current||!N)return;const e=W.current.textContent;V&&is(e)?F||H(!0):F&&H(!1)}),[W]);const U=t=>{const{onClick:n}=e;D||T?t.preventDefault():null==n||n(t)};const{compactSize:G,compactItemClassnames:Y}=Jc(I,$),K={large:"lg",small:"sm",middle:void 0},X=Xc((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:G)&&void 0!==t?t:q)&&void 0!==n?n:e})),Q=X&&K[X]||"",Z=D?"loading":g,J=Tc(E,["navigate"]),ee=_o()(I,M,R,{[`${I}-${u}`]:"default"!==u&&u,[`${I}-${O}`]:O,[`${I}-${Q}`]:Q,[`${I}-icon-only`]:!m&&0!==m&&!!Z,[`${I}-background-ghost`]:y&&!cs(O),[`${I}-loading`]:D,[`${I}-two-chinese-chars`]:F&&N&&!D,[`${I}-block`]:w,[`${I}-dangerous`]:s,[`${I}-rtl`]:"rtl"===$,[`${I}-icon-end`]:"end"===b},Y,h,v,null==j?void 0:j.className),te=Object.assign(Object.assign({},null==j?void 0:j.style),C),ne=_o()(null==S?void 0:S.icon,null===(o=null==j?void 0:j.classNames)||void 0===o?void 0:o.icon),re=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),(null===(i=null==j?void 0:j.styles)||void 0===i?void 0:i.icon)||{}),oe=g&&!D?t.createElement(ds,{prefixCls:I,className:ne,style:re},g):t.createElement(vs,{existIcon:!!g,prefixCls:I,loading:D}),ie=m||0===m?ss(m,V&&N):null;if(void 0!==J.href)return P(t.createElement("a",Object.assign({},J,{className:_o()(ee,{[`${I}-disabled`]:T}),href:T?void 0:J.href,style:te,onClick:U,ref:W,tabIndex:T?-1:0}),oe,ie));let ae=t.createElement("button",Object.assign({},E,{type:x,className:ee,style:te,onClick:U,disabled:T,ref:W}),oe,ie,!!Y&&t.createElement(Gs,{key:"compact",prefixCls:I}));return cs(O)||(ae=t.createElement(Kc,{component:"Button",disabled:D},ae)),P(ae)})),Xs=Ks;Xs.Group=rs,Xs.__ANT_BUTTON=!0;var Qs=Xs,Zs=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Js=t.forwardRef((function(e,n){var r,o=e.prefixCls,i=void 0===o?"rc-switch":o,a=e.className,l=e.checked,c=e.defaultChecked,s=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,h=e.onChange,v=e.onKeyDown,m=To(e,Zs),g=G(Zo(!1,{value:l,defaultValue:c}),2),b=g[0],y=g[1];function x(e,t){var n=b;return s||(y(n=e),null==h||h(n,t)),n}var S=_o()(i,a,(w(r={},"".concat(i,"-checked"),b),w(r,"".concat(i,"-disabled"),s),r));return t.createElement("button",pt({},m,{type:"button",role:"switch","aria-checked":b,disabled:s,className:S,ref:n,onKeyDown:function(e){e.which===al.LEFT?x(!1,e):e.which===al.RIGHT&&x(!0,e),null==v||v(e)},onClick:function(e){var t=x(!b,e);null==p||p(t,e)}}),u,t.createElement("span",{className:"".concat(i,"-inner")},t.createElement("span",{className:"".concat(i,"-inner-checked")},d),t.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))}));Js.displayName="Switch";var eu=Js;const tu=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,s=`${t}-inner`,u=Ve(c(l).add(c(r).mul(2)).equal()),d=Ve(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:Ve(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked, ${s}-unchecked`]:{minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Ve(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},nu=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},ru=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${Ve(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},ou=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,s=Ve(l(a).add(l(r).mul(2)).equal()),u=Ve(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},iu=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},sa(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Ve(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),fa(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}};var au=Zl("Switch",(e=>{const t=Hl(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[iu(t),ou(t),ru(t),nu(t),tu(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new to("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}})),lu=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const cu=t.forwardRef(((e,n)=>{const{prefixCls:r,size:o,disabled:i,loading:a,className:l,rootClassName:c,style:s,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:h}=e,v=lu(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,g]=Zo(!1,{value:null!=u?u:d,defaultValue:null!=f?f:p}),{getPrefixCls:b,direction:y,switch:w}=t.useContext(B),x=t.useContext(bo),S=(null!=i?i:x)||a,C=b("switch",r),k=t.createElement("div",{className:`${C}-handle`},a&&t.createElement(ol,{className:`${C}-loading-icon`})),[E,O,_]=au(C),$=Xc(o),j=_o()(null==w?void 0:w.className,{[`${C}-small`]:"small"===$,[`${C}-loading`]:a,[`${C}-rtl`]:"rtl"===y},l,c,O,_),N=Object.assign(Object.assign({},null==w?void 0:w.style),s);return E(t.createElement(Kc,{component:"Switch"},t.createElement(eu,Object.assign({},v,{checked:m,onChange:function(){g(arguments.length<=0?void 0:arguments[0]),null==h||h.apply(void 0,arguments)},prefixCls:C,className:j,style:N,disabled:S,ref:n,loadingIcon:k}))))})),su=cu;su.__ANT_SWITCH=!0;var uu=su;function du(e){var n=e.children,r=e.prefixCls,o=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return t.createElement("div",{className:_o()("".concat(r,"-content"),a),style:l},t.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof n?n():n))}var fu=t.createContext(null),pu=[];function hu(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";se("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ce(t),{width:f,height:p}}var vu="rc-util-locker-".concat(Date.now()),mu=0;function gu(e){var n=!!e,r=G(t.useState((function(){return mu+=1,"".concat(vu,"_").concat(mu)})),1)[0];Je((function(){if(n){var e=(o=document.body,"undefined"!=typeof document&&o&&o instanceof Element?hu(o):{width:0,height:0}).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;se("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else ce(r);var o;return function(){ce(r)}}),[n,r])}var bu=!1;var yu=function(e){return!1!==e&&(Q()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},wu=t.forwardRef((function(e,n){var r=e.open,o=e.autoLock,i=e.getContainer,a=(e.debug,e.autoDestroy),l=void 0===a||a,c=e.children,s=G(t.useState(r),2),u=s[0],d=s[1],f=u||r;t.useEffect((function(){(l||r)&&d(r)}),[r,l]);var p=G(t.useState((function(){return yu(i)})),2),h=p[0],v=p[1];t.useEffect((function(){var e=yu(i);v(null!=e?e:null)}));var m=function(e){var n=G(t.useState((function(){return Q()?document.createElement("div"):null})),1)[0],r=t.useRef(!1),o=t.useContext(fu),i=G(t.useState(pu),2),a=i[0],l=i[1],c=o||(r.current?void 0:function(e){l((function(t){return[e].concat(K(t))}))});function s(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return Je((function(){return e?o?o(s):s():u(),u}),[e]),Je((function(){a.length&&(a.forEach((function(e){return e()})),l(pu))}),[a]),[n,c]}(f&&!h),g=G(m,2),b=g[0],y=g[1],w=null!=h?h:b;gu(o&&r&&Q()&&(w===b||w===document.body));var x=null;c&&Ro(c)&&n&&(x=c.ref);var S=Mo(x,n);if(!f||!Q()||void 0===h)return null;var C,E=!1===w||("boolean"==typeof C&&(bu=C),bu),O=c;return n&&(O=t.cloneElement(c,{ref:S})),t.createElement(fu.Provider,{value:y},E?O:(0,k.createPortal)(O,w))}));var xu=wu,Su=t.createContext(null);var Cu=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),ku="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Eu=void 0!==o.g&&o.g.Math===Math?o.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ou="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Eu):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var _u=["top","right","bottom","left","width","height","size","weight"],$u="undefined"!=typeof MutationObserver,ju=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){Ou(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){ku&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$u?(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(){ku&&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,r=_u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Nu=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Iu=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Eu},Pu=Lu(0,0,0,0);function Mu(e){return parseFloat(e)||0}function Ru(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Mu(e["border-"+n+"-width"])}),0)}function Au(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Pu;var r=Iu(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Mu(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Mu(r.width),c=Mu(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Ru(r,"left","right")+i),Math.round(c+a)!==n&&(c-=Ru(r,"top","bottom")+a)),!function(e){return e===Iu(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return Lu(o.left,o.top,l,c)}var Tu="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Iu(e).SVGGraphicsElement}:function(e){return e instanceof Iu(e).SVGElement&&"function"==typeof e.getBBox};function qu(e){return ku?Tu(e)?function(e){var t=e.getBBox();return Lu(0,0,t.width,t.height)}(e):Au(e):Pu}function Lu(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Du=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Lu(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=qu(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),zu=function(e,t){var n,r,o,i,a,l,c,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),Nu(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);Nu(this,{target:e,contentRect:s})},Bu=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Cu,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Iu(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Du(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Iu(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new zu(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Fu="undefined"!=typeof WeakMap?new WeakMap:new Cu,Hu=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=ju.getInstance(),r=new Bu(t,n,this);Fu.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Hu.prototype[e]=function(){var t;return(t=Fu.get(this))[e].apply(t,arguments)}}));var Wu=void 0!==Eu.ResizeObserver?Eu.ResizeObserver:Hu,Vu=new Map;var Uu=new Wu((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Vu.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var Gu=function(e){Bo(n,e);var t=Uo(n);function n(){return we(this,n),t.apply(this,arguments)}return Se(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component);function Yu(e,n){var r=e.children,o=e.disabled,i=t.useRef(null),a=t.useRef(null),l=t.useContext(Su),c="function"==typeof r,s=c?r(i):r,u=t.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&t.isValidElement(s)&&Ro(s),f=d?s.ref:null,p=Mo(f,i),h=function(){var e;return jo(i.current)||(i.current&&"object"===v(i.current)?jo(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||jo(a.current)};t.useImperativeHandle(n,(function(){return h()}));var m=t.useRef(e);m.current=e;var g=t.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var h=c===Math.round(i)?i:c,v=s===Math.round(a)?a:s,g=S(S({},p),{},{offsetWidth:h,offsetHeight:v});null==l||l(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return t.useEffect((function(){var e,t,n=h();return n&&!o&&(e=n,t=g,Vu.has(e)||(Vu.set(e,new Set),Uu.observe(e)),Vu.get(e).add(t)),function(){return function(e,t){Vu.has(e)&&(Vu.get(e).delete(t),Vu.get(e).size||(Uu.unobserve(e),Vu.delete(e)))}(n,g)}}),[i.current,o]),t.createElement(Gu,{ref:a},d?t.cloneElement(s,{ref:p}):s)}var Ku=t.forwardRef(Yu);function Xu(e,n){var r=e.children;return("function"==typeof r?[r]:Qc(r)).map((function(r,o){var i=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return t.createElement(Ku,pt({},e,{key:i,ref:0===o?n:void 0}),r)}))}var Qu=t.forwardRef(Xu);Qu.Collection=function(e){var n=e.children,r=e.onBatchResize,o=t.useRef(0),i=t.useRef([]),a=t.useContext(Su),l=t.useCallback((function(e,t,n){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){l===o.current&&(null==r||r(i.current),i.current=[])})),null==a||a(e,t,n)}),[r,a]);return t.createElement(Su.Provider,{value:l},n)};var Zu=Qu;var Ju=0;var ed=S({},n).useId,td=ed?function(e){var t=ed();return e||t}:function(e){var n=G(t.useState("ssr-id"),2),r=n[0],o=n[1];return t.useEffect((function(){var e=Ju;Ju+=1,o("rc_unique_".concat(e))}),[]),e||r},nd=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};function rd(e){var n=e.prefixCls,r=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,p=t.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(!1!==r.autoArrow){var v=r.points[0],m=r.points[1],g=v[0],b=v[1],y=m[0],w=m[1];g!==y&&["t","b"].includes(g)?"t"===g?h.top=0:h.bottom=0:h.top=f,b!==w&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return t.createElement("div",{ref:p,className:_o()("".concat(n,"-arrow"),l),style:h},c)}function od(e){var n=e.prefixCls,r=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?t.createElement(Yi,pt({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(e){var r=e.className;return t.createElement("div",{style:{zIndex:o},className:_o()("".concat(n,"-mask"),r)})})):null}var id=t.memo((function(e){return e.children}),(function(e,t){return t.cache}));var ad=id,ld=t.forwardRef((function(e,n){var r=e.popup,o=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,h=e.arrow,v=e.arrowPos,m=e.align,g=e.motion,b=e.maskMotion,y=e.forceRender,w=e.getPopupContainer,x=e.autoDestroy,C=e.portal,k=e.zIndex,E=e.onMouseEnter,O=e.onMouseLeave,_=e.onPointerEnter,$=e.ready,j=e.offsetX,N=e.offsetY,I=e.offsetR,P=e.offsetB,M=e.onAlign,R=e.onPrepare,A=e.stretch,T=e.targetWidth,q=e.targetHeight,L="function"==typeof r?r():r,D=s||u,z=(null==w?void 0:w.length)>0,B=G(t.useState(!w||!z),2),F=B[0],H=B[1];if(Je((function(){!F&&z&&l&&H(!0)}),[F,z,l]),!F)return null;var W="auto",V={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if($||!s){var U,Y=m.points,K=m.dynamicInset||(null===(U=m._experimental)||void 0===U?void 0:U.dynamicInset),X=K&&"r"===Y[0][1],Q=K&&"b"===Y[0][0];X?(V.right=I,V.left=W):(V.left=j,V.right=W),Q?(V.bottom=P,V.top=W):(V.top=N,V.bottom=W)}var Z={};return A&&(A.includes("height")&&q?Z.height=q:A.includes("minHeight")&&q&&(Z.minHeight=q),A.includes("width")&&T?Z.width=T:A.includes("minWidth")&&T&&(Z.minWidth=T)),s||(Z.pointerEvents="none"),t.createElement(C,{open:y||D,getContainer:w&&function(){return w(l)},autoDestroy:x},t.createElement(od,{prefixCls:i,open:s,zIndex:k,mask:p,motion:b}),t.createElement(Zu,{onResize:M,disabled:!s},(function(e){return t.createElement(Yi,pt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},g,{onAppearPrepare:R,onEnterPrepare:R,visible:s,onVisibleChanged:function(e){var t;null==g||null===(t=g.onVisibleChanged)||void 0===t||t.call(g,e),c(e)}}),(function(r,l){var c=r.className,u=r.style,p=_o()(i,c,o);return t.createElement("div",{ref:Po(e,n,l),className:p,style:S(S(S(S({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},V),Z),u),{},{boxSizing:"border-box",zIndex:k},a),onMouseEnter:E,onMouseLeave:O,onPointerEnter:_,onClick:f},h&&t.createElement(rd,{prefixCls:i,arrow:h,arrowPos:v,align:m}),t.createElement(ad,{cache:!s&&!d},L))}))})))}));var cd=ld,sd=t.forwardRef((function(e,n){var r=e.children,o=e.getTriggerDOMNode,i=Ro(r),a=t.useCallback((function(e){Io(n,o?o(e):e)}),[o]),l=Mo(a,r.ref);return i?t.cloneElement(r,{ref:l}):r}));var ud=sd,dd=t.createContext(null);function fd(e){return e?Array.isArray(e)?e:[e]:[]}function pd(){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 hd(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function vd(e){return e.ownerDocument.defaultView}function md(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=vd(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 gd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function bd(e){return gd(parseFloat(e),0)}function yd(e,t){var n=S({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=vd(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=bd(i),v=bd(a),m=bd(l),g=bd(c),b=gd(Math.round(s.width/f*1e3)/1e3),y=gd(Math.round(s.height/u*1e3)/1e3),w=(f-p-m-g)*b,x=(u-d-h-v)*y,S=h*y,C=v*y,k=m*b,E=g*b,O=0,_=0;if("clip"===r){var $=bd(o);O=$*b,_=$*y}var j=s.x+k-O,N=s.y+S-_,I=j+s.width+2*O-k-E-w,P=N+s.height+2*_-S-C-x;n.left=Math.max(n.left,j),n.top=Math.max(n.top,N),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,P)}})),n}function wd(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 xd(e,t){var n=G(t||[],2),r=n[0],o=n[1];return[wd(e.width,r),wd(e.height,o)]}function Sd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Cd(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 kd(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 Ed=["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 Od=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xu,n=t.forwardRef((function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,l=n.action,c=void 0===l?"hover":l,s=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,v=n.mouseEnterDelay,m=n.mouseLeaveDelay,g=void 0===m?.1:m,b=n.focusDelay,y=n.blurDelay,w=n.mask,x=n.maskClosable,C=void 0===x||x,k=n.getPopupContainer,E=n.forceRender,O=n.autoDestroy,_=n.destroyPopupOnHide,$=n.popup,j=n.popupClassName,N=n.popupStyle,I=n.popupPlacement,P=n.builtinPlacements,M=void 0===P?{}:P,R=n.popupAlign,A=n.zIndex,T=n.stretch,q=n.getPopupClassNameFromAlign,L=n.fresh,D=n.alignPoint,z=n.onPopupClick,B=n.onPopupAlign,F=n.arrow,H=n.popupMotion,W=n.maskMotion,V=n.popupTransitionName,U=n.popupAnimation,Y=n.maskTransitionName,X=n.maskAnimation,Q=n.className,Z=n.getTriggerDOMNode,J=To(n,Ed),ee=O||_||!1,te=G(t.useState(!1),2),ne=te[0],re=te[1];Je((function(){re(nd())}),[]);var oe=t.useRef({}),ie=t.useContext(dd),ae=t.useMemo((function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null==ie||ie.registerSubPopup(e,t)}}}),[ie]),le=td(),ce=G(t.useState(null),2),se=ce[0],ue=ce[1],de=t.useRef(null),fe=Ko((function(e){de.current=e,$o(e)&&se!==e&&ue(e),null==ie||ie.registerSubPopup(le,e)})),pe=G(t.useState(null),2),he=pe[0],ve=pe[1],me=t.useRef(null),ge=Ko((function(e){$o(e)&&he!==e&&(ve(e),me.current=e)})),be=t.Children.only(a),ye=(null==be?void 0:be.props)||{},we={},xe=Ko((function(e){var t,n,r=he;return(null==r?void 0:r.contains(e))||(null===(t=$a(r))||void 0===t?void 0:t.host)===e||e===r||(null==se?void 0:se.contains(e))||(null===(n=$a(se))||void 0===n?void 0:n.host)===e||e===se||Object.values(oe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Se=hd(i,H,U,V),Ce=hd(i,W,X,Y),ke=G(t.useState(f||!1),2),Ee=ke[0],Oe=ke[1],_e=null!=d?d:Ee,$e=Ko((function(e){void 0===d&&Oe(e)}));Je((function(){Oe(d||!1)}),[d]);var je=t.useRef(_e);je.current=_e;var Ne=t.useRef([]);Ne.current=[];var Ie=Ko((function(e){var t;$e(e),(null!==(t=Ne.current[Ne.current.length-1])&&void 0!==t?t:_e)!==e&&(Ne.current.push(e),null==p||p(e))})),Pe=t.useRef(),Me=function(){clearTimeout(Pe.current)},Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Me(),0===t?Ie(e):Pe.current=setTimeout((function(){Ie(e)}),1e3*t)};t.useEffect((function(){return Me}),[]);var Ae=G(t.useState(!1),2),Te=Ae[0],qe=Ae[1];Je((function(e){e&&!_e||qe(!0)}),[_e]);var Le=G(t.useState(null),2),De=Le[0],ze=Le[1],Be=G(t.useState([0,0]),2),Fe=Be[0],He=Be[1],We=function(e){He([e.clientX,e.clientY])},Ve=function(e,n,r,o,i,a,l){var c=G(t.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=t.useRef(0),f=t.useMemo((function(){return n?md(n):[]}),[n]),p=t.useRef({});e||(p.current={});var h=Ko((function(){if(n&&r&&e){var t,c,s,d=n,h=d.ownerDocument,v=vd(d).getComputedStyle(d),m=v.width,g=v.height,b=v.position,y=d.style.left,w=d.style.top,x=d.style.right,C=d.style.bottom,k=d.style.overflow,E=S(S({},i[o]),a),O=h.createElement("div");if(null===(t=d.parentElement)||void 0===t||t.appendChild(O),O.style.left="".concat(d.offsetLeft,"px"),O.style.top="".concat(d.offsetTop,"px"),O.style.position=b,O.style.height="".concat(d.offsetHeight,"px"),O.style.width="".concat(d.offsetWidth,"px"),d.style.left="0",d.style.top="0",d.style.right="auto",d.style.bottom="auto",d.style.overflow="hidden",Array.isArray(r))s={x:r[0],y:r[1],width:0,height:0};else{var _=r.getBoundingClientRect();s={x:_.x,y:_.y,width:_.width,height:_.height}}var $=d.getBoundingClientRect(),j=h.documentElement,N=j.clientWidth,I=j.clientHeight,P=j.scrollWidth,M=j.scrollHeight,R=j.scrollTop,A=j.scrollLeft,T=$.height,q=$.width,L=s.height,D=s.width,z={left:0,top:0,right:N,bottom:I},B={left:-A,top:-R,right:P-A,bottom:M-R},F=E.htmlRegion,H="visible",W="visibleFirst";"scroll"!==F&&F!==W&&(F=H);var V=F===W,U=yd(B,f),Y=yd(z,f),K=F===H?Y:U,X=V?Y:K;d.style.left="auto",d.style.top="auto",d.style.right="0",d.style.bottom="0";var Q=d.getBoundingClientRect();d.style.left=y,d.style.top=w,d.style.right=x,d.style.bottom=C,d.style.overflow=k,null===(c=d.parentElement)||void 0===c||c.removeChild(O);var Z=gd(Math.round(q/parseFloat(m)*1e3)/1e3),J=gd(Math.round(T/parseFloat(g)*1e3)/1e3);if(0===Z||0===J||$o(r)&&!qc(r))return;var ee=E.offset,te=E.targetOffset,ne=G(xd($,ee),2),re=ne[0],oe=ne[1],ie=G(xd(s,te),2),ae=ie[0],le=ie[1];s.x-=ae,s.y-=le;var ce=G(E.points||[],2),se=ce[0],ue=Sd(ce[1]),de=Sd(se),fe=Cd(s,ue),pe=Cd($,de),he=S({},E),ve=fe.x-pe.x+re,me=fe.y-pe.y+oe;function st(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K,r=$.x+e,o=$.y+t,i=r+q,a=o+T,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var ge,be,ye,we,xe=st(ve,me),Se=st(ve,me,Y),Ce=Cd(s,["t","l"]),ke=Cd($,["t","l"]),Ee=Cd(s,["b","r"]),Oe=Cd($,["b","r"]),_e=E.overflow||{},$e=_e.adjustX,je=_e.adjustY,Ne=_e.shiftX,Ie=_e.shiftY,Pe=function(e){return"boolean"==typeof e?e:e>=0};function ut(){ge=$.y+me,be=ge+T,ye=$.x+ve,we=ye+q}ut();var Me=Pe(je),Re=de[0]===ue[0];if(Me&&"t"===de[0]&&(be>X.bottom||p.current.bt)){var Ae=me;Re?Ae-=T-L:Ae=Ce.y-Oe.y-oe;var Te=st(ve,Ae),qe=st(ve,Ae,Y);Te>xe||Te===xe&&(!V||qe>=Se)?(p.current.bt=!0,me=Ae,oe=-oe,he.points=[kd(de,0),kd(ue,0)]):p.current.bt=!1}if(Me&&"b"===de[0]&&(ge<X.top||p.current.tb)){var Le=me;Re?Le+=T-L:Le=Ee.y-ke.y-oe;var De=st(ve,Le),ze=st(ve,Le,Y);De>xe||De===xe&&(!V||ze>=Se)?(p.current.tb=!0,me=Le,oe=-oe,he.points=[kd(de,0),kd(ue,0)]):p.current.tb=!1}var Be=Pe($e),Fe=de[1]===ue[1];if(Be&&"l"===de[1]&&(we>X.right||p.current.rl)){var He=ve;Fe?He-=q-D:He=Ce.x-Oe.x-re;var We=st(He,me),Ve=st(He,me,Y);We>xe||We===xe&&(!V||Ve>=Se)?(p.current.rl=!0,ve=He,re=-re,he.points=[kd(de,1),kd(ue,1)]):p.current.rl=!1}if(Be&&"r"===de[1]&&(ye<X.left||p.current.lr)){var Ue=ve;Fe?Ue+=q-D:Ue=Ee.x-ke.x-re;var Ge=st(Ue,me),Ye=st(Ue,me,Y);Ge>xe||Ge===xe&&(!V||Ye>=Se)?(p.current.lr=!0,ve=Ue,re=-re,he.points=[kd(de,1),kd(ue,1)]):p.current.lr=!1}ut();var Ke=!0===Ne?0:Ne;"number"==typeof Ke&&(ye<Y.left&&(ve-=ye-Y.left-re,s.x+D<Y.left+Ke&&(ve+=s.x-Y.left+D-Ke)),we>Y.right&&(ve-=we-Y.right-re,s.x>Y.right-Ke&&(ve+=s.x-Y.right+Ke)));var Xe=!0===Ie?0:Ie;"number"==typeof Xe&&(ge<Y.top&&(me-=ge-Y.top-oe,s.y+L<Y.top+Xe&&(me+=s.y-Y.top+L-Xe)),be>Y.bottom&&(me-=be-Y.bottom-oe,s.y>Y.bottom-Xe&&(me+=s.y-Y.bottom+Xe)));var Qe=$.x+ve,Ze=Qe+q,Je=$.y+me,et=Je+T,tt=s.x,nt=tt+D,rt=s.y,ot=rt+L,it=(Math.max(Qe,tt)+Math.min(Ze,nt))/2-Qe,at=(Math.max(Je,rt)+Math.min(et,ot))/2-Je;null==l||l(n,he);var lt=Q.right-$.x-(ve+$.width),ct=Q.bottom-$.y-(me+$.height);1===Z&&(ve=Math.round(ve),lt=Math.round(lt)),1===J&&(me=Math.round(me),ct=Math.round(ct)),u({ready:!0,offsetX:ve/Z,offsetY:me/J,offsetR:lt/Z,offsetB:ct/J,arrowX:it/Z,arrowY:at/J,scaleX:Z,scaleY:J,align:he})}})),v=function(){u((function(e){return S(S({},e),{},{ready:!1})}))};return Je(v,[o]),Je((function(){e||v()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&h()}))}]}(_e,se,D?Fe:he,I,M,R,B),Ue=G(Ve,11),Ge=Ue[0],Ye=Ue[1],Ke=Ue[2],Xe=Ue[3],Qe=Ue[4],Ze=Ue[5],et=Ue[6],tt=Ue[7],nt=Ue[8],rt=Ue[9],ot=Ue[10],it=function(e,n,r,o){return t.useMemo((function(){var t=fd(null!=r?r:n),i=fd(null!=o?o:n),a=new Set(t),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,n,r,o])}(ne,c,s,u),at=G(it,2),lt=at[0],ct=at[1],st=lt.has("click"),ut=ct.has("click")||ct.has("contextMenu"),dt=Ko((function(){Te||ot()}));!function(e,t,n,r,o){Je((function(){if(e&&t&&n){var i=n,a=md(t),l=md(i),c=vd(i),s=new Set([c].concat(K(a),K(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(_e,he,se,dt,(function(){je.current&&D&&ut&&Re(!1)})),Je((function(){dt()}),[Fe,I]),Je((function(){!_e||null!=M&&M[I]||dt()}),[JSON.stringify(R)]);var ft=t.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(pd(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(M,i,rt,D);return _o()(e,null==q?void 0:q(rt))}),[rt,q,M,i,D]);t.useImperativeHandle(r,(function(){return{nativeElement:me.current,popupElement:de.current,forceAlign:dt}}));var pt=G(t.useState(0),2),ht=pt[0],vt=pt[1],mt=G(t.useState(0),2),gt=mt[0],bt=mt[1],yt=function(){if(T&&he){var e=he.getBoundingClientRect();vt(e.width),bt(e.height)}};function wt(e,t,n,r){we[e]=function(o){var i;null==r||r(o),Re(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=ye[e])||void 0===i||i.call.apply(i,[ye,o].concat(l))}}Je((function(){De&&(ot(),De(),ze(null))}),[De]),(st||ut)&&(we.onClick=function(e){var t;je.current&&ut?Re(!1):!je.current&&st&&(We(e),Re(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onClick)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),function(e,n,r,o,i,a,l,c){var s=t.useRef(e);s.current=e,t.useEffect((function(){if(n&&o&&(!i||a)){var e=function(e){var t;s.current&&!l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},t=vd(o);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var u=$a(r);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){t.removeEventListener("mousedown",e,!0),t.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[n,r,o,i,a])}(_e,ut,he,se,w,C,xe,Re);var xt,St,Ct=lt.has("hover"),kt=ct.has("hover");Ct&&(wt("onMouseEnter",!0,v,(function(e){We(e)})),wt("onPointerEnter",!0,v,(function(e){We(e)})),xt=function(e){(_e||Te)&&null!=se&&se.contains(e.target)&&Re(!0,v)},D&&(we.onMouseMove=function(e){var t;null===(t=ye.onMouseMove)||void 0===t||t.call(ye,e)})),kt&&(wt("onMouseLeave",!1,g),wt("onPointerLeave",!1,g),St=function(){Re(!1,g)}),lt.has("focus")&&wt("onFocus",!0,b),ct.has("focus")&&wt("onBlur",!1,y),lt.has("contextMenu")&&(we.onContextMenu=function(e){var t;je.current&&ct.has("contextMenu")?Re(!1):(We(e),Re(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onContextMenu)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),Q&&(we.className=_o()(ye.className,Q));var Et=S(S({},ye),we),Ot={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){J[e]&&(Ot[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Et[e])||void 0===t||t.call.apply(t,[Et].concat(r)),J[e].apply(J,r)})}));var _t=t.cloneElement(be,S(S({},Et),Ot)),$t={x:Ze,y:et},jt=F?S({},!0!==F?F:{}):null;return t.createElement(t.Fragment,null,t.createElement(Zu,{disabled:!_e,ref:ge,onResize:function(){yt(),dt()}},t.createElement(ud,{getTriggerDOMNode:Z},_t)),t.createElement(dd.Provider,{value:ae},t.createElement(cd,{portal:e,ref:fe,prefixCls:i,popup:$,className:_o()(j,ft),style:N,target:he,onMouseEnter:xt,onMouseLeave:St,onPointerEnter:xt,zIndex:A,open:_e,keepDom:Te,fresh:L,onClick:z,mask:w,motion:Se,maskMotion:Ce,onVisibleChanged:function(e){qe(!1),ot(),null==h||h(e)},onPrepare:function(){return new Promise((function(e){yt(),ze((function(){return e}))}))},forceRender:E,autoDestroy:ee,getPopupContainer:k,align:rt,arrow:jt,arrowPos:$t,ready:Ge,offsetX:Ye,offsetY:Ke,offsetR:Xe,offsetB:Qe,onAlign:dt,stretch:T,targetWidth:ht/tt,targetHeight:gt/nt})))}));return n}(xu),_d={shiftX:64,adjustY:1},$d={adjustX:1,shiftY:!0},jd=[0,0],Nd={left:{points:["cr","cl"],overflow:$d,offset:[-4,0],targetOffset:jd},right:{points:["cl","cr"],overflow:$d,offset:[4,0],targetOffset:jd},top:{points:["bc","tc"],overflow:_d,offset:[0,-4],targetOffset:jd},bottom:{points:["tc","bc"],overflow:_d,offset:[0,4],targetOffset:jd},topLeft:{points:["bl","tl"],overflow:_d,offset:[0,-4],targetOffset:jd},leftTop:{points:["tr","tl"],overflow:$d,offset:[-4,0],targetOffset:jd},topRight:{points:["br","tr"],overflow:_d,offset:[0,-4],targetOffset:jd},rightTop:{points:["tl","tr"],overflow:$d,offset:[4,0],targetOffset:jd},bottomRight:{points:["tr","br"],overflow:_d,offset:[0,4],targetOffset:jd},rightBottom:{points:["bl","br"],overflow:$d,offset:[4,0],targetOffset:jd},bottomLeft:{points:["tl","bl"],overflow:_d,offset:[0,4],targetOffset:jd},leftBottom:{points:["br","bl"],overflow:$d,offset:[-4,0],targetOffset:jd}},Id=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Pd=function(e,n){var r=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,a=e.mouseEnterDelay,l=void 0===a?0:a,c=e.mouseLeaveDelay,s=void 0===c?.1:c,u=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,p=e.children,h=e.onVisibleChange,v=e.afterVisibleChange,m=e.transitionName,g=e.animation,b=e.motion,y=e.placement,w=void 0===y?"right":y,x=e.align,C=void 0===x?{}:x,k=e.destroyTooltipOnHide,E=void 0!==k&&k,O=e.defaultVisible,_=e.getTooltipContainer,$=e.overlayInnerStyle,j=(e.arrowContent,e.overlay),N=e.id,I=e.showArrow,P=void 0===I||I,M=To(e,Id),R=(0,t.useRef)(null);(0,t.useImperativeHandle)(n,(function(){return R.current}));var A=S({},M);"visible"in e&&(A.popupVisible=e.visible);return t.createElement(Od,pt({popupClassName:r,prefixCls:f,popup:function(){return t.createElement(du,{key:"content",prefixCls:f,id:N,overlayInnerStyle:$},j)},action:i,builtinPlacements:Nd,popupPlacement:w,ref:R,popupAlign:C,getPopupContainer:_,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:m,popupAnimation:g,popupMotion:b,defaultPopupVisible:O,autoDestroy:E,mouseLeaveDelay:s,popupStyle:u,mouseEnterDelay:l,arrow:P},A),p)},Md=(0,t.forwardRef)(Pd),Rd="RC_FORM_INTERNAL_HOOKS",Ad=function(){be(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Td=t.createContext({getFieldValue:Ad,getFieldsValue:Ad,getFieldError:Ad,getFieldWarning:Ad,getFieldsError:Ad,isFieldsTouched:Ad,isFieldTouched:Ad,isFieldValidating:Ad,isFieldsValidating:Ad,resetFields:Ad,setFields:Ad,setFieldValue:Ad,setFieldsValue:Ad,validateFields:Ad,submit:Ad,getInternalHooks:function(){return Ad(),{dispatch:Ad,initEntityValue:Ad,registerField:Ad,useSubscribe:Ad,setInitialValues:Ad,destroyForm:Ad,setCallbacks:Ad,registerWatch:Ad,getFields:Ad,setValidateMessages:Ad,setPreserve:Ad,getInitialValue:Ad}}}),qd=t.createContext(null);function Ld(e){return null==e?[]:Array.isArray(e)?e:[e]}function Dd(){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 zd=Dd();function Bd(e){var t="function"==typeof Map?new Map:void 0;return Bd=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Ho())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&zo(o,n.prototype),o}(e,arguments,Fo(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),zo(n,e)},Bd(e)}var Fd=o(5606),Hd=/%[sdj%]/g;function Wd(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function Vd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(Hd,(function(e){if("%%"===e)return"%";if(o>=i)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 Ud(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 Gd(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}void 0!==Fd&&Fd.env;var Yd=function(e){Bo(n,e);var t=Uo(n);function n(e,r){var o;return we(this,n),w(Wo(o=t.call(this,"Async Validation Error")),"errors",void 0),w(Wo(o),"fields",void 0),o.errors=e,o.fields=r,o}return Se(n)}(Bd(Error));function Kd(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,K(e[n]||[]))})),t}(e);Gd(a,n,(function(e){return r(e),e.length?i(new Yd(e,Wd(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new Yd(u,Wd(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?Gd(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,K(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function Xd(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function Qd(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===v(r)&&"object"===v(e[n])?e[n]=S(S({},e[n]),r):e[n]=r}return e}var Zd,Jd="enum",ef=function(e,t,n,r,o){e[Jd]=Array.isArray(e[Jd])?e[Jd]:[],-1===e[Jd].indexOf(t)&&r.push(Vd(o.messages[Jd],e.fullField,e[Jd].join(", ")))},tf=function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Vd(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(Vd(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}},nf=function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(Vd(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(Vd(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(Vd(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(Vd(o.messages[s].range,e.fullField,e.min,e.max))},rf=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Ud(t,i||e.type)||r.push(Vd(o.messages.required,e.fullField))},of=/^(([^<>()\[\]\\.,;:\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,}))$/,af=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,lf={integer:function(e){return lf.number(e)&&parseInt(e,10)===e},float:function(e){return lf.number(e)&&!lf.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"===v(e)&&!lf.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(of)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Zd)return Zd;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(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=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Zd=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(af)}},cf=function(e,t,n,r,o){if(e.required&&void 0===t)rf(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?lf[i](t)||r.push(Vd(o.messages.types[i],e.fullField,e.type)):i&&v(t)!==e.type&&r.push(Vd(o.messages.types[i],e.fullField,e.type))}},sf=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Vd(o.messages.whitespace,e.fullField))},uf={required:rf,whitespace:sf,type:cf,range:nf,enum:ef,pattern:tf},df=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t)&&!e.required)return n();uf.required(e,t,r,i,o)}n(i)},ff=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();uf.required(e,t,r,i,o,"array"),null!=t&&(uf.type(e,t,r,i,o),uf.range(e,t,r,i,o))}n(i)},pf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t)&&!e.required)return n();uf.required(e,t,r,i,o),void 0!==t&&uf.type(e,t,r,i,o)}n(i)},hf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t,"date")&&!e.required)return n();var a;if(uf.required(e,t,r,i,o),!Ud(t,"date"))a=t instanceof Date?t:new Date(t),uf.type(e,a,r,i,o),a&&uf.range(e,a.getTime(),r,i,o)}n(i)},vf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t)&&!e.required)return n();uf.required(e,t,r,i,o),void 0!==t&&uf.enum(e,t,r,i,o)}n(i)},mf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t)&&!e.required)return n();uf.required(e,t,r,i,o),void 0!==t&&(uf.type(e,t,r,i,o),uf.range(e,t,r,i,o))}n(i)},gf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t)&&!e.required)return n();uf.required(e,t,r,i,o),void 0!==t&&(uf.type(e,t,r,i,o),uf.range(e,t,r,i,o))}n(i)},bf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t)&&!e.required)return n();uf.required(e,t,r,i,o),void 0!==t&&uf.type(e,t,r,i,o)}n(i)},yf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Ud(t)&&!e.required)return n();uf.required(e,t,r,i,o),void 0!==t&&(uf.type(e,t,r,i,o),uf.range(e,t,r,i,o))}n(i)},wf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t)&&!e.required)return n();uf.required(e,t,r,i,o),void 0!==t&&uf.type(e,t,r,i,o)}n(i)},xf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t,"string")&&!e.required)return n();uf.required(e,t,r,i,o),Ud(t,"string")||uf.pattern(e,t,r,i,o)}n(i)},Sf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t)&&!e.required)return n();uf.required(e,t,r,i,o),Ud(t)||uf.type(e,t,r,i,o)}n(i)},Cf=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":v(t);uf.required(e,t,r,i,o,a),n(i)},kf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t,"string")&&!e.required)return n();uf.required(e,t,r,i,o,"string"),Ud(t,"string")||(uf.type(e,t,r,i,o),uf.range(e,t,r,i,o),uf.pattern(e,t,r,i,o),!0===e.whitespace&&uf.whitespace(e,t,r,i,o))}n(i)},Ef=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ud(t,i)&&!e.required)return n();uf.required(e,t,r,a,o,i),Ud(t,i)||uf.type(e,t,r,a,o)}n(a)},Of={string:kf,method:bf,number:yf,boolean:pf,regexp:Sf,integer:gf,float:mf,array:ff,object:wf,enum:vf,pattern:xf,date:hf,url:Ef,hex:Ef,email:Ef,required:Cf,any:df},_f=function(){function e(t){we(this,e),w(this,"rules",null),w(this,"_messages",zd),this.define(t)}return Se(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==v(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]}))}},{key:"messages",value:function(e){return e&&(this._messages=Qd(Dd(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===zd&&(a=Dd()),Qd(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=S({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":v(i)))),(a="function"==typeof a?{validator:a}:S({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return Kd(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==v(a.fields)&&"object"!==v(a.defaultField));function s(e,t){return S(S({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(K(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Xd(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Xd(a,r)):o.error&&(d=[o.error(a,Vd(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=S(S({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var h=new e(p);h.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),h.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,K(d)),e&&e.length&&t.push.apply(t,K(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,K(t)):o.push(t);o.length?(a=Wd(o),i(o,a)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Of.hasOwnProperty(e.type))throw new Error(Vd("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Of.required:Of[this.getType(e)]||void 0}}]),e}();w(_f,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Of[e]=t})),w(_f,"warning",(function(){})),w(_f,"messages",zd),w(_f,"validators",Of);var $f="'${name}' is not a valid ${type}",jf={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:$f,method:$f,array:$f,object:$f,number:$f,date:$f,boolean:$f,integer:$f,float:$f,regexp:$f,email:$f,url:$f,hex:$f},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Nf=_f;function If(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var Pf="CODE_LOGIC_ERROR";function Mf(e,t,n,r,o){return Rf.apply(this,arguments)}function Rf(){return Rf=b(m().mark((function e(n,r,o,i,a){var l,c,s,u,d,f,p,h,v;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=S({},o)).ruleIndex,Nf.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Pf)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new Nf(w({},n,[l])),d=jn(jf,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(w({},n,r),S({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,n){var r=e.message,o=r===Pf?d.default:r;return t.isValidElement(o)?t.cloneElement(o,{key:"error_".concat(n)}):o})));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(r.map((function(e,t){return Mf("".concat(n,".").concat(t),e,s,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(K(e),K(t))}),[]));case 23:return h=S(S({},o),{},{name:n,enum:(o.enum||[]).join(", ")},a),v=f.map((function(e){return"string"==typeof e?If(e,h):e})),e.abrupt("return",v);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Rf.apply(this,arguments)}function Af(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=S(S({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){be(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,be(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=b(m().mark((function e(n,o){var a,s,u;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Mf(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map((function(e){return Mf(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return qf.apply(this,arguments)}(s):function(e){return Tf.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Tf(){return(Tf=b(m().mark((function e(t){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,K(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qf(){return(qf=b(m().mark((function e(t){var n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lf(e){return Ld(e)}function Df(e,t){var n={};return t.forEach((function(t){var r=kn(e,t);n=On(n,t,r)})),n}function zf(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Bf(t,e,n)}))}function Bf(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 Ff(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===v(t.target)&&e in t.target?t.target[e]:t}function Hf(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(K(e.slice(0,n)),[o],K(e.slice(n,t)),K(e.slice(t+1,r))):i<0?[].concat(K(e.slice(0,t)),K(e.slice(t+1,n+1)),[o],K(e.slice(n+1,r))):e}var Wf=["name"],Vf=[];function Uf(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Gf=function(e){Bo(r,e);var n=Uo(r);function r(e){var o;(we(this,r),w(Wo(o=n.call(this,e)),"state",{resetCount:0}),w(Wo(o),"cancelRegisterFunc",null),w(Wo(o),"mounted",!1),w(Wo(o),"touched",!1),w(Wo(o),"dirty",!1),w(Wo(o),"validatePromise",void 0),w(Wo(o),"prevValidating",void 0),w(Wo(o),"errors",Vf),w(Wo(o),"warnings",Vf),w(Wo(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Lf(r)),o.cancelRegisterFunc=null})),w(Wo(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(K(void 0===n?[]:n),K(t)):[]})),w(Wo(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}))})),w(Wo(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),w(Wo(o),"metaCache",null),w(Wo(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=S(S({},o.getMeta()),{},{destroy:e});ye(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),w(Wo(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(s),p=t&&zf(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||ye(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Vf,o.warnings=Vf,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Vf,o.warnings=Vf,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&Uf(i,e,s,d,f,n))return void o.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(o.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(o.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(o.errors=h.errors||Vf),"warnings"in h&&(o.warnings=h.warnings||Vf),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in h&&zf(t,u,!0))return void o.reRender();if(i&&!u.length&&Uf(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Lf).some((function(e){return zf(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&Uf(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),w(Wo(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(b(m().mark((function r(){var a,l,s,u,d,f,p;return m().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(a=o.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Ld(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=Af(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vf;if(o.validatePromise===c){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,i=void 0===o?Vf:o;t?r.push.apply(r,K(i)):n.push.apply(n,K(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=c,o.dirty=!0,o.errors=Vf,o.warnings=Vf,o.triggerMetaEvent(),o.reRender()),c})),w(Wo(o),"isFieldValidating",(function(){return!!o.validatePromise})),w(Wo(o),"isFieldTouched",(function(){return o.touched})),w(Wo(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Rd).getInitialValue)(o.getNamePath())})),w(Wo(o),"getErrors",(function(){return o.errors})),w(Wo(o),"getWarnings",(function(){return o.warnings})),w(Wo(o),"isListField",(function(){return o.props.isListField})),w(Wo(o),"isList",(function(){return o.props.isList})),w(Wo(o),"isPreserve",(function(){return o.props.preserve})),w(Wo(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}})),w(Wo(o),"getOnlyChild",(function(e){if("function"==typeof e){var n=o.getMeta();return S(S({},o.getOnlyChild(e(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=Qc(e);return 1===r.length&&t.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),w(Wo(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return kn(e||t(!0),n)})),w(Wo(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,h=u.getFieldsValue,v=p(Rd).dispatch,m=o.getValue(),g=s||function(e){return w({},c,e)},b=e[r],y=void 0!==n?g(m):{};var x=S(S({},e),y);return x[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):Ff.apply(void 0,[c].concat(n)),l&&(e=l(e,m,h(!0))),v({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},Ld(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&v({type:"validateField",namePath:f,triggerName:e})}})),x})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(Rd).initEntityValue)(Wo(o));return o}return Se(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Rd).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,n=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),i=o.child;return o.isFunction?e=i:t.isValidElement(i)?e=t.cloneElement(i,this.getControlled(i.props)):(be(!i,"`children` of Field is not validate ReactElement."),e=i),t.createElement(t.Fragment,{key:n},e)}}]),r}(t.Component);w(Gf,"contextType",Td),w(Gf,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Yf=function(e){var n=e.name,r=To(e,Wf),o=t.useContext(Td),i=t.useContext(qd),a=void 0!==n?Lf(n):void 0,l="keep";return r.isListField||(l="_".concat((a||[]).join("_"))),t.createElement(Gf,pt({key:l,name:a,isListField:!!i},r,{fieldContext:o}))};var Kf=function(e){var n=e.name,r=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=t.useContext(Td),s=t.useContext(qd),u=t.useRef({keys:[],id:0}).current,d=t.useMemo((function(){var e=Lf(c.prefixName)||[];return[].concat(K(e),K(Lf(n)))}),[c.prefixName,n]),f=t.useMemo((function(){return S(S({},c),{},{prefixName:d})}),[c,d]),p=t.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(be(!1,"Form.List only accepts function as children."),null):t.createElement(qd.Provider,{value:p},t.createElement(Td.Provider,{value:f},t.createElement(Yf,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:null!=l?l:!!s},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(K(u.keys.slice(0,t)),[u.id],K(u.keys.slice(t))),i([].concat(K(n.slice(0,t)),[e],K(n.slice(t))))):(u.keys=[].concat(K(u.keys),[u.id]),i([].concat(K(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(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||(u.keys=Hf(u.keys,e,t),i(Hf(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))};var Xf="__@field_split__";function Qf(e){return e.map((function(e){return"".concat(v(e),":").concat(e)})).join(Xf)}var Zf=function(){function e(){we(this,e),w(this,"kvs",new Map)}return Se(e,[{key:"set",value:function(e,t){this.kvs.set(Qf(e),t)}},{key:"get",value:function(e){return this.kvs.get(Qf(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(Qf(e))}},{key:"map",value:function(e){return K(this.kvs.entries()).map((function(t){var n=G(t,2),r=n[0],o=n[1],i=r.split(Xf);return e({key:i.map((function(e){var t=G(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),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}(),Jf=Zf,ep=["name"],tp=Se((function e(t){var n=this;we(this,e),w(this,"formHooked",!1),w(this,"forceRootUpdate",void 0),w(this,"subscribable",!0),w(this,"store",{}),w(this,"fieldEntities",[]),w(this,"initialValues",{}),w(this,"callbacks",{}),w(this,"validateMessages",null),w(this,"preserve",null),w(this,"lastValidatePromise",null),w(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}})),w(this,"getInternalHooks",(function(e){return e===Rd?(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}):(be(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),w(this,"useSubscribe",(function(e){n.subscribable=e})),w(this,"prevWithoutPreserves",null),w(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=jn(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=On(o,n,kn(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),w(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new Jf;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),w(this,"getInitialValue",(function(e){var t=kn(n.initialValues,e);return e.length?jn(t):t})),w(this,"setCallbacks",(function(e){n.callbacks=e})),w(this,"setValidateMessages",(function(e){n.validateMessages=e})),w(this,"setPreserve",(function(e){n.preserve=e})),w(this,"watchList",[]),w(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),w(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)}))}})),w(this,"timeoutId",null),w(this,"warningUnhooked",(function(){0})),w(this,"updateStore",(function(e){n.store=e})),w(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),w(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Jf;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),w(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Lf(e);return t.get(n)||{INVALIDATE_NAME_PATH:Lf(e)}}))})),w(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===v(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)})),Df(n.store,l.map(Lf))})),w(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Lf(e);return kn(n.store,t)})),w(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:Lf(e[n]),errors:[],warnings:[]}}))})),w(this,"getFieldError",(function(e){n.warningUnhooked();var t=Lf(e);return n.getFieldsError([t])[0].errors})),w(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Lf(e);return n.getFieldsError([t])[0].warnings})),w(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Lf),l=!1):(o=null,l=i):(o=i.map(Lf),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every((function(e){return s(e)||e.isList()})):c.some(s);var u=new Jf;o.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(K(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),w(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),w(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Lf);return t.some((function(e){var t=e.getNamePath();return zf(r,t)&&e.isFieldValidating()}))})),w(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),w(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Jf,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,K(K(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))be(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)be(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(On(n.store,o,K(i)[0].value))}}}}))})),w(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(jn(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Lf);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(On(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),w(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=To(e,ep),a=Lf(o);r.push(a),"value"in i&&n.updateStore(On(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),w(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=S(S({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),w(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===kn(n.store,r)&&n.updateStore(On(n.store,r,t))}})),w(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),w(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 i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Bf(e.getNamePath(),t)}))){var l=n.store;n.updateStore(On(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),w(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,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),w(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=S(S({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),w(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(K(r))}),r})),w(this,"updateValue",(function(e,t){var r=Lf(e),o=n.store;n.updateStore(On(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Df(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(K(i)))})),w(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=jn(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),w(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),w(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Jf;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Lf(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})),w(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Jf;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return zf(e,n)}));a.length&&r(a,o)}})),w(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 i=!!r,a=i?r.map(Lf):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||zf(a,t,d)){var r=e.validateRules(S({validateMessages:S(S({},jf),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,K(n)):r.push.apply(r,K(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.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 h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var v=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(v),h})),w(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 np=function(e){var n=t.useRef(),r=G(t.useState({}),2)[1];if(!n.current)if(e)n.current=e;else{var o=new tp((function(){r({})}));n.current=o.getForm()}return[n.current]},rp=t.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),op=rp,ip=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],ap=function(e,n){var r=e.name,o=e.initialValues,i=e.fields,a=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,h=e.onValuesChange,m=e.onFieldsChange,g=e.onFinish,b=e.onFinishFailed,y=e.clearOnDestroy,w=To(e,ip),x=t.useRef(null),C=t.useContext(op),k=G(np(a),1)[0],E=k.getInternalHooks(Rd),O=E.useSubscribe,_=E.setInitialValues,$=E.setCallbacks,j=E.setValidateMessages,N=E.setPreserve,I=E.destroyForm;t.useImperativeHandle(n,(function(){return S(S({},k),{},{nativeElement:x.current})})),t.useEffect((function(){return C.registerForm(r,k),function(){C.unregisterForm(r)}}),[C,k,r]),j(S(S({},C.validateMessages),d)),$({onValuesChange:h,onFieldsChange:function(e){if(C.triggerFormChange(r,e),m){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];m.apply(void 0,[e].concat(n))}},onFinish:function(e){C.triggerFormFinish(r,e),g&&g(e)},onFinishFailed:b}),N(l);var P,M=t.useRef(null);_(o,!M.current),M.current||(M.current=!0),t.useEffect((function(){return function(){return I(y)}}),[]);var R="function"==typeof c;R?P=c(k.getFieldsValue(!0),k):P=c;O(!R);var A=t.useRef();t.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==v(e)||"object"!==v(t))return!1;var n=Object.keys(e),r=Object.keys(t);return K(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(A.current||[],i||[])||k.setFields(i||[]),A.current=i}),[i,k]);var T=t.useMemo((function(){return S(S({},k),{},{validateTrigger:p})}),[k,p]),q=t.createElement(qd.Provider,{value:null},t.createElement(Td.Provider,{value:T},P));return!1===u?q:t.createElement(u,pt({},w,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),k.submit()},onReset:function(e){var t;e.preventDefault(),k.resetFields(),null===(t=w.onReset)||void 0===t||t.call(w,e)}}),q)};function lp(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var cp=function(){};var sp=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=G((0,t.useState)(),2),u=s[0],d=s[1],f=(0,t.useMemo)((function(){return lp(u)}),[u]),p=(0,t.useRef)(f);p.current=f;var h=(0,t.useContext)(Td),v=c||h,m=v&&v._init,g=Lf(o),b=(0,t.useRef)(g);return b.current=g,cp(g),(0,t.useEffect)((function(){if(m){var e=v.getFieldsValue,t=(0,v.getInternalHooks)(Rd).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):kn(n,b.current)},r=t((function(e,t){var r=n(e,t),o=lp(r);p.current!==o&&(p.current=o,d(r))})),i=n(e(),e(!0));return u!==i&&d(i),r}}),[m]),u},up=t.forwardRef(ap);up.FormProvider=function(e){var n=e.validateMessages,r=e.onFormChange,o=e.onFormFinish,i=e.children,a=t.useContext(rp),l=t.useRef({});return t.createElement(rp.Provider,{value:S(S({},a),{},{validateMessages:S(S({},a.validateMessages),n),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=S(S({},l.current),{},w({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=S({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},up.Field=Yf,up.List=Kf,up.useForm=np,up.useWatch=sp;const dp=t.createContext({});const fp=e=>{let{children:n,status:r,override:o}=e;const i=(0,t.useContext)(dp),a=(0,t.useMemo)((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,o,i]);return t.createElement(dp.Provider,{value:a},n)},pp=(0,t.createContext)(void 0);var hp=e=>{const{space:n,form:r,children:o}=e;if(null==o)return null;let i=o;return r&&(i=t.createElement(fp,{override:!0,status:!0},i)),n&&(i=t.createElement(es,null,i)),i};const vp=()=>({height:0,opacity:0}),mp=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},gp=e=>({height:e?e.offsetHeight:0}),bp=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,yp=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var xp=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:L}-motion-collapse`,onAppearStart:vp,onEnterStart:vp,onAppearActive:mp,onEnterActive:mp,onLeaveStart:gp,onLeaveActive:vp,onAppearEnd:bp,onEnterEnd:bp,onLeaveEnd:bp,motionDeadline:500}};function Sp(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,h=2*o-0,v=i,m=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${h} ${v} Z')`,arrowPolygon:`polygon(${g}px 100%, 50% ${g}px, ${2*o-g}px 100%, ${g}px 100%)`}}const Cp=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,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:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ve(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},kp=8;function Ep(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?kp:r}}function Op(e,t){return e?t:{}}function _p(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={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"},Cp(e,t,o)),{"&:before":{background:t}})]},Op(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ve(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Op(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ve(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Op(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Op(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const $p={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"]}},jp={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"]}},Np=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ip(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys($p).forEach((e=>{const s=r&&jp[e]||$p[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Np.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=Ep({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},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),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const Pp=e=>({animationDuration:e,animationFillMode:"both"}),Mp=e=>({animationDuration:e,animationFillMode:"both"}),Rp=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},Pp(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Mp(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Ap=new wn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Tp=new wn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),qp=new wn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Lp=new wn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Dp=new wn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zp=new wn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Bp={zoom:{inKeyframes:Ap,outKeyframes:Tp},"zoom-big":{inKeyframes:qp,outKeyframes:Lp},"zoom-big-fast":{inKeyframes:qp,outKeyframes:Lp},"zoom-left":{inKeyframes:new wn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new wn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new wn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new wn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Dp,outKeyframes:zp},"zoom-down":{inKeyframes:new wn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new wn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Fp=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Bp[t];return[Rp(r,o,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}}]},Hp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Wp(e,t){return Hp.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const Vp=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},sa(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${Ve(e.calc(s).div(2).equal())} ${Ve(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,kp)}},[`${t}-content`]:{position:"relative"}}),Wp(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},_p(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Up=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ep({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Sp(Hl(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var Gp=function(e){const t=Zl("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=Hl(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Vp(o),Fp(e,"zoom-big-fast")]}),Up,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Yp=Hp.map((e=>`${e}-inverse`));function Kp(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Hp.includes(e):[].concat(K(Yp),K(Hp)).includes(e)}(t),r=_o()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Xp=e=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=t.useContext(B),s=c("tooltip",n),[u,d,f]=Gp(s),p=Kp(s,a),h=p.arrowStyle,v=Object.assign(Object.assign({},l),p.overlayStyle),m=_o()(d,f,s,`${s}-pure`,`${s}-placement-${o}`,r,p.className);return u(t.createElement("div",{className:m,style:h},t.createElement("div",{className:`${s}-arrow`}),t.createElement(du,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:v}),i)))},Qp=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Zp=t.forwardRef(((e,n)=>{var r,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:h,arrow:v=!0,title:m,overlay:g,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0}=e,x=!!v,[,S]=ia(),{getPopupContainer:C,getPrefixCls:k,direction:E}=t.useContext(B),O=Pn("Tooltip"),_=t.useRef(null),$=()=>{var e;null===(e=_.current)||void 0===e||e.forceAlign()};t.useImperativeHandle(n,(()=>{var e;return{forceAlign:$,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),$()},nativeElement:null===(e=_.current)||void 0===e?void 0:e.nativeElement}}));const[j,N]=Zo(!1,{value:null!==(r=e.open)&&void 0!==r?r:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),I=!m&&!g&&0!==m,P=t.useMemo((()=>{var e,t;let n=y;return"object"==typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:y),b||Ip({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:x?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})}),[y,v,b,S]),M=t.useMemo((()=>0===m?m:g||m||""),[g,m]),R=t.createElement(hp,{space:!0},"function"==typeof M?M():M),{getPopupContainer:A,placement:T="top",mouseEnterDelay:q=.1,mouseLeaveDelay:L=.1,overlayStyle:D,rootClassName:z}=e,F=Qp(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=k("tooltip",i),W=k(),V=e["data-popover-inject"];let U=j;"open"in e||"visible"in e||!I||(U=!1);const G=t.isValidElement(d)&&!Lc(d)?d:t.createElement("span",null,d),Y=G.props,K=Y.className&&"string"!=typeof Y.className?Y.className:_o()(Y.className,a||`${H}-open`),[X,Q,Z]=Gp(H,!V),J=Kp(H,s),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=_o()(c,{[`${H}-rtl`]:"rtl"===E},J.className,z,Q,Z),[re,oe]=Il("Tooltip",F.zIndex),ie=t.createElement(Md,Object.assign({},F,{zIndex:re,showArrow:x,placement:T,mouseEnterDelay:q,mouseLeaveDelay:L,prefixCls:H,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),D),getTooltipContainer:A||l||C,ref:_,builtinPlacements:P,overlay:R,visible:U,onVisibleChange:t=>{var n,r;N(!I&&t),I||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:p,overlayInnerStyle:te,arrowContent:t.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:yp(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),U?zc(G,{className:K}):G);return X(t.createElement(Ol.Provider,{value:oe},ie))})),Jp=Zp;Jp._InternalPanelDoNotUseOrYouWillBeFired=Xp;var eh=Jp;var th=(e,n)=>{const r=t.useContext(Wn),o=t.useMemo((()=>{var t;const o=n||Dn[e],i=null!==(t=null==r?void 0:r[e])&&void 0!==t?t:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,n,r]);return[o,t.useMemo((()=>{const e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?Dn.locale:e}),[r])]};function nh(e){return!!(null==e?void 0:e.then)}var rh=e=>{const{type:n,children:r,prefixCls:o,buttonProps:i,close:a,autoFocus:l,emitEvent:c,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=t.useRef(!1),p=t.useRef(null),[h,v]=Xo(!1),m=function(){null==a||a.apply(void 0,arguments)};t.useEffect((()=>{let e=null;return l&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return t.createElement(Qs,Object.assign({},as(n),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void m();let t;if(c){if(t=d(e),u&&!nh(t))return f.current=!1,void m(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!nh(t))return void m();(e=>{nh(e)&&(v(!0),e.then((function(){v(!1,!0),m.apply(void 0,arguments),f.current=!1}),(e=>{if(v(!1,!0),f.current=!1,!(null==s?void 0:s()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:o},i,{ref:p}),r)};const oh=t.createContext({}),{Provider:ih}=oh;var ah=()=>{const{autoFocusButton:e,cancelButtonProps:n,cancelTextLocale:r,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:c,onConfirm:s}=(0,t.useContext)(oh);return i?t.createElement(rh,{isSilent:o,actionFn:c,close:function(){null==l||l.apply(void 0,arguments),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:n,prefixCls:`${a}-btn`},r):null};var lh=()=>{const{autoFocusButton:e,close:n,isSilent:r,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:c,onOk:s}=(0,t.useContext)(oh);return t.createElement(rh,{isSilent:r,type:l||"primary",actionFn:s,close:function(){null==n||n.apply(void 0,arguments),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${i}-btn`},a)},ch=t.createContext({});function sh(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function uh(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 dh=t.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),fh={width:0,height:0,overflow:"hidden",outline:"none"},ph={outline:"none"},hh=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.className,i=e.style,a=e.title,l=e.ariaId,c=e.footer,s=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,h=e.bodyProps,m=e.modalRender,g=e.onMouseDown,b=e.onMouseUp,y=e.holderRef,w=e.visible,x=e.forceRender,C=e.width,k=e.height,E=e.classNames,O=e.styles,_=t.useContext(ch).panel,$=Mo(y,_),j=(0,t.useRef)(),N=(0,t.useRef)(),I=(0,t.useRef)();t.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=I.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===N.current?j.current.focus({preventScroll:!0}):e||t!==j.current||N.current.focus({preventScroll:!0})}}}));var P={};void 0!==C&&(P.width=C),void 0!==k&&(P.height=k);var M=c?t.createElement("div",{className:_o()("".concat(r,"-footer"),null==E?void 0:E.footer),style:S({},null==O?void 0:O.footer)},c):null,R=a?t.createElement("div",{className:_o()("".concat(r,"-header"),null==E?void 0:E.header),style:S({},null==O?void 0:O.header)},t.createElement("div",{className:"".concat(r,"-title"),id:l},a)):null,A=(0,t.useMemo)((function(){return"object"===v(s)&&null!==s?s:s?{closeIcon:null!=u?u:t.createElement("span",{className:"".concat(r,"-close-x")})}:{}}),[s,u,r]),T=dl(A,!0),q="object"===v(s)&&s.disabled,L=s?t.createElement("button",pt({type:"button",onClick:d,"aria-label":"Close"},T,{className:"".concat(r,"-close"),disabled:q}),A.closeIcon):null,D=t.createElement("div",{className:_o()("".concat(r,"-content"),null==E?void 0:E.content),style:null==O?void 0:O.content},L,R,t.createElement("div",pt({className:_o()("".concat(r,"-body"),null==E?void 0:E.body),style:S(S({},p),null==O?void 0:O.body)},h),f),M);return t.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:$,style:S(S({},i),P),className:_o()(r,o),onMouseDown:g,onMouseUp:b},t.createElement("div",{tabIndex:0,ref:j,style:fh,"aria-hidden":"true"}),t.createElement("div",{ref:I,tabIndex:-1,style:ph},t.createElement(dh,{shouldUpdate:w||x},m?m(D):D)),t.createElement("div",{tabIndex:0,ref:N,style:fh,"aria-hidden":"true"}))}));var vh=hh,mh=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.title,i=e.style,a=e.className,l=e.visible,c=e.forceRender,s=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,h=(0,t.useRef)(),v=G(t.useState(),2),m=v[0],g=v[1],b={};function y(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=uh(o),n.top+=uh(o,!0),n}(h.current);g(p&&(p.x||p.y)?"".concat(p.x-e.left,"px ").concat(p.y-e.top,"px"):"")}return m&&(b.transformOrigin=m),t.createElement(Yi,{visible:l,onVisibleChanged:f,onAppearPrepare:y,onEnterPrepare:y,forceRender:c,motionName:u,removeOnLeave:s,ref:h},(function(l,c){var s=l.className,u=l.style;return t.createElement(vh,pt({},e,{ref:n,title:o,ariaId:d,prefixCls:r,holderRef:c,style:S(S(S({},u),i),b),className:_o()(a,s)}))}))}));mh.displayName="Content";var gh=mh,bh=function(e){var n=e.prefixCls,r=e.style,o=e.visible,i=e.maskProps,a=e.motionName,l=e.className;return t.createElement(Yi,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},(function(e,o){var a=e.className,c=e.style;return t.createElement("div",pt({ref:o,style:S(S({},c),r),className:_o()("".concat(n,"-mask"),a,l)},i))}))},yh=function(e){var n=e.prefixCls,r=void 0===n?"rc-dialog":n,o=e.zIndex,i=e.visible,a=void 0!==i&&i,l=e.keyboard,c=void 0===l||l,s=e.focusTriggerAfterClose,u=void 0===s||s,d=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,h=e.onClose,v=e.afterOpenChange,m=e.afterClose,g=e.transitionName,b=e.animation,y=e.closable,w=void 0===y||y,x=e.mask,C=void 0===x||x,k=e.maskTransitionName,E=e.maskAnimation,O=e.maskClosable,_=void 0===O||O,$=e.maskStyle,j=e.maskProps,N=e.rootClassName,I=e.classNames,P=e.styles;var M=(0,t.useRef)(),R=(0,t.useRef)(),A=(0,t.useRef)(),T=G(t.useState(a),2),q=T[0],L=T[1],D=td();function z(e){null==h||h(e)}var B=(0,t.useRef)(!1),F=(0,t.useRef)(),H=null;_&&(H=function(e){B.current?B.current=!1:R.current===e.target&&z(e)}),(0,t.useEffect)((function(){a&&(L(!0),Z(R.current,document.activeElement)||(M.current=document.activeElement))}),[a]),(0,t.useEffect)((function(){return function(){clearTimeout(F.current)}}),[]);var W=S(S(S({zIndex:o},d),null==P?void 0:P.wrapper),{},{display:q?null:"none"});return t.createElement("div",pt({className:_o()("".concat(r,"-root"),N)},dl(e,{data:!0})),t.createElement(bh,{prefixCls:r,visible:C&&a,motionName:sh(r,k,E),style:S(S({zIndex:o},$),null==P?void 0:P.mask),maskProps:j,className:null==I?void 0:I.mask}),t.createElement("div",pt({tabIndex:-1,onKeyDown:function(e){if(c&&e.keyCode===al.ESC)return e.stopPropagation(),void z(e);a&&e.keyCode===al.TAB&&A.current.changeActive(!e.shiftKey)},className:_o()("".concat(r,"-wrap"),f,null==I?void 0:I.wrapper),ref:R,onClick:H,style:W},p),t.createElement(gh,pt({},e,{onMouseDown:function(){clearTimeout(F.current),B.current=!0},onMouseUp:function(){F.current=setTimeout((function(){B.current=!1}))},ref:A,closable:w,ariaId:D,prefixCls:r,visible:a&&q,onClose:z,onVisibleChanged:function(e){if(e)Z(R.current,document.activeElement)||null===(t=A.current)||void 0===t||t.focus();else{if(L(!1),C&&M.current&&u){try{M.current.focus({preventScroll:!0})}catch(e){}M.current=null}q&&(null==m||m())}var t;null==v||v(e)},motionName:sh(r,g,b)}))))},wh=function(e){var n=e.visible,r=e.getContainer,o=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,l=e.afterClose,c=e.panelRef,s=G(t.useState(n),2),u=s[0],d=s[1],f=t.useMemo((function(){return{panel:c}}),[c]);return t.useEffect((function(){n&&d(!0)}),[n]),o||!a||u?t.createElement(ch.Provider,{value:f},t.createElement(xu,{open:n||o||u,autoDestroy:!1,getContainer:r,autoLock:n||u},t.createElement(yh,pt({},e,{destroyOnClose:a,afterClose:function(){null==l||l(),d(!1)}})))):null};wh.displayName="Dialog";var xh=wh;function Sh(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Ch(e){const{closable:n,closeIcon:r}=e||{};return t.useMemo((()=>{if(!n&&(!1===n||!1===r||null===r))return!1;if(void 0===n&&void 0===r)return null;let e={closeIcon:"boolean"!=typeof r&&null!==r?r:void 0};return n&&"object"==typeof n&&(e=Object.assign(Object.assign({},e),n)),e}),[n,r])}function kh(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const Eh={};var Oh=e=>{const{prefixCls:n,className:r,style:o,size:i,shape:a}=e,l=_o()({[`${n}-lg`]:"large"===i,[`${n}-sm`]:"small"===i}),c=_o()({[`${n}-circle`]:"circle"===a,[`${n}-square`]:"square"===a,[`${n}-round`]:"round"===a}),s=t.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return t.createElement("span",{className:_o()(n,l,c,r),style:Object.assign(Object.assign({},s),o)})};const _h=new wn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),$h=e=>({height:e,lineHeight:Ve(e)}),jh=e=>Object.assign({width:e},$h(e)),Nh=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:_h,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ih=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},$h(e)),Ph=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},jh(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},jh(o)),[`${t}${t}-sm`]:Object.assign({},jh(i))}},Mh=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Ih(t,l)),[`${r}-lg`]:Object.assign({},Ih(o,l)),[`${r}-sm`]:Object.assign({},Ih(i,l))}},Rh=e=>Object.assign({width:e},$h(e)),Ah=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},Rh(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Rh(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Th=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},qh=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},$h(e)),Lh=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},qh(r,l))},Th(e,r,n)),{[`${n}-lg`]:Object.assign({},qh(o,l))}),Th(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},qh(i,l))}),Th(e,i,`${n}-sm`))},Dh=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:v,blockRadius:m,paragraphLiHeight:g,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},jh(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},jh(s)),[`${n}-sm`]:Object.assign({},jh(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:d,borderRadius:m,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:g,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Lh(e)),Ph(e)),Mh(e)),Ah(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},Nh(e))}}};var zh=Zl("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=Hl(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Dh(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var Bh=e=>{const{prefixCls:n,className:r,rootClassName:o,active:i,shape:a="circle",size:l="default"}=e,{getPrefixCls:c}=t.useContext(B),s=c("skeleton",n),[u,d,f]=zh(s),p=Tc(e,["prefixCls","className"]),h=_o()(s,`${s}-element`,{[`${s}-active`]:i},r,o,d,f);return u(t.createElement("div",{className:h},t.createElement(Oh,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:l},p))))};var Fh=e=>{const{prefixCls:n,className:r,rootClassName:o,active:i,block:a=!1,size:l="default"}=e,{getPrefixCls:c}=t.useContext(B),s=c("skeleton",n),[u,d,f]=zh(s),p=Tc(e,["prefixCls"]),h=_o()(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:a},r,o,d,f);return u(t.createElement("div",{className:h},t.createElement(Oh,Object.assign({prefixCls:`${s}-button`,size:l},p))))};var Hh=e=>{const{prefixCls:n,className:r,rootClassName:o,style:i,active:a}=e,{getPrefixCls:l}=t.useContext(B),c=l("skeleton",n),[s,u,d]=zh(c),f=_o()(c,`${c}-element`,{[`${c}-active`]:a},r,o,u,d);return s(t.createElement("div",{className:f},t.createElement("div",{className:_o()(`${c}-image`,r),style:i},t.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},t.createElement("title",null,"Image placeholder"),t.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${c}-image-path`})))))};var Wh=e=>{const{prefixCls:n,className:r,rootClassName:o,active:i,block:a,size:l="default"}=e,{getPrefixCls:c}=t.useContext(B),s=c("skeleton",n),[u,d,f]=zh(s),p=Tc(e,["prefixCls"]),h=_o()(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:a},r,o,d,f);return u(t.createElement("div",{className:h},t.createElement(Oh,Object.assign({prefixCls:`${s}-input`,size:l},p))))},Vh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Uh=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Vh}))};var Gh=t.forwardRef(Uh);var Yh=e=>{const{prefixCls:n,className:r,rootClassName:o,style:i,active:a,children:l}=e,{getPrefixCls:c}=t.useContext(B),s=c("skeleton",n),[u,d,f]=zh(s),p=_o()(s,`${s}-element`,{[`${s}-active`]:a},d,r,o,f),h=null!=l?l:t.createElement(Gh,null);return u(t.createElement("div",{className:p},t.createElement("div",{className:_o()(`${s}-image`,r),style:i},h)))};const Kh=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0};var Xh=e=>{const{prefixCls:n,className:r,style:o,rows:i}=e,a=K(Array(i)).map(((n,r)=>t.createElement("li",{key:r,style:{width:Kh(r,e)}})));return t.createElement("ul",{className:_o()(n,r),style:o},a)};var Qh=e=>{let{prefixCls:n,className:r,width:o,style:i}=e;return t.createElement("h3",{className:_o()(n,r),style:Object.assign({width:o},i)})};function Zh(e){return e&&"object"==typeof e?e:{}}const Jh=e=>{const{prefixCls:n,loading:r,className:o,rootClassName:i,style:a,children:l,avatar:c=!1,title:s=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:h,skeleton:v}=t.useContext(B),m=p("skeleton",n),[g,b,y]=zh(m);if(r||!("loading"in e)){const e=!!c,n=!!s,r=!!u;let l,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${m}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(n,r)),Zh(c));l=t.createElement("div",{className:`${m}-header`},t.createElement(Oh,Object.assign({},e)))}if(n||r){let o,i;if(n){const n=Object.assign(Object.assign({prefixCls:`${m}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,r)),Zh(s));o=t.createElement(Qh,Object.assign({},n))}if(r){const r=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,n)),Zh(u));i=t.createElement(Xh,Object.assign({},r))}p=t.createElement("div",{className:`${m}-content`},o,i)}const w=_o()(m,{[`${m}-with-avatar`]:e,[`${m}-active`]:d,[`${m}-rtl`]:"rtl"===h,[`${m}-round`]:f},null==v?void 0:v.className,o,i,b,y);return g(t.createElement("div",{className:w,style:Object.assign(Object.assign({},null==v?void 0:v.style),a)},l,p))}return null!=l?l:null};Jh.Button=Fh,Jh.Avatar=Bh,Jh.Input=Wh,Jh.Image=Hh,Jh.Node=Yh;var ev=Jh;function tv(){}const nv=t.createContext({add:tv,remove:tv});var rv=()=>{const{cancelButtonProps:e,cancelTextLocale:n,onCancel:r}=(0,t.useContext)(oh);return t.createElement(Qs,Object.assign({onClick:r},e),n)};var ov=()=>{const{confirmLoading:e,okButtonProps:n,okType:r,okTextLocale:o,onOk:i}=(0,t.useContext)(oh);return t.createElement(Qs,Object.assign({},as(r),{loading:e,onClick:i},n),o)};function iv(e,n){return t.createElement("span",{className:`${e}-close-x`},n||t.createElement(Ka,{className:`${e}-close-icon`}))}const av=e=>{const{okText:n,okType:r="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:l,okButtonProps:c,cancelButtonProps:s,footer:u}=e,[d]=th("Modal",Hn()),f={confirmLoading:i,okButtonProps:c,cancelButtonProps:s,okTextLocale:n||(null==d?void 0:d.okText),cancelTextLocale:o||(null==d?void 0:d.cancelText),okType:r,onOk:a,onCancel:l},p=t.useMemo((()=>f),K(Object.values(f)));let h;return"function"==typeof u||void 0===u?(h=t.createElement(t.Fragment,null,t.createElement(rv,null),t.createElement(ov,null)),"function"==typeof u&&(h=u(h,{OkBtn:ov,CancelBtn:rv})),h=t.createElement(ih,{value:p},h)):h=u,t.createElement(go,{disabled:!1},h)},lv=new wn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),cv=new wn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),sv=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Rp(r,lv,cv,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]};function uv(e){return{position:e,inset:0}}const dv=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({},uv("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},uv("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:sv(e)}]},fv=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:`${Ve(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},sa(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ve(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:Ve(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},fa(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ve(e.borderRadiusLG)} ${Ve(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}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Ve(e.margin)} auto`}},[`${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"}}}]},pv=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},hv=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Hl(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,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},vv=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ve(e.paddingMD)} ${Ve(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ve(e.padding)} ${Ve(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ve(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ve(e.paddingXS)} ${Ve(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ve(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ve(e.borderRadiusLG)} ${Ve(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ve(2*e.padding)} ${Ve(2*e.padding)} ${Ve(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var mv=Zl("Modal",(e=>{const t=hv(e);return[fv(t),pv(t),dv(t),Fp(t,"zoom")]}),vv,{unitless:{titleLineHeight:!0}}),gv=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let bv;const yv=e=>{bv={x:e.pageX,y:e.pageY},setTimeout((()=>{bv=null}),100)};Q()&&window.document.documentElement&&document.documentElement.addEventListener("click",yv,!0);var wv=e=>{var n;const{getPopupContainer:r,getPrefixCls:o,direction:i,modal:a}=t.useContext(B),l=t=>{const{onCancel:n}=e;null==n||n(t)};const{prefixCls:c,className:s,rootClassName:u,open:d,wrapClassName:f,centered:p,getContainer:h,focusTriggerAfterClose:v=!0,style:m,visible:g,width:b=520,footer:y,classNames:w,styles:x,children:S,loading:C}=e,k=gv(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),E=o("modal",c),O=o(),_=El(E),[$,j,N]=mv(E,_),I=_o()(f,{[`${E}-centered`]:!!p,[`${E}-wrap-rtl`]:"rtl"===i}),P=null===y||C?null:t.createElement(av,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:l})),[M,R]=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Eh;const o=Ch(e),i=Ch(n),a=t.useMemo((()=>Object.assign({closeIcon:t.createElement(Ka,null)},r)),[r]),l=t.useMemo((()=>!1!==o&&(o?kh(a,i,o):!1!==i&&(i?kh(a,i):!!a.closable&&a))),[o,i,a]);return t.useMemo((()=>{if(!1===l)return[!1,null];const{closeIconRender:e}=a,{closeIcon:n}=l;let r=n;if(null!=r){e&&(r=e(n));const o=dl(l,!0);Object.keys(o).length&&(r=t.isValidElement(r)?t.cloneElement(r,o):t.createElement("span",Object.assign({},o),r))}return[!0,r]}),[l,a])}(Sh(e),Sh(a),{closable:!0,closeIcon:t.createElement(Ka,{className:`${E}-close-icon`}),closeIconRender:e=>iv(E,e)}),A=function(e){const n=t.useContext(nv),r=t.useRef();return Ko((t=>{if(t){const o=e?t.querySelector(e):t;n.add(o),r.current=o}else n.remove(r.current)}))}(`.${E}-content`),[T,q]=Il("Modal",k.zIndex);return $(t.createElement(hp,{form:!0,space:!0},t.createElement(Ol.Provider,{value:q},t.createElement(xh,Object.assign({width:b},k,{zIndex:T,getContainer:void 0===h?r:h,prefixCls:E,rootClassName:_o()(j,u,N,_),footer:P,visible:null!=d?d:g,mousePosition:null!==(n=k.mousePosition)&&void 0!==n?n:bv,onClose:l,closable:M,closeIcon:R,focusTriggerAfterClose:v,transitionName:yp(O,"zoom",e.transitionName),maskTransitionName:yp(O,"fade",e.maskTransitionName),className:_o()(j,s,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),m),classNames:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.classNames),w),{wrapper:_o()(I,null==w?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},null==a?void 0:a.styles),x),panelRef:A}),C?t.createElement(ev,{active:!0,title:!1,paragraph:{rows:4},className:`${E}-body-skeleton`}):S))))};const xv=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:s}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:s},[`${u}-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()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Ve(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};var Sv=ec(["Modal","confirm"],(e=>{const t=hv(e);return[xv(t)]}),vv,{order:-1e3}),Cv=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function kv(e){const{prefixCls:n,icon:r,okText:o,cancelText:i,confirmPrefixCls:a,type:l,okCancel:c,footer:s,locale:u}=e,d=Cv(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=r;if(!r&&null!==r)switch(l){case"info":f=t.createElement(tl,null);break;case"success":f=t.createElement(Ha,null);break;case"error":f=t.createElement(Ua,null);break;default:f=t.createElement(Za,null)}const p=null!=c?c:"confirm"===l,h=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[v]=th("Modal"),m=u||v,g=o||(p?null==m?void 0:m.okText:null==m?void 0:m.justOkText),b=i||(null==m?void 0:m.cancelText),y=Object.assign({autoFocusButton:h,cancelTextLocale:b,okTextLocale:g,mergedOkCancel:p},d),w=t.useMemo((()=>y),K(Object.values(y))),x=t.createElement(t.Fragment,null,t.createElement(ah,null),t.createElement(lh,null)),S=void 0!==e.title&&null!==e.title,C=`${a}-body`;return t.createElement("div",{className:`${a}-body-wrapper`},t.createElement("div",{className:_o()(C,{[`${C}-has-title`]:S})},f,t.createElement("div",{className:`${a}-paragraph`},S&&t.createElement("span",{className:`${a}-title`},e.title),t.createElement("div",{className:`${a}-content`},e.content))),void 0===s||"function"==typeof s?t.createElement(ih,{value:w},t.createElement("div",{className:`${a}-btns`},"function"==typeof s?s(x,{OkBtn:lh,CancelBtn:ah}):x)):s,t.createElement(Sv,{prefixCls:n}))}const Ev=e=>{const{close:n,zIndex:r,afterClose:o,open:i,keyboard:a,centered:l,getContainer:c,maskStyle:s,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:p,bodyStyle:h,closable:v=!1,closeIcon:m,modalRender:g,focusTriggerAfterClose:b,onConfirm:y,styles:w}=e;const x=`${d}-confirm`,S=e.width||416,C=e.style||{},k=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,O=_o()(x,`${x}-${e.type}`,{[`${x}-rtl`]:"rtl"===u},e.className),[,_]=ia(),$=t.useMemo((()=>void 0!==r?r:_.zIndexPopupBase+$l),[r,_]);return t.createElement(wv,{prefixCls:d,className:O,wrapClassName:_o()({[`${x}-centered`]:!!e.centered},f),onCancel:()=>{null==n||n({triggerCancel:!0}),null==y||y(!1)},open:i,title:"",footer:null,transitionName:yp(p||"","zoom",e.transitionName),maskTransitionName:yp(p||"","fade",e.maskTransitionName),mask:k,maskClosable:E,style:C,styles:Object.assign({body:h,mask:s},w),width:S,zIndex:$,afterClose:o,keyboard:a,centered:l,getContainer:c,closable:v,closeIcon:m,modalRender:g,focusTriggerAfterClose:b},t.createElement(kv,Object.assign({},e,{confirmPrefixCls:x})))};var Ov=e=>{const{rootPrefixCls:n,iconPrefixCls:r,direction:o,theme:i}=e;return t.createElement(Ea,{prefixCls:n,iconPrefixCls:r,direction:o,theme:i},t.createElement(Ev,Object.assign({},e)))};var _v=[];let $v="";function jv(){return $v}const Nv=e=>{var n,r;const{prefixCls:o,getContainer:i,direction:a}=e,l=Hn(),c=(0,t.useContext)(B),s=jv()||c.getPrefixCls(),u=o||`${s}-modal`;let d=i;return!1===d&&(d=void 0),t.createElement(Ov,Object.assign({},e,{rootPrefixCls:s,prefixCls:u,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=a?a:c.direction,locale:null!==(r=null===(n=c.locale)||void 0===n?void 0:n.Modal)&&void 0!==r?r:l,getContainer:d}))};function Iv(e){const n=Sa();const r=document.createDocumentFragment();let o,i=Object.assign(Object.assign({},e),{close:c,open:!0});function a(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a;o.some((e=>null==e?void 0:e.triggerCancel))&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(K(o.slice(1)))));for(let e=0;e<_v.length;e++){if(_v[e]===c){_v.splice(e,1);break}}A(r)}function l(e){clearTimeout(o),o=setTimeout((()=>{const o=n.getPrefixCls(void 0,jv()),i=n.getIconPrefixCls(),a=n.getTheme(),l=t.createElement(Nv,Object.assign({},e));I(t.createElement(Ea,{prefixCls:o,iconPrefixCls:i,theme:a},n.holderRender?n.holderRender(l):l),r)}))}function c(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,l(i)}return l(i),_v.push(c),{destroy:c,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),l(i)}}}function Pv(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Mv(e){return Object.assign(Object.assign({},e),{type:"info"})}function Rv(e){return Object.assign(Object.assign({},e),{type:"success"})}function Av(e){return Object.assign(Object.assign({},e),{type:"error"})}function Tv(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function qv(e){return n=>t.createElement(Ea,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(e,Object.assign({},n)))}var Lv=(e,n,r,o)=>qv((i=>{const{prefixCls:a,style:l}=i,c=t.useRef(null),[s,u]=t.useState(0),[d,f]=t.useState(0),[p,h]=Zo(!1,{value:i.open}),{getPrefixCls:v}=t.useContext(B),m=v(n||"select",a);t.useEffect((()=>{if(h(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)})),t=setInterval((()=>{var n;const o=r?`.${r(m)}`:`.${m}-dropdown`,i=null===(n=c.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let g=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});o&&(g=o(g));const b={paddingBottom:s,position:"relative",minWidth:d};return t.createElement("div",{ref:c,style:b},t.createElement(e,Object.assign({},g)))})),Dv=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var zv=qv((e=>{const{prefixCls:n,className:r,closeIcon:o,closable:i,type:a,title:l,children:c,footer:s}=e,u=Dv(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=t.useContext(B),f=d(),p=n||d("modal"),h=El(f),[v,m,g]=mv(p,h),b=`${p}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:t.createElement(kv,Object.assign({},e,{prefixCls:p,confirmPrefixCls:b,rootPrefixCls:f,content:c}))}:{closable:null==i||i,title:l,footer:null!==s&&t.createElement(av,Object.assign({},e)),children:c},v(t.createElement(vh,Object.assign({prefixCls:p,className:_o()(m,`${p}-pure-panel`,a&&b,a&&`${b}-${a}`,r,g,h)},u,{closeIcon:iv(p,o),closable:i},y)))}));var Bv=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Fv=(e,n)=>{var r,{afterClose:o,config:i}=e,a=Bv(e,["afterClose","config"]);const[l,c]=t.useState(!0),[s,u]=t.useState(i),{direction:d,getPrefixCls:f}=t.useContext(B),p=f("modal"),h=f(),v=function(){var e;c(!1);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;n.some((e=>null==e?void 0:e.triggerCancel))&&(null===(e=s.onCancel)||void 0===e||(o=e).call.apply(o,[s,()=>{}].concat(K(n.slice(1)))))};t.useImperativeHandle(n,(()=>({destroy:v,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(r=s.okCancel)&&void 0!==r?r:"confirm"===s.type,[g]=th("Modal",Dn.Modal);return t.createElement(Ov,Object.assign({prefixCls:p,rootPrefixCls:h},s,{close:v,open:l,afterClose:()=>{var e;o(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(m?null==g?void 0:g.okText:null==g?void 0:g.justOkText),direction:s.direction||d,cancelText:s.cancelText||(null==g?void 0:g.cancelText)},a))};var Hv=t.forwardRef(Fv);let Wv=0;const Vv=t.memo(t.forwardRef(((e,n)=>{const[r,o]=function(){const[e,n]=t.useState([]);return[e,t.useCallback((e=>(n((t=>[].concat(K(t),[e]))),()=>{n((t=>t.filter((t=>t!==e))))})),[])]}();return t.useImperativeHandle(n,(()=>({patchElement:o})),[]),t.createElement(t.Fragment,null,r)})));var Uv=function(){const e=t.useRef(null),[n,r]=t.useState([]);t.useEffect((()=>{if(n.length){K(n).forEach((e=>{e()})),r([])}}),[n]);const o=t.useCallback((n=>function(o){var i;Wv+=1;const a=t.createRef();let l;const c=new Promise((e=>{l=e}));let s,u=!1;const d=t.createElement(Hv,{key:`modal-${Wv}`,config:n(o),ref:a,afterClose:()=>{null==s||s()},isSilent:()=>u,onConfirm:e=>{l(e)}});s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d),s&&_v.push(s);const f={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():r((t=>[].concat(K(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():r((e=>[].concat(K(e),[t])))},then:e=>(u=!0,c.then(e))};return f}),[]);return[t.useMemo((()=>({info:o(Mv),success:o(Rv),error:o(Av),warning:o(Pv),confirm:o(Tv)})),[]),t.createElement(Vv,{key:"modal-holder",ref:e})]};function Gv(e){return Iv(Pv(e))}const Yv=wv;Yv.useModal=Uv,Yv.info=function(e){return Iv(Mv(e))},Yv.success=function(e){return Iv(Rv(e))},Yv.error=function(e){return Iv(Av(e))},Yv.warning=Gv,Yv.warn=Gv,Yv.confirm=function(e){return Iv(Tv(e))},Yv.destroyAll=function(){for(;_v.length;){const e=_v.pop();e&&e()}},Yv.config=function(e){let{rootPrefixCls:t}=e;$v=t},Yv._InternalPanelDoNotUseOrYouWillBeFired=zv;var Kv=Yv,Xv={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"},Qv=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Xv}))};var Zv=t.forwardRef(Qv),Jv=function(e){var t=e.field.label;return t&&(0,r.jsx)("div",{className:"rtsb-field__label_wrap",children:(0,r.jsx)("h6",{className:"rtsb-field__label",dangerouslySetInnerHTML:{__html:t}})})};function em(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nm=function(e){var n,o,i,a,c=e.id,s=e.field,u=s.value,f=s.help,p=(0,t.useRef)(),h=em(l(),2),v=(h[0],h[1]);(0,t.useEffect)((function(){var e=p.current.closest(".ant-modal-body");"active"===c&&("on"===u?e.classList.remove("is-disable"):e.classList.add("is-disable"))}),[u]);var m=null===(n=e.field)||void 0===n?void 0:n.fieldType,g=null===(o=e.field)||void 0===o?void 0:o.parentId,b=null===(i=e.field)||void 0===i?void 0:i.index,y=null===(a=e.field)||void 0===a?void 0:a.repeaterData;if(c)return(0,r.jsxs)("div",{className:"rtsb-field switch",ref:p,children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(uu,{checkedChildren:"On",unCheckedChildren:"Off",checked:"on"===u,onChange:function(e){v({type:d,id:c,value:e?"on":"off",fieldType:m,parentId:g,repeaterData:y,index:b})}})}),f&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:f}})]})]})};function rm(e){return Hl(e,{inputAffixPadding:e.paddingXXS})}const om=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:v,controlOutline:m,colorErrorOutline:g,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${m}`,errorActiveShadow:`0 0 0 ${v}px ${g}`,warningActiveShadow:`0 0 0 ${v}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},im=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),am=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},im(Hl(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),lm=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),cm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),sm=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},am(e))}),cm(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),cm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),um=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),dm=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},um(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),um(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},am(e))}})}),fm=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},pm=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),hm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},pm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),vm=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pm(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},am(e))}),hm(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),hm(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),mm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),gm=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},mm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),mm(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),bm=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ym=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Ve(t)} ${Ve(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},wm=e=>({padding:`${Ve(e.paddingBlockSM)} ${Ve(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),xm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ve(e.paddingBlock)} ${Ve(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},bm(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},ym(e)),"&-sm":Object.assign({},wm(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Sm=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},ym(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},wm(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ve(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ve(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ve(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Ve(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ve(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Cm=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sa(e)),xm(e)),sm(e)),vm(e)),fm(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},km=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ve(e.inputAffixPadding)}`}}}},Em=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},xm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),km(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},Om=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},sa(e)),Sm(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},dm(e)),gm(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},_m=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},$m=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},jm=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var Nm=Zl("Input",(e=>{const t=Hl(e,rm(e));return[Cm(t),$m(t),Em(t),Om(t),_m(t),jm(t),Hs(t)]}),om,{resetFont:!1});var Im=e=>{const{getPrefixCls:n,direction:r}=(0,t.useContext)(B),{prefixCls:o,className:i}=e,a=n("input-group",o),l=n("input"),[c,s]=Nm(l),u=_o()(a,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===r},s,i),d=(0,t.useContext)(dp),f=(0,t.useMemo)((()=>Object.assign(Object.assign({},d),{isFormItemInput:!1})),[d]);return c(t.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},t.createElement(dp.Provider,{value:f},e.children)))};function Pm(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Mm(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=Pm(t,e,r)):n(o=Pm(t,e,""))}}function Rm(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var Am=t.forwardRef((function(e,n){var r,o,i=e.inputElement,a=e.children,l=e.prefixCls,c=e.prefix,s=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.style,h=e.disabled,m=e.readOnly,g=e.focused,b=e.triggerFocus,y=e.allowClear,x=e.value,C=e.handleReset,k=e.hidden,E=e.classes,O=e.classNames,_=e.dataAttrs,$=e.styles,j=e.components,N=e.onClear,I=null!=a?a:i,P=(null==j?void 0:j.affixWrapper)||"span",M=(null==j?void 0:j.groupWrapper)||"span",R=(null==j?void 0:j.wrapper)||"span",A=(null==j?void 0:j.groupAddon)||"span",T=(0,t.useRef)(null),q=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),L=(0,t.cloneElement)(I,{value:x,className:_o()(I.props.className,!q&&(null==O?void 0:O.variant))||null}),D=(0,t.useRef)(null);if(t.useImperativeHandle(n,(function(){return{nativeElement:D.current||T.current}})),q){var z=null;if(y){var B=!h&&!m&&x,F="".concat(l,"-clear-icon"),H="object"===v(y)&&null!=y&&y.clearIcon?y.clearIcon:"✖";z=t.createElement("span",{onClick:function(e){null==C||C(e),null==N||N()},onMouseDown:function(e){return e.preventDefault()},className:_o()(F,w(w({},"".concat(F,"-hidden"),!B),"".concat(F,"-has-suffix"),!!s)),role:"button",tabIndex:-1},H)}var W="".concat(l,"-affix-wrapper"),V=_o()(W,w(w(w(w(w({},"".concat(l,"-disabled"),h),"".concat(W,"-disabled"),h),"".concat(W,"-focused"),g),"".concat(W,"-readonly"),m),"".concat(W,"-input-with-clear-btn"),s&&y&&x),null==E?void 0:E.affixWrapper,null==O?void 0:O.affixWrapper,null==O?void 0:O.variant),U=(s||y)&&t.createElement("span",{className:_o()("".concat(l,"-suffix"),null==O?void 0:O.suffix),style:null==$?void 0:$.suffix},z,s);L=t.createElement(P,pt({className:V,style:null==$?void 0:$.affixWrapper,onClick:function(e){var t;null!==(t=T.current)&&void 0!==t&&t.contains(e.target)&&(null==b||b())}},null==_?void 0:_.affixWrapper,{ref:T}),c&&t.createElement("span",{className:_o()("".concat(l,"-prefix"),null==O?void 0:O.prefix),style:null==$?void 0:$.prefix},c),L,U)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var G="".concat(l,"-group"),Y="".concat(G,"-addon"),K="".concat(G,"-wrapper"),X=_o()("".concat(l,"-wrapper"),G,null==E?void 0:E.wrapper,null==O?void 0:O.wrapper),Q=_o()(K,w({},"".concat(K,"-disabled"),h),null==E?void 0:E.group,null==O?void 0:O.groupWrapper);L=t.createElement(M,{className:Q,ref:D},t.createElement(R,{className:X},u&&t.createElement(A,{className:Y},u),L,d&&t.createElement(A,{className:Y},d)))}return t.cloneElement(L,{className:_o()(null===(r=L.props)||void 0===r?void 0:r.className,f)||null,style:S(S({},null===(o=L.props)||void 0===o?void 0:o.style),p),hidden:k})})),Tm=Am,qm=["show"];function Lm(e,n){return t.useMemo((function(){var t={};n&&(t.show="object"===v(n)&&n.formatter?n.formatter:!!n);var r=t=S(S({},t),e),o=r.show,i=To(r,qm);return S(S({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,n])}var Dm=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],zm=(0,t.forwardRef)((function(e,n){var r=e.autoComplete,o=e.onChange,i=e.onFocus,a=e.onBlur,l=e.onPressEnter,c=e.onKeyDown,s=e.onKeyUp,u=e.prefixCls,d=void 0===u?"rc-input":u,f=e.disabled,p=e.htmlSize,h=e.className,v=e.maxLength,m=e.suffix,g=e.showCount,b=e.count,y=e.type,x=void 0===y?"text":y,C=e.classes,k=e.classNames,E=e.styles,O=e.onCompositionStart,_=e.onCompositionEnd,$=To(e,Dm),j=G((0,t.useState)(!1),2),N=j[0],I=j[1],P=(0,t.useRef)(!1),M=(0,t.useRef)(!1),R=(0,t.useRef)(null),A=(0,t.useRef)(null),T=function(e){R.current&&Rm(R.current,e)},q=G(Zo(e.defaultValue,{value:e.value}),2),L=q[0],D=q[1],z=null==L?"":String(L),B=G((0,t.useState)(null),2),F=B[0],H=B[1],W=Lm(b,g),V=W.max||v,U=W.strategy(z),Y=!!V&&U>V;(0,t.useImperativeHandle)(n,(function(){var e;return{focus:T,blur:function(){var e;null===(e=R.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=R.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=R.current)||void 0===e||e.select()},input:R.current,nativeElement:(null===(e=A.current)||void 0===e?void 0:e.nativeElement)||R.current}})),(0,t.useEffect)((function(){I((function(e){return(!e||!f)&&e}))}),[f]);var X=function(e,t,n){var r,i,a=t;if(!P.current&&W.exceedFormatter&&W.max&&W.strategy(t)>W.max)t!==(a=W.exceedFormatter(t,{max:W.max}))&&H([(null===(r=R.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=R.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;D(a),R.current&&Mm(R.current,e,o,a)};(0,t.useEffect)((function(){var e;F&&(null===(e=R.current)||void 0===e||e.setSelectionRange.apply(e,K(F)))}),[F]);var Q,Z=function(e){X(e,e.target.value,{source:"change"})},J=function(e){P.current=!1,X(e,e.currentTarget.value,{source:"compositionEnd"}),null==_||_(e)},ee=function(e){l&&"Enter"===e.key&&!M.current&&(M.current=!0,l(e)),null==c||c(e)},te=function(e){"Enter"===e.key&&(M.current=!1),null==s||s(e)},ne=function(e){I(!0),null==i||i(e)},re=function(e){I(!1),null==a||a(e)},oe=Y&&"".concat(d,"-out-of-range");return t.createElement(Tm,pt({},$,{prefixCls:d,className:_o()(h,oe),handleReset:function(e){D(""),T(),R.current&&Mm(R.current,e,o)},value:z,focused:N,triggerFocus:T,suffix:function(){var e=Number(V)>0;if(m||W.show){var n=W.showFormatter?W.showFormatter({value:z,count:U,maxLength:V}):"".concat(U).concat(e?" / ".concat(V):"");return t.createElement(t.Fragment,null,W.show&&t.createElement("span",{className:_o()("".concat(d,"-show-count-suffix"),w({},"".concat(d,"-show-count-has-suffix"),!!m),null==k?void 0:k.count),style:S({},null==E?void 0:E.count)},n),m)}return null}(),disabled:f,classes:C,classNames:k,styles:E}),(Q=Tc(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t.createElement("input",pt({autoComplete:r},Q,{onChange:Z,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:_o()(d,w({},"".concat(d,"-disabled"),f),null==k?void 0:k.input),style:null==E?void 0:E.input,ref:R,size:p,type:x,onCompositionStart:function(e){P.current=!0,null==O||O(e)},onCompositionEnd:J}))))})),Bm=zm;var Fm=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t.createElement(Ua,null)}),n};function Hm(e,t,n){return _o()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Wm=(e,t)=>t||e;var Vm=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:l}=(0,t.useContext)(B),c=(0,t.useContext)(pp),s=null==l?void 0:l.variant;let u;u=void 0!==n?n:!1===r?"borderless":null!==(i=null!==(o=null!=c?c:s)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,z.includes(u)]};function Um(e,n){const r=(0,t.useRef)([]),o=()=>{r.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,t.useEffect)((()=>(n&&o(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var Gm=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ym=(0,t.forwardRef)(((e,n)=>{var r;const{prefixCls:o,bordered:i=!0,status:a,size:l,disabled:c,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:h,className:v,style:m,styles:g,rootClassName:b,onChange:y,classNames:w,variant:x}=e,S=Gm(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:C,direction:k,input:E}=t.useContext(B),O=C("input",o),_=(0,t.useRef)(null),$=El(O),[j,N,I]=Nm(O,$),{compactSize:P,compactItemClassnames:M}=Jc(O,k),R=Xc((e=>{var t;return null!==(t=null!=l?l:P)&&void 0!==t?t:e})),A=t.useContext(bo),T=null!=c?c:A,{status:q,hasFeedback:L,feedbackIcon:D}=(0,t.useContext)(dp),z=Wm(q,a),F=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!L;(0,t.useRef)(F);const H=Um(_,!0),W=(L||d)&&t.createElement(t.Fragment,null,d,L&&D),V=Fm(null!=f?f:null==E?void 0:E.allowClear),[U,G]=Vm("input",x,i);return j(t.createElement(Bm,Object.assign({ref:Po(n,_),prefixCls:O,autoComplete:null==E?void 0:E.autoComplete},S,{disabled:T,onBlur:e=>{H(),null==s||s(e)},onFocus:e=>{H(),null==u||u(e)},style:Object.assign(Object.assign({},null==E?void 0:E.style),m),styles:Object.assign(Object.assign({},null==E?void 0:E.styles),g),suffix:W,allowClear:V,className:_o()(v,b,I,$,M,null==E?void 0:E.className),onChange:e=>{H(),null==y||y(e)},addonBefore:h&&t.createElement(hp,{form:!0,space:!0},h),addonAfter:p&&t.createElement(hp,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},w),null==E?void 0:E.classNames),{input:_o()({[`${O}-sm`]:"small"===R,[`${O}-lg`]:"large"===R,[`${O}-rtl`]:"rtl"===k},null==w?void 0:w.input,null===(r=null==E?void 0:E.classNames)||void 0===r?void 0:r.input,N),variant:_o()({[`${O}-${U}`]:G},Hm(O,z)),affixWrapper:_o()({[`${O}-affix-wrapper-sm`]:"small"===R,[`${O}-affix-wrapper-lg`]:"large"===R,[`${O}-affix-wrapper-rtl`]:"rtl"===k},N),wrapper:_o()({[`${O}-group-rtl`]:"rtl"===k},N),groupWrapper:_o()({[`${O}-group-wrapper-sm`]:"small"===R,[`${O}-group-wrapper-lg`]:"large"===R,[`${O}-group-wrapper-rtl`]:"rtl"===k,[`${O}-group-wrapper-${U}`]:G},Hm(`${O}-group-wrapper`,z,L),N)})})))}));var Km=Ym;const Xm=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var Qm=Zl(["Input","OTP"],(e=>{const t=Hl(e,rm(e));return[Xm(t)]}),om),Zm=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Jm=t.forwardRef(((e,n)=>{const{value:r,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=Zm(e,["value","onChange","onActiveChange","index","mask"]),s=r&&"string"==typeof l?l:r,u=t.useRef(null);t.useImperativeHandle(n,(()=>u.current));const d=()=>{ji((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return t.createElement(Km,Object.assign({},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||r||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===l?"password":"text"}))}));var eg=Jm,tg=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ng(e){return(e||"").split("")}const rg=t.forwardRef(((e,n)=>{const{prefixCls:r,length:o=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,variant:u,disabled:d,status:f,autoFocus:p,mask:h}=e,v=tg(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);const{getPrefixCls:m,direction:g}=t.useContext(B),b=m("otp",r),y=dl(v,{aria:!0,data:!0,attr:!0}),w=El(b),[x,S,C]=Qm(b,w),k=Xc((e=>null!=i?i:e)),E=t.useContext(dp),O=Wm(E.status,f),_=t.useMemo((()=>Object.assign(Object.assign({},E),{status:O,hasFeedback:!1,feedbackIcon:null})),[E,O]),$=t.useRef(null),j=t.useRef({});t.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=j.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=j.current[t])||void 0===e||e.blur()},nativeElement:$.current})));const N=e=>s?s(e):e,[I,P]=t.useState(ng(N(a||"")));t.useEffect((()=>{void 0!==l&&P(ng(l))}),[l]);const M=Ko((e=>{P(e),c&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>I[t]!==e))&&c(e.join(""))})),R=Ko(((e,t)=>{let n=K(I);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(ng(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=N(n.map((e=>e||" ")).join(""));return n=ng(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),A=(e,t)=>{var n;const r=R(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=j.current[i])||void 0===n||n.focus()),M(r)},T=e=>{var t;null===(t=j.current[e])||void 0===t||t.focus()},q={variant:u,disabled:d,status:O,mask:h};return x(t.createElement("div",Object.assign({},y,{ref:$,className:_o()(b,{[`${b}-sm`]:"small"===k,[`${b}-lg`]:"large"===k,[`${b}-rtl`]:"rtl"===g},C,S)}),t.createElement(dp.Provider,{value:_},Array.from({length:o}).map(((e,n)=>{const r=`otp-${n}`,o=I[n]||"";return t.createElement(eg,Object.assign({ref:e=>{j.current[n]=e},key:r,index:n,size:k,htmlSize:1,className:`${b}-input`,onChange:A,value:o,onActiveChange:T,autoFocus:0===n&&p},q))})))))}));var og=rg,ig={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},ag=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:ig}))};var lg=t.forwardRef(ag),cg={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"},sg=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:cg}))};var ug=t.forwardRef(sg),dg=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fg=e=>e?t.createElement(ug,null):t.createElement(lg,null),pg={click:"onClick",hover:"onMouseOver"},hg=t.forwardRef(((e,n)=>{const{disabled:r,action:o="click",visibilityToggle:i=!0,iconRender:a=fg}=e,l="object"==typeof i&&void 0!==i.visible,[c,s]=(0,t.useState)((()=>!!l&&i.visible)),u=(0,t.useRef)(null);t.useEffect((()=>{l&&s(i.visible)}),[l,i]);const d=Um(u),f=()=>{r||(c&&d(),s((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:p,prefixCls:h,inputPrefixCls:v,size:m}=e,g=dg(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=t.useContext(B),y=b("input",v),w=b("input-password",h),x=i&&(e=>{const n=pg[o]||"",r=a(c),i={[n]:f,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return t.cloneElement(t.isValidElement(r)?r:t.createElement("span",null,r),i)})(w),S=_o()(w,p,{[`${w}-${m}`]:!!m}),C=Object.assign(Object.assign({},Tc(g,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:S,prefixCls:y,suffix:x});return m&&(C.size=m),t.createElement(Km,Object.assign({ref:Po(n,u)},C))}));var vg=hg,mg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},gg=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:mg}))};var bg=t.forwardRef(gg),yg=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var wg,xg=t.forwardRef(((e,n)=>{const{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:h,onCompositionEnd:v}=e,m=yg(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:b}=t.useContext(B),y=t.useRef(!1),w=g("input-search",r),x=g("input",o),{compactSize:S}=Jc(w,b),C=Xc((e=>{var t;return null!==(t=null!=a?a:S)&&void 0!==t?t:e})),k=t.useRef(null),E=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;f&&f(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},_="boolean"==typeof c?t.createElement(bg,null):null,$=`${w}-button`;let j;const N=c||{},I=N.type&&!0===N.type.__ANT_BUTTON;j=I||"button"===N.type?zc(N,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null==N?void 0:N.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},I?{className:$,size:C}:{})):t.createElement(Qs,{className:$,type:c?"primary":void 0,size:C,disabled:d,key:"enterButton",onMouseDown:E,onClick:O,loading:u,icon:_},c),s&&(j=[j,zc(s,{key:"addonAfter"})]);const P=_o()(w,{[`${w}-rtl`]:"rtl"===b,[`${w}-${C}`]:!!C,[`${w}-with-button`]:!!c},i);return t.createElement(Km,Object.assign({ref:Po(k,n),onPressEnter:e=>{y.current||u||O(e)}},m,{size:C,onCompositionStart:e=>{y.current=!0,null==h||h(e)},onCompositionEnd:e=>{y.current=!1,null==v||v(e)},prefixCls:x,addonAfter:j,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},className:P,disabled:d}))})),Sg=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Cg={};function kg(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;wg||((wg=document.createElement("textarea")).setAttribute("tab-index","-1"),wg.setAttribute("aria-hidden","true"),document.body.appendChild(wg)),e.getAttribute("wrap")?wg.setAttribute("wrap",e.getAttribute("wrap")):wg.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Cg[n])return Cg[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:Sg.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Cg[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;wg.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),wg.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=wg.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){wg.value=" ";var p=wg.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:s,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var Eg=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Og=t.forwardRef((function(e,n){var r=e,o=r.prefixCls,i=r.defaultValue,a=r.value,l=r.autoSize,c=r.onResize,s=r.className,u=r.style,d=r.disabled,f=r.onChange,p=(r.onInternalAutoSize,To(r,Eg)),h=G(Zo(i,{value:a,postState:function(e){return null!=e?e:""}}),2),m=h[0],g=h[1],b=t.useRef();t.useImperativeHandle(n,(function(){return{textArea:b.current}}));var y=G(t.useMemo((function(){return l&&"object"===v(l)?[l.minRows,l.maxRows]:[]}),[l]),2),x=y[0],C=y[1],k=!!l,E=G(t.useState(2),2),O=E[0],_=E[1],$=G(t.useState(),2),j=$[0],N=$[1],I=function(){_(0)};Je((function(){k&&I()}),[a,x,C,k]),Je((function(){if(0===O)_(1);else if(1===O){var e=kg(b.current,!1,x,C);_(2),N(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=r}}catch(e){}}()}),[O]);var P=t.useRef(),M=function(){ji.cancel(P.current)};t.useEffect((function(){return M}),[]);var R=k?j:null,A=S(S({},u),R);return 0!==O&&1!==O||(A.overflowY="hidden",A.overflowX="hidden"),t.createElement(Zu,{onResize:function(e){2===O&&(null==c||c(e),l&&(M(),P.current=ji((function(){I()}))))},disabled:!(l||c)},t.createElement("textarea",pt({},p,{ref:b,style:A,className:_o()(o,s,w({},"".concat(o,"-disabled"),d)),disabled:d,value:m,onChange:function(e){g(e.target.value),null==f||f(e)}})))})),_g=Og,$g=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],jg=t.forwardRef((function(e,n){var r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,c=e.onChange,s=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,v=void 0===h?"rc-textarea":h,m=e.showCount,g=e.count,b=e.className,y=e.style,x=e.disabled,C=e.hidden,k=e.classNames,E=e.styles,O=e.onResize,_=e.onClear,$=e.onPressEnter,j=e.readOnly,N=e.autoSize,I=e.onKeyDown,P=To(e,$g),M=G(Zo(o,{value:i,defaultValue:o}),2),R=M[0],A=M[1],T=null==R?"":String(R),q=G(t.useState(!1),2),L=q[0],D=q[1],z=t.useRef(!1),B=G(t.useState(null),2),F=B[0],H=B[1],W=(0,t.useRef)(null),V=(0,t.useRef)(null),U=function(){var e;return null===(e=V.current)||void 0===e?void 0:e.textArea},Y=function(){U().focus()};(0,t.useImperativeHandle)(n,(function(){var e;return{resizableTextArea:V.current,focus:Y,blur:function(){U().blur()},nativeElement:(null===(e=W.current)||void 0===e?void 0:e.nativeElement)||U()}})),(0,t.useEffect)((function(){D((function(e){return!x&&e}))}),[x]);var X=G(t.useState(null),2),Q=X[0],Z=X[1];t.useEffect((function(){var e;Q&&(e=U()).setSelectionRange.apply(e,K(Q))}),[Q]);var J,ee=Lm(g,m),te=null!==(r=ee.max)&&void 0!==r?r:u,ne=Number(te)>0,re=ee.strategy(T),oe=!!te&&re>te,ie=function(e,t){var n=t;!z.current&&ee.exceedFormatter&&ee.max&&ee.strategy(t)>ee.max&&t!==(n=ee.exceedFormatter(t,{max:ee.max}))&&Z([U().selectionStart||0,U().selectionEnd||0]),A(n),Mm(e.currentTarget,e,c,n)},ae=p;ee.show&&(J=ee.showFormatter?ee.showFormatter({value:T,count:re,maxLength:te}):"".concat(re).concat(ne?" / ".concat(te):""),ae=t.createElement(t.Fragment,null,ae,t.createElement("span",{className:_o()("".concat(v,"-data-count"),null==k?void 0:k.count),style:null==E?void 0:E.count},J)));var le=!N&&!m&&!s;return t.createElement(Tm,{ref:W,value:T,allowClear:s,handleReset:function(e){A(""),Y(),Mm(U(),e,c)},suffix:ae,prefixCls:v,classNames:S(S({},k),{},{affixWrapper:_o()(null==k?void 0:k.affixWrapper,w(w({},"".concat(v,"-show-count"),m),"".concat(v,"-textarea-allow-clear"),s))}),disabled:x,focused:L,className:_o()(b,oe&&"".concat(v,"-out-of-range")),style:S(S({},y),F&&!le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof J?J:void 0}},hidden:C,readOnly:j,onClear:_},t.createElement(_g,pt({},P,{autoSize:N,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&$&&$(e),null==I||I(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){D(!0),null==a||a(e)},onBlur:function(e){D(!1),null==l||l(e)},onCompositionStart:function(e){z.current=!0,null==d||d(e)},onCompositionEnd:function(e){z.current=!1,ie(e,e.currentTarget.value),null==f||f(e)},className:_o()(null==k?void 0:k.textarea),style:S(S({},null==E?void 0:E.textarea),{},{resize:null==y?void 0:y.resize}),disabled:x,prefixCls:v,onResize:function(e){var t;null==O||O(e),null!==(t=U())&&void 0!==t&&t.style.height&&H(!0)},ref:V,readOnly:j})))})),Ng=jg,Ig=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Pg=(0,t.forwardRef)(((e,n)=>{var r,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:c,status:s,allowClear:u,classNames:d,rootClassName:f,className:p,style:h,styles:v,variant:m}=e,g=Ig(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);const{getPrefixCls:b,direction:y,textArea:w}=t.useContext(B),x=Xc(l),S=t.useContext(bo),C=null!=c?c:S,{status:k,hasFeedback:E,feedbackIcon:O}=t.useContext(dp),_=Wm(k,s),$=t.useRef(null);t.useImperativeHandle(n,(()=>{var e;return{resizableTextArea:null===(e=$.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=$.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=$.current)||void 0===e?void 0:e.blur()}}}));const j=b("input",i),N=El(j),[I,P,M]=Nm(j,N),[R,A]=Vm("textArea",m,a),T=Fm(null!=u?u:null==w?void 0:w.allowClear);return I(t.createElement(Ng,Object.assign({autoComplete:null==w?void 0:w.autoComplete},g,{style:Object.assign(Object.assign({},null==w?void 0:w.style),h),styles:Object.assign(Object.assign({},null==w?void 0:w.styles),v),disabled:C,allowClear:T,className:_o()(M,N,p,f,null==w?void 0:w.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==w?void 0:w.classNames),{textarea:_o()({[`${j}-sm`]:"small"===x,[`${j}-lg`]:"large"===x},P,null==d?void 0:d.textarea,null===(r=null==w?void 0:w.classNames)||void 0===r?void 0:r.textarea),variant:_o()({[`${j}-${R}`]:A},Hm(j,_)),affixWrapper:_o()(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:"rtl"===y,[`${j}-affix-wrapper-sm`]:"small"===x,[`${j}-affix-wrapper-lg`]:"large"===x,[`${j}-textarea-show-count`]:e.showCount||(null===(o=e.count)||void 0===o?void 0:o.show)},P)}),prefixCls:j,suffix:E&&t.createElement("span",{className:`${j}-textarea-suffix`},O),ref:$})))}));var Mg=Pg;const Rg=Km;Rg.Group=Im,Rg.Search=xg,Rg.TextArea=Mg,Rg.Password=vg,Rg.OTP=og;var Ag=Rg;function Tg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Lg=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.placeholder,p=e.id,h=null===(n=e.field)||void 0===n?void 0:n.fieldType,v=null===(o=e.field)||void 0===o?void 0:o.parentId,m=null===(i=e.field)||void 0===i?void 0:i.index,g=null===(a=e.field)||void 0===a?void 0:a.repeaterData,b=Tg(l(),2),y=(b[0],b[1]);(0,t.useEffect)((function(){w(u)}),[]);var w=function(e){y({type:d,id:p,value:e,fieldType:h,parentId:v,repeaterData:g,index:m})};return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Ag,{className:"rtsb-form-field",placeholder:f,value:u,onChange:function(e){return w(e.target.value)}})}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function Dg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Bg=Ag.TextArea,Fg=function(e){var t,n,o,i,a=e.field,c=a.help,s=a.value,u=a.placeholder,f=e.id,p=null===(t=e.field)||void 0===t?void 0:t.fieldType,h=null===(n=e.field)||void 0===n?void 0:n.parentId,v=null===(o=e.field)||void 0===o?void 0:o.index,m=null===(i=e.field)||void 0===i?void 0:i.repeaterData,g=Dg(l(),2),b=(g[0],g[1]);return(0,r.jsxs)("div",{className:"rtsb-field textarea",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Bg,{rows:4,className:"rtsb-form-field",placeholder:u,value:s,onChange:function(e){b({type:d,id:f,value:e.target.value,fieldType:p,parentId:h,repeaterData:m,index:v})}})}),c&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:c}})]})]})},Hg=function(e){var n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.children,a=e.onMouseDown,l=e.onClick,c="function"==typeof r?r(o):r;return t.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==c?c:t.createElement("span",{className:_o()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},Wg=t.createContext(null);function Vg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=t.useRef(null),r=t.useRef(null);return t.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(t){(t||null===n.current)&&(n.current=t),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),e)}]}var Ug=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Gg=void 0;function Yg(e,n){var r=e.prefixCls,o=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,h=e.display,v=e.order,m=e.component,g=void 0===m?"div":m,b=To(e,Ug),y=l&&!h;function w(e){s(u,e)}t.useEffect((function(){return function(){w(null)}}),[]);var x,C=a&&i!==Gg?a(i):p;o||(x={opacity:y?0:1,height:y?0:Gg,overflowY:y?"hidden":Gg,order:l?v:Gg,pointerEvents:y?"none":Gg,position:y?"absolute":Gg});var k={};y&&(k["aria-hidden"]=!0);var E=t.createElement(g,pt({className:_o()(!o&&r,d),style:S(S({},x),f)},k,b,{ref:n}),C);return l&&(E=t.createElement(Zu,{onResize:function(e){w(e.offsetWidth)},disabled:c},E)),E}var Kg=t.forwardRef(Yg);Kg.displayName="Item";var Xg=Kg;function Qg(){var e=t.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)ji(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,k.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function Zg(e,n){var r=G(t.useState(n),2),o=r[0],i=r[1];return[o,Ko((function(t){e((function(){i(t)}))}))]}var Jg=t.createContext(null),eb=["component"],tb=["className"],nb=["className"],rb=function(e,n){var r=t.useContext(Jg);if(!r){var o=e.component,i=void 0===o?"div":o,a=To(e,eb);return t.createElement(i,pt({},a,{ref:n}))}var l=r.className,c=To(r,tb),s=e.className,u=To(e,nb);return t.createElement(Jg.Provider,{value:null},t.createElement(Xg,pt({ref:n,className:_o()(l,s)},c,u)))},ob=t.forwardRef(rb);ob.displayName="RawItem";var ib=ob,ab=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],lb="responsive",cb="invalidate";function sb(e){return"+ ".concat(e.length," ...")}function ub(e,n){var r=e.prefixCls,o=void 0===r?"rc-overflow":r,i=e.data,a=void 0===i?[]:i,l=e.renderItem,c=e.renderRawItem,s=e.itemKey,u=e.itemWidth,d=void 0===u?10:u,f=e.ssr,p=e.style,h=e.className,v=e.maxCount,m=e.renderRest,g=e.renderRawRest,b=e.suffix,y=e.component,w=void 0===y?"div":y,x=e.itemComponent,C=e.onVisibleChange,k=To(e,ab),E="full"===f,O=Qg(),_=G(Zg(O,null),2),$=_[0],j=_[1],N=$||0,I=G(Zg(O,new Map),2),P=I[0],M=I[1],R=G(Zg(O,0),2),A=R[0],T=R[1],q=G(Zg(O,0),2),L=q[0],D=q[1],z=G(Zg(O,0),2),B=z[0],F=z[1],H=G((0,t.useState)(null),2),W=H[0],V=H[1],U=G((0,t.useState)(null),2),Y=U[0],K=U[1],X=t.useMemo((function(){return null===Y&&E?Number.MAX_SAFE_INTEGER:Y||0}),[Y,$]),Q=G((0,t.useState)(!1),2),Z=Q[0],J=Q[1],ee="".concat(o,"-item"),te=Math.max(A,L),ne=v===lb,re=a.length&&ne,oe=v===cb,ie=re||"number"==typeof v&&a.length>v,ae=(0,t.useMemo)((function(){var e=a;return re?e=null===$&&E?a:a.slice(0,Math.min(a.length,N/d)):"number"==typeof v&&(e=a.slice(0,v)),e}),[a,d,$,v,re]),le=(0,t.useMemo)((function(){return re?a.slice(X+1):a.slice(ae.length)}),[a,ae,re,X]),ce=(0,t.useCallback)((function(e,t){var n;return"function"==typeof s?s(e):null!==(n=s&&(null==e?void 0:e[s]))&&void 0!==n?n:t}),[s]),se=(0,t.useCallback)(l||function(e){return e},[l]);function ue(e,t,n){(Y!==e||void 0!==t&&t!==W)&&(K(e),n||(J(e<a.length-1),null==C||C(e)),void 0!==t&&V(t))}function de(e,t){M((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function fe(e){return P.get(ce(ae[e],e))}Je((function(){if(N&&"number"==typeof te&&ae){var e=B,t=ae.length,n=t-1;if(!t)return void ue(0,null);for(var r=0;r<t;r+=1){var o=fe(r);if(E&&(o=o||0),void 0===o){ue(r-1,void 0,!0);break}if(e+=o,0===n&&e<=N||r===n-1&&e+fe(n)<=N){ue(n,null);break}if(e+te>N){ue(r-1,e-o-B+L);break}}b&&fe(0)+B>N&&V(null)}}),[N,P,L,B,ce,ae]);var pe=Z&&!!le.length,he={};null!==W&&re&&(he={position:"absolute",left:W,top:0});var ve,me={prefixCls:ee,responsive:re,component:x,invalidate:oe},ge=c?function(e,n){var r=ce(e,n);return t.createElement(Jg.Provider,{key:r,value:S(S({},me),{},{order:n,item:e,itemKey:r,registerSize:de,display:n<=X})},c(e,n))}:function(e,n){var r=ce(e,n);return t.createElement(Xg,pt({},me,{order:n,key:r,item:e,renderItem:se,itemKey:r,registerSize:de,display:n<=X}))},be={order:pe?X:Number.MAX_SAFE_INTEGER,className:"".concat(ee,"-rest"),registerSize:function(e,t){D(t),T(L)},display:pe};if(g)g&&(ve=t.createElement(Jg.Provider,{value:S(S({},me),be)},g(le)));else{var ye=m||sb;ve=t.createElement(Xg,pt({},me,be),"function"==typeof ye?ye(le):ye)}var we=t.createElement(w,pt({className:_o()(!oe&&o,h),style:p,ref:n},k),ae.map(ge),ie?ve:null,b&&t.createElement(Xg,pt({},me,{responsive:ne,responsiveDisabled:!re,order:X,className:"".concat(ee,"-suffix"),registerSize:function(e,t){F(t)},display:!0,style:he}),b));return ne&&(we=t.createElement(Zu,{onResize:function(e,t){j(t.clientWidth)},disabled:!re},we)),we}var db=t.forwardRef(ub);db.displayName="Overflow",db.Item=ib,db.RESPONSIVE=lb,db.INVALIDATE=cb;var fb=db,pb=function(e,n){var r,o=e.prefixCls,i=e.id,a=e.inputElement,l=e.disabled,c=e.tabIndex,s=e.autoFocus,u=e.autoComplete,d=e.editable,f=e.activeDescendantId,p=e.value,h=e.maxLength,v=e.onKeyDown,m=e.onMouseDown,g=e.onChange,b=e.onPaste,y=e.onCompositionStart,w=e.onCompositionEnd,x=e.open,C=e.attrs,k=a||t.createElement("input",null),E=k,O=E.ref,_=E.props,$=_.onKeyDown,j=_.onChange,N=_.onMouseDown,I=_.onCompositionStart,P=_.onCompositionEnd,M=_.style;return k.props,k=t.cloneElement(k,S(S(S({type:"search"},_),{},{id:i,ref:Po(n,O),disabled:l,tabIndex:c,autoComplete:u||"off",autoFocus:s,className:_o()("".concat(o,"-selection-search-input"),null===(r=k)||void 0===r||null===(r=r.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":x?f:void 0},C),{},{value:d?p:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:S(S({},M),{},{opacity:d?null:0}),onKeyDown:function(e){v(e),$&&$(e)},onMouseDown:function(e){m(e),N&&N(e)},onChange:function(e){g(e),j&&j(e)},onCompositionStart:function(e){y(e),I&&I(e)},onCompositionEnd:function(e){w(e),P&&P(e)},onPaste:b}))};var hb=t.forwardRef(pb);function vb(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var mb="undefined"!=typeof window&&window.document&&window.document.documentElement;function gb(e){return["string","number"].includes(v(e))}function bb(e){var t=void 0;return e&&(gb(e.title)?t=e.title.toString():gb(e.label)&&(t=e.label.toString())),t}function yb(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var wb=function(e){e.preventDefault(),e.stopPropagation()},xb=function(e){var n,r,o=e.id,i=e.prefixCls,a=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,u=e.inputRef,d=e.placeholder,f=e.disabled,p=e.mode,h=e.showSearch,v=e.autoFocus,m=e.autoComplete,g=e.activeDescendantId,b=e.tabIndex,y=e.removeIcon,x=e.maxTagCount,S=e.maxTagTextLength,C=e.maxTagPlaceholder,k=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,E=e.tagRender,O=e.onToggleOpen,_=e.onRemove,$=e.onInputChange,j=e.onInputPaste,N=e.onInputKeyDown,I=e.onInputMouseDown,P=e.onInputCompositionStart,M=e.onInputCompositionEnd,R=t.useRef(null),A=G((0,t.useState)(0),2),T=A[0],q=A[1],L=G((0,t.useState)(!1),2),D=L[0],z=L[1],B="".concat(i,"-selection"),F=l||"multiple"===p&&!1===s||"tags"===p?c:"",H="tags"===p||"multiple"===p&&!1===s||h&&(l||D);n=function(){q(R.current.scrollWidth)},r=[F],mb?t.useLayoutEffect(n,r):t.useEffect(n,r);var W=function(e,n,r,o,i){return t.createElement("span",{title:bb(e),className:_o()("".concat(B,"-item"),w({},"".concat(B,"-item-disabled"),r))},t.createElement("span",{className:"".concat(B,"-item-content")},n),o&&t.createElement(Hg,{className:"".concat(B,"-item-remove"),onMouseDown:wb,onClick:i,customizeIcon:y},"×"))},V=function(e,n,r,o,i,a){return t.createElement("span",{onMouseDown:function(e){wb(e),O(!l)}},E({label:n,value:e,disabled:r,closable:o,onClose:i,isMaxTag:!!a}))},U=t.createElement("div",{className:"".concat(B,"-search"),style:{width:T},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},t.createElement(hb,{ref:u,open:l,prefixCls:i,id:o,inputElement:null,disabled:f,autoFocus:v,autoComplete:m,editable:H,activeDescendantId:g,value:F,onKeyDown:N,onMouseDown:I,onChange:$,onPaste:j,onCompositionStart:P,onCompositionEnd:M,tabIndex:b,attrs:dl(e,!0)}),t.createElement("span",{ref:R,className:"".concat(B,"-search-mirror"),"aria-hidden":!0},F," ")),Y=t.createElement(fb,{prefixCls:"".concat(B,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!f&&!t,i=n;if("number"==typeof S&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>S&&(i="".concat(a.slice(0,S),"..."))}var l=function(t){t&&t.stopPropagation(),_(e)};return"function"==typeof E?V(r,i,t,o,l):W(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof k?k(e):k;return"function"==typeof E?V(void 0,t,!1,!1,void 0,!0):W({title:t},t,!1)},suffix:U,itemKey:yb,maxCount:x});return t.createElement(t.Fragment,null,Y,!a.length&&!F&&t.createElement("span",{className:"".concat(B,"-placeholder")},d))},Sb=function(e){var n=e.inputElement,r=e.prefixCls,o=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,h=e.tabIndex,v=e.showSearch,m=e.searchValue,g=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,w=e.onInputMouseDown,x=e.onInputChange,S=e.onInputPaste,C=e.onInputCompositionStart,k=e.onInputCompositionEnd,E=e.title,O=G(t.useState(!1),2),_=O[0],$=O[1],j="combobox"===u,N=j||v,I=f[0],P=m||"";j&&g&&!_&&(P=g),t.useEffect((function(){j&&$(!1)}),[j,g]);var M=!("combobox"!==u&&!d&&!v)&&!!P,R=void 0===E?bb(I):E,A=t.useMemo((function(){return I?null:t.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:M?{visibility:"hidden"}:void 0},p)}),[I,M,p,r]);return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(r,"-selection-search")},t.createElement(hb,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:l,autoComplete:c,editable:N,activeDescendantId:s,value:P,onKeyDown:y,onMouseDown:w,onChange:function(e){$(!0),x(e)},onPaste:S,onCompositionStart:C,onCompositionEnd:k,tabIndex:h,attrs:dl(e,!0),maxLength:j?b:void 0})),!j&&I?t.createElement("span",{className:"".concat(r,"-selection-item"),title:R,style:M?{visibility:"hidden"}:void 0},I.label):null,A)},Cb=function(e,n){var r=(0,t.useRef)(null),o=(0,t.useRef)(!1),i=e.prefixCls,a=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,u=e.disabled,d=e.autoClearSearchValue,f=e.onSearch,p=e.onSearchSubmit,h=e.onToggleOpen,v=e.onInputKeyDown,m=e.domRef;t.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var g=G(Vg(0),2),b=g[0],y=g[1],w=(0,t.useRef)(null),x=function(e){!1!==f(e,!0,o.current)&&h(!0)},S={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==al.UP&&n!==al.DOWN||e.preventDefault(),v&&v(e),n!==al.ENTER||"tags"!==l||o.current||a||null==p||p(e.target.value),t=n,[al.ESC,al.SHIFT,al.BACKSPACE,al.TAB,al.WIN_KEY,al.ALT,al.META,al.WIN_KEY_RIGHT,al.CTRL,al.SEMICOLON,al.EQUALS,al.CAPS_LOCK,al.CONTEXT_MENU,al.F1,al.F2,al.F3,al.F4,al.F5,al.F6,al.F7,al.F8,al.F9,al.F10,al.F11,al.F12].includes(t)||h(!0)},onInputMouseDown:function(){y(!0)},onInputChange:function(e){var t=e.target.value;if(s&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&x(e.target.value)}},C="multiple"===l||"tags"===l?t.createElement(xb,pt({},e,S)):t.createElement(Sb,pt({},e,S));return t.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){r.current.focus()})):r.current.focus())},onMouseDown:function(e){var t=b();e.target===r.current||t||"combobox"===l&&u||e.preventDefault(),("combobox"===l||c&&t)&&a||(a&&!1!==d&&f("",!0,!1),h())}},C)};var kb=t.forwardRef(Cb),Eb=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ob=function(e,n){var r=e.prefixCls,o=(e.disabled,e.visible),i=e.children,a=e.popupElement,l=e.animation,c=e.transitionName,s=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,f=void 0===d?"ltr":d,p=e.placement,h=e.builtinPlacements,v=e.dropdownMatchSelectWidth,m=e.dropdownRender,g=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,C=e.onPopupVisibleChange,k=e.onPopupMouseEnter,E=To(e,Eb),O="".concat(r,"-dropdown"),_=a;m&&(_=m(a));var $=t.useMemo((function(){return h||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(v)}),[h,v]),j=l?"".concat(O,"-").concat(l):c,N="number"==typeof v,I=t.useMemo((function(){return N?null:!1===v?"minWidth":"width"}),[v,N]),P=s;N&&(P=S(S({},P),{},{width:v}));var M=t.useRef(null);return t.useImperativeHandle(n,(function(){return{getPopupElement:function(){var e;return null===(e=M.current)||void 0===e?void 0:e.popupElement}}})),t.createElement(Od,pt({},E,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:p||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:$,prefixCls:O,popupTransitionName:j,popup:t.createElement("div",{onMouseEnter:k},_),ref:M,stretch:I,popupAlign:g,popupVisible:o,getPopupContainer:b,popupClassName:_o()(u,w({},"".concat(O,"-empty"),y)),popupStyle:P,getTriggerDOMNode:x,onPopupVisibleChange:C}),i)};var _b=t.forwardRef(Ob);function $b(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function jb(e){return void 0!==e&&!Number.isNaN(e)}function Nb(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function Ib(e){var t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return be(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Pb=t.createContext(null);function Mb(e){var n=e.visible,r=e.values;if(!n)return null;return t.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(v(t))?t:n})).join(", ")),r.length>50?", ...":null)}var Rb=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ab=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Tb=function(e){return"tags"===e||"multiple"===e},qb=t.forwardRef((function(e,n){var r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,c=e.tagRender,s=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,m=void 0===h?"Not Found":h,g=e.onClear,b=e.mode,y=e.disabled,x=e.loading,C=e.getInputElement,k=e.getRawInputElement,E=e.open,O=e.defaultOpen,_=e.onDropdownVisibleChange,$=e.activeValue,j=e.onActiveValueChange,N=e.activeDescendantId,I=e.searchValue,P=e.autoClearSearchValue,M=e.onSearch,R=e.onSearchSplit,A=e.tokenSeparators,T=e.allowClear,q=e.suffixIcon,L=e.clearIcon,D=e.OptionList,z=e.animation,B=e.transitionName,F=e.dropdownStyle,H=e.dropdownClassName,W=e.dropdownMatchSelectWidth,V=e.dropdownRender,U=e.dropdownAlign,Y=e.placement,X=e.builtinPlacements,Q=e.getPopupContainer,Z=e.showAction,J=void 0===Z?[]:Z,ee=e.onFocus,te=e.onBlur,ne=e.onKeyUp,re=e.onKeyDown,oe=e.onMouseDown,ie=To(e,Rb),ae=Tb(b),le=(void 0!==l?l:ae)||"combobox"===b,ce=S({},ie);Ab.forEach((function(e){delete ce[e]})),null==u||u.forEach((function(e){delete ce[e]}));var se=G(t.useState(!1),2),ue=se[0],de=se[1];t.useEffect((function(){de(nd())}),[]);var fe=t.useRef(null),pe=t.useRef(null),he=t.useRef(null),ve=t.useRef(null),me=t.useRef(null),ge=t.useRef(!1),be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=G(t.useState(!1),2),r=n[0],o=n[1],i=t.useRef(null),a=function(){window.clearTimeout(i.current)};return t.useEffect((function(){return a}),[]),[r,function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},a]}(),ye=G(be,3),we=ye[0],xe=ye[1],Se=ye[2];t.useImperativeHandle(n,(function(){var e,t;return{focus:null===(e=ve.current)||void 0===e?void 0:e.focus,blur:null===(t=ve.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=me.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:fe.current||pe.current}}));var Ce=t.useMemo((function(){var e;if("combobox"!==b)return I;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[I,b,d]),ke="combobox"===b&&"function"==typeof C&&C()||null,Ee="function"==typeof k&&k(),Oe=Mo(pe,null==Ee||null===(r=Ee.props)||void 0===r?void 0:r.ref),_e=G(t.useState(!1),2),$e=_e[0],je=_e[1];Je((function(){je(!0)}),[]);var Ne=G(Zo(!1,{defaultValue:O,value:E}),2),Ie=Ne[0],Pe=Ne[1],Me=!!$e&&Ie,Re=!m&&p;(y||Re&&Me&&"combobox"===b)&&(Me=!1);var Ae=!Re&&Me,Te=t.useCallback((function(e){var t=void 0!==e?e:!Me;y||(Pe(t),Me!==t&&(null==_||_(t)))}),[y,Me,Pe,_]),qe=t.useMemo((function(){return(A||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[A]),Le=t.useContext(Pb)||{},De=Le.maxCount,ze=Le.rawValues,Be=function(e,t,n){if(!(ae&&jb(De)&&(null==ze?void 0:ze.size)>=De)){var r=!0,o=e;null==j||j(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=Cn(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce((function(t,n){return[].concat(K(t),K(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,A,jb(De)?De-ze.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(o="",null==R||R(a),Te(!1),r=!1),M&&Ce!==o&&M(o,{source:t?"typing":"effect"}),r}};t.useEffect((function(){Me||ae||"combobox"===b||Be("",!1,!1)}),[Me]),t.useEffect((function(){Ie&&y&&Pe(!1),y&&!ge.current&&xe(!1)}),[y]);var Fe=G(Vg(),2),He=Fe[0],We=Fe[1],Ve=t.useRef(!1),Ue=t.useRef(!1),Ge=[];t.useEffect((function(){return function(){Ge.forEach((function(e){return clearTimeout(e)})),Ge.splice(0,Ge.length)}}),[]);var Ye,Ke=G(t.useState({}),2)[1];Ee&&(Ye=function(e){Te(e)}),function(e,n,r,o){var i=t.useRef(null);i.current={open:n,triggerOpen:r,customizedTrigger:o},t.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[fe.current,null===(e=he.current)||void 0===e?void 0:e.getPopupElement()]}),Ae,Te,!!Ee);var Xe,Qe=t.useMemo((function(){return S(S({},e),{},{notFoundContent:m,open:Me,triggerOpen:Ae,id:o,showSearch:le,multiple:ae,toggleOpen:Te})}),[e,m,Ae,Me,o,le,ae,Te]),Ze=!!q||x;Ze&&(Xe=t.createElement(Hg,{className:_o()("".concat(i,"-arrow"),w({},"".concat(i,"-arrow-loading"),x)),customizeIcon:q,customizeIconProps:{loading:x,searchValue:Ce,open:Me,focused:we,showSearch:le}}));var et,tt=function(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=t.useMemo((function(){return"object"===v(o)?o.clearIcon:i||void 0}),[o,i]);return{allowClear:t.useMemo((function(){return!(a||!o||!r.length&&!l||"combobox"===c&&""===l)}),[o,a,r.length,l,c]),clearIcon:t.createElement(Hg,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:s},"×")}}(i,(function(){var e;null==g||g(),null===(e=ve.current)||void 0===e||e.focus(),f([],{type:"clear",values:d}),Be("",!1,!1)}),d,T,L,y,Ce,b),nt=tt.allowClear,rt=tt.clearIcon,ot=t.createElement(D,{ref:me}),it=_o()(i,a,w(w(w(w(w(w(w(w(w(w({},"".concat(i,"-focused"),we),"".concat(i,"-multiple"),ae),"".concat(i,"-single"),!ae),"".concat(i,"-allow-clear"),T),"".concat(i,"-show-arrow"),Ze),"".concat(i,"-disabled"),y),"".concat(i,"-loading"),x),"".concat(i,"-open"),Me),"".concat(i,"-customize-input"),ke),"".concat(i,"-show-search"),le)),at=t.createElement(_b,{ref:he,disabled:y,prefixCls:i,visible:Ae,popupElement:ot,animation:z,transitionName:B,dropdownStyle:F,dropdownClassName:H,direction:s,dropdownMatchSelectWidth:W,dropdownRender:V,dropdownAlign:U,placement:Y,builtinPlacements:X,getPopupContainer:Q,empty:p,getTriggerDOMNode:function(e){return pe.current||e},onPopupVisibleChange:Ye,onPopupMouseEnter:function(){Ke({})}},Ee?t.cloneElement(Ee,{ref:Oe}):t.createElement(kb,pt({},e,{domRef:pe,prefixCls:i,inputElement:ke,ref:ve,id:o,showSearch:le,autoClearSearchValue:P,mode:b,activeDescendantId:N,tagRender:c,values:d,open:Me,onToggleOpen:Te,activeValue:$,searchValue:Ce,onSearch:Be,onSearchSubmit:function(e){e&&e.trim()&&M(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:qe})));return et=Ee?at:t.createElement("div",pt({className:it},ce,{ref:fe,onMouseDown:function(e){var t,n=e.target,r=null===(t=he.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Ge.indexOf(o);-1!==t&&Ge.splice(t,1),Se(),ue||r.contains(document.activeElement)||null===(e=ve.current)||void 0===e||e.focus()}));Ge.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==oe||oe.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=He(),r=e.key,o="Enter"===r;if(o&&("combobox"!==b&&e.preventDefault(),Me||Te(!0)),We(!!Ce),"Backspace"===r&&!n&&ae&&!Ce&&d.length){for(var i=K(d),a=null,l=i.length-1;l>=0;l-=1){var c=i[l];if(!c.disabled){i.splice(l,1),a=c;break}}a&&f(i,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),p=1;p<s;p++)u[p-1]=arguments[p];!Me||o&&Ve.current||null===(t=me.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u)),o&&(Ve.current=!0),null==re||re.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Me&&(null===(o=me.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),"Enter"===e.key&&(Ve.current=!1),null==ne||ne.apply(void 0,[e].concat(n))},onFocus:function(){xe(!0),y||(ee&&!Ue.current&&ee.apply(void 0,arguments),J.includes("focus")&&Te(!0)),Ue.current=!0},onBlur:function(){ge.current=!0,xe(!1,(function(){Ue.current=!1,ge.current=!1,Te(!1)})),y||(Ce&&("tags"===b?M(Ce,{source:"submit"}):"multiple"===b&&M("",{source:"blur"})),te&&te.apply(void 0,arguments))}}),t.createElement(Mb,{visible:we&&!Me,values:d}),at,Xe,nt&&rt),t.createElement(Wg.Provider,{value:Qe},et)}));var Lb=qb,Db=function(){return null};Db.isSelectOptGroup=!0;var zb=Db,Bb=function(){return null};Bb.isSelectOption=!0;var Fb=Bb,Hb=t.forwardRef((function(e,n){var r=e.height,o=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,c=e.onInnerResize,s=e.innerProps,u=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};return void 0!==o&&(f={height:r,position:"relative",overflow:"hidden"},p=S(S({},p),{},w(w(w(w(w({transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),t.createElement("div",{style:f},t.createElement(Zu,{onResize:function(e){e.offsetHeight&&c&&c()}},t.createElement("div",pt({style:p,className:_o()(w({},"".concat(l,"-holder-inner"),l)),ref:n},s),a,d)))}));Hb.displayName="Filler";var Wb=Hb;function Vb(e){var n=e.children,r=e.setRef,o=t.useCallback((function(e){r(e)}),[]);return t.cloneElement(n,{ref:o})}function Ub(e,n,r){var o=G(t.useState(e),2),i=o[0],a=o[1],l=G(t.useState(null),2),c=l[0],s=l[1];return t.useEffect((function(){var t=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){s=d,u=u||f!==c(o[d+1]);break}}return null===s?null:{index:s,multiple:u}}(i||[],e||[],n);void 0!==(null==t?void 0:t.index)&&(null==r||r(t.index),s(e[t.index])),a(e)}),[e]),[c]}var Gb="object"===("undefined"==typeof navigator?"undefined":v(navigator))&&/Firefox/i.test(navigator.userAgent),Yb=function(e,n,r,o){var i=(0,t.useRef)(!1),a=(0,t.useRef)(null);var l=(0,t.useRef)({top:e,bottom:n,left:r,right:o});return l.current.top=e,l.current.bottom=n,l.current.left=r,l.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&r}};function Kb(e,n,r,o,i,a,l){var c=(0,t.useRef)(0),s=(0,t.useRef)(null),u=(0,t.useRef)(null),d=(0,t.useRef)(!1),f=Yb(n,r,o,i);var p=(0,t.useRef)(null),h=(0,t.useRef)(null);return[function(t){if(e){ji.cancel(h.current),h.current=ji((function(){p.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,i=n,v=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,v=0,p.current="sx");var m=Math.abs(i),g=Math.abs(v);null===p.current&&(p.current=a&&m>g?"x":"y"),"y"===p.current?function(e,t){ji.cancel(s.current),c.current+=t,u.current=t,f(!1,t)||(Gb||e.preventDefault(),s.current=ji((function(){var e=d.current?10:1;l(c.current*e),c.current=0})))}(t,v):function(e,t){l(t,!0),Gb||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}var Xb=function(){function e(){we(this,e),w(this,"maps",void 0),w(this,"id",0),this.maps=Object.create(null)}return Se(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),Qb=Xb;var Zb=14/15;var Jb=10;function ey(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var ty=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,c=e.onStopMove,s=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,v=G(t.useState(!1),2),m=v[0],g=v[1],b=G(t.useState(null),2),y=b[0],x=b[1],C=G(t.useState(null),2),k=C[0],E=C[1],O=!o,_=t.useRef(),$=t.useRef(),j=G(t.useState(!1),2),N=j[0],I=j[1],P=t.useRef(),M=function(){clearTimeout(P.current),I(!0),P.current=setTimeout((function(){I(!1)}),3e3)},R=a-f||0,A=f-d||0,T=t.useMemo((function(){return 0===i||0===R?0:i/R*A}),[i,R,A]),q=t.useRef({top:T,dragging:m,pageY:y,startTop:k});q.current={top:T,dragging:m,pageY:y,startTop:k};var L=function(e){g(!0),x(ey(e,u)),E(q.current.top),l(),e.stopPropagation(),e.preventDefault()};t.useEffect((function(){var e=function(e){e.preventDefault()},t=_.current,n=$.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",L,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",L)}}),[]);var D=t.useRef();D.current=R;var z=t.useRef();z.current=A,t.useEffect((function(){if(m){var e,t=function(t){var n=q.current,r=n.dragging,o=n.pageY,i=n.startTop;ji.cancel(e);var a=_.current.getBoundingClientRect(),l=f/(u?a.width:a.height);if(r){var c=(ey(t,u)-o)*l,d=i;!O&&u?d-=c:d+=c;var p=D.current,h=z.current,v=h?d/h:0,m=Math.ceil(v*p);m=Math.max(m,0),m=Math.min(m,p),e=ji((function(){s(m,u)}))}},n=function(){g(!1),c()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),ji.cancel(e)}}}),[m]),t.useEffect((function(){return M(),function(){clearTimeout(P.current)}}),[i]),t.useImperativeHandle(n,(function(){return{delayHidden:M}}));var B="".concat(r,"-scrollbar"),F={position:"absolute",visibility:N?null:"hidden"},H={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(F.height=8,F.left=0,F.right=0,F.bottom=0,H.height="100%",H.width=d,O?H.left=T:H.right=T):(F.width=8,F.top=0,F.bottom=0,O?F.right=0:F.left=0,H.width="100%",H.height=d,H.top=T),t.createElement("div",{ref:_,className:_o()(B,w(w(w({},"".concat(B,"-horizontal"),u),"".concat(B,"-vertical"),!u),"".concat(B,"-visible"),N)),style:S(S({},F),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:M},t.createElement("div",{ref:$,className:_o()("".concat(B,"-thumb"),w({},"".concat(B,"-thumb-moving"),m)),style:S(S({},H),h),onMouseDown:L}))}));var ny=ty,ry=20;function oy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,ry),Math.floor(t)}var iy=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],ay=[],ly={overflowY:"auto",overflowAnchor:"none"};function cy(e,n){var r=e.prefixCls,o=void 0===r?"rc-virtual-list":r,i=e.className,a=e.height,l=e.itemHeight,c=e.fullHeight,s=void 0===c||c,u=e.style,d=e.data,f=e.children,p=e.itemKey,h=e.virtual,m=e.direction,g=e.scrollWidth,b=e.component,y=void 0===b?"div":b,x=e.onScroll,C=e.onVirtualScroll,E=e.onVisibleChange,O=e.innerProps,_=e.extraRender,$=e.styles,j=To(e,iy),N=t.useCallback((function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]}),[p]),I=function(e,n,r){var o=G(t.useState(0),2),i=o[0],a=o[1],l=(0,t.useRef)(new Map),c=(0,t.useRef)(new Qb),s=(0,t.useRef)();function u(){ji.cancel(s.current)}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=jo(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():s.current=ji(t)}return(0,t.useEffect)((function(){return u}),[]),[function(t,o){var i=e(t),a=l.current.get(i);o?(l.current.set(i,o),d()):l.current.delete(i),!a!=!o&&(o?null==n||n(t):null==r||r(t))},d,c.current,i]}(N,null,null),P=G(I,4),M=P[0],R=P[1],A=P[2],T=P[3],q=!(!1===h||!a||!l),L=t.useMemo((function(){return Object.values(A.maps).reduce((function(e,t){return e+t}),0)}),[A.id,A.maps]),D=q&&d&&(Math.max(l*d.length,L)>a||!!g),z="rtl"===m,B=_o()(o,w({},"".concat(o,"-rtl"),z),i),F=d||ay,H=(0,t.useRef)(),W=(0,t.useRef)(),V=(0,t.useRef)(),U=G((0,t.useState)(0),2),Y=U[0],K=U[1],X=G((0,t.useState)(0),2),Q=X[0],Z=X[1],J=G((0,t.useState)(!1),2),ee=J[0],te=J[1],ne=function(){te(!0)},re=function(){te(!1)},oe={getKey:N};function ie(e){K((function(t){var n=function(e){var t=e;Number.isNaN(Se.current)||(t=Math.min(t,Se.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return H.current.scrollTop=n,n}))}var ae=(0,t.useRef)({start:0,end:F.length}),le=(0,t.useRef)(),ce=G(Ub(F,N),1)[0];le.current=ce;var se=t.useMemo((function(){if(!q)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};var e;if(!D)return{scrollHeight:(null===(e=W.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:F.length-1,offset:void 0};for(var t,n,r,o=0,i=F.length,c=0;c<i;c+=1){var s=F[c],u=N(s),d=A.get(u),f=o+(void 0===d?l:d);f>=Y&&void 0===t&&(t=c,n=o),f>Y+a&&void 0===r&&(r=c),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/l)),void 0===r&&(r=F.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,F.length-1),offset:n}}),[D,q,Y,F,T,a]),ue=se.scrollHeight,de=se.start,fe=se.end,pe=se.offset;ae.current.start=de,ae.current.end=fe;var he=G(t.useState({width:0,height:a}),2),ve=he[0],me=he[1],ge=(0,t.useRef)(),be=(0,t.useRef)(),ye=t.useMemo((function(){return oy(ve.width,g)}),[ve.width,g]),we=t.useMemo((function(){return oy(ve.height,ue)}),[ve.height,ue]),xe=ue-a,Se=(0,t.useRef)(xe);Se.current=xe;var Ce=Y<=0,ke=Y>=xe,Ee=Q<=0,Oe=Q>=g,_e=Yb(Ce,ke,Ee,Oe),$e=function(){return{x:z?-Q:Q,y:Y}},je=(0,t.useRef)($e()),Ne=Ko((function(e){if(C){var t=S(S({},$e()),e);je.current.x===t.x&&je.current.y===t.y||(C(t),je.current=t)}}));function Ie(e,t){var n=e;t?((0,k.flushSync)((function(){Z(n)})),Ne()):ie(n)}var Pe=function(e){var t=e,n=g?g-ve.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Me=Ko((function(e,t){t?((0,k.flushSync)((function(){Z((function(t){return Pe(t+(z?-e:e))}))})),Ne()):ie((function(t){return t+e}))})),Re=G(Kb(q,Ce,ke,Ee,Oe,!!g,Me),2),Ae=Re[0],Te=Re[1];!function(e,n,r){var o,i=(0,t.useRef)(!1),a=(0,t.useRef)(0),l=(0,t.useRef)(0),c=(0,t.useRef)(null),s=(0,t.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=a.current-t,c=l.current-n,u=Math.abs(o)>Math.abs(c);u?a.current=t:l.current=n,r(u,u?o:c)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){u?o*=Zb:c*=Zb;var e=Math.floor(u?o:c);(!r(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)}),16)}},d=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",u,{passive:!1}),c.current.addEventListener("touchend",d,{passive:!0}))};o=function(){c.current&&(c.current.removeEventListener("touchmove",u),c.current.removeEventListener("touchend",d))},Je((function(){return e&&n.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(s.current)}}),[e])}(q,H,(function(e,t,n){return!_e(e,t,n)&&(Ae({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)})),Je((function(){function e(e){q&&e.preventDefault()}var t=H.current;return t.addEventListener("wheel",Ae,{passive:!1}),t.addEventListener("DOMMouseScroll",Te,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Ae),t.removeEventListener("DOMMouseScroll",Te),t.removeEventListener("MozMousePixelScroll",e)}}),[q]),Je((function(){if(g){var e=Pe(Q);Z(e),Ne({x:e})}}),[ve.width,g]);var qe=function(){var e,t;null===(e=ge.current)||void 0===e||e.delayHidden(),null===(t=be.current)||void 0===t||t.delayHidden()},Le=function(e,n,r,o,i,a,l,c){var s=t.useRef(),u=G(t.useState(null),2),d=u[0],f=u[1];return Je((function(){if(d&&d.times<Jb){if(!e.current)return void f((function(e){return S({},e)}));a();var t=d.targetAlign,c=d.originAlign,s=d.index,u=d.offset,p=e.current.clientHeight,h=!1,v=t,m=null;if(p){for(var g=t||c,b=0,y=0,w=0,x=Math.min(n.length-1,s),C=0;C<=x;C+=1){var k=i(n[C]);y=b;var E=r.get(k);b=w=y+(void 0===E?o:E)}for(var O="top"===g?u:p-u,_=x;_>=0;_-=1){var $=i(n[_]),j=r.get($);if(void 0===j){h=!0;break}if((O-=j)<=0)break}switch(g){case"top":m=y-u;break;case"bottom":m=w-p+u;break;default:var N=e.current.scrollTop;y<N?v="top":w>N+p&&(v="bottom")}null!==m&&l(m),m!==d.lastTop&&(h=!0)}h&&f(S(S({},d),{},{times:d.times+1,targetAlign:v,lastTop:m}))}}),[d,e.current]),function(e){if(null!=e){if(ji.cancel(s.current),"number"==typeof e)l(e);else if(e&&"object"===v(e)){var t,r=e.align;t="index"in e?e.index:n.findIndex((function(t){return i(t)===e.key}));var o=e.offset;f({times:0,index:t,offset:void 0===o?0:o,originAlign:r})}}else c()}}(H,F,A,l,N,(function(){return R(!0)}),ie,qe);t.useImperativeHandle(n,(function(){return{nativeElement:V.current,getScrollInfo:$e,scrollTo:function(e){var t;(t=e)&&"object"===v(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Z(Pe(e.left)),Le(e.top)):Le(e)}}})),Je((function(){if(E){var e=F.slice(de,fe+1);E(e,F)}}),[de,fe,F]);var De=function(e,n,r,o){var i=G(t.useMemo((function(){return[new Map,[]]}),[e,r.id,o]),2),a=i[0],l=i[1];return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,c=a.get(t),s=a.get(i);if(void 0===c||void 0===s)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],h=n(p);a.set(h,d);var v=null!==(f=r.get(h))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+v,h===t&&(c=d),h===i&&(s=d),void 0!==c&&void 0!==s)break}return{top:l[c-1]||0,bottom:l[s]}}}(F,N,A,l),ze=null==_?void 0:_({start:de,end:fe,virtual:D,offsetX:Q,offsetY:pe,rtl:z,getSize:De}),Be=function(e,n,r,o,i,a,l,c){var s=c.getKey;return e.slice(n,r+1).map((function(e,r){var c=l(e,n+r,{style:{width:o},offsetX:i}),u=s(e);return t.createElement(Vb,{key:u,setRef:function(t){return a(e,t)}},c)}))}(F,de,fe,g,Q,M,f,oe),Fe=null;a&&(Fe=S(w({},s?"height":"maxHeight",a),ly),q&&(Fe.overflowY="hidden",g&&(Fe.overflowX="hidden"),ee&&(Fe.pointerEvents="none")));var He={};return z&&(He.dir="rtl"),t.createElement("div",pt({ref:V,style:S(S({},u),{},{position:"relative"}),className:B},He,j),t.createElement(Zu,{onResize:function(e){me({width:e.offsetWidth,height:e.offsetHeight})}},t.createElement(y,{className:"".concat(o,"-holder"),style:Fe,ref:H,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==Y&&ie(t),null==x||x(e),Ne()},onMouseEnter:qe},t.createElement(Wb,{prefixCls:o,height:ue,offsetX:Q,offsetY:pe,scrollWidth:g,onInnerResize:R,ref:W,innerProps:O,rtl:z,extra:ze},Be))),D&&ue>a&&t.createElement(ny,{ref:ge,prefixCls:o,scrollOffset:Y,scrollRange:ue,rtl:z,onScroll:Ie,onStartMove:ne,onStopMove:re,spinSize:we,containerSize:ve.height,style:null==$?void 0:$.verticalScrollBar,thumbStyle:null==$?void 0:$.verticalScrollBarThumb}),D&&g>ve.width&&t.createElement(ny,{ref:be,prefixCls:o,scrollOffset:Q,scrollRange:g,rtl:z,onScroll:Ie,onStartMove:ne,onStopMove:re,spinSize:ye,containerSize:ve.width,horizontal:!0,style:null==$?void 0:$.horizontalScrollBar,thumbStyle:null==$?void 0:$.horizontalScrollBarThumb}))}var sy=t.forwardRef(cy);sy.displayName="List";var uy=sy;var dy=["disabled","title","children","style","className"];function fy(e){return"string"==typeof e||"number"==typeof e}var py=function(e,n){var r=t.useContext(Wg),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,c=r.mode,s=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=t.useContext(Pb),h=p.maxCount,v=p.flattenOptions,m=p.onActiveValue,g=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,x=p.rawValues,S=p.fieldNames,C=p.virtual,k=p.direction,E=p.listHeight,O=p.listItemHeight,_=p.optionRender,$="".concat(o,"-item"),j=ue((function(){return v}),[a,v],(function(e,t){return t[0]&&e[1]!==t[1]})),N=t.useRef(null),I=t.useMemo((function(){return l&&jb(h)&&(null==x?void 0:x.size)>=h}),[l,h,null==x?void 0:x.size]),P=function(e){e.preventDefault()},M=function(e){var t;null===(t=N.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},R=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=j.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=j[o]||{},a=i.group,l=i.data;if(!(a||null!=l&&l.disabled||I))return o}return-1},A=G(t.useState((function(){return R(0)})),2),T=A[0],q=A[1],L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=j[e];r?m(r.value,e,n):m(null,-1,n)};(0,t.useEffect)((function(){L(!1!==g?R(0):-1)}),[j.length,s]);var D=t.useCallback((function(e){return x.has(e)&&"combobox"!==c}),[c,K(x).toString(),x.size]);(0,t.useEffect)((function(){var e,t=setTimeout((function(){if(!l&&a&&1===x.size){var e=Array.from(x)[0],t=j.findIndex((function(t){return t.data.value===e}));-1!==t&&(L(t),M(t))}}));a&&(null===(e=N.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,s]);var z=function(e){void 0!==e&&b(e,{selected:!x.has(e)}),l||u(!1)};if(t.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case al.N:case al.P:case al.UP:case al.DOWN:var r=0;if(t===al.UP?r=-1:t===al.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===al.N?r=1:t===al.P&&(r=-1)),0!==r){var o=R(T+r,r);M(o),L(o,!0)}break;case al.ENTER:var i,l=j[T];!l||null!=l&&null!==(i=l.data)&&void 0!==i&&i.disabled||I?z(void 0):z(l.value),a&&e.preventDefault();break;case al.ESC:u(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){M(e)}}})),0===j.length)return t.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat($,"-empty"),onMouseDown:P},d);var B=Object.keys(S).map((function(e){return S[e]})),F=function(e){return e.label};function H(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var W=function(e){var n=j[e];if(!n)return null;var r=n.data||{},o=r.value,i=n.group,a=dl(r,!0),l=F(n);return n?t.createElement("div",pt({"aria-label":"string"!=typeof l||i?null:l},a,{key:e},H(n,e),{"aria-selected":D(o)}),o):null},V={role:"listbox",id:"".concat(i,"_list")};return t.createElement(t.Fragment,null,C&&t.createElement("div",pt({},V,{style:{height:0,width:0,overflow:"hidden"}}),W(T-1),W(T),W(T+1)),t.createElement(uy,{itemKey:"key",ref:N,data:j,height:E,itemHeight:O,fullHeight:!1,onMouseDown:P,onScroll:f,virtual:C,direction:k,innerProps:C?null:V},(function(e,n){var r=e.group,o=e.groupOption,i=e.data,a=e.label,l=e.value,c=i.key;if(r){var s,u=null!==(s=i.title)&&void 0!==s?s:fy(a)?a.toString():void 0;return t.createElement("div",{className:_o()($,"".concat($,"-group"),i.className),title:u},void 0!==a?a:c)}var d=i.disabled,f=i.title,p=(i.children,i.style),h=i.className,v=Tc(To(i,dy),B),m=D(l),g=d||!m&&I,b="".concat($,"-option"),x=_o()($,b,h,w(w(w(w({},"".concat(b,"-grouped"),o),"".concat(b,"-active"),T===n&&!g),"".concat(b,"-disabled"),g),"".concat(b,"-selected"),m)),S=F(e),k=!y||"function"==typeof y||m,E="number"==typeof S?S:S||l,O=fy(E)?E.toString():void 0;return void 0!==f&&(O=f),t.createElement("div",pt({},dl(v),C?{}:H(e,n),{"aria-selected":m,className:x,title:O,onMouseMove:function(){T===n||g||L(n)},onClick:function(){g||z(l)},style:p}),t.createElement("div",{className:"".concat(b,"-content")},"function"==typeof _?_(e,{index:n}):E),t.isValidElement(y)||m,k&&t.createElement(Hg,{className:"".concat($,"-option-state"),customizeIcon:y,customizeIconProps:{value:l,disabled:g,isSelected:m}},m?"✓":null))})))};var hy=t.forwardRef(py);function vy(e,t){return vb(e).join("").toUpperCase().includes(t)}var my=0,gy=Q();function by(e){var n=G(t.useState(),2),r=n[0],o=n[1];return t.useEffect((function(){var e;o("rc_select_".concat((gy?(e=my,my+=1):e="TEST_OR_SSR",e)))}),[]),e||r}var yy=["children","value"],wy=["children"];function xy(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Qc(e).map((function(e,r){if(!t.isValidElement(e)||!e.type)return null;var o=e,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,s=To(l,wy);return n||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return S({key:n,value:void 0!==i?i:n,children:o},To(r,yy))}(e):S(S({key:"__RC_SELECT_GRP__".concat(null===a?r:a,"__"),label:a},s),{},{options:xy(c)})})).filter((function(e){return e}))}var Sy=function(e,n,r,o,i){return t.useMemo((function(){var t=e;!e&&(t=xy(n));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[r.options]||n?(a.set(u[r.value],u),c(l,u,r.label),c(l,u,o),c(l,u,i)):e(u[r.options],!0)}}(t),{options:t,valueOptions:a,labelOptions:l}}),[e,n,r,o,i])};function Cy(e){var n=t.useRef();n.current=e;var r=t.useCallback((function(){return n.current.apply(n,arguments)}),[]);return r}var ky=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Ey=["inputValue"];var Oy=t.forwardRef((function(e,n){var r=e.id,o=e.mode,i=e.prefixCls,a=void 0===i?"rc-select":i,l=e.backfill,c=e.fieldNames,s=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=void 0===f||f,h=e.onSelect,m=e.onDeselect,g=e.dropdownMatchSelectWidth,b=void 0===g||g,y=e.filterOption,x=e.filterSort,C=e.optionFilterProp,k=e.optionLabelProp,E=e.options,O=e.optionRender,_=e.children,$=e.defaultActiveFirstOption,j=e.menuItemSelectedIcon,N=e.virtual,I=e.direction,P=e.listHeight,M=void 0===P?200:P,R=e.listItemHeight,A=void 0===R?20:R,T=e.labelRender,q=e.value,L=e.defaultValue,D=e.labelInValue,z=e.onChange,B=e.maxCount,F=To(e,ky),H=by(r),W=Tb(o),V=!(E||!_),U=t.useMemo((function(){return(void 0!==y||"combobox"!==o)&&y}),[y,o]),Y=t.useMemo((function(){return Nb(c,V)}),[JSON.stringify(c),V]),X=G(Zo("",{value:void 0!==u?u:s,postState:function(e){return e||""}}),2),Q=X[0],Z=X[1],J=Sy(E,_,Y,C,k),ee=J.valueOptions,te=J.labelOptions,ne=J.options,re=t.useCallback((function(e){return vb(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==v(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,c=ee.get(t);c&&(void 0===n&&(n=null==c?void 0:c[k||Y.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:t),o=null==c?void 0:c.disabled,i=null==c?void 0:c.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[Y,k,ee]),oe=G(Zo(L,{value:q}),2),ie=oe[0],ae=oe[1],le=t.useMemo((function(){var e,t=re(W&&null===ie?[]:ie);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[ie,re,o,W]),ce=function(e,n){var r=t.useRef({values:new Map,options:new Map});return[t.useMemo((function(){var t=r.current,o=t.values,i=t.options,a=e.map((function(e){var t;return void 0===e.label?S(S({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,c=new Map;return a.forEach((function(e){l.set(e.value,e),c.set(e.value,n.get(e.value)||i.get(e.value))})),r.current.values=l,r.current.options=c,a}),[e,n]),t.useCallback((function(e){return n.get(e)||r.current.options.get(e)}),[n])]}(le,ee),se=G(ce,2),ue=se[0],de=se[1],fe=t.useMemo((function(){if(!o&&1===ue.length){var e=ue[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ue.map((function(e){var t;return S(S({},e),{},{label:null!==(t="function"==typeof T?T(e):e.label)&&void 0!==t?t:e.value})}))}),[o,ue,T]),pe=t.useMemo((function(){return new Set(ue.map((function(e){return e.value})))}),[ue]);t.useEffect((function(){if("combobox"===o){var e,t=null===(e=ue[0])||void 0===e?void 0:e.value;Z(function(e){return null!=e}(t)?String(t):"")}}),[ue]);var he=Cy((function(e,t){var n=null!=t?t:e;return w(w({},Y.value,e),Y.label,n)})),ve=t.useMemo((function(){if("tags"!==o)return ne;var e=K(ne);return K(ue).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return ee.has(e)})(n)||e.push(he(n,t.label))})),e}),[he,ne,ee,ue,o]),me=function(e,n,r,o,i){return t.useMemo((function(){if(!r||!1===o)return e;var t=n.options,a=n.label,l=n.value,c=[],s="function"==typeof o,u=r.toUpperCase(),d=s?o:function(e,n){return i?vy(n[i],u):n[t]?vy(n["children"!==a?a:"label"],u):vy(n[l],u)},f=s?function(e){return Ib(e)}:function(e){return e};return e.forEach((function(e){if(e[t])if(d(r,f(e)))c.push(e);else{var n=e[t].filter((function(e){return d(r,f(e))}));n.length&&c.push(S(S({},e),{},w({},t,n)))}else d(r,f(e))&&c.push(e)})),c}),[e,o,i,r,n])}(ve,Y,Q,U,C),ge=t.useMemo((function(){return"tags"!==o||!Q||me.some((function(e){return e[C||"value"]===Q}))||me.some((function(e){return e[Y.value]===Q}))?me:[he(Q)].concat(K(me))}),[he,C,o,me,Q,Y]),be=t.useMemo((function(){return x?K(ge).sort((function(e,t){return x(e,t,{searchValue:Q})})):ge}),[ge,x,Q]),ye=t.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Nb(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var i=t[l];o.push({key:$b(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:$b(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(be,{fieldNames:Y,childrenAsData:V})}),[be,Y,V]),we=function(e){var t=re(e);if(ae(t),z&&(t.length!==ue.length||t.some((function(e,t){var n;return(null===(n=ue[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=D?t:t.map((function(e){return e.value})),r=t.map((function(e){return Ib(de(e.value))}));z(W?n:n[0],W?r:r[0])}},xe=G(t.useState(null),2),Se=xe[0],Ce=xe[1],ke=G(t.useState(0),2),Ee=ke[0],Oe=ke[1],_e=void 0!==$?$:"combobox"!==o,$e=t.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Oe(t),l&&"combobox"===o&&null!==e&&"keyboard"===r&&Ce(String(e))}),[l,o]),je=function(e,t,n){var r=function(){var t,n=de(e);return[D?{label:null==n?void 0:n[Y.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Ib(n)]};if(t&&h){var o=G(r(),2),i=o[0],a=o[1];h(i,a)}else if(!t&&m&&"clear"!==n){var l=G(r(),2),c=l[0],s=l[1];m(c,s)}},Ne=Cy((function(e,t){var n,r=!W||t.selected;n=r?W?[].concat(K(ue),[e]):[e]:ue.filter((function(t){return t.value!==e})),we(n),je(e,r),"combobox"===o?Ce(""):Tb&&!p||(Z(""),Ce(""))})),Ie=t.useMemo((function(){var e=!1!==N&&!1!==b;return S(S({},J),{},{flattenOptions:ye,onActiveValue:$e,defaultActiveFirstOption:_e,onSelect:Ne,menuItemSelectedIcon:j,rawValues:pe,fieldNames:Y,virtual:e,direction:I,listHeight:M,listItemHeight:A,childrenAsData:V,maxCount:B,optionRender:O})}),[B,J,ye,$e,_e,Ne,j,pe,Y,N,b,I,M,A,V,O]);return t.createElement(Pb.Provider,{value:Ie},t.createElement(Lb,pt({},F,{id:H,prefixCls:a,ref:n,omitDomProps:Ey,mode:o,displayValues:fe,onDisplayValuesChange:function(e,t){we(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){je(e.value,!1,n)}))},direction:I,searchValue:Q,onSearch:function(e,t){if(Z(e),Ce(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&we(e),null==d||d(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(K(pe),[n])));we(r),je(n,!0),Z("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=te.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(K(pe),K(t))));we(n),n.forEach((function(e){je(e,!0)}))},dropdownMatchSelectWidth:b,OptionList:hy,emptyOptions:!ye.length,activeValue:Se,activeDescendantId:"".concat(H,"_list_").concat(Ee)})))}));var _y=Oy;_y.Option=Fb,_y.OptGroup=zb;var $y=_y;var jy=()=>{const[,e]=ia(),n=new to(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return t.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"empty image"),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("g",{transform:"translate(24 31.67)"},t.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),t.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),t.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),t.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),t.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),t.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),t.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},t.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),t.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var Ny=()=>{const[,e]=ia(),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:c}=(0,t.useMemo)((()=>({borderColor:new to(n).onBackground(i).toHexShortString(),shadowColor:new to(r).onBackground(i).toHexShortString(),contentColor:new to(o).onBackground(i).toHexShortString()})),[n,r,o,i]);return t.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"Simple Empty"),t.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},t.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),t.createElement("g",{fillRule:"nonzero",stroke:a},t.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),t.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))};const Iy=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var Py=Zl("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Hl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Iy(o)]})),My=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ry=t.createElement(jy,null),Ay=t.createElement(Ny,null),Ty=e=>{var{className:n,rootClassName:r,prefixCls:o,image:i=Ry,description:a,children:l,imageStyle:c,style:s}=e,u=My(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=t.useContext(B),h=d("empty",o),[v,m,g]=Py(h),[b]=th("Empty"),y=void 0!==a?a:null==b?void 0:b.description,w="string"==typeof y?y:"empty";let x=null;return x="string"==typeof i?t.createElement("img",{alt:w,src:i}):i,v(t.createElement("div",Object.assign({className:_o()(m,g,h,null==p?void 0:p.className,{[`${h}-normal`]:i===Ay,[`${h}-rtl`]:"rtl"===f},n,r),style:Object.assign(Object.assign({},null==p?void 0:p.style),s)},u),t.createElement("div",{className:`${h}-image`,style:c},x),y&&t.createElement("div",{className:`${h}-description`},y),l&&t.createElement("div",{className:`${h}-footer`},l)))};Ty.PRESENTED_IMAGE_DEFAULT=Ry,Ty.PRESENTED_IMAGE_SIMPLE=Ay;var qy=Ty;var Ly=e=>{const{componentName:n}=e,{getPrefixCls:r}=(0,t.useContext)(B),o=r("empty");switch(n){case"Table":case"List":return t.createElement(qy,{image:qy.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return t.createElement(qy,{image:qy.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return t.createElement(qy,null)}};var Dy=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)};const zy=new wn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),By=new wn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Fy=new wn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Hy=new wn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Wy=new wn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Vy=new wn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Uy=new wn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Gy=new wn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Yy={"slide-up":{inKeyframes:zy,outKeyframes:By},"slide-down":{inKeyframes:Fy,outKeyframes:Hy},"slide-left":{inKeyframes:Wy,outKeyframes:Vy},"slide-right":{inKeyframes:Uy,outKeyframes:Gy}},Ky=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Yy[t];return[Rp(r,o,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}}]},Xy=new wn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Qy=new wn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Zy=new wn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Jy=new wn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ew=new wn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tw=new wn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),nw={"move-up":{inKeyframes:new wn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new wn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Xy,outKeyframes:Qy},"move-left":{inKeyframes:Zy,outKeyframes:Jy},"move-right":{inKeyframes:ew,outKeyframes:tw}},rw=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=nw[t];return[Rp(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ow=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var iw=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},sa(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:zy},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:Fy},[`${a}${l}bottomLeft`]:{animationName:By},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:Hy},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},ow(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ca),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},ow(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Ky(e,"slide-up"),Ky(e,"slide-down"),rw(e,"move-up"),rw(e,"move-down")]};const aw=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:Ve(t),itemLineHeight:Ve(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},lw=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},cw=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",c=aw(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},lw(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ve(r)} 0`,lineHeight:Ve(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:Ve(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:Ve(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function sw(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[cw(e,t),o]}var uw=e=>{const{componentCls:t}=e,n=Hl(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Hl(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[sw(e),sw(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},sw(r,"lg")]};function dw(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},sa(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:Ve(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Ve(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Ve(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ve(r)}`,"&:after":{display:"none"}}}}}}}function fw(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[dw(e),dw(Hl(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${Ve(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},dw(Hl(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const pw=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Ve(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Ve(o)} ${t.activeShadowColor}`,outline:0}}}},hw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},pw(e,t))}),vw=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},pw(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),hw(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),hw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ve(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mw=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Ve(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},gw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mw(e,t))}),bw=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},mw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),gw(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),gw(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),yw=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ve(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}});var ww=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},vw(e)),bw(e)),yw(e))});const xw=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Sw=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Cw=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},sa(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},xw(e)),Sw(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ca),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ca),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},kw=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Cw(e),fw(e),uw(e),iw(e),{[`${t}-rtl`]:{direction:"rtl"}},Hs(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var Ew=Zl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=Hl(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[kw(r),ww(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:v,colorBgContainerDisabled:m,colorTextDisabled:g}=e,b=2*l,y=2*r,w=Math.min(o-b,o-y),x=Math.min(i-b,i-y),S=Math.min(a-b,a-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:x,multipleItemHeightLG:S,multipleSelectorBgDisabled:m,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),Ow={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"},_w=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Ow}))};var $w=t.forwardRef(_w),jw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Nw=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:jw}))};var Iw=t.forwardRef(Nw);function Pw(e){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:o,removeIcon:i,loading:a,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const h=null!=r?r:t.createElement(Ua,null),v=e=>null!==n||c||f?t.createElement(t.Fragment,null,!1!==u&&e,c&&d):null;let m=null;if(void 0!==n)m=v(n);else if(a)m=v(t.createElement(ol,{spin:!0}));else{const e=`${s}-suffix`;m=n=>{let{open:r,showSearch:o}=n;return v(r&&o?t.createElement(bg,{className:e}):t.createElement(Iw,{className:e}))}}let g=null;g=void 0!==o?o:l?t.createElement($w,null):null;let b=null;return b=void 0!==i?i:t.createElement(Ka,null),{clearIcon:h,suffixIcon:m,itemIcon:g,removeIcon:b}}var Mw=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rw="SECRET_COMBOBOX_MODE_DO_NOT_USE",Aw=(e,n)=>{var r;const{prefixCls:o,bordered:i,className:a,rootClassName:l,getPopupContainer:c,popupClassName:s,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:h,disabled:v,notFoundContent:m,status:g,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:x,style:S,allowClear:C,variant:k,dropdownStyle:E,transitionName:O,tagRender:_,maxCount:$}=e,j=Mw(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:N,getPrefixCls:I,renderEmpty:P,direction:M,virtual:R,popupMatchSelectWidth:A,popupOverflow:T,select:q}=t.useContext(B),[,L]=ia(),D=null!=p?p:null==L?void 0:L.controlHeight,z=I("select",o),F=I(),H=null!=x?x:M,{compactSize:W,compactItemClassnames:V}=Jc(z,H),[U,G]=Vm("select",k,i),Y=El(z),[K,X,Q]=Ew(z,Y),Z=t.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===Rw?"combobox":t}),[e.mode]),J="multiple"===Z||"tags"===Z,ee=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),te=null!==(r=null!=w?w:y)&&void 0!==r?r:A,{status:ne,hasFeedback:re,isFormItemInput:oe,feedbackIcon:ie}=t.useContext(dp),ae=Wm(ne,g);let le;le=void 0!==m?m:"combobox"===Z?null:(null==P?void 0:P("Select"))||t.createElement(Ly,{componentName:"Select"});const{suffixIcon:ce,itemIcon:se,removeIcon:ue,clearIcon:de}=Pw(Object.assign(Object.assign({},j),{multiple:J,hasFeedback:re,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:z,componentName:"Select"})),fe=!0===C?{clearIcon:de}:C,pe=Tc(j,["suffixIcon","itemIcon"]),he=_o()(s||u,{[`${z}-dropdown-${H}`]:"rtl"===H},l,Q,Y,X),ve=Xc((e=>{var t;return null!==(t=null!=h?h:W)&&void 0!==t?t:e})),me=t.useContext(bo),ge=null!=v?v:me,be=_o()({[`${z}-lg`]:"large"===ve,[`${z}-sm`]:"small"===ve,[`${z}-rtl`]:"rtl"===H,[`${z}-${U}`]:G,[`${z}-in-form-item`]:oe},Hm(z,ae,re),V,null==q?void 0:q.className,a,l,Q,Y,X),ye=t.useMemo((()=>void 0!==f?f:"rtl"===H?"bottomRight":"bottomLeft"),[f,H]);const[we]=Il("SelectLike",null==E?void 0:E.zIndex);return K(t.createElement($y,Object.assign({ref:n,virtual:R,showSearch:null==q?void 0:q.showSearch},pe,{style:Object.assign(Object.assign({},null==q?void 0:q.style),S),dropdownMatchSelectWidth:te,transitionName:yp(F,"slide-up",O),builtinPlacements:Dy(b,T),listHeight:d,listItemHeight:D,mode:Z,prefixCls:z,placement:ye,direction:H,suffixIcon:ce,menuItemSelectedIcon:se,removeIcon:ue,allowClear:fe,notFoundContent:le,className:be,getPopupContainer:c||N,dropdownClassName:he,disabled:ge,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:we}),maxCount:J?$:void 0,tagRender:J?_:void 0})))};const Tw=t.forwardRef(Aw),qw=Lv(Tw);Tw.SECRET_COMBOBOX_MODE_DO_NOT_USE=Rw,Tw.Option=Fb,Tw.OptGroup=zb,Tw._InternalPanelDoNotUseOrYouWillBeFired=qw;var Lw=Tw;function Dw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zw(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zw(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Bw=Lw.Option,Fw=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=c.empty,h=c.searchable,v=c.multiple,m=null===(t=e.field)||void 0===t?void 0:t.fieldType,g=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(o=e.field)||void 0===o?void 0:o.index,y=null===(i=e.field)||void 0===i?void 0:i.repeaterData,w=Dw(l(),2),x=(w[0],w[1]);return(0,r.jsxs)("div",{className:"rtsb-field select",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsxs)(Lw,{showSearch:!!h,value:s,mode:v?"multiple":null,onChange:function(e){x({type:d,id:a,value:e,fieldType:m,parentId:g,repeaterData:y,index:b})},filterOption:function(e,t){return null==t?void 0:t.title.toLowerCase().includes(e.toLowerCase())},children:[p&&(0,r.jsx)(Bw,{value:"",children:p}),Object.keys(f).map((function(e){var t=e.toString(),n=f[e].toString();return(0,r.jsx)(Bw,{value:t,title:n,children:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:n}})},e)}))]})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},Hw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Ww=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Hw}))};var Vw=t.forwardRef(Ww);function Uw(){return"function"==typeof BigInt}function Gw(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function Yw(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function Kw(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Xw(e){var t=String(e);if(Kw(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Zw(t)?t.length-t.indexOf(".")-1:0}function Qw(e){var t=String(e);if(Kw(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Uw()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Uw()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Xw(t))}return Yw(t).fullStr}function Zw(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var Jw=function(){function e(t){if(we(this,e),w(this,"origin",""),w(this,"negative",void 0),w(this,"integer",void 0),w(this,"decimal",void 0),w(this,"decimalLen",void 0),w(this,"empty",void 0),w(this,"nan",void 0),Gw(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(Kw(n)&&(n=Number(n)),Zw(n="string"==typeof n?n:Qw(n))){var r=Yw(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return Se(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),l=Yw(i),c=l.negativeStr,s=l.trimStr,u="".concat(c).concat(s.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Yw("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),ex=function(){function e(t){we(this,e),w(this,"origin",""),w(this,"number",void 0),w(this,"empty",void 0),Gw(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Se(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Xw(this.number),Xw(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Xw(this.number),Xw(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Qw(this.number):this.origin}}]),e}();function tx(e){return Uw()?new Jw(e):new ex(e)}function nx(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=Yw(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?nx(tx(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}var rx=tx;var ox=function(){var e=G((0,t.useState)(!1),2),n=e[0],r=e[1];return Je((function(){r(nd())}),[]),n};function ix(e){var n=e.prefixCls,r=e.upNode,o=e.downNode,i=e.upDisabled,a=e.downDisabled,l=e.onStep,c=t.useRef(),s=t.useRef([]),u=t.useRef();u.current=l;var d=function(){clearTimeout(c.current)},f=function(e,t){e.preventDefault(),d(),u.current(t),c.current=setTimeout((function e(){u.current(t),c.current=setTimeout(e,200)}),600)};if(t.useEffect((function(){return function(){d(),s.current.forEach((function(e){return ji.cancel(e)}))}}),[]),ox())return null;var p="".concat(n,"-handler"),h=_o()(p,"".concat(p,"-up"),w({},"".concat(p,"-up-disabled"),i)),v=_o()(p,"".concat(p,"-down"),w({},"".concat(p,"-down-disabled"),a)),m=function(){return s.current.push(ji(d))},g={unselectable:"on",role:"button",onMouseUp:m,onMouseLeave:m};return t.createElement("div",{className:"".concat(p,"-wrap")},t.createElement("span",pt({},g,{onMouseDown:function(e){f(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:h}),r||t.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner")})),t.createElement("span",pt({},g,{onMouseDown:function(e){f(e,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:v}),o||t.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner")})))}function ax(e){var t="number"==typeof e?Qw(e):Yw(e).fullStr;return t.includes(".")?Yw(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var lx=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],cx=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],sx=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},ux=function(e){var t=rx(e);return t.isInvalidate()?null:t},dx=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.className,i=e.style,a=e.min,l=e.max,c=e.step,s=void 0===c?1:c,u=e.defaultValue,d=e.value,f=e.disabled,p=e.readOnly,h=e.upHandler,m=e.downHandler,g=e.keyboard,b=e.changeOnWheel,y=void 0!==b&&b,x=e.controls,S=void 0===x||x,C=(e.classNames,e.stringMode),k=e.parser,E=e.formatter,O=e.precision,_=e.decimalSeparator,$=e.onChange,j=e.onInput,N=e.onPressEnter,I=e.onStep,P=e.changeOnBlur,M=void 0===P||P,R=e.domRef,A=To(e,lx),T="".concat(r,"-input"),q=t.useRef(null),L=G(t.useState(!1),2),D=L[0],z=L[1],B=t.useRef(!1),F=t.useRef(!1),H=t.useRef(!1),W=G(t.useState((function(){return rx(null!=d?d:u)})),2),V=W[0],U=W[1];var Y=t.useCallback((function(e,t){if(!t)return O>=0?O:Math.max(Xw(e),Xw(s))}),[O,s]),K=t.useCallback((function(e){var t=String(e);if(k)return k(t);var n=t;return _&&(n=n.replace(_,".")),n.replace(/[^\w.-]+/g,"")}),[k,_]),X=t.useRef(""),Q=t.useCallback((function(e,t){if(E)return E(e,{userTyping:t,input:String(X.current)});var n="number"==typeof e?Qw(e):e;if(!t){var r=Y(n,t);if(Zw(n)&&(_||r>=0))n=nx(n,_||".",r)}return n}),[E,Y,_]),Z=G(t.useState((function(){var e=null!=u?u:d;return V.isInvalidate()&&["string","number"].includes(v(e))?Number.isNaN(e)?"":e:Q(V.toString(),!1)})),2),J=Z[0],ee=Z[1];function te(e,t){ee(Q(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}X.current=J;var ne,re,oe=t.useMemo((function(){return ux(l)}),[l,O]),ie=t.useMemo((function(){return ux(a)}),[a,O]),ae=t.useMemo((function(){return!(!oe||!V||V.isInvalidate())&&oe.lessEquals(V)}),[oe,V]),le=t.useMemo((function(){return!(!ie||!V||V.isInvalidate())&&V.lessEquals(ie)}),[ie,V]),ce=function(e,n){var r=(0,t.useRef)(null);return[function(){try{var t=e.selectionStart,n=e.selectionEnd,o=e.value,i=o.substring(0,t),a=o.substring(n);r.current={start:t,end:n,value:o,beforeTxt:i,afterTxt:a}}catch(e){}},function(){if(e&&r.current&&n)try{var t=e.value,o=r.current,i=o.beforeTxt,a=o.afterTxt,l=o.start,c=t.length;if(t.startsWith(i))c=i.length;else if(t.endsWith(a))c=t.length-r.current.afterTxt.length;else{var s=i[l-1],u=t.indexOf(s,l-1);-1!==u&&(c=u+1)}e.setSelectionRange(c,c)}catch(e){be(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}(q.current,D),se=G(ce,2),ue=se[0],de=se[1],fe=function(e){return oe&&!e.lessEquals(oe)?oe:ie&&!ie.lessEquals(e)?ie:null},pe=function(e){return!fe(e)},he=function(e,t){var n,r=e,o=pe(r)||r.isEmpty();if(r.isEmpty()||t||(r=fe(r)||r,o=!0),!p&&!f&&o){var i=r.toString(),a=Y(i,t);return a>=0&&(r=rx(nx(i,".",a)),pe(r)||(r=rx(nx(i,".",a,!0)))),r.equals(V)||(n=r,void 0===d&&U(n),null==$||$(r.isEmpty()?null:sx(C,r)),void 0===d&&te(r,t)),r}return V},ve=(ne=(0,t.useRef)(0),re=function(){ji.cancel(ne.current)},(0,t.useEffect)((function(){return re}),[]),function(e){re(),ne.current=ji((function(){e()}))}),me=function e(t){if(ue(),X.current=t,ee(t),!F.current){var n=K(t),r=rx(n);r.isNaN()||he(r,!0)}null==j||j(t),ve((function(){var n=t;k||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},ge=function(e){var t;if(!(e&&ae||!e&&le)){B.current=!1;var n=rx(H.current?ax(s):s);e||(n=n.negate());var r=(V||rx(0)).add(n.toString()),o=he(r,!1);null==I||I(sx(C,o),{offset:H.current?ax(s):s,type:e?"up":"down"}),null===(t=q.current)||void 0===t||t.focus()}},ye=function(e){var t,n=rx(K(J));t=n.isNaN()?he(V,e):he(n,e),void 0!==d?te(V,!1):t.isNaN()||te(t,!1)};t.useEffect((function(){if(y&&D){var e=function(e){ge(e.deltaY<0),e.preventDefault()},t=q.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return Ze((function(){V.isInvalidate()||te(V,!1)}),[O,E]),Ze((function(){var e=rx(d);U(e);var t=rx(K(J));e.equals(t)&&B.current&&!E||te(e,B.current)}),[d]),Ze((function(){E&&de()}),[J]),t.createElement("div",{ref:R,className:_o()(r,o,w(w(w(w(w({},"".concat(r,"-focused"),D),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),p),"".concat(r,"-not-a-number"),V.isNaN()),"".concat(r,"-out-of-range"),!V.isInvalidate()&&!pe(V))),style:i,onFocus:function(){z(!0)},onBlur:function(){M&&ye(!1),z(!1),B.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;B.current=!0,H.current=n,"Enter"===t&&(F.current||(B.current=!1),ye(!1),null==N||N(e)),!1!==g&&!F.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(ge("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){B.current=!1,H.current=!1},onCompositionStart:function(){F.current=!0},onCompositionEnd:function(){F.current=!1,me(q.current.value)},onBeforeInput:function(){B.current=!0}},S&&t.createElement(ix,{prefixCls:r,upNode:h,downNode:m,upDisabled:ae,downDisabled:le,onStep:ge}),t.createElement("div",{className:"".concat(T,"-wrap")},t.createElement("input",pt({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":l,"aria-valuenow":V.isInvalidate()?null:V.toString(),step:s},A,{ref:Po(q,n),className:T,value:J,onChange:function(e){me(e.target.value)},disabled:f,readOnly:p}))))})),fx=t.forwardRef((function(e,n){var r=e.disabled,o=e.style,i=e.prefixCls,a=void 0===i?"rc-input-number":i,l=e.value,c=e.prefix,s=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,h=To(e,cx),v=t.useRef(null),m=t.useRef(null),g=t.useRef(null);return t.useImperativeHandle(n,(function(){return e=g.current,t={nativeElement:v.current.nativeElement||m.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var r=e[n];return"function"==typeof r?r.bind(e):r}}):e;var e,t})),t.createElement(Tm,{className:f,triggerFocus:function(e){g.current&&Rm(g.current,e)},prefixCls:a,value:l,disabled:r,style:o,prefix:c,suffix:s,addonAfter:d,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},t.createElement(dx,pt({prefixCls:a,disabled:r,ref:g,domRef:m,className:null==p?void 0:p.input},h)))}));var px=fx;const hx=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},vx=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:c,colorError:s,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:p,colorTextDescription:h,motionDurationMid:v,handleHoverColor:m,handleOpacity:g,paddingInline:b,paddingBlock:y,handleBg:w,handleActiveBg:x,colorTextDisabled:S,borderRadiusSM:C,borderRadiusLG:k,controlWidth:E,handleBorderColor:O,filledHandleBg:_,lineHeightLG:$,calc:j}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sa(e)),xm(e)),{display:"inline-block",width:E,margin:0,padding:0,borderRadius:o}),sm(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${Ve(n)} ${r} ${O}`}}})),vm(e,{[`${t}-handler-wrap`]:{background:_,[`${t}-handler-down`]:{borderBlockStart:`${Ve(n)} ${r} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),fm(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:$,borderRadius:k,[`input${t}-input`]:{height:j(l).sub(j(n).mul(2)).equal(),padding:`${Ve(f)} ${Ve(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:j(c).sub(j(n).mul(2)).equal(),padding:`${Ve(d)} ${Ve(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},sa(e)),Sm(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},dm(e)),gm(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},sa(e)),{width:"100%",padding:`${Ve(y)} ${Ve(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),bm(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:g,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Ve(n)} ${r} ${O}`,transition:`all ${v} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{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"}}),{color:h,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},hx(e,"lg")),hx(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:S}})}]},mx=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Ve(n)} 0`}},xm(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Ve(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${Ve(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${f}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}};var gx=Zl("InputNumber",(e=>{const t=Hl(e,rm(e));return[vx(t),mx(t),Hs(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},om(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new to(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}}),bx=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yx=t.forwardRef(((e,n)=>{const{getPrefixCls:r,direction:o}=t.useContext(B),i=t.useRef(null);t.useImperativeHandle(n,(()=>i.current));const{className:a,rootClassName:l,size:c,disabled:s,prefixCls:u,addonBefore:d,addonAfter:f,prefix:p,suffix:h,bordered:v,readOnly:m,status:g,controls:b,variant:y}=e,w=bx(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),x=r("input-number",u),S=El(x),[C,k,E]=gx(x,S),{compactSize:O,compactItemClassnames:_}=Jc(x,o);let $=t.createElement(Vw,{className:`${x}-handler-up-inner`}),j=t.createElement(Iw,{className:`${x}-handler-down-inner`});const N="boolean"==typeof b?b:void 0;"object"==typeof b&&($=void 0===b.upIcon?$:t.createElement("span",{className:`${x}-handler-up-inner`},b.upIcon),j=void 0===b.downIcon?j:t.createElement("span",{className:`${x}-handler-down-inner`},b.downIcon));const{hasFeedback:I,status:P,isFormItemInput:M,feedbackIcon:R}=t.useContext(dp),A=Wm(P,g),T=Xc((e=>{var t;return null!==(t=null!=c?c:O)&&void 0!==t?t:e})),q=t.useContext(bo),L=null!=s?s:q,[D,z]=Vm("inputNumber",y,v),F=I&&t.createElement(t.Fragment,null,R),H=_o()({[`${x}-lg`]:"large"===T,[`${x}-sm`]:"small"===T,[`${x}-rtl`]:"rtl"===o,[`${x}-in-form-item`]:M},k),W=`${x}-group`;return C(t.createElement(px,Object.assign({ref:i,disabled:L,className:_o()(E,S,a,l,_),upHandler:$,downHandler:j,prefixCls:x,readOnly:m,controls:N,prefix:p,suffix:F||h,addonBefore:d&&t.createElement(hp,{form:!0,space:!0},d),addonAfter:f&&t.createElement(hp,{form:!0,space:!0},f),classNames:{input:H,variant:_o()({[`${x}-${D}`]:z},Hm(x,A,I)),affixWrapper:_o()({[`${x}-affix-wrapper-sm`]:"small"===T,[`${x}-affix-wrapper-lg`]:"large"===T,[`${x}-affix-wrapper-rtl`]:"rtl"===o,[`${x}-affix-wrapper-without-controls`]:!1===b},k),wrapper:_o()({[`${W}-rtl`]:"rtl"===o},k),groupWrapper:_o()({[`${x}-group-wrapper-sm`]:"small"===T,[`${x}-group-wrapper-lg`]:"large"===T,[`${x}-group-wrapper-rtl`]:"rtl"===o,[`${x}-group-wrapper-${D}`]:z},Hm(`${x}-group-wrapper`,A,I),k)}},w)))})),wx=yx;wx._InternalPanelDoNotUseOrYouWillBeFired=e=>t.createElement(Ea,{theme:{components:{InputNumber:{handleVisible:!0}}}},t.createElement(yx,Object.assign({},e)));var xx=wx;function Sx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var kx=function(e){var t,n,o,i,a=e.field,c=a.help,s=a.value,u=a.placeholder,f=a.size,p=a.min,h=a.max,v=a.integer,m=e.id,g=Sx(l(),2),b=(g[0],g[1]),y=null===(t=e.field)||void 0===t?void 0:t.fieldType,w=null===(n=e.field)||void 0===n?void 0:n.parentId,x=null===(o=e.field)||void 0===o?void 0:o.index,S=null===(i=e.field)||void 0===i?void 0:i.repeaterData,C=s;return!0===v&&(C=parseInt(s,10)),(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(xx,{className:"rtsb-form-field",size:f,min:p,max:h,defaultValue:"null"!==C?C:"",placeholder:u,value:"null"!==C?C:"",onChange:function(e){b({type:d,id:m,value:e,fieldType:y,parentId:w,repeaterData:S,index:x})}})}),c&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:c}})]})]})},Ex=function(e){var t=e.field.html;return(0,r.jsxs)("div",{className:"rtsb-field raw",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsx)("div",{className:"rtsb-field__content",children:t&&(0,r.jsx)("div",{className:"rtsb-field__html",dangerouslySetInnerHTML:{__html:t}})})]})},Ox=function(e){var t=e.field,n=t.label,o=t.subtitle;return(0,r.jsxs)("div",{className:"rtsb-field-title",children:[(0,r.jsx)("h3",{className:"title-label",children:n}),o&&(0,r.jsx)("div",{className:"rtsb-field__subtitle",dangerouslySetInnerHTML:{__html:o}})]})};const _x=e=>e?"function"==typeof e?e():e:null,$x=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:h,titlePadding:v}=e;return[{[t]:Object.assign(Object.assign({},sa(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:v},[`${t}-inner-content`]:{color:n,padding:h}})},_p(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},jx=e=>{const{componentCls:t}=e;return{[t]:Hp.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}};var Nx=Zl("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=Hl(e,{popoverBg:t,popoverColor:n});return[$x(r),jx(r),Fp(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,h=f/2-t,v=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Sp(e)),Ep({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${v}px ${h}px`:0,titleBorderBottom:i?`${t}px ${s} ${u}`:"none",innerContentPadding:i?`${d}px ${v}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),Ix=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Px=e=>{let{title:n,content:r,prefixCls:o}=e;return n||r?t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${o}-title`},n),r&&t.createElement("div",{className:`${o}-inner-content`},r)):null},Mx=e=>{const{hashId:n,prefixCls:r,className:o,style:i,placement:a="top",title:l,content:c,children:s}=e,u=_x(l),d=_x(c),f=_o()(n,r,`${r}-pure`,`${r}-placement-${a}`,o);return t.createElement("div",{className:f,style:i},t.createElement("div",{className:`${r}-arrow`}),t.createElement(du,Object.assign({},e,{className:n,prefixCls:r}),s||t.createElement(Px,{prefixCls:r,title:u,content:d})))};var Rx=e=>{const{prefixCls:n,className:r}=e,o=Ix(e,["prefixCls","className"]),{getPrefixCls:i}=t.useContext(B),a=i("popover",n),[l,c,s]=Nx(a);return l(t.createElement(Mx,Object.assign({},o,{prefixCls:a,hashId:c,className:_o()(r,s)})))},Ax=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Tx=t.forwardRef(((e,n)=>{var r,o;const{prefixCls:i,title:a,content:l,overlayClassName:c,placement:s="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,onOpenChange:h,overlayStyle:v={}}=e,m=Ax(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:g}=t.useContext(B),b=g("popover",i),[y,w,x]=Nx(b),S=g(),C=_o()(c,w,x),[k,E]=Zo(!1,{value:null!==(r=e.open)&&void 0!==r?r:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),O=(e,t)=>{E(e,!0),null==h||h(e,t)},_=_x(a),$=_x(l);return y(t.createElement(eh,Object.assign({placement:s,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:v},m,{prefixCls:b,overlayClassName:C,ref:n,open:k,onOpenChange:e=>{O(e)},overlay:_||$?t.createElement(Px,{prefixCls:b,title:_,content:$}):null,transitionName:yp(S,"zoom-big",m.transitionName),"data-popover-inject":!0}),zc(d,{onKeyDown:e=>{var n,r;t.isValidElement(d)&&(null===(r=null==d?void 0:(n=d.props).onKeyDown)||void 0===r||r.call(n,e)),(e=>{e.keyCode===al.ESC&&O(!1,e)})(e)}})))})),qx=Tx;qx._InternalPanelDoNotUseOrYouWillBeFired=Rx;var Lx=qx;const Dx=Math.round;function zx(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Bx=(e,t,n)=>0===n?e:e/100;function Fx(e,t){const n=t||255;return e>n?n:e<0?0:e}class Hx{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(w(this,"isValid",!0),w(this,"r",0),w(this,"g",0),w(this,"b",0),w(this,"a",1),w(this,"_h",void 0),w(this,"_s",void 0),w(this,"_l",void 0),w(this,"_v",void 0),w(this,"_max",void 0),w(this,"_min",void 0),w(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof Hx)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Fx(e.r),this.g=Fx(e.g),this.b=Fx(e.b),this.a="number"==typeof e.a?Fx(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:Dx(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:Dx(o("r")),g:Dx(o("g")),b:Dx(o("b")),a:Dx(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>Dx((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=Dx(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=Dx(100*this.getSaturation()),n=Dx(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=Fx(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=Dx(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,i=s):l>=1&&l<2?(o=s,i=c):l>=2&&l<3?(i=c,a=s):l>=3&&l<4?(i=s,a=c):l>=4&&l<5?(o=s,a=c):l>=5&&l<6&&(o=c,a=s);const u=n-c/2;this.r=Dx(255*(o+u)),this.g=Dx(255*(i+u)),this.b=Dx(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=Dx(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,c=Dx(n*(1-t)*255),s=Dx(n*(1-t*l)*255),u=Dx(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=zx(e,Bx);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=zx(e,Bx);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=zx(e,((e,t)=>t.includes("%")?Dx(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Wx=["b"],Vx=["v"],Ux=function(e){return Math.round(Number(e||0))},Gx=function(e){Bo(n,e);var t=Uo(n);function n(e){return we(this,n),t.call(this,function(e){if(e instanceof Hx)return e;if(e&&"object"===v(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return S(S({},To(t,Wx)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return Se(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=Ux(100*e.s),n=Ux(100*e.b),r=Ux(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return S(S({},To(e,Vx)),{},{b:t,a:this.a})}}]),n}(Hx),Yx=function(e){return e instanceof Gx?e:new Gx(e)},Kx=Yx("#1677ff"),Xx=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),l=a.width,c=a.height,s=n.current.getBoundingClientRect(),u=s.width/2,d=s.height/2,f=(t.x+u)/l,p=1-(t.y+d)/c,h=o.toHsb(),v=f,m=(t.x+u)/l*360;if(i)switch(i){case"hue":return Yx(S(S({},h),{},{h:m<=0?0:m}));case"alpha":return Yx(S(S({},h),{},{a:v<=0?0:v}))}return Yx({h:h.h,s:f<=0?0:f,b:p>=1?1:p,a:h.a})},Qx=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},Zx=function(e){var n=e.color,r=e.prefixCls,o=e.className,i=e.style,a=e.onClick,l="".concat(r,"-color-block");return t.createElement("div",{className:_o()(l,o),style:i,onClick:a},t.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};var Jx=function(e){var n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,l=e.calculate,c=e.color,s=e.disabledDrag,u=G((0,t.useState)({x:0,y:0}),2),d=u[0],f=u[1],p=(0,t.useRef)(null),h=(0,t.useRef)(null);(0,t.useEffect)((function(){f(l())}),[c]),(0,t.useEffect)((function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null}}),[]);var v=function(e){var t=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=t.pageX,l=t.pageY,c=r.current.getBoundingClientRect(),s=c.x,u=c.y,f=c.width,p=c.height,h=n.current.getBoundingClientRect(),v=h.width,m=h.height,g=v/2,b=m/2,y=Math.max(0,Math.min(a-s,f))-g,w=Math.max(0,Math.min(l-u,p))-b,x={x:y,y:"x"===o?d.y:w};if(0===v&&0===m||v!==m)return!1;null==i||i(x)},m=function(e){e.preventDefault(),v(e)},g=function(e){e.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null,null==a||a()};return[d,function(e){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),s||(v(e),document.addEventListener("mousemove",m),document.addEventListener("mouseup",g),document.addEventListener("touchmove",m),document.addEventListener("touchend",g),p.current=m,h.current=g)}]},eS=function(e){var n=e.size,r=void 0===n?"default":n,o=e.color,i=e.prefixCls;return t.createElement("div",{className:_o()("".concat(i,"-handler"),w({},"".concat(i,"-handler-sm"),"small"===r)),style:{backgroundColor:o}})},tS=function(e){var n=e.children,r=e.style,o=e.prefixCls;return t.createElement("div",{className:"".concat(o,"-palette"),style:S({position:"relative"},r)},n)},nS=(0,t.forwardRef)((function(e,n){var r=e.children,o=e.x,i=e.y;return t.createElement("div",{ref:n,style:{position:"absolute",left:"".concat(o,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)})),rS=function(e){var n=e.color,r=e.onChange,o=e.prefixCls,i=e.onChangeComplete,a=e.disabled,l=(0,t.useRef)(),c=(0,t.useRef)(),s=(0,t.useRef)(n),u=Ko((function(e){var t=Xx({offset:e,targetRef:c,containerRef:l,color:n});s.current=t,r(t)})),d=G(Jx({color:n,containerRef:l,targetRef:c,calculate:function(){return Qx(n)},onDragChange:u,onDragChangeComplete:function(){return null==i?void 0:i(s.current)},disabledDrag:a}),2),f=d[0],p=d[1];return t.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:p,onTouchStart:p},t.createElement(tS,{prefixCls:o},t.createElement(nS,{x:f.x,y:f.y,ref:c},t.createElement(eS,{color:n.toRgbString(),prefixCls:o})),t.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},oS=function(e,n){var r=G(Zo(e,{value:n}),2),o=r[0],i=r[1];return[(0,t.useMemo)((function(){return Yx(o)}),[o]),i]},iS=function(e){var n=e.colors,r=e.children,o=e.direction,i=void 0===o?"to right":o,a=e.type,l=e.prefixCls,c=(0,t.useMemo)((function(){return n.map((function(e,t){var r=Yx(e);return"alpha"===a&&t===n.length-1&&(r=new Gx(r.setA(1))),r.toRgbString()})).join(",")}),[n,a]);return t.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(c,")")}},r)},aS=function(e){var n=e.prefixCls,r=e.colors,o=e.disabled,i=e.onChange,a=e.onChangeComplete,l=e.color,c=e.type,s=(0,t.useRef)(),u=(0,t.useRef)(),d=(0,t.useRef)(l),f=function(e){return"hue"===c?e.getHue():100*e.a},p=Ko((function(e){var t=Xx({offset:e,targetRef:u,containerRef:s,color:l,type:c});d.current=t,i(f(t))})),h=G(Jx({color:l,targetRef:u,containerRef:s,calculate:function(){return Qx(l,c)},onDragChange:p,onDragChangeComplete:function(){a(f(d.current))},direction:"x",disabledDrag:o}),2),v=h[0],m=h[1],g=t.useMemo((function(){if("hue"===c){var e=l.toHsb();return e.s=1,e.b=1,e.a=1,new Gx(e)}return l}),[l,c]),b=t.useMemo((function(){return r.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[r]);return t.createElement("div",{ref:s,className:_o()("".concat(n,"-slider"),"".concat(n,"-slider-").concat(c)),onMouseDown:m,onTouchStart:m},t.createElement(tS,{prefixCls:n},t.createElement(nS,{x:v.x,y:v.y,ref:u},t.createElement(eS,{size:"small",color:g.toHexString(),prefixCls:n})),t.createElement(iS,{colors:b,type:c,prefixCls:n})))};var lS=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],cS=(0,t.forwardRef)((function(e,n){var r=e.value,o=e.defaultValue,i=e.prefixCls,a=void 0===i?"rc-color-picker":i,l=e.onChange,c=e.onChangeComplete,s=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,p=void 0!==f&&f,h=e.disabled,v=void 0!==h&&h,m=function(e){return t.useMemo((function(){return[(e||{}).slider||aS]}),[e])}(e.components),g=G(m,1)[0],b=G(oS(o||Kx,r),2),y=b[0],x=b[1],S=(0,t.useMemo)((function(){return y.setA(1).toRgbString()}),[y]),C=function(e,t){r||x(e),null==l||l(e,t)},k=function(e){return new Gx(y.setHue(e))},E=function(e){return new Gx(y.setA(e/100))},O=_o()("".concat(a,"-panel"),s,w({},"".concat(a,"-panel-disabled"),v)),_={prefixCls:a,disabled:v,color:y},$=t.createElement(t.Fragment,null,t.createElement(rS,pt({onChange:C},_,{onChangeComplete:c})),t.createElement("div",{className:"".concat(a,"-slider-container")},t.createElement("div",{className:_o()("".concat(a,"-slider-group"),w({},"".concat(a,"-slider-group-disabled-alpha"),p))},t.createElement(g,pt({},_,{type:"hue",colors:lS,min:0,max:359,value:y.getHue(),onChange:function(e){C(k(e),{type:"hue",value:e})},onChangeComplete:function(e){c&&c(k(e))}})),!p&&t.createElement(g,pt({},_,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:S}],min:0,max:100,value:100*y.a,onChange:function(e){C(E(e),{type:"alpha",value:e})},onChangeComplete:function(e){c&&c(E(e))}}))),t.createElement(Zx,{color:y.toRgbString(),prefixCls:a})));return t.createElement("div",{className:O,style:u,ref:n},"function"==typeof d?d($):$)}));var sS=cS;const uS=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"";let dS=function(){return Se((function e(t){var n;if(we(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new Gx(this.colors[0].color.metaColor)):this.metaColor=new Gx(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return((e,t)=>e?uS(e,t):"")(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();const fS=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},sa(e)),{borderBlockStart:`${Ve(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Ve(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ve(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ve(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Ve(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Ve(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Ve(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var pS=Zl("Divider",(e=>{const t=Hl(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[fS(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}}),hS=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var vS=e=>{const{getPrefixCls:n,direction:r,divider:o}=t.useContext(B),{prefixCls:i,type:a="horizontal",orientation:l="center",orientationMargin:c,className:s,rootClassName:u,children:d,dashed:f,variant:p="solid",plain:h,style:v}=e,m=hS(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),g=n("divider",i),[b,y,w]=pS(g),x=!!d,S="left"===l&&null!=c,C="right"===l&&null!=c,k=_o()(g,null==o?void 0:o.className,y,w,`${g}-${a}`,{[`${g}-with-text`]:x,[`${g}-with-text-${l}`]:x,[`${g}-dashed`]:!!f,[`${g}-${p}`]:"solid"!==p,[`${g}-plain`]:!!h,[`${g}-rtl`]:"rtl"===r,[`${g}-no-default-orientation-margin-left`]:S,[`${g}-no-default-orientation-margin-right`]:C},s,u),E=t.useMemo((()=>"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),O=Object.assign(Object.assign({},S&&{marginLeft:E}),C&&{marginRight:E});return b(t.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==o?void 0:o.style),v)},m,{role:"separator"}),d&&"vertical"!==a&&t.createElement("span",{className:`${g}-inner-text`,style:O},d)))},mS=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},gS=function(e){return void 0!==e?"".concat(e,"px"):void 0};function bS(e){var n=e.prefixCls,r=e.containerRef,o=e.value,i=e.getValueIndex,a=e.motionName,l=e.onMotionStart,c=e.onMotionEnd,s=e.direction,u=t.useRef(null),d=G(t.useState(o),2),f=d[0],p=d[1],h=function(e){var t,o=i(e),a=null===(t=r.current)||void 0===t?void 0:t.querySelectorAll(".".concat(n,"-item"))[o];return(null==a?void 0:a.offsetParent)&&a},v=G(t.useState(null),2),m=v[0],g=v[1],b=G(t.useState(null),2),y=b[0],w=b[1];Je((function(){if(f!==o){var e=h(f),t=h(o),n=mS(e),r=mS(t);p(o),g(n),w(r),e&&t?l():c()}}),[o]);var x=t.useMemo((function(){return gS("rtl"===s?-(null==m?void 0:m.right):null==m?void 0:m.left)}),[s,m]),C=t.useMemo((function(){return gS("rtl"===s?-(null==y?void 0:y.right):null==y?void 0:y.left)}),[s,y]);return m&&y?t.createElement(Yi,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){g(null),w(null),c()}},(function(e,r){var o=e.className,i=S(S({},e.style),{},{"--thumb-start-left":x,"--thumb-start-width":gS(null==m?void 0:m.width),"--thumb-active-left":C,"--thumb-active-width":gS(null==y?void 0:y.width)}),a={ref:Po(u,r),style:i,className:_o()("".concat(n,"-thumb"),o)};return t.createElement("div",a)})):null}var yS=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function wS(e){return e.map((function(e){if("object"===v(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==v(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return S(S({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}var xS=function(e){var n=e.prefixCls,r=e.className,o=e.disabled,i=e.checked,a=e.label,l=e.title,c=e.value,s=e.onChange;return t.createElement("label",{className:_o()(r,w({},"".concat(n,"-item-disabled"),o))},t.createElement("input",{className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:i,onChange:function(e){o||s(e,c)}}),t.createElement("div",{className:"".concat(n,"-item-label"),title:l},a))},SS=t.forwardRef((function(e,n){var r,o,i=e.prefixCls,a=void 0===i?"rc-segmented":i,l=e.direction,c=e.options,s=void 0===c?[]:c,u=e.disabled,d=e.defaultValue,f=e.value,p=e.onChange,h=e.className,v=void 0===h?"":h,m=e.motionName,g=void 0===m?"thumb-motion":m,b=To(e,yS),y=t.useRef(null),x=t.useMemo((function(){return Po(y,n)}),[y,n]),S=t.useMemo((function(){return wS(s)}),[s]),C=G(Zo(null===(r=S[0])||void 0===r?void 0:r.value,{value:f,defaultValue:d}),2),k=C[0],E=C[1],O=G(t.useState(!1),2),_=O[0],$=O[1],j=function(e,t){u||(E(t),null==p||p(t))},N=Tc(b,["children"]);return t.createElement("div",pt({},N,{className:_o()(a,(o={},w(o,"".concat(a,"-rtl"),"rtl"===l),w(o,"".concat(a,"-disabled"),u),o),v),ref:x}),t.createElement("div",{className:"".concat(a,"-group")},t.createElement(bS,{prefixCls:a,value:k,containerRef:y,motionName:"".concat(a,"-").concat(g),direction:l,getValueIndex:function(e){return S.findIndex((function(t){return t.value===e}))},onMotionStart:function(){$(!0)},onMotionEnd:function(){$(!1)}}),S.map((function(e){return t.createElement(xS,pt({},e,{key:e.value,prefixCls:a,className:_o()(e.className,"".concat(a,"-item"),w({},"".concat(a,"-item-selected"),e.value===k&&!_)),checked:e.value===k,onChange:j,disabled:!!u||!!e.disabled}))}))))}));var CS=SS;function kS(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function ES(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const OS=Object.assign({overflow:"hidden"},ca),_S=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sa(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},ES(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:Ve(n),padding:`0 ${Ve(e.segmentedPaddingHorizontal)}`},OS),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},ES(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Ve(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:Ve(r),padding:`0 ${Ve(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:Ve(o),padding:`0 ${Ve(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),kS(`&-disabled ${t}-item`,e)),kS(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}};var $S=Zl("Segmented",(e=>{const{lineWidth:t,calc:n}=e,r=Hl(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[_S(r)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}})),jS=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const NS=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,rootClassName:i,block:a,options:l=[],size:c="middle",style:s}=e,u=jS(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:d,direction:f,segmented:p}=t.useContext(B),h=d("segmented",r),[v,m,g]=$S(h),b=Xc(c),y=t.useMemo((()=>l.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:n,label:r}=e,o=jS(e,["icon","label"]);return Object.assign(Object.assign({},o),{label:t.createElement(t.Fragment,null,t.createElement("span",{className:`${h}-item-icon`},n),r&&t.createElement("span",null,r))})}return e}))),[l,h]),w=_o()(o,i,null==p?void 0:p.className,{[`${h}-block`]:a,[`${h}-sm`]:"small"===b,[`${h}-lg`]:"large"===b},m,g),x=Object.assign(Object.assign({},null==p?void 0:p.style),s);return v(t.createElement(CS,Object.assign({},u,{className:w,style:x,options:y,ref:n,prefixCls:h,direction:f})))}));var IS=NS;const PS=t.createContext({}),MS=t.createContext({}),RS=e=>e instanceof dS?e:new dS(e),AS=e=>Math.round(Number(e||0)),TS=e=>AS(100*e.toHsb().a),qS=(e,t)=>{const n=e.toHsb();return n.a=t||1,RS(n)},LS=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(K(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;e<n.length-1;e+=1){const r=n[e].percent,o=n[e+1].percent,i=n[e].color,a=n[e+1].color;if(r<=t&&t<=o){const e=o-r;if(0===e)return i;const n=(t-r)/e*100,l=new Gx(i),c=new Gx(a);return l.mix(c,n).toRgbString()}}return""};var DS,zS=e=>{let{prefixCls:n,value:r,onChange:o}=e;return t.createElement("div",{className:`${n}-clear`,onClick:()=>{if(o&&r&&!r.cleared){const e=r.toHsb();e.a=0;const t=RS(e);t.cleared=!0,o(t)}}})};!function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"}(DS||(DS={}));var BS=e=>{let{prefixCls:n,min:r=0,max:o=100,value:i,onChange:a,className:l,formatter:c}=e;const s=`${n}-steppers`,[u,d]=(0,t.useState)(i);return(0,t.useEffect)((()=>{Number.isNaN(i)||d(i)}),[i]),t.createElement(xx,{className:_o()(s,l),min:r,max:o,value:u,formatter:c,size:"small",onChange:e=>{i||d(e||0),null==a||a(e)}})};var FS=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-alpha-input`,[a,l]=(0,t.useState)(RS(r||"#000"));(0,t.useEffect)((()=>{r&&l(r)}),[r]);return t.createElement(BS,{value:TS(a),prefixCls:n,formatter:e=>`${e}%`,className:i,onChange:e=>{const t=a.toHsb();t.a=(e||0)/100;const n=RS(t);r||l(n),null==o||o(n)}})};const HS=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i;var WS=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-hex-input`,[a,l]=(0,t.useState)((()=>r?uS(r.toHexString()):void 0));(0,t.useEffect)((()=>{r&&l(uS(r.toHexString()))}),[r]);return t.createElement(Ag,{className:i,value:a,prefix:"#",onChange:e=>{const t=e.target.value;var n;l(uS(t)),n=uS(t,!0),HS.test(`#${n}`)&&(null==o||o(RS(t)))},size:"small"})};var VS=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-hsb-input`,[a,l]=(0,t.useState)(RS(r||"#000"));(0,t.useEffect)((()=>{r&&l(r)}),[r]);const c=(e,t)=>{const n=a.toHsb();n[t]="h"===t?e:(e||0)/100;const i=RS(n);r||l(i),null==o||o(i)};return t.createElement("div",{className:i},t.createElement(BS,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:n,className:i,formatter:e=>AS(e||0).toString(),onChange:e=>c(Number(e),"h")}),t.createElement(BS,{max:100,min:0,value:100*Number(a.toHsb().s),prefixCls:n,className:i,formatter:e=>`${AS(e||0)}%`,onChange:e=>c(Number(e),"s")}),t.createElement(BS,{max:100,min:0,value:100*Number(a.toHsb().b),prefixCls:n,className:i,formatter:e=>`${AS(e||0)}%`,onChange:e=>c(Number(e),"b")}))};var US=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-rgb-input`,[a,l]=(0,t.useState)(RS(r||"#000"));(0,t.useEffect)((()=>{r&&l(r)}),[r]);const c=(e,t)=>{const n=a.toRgb();n[t]=e||0;const i=RS(n);r||l(i),null==o||o(i)};return t.createElement("div",{className:i},t.createElement(BS,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:n,className:i,onChange:e=>c(Number(e),"r")}),t.createElement(BS,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:n,className:i,onChange:e=>c(Number(e),"g")}),t.createElement(BS,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:n,className:i,onChange:e=>c(Number(e),"b")}))};const GS=[DS.hex,DS.hsb,DS.rgb].map((e=>({value:e,label:e.toLocaleUpperCase()})));var YS=e=>{const{prefixCls:n,format:r,value:o,disabledAlpha:i,onFormatChange:a,onChange:l}=e,[c,s]=Zo(DS.hex,{value:r,onChange:a}),u=`${n}-input`,d=(0,t.useMemo)((()=>{const e={value:o,prefixCls:n,onChange:l};switch(c){case DS.hsb:return t.createElement(VS,Object.assign({},e));case DS.rgb:return t.createElement(US,Object.assign({},e));default:return t.createElement(WS,Object.assign({},e))}}),[c,n,o,l]);return t.createElement("div",{className:`${u}-container`},t.createElement(Lw,{value:c,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{s(e)},className:`${n}-format-select`,size:"small",options:GS}),t.createElement("div",{className:u},d),!i&&t.createElement(FS,{prefixCls:n,value:o,onChange:l}))};function KS(e,t,n){return(e-t)/(n-t)}function XS(e,t,n,r){var o=KS(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function QS(e,t){return Array.isArray(e)?e[t]:e}var ZS=t.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),JS=t.createContext({}),eC=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],tC=t.forwardRef((function(e,n){var r,o=e.prefixCls,i=e.value,a=e.valueIndex,l=e.onStartMove,c=e.onDelete,s=e.style,u=e.render,d=e.dragging,f=e.draggingDelete,p=e.onOffsetChange,h=e.onChangeComplete,v=e.onFocus,m=e.onMouseEnter,g=To(e,eC),b=t.useContext(ZS),y=b.min,x=b.max,C=b.direction,k=b.disabled,E=b.keyboard,O=b.range,_=b.tabIndex,$=b.ariaLabelForHandle,j=b.ariaLabelledByForHandle,N=b.ariaValueTextFormatterForHandle,I=b.styles,P=b.classNames,M="".concat(o,"-handle"),R=function(e){k||l(e,a)},A=XS(C,i,y,x),T={};null!==a&&(T={tabIndex:k?null:QS(_,a),role:"slider","aria-valuemin":y,"aria-valuemax":x,"aria-valuenow":i,"aria-disabled":k,"aria-label":QS($,a),"aria-labelledby":QS(j,a),"aria-valuetext":null===(r=QS(N,a))||void 0===r?void 0:r(i),"aria-orientation":"ltr"===C||"rtl"===C?"horizontal":"vertical",onMouseDown:R,onTouchStart:R,onFocus:function(e){null==v||v(e,a)},onMouseEnter:function(e){m(e,a)},onKeyDown:function(e){if(!k&&E){var t=null;switch(e.which||e.keyCode){case al.LEFT:t="ltr"===C||"btt"===C?-1:1;break;case al.RIGHT:t="ltr"===C||"btt"===C?1:-1;break;case al.UP:t="ttb"!==C?1:-1;break;case al.DOWN:t="ttb"!==C?-1:1;break;case al.HOME:t="min";break;case al.END:t="max";break;case al.PAGE_UP:t=2;break;case al.PAGE_DOWN:t=-2;break;case al.BACKSPACE:case al.DELETE:c(a)}null!==t&&(e.preventDefault(),p(t,a))}},onKeyUp:function(e){switch(e.which||e.keyCode){case al.LEFT:case al.RIGHT:case al.UP:case al.DOWN:case al.HOME:case al.END:case al.PAGE_UP:case al.PAGE_DOWN:null==h||h()}}});var q=t.createElement("div",pt({ref:n,className:_o()(M,w(w(w({},"".concat(M,"-").concat(a+1),null!==a&&O),"".concat(M,"-dragging"),d),"".concat(M,"-dragging-delete"),f),P.handle),style:S(S(S({},A),s),I.handle)},T,g));return u&&(q=u(q,{index:a,prefixCls:o,value:i,dragging:d,draggingDelete:f})),q}));var nC=tC,rC=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],oC=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.style,i=e.onStartMove,a=e.onOffsetChange,l=e.values,c=e.handleRender,s=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,p=To(e,rC),h=t.useRef({}),v=G(t.useState(!1),2),m=v[0],g=v[1],b=G(t.useState(-1),2),y=b[0],w=b[1],x=function(e){w(e),g(!0)};t.useImperativeHandle(n,(function(){return{focus:function(e){var t;null===(t=h.current[e])||void 0===t||t.focus()},hideHelp:function(){(0,k.flushSync)((function(){g(!1)}))}}}));var C=S({prefixCls:r,onStartMove:i,onOffsetChange:a,render:c,onFocus:function(e,t){x(t),null==f||f(e)},onMouseEnter:function(e,t){x(t)}},p);return t.createElement(t.Fragment,null,l.map((function(e,n){var r=u===n;return t.createElement(nC,pt({ref:function(e){e?h.current[n]=e:delete h.current[n]},dragging:r,draggingDelete:r&&d,style:QS(o,n),key:n,value:e,valueIndex:n},C))})),s&&m&&t.createElement(nC,pt({key:"a11y"},C,{value:l[y],valueIndex:null,dragging:-1!==u,draggingDelete:d,render:s,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}));var iC=oC,aC=function(e){var n=e.prefixCls,r=e.style,o=e.children,i=e.value,a=e.onClick,l=t.useContext(ZS),c=l.min,s=l.max,u=l.direction,d=l.includedStart,f=l.includedEnd,p=l.included,h="".concat(n,"-text"),v=XS(u,i,c,s);return t.createElement("span",{className:_o()(h,w({},"".concat(h,"-active"),p&&d<=i&&i<=f)),style:S(S({},v),r),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(i)}},o)},lC=function(e){var n=e.prefixCls,r=e.marks,o=e.onClick,i="".concat(n,"-mark");return r.length?t.createElement("div",{className:i},r.map((function(e){var n=e.value,r=e.style,a=e.label;return t.createElement(aC,{key:n,prefixCls:i,style:r,value:n,onClick:o},a)}))):null},cC=function(e){var n=e.prefixCls,r=e.value,o=e.style,i=e.activeStyle,a=t.useContext(ZS),l=a.min,c=a.max,s=a.direction,u=a.included,d=a.includedStart,f=a.includedEnd,p="".concat(n,"-dot"),h=u&&d<=r&&r<=f,v=S(S({},XS(s,r,l,c)),"function"==typeof o?o(r):o);return h&&(v=S(S({},v),"function"==typeof i?i(r):i)),t.createElement("span",{className:_o()(p,w({},"".concat(p,"-active"),h)),style:v})},sC=function(e){var n=e.prefixCls,r=e.marks,o=e.dots,i=e.style,a=e.activeStyle,l=t.useContext(ZS),c=l.min,s=l.max,u=l.step,d=t.useMemo((function(){var e=new Set;if(r.forEach((function(t){e.add(t.value)})),o&&null!==u)for(var t=c;t<=s;)e.add(t),t+=u;return Array.from(e)}),[c,s,u,o,r]);return t.createElement("div",{className:"".concat(n,"-step")},d.map((function(e){return t.createElement(cC,{prefixCls:n,key:e,value:e,style:i,activeStyle:a})})))},uC=function(e){var n=e.prefixCls,r=e.style,o=e.start,i=e.end,a=e.index,l=e.onStartMove,c=e.replaceCls,s=t.useContext(ZS),u=s.direction,d=s.min,f=s.max,p=s.disabled,h=s.range,v=s.classNames,m="".concat(n,"-track"),g=KS(o,d,f),b=KS(i,d,f),y=function(e){!p&&l&&l(e,-1)},x={};switch(u){case"rtl":x.right="".concat(100*g,"%"),x.width="".concat(100*b-100*g,"%");break;case"btt":x.bottom="".concat(100*g,"%"),x.height="".concat(100*b-100*g,"%");break;case"ttb":x.top="".concat(100*g,"%"),x.height="".concat(100*b-100*g,"%");break;default:x.left="".concat(100*g,"%"),x.width="".concat(100*b-100*g,"%")}var C=c||_o()(m,w(w({},"".concat(m,"-").concat(a+1),null!==a&&h),"".concat(n,"-track-draggable"),l),v.track);return t.createElement("div",{className:C,style:S(S({},x),r),onMouseDown:y,onTouchStart:y})},dC=function(e){var n=e.prefixCls,r=e.style,o=e.values,i=e.startPoint,a=e.onStartMove,l=t.useContext(ZS),c=l.included,s=l.range,u=l.min,d=l.styles,f=l.classNames,p=t.useMemo((function(){if(!s){if(0===o.length)return[];var e=null!=i?i:u,t=o[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],r=0;r<o.length-1;r+=1)n.push({start:o[r],end:o[r+1]});return n}),[o,s,i,u]);if(!c)return null;var h=f.tracks||d.tracks?t.createElement(uC,{index:null,prefixCls:n,start:p[0].start,end:p[p.length-1].end,replaceCls:_o()(f.tracks,"".concat(n,"-tracks")),style:d.tracks}):null;return t.createElement(t.Fragment,null,h,p.map((function(e,o){var i=e.start,l=e.end;return t.createElement(uC,{index:o,prefixCls:n,style:S(S({},QS(r,o)),d.track),start:i,end:l,key:o,onStartMove:a})})))};function fC(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}var pC=function(e,n,r,o,i,a,l,c,s,u,d){var f=G(t.useState(null),2),p=f[0],h=f[1],v=G(t.useState(-1),2),m=v[0],g=v[1],b=G(t.useState(!1),2),y=b[0],w=b[1],x=G(t.useState(r),2),S=x[0],C=x[1],k=G(t.useState(r),2),E=k[0],O=k[1],_=t.useRef(null),$=t.useRef(null),j=t.useContext(JS),N=j.onDragStart,I=j.onDragChange;t.useLayoutEffect((function(){-1===m&&C(r)}),[r,m]),t.useEffect((function(){return function(){document.removeEventListener("mousemove",_.current),document.removeEventListener("mouseup",$.current),document.removeEventListener("touchmove",_.current),document.removeEventListener("touchend",$.current)}}),[]);var P=function(e,t,n){void 0!==t&&h(t),C(e);var r=e;n&&(r=e.filter((function(e,t){return t!==m}))),l(r),I&&I({rawValues:e,deleteIndex:n?m:-1,draggingIndex:m,draggingValue:t})},M=Ko((function(e,t,n){if(-1===e){var r=E[0],l=E[E.length-1],c=o-r,u=i-l,d=t*(i-o);d=Math.max(d,c),d=Math.min(d,u);var f=a(r+d);d=f-r;var p=E.map((function(e){return e+d}));P(p)}else{var h=(i-o)*t,v=K(S);v[e]=E[e];var m=s(v,h,e,"dist");P(m.values,m.value,n)}})),R=t.useMemo((function(){var e=K(r).sort((function(e,t){return e-t})),t=K(S).sort((function(e,t){return e-t})),n={};t.forEach((function(e){n[e]=(n[e]||0)+1})),e.forEach((function(e){n[e]=(n[e]||0)-1}));var o=u?1:0,i=Object.values(n).reduce((function(e,t){return e+Math.abs(t)}),0);return i<=o?S:r}),[r,S,u]);return[m,p,y,R,function(t,o,i){t.stopPropagation();var a=i||r,l=a[o];g(o),h(l),O(a),C(a),w(!1);var s=fC(t),f=s.pageX,p=s.pageY,v=!1;N&&N({rawValues:a,draggingIndex:o,draggingValue:l});var m=function(t){t.preventDefault();var r,i,a=fC(t),l=a.pageX,c=a.pageY,s=l-f,h=c-p,m=e.current.getBoundingClientRect(),g=m.width,b=m.height;switch(n){case"btt":r=-h/b,i=s;break;case"ttb":r=h/b,i=s;break;case"rtl":r=-s/g,i=h;break;default:r=s/g,i=h}v=!!u&&(Math.abs(i)>130&&d<S.length),w(v),M(o,r,v)},b=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",m),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",m),_.current=null,$.current=null,c(v),g(-1),w(!1)};document.addEventListener("mouseup",b),document.addEventListener("mousemove",m),document.addEventListener("touchend",b),document.addEventListener("touchmove",m),_.current=m,$.current=b}]};var hC=t.forwardRef((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-slider":r,i=e.className,a=e.style,l=e.classNames,c=e.styles,s=e.disabled,u=void 0!==s&&s,d=e.keyboard,f=void 0===d||d,p=e.autoFocus,h=e.onFocus,m=e.onBlur,g=e.min,b=void 0===g?0:g,y=e.max,x=void 0===y?100:y,C=e.step,k=void 0===C?1:C,E=e.value,O=e.defaultValue,_=e.range,$=e.count,j=e.onChange,N=e.onBeforeChange,I=e.onAfterChange,P=e.onChangeComplete,M=e.allowCross,R=void 0===M||M,A=e.pushable,T=void 0!==A&&A,q=e.reverse,L=e.vertical,D=e.included,z=void 0===D||D,B=e.startPoint,F=e.trackStyle,H=e.handleStyle,W=e.railStyle,V=e.dotStyle,U=e.activeDotStyle,Y=e.marks,X=e.dots,Q=e.handleRender,Z=e.activeHandleRender,J=e.track,ee=e.tabIndex,te=void 0===ee?0:ee,ne=e.ariaLabelForHandle,re=e.ariaLabelledByForHandle,oe=e.ariaValueTextFormatterForHandle,ie=t.useRef(null),ae=t.useRef(null),le=t.useMemo((function(){return L?q?"ttb":"btt":q?"rtl":"ltr"}),[q,L]),ce=function(e){return(0,t.useMemo)((function(){if(!0===e||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack;return[!0,t,!t&&n,e.minCount||0,e.maxCount]}),[e])}(_),se=G(ce,5),ue=se[0],de=se[1],fe=se[2],pe=se[3],he=se[4],ve=t.useMemo((function(){return isFinite(b)?b:0}),[b]),me=t.useMemo((function(){return isFinite(x)?x:100}),[x]),ge=t.useMemo((function(){return null!==k&&k<=0?1:k}),[k]),we=t.useMemo((function(){return"boolean"==typeof T?!!T&&ge:T>=0&&T}),[T,ge]),xe=t.useMemo((function(){return Object.keys(Y||{}).map((function(e){var n=Y[e],r={value:Number(e)};return n&&"object"===v(n)&&!t.isValidElement(n)&&("label"in n||"style"in n)?(r.style=n.style,r.label=n.label):r.label=n,r})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[Y]),Se=function(e,n,r,o,i,a){var l=t.useCallback((function(t){return Math.max(e,Math.min(n,t))}),[e,n]),c=t.useCallback((function(t){if(null!==r){var o=e+Math.round((l(t)-e)/r)*r,i=function(e){return(String(e).split(".")[1]||"").length},a=Math.max(i(r),i(n),i(e)),c=Number(o.toFixed(a));return e<=c&&c<=n?c:null}return null}),[r,e,n,l]),s=t.useCallback((function(t){var i=l(t),a=o.map((function(e){return e.value}));null!==r&&a.push(c(t)),a.push(e,n);var s=a[0],u=n-e;return a.forEach((function(e){var t=Math.abs(i-e);t<=u&&(s=e,u=t)})),s}),[e,n,o,r,l,c]),u=function t(i,a,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var u,d=i[l],f=d+a,p=[];o.forEach((function(e){p.push(e.value)})),p.push(e,n),p.push(c(d));var h=a>0?1:-1;"unit"===s?p.push(c(d+h*r)):p.push(c(f)),p=p.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===s&&(p=p.filter((function(e){return e!==d})));var v="unit"===s?d:f;u=p[0];var m=Math.abs(u-v);if(p.forEach((function(e){var t=Math.abs(e-v);t<m&&(u=e,m=t)})),void 0===u)return a<0?e:n;if("dist"===s)return u;if(Math.abs(a)>1){var g=K(i);return g[l]=u,t(g,a-h,l,s)}return u}return"min"===a?e:"max"===a?n:void 0},d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],i=u(e,t,n,r);return{value:i,changed:i!==o}},f=function(e){return null===a&&0===e||"number"==typeof a&&e<a};return[s,function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e.map(s),l=o[n],c=u(o,t,n,r);if(o[n]=c,!1===i){var p=a||0;n>0&&o[n-1]!==l&&(o[n]=Math.max(o[n],o[n-1]+p)),n<o.length-1&&o[n+1]!==l&&(o[n]=Math.min(o[n],o[n+1]-p))}else if("number"==typeof a||null===a){for(var h=n+1;h<o.length;h+=1)for(var v=!0;f(o[h]-o[h-1])&&v;){var m=d(o,1,h);o[h]=m.value,v=m.changed}for(var g=n;g>0;g-=1)for(var b=!0;f(o[g]-o[g-1])&&b;){var y=d(o,-1,g-1);o[g-1]=y.value,b=y.changed}for(var w=o.length-1;w>0;w-=1)for(var x=!0;f(o[w]-o[w-1])&&x;){var S=d(o,-1,w-1);o[w-1]=S.value,x=S.changed}for(var C=0;C<o.length-1;C+=1)for(var k=!0;f(o[C+1]-o[C])&&k;){var E=d(o,1,C+1);o[C+1]=E.value,k=E.changed}}return{value:o[n],values:o}}]}(ve,me,ge,xe,R,we),Ce=G(Se,2),ke=Ce[0],Ee=Ce[1],Oe=G(Zo(O,{value:E}),2),_e=Oe[0],$e=Oe[1],je=t.useMemo((function(){var e=null==_e?[]:Array.isArray(_e)?_e:[_e],t=G(e,1)[0],n=null===_e?[]:[void 0===t?ve:t];if(ue){if(n=K(e),$||void 0===_e){var r=$>=0?$+1:2;for(n=n.slice(0,r);n.length<r;){var o;n.push(null!==(o=n[n.length-1])&&void 0!==o?o:ve)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=ke(e)})),n}),[_e,ue,ve,$,ke]),Ne=function(e){return ue?e:e[0]},Ie=Ko((function(e){var t=K(e).sort((function(e,t){return e-t}));j&&!ye(t,je,!0)&&j(Ne(t)),$e(t)})),Pe=Ko((function(e){e&&ie.current.hideHelp();var t=Ne(je);null==I||I(t),be(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==P||P(t)})),Me=G(pC(ae,le,je,ve,me,ke,Ie,Pe,Ee,de,pe),5),Re=Me[0],Ae=Me[1],Te=Me[2],qe=Me[3],Le=Me[4],De=function(e,t){if(!u){var n=K(je),r=0,o=0,i=me-ve;je.forEach((function(t,n){var a=Math.abs(e-t);a<=i&&(i=a,r=n),t<e&&(o=n)}));var a=r;de&&0!==i&&(!he||je.length<he)?(n.splice(o+1,0,e),a=o+1):n[r]=e,ue&&!je.length&&void 0===$&&n.push(e);var l,c,s=Ne(n);if(null==N||N(s),Ie(n),t)null===(l=document.activeElement)||void 0===l||null===(c=l.blur)||void 0===c||c.call(l),ie.current.focus(a),Le(t,a,n);else null==I||I(s),be(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==P||P(s)}},ze=G(t.useState(null),2),Be=ze[0],Fe=ze[1];t.useEffect((function(){if(null!==Be){var e=je.indexOf(Be);e>=0&&ie.current.focus(e)}Fe(null)}),[Be]);var He=t.useMemo((function(){return(!fe||null!==ge)&&fe}),[fe,ge]),We=Ko((function(e,t){Le(e,t),null==N||N(Ne(je))})),Ve=-1!==Re;t.useEffect((function(){if(!Ve){var e=je.lastIndexOf(Ae);ie.current.focus(e)}}),[Ve]);var Ue=t.useMemo((function(){return K(qe).sort((function(e,t){return e-t}))}),[qe]),Ge=G(t.useMemo((function(){return ue?[Ue[0],Ue[Ue.length-1]]:[ve,Ue[0]]}),[Ue,ue,ve]),2),Ye=Ge[0],Ke=Ge[1];t.useImperativeHandle(n,(function(){return{focus:function(){ie.current.focus(0)},blur:function(){var e,t=document.activeElement;null!==(e=ae.current)&&void 0!==e&&e.contains(t)&&(null==t||t.blur())}}})),t.useEffect((function(){p&&ie.current.focus(0)}),[]);var Xe=t.useMemo((function(){return{min:ve,max:me,direction:le,disabled:u,keyboard:f,step:ge,included:z,includedStart:Ye,includedEnd:Ke,range:ue,tabIndex:te,ariaLabelForHandle:ne,ariaLabelledByForHandle:re,ariaValueTextFormatterForHandle:oe,styles:c||{},classNames:l||{}}}),[ve,me,le,u,f,ge,z,Ye,Ke,ue,te,ne,re,oe,c,l]);return t.createElement(ZS.Provider,{value:Xe},t.createElement("div",{ref:ae,className:_o()(o,i,w(w(w(w({},"".concat(o,"-disabled"),u),"".concat(o,"-vertical"),L),"".concat(o,"-horizontal"),!L),"".concat(o,"-with-marks"),xe.length)),style:a,onMouseDown:function(e){e.preventDefault();var t,n=ae.current.getBoundingClientRect(),r=n.width,o=n.height,i=n.left,a=n.top,l=n.bottom,c=n.right,s=e.clientX,u=e.clientY;switch(le){case"btt":t=(l-u)/o;break;case"ttb":t=(u-a)/o;break;case"rtl":t=(c-s)/r;break;default:t=(s-i)/r}De(ke(ve+t*(me-ve)),e)}},t.createElement("div",{className:_o()("".concat(o,"-rail"),null==l?void 0:l.rail),style:S(S({},W),null==c?void 0:c.rail)}),!1!==J&&t.createElement(dC,{prefixCls:o,style:F,values:je,startPoint:B,onStartMove:He?We:void 0}),t.createElement(sC,{prefixCls:o,marks:xe,dots:X,style:V,activeStyle:U}),t.createElement(iC,{ref:ie,prefixCls:o,style:H,values:qe,draggingIndex:Re,draggingDelete:Te,onStartMove:We,onOffsetChange:function(e,t){if(!u){var n=Ee(je,e,t);null==N||N(Ne(je)),Ie(n.values),Fe(n.value)}},onFocus:h,onBlur:m,handleRender:Q,activeHandleRender:Z,onChangeComplete:Pe,onDelete:de?function(e){if(!(u||!de||je.length<=pe)){var t=K(je);t.splice(e,1),null==N||N(Ne(t)),Ie(t);var n=Math.max(0,e-1);ie.current.hideHelp(),ie.current.focus(n)}}:void 0}),t.createElement(lC,{prefixCls:o,marks:xe,onClick:De})))}));var vC=hC;var mC=t.forwardRef(((e,n)=>{const{open:r,draggingDelete:o}=e,i=(0,t.useRef)(null),a=r&&!o,l=(0,t.useRef)(null);function c(){ji.cancel(l.current),l.current=null}return t.useEffect((()=>(a?l.current=ji((()=>{var e;null===(e=i.current)||void 0===e||e.forceAlign(),l.current=null})):c(),c)),[a,e.title]),t.createElement(eh,Object.assign({ref:Po(i,n)},e,{open:a}))}));const gC=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:c,calc:s,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:h,handleLineWidthHover:v,motionDurationMid:m}=e;return{[t]:Object.assign(Object.assign({},sa(e)),{position:"relative",height:r,margin:`${Ve(a)} ${Ve(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Ve(i)} ${Ve(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${m}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${m}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Ve(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:s(h).mul(-1).equal(),insetBlockStart:s(h).mul(-1).equal(),width:s(u).add(s(h).mul(2)).equal(),height:s(u).add(s(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Ve(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${m},\n inset-block-start ${m},\n width ${m},\n height ${m},\n box-shadow ${m},\n outline ${m}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:s(d).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:s(d).sub(u).div(2).add(v).mul(-1).equal(),width:s(d).add(s(v).mul(2)).equal(),height:s(d).add(s(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Ve(v)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${Ve(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${Ve(h)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},bC=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:l}=e,c=t?"paddingBlock":"paddingInline",s=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",p=l(r).mul(3).sub(o).div(2).equal(),h=l(o).sub(r).div(2).equal(),v=t?{borderWidth:`${Ve(h)} 0`,transform:`translateY(${Ve(l(h).mul(-1).equal())})`}:{borderWidth:`0 ${Ve(h)}`,transform:`translateX(${Ve(e.calc(h).mul(-1).equal())})`};return{[c]:r,[u]:l(r).mul(3).equal(),[`${n}-rail`]:{[s]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:l(r).mul(3).add(t?0:a).equal(),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[s]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:l(r).sub(i).div(2).equal()}}},yC=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},bC(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},wC=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},bC(e,!1)),{height:"100%"})}};var xC=Zl("Slider",(e=>{const t=Hl(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[gC(t),yC(t),wC(t)]}),(e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1.5,i=e.colorPrimary,a=new to(i).setAlpha(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:a,handleColorDisabled:new to(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));var SC=(0,t.createContext)({});function CC(){const[e,n]=t.useState(!1),r=t.useRef(),o=()=>{ji.cancel(r.current)};return t.useEffect((()=>o),[]),[e,e=>{o(),e?n(e):r.current=ji((()=>{n(e)}))}]}var kC=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const EC=t.forwardRef(((e,n)=>{const{prefixCls:r,range:o,className:i,rootClassName:a,style:l,disabled:c,tooltipPrefixCls:s,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:h={},onChangeComplete:v}=e,m=kC(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:g}=e,{direction:b,slider:y,getPrefixCls:w,getPopupContainer:x}=t.useContext(B),S=t.useContext(bo),C=null!=c?c:S,{handleRender:k,direction:E}=t.useContext(SC),O="rtl"===(E||b),[_,$]=CC(),[j,N]=CC(),I=Object.assign({},h),{open:P,placement:M,getPopupContainer:R,prefixCls:A,formatter:T}=I,q=null!=P?P:d,L=(_||j)&&!1!==q,D=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(T,u),[z,F]=CC(),H=(e,t)=>e||(t?O?"left":"right":"top"),W=w("slider",r),[V,U,G]=xC(W),Y=_o()(i,null==y?void 0:y.className,a,{[`${W}-rtl`]:O,[`${W}-lock`]:z},U,G);O&&!m.vertical&&(m.reverse=!m.reverse),t.useEffect((()=>{const e=()=>{ji((()=>{N(!1)}),1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]);const K=o&&!q,X=k||((e,n)=>{const{index:r}=n,o=e.props;function i(e,t,n){var r,i,a,l;n&&(null===(i=(r=m)[e])||void 0===i||i.call(r,t)),null===(l=(a=o)[e])||void 0===l||l.call(a,t)}const a=Object.assign(Object.assign({},o),{onMouseEnter:e=>{$(!0),i("onMouseEnter",e)},onMouseLeave:e=>{$(!1),i("onMouseLeave",e)},onMouseDown:e=>{N(!0),F(!0),i("onMouseDown",e)},onFocus:e=>{var t;N(!0),null===(t=m.onFocus)||void 0===t||t.call(m,e),i("onFocus",e,!0)},onBlur:e=>{var t;N(!1),null===(t=m.onBlur)||void 0===t||t.call(m,e),i("onBlur",e,!0)}}),l=t.cloneElement(e,a),c=(!!q||L)&&null!==D;return K?l:t.createElement(mC,Object.assign({},I,{prefixCls:w("tooltip",null!=A?A:s),title:D?D(n.value):"",open:c,placement:H(null!=M?M:p,g),key:r,overlayClassName:`${W}-tooltip`,getPopupContainer:R||f||x}),l)}),Q=K?(e,n)=>{const r=t.cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return t.createElement(mC,Object.assign({},I,{prefixCls:w("tooltip",null!=A?A:s),title:D?D(n.value):"",open:null!==D&&L,placement:H(null!=M?M:p,g),key:"tooltip",overlayClassName:`${W}-tooltip`,getPopupContainer:R||f||x,draggingDelete:n.draggingDelete}),r)}:void 0,Z=Object.assign(Object.assign({},null==y?void 0:y.style),l);return V(t.createElement(vC,Object.assign({},m,{step:m.step,range:o,className:Y,style:Z,disabled:C,ref:n,prefixCls:W,handleRender:X,activeHandleRender:Q,onChangeComplete:e=>{null==v||v(e),F(!1)}})))}));var OC=EC,_C=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $C=e=>{const{prefixCls:n,colors:r,type:o,color:i,range:a=!1,className:l,activeIndex:c,onActive:s,onDragStart:u,onDragChange:d,onKeyDelete:f}=e,p=_C(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),h=Object.assign(Object.assign({},p),{track:!1}),v=t.useMemo((()=>`linear-gradient(90deg, ${r.map((e=>`${e.color} ${e.percent}%`)).join(", ")})`),[r]),m=t.useMemo((()=>i&&o?"alpha"===o?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`:null),[i,o]),g=Ko(u),b=Ko(d),y=t.useMemo((()=>({onDragStart:g,onDragChange:b})),[]),w=Ko(((e,i)=>{const{onFocus:a,style:l,className:u,onKeyDown:d}=e.props,p=Object.assign({},l);return"gradient"===o&&(p.background=LS(r,i.value)),t.cloneElement(e,{onFocus:e=>{null==s||s(i.index),null==a||a(e)},style:p,className:_o()(u,{[`${n}-slider-handle-active`]:c===i.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!f||f(i.index),null==d||d(e)}})})),x=t.useMemo((()=>({direction:"ltr",handleRender:w})),[]);return t.createElement(SC.Provider,{value:x},t.createElement(JS.Provider,{value:y},t.createElement(OC,Object.assign({},h,{className:_o()(l,`${n}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:v},handle:m?{background:m}:{}},classNames:{rail:`${n}-slider-rail`,handle:`${n}-slider-handle`}}))))};var jC=e=>{const{value:n,onChange:r,onChangeComplete:o}=e;return t.createElement($C,Object.assign({},e,{value:[n],onChange:e=>r(e[0]),onChangeComplete:e=>o(e[0])}))};function NC(e){return K(e).sort(((e,t)=>e.percent-t.percent))}const IC=e=>{const{prefixCls:n,mode:r,onChange:o,onChangeComplete:i,onActive:a,activeIndex:l,onGradientDragging:c,colors:s}=e,u="gradient"===r,d=t.useMemo((()=>s.map((e=>({percent:e.percent,color:e.color.toRgbString()})))),[s]),f=t.useMemo((()=>d.map((e=>e.percent))),[d]),p=t.useRef(d);return u?t.createElement($C,{min:0,max:100,prefixCls:n,className:`${n}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:e=>{i(new dS(d)),l>=e.length&&a(e.length-1),c(!1)},disabled:!1,type:"gradient",activeIndex:l,onActive:a,onDragStart:e=>{let{rawValues:t,draggingIndex:n,draggingValue:r}=e;if(t.length>d.length){const e=LS(d,r),t=K(d);t.splice(n,0,{percent:r,color:e}),p.current=t}else p.current=d;c(!0),o(new dS(NC(p.current)),!0)},onDragChange:e=>{let{deleteIndex:t,draggingIndex:n,draggingValue:r}=e,i=K(p.current);-1!==t?i.splice(t,1):(i[n]=Object.assign(Object.assign({},i[n]),{percent:r}),i=NC(i)),o(new dS(i),!0)},onKeyDelete:e=>{const t=K(d);t.splice(e,1);const n=new dS(t);o(n),i(n)}}):null};var PC=t.memo(IC),MC=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const RC={slider:jC};var AC=()=>{const e=(0,t.useContext)(PS),{mode:n,onModeChange:r,modeOptions:o,prefixCls:i,allowClear:a,value:l,disabledAlpha:c,onChange:s,onClear:u,onChangeComplete:d,activeIndex:f,gradientDragging:p}=e,h=MC(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),v=t.useMemo((()=>l.cleared?[{percent:0,color:new dS("")},{percent:100,color:new dS("")}]:l.getColors()),[l]),m=!l.isGradient(),[g,b]=t.useState(l);Je((()=>{var e;m||b(null===(e=v[f])||void 0===e?void 0:e.color)}),[p,f]);const y=t.useMemo((()=>{var e;return m?l:p?g:null===(e=v[f])||void 0===e?void 0:e.color}),[l,f,m,g,p]),w=e=>{if("single"===n)return e;const t=K(v);return t[f]=Object.assign(Object.assign({},t[f]),{color:e}),new dS(t)},x=(e,t,n)=>{let r=RS(e);if(l.cleared){const e=r.toRgb();if(e.r||e.g||e.b||!n)r=qS(r);else{const{type:e,value:t=0}=n;r=new dS({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1})}}s(w(r),t)};let S=null;const C=o.length>1;return(a||C)&&(S=t.createElement("div",{className:`${i}-operation`},C&&t.createElement(IS,{size:"small",options:o,value:n,onChange:r}),t.createElement(zS,Object.assign({prefixCls:i,value:l,onChange:e=>{s(e),null==u||u()}},h)))),t.createElement(t.Fragment,null,S,t.createElement(PC,Object.assign({},e,{colors:v})),t.createElement(sS,{prefixCls:i,value:null==y?void 0:y.toHsb(),disabledAlpha:c,onChange:(e,t)=>{x(e,!0,t)},onChangeComplete:e=>{var t;t=RS(e),d(w(t))},components:RC}),t.createElement(YS,Object.assign({value:y,onChange:x,prefixCls:i,disabledAlpha:c},h)))},TC={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"},qC=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:TC}))};var LC=t.forwardRef(qC),DC=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,l=e.children,c=e.isActive,s=e.role,u=G(t.useState(c||o),2),d=u[0],f=u[1];return t.useEffect((function(){(o||c)&&f(!0)}),[o,c]),d?t.createElement("div",{ref:n,className:_o()("".concat(r,"-content"),w(w({},"".concat(r,"-content-active"),c),"".concat(r,"-content-inactive"),!c),i),style:a,role:s},t.createElement("div",{className:"".concat(r,"-content-box")},l)):null}));DC.displayName="PanelContent";var zC=DC,BC=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],FC=t.forwardRef((function(e,n){var r=e.showArrow,o=void 0===r||r,i=e.headerClass,a=e.isActive,l=e.onItemClick,c=e.forceRender,s=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,p=e.panelKey,h=e.extra,v=e.header,m=e.expandIcon,g=e.openMotion,b=e.destroyInactivePanel,y=e.children,x=To(e,BC),S="disabled"===d,C="header"===d,k="icon"===d,E=null!=h&&"boolean"!=typeof h,O=function(){null==l||l(p)},_="function"==typeof m?m(e):t.createElement("i",{className:"arrow"});_&&(_=t.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?O:void 0},_));var $=_o()(w(w(w({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),S),s),j={className:_o()(i,w(w(w({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),C),"".concat(u,"-icon-collapsible-only"),k)),"aria-expanded":a,"aria-disabled":S,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==al.ENTER&&e.which!==al.ENTER||O()}};return C||k||(j.onClick=O,j.role=f?"tab":"button",j.tabIndex=S?-1:0),t.createElement("div",pt({},x,{ref:n,className:$}),t.createElement("div",j,o&&_,t.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===d?O:void 0},v),E&&t.createElement("div",{className:"".concat(u,"-extra")},h)),t.createElement(Yi,pt({visible:a,leavedClassName:"".concat(u,"-content-hidden")},g,{forceRender:c,removeOnLeave:b}),(function(e,n){var r=e.className,o=e.style;return t.createElement(zC,{ref:n,prefixCls:u,className:r,style:o,isActive:a,forceRender:c,role:f?"tabpanel":void 0},y)})))})),HC=FC,WC=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var VC=function(e,n,r){return Array.isArray(e)?function(e,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,s=n.openMotion,u=n.expandIcon;return e.map((function(e,n){var d=e.children,f=e.label,p=e.key,h=e.collapsible,v=e.onItemClick,m=e.destroyInactivePanel,g=To(e,WC),b=String(null!=p?p:n),y=null!=h?h:i,w=null!=m?m:a,x=!1;return x=o?c[0]===b:c.indexOf(b)>-1,t.createElement(HC,pt({},g,{prefixCls:r,key:b,panelKey:b,isActive:x,accordion:o,openMotion:s,expandIcon:u,header:f,collapsible:y,onItemClick:function(e){"disabled"!==y&&(l(e),null==v||v(e))},destroyInactivePanel:w}),d)}))}(e,r):Qc(n).map((function(e,n){return function(e,n,r){if(!e)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,l=r.destroyInactivePanel,c=r.onItemClick,s=r.activeKey,u=r.openMotion,d=r.expandIcon,f=e.key||String(n),p=e.props,h=p.header,v=p.headerClass,m=p.destroyInactivePanel,g=p.collapsible,b=p.onItemClick,y=!1;y=i?s[0]===f:s.indexOf(f)>-1;var w=null!=g?g:a,x={key:f,panelKey:f,header:h,headerClass:v,isActive:y,prefixCls:o,destroyInactivePanel:null!=m?m:l,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==w&&(c(e),null==b||b(e))},expandIcon:d,collapsible:w};return"string"==typeof e.type?e:(Object.keys(x).forEach((function(e){void 0===x[e]&&delete x[e]})),t.cloneElement(e,x))}(e,n,r)}))};function UC(e){var t=e;if(!Array.isArray(t)){var n=v(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var GC=t.forwardRef((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,l=e.style,c=e.accordion,s=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,h=e.activeKey,v=e.defaultActiveKey,m=e.onChange,g=e.items,b=_o()(o,s),y=G(Zo([],{value:h,onChange:function(e){return null==m?void 0:m(e)},defaultValue:v,postState:UC}),2),w=y[0],x=y[1];be(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var S=VC(g,u,{prefixCls:o,accordion:c,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:a,onItemClick:function(e){return x((function(){return c?w[0]===e?[]:[e]:w.indexOf(e)>-1?w.filter((function(t){return t!==e})):[].concat(K(w),[e])}))},activeKey:w});return t.createElement("div",pt({ref:n,className:b,style:l,role:c?"tablist":void 0},dl(e,{aria:!0,data:!0})),S)})),YC=Object.assign(GC,{Panel:HC}),KC=YC;YC.Panel;var XC=t.forwardRef(((e,n)=>{const{getPrefixCls:r}=t.useContext(B),{prefixCls:o,className:i,showArrow:a=!0}=e,l=r("collapse",o),c=_o()({[`${l}-no-arrow`]:!a},i);return t.createElement(KC.Panel,Object.assign({ref:n},e,{prefixCls:l,className:c}))}));var QC=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`}}});const ZC=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:h,fontSizeLG:v,lineHeight:m,lineHeightLG:g,marginSM:b,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:S,fontSizeIcon:C,contentPadding:k,fontHeight:E,fontHeightLG:O}=e,_=`${Ve(s)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},sa(e)),{backgroundColor:o,border:_,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:_,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Ve(c)} ${Ve(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:m,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:_,[`& > ${t}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:v,lineHeight:g,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Ve(c)} ${Ve(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},JC=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},ek=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\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:r}}}},tk=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 nk=Zl("Collapse",(e=>{const t=Hl(e,{collapseHeaderPaddingSM:`${Ve(e.paddingXS)} ${Ve(e.paddingSM)}`,collapseHeaderPaddingLG:`${Ve(e.padding)} ${Ve(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[ZC(t),ek(t),tk(t),JC(t),QC(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const rk=t.forwardRef(((e,n)=>{const{getPrefixCls:r,direction:o,collapse:i}=t.useContext(B),{prefixCls:a,className:l,rootClassName:c,style:s,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:h,expandIcon:v}=e,m=Xc((e=>{var t;return null!==(t=null!=f?f:e)&&void 0!==t?t:"middle"})),g=r("collapse",a),b=r(),[y,w,x]=nk(g);const S=t.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),C=null!=v?v:null==i?void 0:i.expandIcon,k=t.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="function"==typeof C?C(e):t.createElement(LC,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return zc(n,(()=>{var e;return{className:_o()(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.className,`${g}-arrow`)}}))}),[C,g]),E=_o()(`${g}-icon-position-${S}`,{[`${g}-borderless`]:!u,[`${g}-rtl`]:"rtl"===o,[`${g}-ghost`]:!!d,[`${g}-${m}`]:"middle"!==m},null==i?void 0:i.className,l,c,w,x),O=Object.assign(Object.assign({},xp(b)),{motionAppear:!1,leavedClassName:`${g}-content-hidden`}),_=t.useMemo((()=>h?Qc(h).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return zc(e,Object.assign(Object.assign({},Tc(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[h]);return y(t.createElement(KC,Object.assign({ref:n,openMotion:O},Tc(e,["rootClassName"]),{expandIcon:k,prefixCls:g,className:E,style:Object.assign(Object.assign({},null==i?void 0:i.style),s)}),_))}));var ok=Object.assign(rk,{Panel:XC});const ik=e=>e.map((e=>(e.colors=e.colors.map(RS),e))),ak=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Gx(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192},lk=e=>{let{label:t}=e;return`panel-${t}`};var ck=e=>{let{prefixCls:n,presets:r,value:o,onChange:i}=e;const[a]=th("ColorPicker"),[,l]=ia(),[c]=Zo(ik(r),{value:ik(r),postState:ik}),s=`${n}-presets`,u=(0,t.useMemo)((()=>c.reduce(((e,t)=>{const{defaultOpen:n=!0}=t;return n&&e.push(lk(t)),e}),[])),[c]),d=c.map((e=>{var r;return{key:lk(e),label:t.createElement("div",{className:`${s}-label`},null==e?void 0:e.label),children:t.createElement("div",{className:`${s}-items`},Array.isArray(null==e?void 0:e.colors)&&(null===(r=e.colors)||void 0===r?void 0:r.length)>0?e.colors.map(((e,r)=>t.createElement(Zx,{key:`preset-${r}-${e.toHexString()}`,color:RS(e).toRgbString(),prefixCls:n,className:_o()(`${s}-color`,{[`${s}-color-checked`]:e.toHexString()===(null==o?void 0:o.toHexString()),[`${s}-color-bright`]:ak(e,l.colorBgElevated)}),onClick:()=>{return t=e,void(null==i||i(t));var t}}))):t.createElement("span",{className:`${s}-empty`},a.presetEmpty))}}));return t.createElement("div",{className:s},t.createElement(ok,{defaultActiveKey:u,ghost:!0,items:d}))};var sk=()=>{const{prefixCls:e,value:n,presets:r,onChange:o}=(0,t.useContext)(MS);return Array.isArray(r)?t.createElement(ck,{value:n,presets:r,prefixCls:e,onChange:o}):null};var uk=e=>{const{prefixCls:n,presets:r,panelRender:o,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:v,format:m,onFormatChange:g,gradientDragging:b,onGradientDragging:y}=e,w=`${n}-inner`,x=t.useMemo((()=>({prefixCls:n,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:v,format:m,onFormatChange:g,gradientDragging:b,onGradientDragging:y})),[n,i,a,l,c,s,u,d,f,p,h,v,m,g,b,y]),S=t.useMemo((()=>({prefixCls:n,value:i,presets:r,onChange:a})),[n,i,r,a]),C=t.createElement("div",{className:`${w}-content`},t.createElement(AC,null),Array.isArray(r)&&t.createElement(vS,null),t.createElement(sk,null));return t.createElement(PS.Provider,{value:x},t.createElement(MS.Provider,{value:S},t.createElement("div",{className:w},"function"==typeof o?o(C,{components:{Picker:AC,Presets:sk}}):C)))},dk=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fk=(0,t.forwardRef)(((e,n)=>{const{color:r,prefixCls:o,open:i,disabled:a,format:l,className:c,showText:s,activeIndex:u}=e,d=dk(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${o}-trigger`,p=`${f}-text`,h=`${p}-cell`,[v]=th("ColorPicker"),m=t.useMemo((()=>{if(!s)return"";if("function"==typeof s)return s(r);if(r.cleared)return v.transparent;if(r.isGradient())return r.getColors().map(((e,n)=>{const r=-1!==u&&u!==n;return t.createElement("span",{key:n,className:_o()(h,r&&`${h}-inactive`)},e.color.toRgbString()," ",e.percent,"%")}));const e=r.toHexString().toUpperCase(),n=TS(r);switch(l){case"rgb":return r.toRgbString();case"hsb":return r.toHsbString();default:return n<100?`${e.slice(0,7)},${n}%`:e}}),[r,l,s,u]),g=(0,t.useMemo)((()=>r.cleared?t.createElement(zS,{prefixCls:o}):t.createElement(Zx,{prefixCls:o,color:r.toCssString()})),[r,o]);return t.createElement("div",Object.assign({ref:n,className:_o()(f,c,{[`${f}-active`]:i,[`${f}-disabled`]:a})},dl(d)),g,s&&t.createElement("div",{className:p},m))}));var pk=fk;const hk=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`});var vk=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none"},hk("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Ve(i)} ${a}`,borderRadius:"inherit"}})}};var mk=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:c,marginXS:s,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:p,lineWidth:h}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Ve(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:s,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:r,lineHeight:Ve(c)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${Ve(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:Ve(e.calc(c).sub(e.calc(h).mul(2)).equal())},[`${n}-input-prefix`]:{color:f}}}}}};var gk=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:s}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:s,height:s,border:`${Ve(c)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}};var bk=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:c,lineWidth:s,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:p,paddingXS:h,fontHeightSM:v}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:v,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Ve(h)} 0`},"&-label":{fontSize:a,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(s).mul(4)).equal(),height:e.calc(i).add(e.calc(s).mul(4)).equal(),position:"absolute",top:e.calc(s).mul(-2).equal(),insetInlineStart:e.calc(s).mul(-2).equal(),borderRadius:u,border:`${Ve(s)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${Ve(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:f,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}};var yk=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:c,marginXS:s}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),f={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[hk(Ve(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${Ve(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":f}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:s,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":f}}}};const wk=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Ve(e.controlOutlineWidth)} ${n}`,outline:0}),xk=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Sk=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:l,red6:c}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${Ve(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},Ck=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},wk(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},wk(e,r,l))}}},kk=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:s,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:Ve(i)}}}},Ek=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:s,borderRadius:u,marginXS:d,marginSM:f,controlHeight:p,controlHeightSM:h,colorBgTextActive:v,colorPickerPresetColorSize:m,colorPickerPreviewSize:g,lineWidth:b,colorBorder:y,paddingXXS:w,fontSize:x,colorPrimaryHover:S,controlOutline:C}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${Ve(f)} 0 ${Ve(d)}`}},[`${n}-panel`]:Object.assign({},gk(e))},yk(e)),vk(e,g)),mk(e)),bk(e)),Sk(e,m,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${Ve(b)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(w).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(w).sub(b)).equal(),fontSize:x,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:Object.assign({},wk(e,o,C)),"&-disabled":{color:l,background:s,cursor:"not-allowed","&:hover":{borderColor:v},[`${n}-trigger-text`]:{color:l}}},Sk(e,h)),vk(e,h)),Ck(e)),kk(e))},xk(e))},Hs(e,{focusElCls:`${n}-trigger-active`})]};var Ok=Zl("ColorPicker",(e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=Hl(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(n).equal()});return[Ek(r)]})),_k=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $k=e=>{const{mode:n,value:r,defaultValue:o,format:i,defaultFormat:a,allowClear:l=!1,presets:c,children:s,trigger:u="click",open:d,disabled:f,placement:p="bottomLeft",arrow:h=!0,panelRender:v,showText:m,style:g,className:b,size:y,rootClassName:w,prefixCls:x,styles:S,disabledAlpha:C=!1,onFormatChange:k,onChange:E,onClear:O,onOpenChange:_,onChangeComplete:$,getPopupContainer:j,autoAdjustOverflow:N=!0,destroyTooltipOnHide:I}=e,P=_k(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:M,direction:R,colorPicker:A}=(0,t.useContext)(B),T=(0,t.useContext)(bo),q=null!=f?f:T,[L,D]=Zo(!1,{value:d,postState:e=>!q&&e,onChange:_}),[z,F]=Zo(i,{value:i,defaultValue:a,onChange:k}),H=M("color-picker",x),[W,V,U,G,Y]=function(e,n,r){const[o]=th("ColorPicker"),[i,a]=Zo(e,{value:n}),[l,c]=t.useState("single"),[s,u]=t.useMemo((()=>{const e=(Array.isArray(r)?r:[r]).filter((e=>e));e.length||e.push("single");const t=new Set(e),n=[],i=(e,r)=>{t.has(e)&&n.push({label:r,value:e})};return i("single",o.singleColor),i("gradient",o.gradientColor),[n,t]}),[r]),[d,f]=t.useState(null),p=Ko((e=>{f(e),a(e)})),h=t.useMemo((()=>{const e=RS(i||"");return e.equals(d)?d:e}),[i,d]),v=t.useMemo((()=>{var e;return u.has(l)?l:null===(e=s[0])||void 0===e?void 0:e.value}),[u,l,s]);return t.useEffect((()=>{c(h.isGradient()?"gradient":"single")}),[h]),[h,p,v,c,s]}(o,r,n),K=(0,t.useMemo)((()=>TS(W)<100),[W]),[X,Q]=t.useState(null),Z=e=>{if($){let t=RS(e);C&&K&&(t=qS(e)),$(t)}},J=(e,t)=>{let n=RS(e);C&&K&&(n=qS(n)),V(n),Q(null),E&&E(n,n.toCssString()),t||Z(n)},[ee,te]=t.useState(0),[ne,re]=t.useState(!1),{status:oe}=t.useContext(dp),{compactSize:ie,compactItemClassnames:ae}=Jc(H,R),le=Xc((e=>{var t;return null!==(t=null!=y?y:ie)&&void 0!==t?t:e})),ce=El(H),[se,ue,de]=Ok(H,ce),fe={[`${H}-rtl`]:R},pe=_o()(w,de,ce,fe),he=_o()(Hm(H,oe),{[`${H}-sm`]:"small"===le,[`${H}-lg`]:"large"===le},ae,null==A?void 0:A.className,pe,b,ue),ve=_o()(H,pe);const me={open:L,trigger:u,placement:p,arrow:h,rootClassName:w,getPopupContainer:j,autoAdjustOverflow:N,destroyTooltipOnHide:I},ge=Object.assign(Object.assign({},null==A?void 0:A.style),g);return se(t.createElement(Lx,Object.assign({style:null==S?void 0:S.popup,overlayInnerStyle:null==S?void 0:S.popupOverlayInner,onOpenChange:e=>{e&&q||D(e)},content:t.createElement(hp,{form:!0},t.createElement(uk,{mode:U,onModeChange:e=>{if(G(e),"single"===e&&W.isGradient())te(0),J(new dS(W.getColors()[0].color)),Q(W);else if("gradient"===e&&!W.isGradient()){const e=K?qS(W):W;J(new dS(X||[{percent:0,color:e},{percent:100,color:e}]))}},modeOptions:Y,prefixCls:H,value:W,allowClear:l,disabled:q,disabledAlpha:C,presets:c,panelRender:v,format:z,onFormatChange:F,onChange:J,onChangeComplete:Z,onClear:O,activeIndex:ee,onActive:te,gradientDragging:ne,onGradientDragging:re})),overlayClassName:ve},me),s||t.createElement(pk,Object.assign({activeIndex:L?ee:-1,open:L,className:he,style:ge,prefixCls:H,disabled:q,showText:m,format:z},P,{color:W}))))};const jk=Lv($k,"color-picker",(e=>e),(e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1})));$k._InternalPanelDoNotUseOrYouWillBeFired=jk;var Nk=$k;function Ik(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pk(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pk(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Mk=function(e){var n,o,i,a,c=e.field.items,s=e.field.items,u=s.help,f=(s.value,s.default_val),p=(e.id,Ik(l(),2)),h=(p[0],p[1]),v=Ik((0,t.useState)("yes"),2),m=v[0],g=v[1],b=(0,t.useRef)(),y=null===(n=e.field)||void 0===n?void 0:n.fieldType,w=null===(o=e.field)||void 0===o?void 0:o.parentId,x=null===(i=e.field)||void 0===i?void 0:i.index,S=null===(a=e.field)||void 0===a?void 0:a.repeaterData;return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",ref:b,children:Object.keys(c).map((function(e,t){var n=c[e].id;return(0,r.jsx)(Nk,{format:"hex",value:c[e].value,defaultValue:c[e].default_val,allowClear:!0,onChange:function(e){"yes"===m&&0==e.metaColor.roundA&&(e.metaColor.roundA=1),g("no"),h({type:d,id:n,value:e.metaColor.roundA?e.toRgbString():"",fieldType:y,parentId:w,repeaterData:S,index:x})},onClear:function(){h({type:d,id:n,value:null!=f?f:"",fieldType:y,parentId:w,repeaterData:S,index:x}),g("no")}},t)}))}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};function Rk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){w(e,t,n[t])}))}return e}var Ak=o(311),Tk=o.n(Ak),qk=o(5556),Lk=o.n(qk),Dk=function(){function e(){we(this,e),w(this,"refs",{})}return Se(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(zk)}}]),e}();function zk(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function Bk(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var Fk={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Hk=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function Wk(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function Vk(e,t){e.style["".concat(Hk,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function Uk(e,t){e.style["".concat(Hk,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function Gk(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function Yk(e,t,n){return Math.max(e,Math.min(n,t))}function Kk(e){return"px"===e.substr(-2)?parseFloat(e):0}function Xk(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function Qk(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function Zk(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function Jk(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:Jk(e.parentNode,t,r)}}function eE(e){var t=e.lockOffset,n=e.width,r=e.height,o=t,i=t,a="px";if("string"==typeof t){var l=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);Tk()(null!==l,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),i=parseFloat(t),a=l[1]}return Tk()(isFinite(o)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===a&&(o=o*n/100,i=i*r/100),{x:o,y:i}}function tE(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:tE(e.parentNode):null}var nE=27,rE=32,oE=37,iE=38,aE=39,lE=40,cE={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function sE(e){return null!=e.sortableHandle}var uE=function(){function e(t,n){we(this,e),this.container=t,this.onScrollCallback=n}return Se(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,o=e.maxTranslate,i=e.width,a=e.height,l={x:0,y:0},c={x:1,y:1},s=10,u=10,d=this.container,f=d.scrollTop,p=d.scrollLeft,h=d.scrollHeight,v=d.scrollWidth,m=0===f,g=h-f-d.clientHeight==0,b=0===p,y=v-p-d.clientWidth==0;n.y>=o.y-a/2&&!g?(l.y=1,c.y=u*Math.abs((o.y-a/2-n.y)/a)):n.x>=o.x-i/2&&!y?(l.x=1,c.x=s*Math.abs((o.x-i/2-n.x)/i)):n.y<=r.y+a/2&&!m?(l.y=-1,c.y=u*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+i/2&&!b&&(l.x=-1,c.x=s*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===l.x&&0===l.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:c.x*l.x,top:c.y*l.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var dE={axis:Lk().oneOf(["x","y","xy"]),contentWindow:Lk().any,disableAutoscroll:Lk().bool,distance:Lk().number,getContainer:Lk().func,getHelperDimensions:Lk().func,helperClass:Lk().string,helperContainer:Lk().oneOfType([Lk().func,"undefined"==typeof HTMLElement?Lk().any:Lk().instanceOf(HTMLElement)]),hideSortableGhost:Lk().bool,keyboardSortingTransitionDuration:Lk().number,lockAxis:Lk().string,lockOffset:Lk().oneOfType([Lk().number,Lk().string,Lk().arrayOf(Lk().oneOfType([Lk().number,Lk().string]))]),lockToContainerEdges:Lk().bool,onSortEnd:Lk().func,onSortMove:Lk().func,onSortOver:Lk().func,onSortStart:Lk().func,pressDelay:Lk().number,pressThreshold:Lk().number,keyCodes:Lk().shape({lift:Lk().arrayOf(Lk().number),drop:Lk().arrayOf(Lk().number),cancel:Lk().arrayOf(Lk().number),up:Lk().arrayOf(Lk().number),down:Lk().arrayOf(Lk().number)}),shouldCancelStart:Lk().func,transitionDuration:Lk().number,updateBeforeSortStart:Lk().func,useDragHandle:Lk().bool,useWindowAsScrollContainer:Lk().bool},fE={lift:[rE],drop:[rE],cancel:[nE],up:[iE,oE],down:[lE,aE]},pE={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:fE,shouldCancelStart:function(e){return-1!==[cE.Input,cE.Textarea,cE.Select,cE.Option,cE.Button].indexOf(e.target.tagName)||!!Gk(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},hE=Object.keys(dE);var vE=(0,t.createContext)({manager:{}});var mE={index:Lk().number.isRequired,collection:Lk().oneOfType([Lk().number,Lk().string]),disabled:Lk().bool},gE=Object.keys(mE);var bE=o(4480),yE=o.n(bE);function wE(e){return wE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wE(e)}function xE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xE(Object(n),!0).forEach((function(t){CE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CE(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=wE(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wE(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kE(e){return function(e){if(Array.isArray(e))return _E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||OE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||OE(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OE(e,t){if(e){if("string"==typeof e)return _E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_E(e,t):void 0}}function _E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $E=function(e){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return r=n=function(n){function r(){var e,n;we(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return w(Wo(Wo(n=Vo(this,(e=Fo(r)).call.apply(e,[this].concat(i))))),"wrappedInstance",(0,t.createRef)()),n}return Bo(r,n),Se(r,[{key:"componentDidMount",value:function(){(0,k.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Tk()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var n=o.withRef?this.wrappedInstance:null;return(0,t.createElement)(e,pt({ref:n},this.props))}}]),r}(t.Component),w(n,"displayName",Xk("sortableHandle",e)),r}((function(){return(0,r.jsx)("span",{className:"handler",children:"::"})})),jE=function(e){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return r=n=function(n){function r(){var e,n;we(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return w(Wo(Wo(n=Vo(this,(e=Fo(r)).call.apply(e,[this].concat(i))))),"wrappedInstance",(0,t.createRef)()),n}return Bo(r,n),Se(r,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,o=(0,k.findDOMNode)(this);o.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return Tk()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var n=o.withRef?this.wrappedInstance:null;return(0,t.createElement)(e,pt({ref:n},Bk(this.props,gE)))}}]),r}(t.Component),w(n,"displayName",Xk("sortableElement",e)),w(n,"contextType",vE),w(n,"propTypes",mE),w(n,"defaultProps",{collection:0}),r}((function(e){e.storedData;var t=e.label,n=e.id,o=e.field,i=EE(l(),2),a=(i[0],i[1]);return(0,r.jsxs)("li",{className:"rtsb-sortable-item",children:[(0,r.jsx)($E,{}),(0,r.jsxs)("label",{htmlFor:"sortable-item-".concat(n),children:[(0,r.jsx)("input",{checked:yE().isArray(o.value)&&o.value.includes(n),id:"sortable-item-".concat(n),type:"checkbox",onChange:function(e){var t=kE(o.value);e.target.checked?t.push(n):t=t.filter((function(e){return e!==n})),a({type:d,id:o.id,value:t})},value:n}),t]})]})})),NE=function(e){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return r=n=function(n){function r(e){var n;we(this,r),w(Wo(Wo(n=Vo(this,Fo(r).call(this,e)))),"state",{}),w(Wo(Wo(n)),"handleStart",(function(e){var t=n.props,r=t.distance,o=t.shouldCancelStart;if(2!==e.button&&!o(e)){n.touched=!0,n.position=Zk(e);var i=Gk(e.target,(function(e){return null!=e.sortableInfo}));if(i&&i.sortableInfo&&n.nodeIsChild(i)&&!n.state.sorting){var a=n.props.useDragHandle,l=i.sortableInfo,c=l.index,s=l.collection;if(l.disabled)return;if(a&&!Gk(e.target,sE))return;n.manager.active={collection:s,index:c},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==cE.Anchor||e.preventDefault(),r||(0===n.props.pressDelay?n.handlePress(e):n.pressTimer=setTimeout((function(){return n.handlePress(e)}),n.props.pressDelay))}}})),w(Wo(Wo(n)),"nodeIsChild",(function(e){return e.sortableInfo.manager===n.manager})),w(Wo(Wo(n)),"handleMove",(function(e){var t=n.props,r=t.distance,o=t.pressThreshold;if(!n.state.sorting&&n.touched&&!n._awaitingUpdateBeforeSortStart){var i=Zk(e),a={x:n.position.x-i.x,y:n.position.y-i.y},l=Math.abs(a.x)+Math.abs(a.y);n.delta=a,r||o&&!(l>=o)?r&&l>=r&&n.manager.isActive()&&n.handlePress(e):(clearTimeout(n.cancelTimer),n.cancelTimer=setTimeout(n.cancel,0))}})),w(Wo(Wo(n)),"handleEnd",(function(){n.touched=!1,n.cancel()})),w(Wo(Wo(n)),"cancel",(function(){var e=n.props.distance;n.state.sorting||(e||clearTimeout(n.pressTimer),n.manager.active=null)})),w(Wo(Wo(n)),"handlePress",(function(e){try{var t=n.manager.getActive(),r=function(){if(t){var r=function(){var t=f.sortableInfo.index,r=function(e){var t=window.getComputedStyle(e);return{bottom:Kk(t.marginBottom),left:Kk(t.marginLeft),right:Kk(t.marginRight),top:Kk(t.marginTop)}}(f),o=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:Kk(t.gridColumnGap),y:Kk(t.gridRowGap)}:{x:0,y:0}}(n.container),s=n.scrollContainer.getBoundingClientRect(),v=a({index:t,node:f,collection:p});if(n.node=f,n.margin=r,n.gridGap=o,n.width=v.width,n.height=v.height,n.marginOffset={x:n.margin.left+n.margin.right+n.gridGap.x,y:Math.max(n.margin.top,n.margin.bottom,n.gridGap.y)},n.boundingClientRect=f.getBoundingClientRect(),n.containerBoundingRect=s,n.index=t,n.newIndex=t,n.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},n.offsetEdge=Jk(f,n.container),n.initialOffset=Zk(h?Rk({},e,{pageX:n.boundingClientRect.left,pageY:n.boundingClientRect.top}):e),n.initialScroll={left:n.scrollContainer.scrollLeft,top:n.scrollContainer.scrollTop},n.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},n.helper=n.helperContainer.appendChild(function(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),r=e.cloneNode(!0);return K(r.querySelectorAll(t)).forEach((function(e,t){"file"!==e.type&&(e.value=n[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===cE.Canvas&&n[t].width>0&&n[t].height>0&&e.getContext("2d").drawImage(n[t],0,0)})),r}(f)),Wk(n.helper,{boxSizing:"border-box",height:"".concat(n.height,"px"),left:"".concat(n.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(n.boundingClientRect.top-r.top,"px"),width:"".concat(n.width,"px")}),h&&n.helper.focus(),c&&(n.sortableGhost=f,Wk(f,{opacity:0,visibility:"hidden"})),n.minTranslate={},n.maxTranslate={},h){var m=d?{top:0,left:0,width:n.contentWindow.innerWidth,height:n.contentWindow.innerHeight}:n.containerBoundingRect,g=m.top,b=m.left,y=m.width,w=g+m.height,x=b+y;n.axis.x&&(n.minTranslate.x=b-n.boundingClientRect.left,n.maxTranslate.x=x-(n.boundingClientRect.left+n.width)),n.axis.y&&(n.minTranslate.y=g-n.boundingClientRect.top,n.maxTranslate.y=w-(n.boundingClientRect.top+n.height))}else n.axis.x&&(n.minTranslate.x=(d?0:s.left)-n.boundingClientRect.left-n.width/2,n.maxTranslate.x=(d?n.contentWindow.innerWidth:s.left+s.width)-n.boundingClientRect.left-n.width/2),n.axis.y&&(n.minTranslate.y=(d?0:s.top)-n.boundingClientRect.top-n.height/2,n.maxTranslate.y=(d?n.contentWindow.innerHeight:s.top+s.height)-n.boundingClientRect.top-n.height/2);l&&l.split(" ").forEach((function(e){return n.helper.classList.add(e)})),n.listenerNode=e.touches?e.target:n.contentWindow,h?(n.listenerNode.addEventListener("wheel",n.handleKeyEnd,!0),n.listenerNode.addEventListener("mousedown",n.handleKeyEnd,!0),n.listenerNode.addEventListener("keydown",n.handleKeyDown)):(Fk.move.forEach((function(e){return n.listenerNode.addEventListener(e,n.handleSortMove,!1)})),Fk.end.forEach((function(e){return n.listenerNode.addEventListener(e,n.handleSortEnd,!1)}))),n.setState({sorting:!0,sortingIndex:t}),u&&u({node:f,index:t,collection:p,isKeySorting:h,nodes:n.manager.getOrderedRefs(),helper:n.helper},e),h&&n.keyMove(0)},o=n.props,i=o.axis,a=o.getHelperDimensions,l=o.helperClass,c=o.hideSortableGhost,s=o.updateBeforeSortStart,u=o.onSortStart,d=o.useWindowAsScrollContainer,f=t.node,p=t.collection,h=n.manager.isKeySorting,v=function(){if("function"==typeof s){n._awaitingUpdateBeforeSortStart=!0;var t=function(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}((function(){var t=f.sortableInfo.index;return Promise.resolve(s({collection:p,index:t,node:f,isKeySorting:h},e)).then((function(){}))}),(function(e,t){if(n._awaitingUpdateBeforeSortStart=!1,e)throw t;return t}));if(t&&t.then)return t.then((function(){}))}}();return v&&v.then?v.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),w(Wo(Wo(n)),"handleSortMove",(function(e){var t=n.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),n.updateHelperPosition(e),n.animateNodes(),n.autoscroll(),t&&t(e)})),w(Wo(Wo(n)),"handleSortEnd",(function(e){var t=n.props,r=t.hideSortableGhost,o=t.onSortEnd,i=n.manager,a=i.active.collection,l=i.isKeySorting,c=n.manager.getOrderedRefs();n.listenerNode&&(l?(n.listenerNode.removeEventListener("wheel",n.handleKeyEnd,!0),n.listenerNode.removeEventListener("mousedown",n.handleKeyEnd,!0),n.listenerNode.removeEventListener("keydown",n.handleKeyDown)):(Fk.move.forEach((function(e){return n.listenerNode.removeEventListener(e,n.handleSortMove)})),Fk.end.forEach((function(e){return n.listenerNode.removeEventListener(e,n.handleSortEnd)})))),n.helper.parentNode.removeChild(n.helper),r&&n.sortableGhost&&Wk(n.sortableGhost,{opacity:"",visibility:""});for(var s=0,u=c.length;s<u;s++){var d=c[s],f=d.node;d.edgeOffset=null,d.boundingClientRect=null,Vk(f,null),Uk(f,null),d.translate=null}n.autoScroller.clear(),n.manager.active=null,n.manager.isKeySorting=!1,n.setState({sorting:!1,sortingIndex:null}),"function"==typeof o&&o({collection:a,newIndex:n.newIndex,oldIndex:n.index,isKeySorting:l,nodes:c},e),n.touched=!1})),w(Wo(Wo(n)),"autoscroll",(function(){var e=n.props.disableAutoscroll,t=n.manager.isKeySorting;if(e)n.autoScroller.clear();else{if(t){var r=Rk({},n.translate),o=0,i=0;return n.axis.x&&(r.x=Math.min(n.maxTranslate.x,Math.max(n.minTranslate.x,n.translate.x)),o=n.translate.x-r.x),n.axis.y&&(r.y=Math.min(n.maxTranslate.y,Math.max(n.minTranslate.y,n.translate.y)),i=n.translate.y-r.y),n.translate=r,Vk(n.helper,n.translate),n.scrollContainer.scrollLeft+=o,void(n.scrollContainer.scrollTop+=i)}n.autoScroller.update({height:n.height,maxTranslate:n.maxTranslate,minTranslate:n.minTranslate,translate:n.translate,width:n.width})}})),w(Wo(Wo(n)),"onAutoScroll",(function(e){n.translate.x+=e.left,n.translate.y+=e.top,n.animateNodes()})),w(Wo(Wo(n)),"handleKeyDown",(function(e){var t=e.keyCode,r=n.props,o=r.shouldCancelStart,i=r.keyCodes,a=Rk({},fE,void 0===i?{}:i);n.manager.active&&!n.manager.isKeySorting||!(n.manager.active||a.lift.includes(t)&&!o(e)&&n.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),a.lift.includes(t)&&!n.manager.active?n.keyLift(e):a.drop.includes(t)&&n.manager.active?n.keyDrop(e):a.cancel.includes(t)?(n.newIndex=n.manager.active.index,n.keyDrop(e)):a.up.includes(t)?n.keyMove(-1):a.down.includes(t)&&n.keyMove(1))})),w(Wo(Wo(n)),"keyLift",(function(e){var t=e.target,r=Gk(t,(function(e){return null!=e.sortableInfo})).sortableInfo,o=r.index,i=r.collection;n.initialFocusedNode=t,n.manager.isKeySorting=!0,n.manager.active={index:o,collection:i},n.handlePress(e)})),w(Wo(Wo(n)),"keyMove",(function(e){var t=n.manager.getOrderedRefs(),r=t[t.length-1].node.sortableInfo.index,o=n.newIndex+e,i=n.newIndex;if(!(o<0||o>r)){n.prevIndex=i,n.newIndex=o;var a=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(n.newIndex,n.prevIndex,n.index),l=t.find((function(e){return e.node.sortableInfo.index===a})),c=l.node,s=n.containerScrollDelta,u=l.boundingClientRect||Qk(c,s),d=l.translate||{x:0,y:0},f=u.top+d.y-s.top,p=u.left+d.x-s.left,h=i<o,v=h&&n.axis.x?c.offsetWidth-n.width:0,m=h&&n.axis.y?c.offsetHeight-n.height:0;n.handleSortMove({pageX:p+v,pageY:f+m,ignoreTransition:0===e})}})),w(Wo(Wo(n)),"keyDrop",(function(e){n.handleSortEnd(e),n.initialFocusedNode&&n.initialFocusedNode.focus()})),w(Wo(Wo(n)),"handleKeyEnd",(function(e){n.manager.active&&n.keyDrop(e)})),w(Wo(Wo(n)),"isValidSortingTarget",(function(e){var t=n.props.useDragHandle,r=e.target,o=Gk(r,(function(e){return null!=e.sortableInfo}));return o&&o.sortableInfo&&!o.sortableInfo.disabled&&(t?sE(r):r.sortableInfo)}));var o=new Dk;return function(e){Tk()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),n.manager=o,n.wrappedInstance=(0,t.createRef)(),n.sortableContextValue={manager:o},n.events={end:n.handleEnd,move:n.handleMove,start:n.handleStart},n}return Bo(r,n),Se(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:tE(e.container)||e.container,e.autoScroller=new uE(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return Fk[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return Fk[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,o=t.lockToContainerEdges,i=t.transitionDuration,a=t.keyboardSortingTransitionDuration,l=void 0===a?i:a,c=this.manager.isKeySorting,s=e.ignoreTransition,u=Zk(e),d={x:u.x-this.initialOffset.x,y:u.y-this.initialOffset.y};if(d.y-=window.pageYOffset-this.initialWindowScroll.top,d.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=d,o){var f=function(e){var t=e.height,n=e.width,r=e.lockOffset,o=Array.isArray(r)?r:[r,r];Tk()(2===o.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var i=G(o,2),a=i[0],l=i[1];return[eE({height:t,lockOffset:a,width:n}),eE({height:t,lockOffset:l,width:n})]}({height:this.height,lockOffset:r,width:this.width}),p=G(f,2),h=p[0],v=p[1],m={x:this.width/2-h.x,y:this.height/2-h.y},g={x:this.width/2-v.x,y:this.height/2-v.y};d.x=Yk(this.minTranslate.x+m.x,this.maxTranslate.x-g.x,d.x),d.y=Yk(this.minTranslate.y+m.y,this.maxTranslate.y-g.y,d.y)}"x"===n?d.y=0:"y"===n&&(d.x=0),c&&l&&!s&&Uk(this.helper,l),Vk(this.helper,d)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,o=this.containerScrollDelta,i=this.windowScrollDelta,a=this.manager.getOrderedRefs(),l=this.offsetEdge.left+this.translate.x+o.left,c=this.offsetEdge.top+this.translate.y+o.top,s=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var d=0,f=a.length;d<f;d++){var p=a[d].node,h=p.sortableInfo.index,v=p.offsetWidth,m=p.offsetHeight,g={height:this.height>m?m/2:this.height/2,width:this.width>v?v/2:this.width/2},b=s&&h>this.index&&h<=u,y=s&&h<this.index&&h>=u,w={x:0,y:0},x=a[d].edgeOffset;x||(x=Jk(p,this.container),a[d].edgeOffset=x,s&&(a[d].boundingClientRect=Qk(p,o)));var S=d<a.length-1&&a[d+1],C=d>0&&a[d-1];S&&!S.edgeOffset&&(S.edgeOffset=Jk(S.node,this.container),s&&(S.boundingClientRect=Qk(S.node,o))),h!==this.index?(t&&Uk(p,t),this.axis.x?this.axis.y?y||h<this.index&&(l+i.left-g.width<=x.left&&c+i.top<=x.top+g.height||c+i.top+g.height<=x.top)?(w.x=this.width+this.marginOffset.x,x.left+w.x>this.containerBoundingRect.width-g.width&&S&&(w.x=S.edgeOffset.left-x.left,w.y=S.edgeOffset.top-x.top),null===this.newIndex&&(this.newIndex=h)):(b||h>this.index&&(l+i.left+g.width>=x.left&&c+i.top+g.height>=x.top||c+i.top+g.height>=x.top+m))&&(w.x=-(this.width+this.marginOffset.x),x.left+w.x<this.containerBoundingRect.left+g.width&&C&&(w.x=C.edgeOffset.left-x.left,w.y=C.edgeOffset.top-x.top),this.newIndex=h):b||h>this.index&&l+i.left+g.width>=x.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=h):(y||h<this.index&&l+i.left<=x.left+g.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=h)):this.axis.y&&(b||h>this.index&&c+i.top+g.height>=x.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=h):(y||h<this.index&&c+i.top<=x.top+g.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=h))),Vk(p,w),a[d].translate=w):n&&(this.sortableGhost=p,Wk(p,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),s&&(this.newIndex=u);var k=s?this.prevIndex:u;r&&this.newIndex!==k&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:k,isKeySorting:s,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return Tk()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,k.findDOMNode)(this):e(o.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var n=o.withRef?this.wrappedInstance:null;return(0,t.createElement)(vE.Provider,{value:this.sortableContextValue},(0,t.createElement)(e,pt({ref:n},Bk(this.props,hE))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),r}(t.Component),w(n,"displayName",Xk("sortableList",e)),w(n,"defaultProps",pE),w(n,"propTypes",dE),r}((function(e){var t=e.items,n=e.field;return(0,r.jsx)("ul",{className:"rtsb-sortable-wrap",children:Object.keys(t).map((function(e,o){return(0,r.jsx)(jE,{field:n,index:o,id:e,label:t[e]},"item-".concat(e))}))})})),IE=function(e){var n=e.field,o=n.options,i=n.value,a=n.id,c=EE((0,t.useState)(o),2),s=c[0],u=c[1],f=EE(l(),2),p=(f[0],f[1]);(0,t.useEffect)((function(){var e=SE({},o),t={};return i.length&&i.map((function(n){t[n]=e[n],delete e[n]})),t=SE(SE({},t),e),u(t),function(){}}),[]);return(0,r.jsxs)("div",{className:"rtsb-field sortable",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsx)("div",{className:"rtsb-field__content",children:(0,r.jsx)(NE,{lockAxis:"y",helperClass:"draggable-item",field:e.field,items:s,onSortEnd:function(e){var t=e.oldIndex,n=e.newIndex;if(t!==n){var r=function(e,t,n){return function(e,t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(r,0,o)}}(e=[...e],t,n),e}(Object.keys(s),t,n),o={};r.map((function(e){o[e]=s[e]}));var l=Object.keys(o).filter((function(e){return i.includes(e)}));p({type:d,id:a,value:l}),u(o)}}})})]})};function PE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ME(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ME(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ME(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var RE=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.default_val,p=e.id,h=PE(l(),2),v=(h[0],h[1]),m=PE((0,t.useState)("yes"),2),g=m[0],b=m[1],y=(0,t.useRef)(),w=null===(n=e.field)||void 0===n?void 0:n.fieldType,x=null===(o=e.field)||void 0===o?void 0:o.parentId,S=null===(i=e.field)||void 0===i?void 0:i.index,C=null===(a=e.field)||void 0===a?void 0:a.repeaterData;return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",ref:y,children:(0,r.jsx)(Nk,{allowClear:!0,format:"hex",defaultValue:u||f||"#0066ff",onChangeComplete:function(e){"yes"===g&&0==e.metaColor.roundA&&(e.metaColor.roundA=1),b("no"),v({type:d,id:p,value:e.toHexString(),fieldType:w,parentId:x,repeaterData:C,index:S})},onClear:function(){v({type:d,id:p,value:null!=f?f:"",fieldType:w,parentId:x,repeaterData:C,index:S}),setTimeout((function(){if(f){var e=y.current.querySelector(".ant-color-picker-clear");e.classList.add("rtrb-color-picker-reset"),e.style.backgroundColor=f}}),200),b("no")}})}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})},AE=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],TE=(0,t.forwardRef)((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,c=e.disabled,s=e.defaultChecked,u=void 0!==s&&s,d=e.type,f=void 0===d?"checkbox":d,p=e.title,h=e.onChange,v=To(e,AE),m=(0,t.useRef)(null),g=(0,t.useRef)(null),b=G(Zo(u,{value:l}),2),y=b[0],x=b[1];(0,t.useImperativeHandle)(n,(function(){return{focus:function(e){var t;null===(t=m.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=m.current)||void 0===e||e.blur()},input:m.current,nativeElement:g.current}}));var C=_o()(o,i,w(w({},"".concat(o,"-checked"),y),"".concat(o,"-disabled"),c));return t.createElement("span",{className:C,title:p,style:a,ref:g},t.createElement("input",pt({},v,{className:"".concat(o,"-input"),ref:m,onChange:function(t){c||("checked"in e||x(t.target.checked),null==h||h({target:S(S({},e),{},{type:f,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:c,checked:!!y,type:f})),t.createElement("span",{className:"".concat(o,"-inner")}))})),qE=TE;var LE=t.createContext(null);const DE=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},sa(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},sa(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},sa(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},da(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Ve(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function zE(e,t){const n=Hl(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[DE(n)]}var BE=Zl("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[zE(n,e)]})),FE=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const HE=(e,n)=>{var r;const{prefixCls:o,className:i,rootClassName:a,children:l,indeterminate:c=!1,style:s,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,h=FE(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:m,checkbox:g}=t.useContext(B),b=t.useContext(LE),{isFormItemInput:y}=t.useContext(dp),w=t.useContext(bo),x=null!==(r=(null==b?void 0:b.disabled)||p)&&void 0!==r?r:w,S=t.useRef(h.value);t.useEffect((()=>{null==b||b.registerValue(h.value)}),[]),t.useEffect((()=>{if(!f)return h.value!==S.current&&(null==b||b.cancelValue(S.current),null==b||b.registerValue(h.value),S.current=h.value),()=>null==b?void 0:b.cancelValue(h.value)}),[h.value]);const C=v("checkbox",o),k=El(C),[E,O,_]=BE(C,k),$=Object.assign({},h);b&&!f&&($.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:l,value:h.value})},$.name=b.name,$.checked=b.value.includes(h.value));const j=_o()(`${C}-wrapper`,{[`${C}-rtl`]:"rtl"===m,[`${C}-wrapper-checked`]:$.checked,[`${C}-wrapper-disabled`]:x,[`${C}-wrapper-in-form-item`]:y},null==g?void 0:g.className,i,a,_,k,O),N=_o()({[`${C}-indeterminate`]:c},Hc,O),I=c?"mixed":void 0;return E(t.createElement(Kc,{component:"Checkbox",disabled:x},t.createElement("label",{className:j,style:Object.assign(Object.assign({},null==g?void 0:g.style),s),onMouseEnter:u,onMouseLeave:d},t.createElement(qE,Object.assign({"aria-checked":I},$,{prefixCls:C,className:N,disabled:x,ref:n})),void 0!==l&&t.createElement("span",null,l))))};var WE=t.forwardRef(HE),VE=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const UE=t.forwardRef(((e,n)=>{const{defaultValue:r,children:o,options:i=[],prefixCls:a,className:l,rootClassName:c,style:s,onChange:u}=e,d=VE(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=t.useContext(B),[h,v]=t.useState(d.value||r||[]),[m,g]=t.useState([]);t.useEffect((()=>{"value"in d&&v(d.value||[])}),[d.value]);const b=t.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),y=f("checkbox",a),w=`${y}-group`,x=El(y),[S,C,k]=BE(y,x),E=Tc(d,["value","disabled"]),O=i.length?b.map((e=>t.createElement(WE,{prefixCls:y,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:h.includes(e.value),onChange:e.onChange,className:`${w}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):o,_={toggleOption:e=>{const t=h.indexOf(e.value),n=K(h);-1===t?n.push(e.value):n.splice(t,1),"value"in d||v(n),null==u||u(n.filter((e=>m.includes(e))).sort(((e,t)=>b.findIndex((t=>t.value===e))-b.findIndex((e=>e.value===t)))))},value:h,disabled:d.disabled,name:d.name,registerValue:e=>{g((t=>[].concat(K(t),[e])))},cancelValue:e=>{g((t=>t.filter((t=>t!==e))))}},$=_o()(w,{[`${w}-rtl`]:"rtl"===p},l,c,k,x,C);return S(t.createElement("div",Object.assign({className:$,style:s},E,{ref:n}),t.createElement(LE.Provider,{value:_},O)))}));var GE=UE;const YE=WE;function KE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return XE(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XE(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}YE.Group=GE,YE.__ANT_CHECKBOX=!0;var QE=YE.Group,ZE=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=(c.empty,c.searchable,c.orientation),h=KE(l(),2),v=(h[0],h[1]),m=null===(t=e.field)||void 0===t?void 0:t.fieldType,g=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(o=e.field)||void 0===o?void 0:o.index,y=null===(i=e.field)||void 0===i?void 0:i.repeaterData;return(0,r.jsxs)("div",{className:"rtsb-field checkbox-group-wrap field-".concat(a),children:[(0,r.jsx)(Jv,{field:c}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(QE,{className:"rtsb-checkbox-group ".concat(p||"vertical"),options:f,value:s,onChange:function(e){v({type:d,id:a,value:e,fieldType:m,parentId:g,repeaterData:y,index:b})}})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},JE=o(4353),eO=o.n(JE),tO=o(6986),nO=o.n(tO),rO=o(1840),oO=o.n(rO),iO=o(8134),aO=o.n(iO),lO=o(8623),cO=o.n(lO),sO=o(7375),uO=o.n(sO),dO=o(445),fO=o.n(dO);eO().extend(fO()),eO().extend(uO()),eO().extend(nO()),eO().extend(oO()),eO().extend(aO()),eO().extend(cO()),eO().extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var pO={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},hO=function(e){return pO[e]||e.split("_")[0]},vO=function(){ge(!1,"Not match any format. Please help to fire a issue about this.")},mO={getNow:function(){return eO()()},getFixedDate:function(e){return eO()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return eO()().locale(hO(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(hO(e)).weekday(0)},getWeek:function(e,t){return t.locale(hO(e)).week()},getShortWeekDays:function(e){return eO()().locale(hO(e)).localeData().weekdaysMin()},getShortMonths:function(e){return eO()().locale(hO(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(hO(e)).format(n)},parse:function(e,t,n){for(var r=hO(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var l=a.split("-")[0],c=a.split("-")[1],s=eO()(l,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var d=s.add(u,"week");if(d.format("Wo")===c)return d}return vO(),null}var f=eO()(a,i,!0).locale(r);if(f.isValid())return f}return t&&vO(),null}}},gO=mO,bO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},yO=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:bO}))};var wO=t.forwardRef(yO),xO={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},SO=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:xO}))};var CO=t.forwardRef(SO),kO={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},EO=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:kO}))};var OO=t.forwardRef(EO);new Map;function _O(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}function $O(e,t){var n=_O(e,t),r=(null==n?void 0:n.toLowerCase().endsWith("right"))?"insetInlineEnd":"insetInlineStart";return t&&(r=["insetInlineStart","insetInlineEnd"].find((function(e){return e!==r}))),r}var jO=t.createContext(null),NO={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};var IO=function(e){var n=e.popupElement,r=e.popupStyle,o=e.popupClassName,i=e.popupAlign,a=e.transitionName,l=e.getPopupContainer,c=e.children,s=e.range,u=e.placement,d=e.builtinPlacements,f=void 0===d?NO:d,p=e.direction,h=e.visible,v=e.onClose,m=t.useContext(jO).prefixCls,g="".concat(m,"-dropdown"),b=_O(u,"rtl"===p);return t.createElement(Od,{showAction:[],hideAction:["click"],popupPlacement:b,builtinPlacements:f,prefixCls:g,popupTransitionName:a,popup:n,popupAlign:i,popupVisible:h,popupClassName:_o()(o,w(w({},"".concat(g,"-range"),s),"".concat(g,"-rtl"),"rtl"===p)),popupStyle:r,stretch:"minWidth",getPopupContainer:l,onPopupVisibleChange:function(e){e||v()}},c)};function PO(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function MO(e){return null==e?[]:Array.isArray(e)?e:[e]}function RO(e,t,n){var r=K(e);return r[t]=n,r}function AO(e,t){var n={};return(t||Object.keys(e)).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n}function TO(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function qO(e,t,n){var r=void 0!==n?n:t[t.length-1],o=t.find((function(t){return e[t]}));return r!==o?e[o]:void 0}function LO(e){return AO(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function DO(e,n,r,o){var i=t.useMemo((function(){return e||function(e,t){var o=e;return n&&"date"===t.type?n(o,t.today):r&&"month"===t.type?r(o,t.locale):t.originNode}}),[e,r,n]),a=t.useCallback((function(e,t){return i(e,S(S({},t),{},{range:o}))}),[i,o]);return a}function zO(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=G(t.useState([!1,!1]),2),i=o[0],a=o[1],l=t.useMemo((function(){return i.map((function(t,o){if(t)return!0;var i=e[o];return!!i&&(!r[o]&&!i||!(!i||!n(i,{activeIndex:o})))}))}),[e,i,n,r]);return[l,function(e,t){a((function(n){return RO(n,t,e)}))}]}function BO(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function FO(e,n){var r=n.showHour,o=n.showMinute,i=n.showSecond,a=n.showMillisecond,l=n.use12Hours;return t.useMemo((function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,h=e.cellYearFormat,v=e.cellQuarterFormat,m=e.dayFormat,g=e.cellDateFormat,b=BO(t,n,r,o,i);return S(S({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:g||m||"D"})}(e,r,o,i,a,l)}),[e,r,o,i,a,l])}function HO(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var WO=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function VO(e){return e&&"string"==typeof e}function UO(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function GO(e,t,n,r,o){var i=t,a=n,l=r;if(e||i||a||l||o){if(e){var c,s,u,d=[i,a,l].some((function(e){return!1===e})),f=[i,a,l].some((function(e){return!0===e})),p=!!d||!f;i=null!==(c=i)&&void 0!==c?c:p,a=null!==(s=a)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else i=!0,a=!0,l=!0;return[i,a,l,o]}function YO(e){var t=e.showTime,n=function(e){var t=AO(e,WO),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===v(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=G(n,2),o=r[0],i=r[1],a=t&&"object"===v(t)?t:{},l=S(S({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),c=l.showMillisecond,s=l.showHour,u=l.showMinute,d=l.showSecond,f=G(GO(UO(s,u,d,c),s,u,d,c),3);return s=f[0],u=f[1],d=f[2],[l,S(S({},l),{},{showHour:s,showMinute:u,showSecond:d,showMillisecond:c}),l.format,i]}function KO(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=TO(e,o,null),l=[t,n],c=0;c<l.length;c+=1){var s=MO(l[c])[0];if(VO(s)){a=s;break}}var u=i.showHour,d=i.showMinute,f=i.showSecond,p=i.showMillisecond,h=HO(a,["a","A","LT","LLL","LTS"],i.use12Hours),v=UO(u,d,f,p);v||(u=HO(a,["H","h","k","LT","LLL"]),d=HO(a,["m","LT","LLL"]),f=HO(a,["s","LTS"]),p=HO(a,["SSS"]));var m=G(GO(v,u,d,f,p),3);u=m[0],d=m[1],f=m[2];var g=t||BO(u,d,f,p,h);return S(S({},i),{},{format:g,showHour:u,showMinute:d,showSecond:f,showMillisecond:p,use12Hours:h})}return null}function XO(e,n,r){return!1===n?null:(n&&"object"===v(n)?n:{}).clearIcon||r||t.createElement("span",{className:"".concat(e,"-clear-btn")})}var QO=7;function ZO(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function JO(e,t,n){return ZO(t,n,(function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}))}function e_(e,t,n){return ZO(t,n,(function(){return e.getYear(t)===e.getYear(n)}))}function t_(e,t){return Math.floor(e.getMonth(t)/3)+1}function n_(e,t,n){return ZO(t,n,(function(){return e_(e,t,n)&&e.getMonth(t)===e.getMonth(n)}))}function r_(e,t,n){return ZO(t,n,(function(){return e_(e,t,n)&&n_(e,t,n)&&e.getDate(t)===e.getDate(n)}))}function o_(e,t,n){return ZO(t,n,(function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}))}function i_(e,t,n){return ZO(t,n,(function(){return r_(e,t,n)&&o_(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)}))}function a_(e,t,n,r){return ZO(n,r,(function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return e_(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}))}function l_(e,t,n,r,o){switch(o){case"date":return r_(e,n,r);case"week":return a_(e,t.locale,n,r);case"month":return n_(e,n,r);case"quarter":return function(e,t,n){return ZO(t,n,(function(){return e_(e,t,n)&&t_(e,t)===t_(e,n)}))}(e,n,r);case"year":return e_(e,n,r);case"decade":return JO(e,n,r);case"time":return o_(e,n,r);default:return i_(e,n,r)}}function c_(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function s_(e,t,n,r,o){return!!l_(e,t,n,r,o)||e.isAfter(n,r)}function u_(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"==typeof o?o(e):n.locale.format(r.locale,e,o):""}function d_(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((function(t,i){r=n?e[t](r,e[o[i]](n)):e[t](r,0)})),r}function f_(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.useMemo((function(){var t=e?MO(e):e;return n&&t&&(t[1]=t[1]||t[0]),t}),[e,n]);return r}function p_(e,n){var r=e.generateConfig,o=e.locale,i=e.picker,a=void 0===i?"date":i,l=e.prefixCls,c=void 0===l?"rc-picker":l,s=e.styles,u=void 0===s?{}:s,d=e.classNames,f=void 0===d?{}:d,p=e.order,h=void 0===p||p,m=e.components,g=void 0===m?{}:m,b=e.inputRender,y=e.allowClear,w=e.clearIcon,x=e.needConfirm,C=e.multiple,k=e.format,E=e.inputReadOnly,O=e.disabledDate,_=e.minDate,$=e.maxDate,j=e.showTime,N=e.value,I=e.defaultValue,P=e.pickerValue,M=e.defaultPickerValue,R=f_(N),A=f_(I),T=f_(P),q=f_(M),L="date"===a&&j?"datetime":a,D="time"===L||"datetime"===L,z=D||C,B=null!=x?x:D,F=G(YO(e),4),H=F[0],W=F[1],V=F[2],U=F[3],Y=FO(o,W),K=t.useMemo((function(){return KO(L,V,U,H,Y)}),[L,V,U,H,Y]);var X=t.useMemo((function(){return S(S({},e),{},{prefixCls:c,locale:Y,picker:a,styles:u,classNames:f,order:h,components:S({input:b},g),clearIcon:XO(c,y,w),showTime:K,value:R,defaultValue:A,pickerValue:T,defaultPickerValue:q},null==n?void 0:n())}),[e]),Q=function(e,n,r){return t.useMemo((function(){var t=MO(TO(e,n,r)),o=t[0],i="object"===v(o)&&"mask"===o.type?o.format:null;return[t.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),i]}),[e,n,r])}(L,Y,k),Z=G(Q,2),J=Z[0],ee=Z[1],te=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(J,E,C),ne=function(e,t,n,r,o){var i=Ko((function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||l_(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||l_(e,t,o,i,a.type))}));return i}(r,o,O,_,$),re=function(e,t,n,r){var o=Ko((function(o,i){var a=S({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var l,c=i&&1===i.activeIndex?"end":"start",s=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,c,{from:a.from}))||{},u=s.disabledHours,d=s.disabledMinutes,f=s.disabledSeconds,p=s.disabledMilliseconds,h=r.disabledHours,v=r.disabledMinutes,m=r.disabledSeconds,g=u||h,b=d||v,y=f||m,w=e.getHour(o),x=e.getMinute(o),C=e.getSecond(o),k=e.getMillisecond(o);if(g&&g().includes(w))return!0;if(b&&b(w).includes(x))return!0;if(y&&y(w,x).includes(C))return!0;if(p&&p(w,x,C).includes(k))return!0}return!1}));return o}(r,a,ne,K);return[t.useMemo((function(){return S(S({},X),{},{needConfirm:B,inputReadOnly:te,disabledDate:ne})}),[X,B,te,ne]),L,z,J,ee,re]}function h_(e,n){var r=arguments.length>3?arguments[3]:void 0,o=function(e,n,r){var o=G(Zo(n,{value:e}),2),i=o[0],a=o[1],l=t.useRef(e),c=t.useRef(),s=function(){ji.cancel(c.current)},u=Ko((function(){a(l.current),r&&i!==l.current&&r(l.current)})),d=Ko((function(e,t){s(),l.current=e,e||t?u():c.current=ji(u)}));return t.useEffect((function(){return s}),[]),[i,d]}(!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&e,n||!1,r),i=G(o,2),a=i[0],l=i[1];return[a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!a||l(e,t.force)}]}function v_(e){var n=t.useRef();return t.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=n.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var t;null===(t=n.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=n.current)||void 0===e||e.blur()}}})),n}function m_(e,n){return t.useMemo((function(){return e||(n?(be(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map((function(e){var t=G(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,n])}function g_(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=t.useRef(n);o.current=n,Ze((function(){if(!e){var t=ji((function(){o.current(e)}),r);return function(){ji.cancel(t)}}o.current(e)}),[e])}function b_(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=G(t.useState(0),2),i=o[0],a=o[1],l=G(t.useState(!1),2),c=l[0],s=l[1],u=t.useRef([]),d=t.useRef(null);return g_(c||r,(function(){c||(u.current=[])})),t.useEffect((function(){c&&u.current.push(i)}),[c,i]),[c,function(e){s(e)},function(e){return e&&(d.current=e),d.current},i,a,function(t){var r=u.current,o=new Set(r.filter((function(e){return t[e]||n[e]}))),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},u.current]}function y_(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var w_=[];function x_(e,n,r,o,i,a,l,c){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:w_,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:w_,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,h="time"===l,v=a||0,m=function(t){var n=e.getNow();return h&&(n=d_(e,n)),s[t]||r[t]||n},g=G(arguments.length>9&&void 0!==arguments[9]?arguments[9]:w_,2),b=g[0],y=g[1],w=G(Zo((function(){return m(0)}),{value:b}),2),x=w[0],S=w[1],C=G(Zo((function(){return m(1)}),{value:y}),2),k=C[0],E=C[1],O=t.useMemo((function(){var t=[x,k][v];return h?t:d_(e,t,u[v])}),[h,x,k,v,e,u]),_=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[S,E][v])(t);var i=[x,k];i[v]=t,!d||l_(e,n,x,i[0],l)&&l_(e,n,k,i[1],l)||d(i,{source:r,range:1===v?"end":"start",mode:o})},$=t.useRef(null);return Je((function(){if(i&&!s[v]){var t=h?null:e.getNow();if(null!==$.current&&$.current!==v?t=[x,k][1^v]:r[v]?t=0===v?r[0]:function(t,r){if(c){var o={date:"month",week:"month",month:"year",quarter:"year"}[l];if(o&&!l_(e,n,t,r,o))return y_(e,l,r,-1);if("year"===l&&t&&Math.floor(e.getYear(t)/10)!==Math.floor(e.getYear(r)/10))return y_(e,l,r,-1)}return r}(r[0],r[1]):r[1^v]&&(t=r[1^v]),t){f&&e.isAfter(f,t)&&(t=f);var o=c?y_(e,l,t,1):t;p&&e.isAfter(o,p)&&(t=c?y_(e,l,p,-1):p),_(t,"reset")}}}),[i,v,r[v]]),t.useEffect((function(){$.current=i?v:null}),[i,v]),Je((function(){i&&s&&s[v]&&_(s[v],"reset")}),[i,v]),[O,_]}function S_(e,n){var r=t.useRef(e),o=G(t.useState({}),2)[1],i=function(e){return e&&void 0!==n?n:r.current};return[i,function(e){r.current=e,o({})},i(!0)]}var C_=[];function k_(e,t,n){return[function(r){return r.map((function(r){return u_(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i<r;i+=1){var a=t[i]||null,l=n[i]||null;if(a!==l&&!i_(e,a,l)){o=i;break}}return[o<0,0!==o]}]}function E_(e,t){return K(e).sort((function(e,n){return t.isAfter(e,n)?1:-1}))}function O_(e,n,r,o,i,a,l,c,s){var u=G(Zo(a,{value:l}),2),d=u[0],f=u[1],p=d||C_,h=function(e){var n=G(S_(e),2),r=n[0],o=n[1],i=Ko((function(){o(e)}));return t.useEffect((function(){i()}),[e]),[r,o]}(p),v=G(h,2),m=v[0],g=v[1],b=G(k_(e,n,r),2),y=b[0],w=b[1],x=Ko((function(t){var n=K(t);if(o)for(var r=0;r<2;r+=1)n[r]=n[r]||null;else i&&(n=E_(n.filter((function(e){return e})),e));var a=G(w(m(),n),2),l=a[0],s=a[1];if(!l&&(g(n),c)){var u=y(n);c(n,u,{range:s?"end":"start"})}}));return[p,f,m,x,function(){s&&s(m())}]}function __(e,n,r,o,i,a,l,c,s,u){var d=e.generateConfig,f=e.locale,p=e.picker,h=e.onChange,v=e.allowEmpty,m=e.order,g=!a.some((function(e){return e}))&&m,b=G(k_(d,f,l),2),y=b[0],w=b[1],x=G(S_(n),2),S=x[0],C=x[1],k=Ko((function(){C(n)}));t.useEffect((function(){k()}),[n]);var E=Ko((function(e){var t=null===e,o=K(e||S());if(t)for(var l=Math.max(a.length,o.length),c=0;c<l;c+=1)a[c]||(o[c]=null);g&&o[0]&&o[1]&&(o=E_(o,d)),i(o);var s=G(o,2),b=s[0],x=s[1],C=!b,k=!x,E=!v||(!C||v[0])&&(!k||v[1]),O=!m||C||k||l_(d,f,b,x,p)||d.isAfter(x,b),_=!(b&&u(b,{activeIndex:0})||x&&u(x,{from:b,activeIndex:1})),$=t||E&&O&&_;if($){r(o);var j=G(w(o,n),1)[0];h&&!j&&h(t&&o.every((function(e){return!e}))?null:o,y(o))}return $})),O=Ko((function(e,t){var n=RO(S(),e,o()[e]);C(n),t&&E()})),_=!c&&!s;return g_(!_,(function(){_&&(E(),i(n),k())}),2),[O,E]}function $_(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function j_(){return[]}function N_(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||a.push({label:PO(c,i),value:c,disabled:s})}return a}function I_(e){var n=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=r.use12Hours,i=r.hourStep,a=void 0===i?1:i,l=r.minuteStep,c=void 0===l?1:l,s=r.secondStep,u=void 0===s?1:s,d=r.millisecondStep,f=void 0===d?100:d,p=r.hideDisabledOptions,h=r.disabledTime,v=r.disabledHours,m=r.disabledMinutes,g=r.disabledSeconds,b=t.useMemo((function(){return n||e.getNow()}),[n,e]),y=t.useCallback((function(e){var t=(null==h?void 0:h(e))||{};return[t.disabledHours||v||j_,t.disabledMinutes||m||j_,t.disabledSeconds||g||j_,t.disabledMilliseconds||j_]}),[h,v,m,g]),w=G(t.useMemo((function(){return y(b)}),[b,y]),4),x=w[0],C=w[1],k=w[2],E=w[3],O=t.useCallback((function(e,t,n,r){var i=N_(0,23,a,p,e()),l=o?i.map((function(e){return S(S({},e),{},{label:PO(e.value%12||12,2)})})):i;return[l,function(e){return N_(0,59,c,p,t(e))},function(e,t){return N_(0,59,u,p,n(e,t))},function(e,t,n){return N_(0,999,f,p,r(e,t,n),3)}]}),[p,a,o,f,c,u]),_=G(t.useMemo((function(){return O(x,C,k,E)}),[O,x,C,k,E]),4),$=_[0],j=_[1],N=_[2],I=_[3];return[function(t,n){var r=function(){return $},o=j,i=N,a=I;if(n){var l=G(y(n),4),c=l[0],s=l[1],u=l[2],d=l[3],f=G(O(c,s,u,d),4),p=f[0];r=function(){return p},o=f[1],i=f[2],a=f[3]}var h=function(e,t,n,r,o,i){var a=e;function l(e,t,n){var r=i[e](a),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var l=n.filter((function(e){return!e.disabled})),c=K(l).reverse().find((function(e){return e.value<=r}))||l[0];c&&(r=c.value,a=i[t](a,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),a}(t,r,o,i,a,e);return h},$,j,N,I]}function P_(e){var n=e.mode,r=e.internalMode,o=e.renderExtraFooter,i=e.showNow,a=e.showTime,l=e.onSubmit,c=e.onNow,s=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=t.useContext(jO),h=p.prefixCls,v=p.locale,m=p.button,g=void 0===m?"button":m,b=d.getNow(),y=G(I_(d,a,b),1)[0],w=null==o?void 0:o(n),x=f(b,{type:n}),S="".concat(h,"-now"),C="".concat(S,"-btn"),k=i&&t.createElement("li",{className:S},t.createElement("a",{className:_o()(C,x&&"".concat(C,"-disabled")),"aria-disabled":x,onClick:function(){if(!x){var e=y(b);c(e)}}},"date"===r?v.today:v.now)),E=u&&t.createElement("li",{className:"".concat(h,"-ok")},t.createElement(g,{disabled:s,onClick:l},v.ok)),O=(k||E)&&t.createElement("ul",{className:"".concat(h,"-ranges")},k,E);return w||O?t.createElement("div",{className:"".concat(h,"-footer")},w&&t.createElement("div",{className:"".concat(h,"-footer-extra")},w),O):null}function M_(e,t,n){return function(r,o){var i=r.findIndex((function(r){return l_(e,t,r,o,n)}));if(-1===i)return[].concat(K(r),[o]);var a=K(r);return a.splice(i,1),a}}var R_=t.createContext(null);function A_(){return t.useContext(R_)}function T_(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,h=e.onSelect,v=e.prevIcon,m=e.nextIcon,g=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:v,nextIcon:m,superPrevIcon:g,superNextIcon:b},y]}var q_=t.createContext({});function L_(e){for(var n=e.rowNum,r=e.colNum,o=e.baseDate,i=e.getCellDate,a=e.prefixColumn,l=e.rowClassName,c=e.titleFormat,s=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=void 0===f||f,h=e.disabledDate,v=A_(),m=v.prefixCls,g=v.panelType,b=v.now,y=v.disabledDate,x=v.cellRender,C=v.onHover,k=v.hoverValue,E=v.hoverRangeValue,O=v.generateConfig,_=v.values,$=v.locale,j=v.onSelect,N=h||y,I="".concat(m,"-cell"),P=t.useContext(q_).onCellDblClick,M=function(e){return _.some((function(t){return t&&l_(O,$,e,t,g)}))},R=[],A=0;A<n;A+=1){for(var T=[],q=void 0,L=function(){var e=i(o,A*r+D),n=null==N?void 0:N(e,{type:g});0===D&&(q=e,a&&T.push(a(q)));var l=!1,d=!1,f=!1;if(p&&E){var h=G(E,2),v=h[0],y=h[1];l=c_(O,v,y,e),d=l_(O,$,e,v,g),f=l_(O,$,e,y,g)}var _=c?u_(e,{locale:$,format:c,generateConfig:O}):void 0,R=t.createElement("div",{className:"".concat(I,"-inner")},s(e));T.push(t.createElement("td",{key:D,title:_,className:_o()(I,S(w(w(w(w(w(w({},"".concat(I,"-disabled"),n),"".concat(I,"-hover"),(k||[]).some((function(t){return l_(O,$,e,t,g)}))),"".concat(I,"-in-range"),l&&!d&&!f),"".concat(I,"-range-start"),d),"".concat(I,"-range-end"),f),"".concat(m,"-cell-selected"),!E&&"week"!==g&&M(e)),u(e))),onClick:function(){n||j(e)},onDoubleClick:function(){!n&&P&&P()},onMouseEnter:function(){n||null==C||C(e)},onMouseLeave:function(){n||null==C||C(null)}},x?x(e,{prefixCls:m,originNode:R,today:b,type:g,locale:$}):R))},D=0;D<r;D+=1)L();R.push(t.createElement("tr",{key:A,className:null==l?void 0:l(q)},T))}return t.createElement("div",{className:"".concat(m,"-body")},t.createElement("table",{className:"".concat(m,"-content")},d&&t.createElement("thead",null,t.createElement("tr",null,d)),t.createElement("tbody",null,R)))}var D_={visibility:"hidden"};var z_=function(e){var n=e.offset,r=e.superOffset,o=e.onChange,i=e.getStart,a=e.getEnd,l=e.children,c=A_(),s=c.prefixCls,u=c.prevIcon,d=void 0===u?"‹":u,f=c.nextIcon,p=void 0===f?"›":f,h=c.superPrevIcon,v=void 0===h?"«":h,m=c.superNextIcon,g=void 0===m?"»":m,b=c.minDate,y=c.maxDate,w=c.generateConfig,x=c.locale,S=c.pickerValue,C=c.panelType,k="".concat(s,"-header"),E=t.useContext(q_),O=E.hidePrev,_=E.hideNext,$=E.hideHeader,j=t.useMemo((function(){if(!b||!n||!a)return!1;var e=a(n(-1,S));return!s_(w,x,e,b,C)}),[b,n,S,a,w,x,C]),N=t.useMemo((function(){if(!b||!r||!a)return!1;var e=a(r(-1,S));return!s_(w,x,e,b,C)}),[b,r,S,a,w,x,C]),I=t.useMemo((function(){if(!y||!n||!i)return!1;var e=i(n(1,S));return!s_(w,x,y,e,C)}),[y,n,S,i,w,x,C]),P=t.useMemo((function(){if(!y||!r||!i)return!1;var e=i(r(1,S));return!s_(w,x,y,e,C)}),[y,r,S,i,w,x,C]),M=function(e){n&&o(n(e,S))},R=function(e){r&&o(r(e,S))};if($)return null;var A="".concat(k,"-prev-btn"),T="".concat(k,"-next-btn"),q="".concat(k,"-super-prev-btn"),L="".concat(k,"-super-next-btn");return t.createElement("div",{className:k},r&&t.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return R(-1)},tabIndex:-1,className:_o()(q,N&&"".concat(q,"-disabled")),disabled:N,style:O?D_:{}},v),n&&t.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return M(-1)},tabIndex:-1,className:_o()(A,j&&"".concat(A,"-disabled")),disabled:j,style:O?D_:{}},d),t.createElement("div",{className:"".concat(k,"-view")},l),n&&t.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return M(1)},tabIndex:-1,className:_o()(T,I&&"".concat(T,"-disabled")),disabled:I,style:_?D_:{}},p),r&&t.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return R(1)},tabIndex:-1,className:_o()(L,P&&"".concat(L,"-disabled")),disabled:P,style:_?D_:{}},g))};function B_(e){var n=e.prefixCls,r=e.panelName,o=void 0===r?"date":r,i=e.locale,a=e.generateConfig,l=e.pickerValue,c=e.onPickerValueChange,s=e.onModeChange,u=e.mode,d=void 0===u?"date":u,f=e.disabledDate,p=e.onSelect,h=e.onHover,v=e.showWeek,m="".concat(n,"-").concat(o,"-panel"),g="".concat(n,"-cell"),b="week"===d,y=G(T_(e,d),2),x=y[0],S=y[1],C=a.locale.getWeekFirstDay(i.locale),k=a.setDate(l,1),E=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(i.locale,a,k),O=a.getMonth(l),_=(void 0===v?b:v)?function(e){var n=null==f?void 0:f(e,{type:"week"});return t.createElement("td",{key:"week",className:_o()(g,"".concat(g,"-week"),w({},"".concat(g,"-disabled"),n)),onClick:function(){n||p(e)},onMouseEnter:function(){n||null==h||h(e)},onMouseLeave:function(){n||null==h||h(null)}},t.createElement("div",{className:"".concat(g,"-inner")},a.locale.getWeek(i.locale,e)))}:null,$=[],j=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);_&&$.push(t.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var N=0;N<QO;N+=1)$.push(t.createElement("th",{key:N},j[(N+C)%QO]));var I=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),P=t.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){s("year",l)},tabIndex:-1,className:"".concat(n,"-year-btn")},u_(l,{locale:i,format:i.yearFormat,generateConfig:a})),M=t.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){s("month",l)},tabIndex:-1,className:"".concat(n,"-month-btn")},i.monthFormat?u_(l,{locale:i,format:i.monthFormat,generateConfig:a}):I[O]),R=i.monthBeforeYear?[M,P]:[P,M];return t.createElement(R_.Provider,{value:x},t.createElement("div",{className:_o()(m,v&&"".concat(m,"-show-week"))},t.createElement(z_,{offset:function(e){return a.addMonth(l,e)},superOffset:function(e){return a.addYear(l,e)},onChange:c,getStart:function(e){return a.setDate(e,1)},getEnd:function(e){var t=a.setDate(e,1);return t=a.addMonth(t,1),a.addDate(t,-1)}},R),t.createElement(L_,pt({titleFormat:i.fieldDateFormat},e,{colNum:QO,rowNum:6,baseDate:E,headerCells:$,getCellDate:function(e,t){return a.addDate(e,t)},getCellText:function(e){return u_(e,{locale:i,format:i.cellDateFormat,generateConfig:a})},getCellClassName:function(e){return w(w({},"".concat(n,"-cell-in-view"),n_(a,e,l)),"".concat(n,"-cell-today"),r_(a,e,S))},prefixColumn:_,cellSelection:!b}))))}var F_=1/3;var H_=300;function W_(e){var n=e.units,r=e.value,o=e.optionalValue,i=e.type,a=e.onChange,l=e.onHover,c=e.onDblClick,s=e.changeOnScroll,u=A_(),d=u.prefixCls,f=u.cellRender,p=u.now,h=u.locale,v="".concat(d,"-time-panel"),m="".concat(d,"-time-panel-cell"),g=t.useRef(null),b=t.useRef(),y=function(){clearTimeout(b.current)},x=function(e,n){var r=t.useRef(!1),o=t.useRef(null),i=t.useRef(null),a=function(){ji.cancel(o.current),r.current=!1},l=t.useRef();return[Ko((function(){var t=e.current;if(i.current=null,l.current=0,t){var c=t.querySelector('[data-value="'.concat(n,'"]')),s=t.querySelector("li");c&&s&&function e(){a(),r.current=!0,l.current+=1;var n=t.scrollTop,u=s.offsetTop,d=c.offsetTop,f=d-u;if(0===d&&c!==s||!qc(t))l.current<=5&&(o.current=ji(e));else{var p=n+(f-n)*F_,h=Math.abs(f-p);if(null!==i.current&&i.current<h)a();else{if(i.current=h,h<=1)return t.scrollTop=f,void a();t.scrollTop=p,o.current=ji(e)}}}()}})),a,function(){return r.current}]}(g,null!=r?r:o),S=G(x,3),C=S[0],k=S[1],E=S[2];Je((function(){return C(),y(),function(){k(),y()}}),[r,o,n]);var O="".concat(v,"-column");return t.createElement("ul",{className:O,ref:g,"data-type":i,onScroll:function(e){y();var t=e.target;!E()&&s&&(b.current=setTimeout((function(){var e=g.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map((function(e){return e.offsetTop-r})).map((function(e,r){return n[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-t.scrollTop)})),i=Math.min.apply(Math,K(o)),l=o.findIndex((function(e){return e===i})),c=n[l];c&&!c.disabled&&a(c.value)}),H_))}},n.map((function(e){var n=e.label,o=e.value,s=e.disabled,u=t.createElement("div",{className:"".concat(m,"-inner")},n);return t.createElement("li",{key:o,className:_o()(m,w(w({},"".concat(m,"-selected"),r===o),"".concat(m,"-disabled"),s)),onClick:function(){s||a(o)},onDoubleClick:function(){!s&&c&&c()},onMouseEnter:function(){l(o)},onMouseLeave:function(){l(null)},"data-value":o},f?f(o,{prefixCls:d,originNode:u,today:p,type:"time",subType:i,locale:h}):u)})))}function V_(e){return e<12}function U_(e){var n=e.showHour,r=e.showMinute,o=e.showSecond,i=e.showMillisecond,a=e.use12Hours,l=e.changeOnScroll,c=A_(),s=c.prefixCls,u=c.values,d=c.generateConfig,f=c.locale,p=c.onSelect,h=c.onHover,v=c.pickerValue,m=(null==u?void 0:u[0])||null,g=t.useContext(q_).onCellDblClick,b=G(I_(d,e,m),5),y=b[0],w=b[1],x=b[2],S=b[3],C=b[4],k=function(e){return[m&&d[e](m),v&&d[e](v)]},E=G(k("getHour"),2),O=E[0],_=E[1],$=G(k("getMinute"),2),j=$[0],N=$[1],I=G(k("getSecond"),2),P=I[0],M=I[1],R=G(k("getMillisecond"),2),A=R[0],T=R[1],q=null===O?null:V_(O)?"am":"pm",L=t.useMemo((function(){return a?V_(O)?w.filter((function(e){return V_(e.value)})):w.filter((function(e){return!V_(e.value)})):w}),[O,w,a]),D=function(e,t){var n,r=e.filter((function(e){return!e.disabled}));return null!=t?t:null==r||null===(n=r[0])||void 0===n?void 0:n.value},z=D(w,O),B=t.useMemo((function(){return x(z)}),[x,z]),F=D(B,j),H=t.useMemo((function(){return S(z,F)}),[S,z,F]),W=D(H,P),V=t.useMemo((function(){return C(z,F,W)}),[C,z,F,W]),U=D(V,A),Y=t.useMemo((function(){if(!a)return[];var e=d.getNow(),t=d.setHour(e,6),n=d.setHour(e,18),r=function(e,t){var n=f.cellMeridiemFormat;return n?u_(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:w.every((function(e){return e.disabled||!V_(e.value)}))},{label:r(n,"PM"),value:"pm",disabled:w.every((function(e){return e.disabled||V_(e.value)}))}]}),[w,a,d,f]),K=function(e){var t=y(e);p(t)},X=t.useMemo((function(){var e=m||v||d.getNow(),t=function(e){return null!=e};return t(O)?(e=d.setHour(e,O),e=d.setMinute(e,j),e=d.setSecond(e,P),e=d.setMillisecond(e,A)):t(_)?(e=d.setHour(e,_),e=d.setMinute(e,N),e=d.setSecond(e,M),e=d.setMillisecond(e,T)):t(z)&&(e=d.setHour(e,z),e=d.setMinute(e,F),e=d.setSecond(e,W),e=d.setMillisecond(e,U)),e}),[m,v,O,j,P,A,z,F,W,U,_,N,M,T,d]),Q=function(e,t){return null===e?null:d[t](X,e)},Z=function(e){return Q(e,"setHour")},J=function(e){return Q(e,"setMinute")},ee=function(e){return Q(e,"setSecond")},te=function(e){return Q(e,"setMillisecond")},ne=function(e){return null===e?null:"am"!==e||V_(O)?"pm"===e&&V_(O)?d.setHour(X,O+12):X:d.setHour(X,O-12)},re={onDblClick:g,changeOnScroll:l};return t.createElement("div",{className:"".concat(s,"-content")},n&&t.createElement(W_,pt({units:L,value:O,optionalValue:_,type:"hour",onChange:function(e){K(Z(e))},onHover:function(e){h(Z(e))}},re)),r&&t.createElement(W_,pt({units:B,value:j,optionalValue:N,type:"minute",onChange:function(e){K(J(e))},onHover:function(e){h(J(e))}},re)),o&&t.createElement(W_,pt({units:H,value:P,optionalValue:M,type:"second",onChange:function(e){K(ee(e))},onHover:function(e){h(ee(e))}},re)),i&&t.createElement(W_,pt({units:V,value:A,optionalValue:T,type:"millisecond",onChange:function(e){K(te(e))},onHover:function(e){h(te(e))}},re)),a&&t.createElement(W_,pt({units:Y,value:q,type:"meridiem",onChange:function(e){K(ne(e))},onHover:function(e){h(ne(e))}},re)))}function G_(e){var n=e.prefixCls,r=e.value,o=e.locale,i=e.generateConfig,a=e.showTime,l=(a||{}).format,c="".concat(n,"-time-panel"),s=G(T_(e,"time"),1)[0];return t.createElement(R_.Provider,{value:s},t.createElement("div",{className:_o()(c)},t.createElement(z_,null,r?u_(r,{locale:o,format:l,generateConfig:i}):" "),t.createElement(U_,a)))}var Y_={date:B_,datetime:function(e){var n=e.prefixCls,r=e.generateConfig,o=e.showTime,i=e.onSelect,a=e.value,l=e.pickerValue,c=e.onHover,s="".concat(n,"-datetime-panel"),u=G(I_(r,o),1)[0],d=function(e){return d_(r,e,a||l)};return t.createElement("div",{className:s},t.createElement(B_,pt({},e,{onSelect:function(e){var t=d(e);i(u(t,t))},onHover:function(e){null==c||c(e?d(e):e)}})),t.createElement(G_,e))},week:function(e){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.value,a=e.hoverValue,l=e.hoverRangeValue,c=o.locale,s="".concat(n,"-week-panel-row");return t.createElement(B_,pt({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(l){var n=G(l,2),o=n[0],u=n[1],d=a_(r,c,o,e),f=a_(r,c,u,e);t["".concat(s,"-range-start")]=d,t["".concat(s,"-range-end")]=f,t["".concat(s,"-range-hover")]=!d&&!f&&c_(r,o,u,e)}return a&&(t["".concat(s,"-hover")]=a.some((function(t){return a_(r,c,e,t)}))),_o()(s,w({},"".concat(s,"-selected"),!l&&a_(r,c,i,e)),t)}}))},month:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c=e.onModeChange,s="".concat(n,"-month-panel"),u=G(T_(e,"month"),1)[0],d=o.setMonth(i,0),f=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),p=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,o.getMonth(n)+1),i=o.addDate(r,-1);return a(n,t)&&a(i,t)}:null,h=t.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){c("year")},tabIndex:-1,className:"".concat(n,"-year-btn")},u_(i,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement(R_.Provider,{value:u},t.createElement("div",{className:s},t.createElement(z_,{superOffset:function(e){return o.addYear(i,e)},onChange:l,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},h),t.createElement(L_,pt({},e,{disabledDate:p,titleFormat:r.fieldMonthFormat,colNum:3,rowNum:4,baseDate:d,getCellDate:function(e,t){return o.addMonth(e,t)},getCellText:function(e){var t=o.getMonth(e);return r.monthFormat?u_(e,{locale:r,format:r.monthFormat,generateConfig:o}):f[t]},getCellClassName:function(){return w({},"".concat(n,"-cell-in-view"),!0)}}))))},quarter:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,l=e.onModeChange,c="".concat(n,"-quarter-panel"),s=G(T_(e,"quarter"),1)[0],u=o.setMonth(i,0),d=t.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){l("year")},tabIndex:-1,className:"".concat(n,"-year-btn")},u_(i,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement(R_.Provider,{value:s},t.createElement("div",{className:c},t.createElement(z_,{superOffset:function(e){return o.addYear(i,e)},onChange:a,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},d),t.createElement(L_,pt({},e,{titleFormat:r.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:function(e,t){return o.addMonth(e,3*t)},getCellText:function(e){return u_(e,{locale:r,format:r.cellQuarterFormat,generateConfig:o})},getCellClassName:function(){return w({},"".concat(n,"-cell-in-view"),!0)}}))))},year:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c=e.onModeChange,s="".concat(n,"-year-panel"),u=G(T_(e,"year"),1)[0],d=function(e){var t=10*Math.floor(o.getYear(i)/10);return o.setYear(e,t)},f=function(e){var t=d(e);return o.addYear(t,9)},p=d(i),h=f(i),v=o.addYear(p,-1),m=a?function(e,t){var n=o.setMonth(e,0),r=o.setDate(n,1),i=o.addYear(r,1),l=o.addDate(i,-1);return a(r,t)&&a(l,t)}:null,g=t.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:function(){c("decade")},tabIndex:-1,className:"".concat(n,"-decade-btn")},u_(p,{locale:r,format:r.yearFormat,generateConfig:o}),"-",u_(h,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement(R_.Provider,{value:u},t.createElement("div",{className:s},t.createElement(z_,{superOffset:function(e){return o.addYear(i,10*e)},onChange:l,getStart:d,getEnd:f},g),t.createElement(L_,pt({},e,{disabledDate:m,titleFormat:r.fieldYearFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:function(e,t){return o.addYear(e,t)},getCellText:function(e){return u_(e,{locale:r,format:r.cellYearFormat,generateConfig:o})},getCellClassName:function(e){return w({},"".concat(n,"-cell-in-view"),e_(o,e,p)||e_(o,e,h)||c_(o,p,h,e))}}))))},decade:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c="".concat(n,"-decade-panel"),s=G(T_(e,"decade"),1)[0],u=function(e){var t=100*Math.floor(o.getYear(i)/100);return o.setYear(e,t)},d=function(e){var t=u(e);return o.addYear(t,99)},f=u(i),p=d(i),h=o.addYear(f,-10),v=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,0),i=o.setYear(r,10*Math.floor(o.getYear(r)/10)),l=o.addYear(i,10),c=o.addDate(l,-1);return a(i,t)&&a(c,t)}:null,m="".concat(u_(f,{locale:r,format:r.yearFormat,generateConfig:o}),"-").concat(u_(p,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement(R_.Provider,{value:s},t.createElement("div",{className:c},t.createElement(z_,{superOffset:function(e){return o.addYear(i,100*e)},onChange:l,getStart:u,getEnd:d},m),t.createElement(L_,pt({},e,{disabledDate:v,colNum:3,rowNum:4,baseDate:h,getCellDate:function(e,t){return o.addYear(e,10*t)},getCellText:function(e){var t=r.cellYearFormat,n=u_(e,{locale:r,format:t,generateConfig:o}),i=u_(o.addYear(e,9),{locale:r,format:t,generateConfig:o});return"".concat(n,"-").concat(i)},getCellClassName:function(e){return w({},"".concat(n,"-cell-in-view"),JO(o,e,f)||JO(o,e,p)||c_(o,f,p,e))}}))))},time:G_};function K_(e,n){var r,o=e.locale,i=e.generateConfig,a=e.direction,l=e.prefixCls,c=e.tabIndex,s=void 0===c?0:c,u=e.multiple,d=e.defaultValue,f=e.value,p=e.onChange,h=e.onSelect,v=e.defaultPickerValue,m=e.pickerValue,g=e.onPickerValueChange,b=e.mode,y=e.onPanelChange,x=e.picker,C=void 0===x?"date":x,k=e.showTime,E=e.hoverValue,O=e.hoverRangeValue,_=e.cellRender,$=e.dateRender,j=e.monthCellRender,N=e.components,I=void 0===N?{}:N,P=e.hideHeader,M=(null===(r=t.useContext(jO))||void 0===r?void 0:r.prefixCls)||l||"rc-picker",R=t.useRef();t.useImperativeHandle(n,(function(){return{nativeElement:R.current}}));var A=G(YO(e),4),T=A[0],q=A[1],L=A[2],D=A[3],z=FO(o,q),B="date"===C&&k?"datetime":C,F=t.useMemo((function(){return KO(B,L,D,T,z)}),[B,L,D,T,z]),H=i.getNow(),W=G(Zo(C,{value:b,postState:function(e){return e||"date"}}),2),V=W[0],U=W[1],Y="date"===V&&F?"datetime":V,X=M_(i,o,B),Q=G(Zo(d,{value:f}),2),Z=Q[0],J=Q[1],ee=t.useMemo((function(){var e=MO(Z).filter((function(e){return e}));return u?e:e.slice(0,1)}),[Z,u]),te=Ko((function(e){J(e),p&&(null===e||ee.length!==e.length||ee.some((function(t,n){return!l_(i,o,t,e[n],B)})))&&(null==p||p(u?e:e[0]))})),ne=Ko((function(e){if(null==h||h(e),V===C){var t=u?X(ee,e):[e];te(t)}})),re=G(Zo(v||ee[0]||H,{value:m}),2),oe=re[0],ie=re[1];t.useEffect((function(){ee[0]&&!m&&ie(ee[0])}),[ee[0]]);var ae=function(e,t){null==y||y(e||m,t||V)},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ie(e),null==g||g(e),t&&ae(e)},ce=function(e,t){U(e),t&&le(t),ae(t,e)},se=t.useMemo((function(){var e,t;if(Array.isArray(O)){var n=G(O,2);e=n[0],t=n[1]}else e=O;return e||t?(e=e||t,t=t||e,i.isAfter(e,t)?[t,e]:[e,t]):null}),[O,i]),ue=DO(_,$,j),de=I[Y]||Y_[Y]||B_,fe=t.useContext(q_),pe=t.useMemo((function(){return S(S({},fe),{},{hideHeader:P})}),[fe,P]);var he="".concat(M,"-panel"),ve=AO(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return t.createElement(q_.Provider,{value:pe},t.createElement("div",{ref:R,tabIndex:s,className:_o()(he,w({},"".concat(he,"-rtl"),"rtl"===a))},t.createElement(de,pt({},ve,{showTime:F,prefixCls:M,locale:z,generateConfig:i,onModeChange:ce,pickerValue:oe,onPickerValueChange:function(e){le(e,!0)},value:ee[0],onSelect:function(e){if(ne(e),le(e),V!==C){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(K(n),["week"]),date:[].concat(K(n),["date"])}[C]||n,o=r.indexOf(V),i=r[o+1];i&&ce(i,e)}},values:ee,cellRender:ue,hoverRangeValue:se,hoverValue:E}))))}var X_=t.memo(t.forwardRef(K_));function Q_(e){var n=e.picker,r=e.multiplePanel,o=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,l=e.onSubmit,c=e.range,s=e.hoverValue,u=t.useContext(jO),d=u.prefixCls,f=u.generateConfig,p=t.useCallback((function(e,t){return y_(f,n,e,t)}),[f,n]),h=t.useMemo((function(){return p(o,1)}),[o,p]),v={onCellDblClick:function(){a&&l()}},m="time"===n,g=S(S({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return c?g.hoverRangeValue=s:g.hoverValue=s,r?t.createElement("div",{className:"".concat(d,"-panels")},t.createElement(q_.Provider,{value:S(S({},v),{},{hideNext:!0})},t.createElement(X_,g)),t.createElement(q_.Provider,{value:S(S({},v),{},{hidePrev:!0})},t.createElement(X_,pt({},g,{pickerValue:h,onPickerValueChange:function(e){i(p(e,-1))}})))):t.createElement(q_.Provider,{value:S({},v)},t.createElement(X_,g))}function Z_(e){return"function"==typeof e?e():e}function J_(e){var n=e.prefixCls,r=e.presets,o=e.onClick,i=e.onHover;return r.length?t.createElement("div",{className:"".concat(n,"-presets")},t.createElement("ul",null,r.map((function(e,n){var r=e.label,a=e.value;return t.createElement("li",{key:n,onClick:function(){o(Z_(a))},onMouseEnter:function(){i(Z_(a))},onMouseLeave:function(){i(null)}},r)})))):null}function e$(e){var n=e.panelRender,r=e.internalMode,o=e.picker,i=e.showNow,a=e.range,l=e.multiple,c=e.activeOffset,s=void 0===c?0:c,u=e.placement,d=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,h=e.onFocus,v=e.onBlur,m=e.onPanelMouseDown,g=e.direction,b=e.value,y=e.onSelect,x=e.isInvalid,S=e.defaultOpenValue,C=e.onOk,k=e.onSubmit,E=t.useContext(jO).prefixCls,O="".concat(E,"-panel"),_="rtl"===g,$=t.useRef(null),j=t.useRef(null),N=G(t.useState(0),2),I=N[0],P=N[1],M=G(t.useState(0),2),R=M[0],A=M[1];function T(e){return e.filter((function(e){return e}))}t.useEffect((function(){if(a){var e,t=(null===(e=$.current)||void 0===e?void 0:e.offsetWidth)||0;A(s<=I-t?0:s+t-I)}}),[I,s,a]);var q=t.useMemo((function(){return T(MO(b))}),[b]),L="time"===o&&!q.length,D=t.useMemo((function(){return L?T([S]):q}),[L,q,S]),z=L?S:q,B=t.useMemo((function(){return!D.length||D.some((function(e){return x(e)}))}),[D,x]),F=t.createElement("div",{className:"".concat(E,"-panel-layout")},t.createElement(J_,{prefixCls:E,presets:d,onClick:p,onHover:f}),t.createElement("div",null,t.createElement(Q_,pt({},e,{value:z})),t.createElement(P_,pt({},e,{showNow:!l&&i,invalid:B,onSubmit:function(){L&&y(S),C(),k()}}))));n&&(F=n(F));var H="".concat(O,"-container"),W="marginLeft",V="marginRight",U=t.createElement("div",{onMouseDown:m,tabIndex:-1,className:_o()(H,"".concat(E,"-").concat(r,"-panel-container")),style:w(w({},_?V:W,R),_?W:V,"auto"),onFocus:h,onBlur:v},F);if(a){var Y=$O(_O(u,_),_);U=t.createElement("div",{onMouseDown:m,ref:j,className:_o()("".concat(E,"-range-wrapper"),"".concat(E,"-").concat(o,"-range-wrapper"))},t.createElement("div",{ref:$,className:"".concat(E,"-range-arrow"),style:w({},Y,s)}),t.createElement(Zu,{onResize:function(e){e.offsetWidth&&P(e.offsetWidth)}},U))}return U}function t$(e,n){var r=e.format,o=e.maskFormat,i=e.generateConfig,a=e.locale,l=e.preserveInvalidOnBlur,c=e.inputReadOnly,s=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,h=e.onInputChange,v=e.onInvalid,m=e.open,g=e.onOpenChange,b=e.onKeyDown,y=e.onChange,w=e.activeHelp,x=e.name,C=e.autoComplete,k=e.id,E=e.value,O=e.invalid,_=e.placeholder,$=e.disabled,j=e.activeIndex,N=e.allHelp,I=e.picker,P=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},M=r[0],R=t.useCallback((function(e){return u_(e,{locale:a,format:M,generateConfig:i})}),[a,i,M]),A=t.useMemo((function(){return E.map(R)}),[E,R]),T=t.useMemo((function(){var e="time"===I?8:10,t="function"==typeof M?M(i.getNow()).length:M.length;return Math.max(e,t)+2}),[M,I,i]),q=function(e){for(var t=0;t<r.length;t+=1){var n=r[t];if("string"==typeof n){var o=P(e,n);if(o)return o}}return!1};return[function(t){function r(e){return void 0!==t?e[t]:e}var i=S(S({},dl(e,{aria:!0,data:!0})),{},{format:o,validateFormat:function(e){return!!q(e)},preserveInvalidOnBlur:l,readOnly:c,required:s,"aria-required":u,name:x,autoComplete:C,size:T,id:r(k),value:r(A)||"",invalid:r(O),placeholder:r(_),active:j===t,helped:N||w&&j===t,disabled:r($),onFocus:function(e){f(e,t)},onBlur:function(e){p(e,t)},onSubmit:d,onChange:function(e){h();var n=q(e);if(n)return v(!1,t),void y(n,t);v(!!e,t)},onHelp:function(){g(!0,{index:t})},onKeyDown:function(e){var n=!1;if(null==b||b(e,(function(){n=!0})),!e.defaultPrevented&&!n)switch(e.key){case"Escape":g(!1,{index:t});break;case"Enter":m||g(!0)}}},null==n?void 0:n({valueTexts:A}));return Object.keys(i).forEach((function(e){void 0===i[e]&&delete i[e]})),i},R]}var n$=["onMouseEnter","onMouseLeave"];function r$(e){return t.useMemo((function(){return AO(e,n$)}),[e])}var o$=["icon","type"],i$=["onClear"];function a$(e){var n=e.icon,r=e.type,o=To(e,o$),i=t.useContext(jO).prefixCls;return n?t.createElement("span",pt({className:"".concat(i,"-").concat(r)},o),n):null}function l$(e){var n=e.onClear,r=To(e,i$);return t.createElement(a$,pt({},r,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),n()}}))}var c$=["YYYY","MM","DD","HH","mm","ss","SSS"],s$=function(){function e(t){we(this,e),w(this,"format",void 0),w(this,"maskFormat",void 0),w(this,"cells",void 0),w(this,"maskCells",void 0),this.format=t;var n=c$.map((function(e){return"(".concat(e,")")})).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,(function(e){return"顧".repeat(e.length)}));var o=new RegExp("(".concat(c$.join("|"),")")),i=(t.split(o)||[]).filter((function(e){return e})),a=0;this.cells=i.map((function(e){var t=c$.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}})),this.maskCells=this.cells.filter((function(e){return e.mask}))}return Se(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],i=o.start,a=o.end;if(e>=i&&e<=a)return r;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l<t&&(t=l,n=r)}return n}}]),e}();var u$=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],d$=t.forwardRef((function(e,n){var r=e.active,o=e.showActiveCls,i=void 0===o||o,a=e.suffixIcon,l=e.format,c=e.validateFormat,s=e.onChange,u=(e.onInput,e.helped),d=e.onHelp,f=e.onSubmit,p=e.onKeyDown,h=e.preserveInvalidOnBlur,v=void 0!==h&&h,m=e.invalid,g=e.clearIcon,b=To(e,u$),y=e.value,x=e.onFocus,S=e.onBlur,C=e.onMouseUp,k=t.useContext(jO),E=k.prefixCls,O=k.input,_=void 0===O?"input":O,$="".concat(E,"-input"),j=G(t.useState(!1),2),N=j[0],I=j[1],P=G(t.useState(y),2),M=P[0],R=P[1],A=G(t.useState(""),2),T=A[0],q=A[1],L=G(t.useState(null),2),D=L[0],z=L[1],B=G(t.useState(null),2),F=B[0],H=B[1],W=M||"";t.useEffect((function(){R(y)}),[y]);var V=t.useRef(),U=t.useRef();t.useImperativeHandle(n,(function(){return{nativeElement:V.current,inputElement:U.current,focus:function(e){U.current.focus(e)},blur:function(){U.current.blur()}}}));var Y=t.useMemo((function(){return new s$(l||"")}),[l]),K=G(t.useMemo((function(){return u?[0,0]:Y.getSelection(D)}),[Y,D,u]),2),X=K[0],Q=K[1],Z=function(e){e&&e!==l&&e!==y&&d()},J=Ko((function(e){c(e)&&s(e),R(e),Z(e)})),ee=t.useRef(!1),te=function(e){S(e)};g_(r,(function(){r||v||R(y)}));var ne=function(e){"Enter"===e.key&&c(W)&&f(),null==p||p(e)},re=t.useRef();Je((function(){if(N&&l&&!ee.current){if(Y.match(W))return U.current.setSelectionRange(X,Q),re.current=ji((function(){U.current.setSelectionRange(X,Q)})),function(){ji.cancel(re.current)};J(l)}}),[Y,l,N,W,D,X,Q,F,J]);var oe=l?{onFocus:function(e){I(!0),z(0),q(""),x(e)},onBlur:function(e){I(!1),te(e)},onKeyDown:function(e){ne(e);var t=e.key,n=null,r=null,o=Q-X,i=l.slice(X,Q),a=function(e){z((function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,Y.size()-1)}))},c=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=G(t,3),r=n[0],o=n[1],a=n[2],l=W.slice(X,Q),c=Number(l);if(isNaN(c))return String(a||(e>0?r:o));var s=o-r+1;return String(r+(s+(c+e)-r)%s)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",r=c(1);break;case"ArrowDown":n="",r=c(-1);break;default:isNaN(Number(t))||(r=n=T+t)}if(null!==n&&(q(n),n.length>=o&&(a(1),q(""))),null!==r){var s=W.slice(0,X)+PO(r,o)+W.slice(Q);J(s.slice(0,l.length))}H({})},onMouseDown:function(){ee.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=Y.getMaskCellIndex(t);z(n),H({}),null==C||C(e),ee.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");c(t)&&J(t)}}:{};return t.createElement("div",{ref:V,className:_o()($,w(w({},"".concat($,"-active"),r&&i),"".concat($,"-placeholder"),u))},t.createElement(_,pt({ref:U,"aria-invalid":m,autoComplete:"off"},b,{onKeyDown:ne,onBlur:te},oe,{value:W,onChange:function(e){if(!l){var t=e.target.value;Z(t),R(t),s(t)}}})),t.createElement(a$,{type:"suffix",icon:a}),g)}));var f$=d$,p$=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],h$=["index"];function v$(e,n){var r=e.id,o=e.clearIcon,i=e.suffixIcon,a=e.separator,l=void 0===a?"~":a,c=e.activeIndex,s=(e.activeHelp,e.allHelp,e.focused),u=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),d=e.className,f=e.style,p=e.onClick,h=e.onClear,m=e.value,g=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),b=e.invalid,y=(e.inputReadOnly,e.direction),x=(e.onOpenChange,e.onActiveOffset),C=e.placement,k=e.onMouseDown,E=(e.required,e["aria-required"],e.autoFocus),O=To(e,p$),_="rtl"===y,$=t.useContext(jO).prefixCls,j=t.useMemo((function(){if("string"==typeof r)return[r];var e=r||{};return[e.start,e.end]}),[r]),N=t.useRef(),I=t.useRef(),P=t.useRef(),M=function(e){var t;return null===(t=[I,P][e])||void 0===t?void 0:t.current};t.useImperativeHandle(n,(function(){return{nativeElement:N.current,focus:function(e){if("object"===v(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=To(n,h$);null===(t=M(o))||void 0===t||t.focus(i)}else{var a;null===(a=M(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=M(0))||void 0===e||e.blur(),null===(t=M(1))||void 0===t||t.blur()}}}));var R=r$(O),A=t.useMemo((function(){return Array.isArray(u)?u:[u,u]}),[u]),T=G(t$(S(S({},e),{},{id:j,placeholder:A})),1)[0],q=_O(C,_),L=$O(q,_),D=null==q?void 0:q.toLowerCase().endsWith("right"),z=G(t.useState({position:"absolute",width:0}),2),B=z[0],F=z[1],H=Ko((function(){var e=M(c);if(e){var t=e.nativeElement,n=t.offsetWidth,r=t.offsetLeft,o=t.offsetParent,i=(null==o?void 0:o.offsetWidth)||0,a=D?i-n-r:r;F((function(e){return S(S({},e),{},w({width:n},L,a))})),x(a)}}));t.useEffect((function(){H()}),[c]);var W=o&&(m[0]&&!g[0]||m[1]&&!g[1]),V=E&&!g[0],U=E&&!V&&!g[1];return t.createElement(Zu,{onResize:H},t.createElement("div",pt({},R,{className:_o()($,"".concat($,"-range"),w(w(w(w({},"".concat($,"-focused"),s),"".concat($,"-disabled"),g.every((function(e){return e}))),"".concat($,"-invalid"),b.some((function(e){return e}))),"".concat($,"-rtl"),_),d),style:f,ref:N,onClick:p,onMouseDown:function(e){var t=e.target;t!==I.current.inputElement&&t!==P.current.inputElement&&e.preventDefault(),null==k||k(e)}}),t.createElement(f$,pt({ref:I},T(0),{autoFocus:V,"date-range":"start"})),t.createElement("div",{className:"".concat($,"-range-separator")},l),t.createElement(f$,pt({ref:P},T(1),{autoFocus:U,"date-range":"end"})),t.createElement("div",{className:"".concat($,"-active-bar"),style:B}),t.createElement(a$,{type:"suffix",icon:i}),W&&t.createElement(l$,{icon:o,onClear:h})))}var m$=t.forwardRef(v$);function g$(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function b$(e){return 1===e?"end":"start"}function y$(e,n){var r=p_(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:g$(t,!1),allowEmpty:g$(n,!1)}})),o=G(r,6),i=o[0],a=o[1],l=o[2],c=o[3],s=o[4],u=o[5],d=i.prefixCls,f=i.styles,p=i.classNames,h=i.placement,v=i.defaultValue,m=i.value,g=i.needConfirm,b=i.onKeyDown,y=i.disabled,w=i.allowEmpty,x=i.disabledDate,C=i.minDate,k=i.maxDate,E=i.defaultOpen,O=i.open,_=i.onOpenChange,$=i.locale,j=i.generateConfig,N=i.picker,I=i.showNow,P=i.showToday,M=i.showTime,R=i.mode,A=i.onPanelChange,T=i.onCalendarChange,q=i.onOk,L=i.defaultPickerValue,D=i.pickerValue,z=i.onPickerValueChange,B=i.inputReadOnly,F=i.suffixIcon,H=i.onFocus,W=i.onBlur,V=i.presets,U=i.ranges,Y=i.components,X=i.cellRender,Q=i.dateRender,Z=i.monthCellRender,J=i.onClick,ee=v_(n),te=G(h_(O,E,y,_),2),ne=te[0],re=te[1],oe=function(e,t){!y.some((function(e){return!e}))&&e||re(e,t)},ie=G(O_(j,$,c,!0,!1,v,m,T,q),5),ae=ie[0],le=ie[1],ce=ie[2],se=ie[3],ue=ie[4],de=ce(),fe=G(b_(y,w,ne),7),pe=fe[0],he=fe[1],ve=fe[2],me=fe[3],ge=fe[4],be=fe[5],ye=fe[6],we=function(e,t){he(!0),null==H||H(e,{range:b$(null!=t?t:me)})},xe=function(e,t){he(!1),null==W||W(e,{range:b$(null!=t?t:me)})},Se=t.useMemo((function(){if(!M)return null;var e=M.disabledTime,t=e?function(t){var n=b$(me),r=qO(de,ye,me);return e(t,n,{from:r})}:void 0;return S(S({},M),{},{disabledTime:t})}),[M,me,de,ye]),Ce=G(Zo([N,N],{value:R}),2),ke=Ce[0],Ee=Ce[1],Oe=ke[me]||N,_e="date"===Oe&&Se?"datetime":Oe,$e=_e===N&&"time"!==_e,je=$_(N,Oe,I,P,!0),Ne=G(__(i,ae,le,ce,se,y,c,pe,ne,u),2),Ie=Ne[0],Pe=Ne[1],Me=function(e,t,n,r,o,i){var a=n[n.length-1];return function(l,c){var s=G(e,2),u=s[0],d=s[1],f=S(S({},c),{},{from:qO(e,n)});return!(1!==a||!t[0]||!u||l_(r,o,u,l,f.type)||!r.isAfter(u,l))||!(0!==a||!t[1]||!d||l_(r,o,d,l,f.type)||!r.isAfter(l,d))||(null==i?void 0:i(l,f))}}(de,y,ye,j,$,x),Re=G(zO(de,u,w),2),Ae=Re[0],Te=Re[1],qe=G(x_(j,$,de,ke,ne,me,a,$e,L,D,null==Se?void 0:Se.defaultOpenValue,z,C,k),2),Le=qe[0],De=qe[1],ze=Ko((function(e,t,n){var r=RO(ke,me,t);if(r[0]===ke[0]&&r[1]===ke[1]||Ee(r),A&&!1!==n){var o=K(de);e&&(o[me]=e),A(o,r)}})),Be=function(e,t){return RO(de,t,e)},Fe=function(e,t){var n=de;e&&(n=Be(e,me));var r=be(n);se(n),Ie(me,null===r),null===r?oe(!1,{force:!0}):t||ee.current.focus({index:r})},He=G(t.useState(null),2),We=He[0],Ve=He[1],Ue=G(t.useState(null),2),Ge=Ue[0],Ye=Ue[1],Ke=t.useMemo((function(){return Ge||de}),[de,Ge]);t.useEffect((function(){ne||Ye(null)}),[ne]);var Xe=G(t.useState(0),2),Qe=Xe[0],Ze=Xe[1],et=m_(V,U),tt=DO(X,Q,Z,b$(me)),nt=de[me]||null,rt=Ko((function(e){return u(e,{activeIndex:me})})),ot=t.useMemo((function(){var e=dl(i,!1);return Tc(i,[].concat(K(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[i]),it=t.createElement(e$,pt({},ot,{showNow:je,showTime:Se,range:!0,multiplePanel:$e,activeOffset:Qe,placement:h,disabledDate:Me,onFocus:function(e){oe(!0),we(e)},onBlur:xe,onPanelMouseDown:function(){ve("panel")},picker:N,mode:Oe,internalMode:_e,onPanelChange:ze,format:s,value:nt,isInvalid:rt,onChange:null,onSelect:function(e){var t=RO(de,me,e);se(t),g||l||a!==_e||Fe(e)},pickerValue:Le,defaultOpenValue:MO(null==M?void 0:M.defaultOpenValue)[me],onPickerValueChange:De,hoverValue:Ke,onHover:function(e){Ye(e?Be(e,me):null),Ve("cell")},needConfirm:g,onSubmit:Fe,onOk:ue,presets:et,onPresetHover:function(e){Ye(e),Ve("preset")},onPresetSubmit:function(e){Pe(e)&&oe(!1,{force:!0})},onNow:function(e){Fe(e)},cellRender:tt})),at=t.useMemo((function(){return{prefixCls:d,locale:$,generateConfig:j,button:Y.button,input:Y.input}}),[d,$,j,Y.button,Y.input]);return Je((function(){ne&&void 0!==me&&ze(null,N,!1)}),[ne,me,N]),Je((function(){var e=ve();ne||"input"!==e||(oe(!1),Fe(null,!0)),ne||!l||g||"panel"!==e||(oe(!0),Fe())}),[ne]),t.createElement(jO.Provider,{value:at},t.createElement(IO,pt({},LO(i),{popupElement:it,popupStyle:f.popup,popupClassName:p.popup,visible:ne,onClose:function(){oe(!1)},range:!0}),t.createElement(m$,pt({},i,{ref:ee,suffixIcon:F,activeIndex:pe||ne?me:null,activeHelp:!!Ge,allHelp:!!Ge&&"preset"===We,focused:pe,onFocus:function(e,t){ve("input"),oe(!0,{inherit:!0}),me!==t&&ne&&!g&&l&&Fe(null,!0),ge(t),we(e,t)},onBlur:function(e,t){if(oe(!1),!g&&"input"===ve()){var n=be(de);Ie(me,null===n)}xe(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Fe(null,!0),null==b||b(e,t)},onSubmit:Fe,value:Ke,maskFormat:s,onChange:function(e,t){var n=Be(e,t);se(n)},onInputChange:function(){ve("input")},format:c,inputReadOnly:B,disabled:y,open:ne,onOpenChange:oe,onClick:function(e){var t,n=e.target.getRootNode();if(!ee.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=y.findIndex((function(e){return!e}));r>=0&&ee.current.focus({index:r})}oe(!0),null==J||J(e)},onClear:function(){Pe(null),oe(!1,{force:!0})},invalid:Ae,onInvalid:Te,onActiveOffset:Ze}))))}var w$=t.forwardRef(y$);function x$(e){var n=e.prefixCls,r=e.value,o=e.onRemove,i=e.removeIcon,a=void 0===i?"×":i,l=e.formatDate,c=e.disabled,s=e.maxTagCount,u=e.placeholder,d="".concat(n,"-selector"),f="".concat(n,"-selection"),p="".concat(f,"-overflow");function h(e,n){return t.createElement("span",{className:_o()("".concat(f,"-item")),title:"string"==typeof e?e:null},t.createElement("span",{className:"".concat(f,"-item-content")},e),!c&&n&&t.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:n,className:"".concat(f,"-item-remove")},a))}return t.createElement("div",{className:d},t.createElement(fb,{prefixCls:p,data:r,renderItem:function(e){return h(l(e),(function(t){t&&t.stopPropagation(),o(e)}))},renderRest:function(e){return h("+ ".concat(e.length," ..."))},itemKey:function(e){return l(e)},maxCount:s}),!r.length&&t.createElement("span",{className:"".concat(n,"-selection-placeholder")},u))}var S$=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function C$(e,n){e.id;var r=e.open,o=e.clearIcon,i=e.suffixIcon,a=(e.activeHelp,e.allHelp,e.focused),l=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),c=e.generateConfig,s=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,h=e.internalPicker,v=e.value,m=e.onChange,g=e.onSubmit,b=(e.onInputChange,e.multiple),y=e.maxTagCount,x=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),C=e.invalid,k=(e.inputReadOnly,e.direction),E=(e.onOpenChange,e.onMouseDown),O=(e.required,e["aria-required"],e.autoFocus),_=e.removeIcon,$=To(e,S$),j="rtl"===k,N=t.useContext(jO).prefixCls,I=t.useRef(),P=t.useRef();t.useImperativeHandle(n,(function(){return{nativeElement:I.current,focus:function(e){var t;null===(t=P.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=P.current)||void 0===e||e.blur()}}}));var M=r$($),R=t$(S(S({},e),{},{onChange:function(e){m([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:a}})),A=G(R,2),T=A[0],q=A[1],L=!(!o||!v.length||x),D=b?t.createElement(t.Fragment,null,t.createElement(x$,{prefixCls:N,value:v,onRemove:function(e){var t=v.filter((function(t){return t&&!l_(c,l,t,e,h)}));m(t),r||g()},formatDate:q,maxTagCount:y,disabled:x,removeIcon:_,placeholder:s}),t.createElement("input",{className:"".concat(N,"-multiple-input"),value:v.map(q).join(","),ref:P,readOnly:!0,autoFocus:O}),t.createElement(a$,{type:"suffix",icon:i}),L&&t.createElement(l$,{icon:o,onClear:p})):t.createElement(f$,pt({ref:P},T(),{autoFocus:O,suffixIcon:i,clearIcon:L&&t.createElement(l$,{icon:o,onClear:p}),showActiveCls:!1}));return t.createElement("div",pt({},M,{className:_o()(N,w(w(w(w(w({},"".concat(N,"-multiple"),b),"".concat(N,"-focused"),a),"".concat(N,"-disabled"),x),"".concat(N,"-invalid"),C),"".concat(N,"-rtl"),j),u),style:d,ref:I,onClick:f,onMouseDown:function(e){var t;e.target!==(null===(t=P.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==E||E(e)}}),D)}var k$=t.forwardRef(C$);function E$(e,n){var r=G(p_(e),6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=o,d=u.prefixCls,f=u.styles,p=u.classNames,h=u.order,v=u.defaultValue,m=u.value,g=u.needConfirm,b=u.onChange,y=u.onKeyDown,w=u.disabled,x=u.disabledDate,C=u.minDate,k=u.maxDate,E=u.defaultOpen,O=u.open,_=u.onOpenChange,$=u.locale,j=u.generateConfig,N=u.picker,I=u.showNow,P=u.showToday,M=u.showTime,R=u.mode,A=u.onPanelChange,T=u.onCalendarChange,q=u.onOk,L=u.multiple,D=u.defaultPickerValue,z=u.pickerValue,B=u.onPickerValueChange,F=u.inputReadOnly,H=u.suffixIcon,W=u.removeIcon,V=u.onFocus,U=u.onBlur,Y=u.presets,X=u.components,Q=u.cellRender,Z=u.dateRender,J=u.monthCellRender,ee=u.onClick,te=v_(n);function ne(e){return null===e?null:L?e:e[0]}var re=M_(j,$,i),oe=G(h_(O,E,[w],_),2),ie=oe[0],ae=oe[1],le=G(O_(j,$,l,!1,h,v,m,(function(e,t,n){if(T){var r=S({},n);delete r.range,T(ne(e),ne(t),r)}}),(function(e){null==q||q(ne(e))})),5),ce=le[0],se=le[1],ue=le[2],de=le[3],fe=le[4],pe=ue(),he=G(b_([w]),4),ve=he[0],me=he[1],ge=he[2],be=he[3],ye=function(e){me(!0),null==V||V(e,{})},we=function(e){me(!1),null==U||U(e,{})},xe=G(Zo(N,{value:R}),2),Se=xe[0],Ce=xe[1],ke="date"===Se&&M?"datetime":Se,Ee=$_(N,Se,I,P),Oe=b&&function(e,t){b(ne(e),ne(t))},_e=G(__(S(S({},o),{},{onChange:Oe}),ce,se,ue,de,[],l,ve,ie,s),2)[1],$e=G(zO(pe,s),2),je=$e[0],Ne=$e[1],Ie=t.useMemo((function(){return je.some((function(e){return e}))}),[je]),Pe=G(x_(j,$,pe,[Se],ie,be,i,!1,D,z,MO(null==M?void 0:M.defaultOpenValue),(function(e,t){if(B){var n=S(S({},t),{},{mode:t.mode[0]});delete n.range,B(e[0],n)}}),C,k),2),Me=Pe[0],Re=Pe[1],Ae=Ko((function(e,t,n){if(Ce(t),A&&!1!==n){var r=e||pe[pe.length-1];A(r,t)}})),Te=function(){_e(ue()),ae(!1,{force:!0})},qe=G(t.useState(null),2),Le=qe[0],De=qe[1],ze=G(t.useState(null),2),Be=ze[0],Fe=ze[1],He=t.useMemo((function(){var e=[Be].concat(K(pe)).filter((function(e){return e}));return L?e:e.slice(0,1)}),[pe,Be,L]),We=t.useMemo((function(){return!L&&Be?[Be]:pe.filter((function(e){return e}))}),[pe,Be,L]);t.useEffect((function(){ie||Fe(null)}),[ie]);var Ve=m_(Y),Ue=function(e){var t=L?re(ue(),e):[e];_e(t)&&!L&&ae(!1,{force:!0})},Ge=DO(Q,Z,J),Ye=t.useMemo((function(){var e=dl(o,!1);return S(S({},Tc(o,[].concat(K(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:o.multiple})}),[o]),Ke=t.createElement(e$,pt({},Ye,{showNow:Ee,showTime:M,disabledDate:x,onFocus:function(e){ae(!0),ye(e)},onBlur:we,picker:N,mode:Se,internalMode:ke,onPanelChange:Ae,format:c,value:pe,isInvalid:s,onChange:null,onSelect:function(e){ge("panel");var t=L?re(ue(),e):[e];de(t),g||a||i!==ke||Te()},pickerValue:Me,defaultOpenValue:null==M?void 0:M.defaultOpenValue,onPickerValueChange:Re,hoverValue:He,onHover:function(e){Fe(e),De("cell")},needConfirm:g,onSubmit:Te,onOk:fe,presets:Ve,onPresetHover:function(e){Fe(e),De("preset")},onPresetSubmit:Ue,onNow:function(e){Ue(e)},cellRender:Ge})),Xe=t.useMemo((function(){return{prefixCls:d,locale:$,generateConfig:j,button:X.button,input:X.input}}),[d,$,j,X.button,X.input]);return Je((function(){ie&&void 0!==be&&Ae(null,N,!1)}),[ie,be,N]),Je((function(){var e=ge();ie||"input"!==e||(ae(!1),Te()),ie||!a||g||"panel"!==e||(ae(!0),Te())}),[ie]),t.createElement(jO.Provider,{value:Xe},t.createElement(IO,pt({},LO(o),{popupElement:Ke,popupStyle:f.popup,popupClassName:p.popup,visible:ie,onClose:function(){ae(!1)}}),t.createElement(k$,pt({},o,{ref:te,suffixIcon:H,removeIcon:W,activeHelp:!!Be,allHelp:!!Be&&"preset"===Le,focused:ve,onFocus:function(e){ge("input"),ae(!0,{inherit:!0}),ye(e)},onBlur:function(e){ae(!1),we(e)},onKeyDown:function(e,t){"Tab"===e.key&&Te(),null==y||y(e,t)},onSubmit:Te,value:We,maskFormat:c,onChange:function(e){de(e)},onInputChange:function(){ge("input")},internalPicker:i,format:l,inputReadOnly:F,disabled:w,open:ie,onOpenChange:ae,onClick:function(e){w||te.current.nativeElement.contains(document.activeElement)||te.current.focus(),ae(!0),null==ee||ee(e)},onClear:function(){_e(null),ae(!1,{force:!0})},invalid:Ie,onInvalid:function(e){Ne(e,0)}}))))}var O$=t.forwardRef(E$);const _$=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=aw(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:Ve(i.itemLineHeight)}}}]};var $$=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Hl(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=Hl(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[_$(o,"small"),_$(e),_$(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},lw(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};const j$=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Ve(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Ve(l)} ${c} ${s}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:f,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},N$=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:h,colorTextHeading:v,colorSplit:m,pickerControlIconBorderWidth:g,colorIcon:b,textHeight:y,motionDurationMid:w,colorIconHover:x,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:k,colorTextDisabled:E,colorText:O,fontSize:_,motionDurationSlow:$,withoutTimeCellHeight:j,pickerQuarterPanelContentHeight:N,borderRadiusSM:I,colorTextLightSolid:P,cellHoverBg:M,timeColumnHeight:R,timeColumnWidth:A,timeCellHeight:T,controlItemBgActive:q,marginXXS:L,pickerDatePanelPaddingHorizontal:D,pickerControlIconMargin:z}=e,B=e.calc(a).mul(7).add(e.calc(D).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:B},"&-header":{display:"flex",padding:`0 ${Ve(c)}`,color:v,borderBottom:`${Ve(d)} ${f} ${m}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:Ve(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:_,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:Ve(y),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${Ve(g)} 0`,borderInlineWidth:`${Ve(g)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:z,insetInlineStart:z,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${Ve(g)} 0`,borderInlineWidth:`${Ve(g)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:C,fontWeight:"normal"},th:{height:e.calc(C).add(e.calc(k).mul(2)).equal(),color:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Ve(k)} 0`,color:E,cursor:"pointer","&-in-view":{color:O}},j$(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(j).mul(4).equal()},[r]:{padding:`0 ${Ve(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:N}},"&-decade-panel":{[r]:{padding:`0 ${Ve(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Ve(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${Ve(c)} ${Ve(D)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:I,borderEndStartRadius:I},"&:last-child:before":{borderStartEndRadius:I,borderEndEndRadius:I}},"&:hover td":{"&:before":{background:M}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new to(P).setAlpha(.5).toHexString()},[r]:{color:P}}},"&-range-hover td:before":{background:q}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Ve(c)} ${Ve(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Ve(d)} ${f} ${m}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${$}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:R},"&-column":{flex:"1 0 auto",width:A,margin:`${Ve(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(T).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${Ve(d)} ${f} ${m}`},"&-active":{background:new to(q).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:L,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(A).sub(e.calc(L).mul(2)).equal(),height:T,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(A).sub(T).div(2).equal(),color:O,lineHeight:Ve(T),borderRadius:I,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:M}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:q}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}}}}};var I$=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Ve(r)} ${s} ${u}`,"&-extra":{padding:`0 ${Ve(o)}`,lineHeight:Ve(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Ve(r)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Ve(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Ve(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};var P$=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},sm(e)),vm(e)),fm(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Ve(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Ve(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}};const M$=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${Ve(i)} ${Ve(r)} ${Ve(a)}`}},R$=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},A$=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:h,paddingInlineSM:v,paddingXS:m,marginXS:g,colorTextDescription:b,lineWidthBold:y,colorPrimary:w,motionDurationSlow:x,zIndexPopup:S,paddingXXS:C,sizePopupArrow:k,colorBgElevated:E,borderRadiusLG:O,boxShadowSecondary:_,borderRadiusSM:$,colorSplit:j,cellHoverBg:N,presetsWidth:I,presetsMaxWidth:P,boxShadowPopoverArrow:M,fontHeight:R,fontHeightLG:A,lineHeightLG:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},sa(e)),M$(e,r,R,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},bm(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},M$(e,f,A,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:T}}),"&-small":Object.assign({},M$(e,h,R,v)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(m).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:g}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:y,background:w,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Ve(m)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},sa(e)),N$(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,\n &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,\n &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Fy},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:zy},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Hy},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:By},[`${t}-panel > ${t}-time-panel`]:{paddingTop:C},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},Cp(e,E,M)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:E,borderRadius:O,boxShadow:_,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:I,maxWidth:P,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:m,borderInlineEnd:`${Ve(i)} ${a} ${j}`,li:Object.assign(Object.assign({},ca),{borderRadius:$,paddingInline:m,paddingBlock:e.calc(h).sub(R).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:g},"&:hover":{background:N}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${Ve(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Ky(e,"slide-up"),Ky(e,"slide-down"),rw(e,"move-up"),rw(e,"move-down")]};var T$=Zl("DatePicker",(e=>{const t=Hl(rm(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[I$(t),A$(t),P$(t),R$(t),$$(t),Hs(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},om(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,l=2*i,c=2*a,s=Math.min(n-l,n-c),u=Math.min(r-l,r-c),d=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new to(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new to(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),Sp(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function q$(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function L$(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function D$(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function z$(e,n){const{allowClear:r=!0}=e,{clearIcon:o,removeIcon:i}=Pw(Object.assign(Object.assign({},e),{prefixCls:n,componentName:"DatePicker"}));return[t.useMemo((()=>{if(!1===r)return!1;const e=!0===r?{}:r;return Object.assign({clearIcon:o},e)}),[r,o]),i]}const[B$,F$]=["week","WeekPicker"],[H$,W$]=["month","MonthPicker"],[V$,U$]=["year","YearPicker"],[G$,Y$]=["quarter","QuarterPicker"],[K$,X$]=["time","TimePicker"];var Q$=e=>t.createElement(Qs,Object.assign({size:"small",type:"primary"},e));function Z$(e){return(0,t.useMemo)((()=>Object.assign({button:Q$},e)),[e])}var J$=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var ej=e=>{const n=(0,t.forwardRef)(((n,r)=>{var o;const{prefixCls:i,getPopupContainer:a,components:l,className:c,style:s,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:h,popupClassName:v,dropdownClassName:m,status:g,rootClassName:b,variant:y,picker:w}=n,x=J$(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),S=t.useRef(null),{getPrefixCls:C,direction:k,getPopupContainer:E,rangePicker:O}=(0,t.useContext)(B),_=C("picker",i),{compactSize:$,compactItemClassnames:j}=Jc(_,k),N=C(),[I,P]=Vm("rangePicker",y,p),M=El(_),[R,A,T]=T$(_,M);const[q]=z$(n,_),L=Z$(l),D=Xc((e=>{var t;return null!==(t=null!=d?d:$)&&void 0!==t?t:e})),z=t.useContext(bo),F=null!=f?f:z,H=(0,t.useContext)(dp),{hasFeedback:W,status:V,feedbackIcon:U}=H,G=t.createElement(t.Fragment,null,w===K$?t.createElement(CO,null):t.createElement(wO,null),W&&U);(0,t.useImperativeHandle)(r,(()=>S.current));const[Y]=th("Calendar",qn),K=Object.assign(Object.assign({},Y),n.locale),[X]=Il("DatePicker",null===(o=n.popupStyle)||void 0===o?void 0:o.zIndex);return R(t.createElement(hp,{space:!0},t.createElement(w$,Object.assign({separator:t.createElement("span",{"aria-label":"to",className:`${_}-separator`},t.createElement(OO,null)),disabled:F,ref:S,popupAlign:D$(k,u),placement:u,placeholder:L$(K,w,h),suffixIcon:G,prevIcon:t.createElement("span",{className:`${_}-prev-icon`}),nextIcon:t.createElement("span",{className:`${_}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${_}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${_}-super-next-icon`}),transitionName:`${N}-slide-up`,picker:w},x,{className:_o()({[`${_}-${D}`]:D,[`${_}-${I}`]:P},Hm(_,Wm(V,g),W),A,j,c,null==O?void 0:O.className,T,M,b),style:Object.assign(Object.assign({},null==O?void 0:O.style),s),locale:K.lang,prefixCls:_,getPopupContainer:a||E,generateConfig:e,components:L,direction:k,classNames:{popup:_o()(A,v||m,T,M,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:X})},allowClear:q}))))}));return n},tj=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var nj=e=>{const n=(n,r)=>{const o=r===X$?"timePicker":"datePicker",i=(0,t.forwardRef)(((r,i)=>{var a;const{prefixCls:l,getPopupContainer:c,components:s,style:u,className:d,rootClassName:f,size:p,bordered:h,placement:v,placeholder:m,popupClassName:g,dropdownClassName:b,disabled:y,status:w,variant:x,onCalendarChange:S}=r,C=tj(r,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:k,direction:E,getPopupContainer:O,[o]:_}=(0,t.useContext)(B),$=k("picker",l),{compactSize:j,compactItemClassnames:N}=Jc($,E),I=t.useRef(null),[P,M]=Vm("datePicker",x,h),R=El($),[A,T,q]=T$($,R);(0,t.useImperativeHandle)(i,(()=>I.current));const L=n||r.picker,D=k(),{onSelect:z,multiple:F}=C,H=z&&"time"===n&&!F;const[W,V]=z$(r,$),U=Z$(s),G=Xc((e=>{var t;return null!==(t=null!=p?p:j)&&void 0!==t?t:e})),Y=t.useContext(bo),K=null!=y?y:Y,X=(0,t.useContext)(dp),{hasFeedback:Q,status:Z,feedbackIcon:J}=X,ee=t.createElement(t.Fragment,null,"time"===L?t.createElement(CO,null):t.createElement(wO,null),Q&&J),[te]=th("DatePicker",qn),ne=Object.assign(Object.assign({},te),r.locale),[re]=Il("DatePicker",null===(a=r.popupStyle)||void 0===a?void 0:a.zIndex);return A(t.createElement(hp,{space:!0},t.createElement(O$,Object.assign({ref:I,placeholder:q$(ne,L,m),suffixIcon:ee,dropdownAlign:D$(E,v),placement:v,prevIcon:t.createElement("span",{className:`${$}-prev-icon`}),nextIcon:t.createElement("span",{className:`${$}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${$}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${$}-super-next-icon`}),transitionName:`${D}-slide-up`,picker:n,onCalendarChange:(e,t,n)=>{null==S||S(e,t,n),H&&z(e)}},{showToday:!0},C,{locale:ne.lang,className:_o()({[`${$}-${G}`]:G,[`${$}-${P}`]:M},Hm($,Wm(Z,w),Q),T,N,null==_?void 0:_.className,d,q,R,f),style:Object.assign(Object.assign({},null==_?void 0:_.style),u),prefixCls:$,getPopupContainer:c||O,generateConfig:e,components:U,direction:E,disabled:K,classNames:{popup:_o()(T,q,R,f,g||b)},styles:{popup:Object.assign(Object.assign({},r.popupStyle),{zIndex:re})},allowClear:W,removeIcon:V}))))}));return i},r=n(),o=n(B$,F$),i=n(H$,W$),a=n(V$,U$),l=n(G$,Y$);return{DatePicker:r,WeekPicker:o,MonthPicker:i,YearPicker:a,TimePicker:n(K$,X$),QuarterPicker:l}};var rj=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=nj(e),l=ej(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=o,c.RangePicker=l,c.TimePicker=i,c.QuarterPicker=a,c};const oj=rj(gO);function ij(e){const t=D$(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const aj=Lv(oj,"picker",null,ij);oj._InternalPanelDoNotUseOrYouWillBeFired=aj;const lj=Lv(oj.RangePicker,"picker",null,ij);oj._InternalRangePanelDoNotUseOrYouWillBeFired=lj,oj.generatePicker=rj;var cj=oj;function sj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uj(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uj(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var dj=function(e){var t,n,o,i,a,c,s,u=e.field,f=u.help,p=u.value,h=u.placeholder,v=e.id,m=null===(t=e.field)||void 0===t?void 0:t.fieldType,g=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(o=e.field)||void 0===o?void 0:o.index,y=null===(i=e.field)||void 0===i?void 0:i.repeaterData,w=null===(a=e.field)||void 0===a?void 0:a.format,x=!(null===(c=e.field)||void 0===c||!c.showtime),S=!(null===(s=e.field)||void 0===s||!s.disableDates),C=sj(l(),2),k=(C[0],C[1]);return(0,r.jsxs)("div",{className:"rtsb-field datetime",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(cj,{className:"rtsb-form-field",value:""!==p?eO()(p):eO()(),placeholder:h,disabledDate:!!S&&function(e){return e&&e<eO()().startOf("day")},onChange:function(e,t){k({type:d,value:t,id:v,fieldType:m,parentId:g,repeaterData:y,index:b})},format:w,allowClear:!1,showTime:x})}),f&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:f}})]})]})};function fj(e){return fj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fj(e)}var pj=function(e){e=vj(e);var t=[];return"string"==typeof e?t=JSON.parse(e):"object"===fj(e)&&(t=e),Object.keys(t).map((function(e){return t[e]}))},hj=function(e,t){var n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];clearTimeout(n),n=setTimeout((function(){e.apply(void 0,o)}),t)}},vj=function(e){return"string"==typeof e&&e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1)),e};const mj=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:v,contentPadding:m,contentBg:g}=e,b=`${t}-notice`,y=new wn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new wn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:s},[`${b}-content`]:{display:"inline-block",padding:m,background:g,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},sa(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\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:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]};var gj=Zl("Message",(e=>{const t=Hl(e,{height:150});return[mj(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+$l+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))),bj=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yj={info:t.createElement(tl,null),success:t.createElement(Ha,null),error:t.createElement(Ua,null),warning:t.createElement(Za,null),loading:t.createElement(ol,null)},wj=e=>{let{prefixCls:n,type:r,icon:o,children:i}=e;return t.createElement("div",{className:_o()(`${n}-custom-content`,`${n}-${r}`)},o||yj[r],t.createElement("span",null,i))};var xj=e=>{const{prefixCls:n,className:r,type:o,icon:i,content:a}=e,l=bj(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=t.useContext(B),s=n||c("message"),u=El(s),[d,f,p]=gj(s,u);return d(t.createElement(pl,Object.assign({},l,{prefixCls:s,className:_o()(r,f,`${s}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:t.createElement(wj,{prefixCls:s,type:o,icon:i},a)})))};function Sj(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}var Cj=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kj=3,Ej=e=>{let{children:n,prefixCls:r}=e;const o=El(r),[i,a,l]=gj(r,o);return i(t.createElement(vl,{classNames:{list:_o()(a,l,o)}},n))},Oj=(e,n)=>{let{prefixCls:r,key:o}=n;return t.createElement(Ej,{prefixCls:r,key:o},e)},_j=t.forwardRef(((e,n)=>{const{top:r,prefixCls:o,getContainer:i,maxCount:a,duration:l=kj,rtl:c,transitionName:s,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:h}=t.useContext(B),v=o||d("message"),m=t.createElement("span",{className:`${v}-close-x`},t.createElement(Ka,{className:`${v}-close-icon`})),[g,b]=kl({prefixCls:v,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=r?r:8}),className:()=>_o()({[`${v}-rtl`]:null!=c?c:"rtl"===h}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(v,s),closable:!1,closeIcon:m,duration:l,getContainer:()=>(null==i?void 0:i())||(null==f?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:Oj});return t.useImperativeHandle(n,(()=>Object.assign(Object.assign({},g),{prefixCls:v,message:p}))),b}));let $j=0;function jj(e){const n=t.useRef(null),r=(Pn("Message"),t.useMemo((()=>{const e=e=>{var t;null===(t=n.current)||void 0===t||t.close(e)},r=r=>{if(!n.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:a}=n.current,l=`${i}-notice`,{content:c,icon:s,type:u,key:d,className:f,style:p,onClose:h}=r,v=Cj(r,["content","icon","type","key","className","style","onClose"]);let m=d;return null==m&&($j+=1,m=`antd-message-${$j}`),Sj((n=>(o(Object.assign(Object.assign({},v),{key:m,content:t.createElement(wj,{prefixCls:i,type:u,icon:s},c),placement:"top",className:_o()(u&&`${l}-${u}`,f,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),p),onClose:()=>{null==h||h(),n()}})),()=>{e(m)})))},o={open:r,destroy:t=>{var r;void 0!==t?e(t):null===(r=n.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{o[e]=(t,n,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?l=n:(a=n,l=o);const c=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return r(c)}})),o}),[]));return[r,t.createElement(_j,Object.assign({key:"message-holder"},e,{ref:n}))]}let Nj=null,Ij=e=>e(),Pj=[],Mj={};function Rj(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Mj,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const Aj=t.forwardRef(((e,n)=>{const{messageConfig:r,sync:o}=e,{getPrefixCls:i}=(0,t.useContext)(B),a=Mj.prefixCls||i("message"),l=(0,t.useContext)(q),[c,s]=jj(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),l.message));return t.useImperativeHandle(n,(()=>{const e=Object.assign({},c);return Object.keys(e).forEach((t=>{e[t]=function(){return o(),c[t].apply(c,arguments)}})),{instance:e,sync:o}})),s})),Tj=t.forwardRef(((e,n)=>{const[r,o]=t.useState(Rj),i=()=>{o(Rj)};t.useEffect(i,[]);const a=Sa(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=t.createElement(Aj,{ref:n,sync:i,messageConfig:r});return t.createElement(Ea,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function qj(){if(!Nj){const e=document.createDocumentFragment(),n={fragment:e};return Nj=n,void Ij((()=>{I(t.createElement(Tj,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then((()=>{!n.instance&&t&&(n.instance=t,n.sync=r,qj())}))}}),e)}))}Nj.instance&&(Pj.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":Ij((()=>{const t=Nj.instance.open(Object.assign(Object.assign({},Mj),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":Ij((()=>{null==Nj||Nj.instance.destroy(e.key)}));break;default:Ij((()=>{var n;const r=(n=Nj.instance)[t].apply(n,K(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),Pj=[])}const Lj={open:function(e){const t=Sj((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return Pj.push(r),()=>{n?Ij((()=>{n()})):r.skipped=!0}}));return qj(),t},destroy:e=>{Pj.push({type:"destroy",key:e}),qj()},config:function(e){Mj=Object.assign(Object.assign({},Mj),e),Ij((()=>{var e;null===(e=null==Nj?void 0:Nj.sync)||void 0===e||e.call(Nj)}))},useMessage:function(e){return jj(e)},_InternalPanelDoNotUseOrYouWillBeFired:xj},Dj=Lj;["success","info","warning","error","loading"].forEach((e=>{Dj[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){Sa();const n=Sj((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return Pj.push(o),()=>{r?Ij((()=>{r()})):o.skipped=!0}}));return qj(),n}(e,n)}}));var zj=Dj,Bj=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&(be(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};function Fj(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function Hj(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,r)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),Fj(t)):e.onSuccess(Fj(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var Wj=function(){var e=b(m().mark((function e(t,n){var r,o,i,a,l,c,s,u;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=function(){return(c=b(m().mark((function e(t){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){t.file((function(r){n(r)?(t.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),e(r)):e(null)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)},l=function(e){return c.apply(this,arguments)},a=function(){return(a=b(m().mark((function e(t){var n,r,o,i,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),r=[];case 2:return e.next=5,new Promise((function(e){n.readEntries(e,(function(){return e([])}))}));case 5:if(o=e.sent,i=o.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a<i;a++)r.push(o[a]);e.next=2;break;case 12:return e.abrupt("return",r);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)},i=function(e){return a.apply(this,arguments)},r=[],o=[],t.forEach((function(e){return o.push(e.webkitGetAsEntry())})),s=function(){var e=b(m().mark((function e(t,n){var a,c;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.path=n||"",!t.isFile){e.next=10;break}return e.next=6,l(t);case 6:(a=e.sent)&&r.push(a),e.next=15;break;case 10:if(!t.isDirectory){e.next=15;break}return e.next=13,i(t);case 13:c=e.sent,o.push.apply(o,K(c));case 15:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),u=0;case 9:if(!(u<o.length)){e.next=15;break}return e.next=12,s(o[u]);case 12:u++,e.next=9;break;case 15:return e.abrupt("return",r);case 16:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Vj=Wj,Uj=+new Date,Gj=0;function Yj(){return"rc-upload-".concat(Uj,"-").concat(++Gj)}var Kj=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Xj=function(e){Bo(r,e);var n=Uo(r);function r(){var e;we(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return w(Wo(e=n.call.apply(n,[this].concat(o))),"state",{uid:Yj()}),w(Wo(e),"reqs",{}),w(Wo(e),"fileInput",void 0),w(Wo(e),"_isMounted",void 0),w(Wo(e),"onChange",(function(t){var n=e.props,r=n.accept,o=n.directory,i=K(t.target.files).filter((function(e){return!o||Bj(e,r)}));e.uploadFiles(i),e.reset()})),w(Wo(e),"onClick",(function(t){var n=e.fileInput;if(n){var r=t.target,o=e.props.onClick;if(r&&"BUTTON"===r.tagName)n.parentNode.focus(),r.blur();n.click(),o&&o(t)}})),w(Wo(e),"onKeyDown",(function(t){"Enter"===t.key&&e.onClick(t)})),w(Wo(e),"onFileDrop",function(){var t=b(m().mark((function t(n){var r,o,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props.multiple,n.preventDefault(),"dragover"!==n.type){t.next=4;break}return t.abrupt("return");case 4:if(!e.props.directory){t.next=11;break}return t.next=7,Vj(Array.prototype.slice.call(n.dataTransfer.items),(function(t){return Bj(t,e.props.accept)}));case 7:o=t.sent,e.uploadFiles(o),t.next=14;break;case 11:i=K(n.dataTransfer.files).filter((function(t){return Bj(t,e.props.accept)})),!1===r&&(i=i.slice(0,1)),e.uploadFiles(i);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),w(Wo(e),"uploadFiles",(function(t){var n=K(t),r=n.map((function(t){return t.uid=Yj(),e.processFile(t,n)}));Promise.all(r).then((function(t){var n=e.props.onBatchStart;null==n||n(t.map((function(e){return{file:e.origin,parsedFile:e.parsedFile}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(t){e.post(t)}))}))})),w(Wo(e),"processFile",function(){var t=b(m().mark((function t(n,r){var o,i,a,l,c,s,u,d,f;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.beforeUpload,i=n,!o){t.next=14;break}return t.prev=3,t.next=6,o(n,r);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:l=t.sent,t.next=22;break;case 21:l=a;case 22:if("function"!=typeof(c=e.props.data)){t.next=29;break}return t.next=26,c(n);case 26:s=t.sent,t.next=30;break;case 29:s=c;case 30:return u="object"!==v(i)&&"string"!=typeof i||!i?n:i,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(f=d).uid=n.uid,t.abrupt("return",{origin:n,data:s,parsedFile:f,action:l});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,n){return t.apply(this,arguments)}}()),w(Wo(e),"saveFileInput",(function(t){e.fileInput=t})),e}return Se(r,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,o=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,l=a.onStart,c=a.customRequest,s=a.name,u=a.headers,d=a.withCredentials,f=a.method,p=r.uid,h=c||Hj,v={action:o,filename:s,data:n,file:i,headers:u,withCredentials:d,method:f||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,i)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,i,n),delete t.reqs[p]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,i),delete t.reqs[p]}};l(r),this.reqs[p]=h(v)}}},{key:"reset",value:function(){this.setState({uid:Yj()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e=this.props,n=e.component,r=e.prefixCls,o=e.className,i=e.classNames,a=void 0===i?{}:i,l=e.disabled,c=e.id,s=e.style,u=e.styles,d=void 0===u?{}:u,f=e.multiple,p=e.accept,h=e.capture,v=e.children,m=e.directory,g=e.openFileDialogOnClick,b=e.onMouseEnter,y=e.onMouseLeave,x=e.hasControlInside,C=To(e,Kj),k=_o()(w(w(w({},r,!0),"".concat(r,"-disabled"),l),o,o)),E=m?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},O=l?{}:{onClick:g?this.onClick:function(){},onKeyDown:g?this.onKeyDown:function(){},onMouseEnter:b,onMouseLeave:y,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:x?void 0:"0"};return t.createElement(n,pt({},O,{className:k,role:x?void 0:"button",style:s}),t.createElement("input",pt({},dl(C,{aria:!0,data:!0}),{id:c,disabled:l,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:S({display:"none"},d.input),className:a.input,accept:p},E,{multiple:f,onChange:this.onChange},null!=h?{capture:h}:{})),v)}}]),r}(t.Component),Qj=Xj;function Zj(){}var Jj=function(e){Bo(r,e);var n=Uo(r);function r(){var e;we(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return w(Wo(e=n.call.apply(n,[this].concat(o))),"uploader",void 0),w(Wo(e),"saveUploader",(function(t){e.uploader=t})),e}return Se(r,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return t.createElement(Qj,pt({},this.props,{ref:this.saveUploader}))}}]),r}(t.Component);w(Jj,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Zj,onError:Zj,onSuccess:Zj,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var eN=Jj;var tN=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Ve(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Ve(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Ve(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}};var nN=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i,calc:a}=e,l=`${t}-list-item`,c=`${l}-actions`,s=`${l}-action`,u=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[l]:{position:"relative",height:a(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},ca),{padding:`0 ${Ve(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{whiteSpace:"nowrap",[s]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${s}:focus-visible,\n &.picture ${s}\n `]:{opacity:1},[`${s}${n}-btn`]:{height:u,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${l}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[c]:{[`${r}, ${r}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};var rN=e=>{const{componentCls:t}=e,n=new wn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new wn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:sv(e)},n,r]};const oN=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},ca),{width:r,height:r,lineHeight:Ve(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${Ve(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${Rr[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Rr.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},iN=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`,c=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Ve(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Ve(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Ve(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:r,margin:`0 ${Ve(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Ve(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Ve(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var aN=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};const lN=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},sa(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}};var cN=Zl("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=Hl(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[lN(a),tN(a),oN(a),iN(a),nN(a),rN(a),aN(a),QC(a)]}),(e=>({actionsColor:e.colorTextDescription}))),sN={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},uN=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:sN}))};var dN=t.forwardRef(uN),fN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},pN=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:fN}))};var hN=t.forwardRef(pN),vN={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},mN=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:vN}))};var gN=t.forwardRef(mN);function bN(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function yN(e,t){const n=K(t),r=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===r?n.push(e):n[r]=e,n}function wN(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const xN=e=>0===e.indexOf("image/"),SN=e=>{if(e.type&&!e.thumbUrl)return xN(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},CN=200;function kN(e){return new Promise((t=>{if(!e.type||!xN(e.type))return void t("");const n=document.createElement("canvas");n.width=CN,n.height=CN,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=CN,l=CN,c=0,s=0;e>i?(l=i*(CN/e),s=-(l-a)/2):(a=e*(CN/i),c=-(a-l)/2),r.drawImage(o,c,s,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}))}var EN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},ON=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:EN}))};var _N=t.forwardRef(ON),$N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},jN=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:$N}))};var NN=t.forwardRef(jN),IN={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},PN=function(){var e=(0,t.useRef)([]),n=(0,t.useRef)(null);return(0,t.useEffect)((function(){var t=Date.now(),r=!1;e.current.forEach((function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&t-n.current<100&&(o.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),e.current};var MN=0,RN=Q();var AN=function(e){var n=G(t.useState(),2),r=n[0],o=n[1];return t.useEffect((function(){var e;o("rc_progress_".concat((RN?(e=MN,MN+=1):e="TEST_OR_SSR",e)))}),[]),e||r},TN=function(e){var n=e.bg,r=e.children;return t.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function qN(e,t){return Object.keys(e).map((function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)}))}var LN=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.color,i=e.gradientId,a=e.radius,l=e.style,c=e.ptg,s=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=o&&"object"===v(o),h=p?"#FFF":void 0,m=d/2,g=t.createElement("circle",{className:"".concat(r,"-circle-path"),r:a,cx:m,cy:m,stroke:h,strokeLinecap:s,strokeWidth:u,opacity:0===c?0:1,style:l,ref:n});if(!p)return g;var b="".concat(i,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",w=qN(o,(360-f)/360),x=qN(o,1),S="conic-gradient(from ".concat(y,", ").concat(w.join(", "),")"),C="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return t.createElement(t.Fragment,null,t.createElement("mask",{id:b},g),t.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(b,")")},t.createElement(TN,{bg:C},t.createElement(TN,{bg:S}))))}));var DN=LN,zN=100,BN=function(e,t,n,r,o,i,a,l,c,s){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),f=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-r)/100*t;"round"===c&&100!==r&&(p+=s/2)>=t&&(p=t-.01);return{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(o+d+f,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},FN=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function HN(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var WN=function(e){var n,r,o,i=S(S({},IN),e),a=i.id,l=i.prefixCls,c=i.steps,s=i.strokeWidth,u=i.trailWidth,d=i.gapDegree,f=void 0===d?0:d,p=i.gapPosition,h=i.trailColor,m=i.strokeLinecap,g=i.style,b=i.className,y=i.strokeColor,w=i.percent,x=To(i,FN),C=AN(a),k="".concat(C,"-gradient"),E=50-s/2,O=2*Math.PI*E,_=f>0?90+f/2:-90,$=O*((360-f)/360),j="object"===v(c)?c:{count:c,gap:2},N=j.count,I=j.gap,P=HN(w),M=HN(y),R=M.find((function(e){return e&&"object"===v(e)})),A=R&&"object"===v(R)?"butt":m,T=BN(O,$,0,100,_,f,p,h,A,s),q=PN();return t.createElement("svg",pt({className:_o()("".concat(l,"-circle"),b),viewBox:"0 0 ".concat(zN," ").concat(zN),style:g,id:a,role:"presentation"},x),!N&&t.createElement("circle",{className:"".concat(l,"-circle-trail"),r:E,cx:50,cy:50,stroke:h,strokeLinecap:A,strokeWidth:u||s,style:T}),N?(n=Math.round(N*(P[0]/100)),r=100/N,o=0,new Array(N).fill(null).map((function(e,i){var a=i<=n-1?M[0]:h,c=a&&"object"===v(a)?"url(#".concat(k,")"):void 0,u=BN(O,$,o,r,_,f,p,a,"butt",s,I);return o+=100*($-u.strokeDashoffset+I)/$,t.createElement("circle",{key:i,className:"".concat(l,"-circle-path"),r:E,cx:50,cy:50,stroke:c,strokeWidth:s,opacity:1,style:u,ref:function(e){q[i]=e}})}))):function(){var e=0;return P.map((function(n,r){var o=M[r]||M[M.length-1],i=BN(O,$,e,n,_,f,p,o,A,s);return e+=n,t.createElement(DN,{key:r,color:o,ptg:n,radius:E,prefixCls:l,gradientId:k,style:i,strokeLinecap:A,strokeWidth:s,gapDegree:f,ref:function(e){q[r]=e},size:zN})})).reverse()}())};function VN(e){return!e||e<0?0:e>100?100:e}function UN(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const GN=(e,t,n)=>{var r,o,i,a;let l=-1,c=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=r?r:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:Array.isArray(e)&&(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,c=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,c]};var YN=e=>{const{prefixCls:n,trailColor:r=null,strokeLinecap:o="round",gapPosition:i,gapDegree:a,width:l=120,type:c,children:s,success:u,size:d=l,steps:f}=e,[p,h]=GN(d,"circle");let{strokeWidth:v}=e;void 0===v&&(v=Math.max((e=>3/e*100)(p),6));const m={width:p,height:h,fontSize:.15*p+6},g=t.useMemo((()=>a||0===a?a:"dashboard"===c?75:void 0),[a,c]),b=(e=>{let{percent:t,success:n,successPercent:r}=e;const o=VN(UN({success:n,successPercent:r}));return[o,VN(VN(t)-o)]})(e),y=i||"dashboard"===c&&"bottom"||void 0,w="[object Object]"===Object.prototype.toString.call(e.strokeColor),x=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Er.green,n||null]})({success:u,strokeColor:e.strokeColor}),S=_o()(`${n}-inner`,{[`${n}-circle-gradient`]:w}),C=t.createElement(WN,{steps:f,percent:f?b[1]:b,strokeWidth:v,trailWidth:v,strokeColor:f?x[1]:x,strokeLinecap:o,trailColor:r,prefixCls:n,gapDegree:g,gapPosition:y}),k=p<=20,E=t.createElement("div",{className:S,style:m},C,!k&&s);return k?t.createElement(eh,{title:s},E):E};const KN="--progress-line-stroke-color",XN="--progress-percent",QN=e=>{const t=e?"100%":"-100%";return new wn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ZN=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},sa(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${KN})`]},height:"100%",width:`calc(1 / var(${XN}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Ve(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:QN(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:QN(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},JN=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},eI=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},tI=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}};var nI=Zl("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Hl(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[ZN(n),JN(n),eI(n),tI(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}))),rI=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const oI=(e,t)=>{const{from:n=Er.blue,to:r=Er.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=rI(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i),t=`linear-gradient(${o}, ${e})`;return{background:t,[KN]:t}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[KN]:a}};var iI=e=>{const{prefixCls:n,direction:r,percent:o,size:i,strokeWidth:a,strokeColor:l,strokeLinecap:c="round",children:s,trailColor:u=null,percentPosition:d,success:f}=e,{align:p,type:h}=d,v=l&&"string"!=typeof l?oI(l,r):{[KN]:l,background:l},m="square"===c||"butt"===c?0:void 0,g=null!=i?i:[-1,a||("small"===i?6:8)],[b,y]=GN(g,"line",{strokeWidth:a});const w={backgroundColor:u||void 0,borderRadius:m},x=Object.assign(Object.assign({width:`${VN(o)}%`,height:y,borderRadius:m},v),{[XN]:VN(o)/100}),S=UN(e),C={width:`${VN(S)}%`,height:y,borderRadius:m,backgroundColor:null==f?void 0:f.strokeColor},k={width:b<0?"100%":b},E=t.createElement("div",{className:`${n}-inner`,style:w},t.createElement("div",{className:_o()(`${n}-bg`,`${n}-bg-${h}`),style:x},"inner"===h&&s),void 0!==S&&t.createElement("div",{className:`${n}-success-bg`,style:C})),O="outer"===h&&"start"===p,_="outer"===h&&"end"===p;return"outer"===h&&"center"===p?t.createElement("div",{className:`${n}-layout-bottom`},E,s):t.createElement("div",{className:`${n}-outer`,style:k},O&&s,E,_&&s)};var aI=e=>{const{size:n,steps:r,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:l=null,prefixCls:c,children:s}=e,u=Math.round(r*(o/100)),d=null!=n?n:["small"===n?2:14,i],[f,p]=GN(d,"step",{steps:r,strokeWidth:i}),h=f/r,v=new Array(r);for(let e=0;e<r;e++){const n=Array.isArray(a)?a[e]:a;v[e]=t.createElement("div",{key:e,className:_o()(`${c}-steps-item`,{[`${c}-steps-item-active`]:e<=u-1}),style:{backgroundColor:e<=u-1?n:l,width:h,height:p}})}return t.createElement("div",{className:`${c}-steps-outer`},v,s)},lI=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const cI=["normal","exception","active","success"],sI=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,rootClassName:i,steps:a,strokeColor:l,percent:c=0,size:s="default",showInfo:u=!0,type:d="line",status:f,format:p,style:h,percentPosition:v={}}=e,m=lI(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:g="end",type:b="outer"}=v,y=Array.isArray(l)?l[0]:l,w="string"==typeof l||Array.isArray(l)?l:void 0,x=t.useMemo((()=>{if(y){const e="string"==typeof y?y:Object.values(y)[0];return new to(e).isLight()}return!1}),[l]),S=t.useMemo((()=>{var t,n;const r=UN(e);return parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=c?c:0)||void 0===n?void 0:n.toString(),10)}),[c,e.success,e.successPercent]),C=t.useMemo((()=>!cI.includes(f)&&S>=100?"success":f||"normal"),[f,S]),{getPrefixCls:k,direction:E,progress:O}=t.useContext(B),_=k("progress",r),[$,j,N]=nI(_),I="line"===d,P=I&&!a,M=t.useMemo((()=>{if(!u)return null;const n=UN(e);let r;const o=p||(e=>`${e}%`),i=I&&x&&"inner"===b;return"inner"===b||p||"exception"!==C&&"success"!==C?r=o(VN(c),VN(n)):"exception"===C?r=I?t.createElement(Ua,null):t.createElement(Ka,null):"success"===C&&(r=I?t.createElement(Ha,null):t.createElement($w,null)),t.createElement("span",{className:_o()(`${_}-text`,{[`${_}-text-bright`]:i,[`${_}-text-${g}`]:P,[`${_}-text-${b}`]:P}),title:"string"==typeof r?r:void 0},r)}),[u,c,S,C,d,_,p]);let R;"line"===d?R=a?t.createElement(aI,Object.assign({},e,{strokeColor:w,prefixCls:_,steps:"object"==typeof a?a.count:a}),M):t.createElement(iI,Object.assign({},e,{strokeColor:y,prefixCls:_,direction:E,percentPosition:{align:g,type:b}}),M):"circle"!==d&&"dashboard"!==d||(R=t.createElement(YN,Object.assign({},e,{strokeColor:y,prefixCls:_,progressStatus:C}),M));const A=_o()(_,`${_}-status-${C}`,{[`${_}-${"dashboard"===d?"circle":d}`]:"line"!==d,[`${_}-inline-circle`]:"circle"===d&&GN(s,"circle")[0]<=20,[`${_}-line`]:P,[`${_}-line-align-${g}`]:P,[`${_}-line-position-${b}`]:P,[`${_}-steps`]:a,[`${_}-show-info`]:u,[`${_}-${s}`]:"string"==typeof s,[`${_}-rtl`]:"rtl"===E},null==O?void 0:O.className,o,i,j,N);return $(t.createElement("div",Object.assign({ref:n,style:Object.assign(Object.assign({},null==O?void 0:O.style),h),className:A,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},Tc(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))}));var uI=sI;const dI=t.forwardRef(((e,n)=>{let{prefixCls:r,className:o,style:i,locale:a,listType:l,file:c,items:s,progress:u,iconRender:d,actionIconRender:f,itemRender:p,isImgUrl:h,showPreviewIcon:v,showRemoveIcon:m,showDownloadIcon:g,previewIcon:b,removeIcon:y,downloadIcon:w,extra:x,onPreview:S,onDownload:C,onClose:k}=e;var E,O;const{status:_}=c,[$,j]=t.useState(_);t.useEffect((()=>{"removed"!==_&&j(_)}),[_]);const[N,I]=t.useState(!1);t.useEffect((()=>{const e=setTimeout((()=>{I(!0)}),300);return()=>{clearTimeout(e)}}),[]);const P=d(c);let M=t.createElement("div",{className:`${r}-icon`},P);if("picture"===l||"picture-card"===l||"picture-circle"===l)if("uploading"===$||!c.thumbUrl&&!c.url){const e=_o()(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:"uploading"!==$});M=t.createElement("div",{className:e},P)}else{const e=(null==h?void 0:h(c))?t.createElement("img",{src:c.thumbUrl||c.url,alt:c.name,className:`${r}-list-item-image`,crossOrigin:c.crossOrigin}):P,n=_o()(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:h&&!h(c)});M=t.createElement("a",{className:n,onClick:e=>S(c,e),href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const R=_o()(`${r}-list-item`,`${r}-list-item-${$}`),A="string"==typeof c.linkProps?JSON.parse(c.linkProps):c.linkProps,T=m?f(("function"==typeof y?y(c):y)||t.createElement(_N,null),(()=>k(c)),r,a.removeFile,!0):null,q=g&&"done"===$?f(("function"==typeof w?w(c):w)||t.createElement(NN,null),(()=>C(c)),r,a.downloadFile):null,L="picture-card"!==l&&"picture-circle"!==l&&t.createElement("span",{key:"download-delete",className:_o()(`${r}-list-item-actions`,{picture:"picture"===l})},q,T),D="function"==typeof x?x(c):x,z=D&&t.createElement("span",{className:`${r}-list-item-extra`},D),F=_o()(`${r}-list-item-name`),H=c.url?t.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:F,title:c.name},A,{href:c.url,onClick:e=>S(c,e)}),c.name,z):t.createElement("span",{key:"view",className:F,onClick:e=>S(c,e),title:c.name},c.name,z),W=v&&(c.url||c.thumbUrl)?t.createElement("a",{href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>S(c,e),title:a.previewFile},"function"==typeof b?b(c):b||t.createElement(ug,null)):null,V=("picture-card"===l||"picture-circle"===l)&&"uploading"!==$&&t.createElement("span",{className:`${r}-list-item-actions`},W,"done"===$&&q,T),{getPrefixCls:U}=t.useContext(B),G=U(),Y=t.createElement("div",{className:R},M,H,L,V,N&&t.createElement(Yi,{motionName:`${G}-fade`,visible:"uploading"===$,motionDeadline:2e3},(e=>{let{className:n}=e;const o="percent"in c?t.createElement(uI,Object.assign({},u,{type:"line",percent:c.percent,"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"]})):null;return t.createElement("div",{className:_o()(`${r}-list-item-progress`,n)},o)}))),K=c.response&&"string"==typeof c.response?c.response:(null===(E=c.error)||void 0===E?void 0:E.statusText)||(null===(O=c.error)||void 0===O?void 0:O.message)||a.uploadError,X="error"===$?t.createElement(eh,{title:K,getPopupContainer:e=>e.parentNode},Y):Y;return t.createElement("div",{className:_o()(`${r}-list-item-container`,o),style:i,ref:n},p?p(X,c,s,{download:C.bind(null,c),preview:S.bind(null,c),remove:k.bind(null,c)}):X)}));var fI=dI;const pI=(e,n)=>{const{listType:r="text",previewFile:o=kN,onPreview:i,onDownload:a,onRemove:l,locale:c,iconRender:s,isImageUrl:u=SN,prefixCls:d,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:h=!0,showDownloadIcon:v=!1,removeIcon:m,previewIcon:g,downloadIcon:b,extra:y,progress:w={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:S=!0,itemRender:C,disabled:k}=e,E=function(){const[,e]=t.useReducer((e=>e+1),0);return e}(),[O,_]=t.useState(!1);t.useEffect((()=>{"picture"!==r&&"picture-card"!==r&&"picture-circle"!==r||(f||[]).forEach((e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",o&&o(e.originFileObj).then((t=>{e.thumbUrl=t||"",E()})))}))}),[r,f,o]),t.useEffect((()=>{_(!0)}),[]);const $=(e,t)=>{if(i)return null==t||t.preventDefault(),i(e)},j=e=>{"function"==typeof a?a(e):e.url&&window.open(e.url)},N=e=>{null==l||l(e)},I=e=>{if(s)return s(e,r);const n="uploading"===e.status,o=(null==u?void 0:u(e))?t.createElement(gN,null):t.createElement(dN,null);let i=n?t.createElement(ol,null):t.createElement(hN,null);return"picture"===r?i=n?t.createElement(ol,null):o:"picture-card"!==r&&"picture-circle"!==r||(i=n?c.uploading:o),i},P=(e,n,r,o,i)=>{const a={type:"text",size:"small",title:o,onClick:r=>{var o,i;n(),t.isValidElement(e)&&(null===(i=(o=e.props).onClick)||void 0===i||i.call(o,r))},className:`${r}-list-item-action`};if(i&&(a.disabled=k),t.isValidElement(e)){const n=zc(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return t.createElement(Qs,Object.assign({},a,{icon:n}))}return t.createElement(Qs,Object.assign({},a),t.createElement("span",null,e))};t.useImperativeHandle(n,(()=>({handlePreview:$,handleDownload:j})));const{getPrefixCls:M}=t.useContext(B),R=M("upload",d),A=M(),T=_o()(`${R}-list`,`${R}-list-${r}`),q=K(f.map((e=>({key:e.uid,file:e}))));let L={motionDeadline:2e3,motionName:`${R}-${"picture-card"===r||"picture-circle"===r?"animate-inline":"animate"}`,keys:q,motionAppear:O};const D=t.useMemo((()=>{const e=Object.assign({},xp(A));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e}),[A]);return"picture-card"!==r&&"picture-circle"!==r&&(L=Object.assign(Object.assign({},D),L)),t.createElement("div",{className:T},t.createElement(Gi,Object.assign({},L,{component:!1}),(e=>{let{key:n,file:o,className:i,style:a}=e;return t.createElement(fI,{key:n,locale:c,prefixCls:R,className:i,style:a,file:o,items:f,progress:w,listType:r,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:v,removeIcon:m,previewIcon:g,downloadIcon:b,extra:y,iconRender:I,actionIconRender:P,itemRender:C,onPreview:$,onDownload:j,onClose:N})})),x&&t.createElement(Yi,Object.assign({},L,{visible:S,forceRender:!0}),(e=>{let{className:t,style:n}=e;return zc(x,(e=>({className:_o()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))};var hI=t.forwardRef(pI),vI=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,l)}c((r=r.apply(e,t||[])).next())}))};const mI=`__LIST_IGNORE_${Date.now()}__`,gI=(e,n)=>{const{fileList:r,defaultFileList:o,onRemove:i,showUploadList:a=!0,listType:l="text",onPreview:c,onDownload:s,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:h,iconRender:v,isImageUrl:m,progress:g,prefixCls:b,className:y,type:w="select",children:x,style:S,itemRender:C,maxCount:E,data:O={},multiple:_=!1,hasControlInside:$=!0,action:j="",accept:N="",supportServerRender:I=!0,rootClassName:P}=e,M=t.useContext(bo),R=null!=p?p:M,[A,T]=Zo(o||[],{value:r,postState:e=>null!=e?e:[]}),[q,L]=t.useState("drop"),D=t.useRef(null),z=t.useRef(null);t.useMemo((()=>{const e=Date.now();(r||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[r]);const F=(e,t,n)=>{let r=K(t),o=!1;1===E?r=r.slice(-1):E&&(o=r.length>E,r=r.slice(0,E)),(0,k.flushSync)((()=>{T(r)}));const i={file:e,fileList:r};n&&(i.event=n),o&&"removed"!==e.status&&!r.some((t=>t.uid===e.uid))||(0,k.flushSync)((()=>{null==u||u(i)}))},H=e=>{const t=e.filter((e=>!e.file[mI]));if(!t.length)return;const n=t.map((e=>bN(e.file)));let r=K(A);n.forEach((e=>{r=yN(e,r)})),n.forEach(((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}F(o,r)}))},W=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!wN(t,A))return;const r=bN(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=yN(r,A);F(r,o)},V=(e,t)=>{if(!wN(t,A))return;const n=bN(t);n.status="uploading",n.percent=e.percent;const r=yN(n,A);F(n,r,e)},U=(e,t,n)=>{if(!wN(n,A))return;const r=bN(n);r.error=e,r.response=t,r.status="error";const o=yN(r,A);F(r,o)},G=e=>{let t;Promise.resolve("function"==typeof i?i(e):i).then((n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter((t=>t[n]!==e[n]));return r.length===t.length?null:r}(e,A);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==A||A.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=D.current)||void 0===r||r.abort(t),F(t,o))}))},Y=e=>{L(e.type),"drop"===e.type&&(null==d||d(e))};t.useImperativeHandle(n,(()=>({onBatchStart:H,onSuccess:W,onProgress:V,onError:U,fileList:A,upload:D.current,nativeElement:z.current})));const{getPrefixCls:X,direction:Q,upload:Z}=t.useContext(B),J=X("upload",b),ee=Object.assign(Object.assign({onBatchStart:H,onError:U,onProgress:V,onSuccess:W},e),{data:O,multiple:_,action:j,accept:N,supportServerRender:I,prefixCls:J,disabled:R,beforeUpload:(t,n)=>vI(void 0,void 0,void 0,(function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[mI],e===mI)return Object.defineProperty(t,mI,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i})),onChange:void 0,hasControlInside:$});delete ee.className,delete ee.style,x&&!R||delete ee.id;const te=`${J}-wrapper`,[ne,re,oe]=cN(J,te),[ie]=th("Upload",Dn.Upload),{showRemoveIcon:ae,showPreviewIcon:le,showDownloadIcon:ce,removeIcon:se,previewIcon:ue,downloadIcon:de,extra:fe}="boolean"==typeof a?{}:a,pe=void 0===ae?!R:!!ae,he=(e,n)=>a?t.createElement(hI,{prefixCls:J,listType:l,items:A,previewFile:f,onPreview:c,onDownload:s,onRemove:G,showRemoveIcon:pe,showPreviewIcon:le,showDownloadIcon:ce,removeIcon:se,previewIcon:ue,downloadIcon:de,iconRender:v,extra:fe,locale:Object.assign(Object.assign({},ie),h),isImageUrl:m,progress:g,appendAction:e,appendActionVisible:n,itemRender:C,disabled:R}):e,ve=_o()(te,y,P,re,oe,null==Z?void 0:Z.className,{[`${J}-rtl`]:"rtl"===Q,[`${J}-picture-card-wrapper`]:"picture-card"===l,[`${J}-picture-circle-wrapper`]:"picture-circle"===l}),me=Object.assign(Object.assign({},null==Z?void 0:Z.style),S);if("drag"===w){const e=_o()(re,J,`${J}-drag`,{[`${J}-drag-uploading`]:A.some((e=>"uploading"===e.status)),[`${J}-drag-hover`]:"dragover"===q,[`${J}-disabled`]:R,[`${J}-rtl`]:"rtl"===Q});return ne(t.createElement("span",{className:ve,ref:z},t.createElement("div",{className:e,style:me,onDrop:Y,onDragOver:Y,onDragLeave:Y},t.createElement(eN,Object.assign({},ee,{ref:D,className:`${J}-btn`}),t.createElement("div",{className:`${J}-drag-container`},x))),he()))}const ge=_o()(J,`${J}-select`,{[`${J}-disabled`]:R}),be=t.createElement("div",{className:ge,style:x?void 0:{display:"none"}},t.createElement(eN,Object.assign({},ee,{ref:D})));return ne("picture-card"===l||"picture-circle"===l?t.createElement("span",{className:ve,ref:z},he(be,!!x)):t.createElement("span",{className:ve,ref:z},be,he()))};var bI=t.forwardRef(gI),yI=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wI=t.forwardRef(((e,n)=>{var{style:r,height:o,hasControlInside:i=!1}=e,a=yI(e,["style","height","hasControlInside"]);return t.createElement(bI,Object.assign({ref:n,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))}));var xI=wI;const SI=bI;SI.Dragger=xI,SI.LIST_IGNORE=mI;var CI=SI,kI={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"},EI=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:kI}))};var OI=t.forwardRef(EI);function _I(e){return _I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_I(e)}function $I(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$I=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(I([])));S&&S!==n&&r.call(S,a)&&(w=S);var C=y.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==_I(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=_(l,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(_I(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function jI(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function NI(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){jI(i,r,o,a,l,"next",e)}function l(e){jI(i,r,o,a,l,"throw",e)}a(void 0)}))}}function II(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PI(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PI(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var MI=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=e.id,p=II(l(),2),h=(p[0],p[1]),v=null===(n=e.field)||void 0===n?void 0:n.fieldType,m=null===(o=e.field)||void 0===o?void 0:o.parentId,g=null===(i=e.field)||void 0===i?void 0:i.index,b=null===(a=e.field)||void 0===a?void 0:a.repeaterData,y=II((0,t.useState)(!1),2),w=y[0],x=y[1],S=II((0,t.useState)(""),2),C=S[0],k=S[1],E=II((0,t.useState)(!1),2),O=E[0],_=E[1],$=II((0,t.useState)(null),2),j=$[0],N=$[1],I=function(){var e=NI($I().mark((function e(t){var n,r,o;return $I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),(n=new FormData).append("file",t),e.prev=3,e.next=6,fetch("".concat(rtsbParams.restApiUrl,"wp/v2/media"),{method:"POST",body:n,headers:{"X-WP-Nonce":rtsbParams.rest_nonce}});case 6:if((r=e.sent).ok){e.next=9;break}throw new Error("Network response was not ok");case 9:return e.next=11,r.json();case 11:o=e.sent,Ac.success({message:"File uploaded successfully!."}),h({type:d,id:f,value:{id:o.id,source:o.source_url},fieldType:v,parentId:m,repeaterData:b,index:g}),N({id:o.id,source:o.source_url}),e.next=22;break;case 17:e.prev=17,e.t0=e.catch(3),console.error(e.t0),zj.error("File upload failed."),N(null);case 22:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=NI($I().mark((function e(){return $I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:k(null==j?void 0:j.source),x(!0);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=NI($I().mark((function e(){return $I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(N(null),_(!0),j){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,fetch("".concat(rtsbParams.restApiUrl,"wp/v2/media/").concat(j.id,"?force=True"),{method:"DELETE",headers:{"X-WP-Nonce":rtsbParams.rest_nonce}});case 7:if(!e.sent.ok){e.next=15;break}return e.next=11,h({type:d,id:f,value:null,fieldType:v,parentId:m,repeaterData:b,index:g});case 11:return e.next=13,Ac.success({message:"File deleted successfully!"});case 13:e.next=16;break;case 15:throw new Error("Network response was not ok");case 16:N(null),e.next=24;break;case 19:e.prev=19,e.t0=e.catch(4),console.error(e.t0),zj.error("File deletion failed."),N(null);case 24:_(!1);case 25:case"end":return e.stop()}}),e,null,[[4,19]])})));return function(){return e.apply(this,arguments)}}(),R=(0,r.jsxs)("div",{children:[O?(0,r.jsx)(ol,{}):(0,r.jsx)(OI,{}),(0,r.jsx)("div",{style:{marginTop:8},children:"Upload"})]});return(0,t.useEffect)((function(){N("object"!=_I(u)&&u?JSON.parse(u.replace(/\\/g,"")):u)}),[]),(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsxs)("div",{className:"rtsb-field-control",children:[(0,r.jsxs)("div",{className:"rtsb-field-upload-wrapper",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:[(0,r.jsx)(CI,{name:"avatar",listType:"picture-card",className:"rtsb-avatar-uploader ".concat(null!=j&&j.source?"rtsb-avatar-uploaded":"rtsb-avatar-deleted"," "),customRequest:function(e){var t=e.file,n=e.onSuccess,r=e.onError;setTimeout((function(){I(t).then((function(){return n("ok")})).catch((function(e){console.error(e),r(e)}))}),0)},onPreview:P,children:null!=j&&j.source?(0,r.jsx)("img",{src:null==j?void 0:j.source,alt:"avatar",style:{width:"100%"}}):R}),null!=j&&j.source?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"image-preview-overlay",children:[(0,r.jsx)(ug,{className:"preview-icon",onClick:function(){return P()}}),(0,r.jsx)(_N,{className:"delete-icon",onClick:M})]})}):null]}),(0,r.jsx)(Kv,{open:w,title:"Image Preview",footer:null,className:"rtsb-image-preview-modal",styles:{body:{padding:"15px"}},onCancel:function(){return x(!1)},children:(0,r.jsx)("img",{alt:"Preview",style:{width:"100%"},src:C})})]}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function RI(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,s=Date.now()-f;function h(){f=Date.now(),t.apply(l,o)}function v(){r=void 0}d||(c||!u||r||h(),p(),void 0===u&&s>e?c?(f=Date.now(),a||(r=setTimeout(u?v:h,e))):h():!0!==a&&(r=setTimeout(u?v:h,void 0===u?e-s:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const AI=80*Math.PI,TI=e=>{const{dotClassName:n,style:r,hasCircleCls:o}=e;return t.createElement("circle",{className:_o()(`${n}-circle`,{[`${n}-circle-bg`]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:r})};var qI=e=>{let{percent:n,prefixCls:r}=e;const o=`${r}-dot`,i=`${o}-holder`,a=`${i}-hidden`,[l,c]=t.useState(!1);Je((()=>{0!==n&&c(!0)}),[0!==n]);const s=Math.max(Math.min(n,100),0);if(!l)return null;const u={strokeDashoffset:""+AI/4,strokeDasharray:`${AI*s/100} ${AI*(100-s)/100}`};return t.createElement("span",{className:_o()(i,`${o}-progress`,s<=0&&a)},t.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},t.createElement(TI,{dotClassName:o,hasCircleCls:!0}),t.createElement(TI,{dotClassName:o,style:u})))};function LI(e){const{prefixCls:n,percent:r=0}=e,o=`${n}-dot`,i=`${o}-holder`,a=`${i}-hidden`;return t.createElement(t.Fragment,null,t.createElement("span",{className:_o()(i,r>0&&a)},t.createElement("span",{className:_o()(o,`${n}-dot-spin`)},[1,2,3,4].map((e=>t.createElement("i",{className:`${n}-dot-item`,key:e}))))),t.createElement(qI,{prefixCls:n,percent:r}))}function DI(e){const{prefixCls:n,indicator:r,percent:o}=e,i=`${n}-dot`;return r&&t.isValidElement(r)?zc(r,{className:_o()(r.props.className,i),percent:o}):t.createElement(LI,{prefixCls:n,percent:o})}const zI=new wn("antSpinMove",{to:{opacity:1}}),BI=new wn("antRotate",{to:{transform:"rotate(405deg)"}}),FI=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},sa(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",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]:{[`${t}-dot-holder`]:{color: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-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${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(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:zI,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:BI,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{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`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{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 HI=Zl("Spin",(e=>{const t=Hl(e,{spinDotDefault:e.colorTextDescription});return[FI(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));const WI=[[30,.05],[70,.03],[96,.01]];var VI=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let UI;const GI=e=>{var n;const{prefixCls:r,spinning:o=!0,delay:i=0,className:a,rootClassName:l,size:c="default",tip:s,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:h,percent:v}=e,m=VI(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:b,spin:y}=t.useContext(B),w=g("spin",r),[x,S,C]=HI(w),[k,E]=t.useState((()=>o&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(o,i))),O=function(e,n){const[r,o]=t.useState(0),i=t.useRef(),a="auto"===n;return t.useEffect((()=>(a&&e&&(o(0),i.current=setInterval((()=>{o((e=>{const t=100-e;for(let n=0;n<WI.length;n+=1){const[r,o]=WI[n];if(e<=r)return e+t*o}return e}))}),200)),()=>{clearInterval(i.current)})),[a,e]),a?r:n}(k,v);t.useEffect((()=>{if(o){const e=RI(i,(()=>{E(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}E(!1)}),[i,o]);const _=t.useMemo((()=>void 0!==f&&!p),[f,p]);const $=_o()(w,null==y?void 0:y.className,{[`${w}-sm`]:"small"===c,[`${w}-lg`]:"large"===c,[`${w}-spinning`]:k,[`${w}-show-text`]:!!s,[`${w}-rtl`]:"rtl"===b},a,!p&&l,S,C),j=_o()(`${w}-container`,{[`${w}-blur`]:k}),N=null!==(n=null!=h?h:null==y?void 0:y.indicator)&&void 0!==n?n:UI,I=Object.assign(Object.assign({},null==y?void 0:y.style),d),P=t.createElement("div",Object.assign({},m,{style:I,className:$,"aria-live":"polite","aria-busy":k}),t.createElement(DI,{prefixCls:w,indicator:N,percent:O}),s&&(_||p)?t.createElement("div",{className:`${w}-text`},s):null);return x(_?t.createElement("div",Object.assign({},m,{className:_o()(`${w}-nested-loading`,u,S,C)}),k&&t.createElement("div",{key:"loading"},P),t.createElement("div",{className:j,key:"container"},f)):p?t.createElement("div",{className:_o()(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:k},l,S,C)},P):P)};GI.setDefaultIndicator=e=>{UI=e};var YI=GI,KI=["fetchOptions","initialOptions","debounceTimeout"];function XI(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */XI=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(I([])));S&&S!==n&&r.call(S,a)&&(w=S);var C=y.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==QI(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=_(l,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(QI(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function QI(e){return QI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QI(e)}function ZI(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JI(Object(n),!0).forEach((function(t){tP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=QI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=QI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==QI(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rP(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oP(e){var n=e.fetchOptions,o=e.initialOptions,i=void 0===o?[]:o,a=e.debounceTimeout,l=void 0===a?400:a,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,KI),s=nP((0,t.useState)(!1),2),u=s[0],d=s[1],f=nP((0,t.useState)(i),2),p=f[0],h=f[1],v=(0,t.useRef)(0),m=(0,t.useMemo)((function(){return hj((function(e){v.current+=1;var t=v.current;h([]),d(!0),n(e).then((function(e){t===v.current&&(h(e),d(!1))}))}),l)}),[n,l]);return(0,r.jsx)(Lw,eP(eP({filterOption:!1,onSearch:m,notFoundContent:u?(0,r.jsx)(YI,{size:"small"}):null},c),{},{children:p.map((function(e){return(0,r.jsx)(Lw.Option,{value:e.value,children:e.label},e.value)}))}))}function iP(){var e;return e=XI().mark((function e(t,n){var r,o,i,a;return XI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=new URLSearchParams).append("action","rtsb_get_multiselect_data"),r.append("__rtsb_wpnonce",rtsbParams.nonce),null!=t&&t.func_with_param&&r.append("func_with_param",JSON.stringify(null==t?void 0:t.func_with_param)),n&&r.append("s",n),o=rtsbParams.ajaxurl.includes("?"),i=o?"&":"?",a="".concat(rtsbParams.ajaxurl).concat(i).concat(r.toString()),e.abrupt("return",fetch(a).then((function(e){return e.json()})).then((function(e){return e.data.map((function(e){return{label:e.label,value:e.value}}))})));case 9:case"end":return e.stop()}}),e)})),iP=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ZI(i,r,o,a,l,"next",e)}function l(e){ZI(i,r,o,a,l,"throw",e)}a(void 0)}))},iP.apply(this,arguments)}var aP=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=(c.empty,c.searchable,c.placeholder),h=null===(t=e.field)||void 0===t?void 0:t.fieldType,v=null===(n=e.field)||void 0===n?void 0:n.parentId,m=null===(o=e.field)||void 0===o?void 0:o.index,g=null===(i=e.field)||void 0===i?void 0:i.repeaterData,b=nP(l(),2),y=(b[0],b[1]),w=(s||[]).map((function(e){return"object"!==QI(e)?JSON.parse(e):e})),x=w.concat(f),S=new Set,C=x.filter((function(e){return!S.has(e.value)&&(S.add(e.value),!0)}));return(0,r.jsxs)("div",{className:"rtsb-field select",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(oP,{mode:"multiple",value:w,placeholder:p,initialOptions:C,fetchOptions:function(e){return function(e,t){return iP.apply(this,arguments)}(c,e)},onChange:function(e,t){var n=t.map((function(e){return{value:e.value,label:e.children}}));y({type:d,id:a,value:n,fieldType:h,parentId:v,repeaterData:g,index:m})},style:{width:"100%"}})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};const lP=t.createContext(null),cP=lP.Provider;var sP=lP;const uP=t.createContext(null),dP=uP.Provider,fP=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},sa(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},pP=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:h,lineType:v,radioColor:m,radioBgColor:g,calc:b}=e,y=`${t}-inner`,w=b(o).sub(b(4).mul(2)),x=b(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},sa(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Ve(u)} ${v} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},sa(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},da(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:g,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(w).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},hP=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:h,paddingXS:v,borderRadius:m,borderRadiusSM:g,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:S,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:k,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:_,buttonSolidCheckedBg:$,buttonSolidCheckedHoverBg:j,buttonSolidCheckedActiveBg:N,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:Ve(I(n).sub(I(o).mul(2)).equal()),background:d,border:`${Ve(o)} ${i} ${a}`,borderBlockStartWidth:I(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:I(o).mul(-1).equal(),insetInlineStart:I(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${Ve(o)} ${i} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:Ve(I(p).sub(I(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:h,paddingInline:I(v).sub(o).equal(),paddingBlock:0,lineHeight:Ve(I(h).sub(I(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},da(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:_,borderColor:_,"&::before":{backgroundColor:_}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:$,borderColor:$,"&:hover":{color:w,background:j,borderColor:j},"&:active":{color:w,background:N,borderColor:N}},"&-disabled":{color:x,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:C,borderColor:a,boxShadow:"none"}}}};var vP=Zl("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Ve(n)} ${t}`,o=Hl(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[fP(o),pP(o),hP(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:h}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}}),mP=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gP=(e,n)=>{var r,o;const i=t.useContext(sP),a=t.useContext(uP),{getPrefixCls:l,direction:c,radio:s}=t.useContext(B),u=t.useRef(null),d=Po(n,u),{isFormItemInput:f}=t.useContext(dp);const p=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:h,className:v,rootClassName:m,children:g,style:b,title:y}=e,w=mP(e,["prefixCls","className","rootClassName","children","style","title"]),x=l("radio",h),S="button"===((null==i?void 0:i.optionType)||a),C=S?`${x}-button`:x,k=El(x),[E,O,_]=vP(x,k),$=Object.assign({},w),j=t.useContext(bo);i&&($.name=i.name,$.onChange=p,$.checked=e.value===i.value,$.disabled=null!==(r=$.disabled)&&void 0!==r?r:i.disabled),$.disabled=null!==(o=$.disabled)&&void 0!==o?o:j;const N=_o()(`${C}-wrapper`,{[`${C}-wrapper-checked`]:$.checked,[`${C}-wrapper-disabled`]:$.disabled,[`${C}-wrapper-rtl`]:"rtl"===c,[`${C}-wrapper-in-form-item`]:f},null==s?void 0:s.className,v,m,O,_,k);return E(t.createElement(Kc,{component:"Radio",disabled:$.disabled},t.createElement("label",{className:N,style:Object.assign(Object.assign({},null==s?void 0:s.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},t.createElement(qE,Object.assign({},$,{className:_o()($.className,{[Hc]:!S}),type:"radio",prefixCls:C,ref:d})),void 0!==g?t.createElement("span",null,g):null)))};var bP=t.forwardRef(gP);const yP=t.forwardRef(((e,n)=>{const{getPrefixCls:r,direction:o}=t.useContext(B),[i,a]=Zo(e.defaultValue,{value:e.value}),{prefixCls:l,className:c,rootClassName:s,options:u,buttonStyle:d="outline",disabled:f,children:p,size:h,style:v,id:m,onMouseEnter:g,onMouseLeave:b,onFocus:y,onBlur:w}=e,x=r("radio",l),S=`${x}-group`,C=El(x),[k,E,O]=vP(x,C);let _=p;u&&u.length>0&&(_=u.map((e=>"string"==typeof e||"number"==typeof e?t.createElement(bP,{key:e.toString(),prefixCls:x,disabled:f,value:e,checked:i===e},e):t.createElement(bP,{key:`radio-group-value-options-${e.value}`,prefixCls:x,disabled:e.disabled||f,value:e.value,checked:i===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const $=Xc(h),j=_o()(S,`${S}-${d}`,{[`${S}-${$}`]:$,[`${S}-rtl`]:"rtl"===o},c,s,E,O,C);return k(t.createElement("div",Object.assign({},dl(e,{aria:!0,data:!0}),{className:j,style:v,onMouseEnter:g,onMouseLeave:b,onFocus:y,onBlur:w,id:m,ref:n}),t.createElement(cP,{value:{onChange:t=>{const n=i,r=t.target.value;"value"in e||a(r);const{onChange:o}=e;o&&r!==n&&o(t)},value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},_)))}));var wP=t.memo(yP),xP=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const SP=(e,n)=>{const{getPrefixCls:r}=t.useContext(B),{prefixCls:o}=e,i=xP(e,["prefixCls"]),a=r("radio",o);return t.createElement(dP,{value:"button"},t.createElement(bP,Object.assign({prefixCls:a},i,{type:"radio",ref:n})))};var CP=t.forwardRef(SP);const kP=bP;kP.Button=CP,kP.Group=wP,kP.__ANT_RADIO=!0;var EP=kP;function OP(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function _P(e,t,n,r){var o=k.unstable_batchedUpdates?function(e){k.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var $P=t.createContext(null),jP=function(e){var n=e.visible,r=e.maskTransitionName,o=e.getContainer,i=e.prefixCls,a=e.rootClassName,l=e.icons,c=e.countRender,s=e.showSwitch,u=e.showProgress,d=e.current,f=e.transform,p=e.count,h=e.scale,v=e.minScale,m=e.maxScale,g=e.closeIcon,b=e.onSwitchLeft,y=e.onSwitchRight,x=e.onClose,C=e.onZoomIn,k=e.onZoomOut,E=e.onRotateRight,O=e.onRotateLeft,_=e.onFlipX,$=e.onFlipY,j=e.onReset,N=e.toolbarRender,I=e.zIndex,P=e.image,M=(0,t.useContext)($P),R=l.rotateLeft,A=l.rotateRight,T=l.zoomIn,q=l.zoomOut,L=l.close,D=l.left,z=l.right,B=l.flipX,F=l.flipY,H="".concat(i,"-operations-operation");t.useEffect((function(){var e=function(e){e.keyCode===al.ESC&&x()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[n]);var W=[{icon:F,onClick:$,type:"flipY"},{icon:B,onClick:_,type:"flipX"},{icon:R,onClick:O,type:"rotateLeft"},{icon:A,onClick:E,type:"rotateRight"},{icon:q,onClick:k,type:"zoomOut",disabled:h<=v},{icon:T,onClick:C,type:"zoomIn",disabled:h===m}].map((function(e){var n,r=e.icon,o=e.onClick,a=e.type,l=e.disabled;return t.createElement("div",{className:_o()(H,(n={},w(n,"".concat(i,"-operations-operation-").concat(a),!0),w(n,"".concat(i,"-operations-operation-disabled"),!!l),n)),onClick:o,key:a},r)})),V=t.createElement("div",{className:"".concat(i,"-operations")},W);return t.createElement(Yi,{visible:n,motionName:r},(function(e){var n=e.className,r=e.style;return t.createElement(xu,{open:!0,getContainer:null!=o?o:document.body},t.createElement("div",{className:_o()("".concat(i,"-operations-wrapper"),n,a),style:S(S({},r),{},{zIndex:I})},null===g?null:t.createElement("button",{className:"".concat(i,"-close"),onClick:x},g||L),s&&t.createElement(t.Fragment,null,t.createElement("div",{className:_o()("".concat(i,"-switch-left"),w({},"".concat(i,"-switch-left-disabled"),0===d)),onClick:b},D),t.createElement("div",{className:_o()("".concat(i,"-switch-right"),w({},"".concat(i,"-switch-right-disabled"),d===p-1)),onClick:y},z)),t.createElement("div",{className:"".concat(i,"-footer")},u&&t.createElement("div",{className:"".concat(i,"-progress")},c?c(d+1,p):"".concat(d+1," / ").concat(p)),N?N(V,S(S({icons:{flipYIcon:W[0],flipXIcon:W[1],rotateLeftIcon:W[2],rotateRightIcon:W[3],zoomOutIcon:W[4],zoomInIcon:W[5]},actions:{onFlipY:$,onFlipX:_,onRotateLeft:O,onRotateRight:E,onZoomOut:k,onZoomIn:C,onReset:j,onClose:x},transform:f},M?{current:d,total:p}:{}),{},{image:P})):V)))}))},NP={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function IP(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return w({},e,i);if(t<0&&o<r)return w({},e,-i)}else if(t<0||o>r)return w({},e,t<0?i:-i);return{}}function PP(e,t,n,r){var o=OP(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=S(S({},IP("x",n,e,i)),IP("y",r,t,a))),l}function MP(e){var n=e.src,r=e.isCustomPlaceholder,o=e.fallback,i=G((0,t.useState)(r?"loading":"normal"),2),a=i[0],l=i[1],c=(0,t.useRef)(!1),s="error"===a;(0,t.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}))}(n).then((function(t){!t&&e&&l("error")})),function(){e=!1}}),[n]),(0,t.useEffect)((function(){r&&!c.current?l("loading"):s&&l("normal")}),[n]);var u=function(){l("normal")};return[function(e){c.current=!1,"loading"===a&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,u())},s&&o?{src:o}:{onLoad:u,src:n},a]}function RP(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function AP(e,n,r,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,d=i.y,f=G((0,t.useState)(!1),2),p=f[0],h=f[1],v=(0,t.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),m=function(e){v.current=S(S({},v.current),e)};return(0,t.useEffect)((function(){var e;return r&&n&&(e=_P(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[r,n]),{isTouching:p,onTouchStart:function(e){if(n){e.stopPropagation(),h(!0);var t=e.touches,r=void 0===t?[]:t;r.length>1?m({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):m({point1:{x:r[0].clientX-u,y:r[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=v.current,o=r.point1,i=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=RP(e,n),i=RP(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,s,u),f=G(d,2),p=f[0],h=f[1],g=RP(s,u)/RP(o,i);l(g,"touchZoom",p,h,!0),m({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),m({eventType:"move"}))},onTouchEnd:function(){if(r){if(p&&h(!1),m({eventType:"none"}),o>s)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*s,n=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,d=c%180!=0,f=PP(d?n:t,d?t:n,l,u);f&&a(S({},f),"dragRebound")}}}}var TP=["fallback","src","imgRef"],qP=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],LP=function(e){var n=e.fallback,r=e.src,o=e.imgRef,i=To(e,TP),a=G(MP({src:r,fallback:n}),2),l=a[0],c=a[1];return t.createElement("img",pt({ref:function(e){o.current=e,l(e)}},i,c))},DP=function(e){var n=e.prefixCls,r=e.src,o=e.alt,i=e.imageInfo,a=e.fallback,l=e.movable,c=void 0===l||l,s=e.onClose,u=e.visible,d=e.icons,f=void 0===d?{}:d,p=e.rootClassName,h=e.closeIcon,v=e.getContainer,m=e.current,g=void 0===m?0:m,b=e.count,y=void 0===b?1:b,x=e.countRender,C=e.scaleStep,k=void 0===C?.5:C,E=e.minScale,O=void 0===E?1:E,_=e.maxScale,$=void 0===_?50:_,j=e.transitionName,N=void 0===j?"zoom":j,I=e.maskTransitionName,P=void 0===I?"fade":I,M=e.imageRender,R=e.imgCommonProps,A=e.toolbarRender,T=e.onTransform,q=e.onChange,L=To(e,qP),D=(0,t.useRef)(),z=(0,t.useContext)($P),B=z&&y>1,F=z&&y>=1,H=G((0,t.useState)(!0),2),W=H[0],V=H[1],U=function(e,n,r,o){var i=(0,t.useRef)(null),a=(0,t.useRef)([]),l=G((0,t.useState)(NP),2),c=l[0],s=l[1],u=function(e,t){null===i.current&&(a.current=[],i.current=ji((function(){s((function(e){var n=e;return a.current.forEach((function(e){n=S(S({},n),e)})),i.current=null,null==o||o({transform:n,action:t}),n}))}))),a.current.push(S(S({},c),e))};return{transform:c,resetTransform:function(e){s(NP),ye(NP,c)||null==o||o({transform:NP,action:e})},updateTransform:u,dispatchZoomChange:function(t,o,i,a,l){var s=e.current,d=s.width,f=s.height,p=s.offsetWidth,h=s.offsetHeight,v=s.offsetLeft,m=s.offsetTop,g=t,b=c.scale*t;b>r?(b=r,g=r/c.scale):b<n&&(g=(b=l?b:n)/c.scale);var y=null!=i?i:innerWidth/2,w=null!=a?a:innerHeight/2,x=g-1,S=x*d*.5,C=x*f*.5,k=x*(y-c.x-v),E=x*(w-c.y-m),O=c.x-(k-S),_=c.y-(E-C);if(t<1&&1===b){var $=p*b,j=h*b,N=OP(),I=N.width,P=N.height;$<=I&&j<=P&&(O=0,_=0)}u({x:O,y:_,scale:b},o)}}}(D,O,$,T),Y=U.transform,K=U.resetTransform,X=U.updateTransform,Q=U.dispatchZoomChange,Z=function(e,n,r,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,d=i.y,f=G((0,t.useState)(!1),2),p=f[0],h=f[1],v=(0,t.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),m=function(e){r&&p&&a({x:e.pageX-v.current.diffX,y:e.pageY-v.current.diffY},"move")},g=function(){if(r&&p){h(!1);var t=v.current,n=t.transformX,o=t.transformY;if(u===n||d===o)return;var i=e.current.offsetWidth*s,l=e.current.offsetHeight*s,f=e.current.getBoundingClientRect(),m=f.left,g=f.top,b=c%180!=0,y=PP(b?l:i,b?i:l,m,g);y&&a(S({},y),"dragRebound")}};return(0,t.useEffect)((function(){var e,t,r,o;if(n){r=_P(window,"mouseup",g,!1),o=_P(window,"mousemove",m,!1);try{window.top!==window.self&&(e=_P(window.top,"mouseup",g,!1),t=_P(window.top,"mousemove",m,!1))}catch(e){"[rc-image] ".concat(e)}}return function(){var n,i,a,l;null===(n=r)||void 0===n||n.remove(),null===(i=o)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(l=t)||void 0===l||l.remove()}}),[r,p,u,d,c,n]),{isMoving:p,onMouseDown:function(e){n&&0===e.button&&(e.preventDefault(),e.stopPropagation(),v.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},h(!0))},onMouseMove:m,onMouseUp:g,onWheel:function(e){if(r&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),n=1+Math.min(t,1)*o;e.deltaY>0&&(n=1/n),l(n,"wheel",e.clientX,e.clientY)}}}}(D,c,u,k,Y,X,Q),J=Z.isMoving,ee=Z.onMouseDown,te=Z.onWheel,ne=AP(D,c,u,O,Y,X,Q),re=ne.isTouching,oe=ne.onTouchStart,ie=ne.onTouchMove,ae=ne.onTouchEnd,le=Y.rotate,ce=Y.scale,se=_o()(w({},"".concat(n,"-moving"),J));(0,t.useEffect)((function(){W||V(!0)}),[W]);var ue=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),g>0&&(V(!1),K("prev"),null==q||q(g-1,g))},de=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),g<y-1&&(V(!1),K("next"),null==q||q(g+1,g))},fe=function(e){u&&B&&(e.keyCode===al.LEFT?ue():e.keyCode===al.RIGHT&&de())};(0,t.useEffect)((function(){var e=_P(window,"keydown",fe,!1);return function(){e.remove()}}),[u,B,g]);var pe=t.createElement(LP,pt({},R,{width:e.width,height:e.height,imgRef:D,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(Y.x,"px, ").concat(Y.y,"px, 0) scale3d(").concat(Y.flipX?"-":"").concat(ce,", ").concat(Y.flipY?"-":"").concat(ce,", 1) rotate(").concat(le,"deg)"),transitionDuration:(!W||re)&&"0s"},fallback:a,src:r,onWheel:te,onMouseDown:ee,onDoubleClick:function(e){u&&(1!==ce?X({x:0,y:0,scale:1},"doubleClick"):Q(1+k,"doubleClick",e.clientX,e.clientY))},onTouchStart:oe,onTouchMove:ie,onTouchEnd:ae,onTouchCancel:ae})),he=S({url:r,alt:o},i);return t.createElement(t.Fragment,null,t.createElement(xh,pt({transitionName:N,maskTransitionName:P,closable:!1,keyboard:!0,prefixCls:n,onClose:s,visible:u,classNames:{wrapper:se},rootClassName:p,getContainer:v},L,{afterClose:function(){K("close")}}),t.createElement("div",{className:"".concat(n,"-img-wrapper")},M?M(pe,S({transform:Y,image:he},z?{current:g}:{})):pe)),t.createElement(jP,{visible:u,transform:Y,maskTransitionName:P,closeIcon:h,getContainer:v,prefixCls:n,rootClassName:p,icons:f,countRender:x,showSwitch:B,showProgress:F,current:g,count:y,scale:ce,minScale:O,maxScale:$,toolbarRender:A,onSwitchLeft:ue,onSwitchRight:de,onZoomIn:function(){Q(1+k,"zoomIn")},onZoomOut:function(){Q(1/(1+k),"zoomOut")},onRotateRight:function(){X({rotate:le+90},"rotateRight")},onRotateLeft:function(){X({rotate:le-90},"rotateLeft")},onFlipX:function(){X({flipX:!Y.flipX},"flipX")},onFlipY:function(){X({flipY:!Y.flipY},"flipY")},onClose:s,onReset:function(){K("reset")},zIndex:void 0!==L.zIndex?L.zIndex+1:void 0,image:he}))},zP=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var BP=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],FP=["src"],HP=function(e){var n,r=e.previewPrefixCls,o=void 0===r?"rc-image-preview":r,i=e.children,a=e.icons,l=void 0===a?{}:a,c=e.items,s=e.preview,u=e.fallback,d="object"===v(s)?s:{},f=d.visible,p=d.onVisibleChange,h=d.getContainer,m=d.current,g=d.movable,b=d.minScale,y=d.maxScale,x=d.countRender,C=d.closeIcon,k=d.onChange,E=d.onTransform,O=d.toolbarRender,_=d.imageRender,$=To(d,BP),j=function(e){var n=G(t.useState({}),2),r=n[0],o=n[1],i=t.useCallback((function(e,t){return o((function(n){return S(S({},n),{},w({},e,t))})),function(){o((function(t){var n=S({},t);return delete n[e],n}))}}),[]),a=t.useMemo((function(){return e?e.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(K(zP)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(r).reduce((function(e,t){var n=r[t],o=n.canPreview,i=n.data;return o&&e.push({data:i,id:t}),e}),[])}),[e,r]);return[a,i,!!e]}(c),N=G(j,3),I=N[0],P=N[1],M=N[2],R=G(Zo(0,{value:m}),2),A=R[0],T=R[1],q=G((0,t.useState)(!1),2),L=q[0],D=q[1],z=(null===(n=I[A])||void 0===n?void 0:n.data)||{},B=z.src,F=To(z,FP),H=G(Zo(!!f,{value:f,onChange:function(e,t){null==p||p(e,t,A)}}),2),W=H[0],V=H[1],U=G((0,t.useState)(null),2),Y=U[0],X=U[1],Q=t.useCallback((function(e,t,n,r){var o=M?I.findIndex((function(e){return e.data.src===t})):I.findIndex((function(t){return t.id===e}));T(o<0?0:o),V(!0),X({x:n,y:r}),D(!0)}),[I,M]);t.useEffect((function(){W?L||T(0):D(!1)}),[W]);var Z=t.useMemo((function(){return{register:P,onPreview:Q}}),[P,Q]);return t.createElement($P.Provider,{value:Z},i,t.createElement(DP,pt({"aria-hidden":!W,movable:g,visible:W,prefixCls:o,closeIcon:C,onClose:function(){V(!1),X(null)},mousePosition:Y,imgCommonProps:F,src:B,fallback:u,icons:l,minScale:b,maxScale:y,getContainer:h,current:A,count:I.length,countRender:x,onTransform:E,toolbarRender:O,imageRender:_,onChange:function(e,t){T(e),null==k||k(e,t)}},$)))},WP=0;var VP=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],UP=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],GP=function(e){var n=e.src,r=e.alt,o=e.onPreviewClose,i=e.prefixCls,a=void 0===i?"rc-image":i,l=e.previewPrefixCls,c=void 0===l?"".concat(a,"-preview"):l,s=e.placeholder,u=e.fallback,d=e.width,f=e.height,p=e.style,h=e.preview,m=void 0===h||h,g=e.className,b=e.onClick,y=e.onError,x=e.wrapperClassName,C=e.wrapperStyle,k=e.rootClassName,E=To(e,VP),O=s&&!0!==s,_="object"===v(m)?m:{},$=_.src,j=_.visible,N=void 0===j?void 0:j,I=_.onVisibleChange,P=void 0===I?o:I,M=_.getContainer,R=void 0===M?void 0:M,A=_.mask,T=_.maskClassName,q=_.movable,L=_.icons,D=_.scaleStep,z=_.minScale,B=_.maxScale,F=_.imageRender,H=_.toolbarRender,W=To(_,UP),V=null!=$?$:n,U=G(Zo(!!N,{value:N,onChange:P}),2),Y=U[0],K=U[1],X=G(MP({src:n,isCustomPlaceholder:O,fallback:u}),3),Q=X[0],Z=X[1],J=X[2],ee=G((0,t.useState)(null),2),te=ee[0],ne=ee[1],re=(0,t.useContext)($P),oe=!!m,ie=_o()(a,x,k,w({},"".concat(a,"-error"),"error"===J)),ae=(0,t.useMemo)((function(){var t={};return zP.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),zP.map((function(t){return e[t]}))),le=function(e,n){var r=G(t.useState((function(){return String(WP+=1)})),1)[0],o=t.useContext($P),i={data:n,canPreview:e};return t.useEffect((function(){if(o)return o.register(r,i)}),[]),t.useEffect((function(){o&&o.register(r,i)}),[e,n]),r}(oe,(0,t.useMemo)((function(){return S(S({},ae),{},{src:V})}),[V,ae]));return t.createElement(t.Fragment,null,t.createElement("div",pt({},E,{className:ie,onClick:oe?function(e){var t=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}(e.target),n=t.left,r=t.top;re?re.onPreview(le,V,n,r):(ne({x:n,y:r}),K(!0)),null==b||b(e)}:b,style:S({width:d,height:f},C)}),t.createElement("img",pt({},ae,{className:_o()("".concat(a,"-img"),w({},"".concat(a,"-img-placeholder"),!0===s),g),style:S({height:f},p),ref:Q},Z,{width:d,height:f,onError:y})),"loading"===J&&t.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},s),A&&oe&&t.createElement("div",{className:_o()("".concat(a,"-mask"),T),style:{display:"none"===(null==p?void 0:p.display)?"none":void 0}},A)),!re&&oe&&t.createElement(DP,pt({"aria-hidden":!Y,visible:Y,prefixCls:c,onClose:function(){K(!1),ne(null)},mousePosition:te,src:V,alt:r,imageInfo:{width:d,height:f},fallback:u,getContainer:R,icons:L,movable:q,scaleStep:D,minScale:z,maxScale:B,rootClassName:k,imageRender:F,imgCommonProps:ae,toolbarRender:H},W)))};GP.PreviewGroup=HP;var YP=GP,KP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},XP=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:KP}))};var QP=t.forwardRef(XP),ZP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},JP=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:ZP}))};var eM=t.forwardRef(JP),tM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},nM=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:tM}))};var rM=t.forwardRef(nM),oM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},iM=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:oM}))};var aM=t.forwardRef(iM),lM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},cM=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:lM}))};var sM=t.forwardRef(cM),uM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},dM=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:uM}))};var fM=t.forwardRef(dM);const pM=e=>({position:e||"absolute",inset:0}),hM=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new to("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},ca),{padding:`0 ${Ve(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},vM=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new to(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ve(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},mM=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new to(t).setAlpha(.1),c=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),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:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},gM=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},pM()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},pM()),{transition:`transform ${r} ${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"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[vM(e),mM(e)]}]},bM=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({},hM(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},pM())}}},yM=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Fp(e,"zoom"),"&":sv(e,!0)}};var wM=Zl("Image",(e=>{const t=`${e.componentCls}-preview`,n=Hl(e,{previewCls:t,modalMaskBg:new to("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[bM(n),gM(n),dv(Hl(n,{componentCls:t})),yM(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new to(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new to(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new to(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),xM=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const SM={rotateLeft:t.createElement(eM,null),rotateRight:t.createElement(rM,null),zoomIn:t.createElement(sM,null),zoomOut:t.createElement(fM,null),close:t.createElement(Ka,null),left:t.createElement(QP,null),right:t.createElement(LC,null),flipX:t.createElement(aM,null),flipY:t.createElement(aM,{rotate:90})};var CM=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kM=e=>{var n;const{prefixCls:r,preview:o,className:i,rootClassName:a,style:l}=e,c=CM(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:u=Dn,getPopupContainer:d,image:f}=t.useContext(B),p=s("image",r),h=s(),v=u.Image||Dn.Image,m=El(p),[g,b,y]=wM(p,m),w=_o()(a,b,y,m),x=_o()(i,b,null==f?void 0:f.className),[S]=Il("ImagePreview","object"==typeof o?o.zIndex:void 0),C=t.useMemo((()=>{var e;if(!1===o)return o;const n="object"==typeof o?o:{},{getContainer:r,closeIcon:i}=n,a=CM(n,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:t.createElement("div",{className:`${p}-mask-info`},t.createElement(ug,null),null==v?void 0:v.preview),icons:SM},a),{getContainer:null!=r?r:d,transitionName:yp(h,"zoom",n.transitionName),maskTransitionName:yp(h,"fade",n.maskTransitionName),zIndex:S,closeIcon:null!=i?i:null===(e=null==f?void 0:f.preview)||void 0===e?void 0:e.closeIcon})}),[o,v,null===(n=null==f?void 0:f.preview)||void 0===n?void 0:n.closeIcon]),k=Object.assign(Object.assign({},null==f?void 0:f.style),l);return g(t.createElement(YP,Object.assign({prefixCls:p,preview:C,rootClassName:w,className:x,style:k},c)))};kM.PreviewGroup=e=>{var{previewPrefixCls:n,preview:r}=e,o=xM(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=t.useContext(B),a=i("image",n),l=`${a}-preview`,c=i(),s=El(a),[u,d,f]=wM(a,s),[p]=Il("ImagePreview","object"==typeof r?r.zIndex:void 0),h=t.useMemo((()=>{var e;if(!1===r)return r;const t="object"==typeof r?r:{},n=_o()(d,f,s,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:yp(c,"zoom",t.transitionName),maskTransitionName:yp(c,"fade",t.maskTransitionName),rootClassName:n,zIndex:p})}),[r]);return u(t.createElement(YP.PreviewGroup,Object.assign({preview:h,previewPrefixCls:l,icons:SM},o)))};var EM=kM;function OM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _M(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_M(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $M=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=(c.empty,c.searchable,null===(t=e.field)||void 0===t?void 0:t.fieldType),h=null===(n=e.field)||void 0===n?void 0:n.parentId,v=null===(o=e.field)||void 0===o?void 0:o.index,m=null===(i=e.field)||void 0===i?void 0:i.repeaterData,g=OM(l(),2),b=(g[0],g[1]);return(0,r.jsxs)("div",{className:"rtsb-field rtsb-image-select-field",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(EP.Group,{size:"large",value:s,onChange:function(e){b({type:d,id:a,value:e.target.value,fieldType:p,parentId:h,repeaterData:m,index:v})},children:Object.keys(f).map((function(e){var t,n;return(0,r.jsx)(EP,{value:e,children:(0,r.jsx)(EM,{preview:!1,src:null===(t=f[e])||void 0===t?void 0:t.url,alt:null===(n=f[e])||void 0===n?void 0:n.label})},e)}))})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};function jM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return NM(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?NM(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var IM=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=(c.empty,c.searchable,null===(t=e.field)||void 0===t?void 0:t.fieldType),h=null===(n=e.field)||void 0===n?void 0:n.parentId,v=null===(o=e.field)||void 0===o?void 0:o.index,m=null===(i=e.field)||void 0===i?void 0:i.repeaterData,g=jM(l(),2),b=(g[0],g[1]);return(0,r.jsxs)("div",{className:"rtsb-field rtsb-text-select-field",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(EP.Group,{size:"large",value:s,onChange:function(e){b({type:d,id:a,value:e.target.value,fieldType:p,parentId:h,repeaterData:m,index:v})},buttonStyle:"solid",children:Object.keys(f).map((function(e){return(0,r.jsx)(EP.Button,{value:e,children:f[e]},e)}))})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},PM=function(e){var t=e.field.text;return(0,r.jsx)("div",{className:"rtsb-field-description",children:(0,r.jsx)("div",{className:"rtsb-field__description-label",dangerouslySetInnerHTML:{__html:t}})})};function MM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return RM(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RM(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var AM=Lw.Option,TM=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=c.empty,h=c.searchable,v=c.multiple,m=null===(t=e.field)||void 0===t?void 0:t.fieldType,g=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(o=e.field)||void 0===o?void 0:o.index,y=null===(i=e.field)||void 0===i?void 0:i.repeaterData,w=MM(l(),2),x=(w[0],w[1]);return(0,r.jsxs)("div",{className:"rtsb-field select icon-select",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsxs)(Lw,{showSearch:!!h,value:s,mode:v?"multiple":null,popupClassName:"rtsb-icon-selector",onChange:function(e){x({type:d,id:a,value:e,fieldType:m,parentId:g,repeaterData:y,index:b})},filterOption:function(e,t){return null==t?void 0:t.key.toLowerCase().includes(e.toLowerCase())},children:[p&&(0,r.jsx)(AM,{value:"",children:p}),Object.keys(f).map((function(e){return(0,r.jsx)(AM,{value:e,children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:f[e]}})},e)}))]})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},qM=o(5708),LM=o.n(qM),DM=o(5072),zM=o.n(DM),BM=o(9578),FM={insert:"head",singleton:!1};zM()(BM.A,FM),BM.A.locals;function HM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return WM(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?WM(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var VM=Ag.TextArea,UM=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.placeholder,p=e.id,h=null===(n=e.field)||void 0===n?void 0:n.fieldType,v=null===(o=e.field)||void 0===o?void 0:o.parentId,m=null===(i=e.field)||void 0===i?void 0:i.index,g=null===(a=e.field)||void 0===a?void 0:a.repeaterData,b=HM(l(),2),y=(b[0],b[1]),w=HM((0,t.useState)("visual"),2),x=w[0],S=w[1],C=HM((0,t.useState)(u),2),k=C[0],E=C[1],O=function(e){y({type:d,id:p,value:e,fieldType:h,parentId:v,repeaterData:g,index:m})},_=function(e){S(e)};return(0,t.useEffect)((function(){E(u)}),[u]),(0,r.jsxs)("div",{className:"rtsb-field textarea",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsxs)("div",{className:"rtsb-field-control",children:[(0,r.jsxs)("div",{className:"editor-tabs",children:[(0,r.jsx)("button",{onClick:function(){return _("visual")},className:"".concat("visual"===x?"active ":"","rtsb-switch-editor"),children:"Visual"}),(0,r.jsx)("button",{onClick:function(){return _("html")},className:"".concat("html"===x?"active ":"","html rtsb-switch-editor"),children:"HTML"})]}),"visual"===x?(0,r.jsx)(LM(),{theme:"snow",value:k,modules:{toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"bullet"},{list:"ordered"}],["blockquote",{align:[]},"link","code"],[{color:[]},{background:[]}]]},formats:["header","bold","italic","underline","bullet","list","blockquote","align","link","code","color","background"],onChange:function(e){E(e),O(e)},placeholder:f}):(0,r.jsx)(VM,{rows:4,className:"rtsb-form-field",value:k,onChange:function(e){return E(e.target.value)},placeholder:f})]}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function GM(e){return GM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GM(e)}function YM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YM(Object(n),!0).forEach((function(t){XM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=GM(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=GM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==GM(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ZM(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ZM(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var JM=function(e){var t,n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.placeholder,p=c.size,h=c.min,v=c.max,m=e.id,g=QM(l(),2),b=g[0],y=g[1],w=null===(t=e.field)||void 0===t?void 0:t.fieldType,x=null===(n=e.field)||void 0===n?void 0:n.parentId,S=null===(o=e.field)||void 0===o?void 0:o.index,C=null===(i=e.field)||void 0===i?void 0:i.repeaterData,k={};"currency_options"===x&&"currency_rate"===m&&(k.disabled="automatically"===(null===(a=b.sections.modules)||void 0===a||null===(a=a.list)||void 0===a||null===(a=a.currency_switcher)||void 0===a||null===(a=a.fields)||void 0===a||null===(a=a.exchange_rates)||void 0===a?void 0:a.value));return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(xx,KM(KM({},k),{},{className:"rtsb-form-field",size:p,min:h,max:v,defaultValue:"null"!==u?u:"",placeholder:f,value:"null"!==u?u:"",onChange:function(e){y({type:d,id:m,value:e,fieldType:w,parentId:x,repeaterData:C,index:S})}}))}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};const eR="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function tR(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function nR(e){return"nodeType"in e}function rR(e){var t,n;return e?tR(e)?e:nR(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function oR(e){const{Document:t}=rR(e);return e instanceof t}function iR(e){return!tR(e)&&e instanceof rR(e).HTMLElement}function aR(e){return e instanceof rR(e).SVGElement}function lR(e){return e?tR(e)?e.document:nR(e)?oR(e)?e:iR(e)||aR(e)?e.ownerDocument:document:document:document}const cR=eR?t.useLayoutEffect:t.useEffect;function sR(e){const n=(0,t.useRef)(e);return cR((()=>{n.current=e})),(0,t.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function uR(e,n){void 0===n&&(n=[e]);const r=(0,t.useRef)(e);return cR((()=>{r.current!==e&&(r.current=e)}),n),r}function dR(e,n){const r=(0,t.useRef)();return(0,t.useMemo)((()=>{const t=e(r.current);return r.current=t,t}),[...n])}function fR(e){const n=sR(e),r=(0,t.useRef)(null),o=(0,t.useCallback)((e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,o]}function pR(e){const n=(0,t.useRef)();return(0,t.useEffect)((()=>{n.current=e}),[e]),n.current}let hR={};function vR(e,n){return(0,t.useMemo)((()=>{if(n)return n;const t=null==hR[e]?0:hR[e]+1;return hR[e]=t,e+"-"+t}),[e,n])}function mR(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const gR=mR(1),bR=mR(-1);function yR(e){if(!e)return!1;const{KeyboardEvent:t}=rR(e.target);return t&&e instanceof t}function wR(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=rR(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const xR=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[xR.Translate.toString(e),xR.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),SR="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function CR(e){return e.matches(SR)?e:e.querySelector(SR)}const kR={display:"none"};function ER(e){let{id:n,value:r}=e;return t.createElement("div",{id:n,style:kR},r)}function OR(e){let{id:n,announcement:r,ariaLiveType:o="assertive"}=e;return t.createElement("div",{id:n,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},r)}const _R=(0,t.createContext)(null);const $R={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},jR={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function NR(e){let{announcements:n=jR,container:r,hiddenTextDescribedById:o,screenReaderInstructions:i=$R}=e;const{announce:a,announcement:l}=function(){const[e,n]=(0,t.useState)("");return{announce:(0,t.useCallback)((e=>{null!=e&&n(e)}),[]),announcement:e}}(),c=vR("DndLiveRegion"),[s,u]=(0,t.useState)(!1);if((0,t.useEffect)((()=>{u(!0)}),[]),function(e){const n=(0,t.useContext)(_R);(0,t.useEffect)((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)}),[e,n])}((0,t.useMemo)((()=>({onDragStart(e){let{active:t}=e;a(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&a(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;a(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;a(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;a(n.onDragCancel({active:t,over:r}))}})),[a,n])),!s)return null;const d=t.createElement(t.Fragment,null,t.createElement(ER,{id:o,value:i.draggable}),t.createElement(OR,{id:c,announcement:l}));return r?(0,k.createPortal)(d,r):d}var IR;function PR(){}function MR(e,n){return(0,t.useMemo)((()=>({sensor:e,options:null!=n?n:{}})),[e,n])}function RR(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useMemo)((()=>[...n].filter((e=>null!=e))),[...n])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(IR||(IR={}));const AR=Object.freeze({x:0,y:0});function TR(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function qR(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function LR(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function DR(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function zR(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function BR(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const FR=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=BR(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=TR(BR(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(qR)};function HR(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const WR=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=HR(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(LR)};function VR(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:AR}function UR(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const GR=UR(1);function YR(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const KR={ignoreTransform:!1};function XR(e,t){void 0===t&&(t=KR);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=rR(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=YR(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,c=e.left-a-(1-o)*parseFloat(n),s=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:s,right:c+u,bottom:s+d,left:c}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:l,right:c}=n;return{top:r,left:o,width:i,height:a,bottom:l,right:c}}function QR(e){return XR(e,{ignoreTransform:!0})}function ZR(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(oR(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!iR(o)||aR(o))return n;if(n.includes(o))return n;const i=rR(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=rR(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=rR(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function JR(e){const[t]=ZR(e,1);return null!=t?t:null}function eA(e){return eR&&e?tR(e)?e:nR(e)?oR(e)||e===lR(e).scrollingElement?window:iR(e)?e:null:null:null}function tA(e){return tR(e)?e.scrollX:e.scrollLeft}function nA(e){return tR(e)?e.scrollY:e.scrollTop}function rA(e){return{x:tA(e),y:nA(e)}}var oA;function iA(e){return!(!eR||!e)&&e===document.scrollingElement}function aA(e){const t={x:0,y:0},n=iA(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(oA||(oA={}));const lA={x:.2,y:.2};function cA(e,t,n,r,o){let{top:i,left:a,right:l,bottom:c}=n;void 0===r&&(r=10),void 0===o&&(o=lA);const{isTop:s,isBottom:u,isLeft:d,isRight:f}=aA(e),p={x:0,y:0},h={x:0,y:0},v=t.height*o.y,m=t.width*o.x;return!s&&i<=t.top+v?(p.y=oA.Backward,h.y=r*Math.abs((t.top+v-i)/v)):!u&&c>=t.bottom-v&&(p.y=oA.Forward,h.y=r*Math.abs((t.bottom-v-c)/v)),!f&&l>=t.right-m?(p.x=oA.Forward,h.x=r*Math.abs((t.right-m-l)/m)):!d&&a<=t.left+m&&(p.x=oA.Backward,h.x=r*Math.abs((t.left+m-a)/m)),{direction:p,speed:h}}function sA(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function uA(e){return e.reduce(((e,t)=>gR(e,rA(t))),AR)}function dA(e,t){if(void 0===t&&(t=XR),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);JR(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const fA=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+tA(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+nA(t)),0)}]];class pA{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=ZR(t),r=uA(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of fA)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class hA{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function vA(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var mA,gA;function bA(e){e.preventDefault()}function yA(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(mA||(mA={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(gA||(gA={}));const wA={start:[gA.Space,gA.Enter],cancel:[gA.Esc],end:[gA.Space,gA.Enter]},xA=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case gA.Right:return{...n,x:n.x+25};case gA.Left:return{...n,x:n.x-25};case gA.Down:return{...n,y:n.y+25};case gA.Up:return{...n,y:n.y-25}}};class SA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new hA(lR(t)),this.windowListeners=new hA(rR(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(mA.Resize,this.handleCancel),this.windowListeners.add(mA.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(mA.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&dA(n),t(AR)}handleKeyDown(e){if(yR(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=wA,coordinateGetter:i=xA,scrollBehavior:a="smooth"}=r,{code:l}=e;if(o.end.includes(l))return void this.handleEnd(e);if(o.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:c}=n.current,s=c?{x:c.left,y:c.top}:AR;this.referenceCoordinates||(this.referenceCoordinates=s);const u=i(e,{active:t,context:n.current,currentCoordinates:s});if(u){const t=bR(u,s),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:l,isLeft:c,isBottom:s,maxScroll:d,minScroll:f}=aA(n),p=sA(n),h={x:Math.min(o===gA.Right?p.right-p.width/2:p.right,Math.max(o===gA.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(o===gA.Down?p.bottom-p.height/2:p.bottom,Math.max(o===gA.Down?p.top:p.top+p.height/2,u.y))},v=o===gA.Right&&!l||o===gA.Left&&!c,m=o===gA.Down&&!s||o===gA.Up&&!i;if(v&&h.x!==u.x){const e=n.scrollLeft+t.x,i=o===gA.Right&&e<=d.x||o===gA.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===gA.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&h.y!==u.y){const e=n.scrollTop+t.y,i=o===gA.Down&&e<=d.y||o===gA.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===gA.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,gR(bR(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function CA(e){return Boolean(e&&"distance"in e)}function kA(e){return Boolean(e&&"delay"in e)}SA.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=wA,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class EA{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=rR(e);return e instanceof t?e:lR(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=lR(i),this.documentListeners=new hA(this.document),this.listeners=new hA(n),this.windowListeners=new hA(rR(i)),this.initialCoordinates=null!=(r=wR(o))?r:AR,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(mA.Resize,this.handleCancel),this.windowListeners.add(mA.DragStart,bA),this.windowListeners.add(mA.VisibilityChange,this.handleCancel),this.windowListeners.add(mA.ContextMenu,bA),this.documentListeners.add(mA.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(kA(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(CA(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(mA.Click,yA,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(mA.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const l=null!=(t=wR(e))?t:AR,c=bR(r,l);if(!n&&a){if(CA(a)){if(null!=a.tolerance&&vA(c,a.tolerance))return this.handleCancel();if(vA(c,a.distance))return this.handleStart()}return kA(a)&&vA(c,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===gA.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const OA={move:{name:"pointermove"},end:{name:"pointerup"}};class _A extends EA{constructor(e){const{event:t}=e,n=lR(t.target);super(e,OA,n)}}_A.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const $A={move:{name:"mousemove"},end:{name:"mouseup"}};var jA;!function(e){e[e.RightClick=2]="RightClick"}(jA||(jA={}));class NA extends EA{constructor(e){super(e,$A,lR(e.event.target))}}NA.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==jA.RightClick&&(null==r||r({event:n}),!0)}}];const IA={move:{name:"touchmove"},end:{name:"touchend"}};class PA extends EA{constructor(e){super(e,IA)}static setup(){return window.addEventListener(IA.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(IA.move.name,e)};function e(){}}}var MA,RA;function AA(e){let{acceleration:n,activator:r=MA.Pointer,canScroll:o,draggingRect:i,enabled:a,interval:l=5,order:c=RA.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=pR(t);return dR((e=>{if(n||!r||!e)return TA;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[oA.Backward]:e.x[oA.Backward]||-1===o.x,[oA.Forward]:e.x[oA.Forward]||1===o.x},y:{[oA.Backward]:e.y[oA.Backward]||-1===o.y,[oA.Forward]:e.y[oA.Forward]||1===o.y}}}),[n,t,r])}({delta:f,disabled:!a}),[v,m]=function(){const e=(0,t.useRef)(null);return[(0,t.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,t.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),g=(0,t.useRef)({x:0,y:0}),b=(0,t.useRef)({x:0,y:0}),y=(0,t.useMemo)((()=>{switch(r){case MA.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case MA.DraggableRect:return i}}),[r,i,s]),w=(0,t.useRef)(null),x=(0,t.useCallback)((()=>{const e=w.current;if(!e)return;const t=g.current.x*b.current.x,n=g.current.y*b.current.y;e.scrollBy(t,n)}),[]),S=(0,t.useMemo)((()=>c===RA.TreeOrder?[...u].reverse():u),[c,u]);(0,t.useEffect)((()=>{if(a&&u.length&&y){for(const e of S){if(!1===(null==o?void 0:o(e)))continue;const t=u.indexOf(e),r=d[t];if(!r)continue;const{direction:i,speed:a}=cA(e,r,y,n,p);for(const e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return m(),w.current=e,v(x,l),g.current=a,void(b.current=i)}g.current={x:0,y:0},b.current={x:0,y:0},m()}else m()}),[n,x,o,m,a,l,JSON.stringify(y),JSON.stringify(h),v,u,S,d,JSON.stringify(p)])}PA.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(MA||(MA={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(RA||(RA={}));const TA={x:{[oA.Backward]:!1,[oA.Forward]:!1},y:{[oA.Backward]:!1,[oA.Forward]:!1}};var qA,LA;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(qA||(qA={})),function(e){e.Optimized="optimized"}(LA||(LA={}));const DA=new Map;function zA(e,t){return dR((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function BA(e){let{callback:n,disabled:r}=e;const o=sR(n),i=(0,t.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[r]);return(0,t.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function FA(e){return new pA(XR(e),e)}function HA(e,n,r){void 0===n&&(n=FA);const[o,i]=(0,t.useReducer)((function(t){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=t?t:r)?o:null;const i=n(e);if(JSON.stringify(t)===JSON.stringify(i))return t;return i}),null),a=function(e){let{callback:n,disabled:r}=e;const o=sR(n),i=(0,t.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,r]);return(0,t.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),l=BA({callback:i});return cR((()=>{i(),e?(null==l||l.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==a||a.disconnect())}),[e]),o}const WA=[];function VA(e,n){void 0===n&&(n=[]);const r=(0,t.useRef)(null);return(0,t.useEffect)((()=>{r.current=null}),n),(0,t.useEffect)((()=>{const t=e!==AR;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)}),[e]),r.current?bR(e,r.current):AR}function UA(e){return(0,t.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const GA=[];function YA(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return iR(t)?t:e}const KA=[{sensor:_A,options:{}},{sensor:SA,options:{}}],XA={current:{}},QA={draggable:{measure:QR},droppable:{measure:QR,strategy:qA.WhileDragging,frequency:LA.Optimized},dragOverlay:{measure:XR}};class ZA extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const JA={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ZA,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:PR},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:QA,measureDroppableContainers:PR,windowRect:null,measuringScheduled:!1},eT={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:PR,draggableNodes:new Map,over:null,measureDroppableContainers:PR},tT=(0,t.createContext)(eT),nT=(0,t.createContext)(JA);function rT(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ZA}}}function oT(e,t){switch(t.type){case IR.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case IR.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case IR.DragEnd:case IR.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case IR.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new ZA(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case IR.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new ZA(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case IR.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new ZA(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function iT(e){let{disabled:n}=e;const{active:r,activatorEvent:o,draggableNodes:i}=(0,t.useContext)(tT),a=pR(o),l=pR(null==r?void 0:r.id);return(0,t.useEffect)((()=>{if(!n&&!o&&a&&null!=l){if(!yR(a))return;if(document.activeElement===a.target)return;const e=i.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=CR(e);if(t){t.focus();break}}}))}}),[o,n,i,l,a]),null}function aT(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const lT=(0,t.createContext)({...AR,scaleX:1,scaleY:1});var cT;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(cT||(cT={}));const sT=(0,t.memo)((function(e){var n,r,o,i;let{id:a,accessibility:l,autoScroll:c=!0,children:s,sensors:u=KA,collisionDetection:d=WR,measuring:f,modifiers:p,...h}=e;const v=(0,t.useReducer)(oT,void 0,rT),[m,g]=v,[b,y]=function(){const[e]=(0,t.useState)((()=>new Set)),n=(0,t.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]),r=(0,t.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]);return[r,n]}(),[w,x]=(0,t.useState)(cT.Uninitialized),S=w===cT.Initialized,{draggable:{active:C,nodes:E,translate:O},droppable:{containers:_}}=m,$=C?E.get(C):null,j=(0,t.useRef)({initial:null,translated:null}),N=(0,t.useMemo)((()=>{var e;return null!=C?{id:C,data:null!=(e=null==$?void 0:$.data)?e:XA,rect:j}:null}),[C,$]),I=(0,t.useRef)(null),[P,M]=(0,t.useState)(null),[R,A]=(0,t.useState)(null),T=uR(h,Object.values(h)),q=vR("DndDescribedBy",a),L=(0,t.useMemo)((()=>_.getEnabled()),[_]),D=(z=f,(0,t.useMemo)((()=>({draggable:{...QA.draggable,...null==z?void 0:z.draggable},droppable:{...QA.droppable,...null==z?void 0:z.droppable},dragOverlay:{...QA.dragOverlay,...null==z?void 0:z.dragOverlay}})),[null==z?void 0:z.draggable,null==z?void 0:z.droppable,null==z?void 0:z.dragOverlay]));var z;const{droppableRects:B,measureDroppableContainers:F,measuringScheduled:H}=function(e,n){let{dragging:r,dependencies:o,config:i}=n;const[a,l]=(0,t.useState)(null),{frequency:c,measure:s,strategy:u}=i,d=(0,t.useRef)(e),f=function(){switch(u){case qA.Always:return!1;case qA.BeforeDragging:return r;default:return!r}}(),p=uR(f),h=(0,t.useCallback)((function(e){void 0===e&&(e=[]),p.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),v=(0,t.useRef)(null),m=dR((t=>{if(f&&!r)return DA;if(!t||t===DA||d.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new pA(s(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,a,r,f,s]);return(0,t.useEffect)((()=>{d.current=e}),[e]),(0,t.useEffect)((()=>{f||h()}),[r,f]),(0,t.useEffect)((()=>{a&&a.length>0&&l(null)}),[JSON.stringify(a)]),(0,t.useEffect)((()=>{f||"number"!=typeof c||null!==v.current||(v.current=setTimeout((()=>{h(),v.current=null}),c))}),[c,f,h,...o]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(L,{dragging:S,dependencies:[O.x,O.y],config:D.droppable}),W=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return dR((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(E,C),V=(0,t.useMemo)((()=>R?wR(R):null),[R]),U=function(){const e=!1===(null==P?void 0:P.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,n=S&&!e&&!t;if("object"==typeof c)return{...c,enabled:n};return{enabled:n}}(),G=function(e,t){return zA(e,t)}(W,D.draggable.measure);!function(e){let{activeNode:n,measure:r,initialRect:o,config:i=!0}=e;const a=(0,t.useRef)(!1),{x:l,y:c}="boolean"==typeof i?{x:i,y:i}:i;cR((()=>{if(!l&&!c||!n)return void(a.current=!1);if(a.current||!o)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=VR(r(e),o);if(l||(t.x=0),c||(t.y=0),a.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=JR(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,l,c,o,r])}({activeNode:C?E.get(C):null,config:U.layoutShiftCompensation,initialRect:G,measure:D.draggable.measure});const Y=HA(W,D.draggable.measure,G),K=HA(W?W.parentElement:null),X=(0,t.useRef)({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=_.getNodeFor(null==(n=X.current.over)?void 0:n.id),Z=function(e){let{measure:n}=e;const[r,o]=(0,t.useState)(null),i=BA({callback:(0,t.useCallback)((e=>{for(const{target:t}of e)if(iR(t)){o((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),a=(0,t.useCallback)((e=>{const t=YA(e);null==i||i.disconnect(),t&&(null==i||i.observe(t)),o(t?n(t):null)}),[n,i]),[l,c]=fR(a);return(0,t.useMemo)((()=>({nodeRef:l,rect:r,setRef:c})),[r,l,c])}({measure:D.dragOverlay.measure}),J=null!=(r=Z.nodeRef.current)?r:W,ee=S?null!=(o=Z.rect)?o:Y:null,te=Boolean(Z.nodeRef.current&&Z.rect),ne=VR(re=te?null:Y,zA(re));var re;const oe=UA(J?rR(J):null),ie=function(e){const n=(0,t.useRef)(e),r=dR((t=>e?t&&t!==WA&&e&&n.current&&e.parentNode===n.current.parentNode?t:ZR(e):WA),[e]);return(0,t.useEffect)((()=>{n.current=e}),[e]),r}(S?null!=Q?Q:W:null),ae=function(e,n){void 0===n&&(n=XR);const[r]=e,o=UA(r?rR(r):null),[i,a]=(0,t.useReducer)((function(){return e.length?e.map((e=>iA(e)?o:new pA(n(e),e))):GA}),GA),l=BA({callback:a});return e.length>0&&i===GA&&a(),cR((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),a())}),[e]),i}(ie),le=aT(p,{transform:{x:O.x-ne.x,y:O.y-ne.y,scaleX:1,scaleY:1},activatorEvent:R,active:N,activeNodeRect:Y,containerNodeRect:K,draggingNodeRect:ee,over:X.current.over,overlayNodeRect:Z.rect,scrollableAncestors:ie,scrollableAncestorRects:ae,windowRect:oe}),ce=V?gR(V,O):null,se=function(e){const[n,r]=(0,t.useState)(null),o=(0,t.useRef)(e),i=(0,t.useCallback)((e=>{const t=eA(e.target);t&&r((e=>e?(e.set(t,rA(t)),new Map(e)):null))}),[]);return(0,t.useEffect)((()=>{const t=o.current;if(e!==t){n(t);const a=e.map((e=>{const t=eA(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,rA(t)]):null})).filter((e=>null!=e));r(a.length?new Map(a):null),o.current=e}return()=>{n(e),n(t)};function n(e){e.forEach((e=>{const t=eA(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,t.useMemo)((()=>e.length?n?Array.from(n.values()).reduce(((e,t)=>gR(e,t)),AR):uA(e):AR),[e,n])}(ie),ue=VA(se),de=VA(se,[Y]),fe=gR(le,ue),pe=ee?GR(ee,le):null,he=N&&pe?d({active:N,collisionRect:pe,droppableRects:B,droppableContainers:L,pointerCoordinates:ce}):null,ve=zR(he,"id"),[me,ge]=(0,t.useState)(null),be=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?le:gR(le,de),null!=(i=null==me?void 0:me.rect)?i:null,Y),ye=(0,t.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==I.current)return;const o=E.get(I.current);if(!o)return;const i=e.nativeEvent,a=new n({active:I.current,activeNode:o,event:i,options:r,context:X,onStart(e){const t=I.current;if(null==t)return;const n=E.get(t);if(!n)return;const{onDragStart:r}=T.current,o={active:{id:t,data:n.data,rect:j}};(0,k.unstable_batchedUpdates)((()=>{null==r||r(o),x(cT.Initializing),g({type:IR.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:o})}))},onMove(e){g({type:IR.DragMove,coordinates:e})},onEnd:l(IR.DragEnd),onCancel:l(IR.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=X.current;let a=null;if(t&&o){const{cancelDrop:l}=T.current;if(a={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===IR.DragEnd&&"function"==typeof l){await Promise.resolve(l(a))&&(e=IR.DragCancel)}}I.current=null,(0,k.unstable_batchedUpdates)((()=>{g({type:e}),x(cT.Uninitialized),ge(null),M(null),A(null);const t=e===IR.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=T.current[t];null==e||e(a),b({type:t,event:a})}}))}}(0,k.unstable_batchedUpdates)((()=>{M(a),A(e.nativeEvent)}))}),[E]),we=(0,t.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=E.get(r);if(null!==I.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},I.current=r,ye(n,t))}),[E,ye]),xe=function(e,n){return(0,t.useMemo)((()=>e.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[e,n])}(u,we);!function(e){(0,t.useEffect)((()=>{if(!eR)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(u),cR((()=>{Y&&w===cT.Initializing&&x(cT.Initialized)}),[Y,w]),(0,t.useEffect)((()=>{const{onDragMove:e}=T.current,{active:t,activatorEvent:n,collisions:r,over:o}=X.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:fe.x,y:fe.y},over:o};(0,k.unstable_batchedUpdates)((()=>{null==e||e(i),b({type:"onDragMove",event:i})}))}),[fe.x,fe.y]),(0,t.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=X.current;if(!e||null==I.current||!t||!o)return;const{onDragOver:i}=T.current,a=r.get(ve),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};(0,k.unstable_batchedUpdates)((()=>{ge(l),null==i||i(c),b({type:"onDragOver",event:c})}))}),[ve]),cR((()=>{X.current={activatorEvent:R,active:N,activeNode:W,collisionRect:pe,collisions:he,droppableRects:B,draggableNodes:E,draggingNode:J,draggingNodeRect:ee,droppableContainers:_,over:me,scrollableAncestors:ie,scrollAdjustedTranslate:fe},j.current={initial:ee,translated:pe}}),[N,W,he,pe,E,J,ee,B,_,me,ie,fe]),AA({...U,delta:O,draggingRect:pe,pointerCoordinates:ce,scrollableAncestors:ie,scrollableAncestorRects:ae});const Se=(0,t.useMemo)((()=>({active:N,activeNode:W,activeNodeRect:Y,activatorEvent:R,collisions:he,containerNodeRect:K,dragOverlay:Z,draggableNodes:E,droppableContainers:_,droppableRects:B,over:me,measureDroppableContainers:F,scrollableAncestors:ie,scrollableAncestorRects:ae,measuringConfiguration:D,measuringScheduled:H,windowRect:oe})),[N,W,Y,R,he,K,Z,E,_,B,me,F,ie,ae,D,H,oe]),Ce=(0,t.useMemo)((()=>({activatorEvent:R,activators:xe,active:N,activeNodeRect:Y,ariaDescribedById:{draggable:q},dispatch:g,draggableNodes:E,over:me,measureDroppableContainers:F})),[R,xe,N,Y,g,q,E,me,F]);return t.createElement(_R.Provider,{value:y},t.createElement(tT.Provider,{value:Ce},t.createElement(nT.Provider,{value:Se},t.createElement(lT.Provider,{value:be},s)),t.createElement(iT,{disabled:!1===(null==l?void 0:l.restoreFocus)})),t.createElement(NR,{...l,hiddenTextDescribedById:q}))})),uT=(0,t.createContext)(null),dT="button",fT="Droppable";function pT(e){let{id:n,data:r,disabled:o=!1,attributes:i}=e;const a=vR(fT),{activators:l,activatorEvent:c,active:s,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=(0,t.useContext)(tT),{role:h=dT,roleDescription:v="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==s?void 0:s.id)===n,b=(0,t.useContext)(g?lT:uT),[y,w]=fR(),[x,S]=fR(),C=function(e,n){return(0,t.useMemo)((()=>e.reduce(((e,t)=>{let{eventName:r,handler:o}=t;return e[r]=e=>{o(e,n)},e}),{})),[e,n])}(l,n),k=uR(r);cR((()=>(f.set(n,{id:n,key:a,node:y,activatorNode:x,data:k}),()=>{const e=f.get(n);e&&e.key===a&&f.delete(n)})),[f,n]);return{active:s,activatorEvent:c,activeNodeRect:u,attributes:(0,t.useMemo)((()=>({role:h,tabIndex:m,"aria-disabled":o,"aria-pressed":!(!g||h!==dT)||void 0,"aria-roledescription":v,"aria-describedby":d.draggable})),[o,h,m,g,v,d.draggable]),isDragging:g,listeners:o?void 0:C,node:y,over:p,setNodeRef:w,setActivatorNodeRef:S,transform:b}}function hT(){return(0,t.useContext)(nT)}const vT="Droppable",mT={timeout:25};function gT(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function bT(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function yT(e){return null!==e&&e>=0}const wT=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=gT(t,r,n),a=t[o],l=i[o];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},xT={scaleX:1,scaleY:1},ST=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...xT}:null}const c=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-c,...xT}:o<n&&o>=a?{x:0,y:l.height+c,...xT}:{x:0,y:0,...xT}};const CT="Sortable",kT=t.createContext({activeIndex:-1,containerId:CT,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:wT,disabled:{draggable:!1,droppable:!1}});function ET(e){let{children:n,id:r,items:o,strategy:i=wT,disabled:a=!1}=e;const{active:l,dragOverlay:c,droppableRects:s,over:u,measureDroppableContainers:d}=hT(),f=vR(CT,r),p=Boolean(null!==c.rect),h=(0,t.useMemo)((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),v=null!=l,m=l?h.indexOf(l.id):-1,g=u?h.indexOf(u.id):-1,b=(0,t.useRef)(h),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(h,b.current),w=-1!==g&&-1===m||y,x=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(a);cR((()=>{y&&v&&d(h)}),[y,h,v,d]),(0,t.useEffect)((()=>{b.current=h}),[h]);const S=(0,t.useMemo)((()=>({activeIndex:m,containerId:f,disabled:x,disableTransforms:w,items:h,overIndex:g,useDragOverlay:p,sortedRects:bT(h,s),strategy:i})),[m,f,x.draggable,x.droppable,w,h,g,s,p,i]);return t.createElement(kT.Provider,{value:S},n)}const OT=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return gT(n,r,o).indexOf(t)},_T=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:c,transition:s}=e;return!(!s||!r)&&((l===i||o!==a)&&(!!n||a!==o&&t===c))},$T={duration:200,easing:"ease"},jT="transform",NT=xR.Transition.toString({property:jT,duration:0,easing:"linear"}),IT={roleDescription:"sortable"};function PT(e){let{animateLayoutChanges:n=_T,attributes:r,disabled:o,data:i,getNewIndex:a=OT,id:l,strategy:c,resizeObserverConfig:s,transition:u=$T}=e;const{items:d,containerId:f,activeIndex:p,disabled:h,disableTransforms:v,sortedRects:m,overIndex:g,useDragOverlay:b,strategy:y}=(0,t.useContext)(kT),w=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(o,h),x=d.indexOf(l),S=(0,t.useMemo)((()=>({sortable:{containerId:f,index:x,items:d},...i})),[f,i,x,d]),C=(0,t.useMemo)((()=>d.slice(d.indexOf(l))),[d,l]),{rect:k,node:E,isOver:O,setNodeRef:_}=function(e){let{data:n,disabled:r=!1,id:o,resizeObserverConfig:i}=e;const a=vR(vT),{active:l,dispatch:c,over:s,measureDroppableContainers:u}=(0,t.useContext)(tT),d=(0,t.useRef)({disabled:r}),f=(0,t.useRef)(!1),p=(0,t.useRef)(null),h=(0,t.useRef)(null),{disabled:v,updateMeasurementsFor:m,timeout:g}={...mT,...i},b=uR(null!=m?m:o),y=BA({callback:(0,t.useCallback)((()=>{f.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{u(Array.isArray(b.current)?b.current:[b.current]),h.current=null}),g)):f.current=!0}),[g]),disabled:v||!l}),w=(0,t.useCallback)(((e,t)=>{y&&(t&&(y.unobserve(t),f.current=!1),e&&y.observe(e))}),[y]),[x,S]=fR(w),C=uR(n);return(0,t.useEffect)((()=>{y&&x.current&&(y.disconnect(),f.current=!1,y.observe(x.current))}),[x,y]),cR((()=>(c({type:IR.RegisterDroppable,element:{id:o,key:a,disabled:r,node:x,rect:p,data:C}}),()=>c({type:IR.UnregisterDroppable,key:a,id:o}))),[o]),(0,t.useEffect)((()=>{r!==d.current.disabled&&(c({type:IR.SetDroppableDisabled,id:o,key:a,disabled:r}),d.current.disabled=r)}),[o,a,r,c]),{active:l,rect:p,isOver:(null==s?void 0:s.id)===o,node:x,over:s,setNodeRef:S}}({id:l,data:S,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...s}}),{active:$,activatorEvent:j,activeNodeRect:N,attributes:I,setNodeRef:P,listeners:M,isDragging:R,over:A,setActivatorNodeRef:T,transform:q}=pT({id:l,data:S,attributes:{...IT,...r},disabled:w.draggable}),L=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useMemo)((()=>e=>{n.forEach((t=>t(e)))}),n)}(_,P),D=Boolean($),z=D&&!v&&yT(p)&&yT(g),B=!b&&R,F=B&&z?q:null,H=z?null!=F?F:(null!=c?c:y)({rects:m,activeNodeRect:N,activeIndex:p,overIndex:g,index:x}):null,W=yT(p)&&yT(g)?a({id:l,items:d,activeIndex:p,overIndex:g}):x,V=null==$?void 0:$.id,U=(0,t.useRef)({activeId:V,items:d,newIndex:W,containerId:f}),G=d!==U.current.items,Y=n({active:$,containerId:f,isDragging:R,isSorting:D,id:l,index:x,items:d,newIndex:U.current.newIndex,previousItems:U.current.items,previousContainerId:U.current.containerId,transition:u,wasDragging:null!=U.current.activeId}),K=function(e){let{disabled:n,index:r,node:o,rect:i}=e;const[a,l]=(0,t.useState)(null),c=(0,t.useRef)(r);return cR((()=>{if(!n&&r!==c.current&&o.current){const e=i.current;if(e){const t=XR(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}r!==c.current&&(c.current=r)}),[n,r,o,i]),(0,t.useEffect)((()=>{a&&l(null)}),[a]),a}({disabled:!Y,index:x,node:E,rect:k});return(0,t.useEffect)((()=>{D&&U.current.newIndex!==W&&(U.current.newIndex=W),f!==U.current.containerId&&(U.current.containerId=f),d!==U.current.items&&(U.current.items=d)}),[D,W,f,d]),(0,t.useEffect)((()=>{if(V===U.current.activeId)return;if(V&&!U.current.activeId)return void(U.current.activeId=V);const e=setTimeout((()=>{U.current.activeId=V}),50);return()=>clearTimeout(e)}),[V]),{active:$,activeIndex:p,attributes:I,data:S,rect:k,index:x,newIndex:W,items:d,isOver:O,isSorting:D,isDragging:R,listeners:M,node:E,overIndex:g,over:A,setNodeRef:L,setActivatorNodeRef:T,setDroppableNodeRef:_,setDraggableNodeRef:P,transform:null!=K?K:H,transition:function(){if(K||G&&U.current.newIndex===x)return NT;if(B&&!yR(j)||!u)return;if(D||Y)return xR.Transition.toString({...u,property:jT});return}()}}function MT(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const RT=[gA.Down,gA.Right,gA.Up,gA.Left],AT=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:l}}=t;if(RT.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];i.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const i=o.get(n.id);if(i)switch(e.code){case gA.Down:r.top<i.top&&t.push(n);break;case gA.Up:r.top>i.top&&t.push(n);break;case gA.Left:r.left>i.left&&t.push(n);break;case gA.Right:r.left<i.left&&t.push(n)}}));const c=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=DR(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=DR(r),a=o.reduce(((e,t,r)=>e+TR(n[r],t)),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(qR)})({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let s=zR(c,"id");if(s===(null==a?void 0:a.id)&&c.length>1&&(s=c[1].id),null!=s){const e=i.get(n.id),t=i.get(s),a=t?o.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&a&&e&&t){const n=ZR(c).some(((e,t)=>l[t]!==e)),o=TT(e,t),i=function(e,t){if(!MT(e)||!MT(t))return!1;if(!TT(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),s=n||!o?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},u={x:a.left,y:a.top};return s.x&&s.y?u:bR(u,s)}}}};function TT(e,t){return!(!MT(e)||!MT(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var qT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},LT=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:qT}))};var DT=t.forwardRef(LT),zT=function(e){if(Q()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function BT(e,t){return Array.isArray(e)||void 0===t?zT(e):function(e,t){if(!zT(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}var FT=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const HT={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},WT=t.forwardRef(((e,n)=>{const{style:r,noStyle:o,disabled:i,tabIndex:a=0}=e,l=FT(e,["style","noStyle","disabled","tabIndex"]);let c={};return o||(c=Object.assign({},HT)),i&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),r),t.createElement("div",Object.assign({role:"button",tabIndex:a,ref:n},l,{onKeyDown:e=>{const{keyCode:t}=e;t===al.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:r}=e;n===al.ENTER&&r&&r()},style:c}))}));var VT=WT,UT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},GT=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:UT}))};var YT=t.forwardRef(GT);const KT=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),XT=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},QT=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},KT(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},ZT=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:jr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),JT=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${Ve(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},eq=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),tq=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},XT(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),ZT(e)),QT(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},KT(e)),{marginInlineStart:e.marginXXS})}),JT(e)),eq(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}};var nq=Zl("Typography",(e=>[tq(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));var rq=e=>{const{prefixCls:n,"aria-label":r,className:o,style:i,direction:a,maxLength:l,autoSize:c=!0,value:s,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:h=t.createElement(YT,null)}=e,v=t.useRef(null),m=t.useRef(!1),g=t.useRef(),[b,y]=t.useState(s);t.useEffect((()=>{y(s)}),[s]),t.useEffect((()=>{var e;if(null===(e=v.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=v.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{u(b.trim())},x=p?`${n}-${p}`:"",[S,C,k]=nq(n),E=_o()(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===a},o,x,C,k);return S(t.createElement("div",{className:E,style:i},t.createElement(Mg,{ref:v,maxLength:l,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;m.current||(g.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;g.current!==t||m.current||n||r||o||i||(t===al.ENTER?(w(),null==f||f()):t===al.ESC&&d())},onCompositionStart:()=>{m.current=!0},onCompositionEnd:()=>{m.current=!1},onBlur:()=>{w()},"aria-label":r,rows:1,autoSize:c}),null!==h?zc(h,{className:`${n}-edit-content-confirm`}):null))},oq=o(7965),iq=o.n(oq),aq=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,l)}c((r=r.apply(e,t||[])).next())}))};var lq=e=>{let{copyConfig:n,children:r}=e;const[o,i]=t.useState(!1),[a,l]=t.useState(!1),c=t.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},u={};n.format&&(u.format=n.format),t.useEffect((()=>s),[]);return{copied:o,copyLoading:a,onClick:Ko((e=>aq(void 0,void 0,void 0,(function*(){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),l(!0);try{const o="function"==typeof n.text?yield n.text():n.text;iq()(o||String(r)||"",u),l(!1),i(!0),s(),c.current=setTimeout((()=>{i(!1)}),3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(e){throw l(!1),e}}))))}};function cq(e,n){return t.useMemo((()=>{const t=!!e;return[t,Object.assign(Object.assign({},n),t&&"object"==typeof e?e:null)]}),[e])}var sq=e=>{const n=(0,t.useRef)();return(0,t.useEffect)((()=>{n.current=e})),n.current};var uq=(e,n)=>{const r=t.useRef(!1);t.useEffect((()=>{r.current?e():r.current=!0}),n)},dq=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fq=t.forwardRef(((e,n)=>{const{prefixCls:r,component:o="article",className:i,rootClassName:a,setContentRef:l,children:c,direction:s,style:u}=e,d=dq(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:h}=t.useContext(B),v=null!=s?s:p;let m=n;l&&(m=Po(n,l));const g=f("typography",r),[b,y,w]=nq(g),x=_o()(g,null==h?void 0:h.className,{[`${g}-rtl`]:"rtl"===v},i,a,y,w),S=Object.assign(Object.assign({},null==h?void 0:h.style),u);return b(t.createElement(o,Object.assign({className:x,style:S,ref:m},d),c))}));var pq=fq,hq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},vq=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:hq}))};var mq=t.forwardRef(vq);function gq(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function bq(e,t,n){return!0===e||void 0===e?t:e||n&&t}var yq=e=>{const{prefixCls:n,copied:r,locale:o,iconOnly:i,tooltips:a,icon:l,loading:c,tabIndex:s,onCopy:u}=e,d=gq(a),f=gq(l),{copied:p,copy:h}=null!=o?o:{},v=r?bq(d[1],p):bq(d[0],h),m="string"==typeof v?v:r?p:h;return t.createElement(eh,{key:"copy",title:v},t.createElement(VT,{className:_o()(`${n}-copy`,{[`${n}-copy-success`]:r,[`${n}-copy-icon-only`]:i}),onClick:u,"aria-label":m,tabIndex:s},r?bq(f[1],t.createElement($w,null),!0):bq(f[0],c?t.createElement(ol,null):t.createElement(mq,null),!0)))};const wq=t.forwardRef(((e,n)=>{let{style:r,children:o}=e;const i=t.useRef(null);return t.useImperativeHandle(n,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),t.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},o)}));function xq(e){const t=typeof e;return"string"===t||"number"===t}function Sq(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],a=n+(xq(i)?String(i).length:1);if(a>t){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const Cq={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function kq(e){const{enableMeasure:n,width:r,text:o,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:s}=e,u=t.useMemo((()=>Qc(o)),[o]),d=t.useMemo((()=>function(e){let t=0;return e.forEach((e=>{xq(e)?t+=String(e).length:t+=1})),t}(u)),[o]),f=t.useMemo((()=>i(u,!1)),[o]),[p,h]=t.useState(null),v=t.useRef(null),m=t.useRef(null),g=t.useRef(null),b=t.useRef(null),y=t.useRef(null),[w,x]=t.useState(!1),[S,C]=t.useState(0),[k,E]=t.useState(0),[O,_]=t.useState(null);Je((()=>{C(n&&r&&d?1:0)}),[r,o,a,n,u]),Je((()=>{var e,t,n,r;if(1===S){C(2);const e=m.current&&getComputedStyle(m.current).whiteSpace;_(e)}else if(2===S){const o=!!(null===(e=g.current)||void 0===e?void 0:e.isExceed());C(o?3:4),h(o?[0,d]:null),x(o);const i=(null===(t=g.current)||void 0===t?void 0:t.getHeight())||0,l=(1===a?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0)+((null===(r=y.current)||void 0===r?void 0:r.getHeight())||0),c=Math.max(i,l);E(c+1),s(o)}}),[S]);const $=p?Math.ceil((p[0]+p[1])/2):0;Je((()=>{var e;const[t,n]=p||[0,0];if(t!==n){const r=((null===(e=v.current)||void 0===e?void 0:e.getHeight())||0)>k;let o=$;n-t==1&&(o=r?t:n),h(r?[t,o]:[o,n])}}),[p,$]);const j=t.useMemo((()=>{if(3!==S||!p||p[0]!==p[1]){const e=i(u,!1);return 4!==S&&0!==S?t.createElement("span",{style:Object.assign(Object.assign({},Cq),{WebkitLineClamp:a})},e):e}return i(l?u:Sq(u,p[0]),w)}),[l,S,p,u].concat(K(c))),N={width:r,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return t.createElement(t.Fragment,null,j,2===S&&t.createElement(t.Fragment,null,t.createElement(wq,{style:Object.assign(Object.assign(Object.assign({},N),Cq),{WebkitLineClamp:a}),ref:g},f),t.createElement(wq,{style:Object.assign(Object.assign(Object.assign({},N),Cq),{WebkitLineClamp:a-1}),ref:b},f),t.createElement(wq,{style:Object.assign(Object.assign(Object.assign({},N),Cq),{WebkitLineClamp:1}),ref:y},i([],!0))),3===S&&p&&p[0]!==p[1]&&t.createElement(wq,{style:Object.assign(Object.assign({},N),{top:400}),ref:v},i(Sq(u,$),!0)),1===S&&t.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}var Eq=e=>{let{enableEllipsis:n,isEllipsis:r,children:o,tooltipProps:i}=e;return(null==i?void 0:i.title)&&n?t.createElement(eh,Object.assign({open:!!r&&void 0},i),o):o},Oq=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _q=t.forwardRef(((e,n)=>{var r,o,i;const{prefixCls:a,className:l,style:c,type:s,disabled:u,children:d,ellipsis:f,editable:p,copyable:h,component:v,title:m}=e,g=Oq(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=t.useContext(B),[w]=th("Text"),x=t.useRef(null),S=t.useRef(null),C=b("typography",a),k=Tc(g,["mark","code","delete","underline","strong","keyboard","italic"]),[E,O]=cq(p),[_,$]=Zo(!1,{value:O.editing}),{triggerType:j=["icon"]}=O,N=e=>{var t;e&&(null===(t=O.onStart)||void 0===t||t.call(O)),$(e)},I=sq(_);uq((()=>{var e;!_&&I&&(null===(e=S.current)||void 0===e||e.focus())}),[_]);const P=e=>{null==e||e.preventDefault(),N(!0)},M=e=>{var t;null===(t=O.onChange)||void 0===t||t.call(O,e),N(!1)},R=()=>{var e;null===(e=O.onCancel)||void 0===e||e.call(O),N(!1)},[A,T]=cq(h),{copied:q,copyLoading:L,onClick:D}=lq({copyConfig:T,children:d}),[z,F]=t.useState(!1),[H,W]=t.useState(!1),[V,U]=t.useState(!1),[G,Y]=t.useState(!1),[K,X]=t.useState(!0),[Q,Z]=cq(f,{expandable:!1,symbol:e=>e?null==w?void 0:w.collapse:null==w?void 0:w.expand}),[J,ee]=Zo(Z.defaultExpanded||!1,{value:Z.expanded}),te=Q&&(!J||"collapsible"===Z.expandable),{rows:ne=1}=Z,re=t.useMemo((()=>te&&(void 0!==Z.suffix||Z.onEllipsis||Z.expandable||E||A)),[te,Z,E,A]);Je((()=>{Q&&!re&&(F(BT("webkitLineClamp")),W(BT("textOverflow")))}),[re,Q]);const[oe,ie]=t.useState(te),ae=t.useMemo((()=>!re&&(1===ne?H:z)),[re,H,z]);Je((()=>{ie(ae&&te)}),[ae,te]);const le=te&&(oe?G:V),ce=te&&1===ne&&oe,se=te&&ne>1&&oe,[ue,de]=t.useState(0),fe=e=>{var t;U(e),V!==e&&(null===(t=Z.onEllipsis)||void 0===t||t.call(Z,e))};t.useEffect((()=>{const e=x.current;if(Q&&oe&&e){const[t,n]=function(e){const t=e.getBoundingClientRect(),{offsetWidth:n,offsetHeight:r}=e;let o=n,i=r;return Math.abs(n-t.width)<1&&Math.abs(r-t.height)<1&&(o=t.width,i=t.height),[o,i]}(e),r=se?n<e.scrollHeight:t<e.scrollWidth;G!==r&&Y(r)}}),[Q,oe,d,se,K,ue]),t.useEffect((()=>{const e=x.current;if("undefined"==typeof IntersectionObserver||!e||!oe||!te)return;const t=new IntersectionObserver((()=>{X(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[oe,te]);let pe={};pe=!0===Z.tooltip?{title:null!==(r=O.text)&&void 0!==r?r:d}:t.isValidElement(Z.tooltip)?{title:Z.tooltip}:"object"==typeof Z.tooltip?Object.assign({title:null!==(o=O.text)&&void 0!==o?o:d},Z.tooltip):{title:Z.tooltip};const he=t.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(Q&&!oe)return e(O.text)?O.text:e(d)?d:e(m)?m:e(pe.title)?pe.title:void 0}),[Q,oe,m,pe.title,le]);if(_)return t.createElement(rq,{value:null!==(i=O.text)&&void 0!==i?i:"string"==typeof d?d:"",onSave:M,onCancel:R,onEnd:O.onEnd,prefixCls:C,className:l,style:c,direction:y,component:v,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const ve=()=>{const{expandable:e,symbol:n}=Z;return e?J&&"collapsible"!==e?null:t.createElement(VT,{key:"expand",className:`${C}-${J?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;ee(t.expanded),null===(n=Z.onExpand)||void 0===n||n.call(Z,e,t)})(e,{expanded:!J}),"aria-label":J?w.collapse:null==w?void 0:w.expand},"function"==typeof n?n(J):n):null},me=()=>{if(!E)return;const{icon:e,tooltip:n,tabIndex:r}=O,o=Qc(n)[0]||(null==w?void 0:w.edit),i="string"==typeof o?o:"";return j.includes("icon")?t.createElement(eh,{key:"edit",title:!1===n?"":o},t.createElement(VT,{ref:S,className:`${C}-edit`,onClick:P,"aria-label":i,tabIndex:r},e||t.createElement(DT,{role:"button"}))):null},ge=e=>[e&&ve(),me(),A?t.createElement(yq,Object.assign({key:"copy"},T,{prefixCls:C,copied:q,locale:w,onCopy:D,loading:L,iconOnly:null==d})):null];return t.createElement(Zu,{onResize:e=>{let{offsetWidth:t}=e;de(t)},disabled:!te},(r=>t.createElement(Eq,{tooltipProps:pe,enableEllipsis:te,isEllipsis:le},t.createElement(pq,Object.assign({className:_o()({[`${C}-${s}`]:s,[`${C}-disabled`]:u,[`${C}-ellipsis`]:Q,[`${C}-ellipsis-single-line`]:ce,[`${C}-ellipsis-multiple-line`]:se},l),prefixCls:a,style:Object.assign(Object.assign({},c),{WebkitLineClamp:se?ne:void 0}),component:v,ref:Po(r,x,n),direction:y,onClick:j.includes("text")?P:void 0,"aria-label":null==he?void 0:he.toString(),title:m},k),t.createElement(kq,{enableMeasure:te&&!oe,text:d,rows:ne,width:ue,onEllipsis:fe,expanded:J,miscDeps:[q,J,L,E,A]},((n,r)=>function(e,n){let{mark:r,code:o,underline:i,delete:a,strong:l,keyboard:c,italic:s}=e,u=n;function d(e,n){n&&(u=t.createElement(e,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",o),d("mark",r),d("kbd",c),d("i",s),u}(e,t.createElement(t.Fragment,null,n.length>0&&r&&!J&&he?t.createElement("span",{key:"show-content","aria-hidden":!0},n):n,(e=>[e&&!J&&t.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Z.suffix,ge(e)])(r)))))))))}));var $q=_q,jq=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Nq=t.forwardRef(((e,n)=>{var{ellipsis:r,rel:o}=e,i=jq(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:void 0===o&&"_blank"===i.target?"noopener noreferrer":o});return delete a.navigate,t.createElement($q,Object.assign({},a,{ref:n,ellipsis:!!r,component:"a"}))}));var Iq=t.forwardRef(((e,n)=>t.createElement($q,Object.assign({ref:n},e,{component:"div"})))),Pq=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Mq=(e,n)=>{var{ellipsis:r}=e,o=Pq(e,["ellipsis"]);const i=t.useMemo((()=>r&&"object"==typeof r?Tc(r,["expandable","rows"]):r),[r]);return t.createElement($q,Object.assign({ref:n},o,{ellipsis:i,component:"span"}))};var Rq=t.forwardRef(Mq),Aq=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Tq=[1,2,3,4,5];var qq=t.forwardRef(((e,n)=>{const{level:r=1}=e,o=Aq(e,["level"]);let i;return i=Tq.includes(r)?`h${r}`:"h1",t.createElement($q,Object.assign({ref:n},o,{component:i}))}));const Lq=pq;Lq.Text=Rq,Lq.Link=Nq,Lq.Title=qq,Lq.Paragraph=Iq;var Dq=Lq,zq={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"},Bq=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:zq}))};var Fq=t.forwardRef(Bq),Hq=(0,t.createContext)(null),Wq=function(e){var n=e.activeTabOffset,r=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=G((0,t.useState)(),2),d=u[0],f=u[1],p=(0,t.useRef)(),h=t.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function v(){ji.cancel(p.current)}return(0,t.useEffect)((function(){var e={};if(n)if(r){e.width=h(n.width);var t=o?"right":"left";"start"===s&&(e[t]=n[t]),"center"===s&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=h(n.height),"start"===s&&(e.top=n.top),"center"===s&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return v(),p.current=ji((function(){f(e)})),v}),[n,r,o,s,h]),{style:d}},Vq={width:0,height:0,left:0,top:0};function Uq(e,n){var r=t.useRef(e),o=G(t.useState({}),2)[1];return[r.current,function(e){var t="function"==typeof e?e(r.current):e;t!==r.current&&n(t,r.current),r.current=t,o({})}]}var Gq=Math.pow(.995,20);function Yq(e){var n=G((0,t.useState)(0),2),r=n[0],o=n[1],i=(0,t.useRef)(0),a=(0,t.useRef)();return a.current=e,Ze((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var Kq={width:0,height:0,left:0,top:0,right:0};function Xq(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Qq(e){return String(e).replace(/"/g,"TABS_DQ")}function Zq(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var Jq=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?t.createElement("button",{ref:n,type:"button",className:"".concat(r,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null})),eL=Jq,tL=t.forwardRef((function(e,n){var r,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==v(a)||t.isValidElement(a)?l.right=a:l=a,"right"===o&&(r=l.right),"left"===o&&(r=l.left),r?t.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},r):null}));var nL=tL,rL=al.ESC,oL=al.TAB;var iL=(0,t.forwardRef)((function(e,n){var r=e.overlay,o=e.arrow,i=e.prefixCls,a=(0,t.useMemo)((function(){return"function"==typeof r?r():r}),[r]),l=Po(n,null==a?void 0:a.ref);return t.createElement(t.Fragment,null,o&&t.createElement("div",{className:"".concat(i,"-arrow")}),t.cloneElement(a,{ref:Ro(a)?l:void 0}))})),aL={adjustX:1,adjustY:1},lL=[0,0],cL={topLeft:{points:["bl","tl"],overflow:aL,offset:[0,-4],targetOffset:lL},top:{points:["bc","tc"],overflow:aL,offset:[0,-4],targetOffset:lL},topRight:{points:["br","tr"],overflow:aL,offset:[0,-4],targetOffset:lL},bottomLeft:{points:["tl","bl"],overflow:aL,offset:[0,4],targetOffset:lL},bottom:{points:["tc","bc"],overflow:aL,offset:[0,4],targetOffset:lL},bottomRight:{points:["tr","br"],overflow:aL,offset:[0,4],targetOffset:lL}},sL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function uL(e,n){var r,o=e.arrow,i=void 0!==o&&o,a=e.prefixCls,l=void 0===a?"rc-dropdown":a,c=e.transitionName,s=e.animation,u=e.align,d=e.placement,f=void 0===d?"bottomLeft":d,p=e.placements,h=void 0===p?cL:p,v=e.getPopupContainer,m=e.showAction,g=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,x=e.visible,S=e.trigger,C=void 0===S?["hover"]:S,k=e.autoFocus,E=e.overlay,O=e.children,_=e.onVisibleChange,$=To(e,sL),j=G(t.useState(),2),N=j[0],I=j[1],P="visible"in e?x:N,M=t.useRef(null),R=t.useRef(null),A=t.useRef(null);t.useImperativeHandle(n,(function(){return M.current}));var T=function(e){I(e),null==_||_(e)};!function(e){var n=e.visible,r=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=t.useRef(!1),c=function(){var e,t;n&&(null===(e=r.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case rL:c();break;case oL:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};t.useEffect((function(){return n?(window.addEventListener("keydown",u),i&&ji(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[n])}({visible:P,triggerRef:A,onVisibleChange:T,autoFocus:k,overlayRef:R});var q,L,D,z=function(){return t.createElement(iL,{ref:R,overlay:E,prefixCls:l,arrow:i})},B=t.cloneElement(O,{className:_o()(null===(r=O.props)||void 0===r?void 0:r.className,P&&(q=e.openClassName,void 0!==q?q:"".concat(l,"-open"))),ref:Ro(O)?Po(A,O.ref):void 0}),F=g;return F||-1===C.indexOf("contextMenu")||(F=["click"]),t.createElement(Od,pt({builtinPlacements:h},$,{prefixCls:l,ref:M,popupClassName:_o()(b,w({},"".concat(l,"-show-arrow"),i)),popupStyle:y,action:C,showAction:m,hideAction:F,popupPlacement:f,popupAlign:u,popupTransitionName:c,popupAnimation:s,popupVisible:P,stretch:(L=e.minOverlayWidthMatchTrigger,D=e.alignPoint,("minOverlayWidthMatchTrigger"in e?L:!D)?"minWidth":""),popup:"function"==typeof E?z:z(),onPopupVisibleChange:T,onPopupClick:function(t){var n=e.onOverlayClick;I(!1),n&&n(t)},getPopupContainer:v}),B)}var dL=t.forwardRef(uL),fL=t.createContext(null);function pL(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function hL(e){return pL(t.useContext(fL),e)}var vL=["children","locked"],mL=t.createContext(null);function gL(e){var n=e.children,r=e.locked,o=To(e,vL),i=t.useContext(mL),a=ue((function(){return e=o,t=S({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(r||e[0]===t[0]&&ye(e[1],t[1],!0))}));return t.createElement(mL.Provider,{value:a},n)}var bL=[],yL=t.createContext(null);function wL(){return t.useContext(yL)}var xL=t.createContext(bL);function SL(e){var n=t.useContext(xL);return t.useMemo((function(){return void 0!==e?[].concat(K(n),[e]):n}),[n,e])}var CL=t.createContext(null),kL=t.createContext({});function EL(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(qc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function OL(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=K(e.querySelectorAll("*")).filter((function(e){return EL(e,t)}));return EL(e,t)&&n.unshift(e),n}var _L=al.LEFT,$L=al.RIGHT,jL=al.UP,NL=al.DOWN,IL=al.ENTER,PL=al.ESC,ML=al.HOME,RL=al.END,AL=[jL,NL,_L,$L];function TL(e,t){return OL(e,!0).filter((function(e){return t.has(e)}))}function qL(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=TL(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var LL=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(pL(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function DL(e,n,r,o,i,a,l,c,s,u){var d=t.useRef(),f=t.useRef();f.current=n;var p=function(){ji.cancel(d.current)};return t.useEffect((function(){return function(){p()}}),[]),function(t){var h=t.which;if([].concat(AL,[IL,PL,ML,RL]).includes(h)){var v=a(),m=LL(v,o),g=m,b=g.elements,y=g.key2element,x=g.element2key,S=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(n),b),C=x.get(S),k=function(e,t,n,r){var o,i,a,l,c="prev",s="next",u="children",d="parent";if("inline"===e&&r===IL)return{inlineTrigger:!0};var f=(w(o={},jL,c),w(o,NL,s),o),p=(w(i={},_L,n?s:c),w(i,$L,n?c:s),w(i,NL,u),w(i,IL,u),i),h=(w(a={},jL,c),w(a,NL,s),w(a,IL,u),w(a,PL,d),w(a,_L,n?u:d),w(a,$L,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(C,!0).length,r,h);if(!k&&h!==ML&&h!==RL)return;(AL.includes(h)||[ML,RL].includes(h))&&t.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=x.get(e);c(r),p(),d.current=ji((function(){f.current===r&&t.focus()}))}};if([ML,RL].includes(h)||k.sibling||!S){var O,_,$=TL(O=S&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(S):i.current,b);_=h===ML?$[0]:h===RL?$[$.length-1]:qL(O,b,S,k.offset),E(_)}else if(k.inlineTrigger)s(C);else if(k.offset>0)s(C,!0),p(),d.current=ji((function(){m=LL(v,o);var e=S.getAttribute("aria-controls"),t=qL(document.getElementById(e),m.elements);E(t)}),5);else if(k.offset<0){var j=l(C,!0),N=j[j.length-2],I=y.get(N);s(N,!1),E(I)}}null==u||u(t)}}var zL="__RC_UTIL_PATH_SPLIT__",BL=function(e){return e.join(zL)},FL="rc-menu-more";function HL(){var e=G(t.useState({}),2)[1],n=(0,t.useRef)(new Map),r=(0,t.useRef)(new Map),o=G(t.useState([]),2),i=o[0],a=o[1],l=(0,t.useRef)(0),c=(0,t.useRef)(!1),s=(0,t.useCallback)((function(t,o){var i=BL(o);r.current.set(i,t),n.current.set(t,i),l.current+=1;var a,s=l.current;a=function(){s===l.current&&(c.current||e({}))},Promise.resolve().then(a)}),[]),u=(0,t.useCallback)((function(e,t){var o=BL(t);r.current.delete(o),n.current.delete(e)}),[]),d=(0,t.useCallback)((function(e){a(e)}),[]),f=(0,t.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(zL);return t&&i.includes(o[0])&&o.unshift(FL),o}),[i]),p=(0,t.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),h=(0,t.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(zL),o=new Set;return K(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return t.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:s,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:f,getKeys:function(){var e=K(n.current.keys());return i.length&&e.push(FL),e},getSubPathKeys:h}}function WL(e){var n=t.useRef(e);n.current=e;var r=t.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return e?r:void 0}var VL=Math.random().toFixed(5).toString().slice(2),UL=0;function GL(e,n,r,o){var i=t.useContext(mL),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return n||(s.onMouseEnter=function(t){null==r||r({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),c(e)}),s}function YL(e){var n=t.useContext(mL),r=n.mode,o=n.rtl,i=n.inlineIndent;if("inline"!==r)return null;return o?{paddingRight:e*i}:{paddingLeft:e*i}}function KL(e){var n,r=e.icon,o=e.props,i=e.children;return null===r||!1===r?null:("function"==typeof r?n=t.createElement(r,S({},o)):"boolean"!=typeof r&&(n=r),n||i||null)}var XL=["item"];function QL(e){var t=e.item,n=To(e,XL);return Object.defineProperty(n,"item",{get:function(){return be(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var ZL=["title","attribute","elementRef"],JL=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],eD=["active"],tD=function(e){Bo(r,e);var n=Uo(r);function r(){return we(this,r),n.apply(this,arguments)}return Se(r,[{key:"render",value:function(){var e=this.props,n=e.title,r=e.attribute,o=e.elementRef,i=Tc(To(e,ZL),["eventKey","popupClassName","popupOffset","onTitleClick"]);return be(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),t.createElement(fb.Item,pt({},r,{title:"string"==typeof n?n:void 0},i,{ref:o}))}}]),r}(t.Component),nD=t.forwardRef((function(e,n){var r,o=e.style,i=e.className,a=e.eventKey,l=(e.warnKey,e.disabled),c=e.itemIcon,s=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,p=e.onClick,h=e.onKeyDown,v=e.onFocus,m=To(e,JL),g=hL(a),b=t.useContext(mL),y=b.prefixCls,x=b.onItemClick,C=b.disabled,k=b.overflowDisabled,E=b.itemIcon,O=b.selectedKeys,_=b.onActive,$=t.useContext(kL)._internalRenderMenuItem,j="".concat(y,"-item"),N=t.useRef(),I=t.useRef(),P=C||l,M=Mo(n,I),R=SL(a);var A=function(e){return{key:a,keyPath:K(R).reverse(),item:N.current,domEvent:e}},T=c||E,q=GL(a,P,d,f),L=q.active,D=To(q,eD),z=O.includes(a),B=YL(R.length),F={};"option"===e.role&&(F["aria-selected"]=z);var H=t.createElement(tD,pt({ref:N,elementRef:M,role:null===u?"none":u||"menuitem",tabIndex:l?null:-1,"data-menu-id":k&&g?null:g},m,D,F,{component:"li","aria-disabled":l,style:S(S({},B),o),className:_o()(j,(r={},w(r,"".concat(j,"-active"),L),w(r,"".concat(j,"-selected"),z),w(r,"".concat(j,"-disabled"),P),r),i),onClick:function(e){if(!P){var t=A(e);null==p||p(QL(t)),x(t)}},onKeyDown:function(e){if(null==h||h(e),e.which===al.ENTER){var t=A(e);null==p||p(QL(t)),x(t)}},onFocus:function(e){_(a),null==v||v(e)}}),s,t.createElement(KL,{props:S(S({},e),{},{isSelected:z}),icon:T}));return $&&(H=$(H,e,{selected:z})),H}));function rD(e,n){var r=e.eventKey,o=wL(),i=SL(r);return t.useEffect((function(){if(o)return o.registerPath(r,i),function(){o.unregisterPath(r,i)}}),[i]),o?null:t.createElement(nD,pt({},e,{ref:n}))}var oD=t.forwardRef(rD),iD=["className","children"],aD=function(e,n){var r=e.className,o=e.children,i=To(e,iD),a=t.useContext(mL),l=a.prefixCls,c=a.mode,s=a.rtl;return t.createElement("ul",pt({className:_o()(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},lD=t.forwardRef(aD);lD.displayName="SubMenuList";var cD=lD;function sD(e,n){return Qc(e).map((function(e,r){if(t.isValidElement(e)){var o,i,a=e.key,l=null!==(o=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a;null==l&&(l="tmp_key-".concat([].concat(K(n),[r]).join("-")));var c={key:l,eventKey:l};return t.cloneElement(e,c)}return e}))}var uD={adjustX:1,adjustY:1},dD={topLeft:{points:["bl","tl"],overflow:uD},topRight:{points:["br","tr"],overflow:uD},bottomLeft:{points:["tl","bl"],overflow:uD},bottomRight:{points:["tr","br"],overflow:uD},leftTop:{points:["tr","tl"],overflow:uD},leftBottom:{points:["br","bl"],overflow:uD},rightTop:{points:["tl","tr"],overflow:uD},rightBottom:{points:["bl","br"],overflow:uD}},fD={topLeft:{points:["bl","tl"],overflow:uD},topRight:{points:["br","tr"],overflow:uD},bottomLeft:{points:["tl","bl"],overflow:uD},bottomRight:{points:["tr","br"],overflow:uD},rightTop:{points:["tr","tl"],overflow:uD},rightBottom:{points:["br","bl"],overflow:uD},leftTop:{points:["tl","tr"],overflow:uD},leftBottom:{points:["bl","br"],overflow:uD}};function pD(e,t,n){return t||(n?n[e]||n.other:void 0)}var hD={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function vD(e){var n=e.prefixCls,r=e.visible,o=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=t.useContext(mL),p=f.getPopupContainer,h=f.rtl,v=f.subMenuOpenDelay,m=f.subMenuCloseDelay,g=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,x=f.rootClassName,C=f.motion,k=f.defaultMotions,E=G(t.useState(!1),2),O=E[0],_=E[1],$=S(S({},h?fD:dD),g),j=hD[u],N=pD(u,C,k),I=t.useRef(N);"inline"!==u&&(I.current=N);var P=S(S({},I.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),M=t.useRef();return t.useEffect((function(){return M.current=ji((function(){_(r)})),function(){ji.cancel(M.current)}}),[r]),t.createElement(Od,{prefixCls:n,popupClassName:_o()("".concat(n,"-popup"),w({},"".concat(n,"-rtl"),h),l,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:$,popupPlacement:j,popupVisible:O,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[b],mouseEnterDelay:v,mouseLeaveDelay:m,onPopupVisibleChange:d,forceRender:y,popupMotion:P,fresh:!0},o)}function mD(e){var n=e.id,r=e.open,o=e.keyPath,i=e.children,a="inline",l=t.useContext(mL),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=t.useRef(!1);p.current=f===a;var h=G(t.useState(!p.current),2),v=h[0],m=h[1],g=!!p.current&&r;t.useEffect((function(){p.current&&m(!1)}),[f]);var b=S({},pD(a,u,d));o.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||m(!0),null==y?void 0:y(e)},v?null:t.createElement(gL,{mode:a,locked:!p.current},t.createElement(Yi,pt({visible:g},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var r=e.className,o=e.style;return t.createElement(cD,{id:n,className:r,style:o},i)})))}var gD=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],bD=["active"],yD=t.forwardRef((function(e,n){var r,o=e.style,i=e.className,a=e.title,l=e.eventKey,c=(e.warnKey,e.disabled),s=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,p=e.popupClassName,h=e.popupOffset,v=e.popupStyle,m=e.onClick,g=e.onMouseEnter,b=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,C=e.onTitleMouseLeave,k=To(e,gD),E=hL(l),O=t.useContext(mL),_=O.prefixCls,$=O.mode,j=O.openKeys,N=O.disabled,I=O.overflowDisabled,P=O.activeKey,M=O.selectedKeys,R=O.itemIcon,A=O.expandIcon,T=O.onItemClick,q=O.onOpenChange,L=O.onActive,D=t.useContext(kL)._internalRenderSubMenuItem,z=t.useContext(CL).isSubPathKey,B=SL(),F="".concat(_,"-submenu"),H=N||c,W=t.useRef(),V=t.useRef();var U=null!=d?d:R,Y=null!=f?f:A,K=j.includes(l),X=!I&&K,Q=z(M,l),Z=GL(l,H,x,C),J=Z.active,ee=To(Z,bD),te=G(t.useState(!1),2),ne=te[0],re=te[1],oe=function(e){H||re(e)},ie=t.useMemo((function(){return J||"inline"!==$&&(ne||z([P],l))}),[$,J,P,ne,l,z]),ae=YL(B.length),le=WL((function(e){null==m||m(QL(e)),T(e)})),ce=E&&"".concat(E,"-popup"),se=t.createElement("div",pt({role:"menuitem",style:ae,className:"".concat(F,"-title"),tabIndex:H?null:-1,ref:W,title:"string"==typeof a?a:null,"data-menu-id":I&&E?null:E,"aria-expanded":X,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":H,onClick:function(e){H||(null==y||y({key:l,domEvent:e}),"inline"===$&&q(l,!K))},onFocus:function(){L(l)}},ee),a,t.createElement(KL,{icon:"horizontal"!==$?Y:void 0,props:S(S({},e),{},{isOpen:X,isSubMenu:!0})},t.createElement("i",{className:"".concat(F,"-arrow")}))),ue=t.useRef($);if("inline"!==$&&B.length>1?ue.current="vertical":ue.current=$,!I){var de=ue.current;se=t.createElement(vD,{mode:de,prefixCls:F,visible:!s&&X&&"inline"!==$,popupClassName:p,popupOffset:h,popupStyle:v,popup:t.createElement(gL,{mode:"horizontal"===de?"vertical":de},t.createElement(cD,{id:ce,ref:V},u)),disabled:H,onVisibleChange:function(e){"inline"!==$&&q(l,e)}},se)}var fe=t.createElement(fb.Item,pt({ref:n,role:"none"},k,{component:"li",style:o,className:_o()(F,"".concat(F,"-").concat($),i,(r={},w(r,"".concat(F,"-open"),X),w(r,"".concat(F,"-active"),ie),w(r,"".concat(F,"-selected"),Q),w(r,"".concat(F,"-disabled"),H),r)),onMouseEnter:function(e){oe(!0),null==g||g({key:l,domEvent:e})},onMouseLeave:function(e){oe(!1),null==b||b({key:l,domEvent:e})}}),se,!I&&t.createElement(mD,{id:ce,open:X,keyPath:B},u));return D&&(fe=D(fe,e,{selected:Q,active:ie,open:X,disabled:H})),t.createElement(gL,{onItemClick:le,mode:"horizontal"===$?"vertical":$,itemIcon:U,expandIcon:Y},fe)}));var wD=t.forwardRef((function(e,n){var r,o=e.eventKey,i=e.children,a=SL(o),l=sD(i,a),c=wL();return t.useEffect((function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}}),[a]),r=c?l:t.createElement(yD,pt({ref:n},e),l),t.createElement(xL.Provider,{value:a},r)}));function xD(e){var n=e.className,r=e.style,o=t.useContext(mL).prefixCls;return wL()?null:t.createElement("li",{role:"separator",className:_o()("".concat(o,"-item-divider"),n),style:r})}var SD=["className","title","eventKey","children"],CD=t.forwardRef((function(e,n){var r=e.className,o=e.title,i=(e.eventKey,e.children),a=To(e,SD),l=t.useContext(mL).prefixCls,c="".concat(l,"-item-group");return t.createElement("li",pt({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:_o()(c,r)}),t.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),t.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))}));var kD=t.forwardRef((function(e,n){var r=e.eventKey,o=sD(e.children,SL(r));return wL()?o:t.createElement(CD,pt({ref:n},Tc(e,["warnKey"])),o)})),ED=["label","children","key","type"];function OD(e,n){var r=n.item,o=n.group,i=n.submenu,a=n.divider;return(e||[]).map((function(e,l){if(e&&"object"===v(e)){var c=e,s=c.label,u=c.children,d=c.key,f=c.type,p=To(c,ED),h=null!=d?d:"tmp-".concat(l);return u||"group"===f?"group"===f?t.createElement(o,pt({key:h},p,{title:s}),OD(u,n)):t.createElement(i,pt({key:h},p,{title:s}),OD(u,n)):"divider"===f?t.createElement(a,pt({key:h},p)):t.createElement(r,pt({key:h},p),s)}return null})).filter((function(e){return e}))}function _D(e,t,n,r){var o=e,i=S({divider:xD,item:oD,group:kD,submenu:wD},r);return t&&(o=OD(t,i)),sD(o,n)}var $D=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],jD=[],ND=t.forwardRef((function(e,n){var r,o,i=e,a=i.prefixCls,l=void 0===a?"rc-menu":a,c=i.rootClassName,s=i.style,u=i.className,d=i.tabIndex,f=void 0===d?0:d,p=i.items,h=i.children,v=i.direction,m=i.id,g=i.mode,b=void 0===g?"vertical":g,y=i.inlineCollapsed,x=i.disabled,C=i.disabledOverflow,E=i.subMenuOpenDelay,O=void 0===E?.1:E,_=i.subMenuCloseDelay,$=void 0===_?.1:_,j=i.forceSubMenuRender,N=i.defaultOpenKeys,I=i.openKeys,P=i.activeKey,M=i.defaultActiveFirst,R=i.selectable,A=void 0===R||R,T=i.multiple,q=void 0!==T&&T,L=i.defaultSelectedKeys,D=i.selectedKeys,z=i.onSelect,B=i.onDeselect,F=i.inlineIndent,H=void 0===F?24:F,W=i.motion,V=i.defaultMotions,U=i.triggerSubMenuAction,Y=void 0===U?"hover":U,X=i.builtinPlacements,Q=i.itemIcon,Z=i.expandIcon,J=i.overflowedIndicator,ee=void 0===J?"...":J,te=i.overflowedIndicatorPopupClassName,ne=i.getPopupContainer,re=i.onClick,oe=i.onOpenChange,ie=i.onKeyDown,ae=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),le=i._internalRenderSubMenuItem,ce=i._internalComponents,se=To(i,$D),ue=G(t.useMemo((function(){return[_D(h,p,jD,ce),_D(h,p,jD,{})]}),[h,p,ce]),2),de=ue[0],fe=ue[1],pe=G(t.useState(!1),2),he=pe[0],ve=pe[1],me=t.useRef(),ge=function(e){var n=G(Zo(e,{value:e}),2),r=n[0],o=n[1];return t.useEffect((function(){UL+=1;var e="".concat(VL,"-").concat(UL);o("rc-menu-uuid-".concat(e))}),[]),r}(m),be="rtl"===v;var we=Zo(N,{value:I,postState:function(e){return e||jD}}),xe=G(we,2),Se=xe[0],Ce=xe[1],ke=function(e){function t(){Ce(e),null==oe||oe(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,k.flushSync)(t):t()},Ee=G(t.useState(Se),2),Oe=Ee[0],_e=Ee[1],$e=t.useRef(!1),je=G(t.useMemo((function(){return"inline"!==b&&"vertical"!==b||!y?[b,!1]:["vertical",y]}),[b,y]),2),Ne=je[0],Ie=je[1],Pe="inline"===Ne,Me=G(t.useState(Ne),2),Re=Me[0],Ae=Me[1],Te=G(t.useState(Ie),2),qe=Te[0],Le=Te[1];t.useEffect((function(){Ae(Ne),Le(Ie),$e.current&&(Pe?Ce(Oe):ke(jD))}),[Ne,Ie]);var De=G(t.useState(0),2),ze=De[0],Be=De[1],Fe=ze>=de.length-1||"horizontal"!==Re||C;t.useEffect((function(){Pe&&_e(Se)}),[Se]),t.useEffect((function(){return $e.current=!0,function(){$e.current=!1}}),[]);var He=HL(),We=He.registerPath,Ve=He.unregisterPath,Ue=He.refreshOverflowKeys,Ge=He.isSubPathKey,Ye=He.getKeyPath,Ke=He.getKeys,Xe=He.getSubPathKeys,Qe=t.useMemo((function(){return{registerPath:We,unregisterPath:Ve}}),[We,Ve]),Ze=t.useMemo((function(){return{isSubPathKey:Ge}}),[Ge]);t.useEffect((function(){Ue(Fe?jD:de.slice(ze+1).map((function(e){return e.key})))}),[ze,Fe]);var Je=G(Zo(P||M&&(null===(r=de[0])||void 0===r?void 0:r.key),{value:P}),2),et=Je[0],tt=Je[1],nt=WL((function(e){tt(e)})),rt=WL((function(){tt(void 0)}));(0,t.useImperativeHandle)(n,(function(){return{list:me.current,focus:function(e){var t,n,r=Ke(),o=LL(r,ge),i=o.elements,a=o.key2element,l=o.element2key,c=TL(me.current,i),s=null!=et?et:c[0]?l.get(c[0]):null===(t=de.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var ot=Zo(L||[],{value:D,postState:function(e){return Array.isArray(e)?e:null==e?jD:[e]}}),it=G(ot,2),at=it[0],lt=it[1],ct=WL((function(e){null==re||re(QL(e)),function(e){if(A){var t,n=e.key,r=at.includes(n);t=q?r?at.filter((function(e){return e!==n})):[].concat(K(at),[n]):[n],lt(t);var o=S(S({},e),{},{selectedKeys:t});r?null==B||B(o):null==z||z(o)}!q&&Se.length&&"inline"!==Re&&ke(jD)}(e)})),st=WL((function(e,t){var n=Se.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var r=Xe(e);n=n.filter((function(e){return!r.has(e)}))}ye(Se,n,!0)||ke(n,!0)})),ut=DL(Re,et,be,ge,me,Ke,Ye,tt,(function(e,t){var n=null!=t?t:!Se.includes(e);st(e,n)}),ie);t.useEffect((function(){ve(!0)}),[]);var dt=t.useMemo((function(){return{_internalRenderMenuItem:ae,_internalRenderSubMenuItem:le}}),[ae,le]),ft="horizontal"!==Re||C?de:de.map((function(e,n){return t.createElement(gL,{key:e.key,overflowDisabled:n>ze},e)})),ht=t.createElement(fb,pt({id:m,ref:me,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:oD,className:_o()(l,"".concat(l,"-root"),"".concat(l,"-").concat(Re),u,(o={},w(o,"".concat(l,"-inline-collapsed"),qe),w(o,"".concat(l,"-rtl"),be),o),c),dir:v,style:s,role:"menu",tabIndex:f,data:ft,renderRawItem:function(e){return e},renderRawRest:function(e){var n=e.length,r=n?de.slice(-n):null;return t.createElement(wD,{eventKey:FL,title:ee,disabled:Fe,internalPopupClose:0===n,popupClassName:te},r)},maxCount:"horizontal"!==Re||C?fb.INVALIDATE:fb.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Be(e)},onKeyDown:ut},se));return t.createElement(kL.Provider,{value:dt},t.createElement(fL.Provider,{value:ge},t.createElement(gL,{prefixCls:l,rootClassName:c,mode:Re,openKeys:Se,rtl:be,disabled:x,motion:he?W:null,defaultMotions:he?V:null,activeKey:et,onActive:nt,onInactive:rt,selectedKeys:at,inlineIndent:H,subMenuOpenDelay:O,subMenuCloseDelay:$,forceSubMenuRender:j,builtinPlacements:X,triggerSubMenuAction:Y,getPopupContainer:ne,itemIcon:Q,expandIcon:Z,onItemClick:ct,onOpenChange:st},t.createElement(CL.Provider,{value:Ze},ht),t.createElement("div",{style:{display:"none"},"aria-hidden":!0},t.createElement(yL.Provider,{value:Qe},fe)))))})),ID=ND;ID.Item=oD,ID.SubMenu=wD,ID.ItemGroup=kD,ID.Divider=xD;var PD=ID,MD=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.id,i=e.tabs,a=e.locale,l=e.mobile,c=e.more,s=void 0===c?{}:c,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,v=e.removeAriaLabel,m=e.onTabClick,g=e.getPopupContainer,b=e.popupClassName,y=G((0,t.useState)(!1),2),x=y[0],S=y[1],C=G((0,t.useState)(null),2),k=C[0],E=C[1],O=s.icon,_=void 0===O?"More":O,$="".concat(o,"-more-popup"),j="".concat(r,"-dropdown"),N=null!==k?"".concat($,"-").concat(k):null,I=null==a?void 0:a.dropdownAriaLabel;var P=t.createElement(PD,{onClick:function(e){var t=e.key,n=e.domEvent;m(t,n),S(!1)},prefixCls:"".concat(j,"-menu"),id:$,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[k],"aria-label":void 0!==I?I:"expanded dropdown"},i.map((function(e){var n=e.closable,r=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=Zq(n,i,f,r);return t.createElement(oD,{key:a,id:"".concat($,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:r},t.createElement("span",null,l),c&&t.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,a)}},i||f.removeIcon||"×"))})));function M(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void E(a.key)}}(0,t.useEffect)((function(){var e=document.getElementById(N);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),(0,t.useEffect)((function(){x||E(null)}),[x]);var R=w({},h?"marginRight":"marginLeft",p);i.length||(R.visibility="hidden",R.order=1);var A=_o()(w({},"".concat(j,"-rtl"),h)),T=l?null:t.createElement(dL,pt({prefixCls:j,overlay:P,visible:!!i.length&&x,onVisibleChange:S,overlayClassName:_o()(A,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},s),t.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:R,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":$,id:"".concat(o,"-more"),"aria-expanded":x,onKeyDown:function(e){var t=e.which;if(x)switch(t){case al.UP:M(-1),e.preventDefault();break;case al.DOWN:M(1),e.preventDefault();break;case al.ESC:S(!1);break;case al.SPACE:case al.ENTER:null!==k&&m(k,e)}else[al.DOWN,al.SPACE,al.ENTER].includes(t)&&(S(!0),e.preventDefault())}},_));return t.createElement("div",{className:_o()("".concat(r,"-nav-operations"),d),style:u,ref:n},T,t.createElement(eL,{prefixCls:r,locale:a,editable:f}))})),RD=t.memo(MD,(function(e,t){return t.tabMoving})),AD=function(e){var n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,l=i.label,c=i.disabled,s=i.closeIcon,u=i.icon,d=e.closable,f=e.renderWrapper,p=e.removeAriaLabel,h=e.editable,v=e.onClick,m=e.onFocus,g=e.style,b="".concat(n,"-tab"),y=Zq(d,s,h,c);function x(e){c||v(e)}var S=t.useMemo((function(){return u&&"string"==typeof l?t.createElement("span",null,l):l}),[l,u]),C=t.createElement("div",{key:a,"data-node-key":Qq(a),className:_o()(b,w(w(w({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),o),"".concat(b,"-disabled"),c)),style:g,onClick:x},t.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[al.SPACE,al.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:m},u&&t.createElement("span",{className:"".concat(b,"-icon")},u),l&&S),y&&t.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:a,event:t})}},s||h.removeIcon||"×"));return f?f(C):C},TD=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},qD=function(e,t){return e[t?0:1]},LD=t.forwardRef((function(e,n){var r,o,i,a,l,c=e.className,s=e.style,u=e.id,d=e.animated,f=e.activeKey,p=e.rtl,h=e.extra,v=e.editable,m=e.locale,g=e.tabPosition,b=e.tabBarGutter,y=e.children,x=e.onTabClick,C=e.onTabScroll,k=e.indicator,E=t.useContext(Hq),O=E.prefixCls,_=E.tabs,$=(0,t.useRef)(null),j=(0,t.useRef)(null),N=(0,t.useRef)(null),I=(0,t.useRef)(null),P=(0,t.useRef)(null),M=(0,t.useRef)(null),R=(0,t.useRef)(null),A="top"===g||"bottom"===g,T=Uq(0,(function(e,t){A&&C&&C({direction:e>t?"left":"right"})})),q=G(T,2),L=q[0],D=q[1],z=Uq(0,(function(e,t){!A&&C&&C({direction:e>t?"top":"bottom"})})),B=G(z,2),F=B[0],H=B[1],W=G((0,t.useState)([0,0]),2),V=W[0],U=W[1],Y=G((0,t.useState)([0,0]),2),X=Y[0],Q=Y[1],Z=G((0,t.useState)([0,0]),2),J=Z[0],ee=Z[1],te=G((0,t.useState)([0,0]),2),ne=te[0],re=te[1],oe=(r=new Map,o=(0,t.useRef)([]),i=G((0,t.useState)({}),2)[1],a=(0,t.useRef)("function"==typeof r?r():r),l=Yq((function(){var e=a.current;o.current.forEach((function(t){e=t(e)})),o.current=[],a.current=e,i({})})),[a.current,function(e){o.current.push(e),l()}]),ie=G(oe,2),ae=ie[0],le=ie[1],ce=function(e,n,r){return(0,t.useMemo)((function(){for(var t,r=new Map,o=n.get(null===(t=e[0])||void 0===t?void 0:t.key)||Vq,i=o.left+o.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=n.get(c);s||(s=n.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||Vq);var u=r.get(c)||S({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[e.map((function(e){return e.key})).join("_"),n,r])}(_,ae,X[0]),se=qD(V,A),ue=qD(X,A),de=qD(J,A),fe=qD(ne,A),pe=se<ue+de,he=pe?se-fe:se-de,ve="".concat(O,"-nav-operations-hidden"),me=0,ge=0;function be(e){return e<me?me:e>ge?ge:e}A&&p?(me=0,ge=Math.max(0,ue-he)):(me=Math.min(0,he-ue),ge=0);var ye=(0,t.useRef)(null),we=G((0,t.useState)(),2),xe=we[0],Se=we[1];function Ce(){Se(Date.now())}function ke(){ye.current&&clearTimeout(ye.current)}!function(e,n){var r=G((0,t.useState)(),2),o=r[0],i=r[1],a=G((0,t.useState)(0),2),l=a[0],c=a[1],s=G((0,t.useState)(0),2),u=s[0],d=s[1],f=G((0,t.useState)(),2),p=f[0],h=f[1],v=(0,t.useRef)(),m=(0,t.useRef)(),g=(0,t.useRef)(null);g.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(v.current)},onTouchMove:function(e){if(o){e.preventDefault();var t=e.touches[0],r=t.screenX,a=t.screenY;i({x:r,y:a});var s=r-o.x,u=a-o.y;n(s,u);var f=Date.now();c(f),d(f-l),h({x:s,y:u})}},onTouchEnd:function(){if(o&&(i(null),h(null),p)){var e=p.x/u,t=p.y/u,r=Math.abs(e),a=Math.abs(t);if(Math.max(r,a)<.1)return;var l=e,c=t;v.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(v.current):n(20*(l*=Gq),20*(c*=Gq))}),20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,i=Math.abs(t),a=Math.abs(r);i===a?o="x"===m.current?t:r:i>a?(o=t,m.current="x"):(o=r,m.current="y"),n(-o,-o)&&e.preventDefault()}},t.useEffect((function(){function t(e){g.current.onTouchMove(e)}function n(e){g.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){g.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){g.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(I,(function(e,t){function n(e,t){e((function(e){return be(e+t)}))}return!!pe&&(A?n(D,e):n(H,t),ke(),Ce(),!0)})),(0,t.useEffect)((function(){return ke(),xe&&(ye.current=setTimeout((function(){Se(0)}),100)),ke}),[xe]);var Ee=function(e,n,r,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(r)):(c="height",s="top",u=-r),(0,t.useMemo)((function(){if(!d.length)return[0,0];for(var t=d.length,r=t,o=0;o<t;o+=1){var i=e.get(d[o].key)||Kq;if(i[s]+i[c]>u+n){r=o-1;break}}for(var a=0,l=t-1;l>=0;l-=1)if((e.get(d[l].key)||Kq)[s]<u){a=l+1;break}return a>=r?[0,0]:[a,r]}),[e,n,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(ce,he,A?L:F,ue,de,fe,S(S({},e),{},{tabs:_})),Oe=G(Ee,2),_e=Oe[0],$e=Oe[1],je=Ko((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=ce.get(e)||{width:0,height:0,left:0,right:0,top:0};if(A){var n=L;p?t.right<L?n=t.right:t.right+t.width>L+he&&(n=t.right+t.width-he):t.left<-L?n=-t.left:t.left+t.width>-L+he&&(n=-(t.left+t.width-he)),H(0),D(be(n))}else{var r=F;t.top<-F?r=-t.top:t.top+t.height>-F+he&&(r=-(t.top+t.height-he)),D(0),H(be(r))}})),Ne={};"top"===g||"bottom"===g?Ne[p?"marginRight":"marginLeft"]=b:Ne.marginTop=b;var Ie=_.map((function(e,n){var r=e.key;return t.createElement(AD,{id:u,prefixCls:O,key:r,tab:e,style:0===n?void 0:Ne,closable:e.closable,editable:v,active:r===f,renderWrapper:y,removeAriaLabel:null==m?void 0:m.removeAriaLabel,onClick:function(e){x(r,e)},onFocus:function(){je(r),Ce(),I.current&&(p||(I.current.scrollLeft=0),I.current.scrollTop=0)}})})),Pe=function(){return le((function(){var e,t=new Map,n=null===(e=P.current)||void 0===e?void 0:e.getBoundingClientRect();return _.forEach((function(e){var r,o=e.key,i=null===(r=P.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(Qq(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=G(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};(0,t.useEffect)((function(){Pe()}),[_.map((function(e){return e.key})).join("_")]);var Me=Yq((function(){var e=TD($),t=TD(j),n=TD(N);U([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=TD(R);ee(r);var o=TD(M);re(o);var i=TD(P);Q([i[0]-r[0],i[1]-r[1]]),Pe()})),Re=_.slice(0,_e),Ae=_.slice($e+1),Te=[].concat(K(Re),K(Ae)),qe=ce.get(f),Le=Wq({activeTabOffset:qe,horizontal:A,indicator:k,rtl:p}).style;(0,t.useEffect)((function(){je()}),[f,me,ge,Xq(qe),Xq(ce),A]),(0,t.useEffect)((function(){Me()}),[p]);var De,ze,Be,Fe,He=!!Te.length,We="".concat(O,"-nav-wrap");return A?p?(ze=L>0,De=L!==ge):(De=L<0,ze=L!==me):(Be=F<0,Fe=F!==me),t.createElement(Zu,{onResize:Me},t.createElement("div",{ref:Mo(n,$),role:"tablist",className:_o()("".concat(O,"-nav"),c),style:s,onKeyDown:function(){Ce()}},t.createElement(nL,{ref:j,position:"left",extra:h,prefixCls:O}),t.createElement(Zu,{onResize:Me},t.createElement("div",{className:_o()(We,w(w(w(w({},"".concat(We,"-ping-left"),De),"".concat(We,"-ping-right"),ze),"".concat(We,"-ping-top"),Be),"".concat(We,"-ping-bottom"),Fe)),ref:I},t.createElement(Zu,{onResize:Me},t.createElement("div",{ref:P,className:"".concat(O,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(F,"px)"),transition:xe?"none":void 0}},Ie,t.createElement(eL,{ref:R,prefixCls:O,locale:m,editable:v,style:S(S({},0===Ie.length?void 0:Ne),{},{visibility:He?"hidden":null})}),t.createElement("div",{className:_o()("".concat(O,"-ink-bar"),w({},"".concat(O,"-ink-bar-animated"),d.inkBar)),style:Le}))))),t.createElement(RD,pt({},e,{removeAriaLabel:null==m?void 0:m.removeAriaLabel,ref:M,prefixCls:O,tabs:Te,className:!He&&ve,tabMoving:!!xe})),t.createElement(nL,{ref:N,position:"right",extra:h,prefixCls:O})))})),DD=LD,zD=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,s=e.children;return t.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:_o()(r,l&&"".concat(r,"-active"),o),ref:n},s)}));var BD=zD,FD=["renderTabBar"],HD=["label","key"];var WD=function(e){var n=e.renderTabBar,r=To(e,FD),o=t.useContext(Hq).tabs;if(n){var i=S(S({},r),{},{panes:o.map((function(e){var n=e.label,r=e.key,o=To(e,HD);return t.createElement(BD,pt({tab:n,key:r,tabKey:r},o))}))});return n(i,DD)}return t.createElement(DD,r)},VD=["key","forceRender","style","className","destroyInactiveTabPane"],UD=function(e){var n=e.id,r=e.activeKey,o=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,l=t.useContext(Hq),c=l.prefixCls,s=l.tabs,u=o.tabPane,d="".concat(c,"-tabpane");return t.createElement("div",{className:_o()("".concat(c,"-content-holder"))},t.createElement("div",{className:_o()("".concat(c,"-content"),"".concat(c,"-content-").concat(i),w({},"".concat(c,"-content-animated"),u))},s.map((function(e){var i=e.key,l=e.forceRender,c=e.style,s=e.className,f=e.destroyInactiveTabPane,p=To(e,VD),h=i===r;return t.createElement(Yi,pt({key:i,visible:h,forceRender:l,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),(function(e,r){var o=e.style,a=e.className;return t.createElement(BD,pt({},p,{prefixCls:d,id:n,tabKey:i,animated:u,active:h,style:S(S({},c),o),className:_o()(s,a),ref:r}))}))}))))};var GD=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],YD=0,KD=t.forwardRef((function(e,n){var r=e.id,o=e.prefixCls,i=void 0===o?"rc-tabs":o,a=e.className,l=e.items,c=e.direction,s=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,h=void 0===p?"top":p,m=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,x=e.more,C=e.destroyInactiveTabPane,k=e.renderTabBar,E=e.onChange,O=e.onTabClick,_=e.onTabScroll,$=e.getPopupContainer,j=e.popupClassName,N=e.indicator,I=To(e,GD),P=t.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===v(e)&&"key"in e}))}),[l]),M="rtl"===c,R=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}:S({inkBar:!0},"object"===v(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(f),A=G((0,t.useState)(!1),2),T=A[0],q=A[1];(0,t.useEffect)((function(){q(nd())}),[]);var L=G(Zo((function(){var e;return null===(e=P[0])||void 0===e?void 0:e.key}),{value:s,defaultValue:u}),2),D=L[0],z=L[1],B=G((0,t.useState)((function(){return P.findIndex((function(e){return e.key===D}))})),2),F=B[0],H=B[1];(0,t.useEffect)((function(){var e,t=P.findIndex((function(e){return e.key===D}));-1===t&&(t=Math.max(0,Math.min(F,P.length-1)),z(null===(e=P[t])||void 0===e?void 0:e.key));H(t)}),[P.map((function(e){return e.key})).join("_"),D,F]);var W=G(Zo(null,{value:r}),2),V=W[0],U=W[1];(0,t.useEffect)((function(){r||(U("rc-tabs-".concat(YD)),YD+=1)}),[]);var Y={id:V,activeKey:D,animated:R,tabPosition:h,rtl:M,mobile:T},K=S(S({},Y),{},{editable:d,locale:y,more:x,tabBarGutter:m,onTabClick:function(e,t){null==O||O(e,t);var n=e!==D;z(e),n&&(null==E||E(e))},onTabScroll:_,extra:b,style:g,panes:null,getPopupContainer:$,popupClassName:j,indicator:N});return t.createElement(Hq.Provider,{value:{tabs:P,prefixCls:i}},t.createElement("div",pt({ref:n,id:r,className:_o()(i,"".concat(i,"-").concat(h),w(w(w({},"".concat(i,"-mobile"),T),"".concat(i,"-editable"),d),"".concat(i,"-rtl"),M),a)},I),t.createElement(WD,pt({},K,{renderTabBar:k})),t.createElement(UD,pt({destroyInactiveTabPane:C},Y,{animated:R}))))}));var XD=KD;const QD={motionAppear:!1,motionEnter:!0,motionLeave:!0};var ZD=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var JD=e=>{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}`}}}}},[Ky(e,"slide-up"),Ky(e,"slide-down")]]};const ez=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Ve(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,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:Ve(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Ve(e.borderRadiusLG)} ${Ve(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Ve(e.borderRadiusLG)} ${Ve(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Ve(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ve(e.borderRadiusLG)} 0 0 ${Ve(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 ${Ve(e.borderRadiusLG)} ${Ve(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},tz=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},sa(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:`${Ve(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({},ca),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ve(e.paddingXXS)} ${Ve(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"}}})}})}},nz=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,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:`${Ve(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:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${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:Ve(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ve(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:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},rz=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Ve(e.borderRadius)} ${Ve(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Ve(e.borderRadius)} ${Ve(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ve(e.borderRadius)} ${Ve(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ve(e.borderRadius)} 0 0 ${Ve(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},oz=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},fa(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-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},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},iz=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{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:Ve(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ve(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ve(i(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"}}}}},az=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},sa(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 ${Ve(e.paddingXS)}`,background:"transparent",border:`${Ve(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Ve(e.borderRadiusLG)} ${Ve(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},fa(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),oz(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 lz=Zl("Tabs",(e=>{const t=Hl(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ve(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ve(e.horizontalItemGutter)}`});return[rz(t),iz(t),nz(t),tz(t),ez(t),az(t),JD(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}}));var cz=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sz=e=>{var n,r,o,i,a,l,c,s,u,d,f;const{type:p,className:h,rootClassName:v,size:m,onEdit:g,hideAdd:b,centered:y,addIcon:w,removeIcon:x,moreIcon:S,more:C,popupClassName:k,children:E,items:O,animated:_,style:$,indicatorSize:j,indicator:N}=e,I=cz(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:P}=I,{direction:M,tabs:R,getPrefixCls:A,getPopupContainer:T}=t.useContext(B),q=A("tabs",P),L=El(q),[D,z,F]=lz(q,L);let H;"editable-card"===p&&(H={onEdit:(e,t)=>{let{key:n,event:r}=t;null==g||g("add"===e?r:n,e)},removeIcon:null!==(n=null!=x?x:null==R?void 0:R.removeIcon)&&void 0!==n?n:t.createElement(Ka,null),addIcon:(null!=w?w:null==R?void 0:R.addIcon)||t.createElement(OI,null),showAdd:!0!==b});const W=A();const V=Xc(m),U=function(e,n){if(e)return e;const r=Qc(n).map((e=>{if(t.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=ZD(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(r)}(O,E),G=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({},QD),{motionName:yp(e,"switch")})),t}(q,_),Y=Object.assign(Object.assign({},null==R?void 0:R.style),$),K={align:null!==(r=null==N?void 0:N.align)&&void 0!==r?r:null===(o=null==R?void 0:R.indicator)||void 0===o?void 0:o.align,size:null!==(c=null!==(a=null!==(i=null==N?void 0:N.size)&&void 0!==i?i:j)&&void 0!==a?a:null===(l=null==R?void 0:R.indicator)||void 0===l?void 0:l.size)&&void 0!==c?c:null==R?void 0:R.indicatorSize};return D(t.createElement(XD,Object.assign({direction:M,getPopupContainer:T},I,{items:U,className:_o()({[`${q}-${V}`]:V,[`${q}-card`]:["card","editable-card"].includes(p),[`${q}-editable-card`]:"editable-card"===p,[`${q}-centered`]:y},null==R?void 0:R.className,h,v,z,F,L),popupClassName:_o()(k,z,F,L),style:Y,editable:H,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(s=null==R?void 0:R.more)||void 0===s?void 0:s.icon)&&void 0!==u?u:null==R?void 0:R.moreIcon)&&void 0!==d?d:S)&&void 0!==f?f:t.createElement(Fq,null),transitionName:`${W}-slide-up`},C),prefixCls:q,animated:G,indicator:K})))};sz.TabPane=()=>null;var uz=sz,dz=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var fz=e=>{var{prefixCls:n,className:r,hoverable:o=!0}=e,i=dz(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=t.useContext(B),l=a("card",n),c=_o()(`${l}-grid`,r,{[`${l}-grid-hoverable`]:o});return t.createElement("div",Object.assign({},i,{className:c}))};const pz=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Ve(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Ve(e.borderRadiusLG)} ${Ve(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ca),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Ve(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},hz=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${Ve(o)} 0 0 0 ${n},\n 0 ${Ve(o)} 0 0 ${n},\n ${Ve(o)} ${Ve(o)} 0 0 ${n},\n ${Ve(o)} 0 0 0 ${n} inset,\n 0 ${Ve(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},vz=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Ve(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Ve(e.borderRadiusLG)} ${Ve(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Ve(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:Ve(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Ve(e.lineWidth)} ${e.lineType} ${i}`}}})},mz=e=>Object.assign(Object.assign({margin:`${Ve(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ca),"&-description":{color:e.colorTextDescription}}),gz=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${Ve(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Ve(e.padding)} ${Ve(n)}`}}},bz=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},yz=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},sa(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:pz(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Ve(e.borderRadiusLG)} ${Ve(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:hz(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Ve(e.borderRadiusLG)} ${Ve(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:vz(e),[`${t}-meta`]:mz(e)}),[`${t}-bordered`]:{border:`${Ve(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Ve(e.borderRadiusLG)} ${Ve(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:gz(e),[`${t}-loading`]:bz(e),[`${t}-rtl`]:{direction:"rtl"}}},wz=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${Ve(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}};var xz=Zl("Card",(e=>{const t=Hl(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[yz(t),wz(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}))),Sz=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Cz=e=>{const{actionClasses:n,actions:r=[],actionStyle:o}=e;return t.createElement("ul",{className:n,style:o},r.map(((e,n)=>{const o=`action-${n}`;return t.createElement("li",{style:{width:100/r.length+"%"},key:o},t.createElement("span",null,e))})))},kz=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,rootClassName:i,style:a,extra:l,headStyle:c={},bodyStyle:s={},title:u,loading:d,bordered:f=!0,size:p,type:h,cover:v,actions:m,tabList:g,children:b,activeTabKey:y,defaultActiveTabKey:w,tabBarExtraContent:x,hoverable:S,tabProps:C={},classNames:k,styles:E}=e,O=Sz(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:$,card:j}=t.useContext(B);const N=e=>{var t;return _o()(null===(t=null==j?void 0:j.classNames)||void 0===t?void 0:t[e],null==k?void 0:k[e])},I=e=>{var t;return Object.assign(Object.assign({},null===(t=null==j?void 0:j.styles)||void 0===t?void 0:t[e]),null==E?void 0:E[e])},P=t.useMemo((()=>{let e=!1;return t.Children.forEach(b,(t=>{(null==t?void 0:t.type)===fz&&(e=!0)})),e}),[b]),M=_("card",r),[R,A,T]=xz(M),q=t.createElement(ev,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),L=void 0!==y,D=Object.assign(Object.assign({},C),{[L?"activeKey":"defaultActiveKey"]:L?y:w,tabBarExtraContent:x});let z;const F=Xc(p),H=F&&"default"!==F?F:"large",W=g?t.createElement(uz,Object.assign({size:H},D,{className:`${M}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:g.map((e=>{var{tab:t}=e,n=Sz(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(u||l||W){const e=_o()(`${M}-head`,N("header")),n=_o()(`${M}-head-title`,N("title")),r=_o()(`${M}-extra`,N("extra")),o=Object.assign(Object.assign({},c),I("header"));z=t.createElement("div",{className:e,style:o},t.createElement("div",{className:`${M}-head-wrapper`},u&&t.createElement("div",{className:n,style:I("title")},u),l&&t.createElement("div",{className:r,style:I("extra")},l)),W)}const V=_o()(`${M}-cover`,N("cover")),U=v?t.createElement("div",{className:V,style:I("cover")},v):null,G=_o()(`${M}-body`,N("body")),Y=Object.assign(Object.assign({},s),I("body")),K=t.createElement("div",{className:G,style:Y},d?q:b),X=_o()(`${M}-actions`,N("actions")),Q=(null==m?void 0:m.length)?t.createElement(Cz,{actionClasses:X,actionStyle:I("actions"),actions:m}):null,Z=Tc(O,["onTabChange"]),J=_o()(M,null==j?void 0:j.className,{[`${M}-loading`]:d,[`${M}-bordered`]:f,[`${M}-hoverable`]:S,[`${M}-contain-grid`]:P,[`${M}-contain-tabs`]:null==g?void 0:g.length,[`${M}-${F}`]:F,[`${M}-type-${h}`]:!!h,[`${M}-rtl`]:"rtl"===$},o,i,A,T),ee=Object.assign(Object.assign({},null==j?void 0:j.style),a);return R(t.createElement("div",Object.assign({ref:n},Z,{className:J,style:ee}),z,U,K,Q))}));var Ez=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Oz=e=>{const{prefixCls:n,className:r,avatar:o,title:i,description:a}=e,l=Ez(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=t.useContext(B),s=c("card",n),u=_o()(`${s}-meta`,r),d=o?t.createElement("div",{className:`${s}-meta-avatar`},o):null,f=i?t.createElement("div",{className:`${s}-meta-title`},i):null,p=a?t.createElement("div",{className:`${s}-meta-description`},a):null,h=f||p?t.createElement("div",{className:`${s}-meta-detail`},f,p):null;return t.createElement("div",Object.assign({},l,{className:u}),d,h)};const _z=kz;_z.Grid=fz,_z.Meta=Oz;var $z=_z;const jz="collapsed",Nz="collapsing",Iz="expanding",Pz="expanded";function Mz(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}const Rz=({children:e,transition:n,style:o,render:i,elementType:a="div",isOpen:l,collapseHeight:c="0px",onInit:s,onChange:u,className:d="collapse-css-transition",addState:f,noAnim:p,overflowOnExpanded:h,...v})=>{const m=()=>"0px"===c?"hidden":void 0,[g,b]=(0,t.useReducer)((e=>e+1),0),y=(0,t.useRef)(),[w,x]=(0,t.useState)(0),S=(0,t.useRef)({collapse:l?Pz:jz,style:{height:l?void 0:c,visibility:l?void 0:m()}}).current;(0,t.useEffect)((()=>{w&&C(u)}),[w]);const C=(e,t={})=>{e&&e({state:S.collapse,style:S.style,...t})};function k(){y.current&&(S.collapse=jz,S.style={height:c,visibility:m()},b(),setTimeout((()=>x(Date.now)),0))}function E(){y.current&&(S.collapse=Pz,S.style={height:void 0,visibility:void 0},b(),setTimeout((()=>x(Date.now)),0))}function O(){return`${y.current.scrollHeight}px`}const _=S.collapse===Pz||S.collapse===Iz;!_&&l&&function(){if(y.current){if(p)return E();S.collapse=Iz,Mz((()=>{y.current&&S.collapse===Iz&&(S.style={height:O(),visibility:void 0},x(Date.now))}))}}(),_&&!l&&function(){if(y.current){if(p)return k();S.collapse=Nz,S.style={height:O(),visibility:void 0},b(),Mz((()=>{y.current&&S.collapse===Nz&&(S.style={height:c,visibility:void 0},x(Date.now))}))}}();const $={overflow:S.collapse===Pz&&h?void 0:"hidden",transition:n,...o,...S.style},j=a,N=(0,t.useCallback)((e=>{e&&(y.current=e,C(s,{node:e}))}),[a]),I=f?`${d} --c-${S.collapse}`:d;return(0,r.jsx)(j,{ref:N,style:$,onTransitionEnd:function({target:e,propertyName:t}){if(e===y.current&&"height"===t){const t=e.style.height;switch(S.collapse){case Iz:void 0===t||t===c||E();break;case Nz:void 0===t||t!==c||k()}}},className:I,...v,children:"function"==typeof e?e(S.collapse):"function"==typeof i?i(S.collapse):e})};var Az={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Tz=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Az}))};var qz=t.forwardRef(Tz),Lz={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Dz=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Lz}))};var zz=t.forwardRef(Dz),Bz={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},Fz=function(e,n){return t.createElement(Ba,pt({},e,{ref:n,icon:Bz}))};var Hz=t.forwardRef(Fz),Wz=function(e){var t=e.name,n=e.field,o=e.value,i=e.onChange,a=e.placeholder;return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Jv,{field:n}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Ag,{className:"rtsb-form-field",placeholder:a,name:t,value:o,onChange:function(e){return i(t,e.target.value)}})}),(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:n.help}})]})]})},Vz=Ag.TextArea,Uz=function(e){var t=e.field,n=e.name,o=e.value,i=e.placeholder,a=e.onChange;return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Jv,{field:t}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Vz,{rows:4,className:"rtsb-form-field",placeholder:i,name:n,value:o,onChange:function(e){return a(n,e.target.value)}})}),(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:t.help}})]})]})};function Gz(e){return Gz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gz(e)}var Yz=["fetchOptions","initialOptions","debounceTimeout"];function Kz(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kz=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(I([])));S&&S!==n&&r.call(S,a)&&(w=S);var C=y.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Gz(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=_(l,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Gz(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function Xz(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qz(Object(n),!0).forEach((function(t){Jz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jz(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Gz(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Gz(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gz(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Lw.Option;function nB(e){var n=e.fetchOptions,o=e.initialOptions,i=void 0===o?[]:o,a=e.debounceTimeout,l=void 0===a?400:a,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Yz),s=eB((0,t.useState)(!1),2),u=s[0],d=s[1],f=eB((0,t.useState)(i),2),p=f[0],h=f[1],v=(0,t.useRef)(0),m=(0,t.useMemo)((function(){return hj((function(e){v.current+=1;var t=v.current;h([]),d(!0),n(e).then((function(e){t===v.current&&(h(e),d(!1))}))}),l)}),[n,l]);return(0,r.jsx)(Lw,Zz(Zz({filterOption:!1,onSearch:m,notFoundContent:u?(0,r.jsx)(YI,{size:"small"}):null},c),{},{children:p.map((function(e){return(0,r.jsx)(Lw.Option,{value:e.value,children:e.label},e.value)}))}))}function rB(){var e;return e=Kz().mark((function e(t,n){var r,o,i,a;return Kz().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=new URLSearchParams).append("action","rtsb_get_multiselect_data"),r.append("__rtsb_wpnonce",rtsbParams.nonce),null!=t&&t.func_with_param&&r.append("func_with_param",JSON.stringify(null==t?void 0:t.func_with_param)),n&&r.append("s",n),o=rtsbParams.ajaxurl.includes("?"),i=o?"&":"?",a="".concat(rtsbParams.ajaxurl).concat(i).concat(r.toString()),e.abrupt("return",fetch(a).then((function(e){return e.json()})).then((function(e){return e.data.map((function(e){return{label:e.label,value:e.value}}))})));case 9:case"end":return e.stop()}}),e)})),rB=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Xz(i,r,o,a,l,"next",e)}function l(e){Xz(i,r,o,a,l,"throw",e)}a(void 0)}))},rB.apply(this,arguments)}var oB=function(e){var t=e.field,n=e.options,o=e.value,i=e.name,a=e.placeholder,l=e.onChange,c=t.help,s=new Set;return(0,r.jsxs)("div",{className:"rtsb-field select",children:[(0,r.jsx)(Jv,{field:t}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(nB,{mode:"multiple",placeholder:a,initialOptions:n,fetchOptions:function(e){return function(e,t){return rB.apply(this,arguments)}(t,e)},onChange:function(e,t){var n=t.map((function(e){return{value:e.value,label:e.children}})).filter((function(e){return!s.has(e.value)&&(s.add(e.value),!0)}));l(i,n)},style:{width:"100%"},value:o})}),c&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:c}})]})]})},iB=function(e){var n=e.name,o=e.field,i=e.value,a=e.onChange,l=(0,t.useRef)();return(0,r.jsxs)("div",{className:"rtsb-field switch",ref:l,children:[(0,r.jsx)(Jv,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(uu,{checkedChildren:"On",unCheckedChildren:"Off",checked:"on"===i,onChange:function(e){return a(n,e?"on":"off")}})}),(null==o?void 0:o.help)&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:o.help}})]})]})},aB=(Lw.Option,function(e){var t=e.name,n=e.value,o=e.field,i=e.options,a=e.onChange,l=o.help;return(0,r.jsxs)("div",{className:"rtsb-field select",children:[(0,r.jsx)(Jv,{field:o}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Lw,{showSearch:!0,options:i,name:t,value:n,onChange:function(e){return a(t,e)}})}),l&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:l}})]})]})});function lB(e){return["small","middle","large"].includes(e)}const cB=["wrap","nowrap","wrap-reverse"],sB=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],uB=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var dB=function(e,t){return _o()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&cB.includes(n)}})(e,t)),((e,t)=>{const n={};return uB.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return sB.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const fB=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},pB=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},hB=e=>{const{componentCls:t}=e,n={};return cB.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},vB=e=>{const{componentCls:t}=e,n={};return uB.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},mB=e=>{const{componentCls:t}=e,n={};return sB.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var gB=Zl("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=Hl(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[fB(o),pB(o),hB(o),vB(o),mB(o)]}),(()=>({})),{resetStyle:!1}),bB=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yB=t.forwardRef(((e,n)=>{const{prefixCls:r,rootClassName:o,className:i,style:a,flex:l,gap:c,children:s,vertical:u=!1,component:d="div"}=e,f=bB(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:h,getPrefixCls:v}=t.useContext(B),m=v("flex",r),[g,b,y]=gB(m),w=null!=u?u:null==p?void 0:p.vertical,x=_o()(i,o,null==p?void 0:p.className,m,b,y,dB(m,e),{[`${m}-rtl`]:"rtl"===h,[`${m}-gap-${c}`]:lB(c),[`${m}-vertical`]:w}),S=Object.assign(Object.assign({},null==p?void 0:p.style),a);return l&&(S.flex=l),c&&!lB(c)&&(S.gap=c),g(t.createElement(d,Object.assign({ref:n,className:x,style:S},Tc(f,["justify","wrap","align"])),s))}));var wB=yB,xB=function(e){var t=e.name,n=e.field,o=e.value,i=e.onChange,a=e.placeholder;return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Jv,{field:n}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(xx,{className:"rtsb-form-field",placeholder:a,name:t,value:"null"!==o?o:"",defaultValue:"null"!==o?o:"",min:0,onChange:function(e){return i(t,e)}})}),(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:n.help}})]})]})};function SB(e){return SB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SB(e)}function CB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CB(Object(n),!0).forEach((function(t){EB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=SB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=SB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==SB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_B(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $B=(0,t.forwardRef)((function(e,n){var o=PT({id:e.id}),i=o.attributes,a=o.listeners,l=o.setNodeRef,c=o.transform,s=o.transition,u=o.isDragging,d=e.option,f=(e.index,e.activePanel,e.allOptions),p=e.handleRemovePanel,h=e.setFieldsOptions,v=OB((0,t.useState)("var(--rtsb-admin-color-secondary)"),2),m=v[0],g=v[1],b={transform:xR.Translate.toString(c),transition:s,opacity:u?.8:1,zIndex:u?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},y=function(e,t){var n=f.map((function(n){return"default"===e&&(n.default="off"),n.id===d.id?kB(kB({},n),{},EB({},e,t)):n}));h(n)};return console.log(d),(0,r.jsx)("div",{className:"rtsb-repeater-item",ref:n?function(e){n.current=e,l(e)}:l,style:b,children:(0,r.jsx)("div",{className:"rtsb_group_repeater rtsb-inline-options-field",children:(0,r.jsxs)(wB,{wrap:!0,gap:"small",children:[(0,r.jsx)(eh,{title:"Rearrange",placement:"left",children:(0,r.jsx)(qz,kB(kB({},i),a))}),(0,r.jsx)(Wz,{field:{label:"",help:"Option Name"},placeholder:"Option",value:d.name,name:"name",onChange:y}),(0,r.jsx)(xB,{field:{label:"",help:"Option Price"},placeholder:"Price",value:d.price,name:"price",onChange:y}),(0,r.jsx)(iB,{field:{label:"",help:"Default Selected?"},value:d.default,name:"default",onChange:y}),(0,r.jsx)(_N,{style:{color:m},onClick:function(e){return p(e,null==d?void 0:d.id)},onMouseEnter:function(){return g("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return g("var(--rtsb-admin-color-secondary)")}})]})})})}));function jB(e){return function(e){if(Array.isArray(e))return PB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||IB(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||IB(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IB(e,t){if(e){if("string"==typeof e)return PB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PB(e,t):void 0}}function PB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var MB=function(e){var n=e.fieldGroup,o=e.onChange,i=null!=n&&n.options?n.options:[],a=NB((0,t.useState)(i),2),l=a[0],c=a[1],s=NB((0,t.useState)(0),2),u=s[0],d=s[1],f=NB((0,t.useState)(30),2),p=f[0],h=f[1],v=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=l.filter((function(e){return e.id!==t}));c(n),h(0)}},m=RR(MR(_A),MR(SA,{coordinateGetter:AT}));return(0,t.useEffect)((function(){o("options",l)}),[l]),(0,r.jsx)(sT,{sensors:m,collisionDetection:FR,onDragEnd:function(e){var t=e.active,n=e.over;t.id!==n.id&&c((function(e){var r=e.findIndex((function(e){return e.id===t.id})),o=e.findIndex((function(e){return e.id===n.id}));return gT(e,r,o)}))},children:(0,r.jsxs)("div",{className:"rtsb-repeater-wrapper field-options-wrapper",style:{paddingTop:p,margin:0},children:[(0,r.jsxs)(ET,{items:l,strategy:ST,children:[l.length>0?(0,r.jsx)(Ox,{field:{label:"Options",subtitle:""}}):null,l.length>0?l.map((function(e,t){return(0,r.jsx)($B,{id:e.id,index:t,activePanel:u,handleRemovePanel:v,option:e,allOptions:l,setFieldsOptions:c},e.id)})):null]}),(0,r.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px",display:"flex",justifyContent:"flex-end",position:"static",minWidth:"140px"},children:(0,r.jsxs)(Qs,{className:"rtsb-button",onClick:function(){var e=l.length+1;c([].concat(jB(l),[{id:e}])),d(e),h(30)},style:{fontSize:"13px",padding:"7px 10px",color:"#fff",minWidth:"140px"},children:[" ","Add New Option"," "]})})]})})};function RB(e){return RB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RB(e)}function AB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AB(Object(n),!0).forEach((function(t){qB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=RB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=RB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==RB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var zB=Dq.Text,BB=(Dq.Link,(0,t.forwardRef)((function(e,n){var o=PT({id:e.fieldId}),i=o.attributes,a=o.listeners,l=o.setNodeRef,c=o.transform,s=o.transition,u=o.isDragging,d=e.fieldIndex,f=e.fieldActivePanel,p=e.fieldHandleRemovePanel,h=e.fieldGroup,v=e.setGroupFieldData,m=e.group,g=(e.groupIndex,e.allGroups),b=e.setGroups,y=LB((0,t.useState)(String(d+1)===String(f)),2),w=y[0],x=y[1],S=LB((0,t.useState)("var(--rtsb-admin-color-secondary)"),2),C=S[0],k=S[1],E={transform:xR.Translate.toString(c),transition:s,opacity:u?.8:1,zIndex:u?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},O=function(e,t){v(h.id,e,t)};return(0,r.jsx)("div",{className:"rtsb-repeater-item",ref:n?function(e){n.current=e,l(e)}:l,style:E,children:(0,r.jsx)($z,{title:(0,r.jsxs)("span",{className:"title-wrapper",children:[(0,r.jsx)(eh,{title:"Rearrange",placement:"left",children:(0,r.jsx)(qz,TB(TB({},i),a))}),(0,r.jsxs)(zB,{children:[" ",(null==h?void 0:h.label)||"Untitled Field"," "]})]}),extra:(0,r.jsxs)(zB,{onClick:function(){x(!w)},children:[w?(0,r.jsx)(zz,{style:{cursor:"pointer"}}):(0,r.jsx)(Hz,{style:{cursor:"pointer"}}),(0,r.jsx)(_N,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:C},onClick:function(e){return p(e,null==h?void 0:h.id)},onMouseEnter:function(){return k("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return k("var(--rtsb-admin-color-secondary)")}})]}),className:"rtsb-card-wrapper ".concat(w?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,r.jsx)(Rz,{isOpen:w,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,r.jsxs)("div",{className:"rtsb_group_repeater",children:[(0,r.jsx)(Wz,{field:{label:"Field Label",help:"Enter the field label. This is a mandatory field."},placeholder:"Field Label",value:h.label,name:"label",onChange:O}),(0,r.jsx)(aB,{field:{label:"Field Type",help:"Select your desired field type."},options:[{value:"text",label:"Text"},{value:"textarea",label:"TextArea"},{value:"number",label:"Number"},{value:"radio",label:"Radio"},{value:"select",label:"Select"},{value:"checkbox",label:"Checkbox"},{value:"text_select",label:"Text Select"},{value:"switch",label:"Switch"}],value:(null==h?void 0:h.type)||"text",name:"type",onChange:O}),["select","checkbox","radio","text_select","switch"].includes(h.type)?null:(0,r.jsx)(xB,{field:{label:"Price",help:"Enter the field price."},placeholder:"Price",value:h.price,name:"price",onChange:O}),(0,r.jsx)(Uz,{field:{label:"Description",help:"Enter the field description."},placeholder:"Field Description",value:h.description,name:"description",onChange:O}),["checkbox","radio","text_select","switch"].includes(h.type)?null:(0,r.jsx)(Wz,{field:{label:"Placeholder",help:"Enter the field placeholder. This can also be used if the input type is select."},placeholder:"Placeholder Text",value:h.placeholder,name:"placeholder",onChange:O}),(0,r.jsx)(iB,{field:{label:"Is The Field Required?",help:"Switch on to add this field as required."},value:null==h?void 0:h.required,name:"required",onChange:O}),(0,r.jsx)(iB,{field:{label:"Show Description as Tooltips?",help:"Switch on to show the field description as a tooltip."},value:null==h?void 0:h.tooltip,name:"tooltip",onChange:O}),["checkbox","text_select","select","switch"].includes(h.type)?(0,r.jsx)(iB,{field:{label:"Allow Multiple Selection?",help:"Switch on to allow multiple selection."},value:null==h?void 0:h.multiple,name:"multiple",onChange:O}):null,["select","checkbox","radio","text_select","switch"].includes(h.type)?(0,r.jsx)(MB,{fieldGroup:h,onChange:O,group:m,allGroups:g,setGroups:b}):null]})})})})})));function FB(e){return FB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FB(e)}function HB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HB(Object(n),!0).forEach((function(t){VB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=FB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=FB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==FB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UB(e){return function(e){if(Array.isArray(e))return KB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||YB(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||YB(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YB(e,t){if(e){if("string"==typeof e)return KB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KB(e,t):void 0}}function KB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var XB=function(e){var n=e.group,o=e.groupIndex,i=e.groupFields,a=e.allGroups,l=e.setGroups,c=GB((0,t.useState)(i||[]),2),s=c[0],u=c[1],d=GB((0,t.useState)(0),2),f=d[0],p=d[1],h=GB((0,t.useState)(0),2),v=h[0],m=(h[1],GB((0,t.useState)(!1),2)),g=m[0],b=m[1],y=(0,t.useRef)(null),w=s.length;(0,t.useEffect)((function(){g&&y.current&&(y.current.scrollIntoView({behavior:"smooth"}),b(!1))}),[s,g]);var x=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=s.filter((function(e){return e.id!==t}));u(n)}},S=RR(MR(_A),MR(SA,{coordinateGetter:AT}));var C=function(e,t,n){var r=s.map((function(r){return r.id===e?WB(WB({},r),{},VB({},t,n)):r}));u(r)};return(0,t.useEffect)((function(){var e;e=a.map((function(e,t){return e.id===n.id?WB(WB({},e),{},{inputs:s}):e})),l(e)}),[s]),(0,r.jsx)(sT,{sensors:S,collisionDetection:FR,onDragEnd:function(e){var t=e.active,n=e.over;t.id!==n.id&&u((function(e){var r=e.findIndex((function(e){return e.id===t.id})),o=e.findIndex((function(e){return e.id===n.id}));return gT(e,r,o)}))},children:(0,r.jsxs)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:v,margin:0},children:[(0,r.jsx)(ET,{items:s,strategy:ST,children:s.length>0?s.map((function(e,t){var i=t===w-1?y:null;return(0,r.jsx)(BB,{fieldId:e.id,fieldIndex:t,fieldActivePanel:f,fieldHandleRemovePanel:x,fieldGroup:e,setGroupFieldData:C,groupIndex:o,group:n,allGroups:a,setGroups:l,ref:i},t)})):null}),(0,r.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px",display:"flex",justifyContent:"flex-end",position:"static"},children:(0,r.jsxs)(Qs,{className:"rtsb-button",onClick:function(){var e=s.length>0?s.length+1:1;u([].concat(UB(s),[{id:e,label:"",type:"text",price:"",options:[]}])),p(e),b(!0)},style:{fontSize:"13px",padding:"7px 10px",color:"#fff",minWidth:"140px"},children:[" ","Add New Field"]})})]})})};function QB(e){return QB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QB(e)}function ZB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZB(Object(n),!0).forEach((function(t){eF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=QB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=QB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==QB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rF=Dq.Text,oF=(0,t.forwardRef)((function(e,n){var o,i=PT({id:e.groupId}),a=i.attributes,l=i.listeners,c=i.setNodeRef,s=i.transform,u=i.transition,d=i.isDragging,f=e.group,p=e.groupIndex,h=e.allGroups,v=e.setGroups,m=e.activePanel,g=e.handleRemovePanel,b=e.field,y=tF((0,t.useState)(String(p+1)===String(m)),2),w=y[0],x=y[1],S=tF((0,t.useState)("var(--rtsb-admin-color-secondary)"),2),C=S[0],k=S[1],E={transform:xR.Translate.toString(s),transition:u,opacity:d?.8:1,zIndex:d?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},O=function(e,t){var n=h.map((function(n){return n.id===f.id?JB(JB({},n),{},eF({},e,t)):n}));v(n)},_=function(e,t){var n=h.map((function(n){return n.id===f.id?JB(JB({},n),{},eF({},e,t)):n}));v(n)};return(0,r.jsx)("div",{className:"rtsb-repeater-item",ref:n?function(e){n.current=e,c(e)}:c,style:E,children:(0,r.jsx)($z,{title:(0,r.jsxs)("span",{className:"title-wrapper",children:[(0,r.jsx)(eh,{title:"Rearrange",placement:"left",children:(0,r.jsx)(qz,JB(JB({},a),l))}),(0,r.jsxs)(rF,{children:[" ",(null==f?void 0:f.name)||"Untitled Group"," "]})]}),extra:(0,r.jsxs)(rF,{onClick:function(){x(!w)},children:[w?(0,r.jsx)(zz,{style:{cursor:"pointer"}}):(0,r.jsx)(Hz,{style:{cursor:"pointer"}}),(0,r.jsx)(_N,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:C},onClick:function(e){return g(e,null==f?void 0:f.id)},onMouseEnter:function(){return k("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return k("var(--rtsb-admin-color-secondary)")}})]}),className:"rtsb-card-wrapper ".concat(w?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,r.jsx)(Rz,{isOpen:w,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,r.jsxs)("div",{className:"rtsb_group_repeater",children:[(0,r.jsx)(Wz,{field:{label:"Group Name",help:"Enter the group name. This is a required field."},placeholder:"Name",value:f.name,name:"name",onChange:O}),(0,r.jsx)(Uz,{field:{label:"Group Description",help:"Enter the group description."},value:f.description,name:"description",onChange:O}),(0,r.jsx)(aB,{field:{label:"Group By",help:"Select your desired field type."},options:[{value:"category",label:"Category"},{value:"product",label:"Product"}],value:(null==f?void 0:f.group_by)||"category",name:"group_by",onChange:O}),"category"===((null==f?void 0:f.group_by)||"category")?(0,r.jsx)(oB,{field:{label:"Group By Category",help:"Choose categories to include. Leave blank to apply in all categories.",func_with_param:["RadiusTheme\\SB\\Helpers\\Fns","products_category_query"]},placeholder:"Select Category",options:(null==b?void 0:b.cat_list)||[],name:"group_cat",value:null!=f&&f.group_cat?f.group_cat:[],onChange:_}):null,"product"===((null==f?void 0:f.group_by)||"category")?(0,r.jsx)(oB,{field:{label:"Group By Product",help:"Choose products to include. Leave blank to apply in all product.",func_with_param:["RadiusTheme\\SB\\Helpers\\Fns","get_post_types",{post_type:["product"]}]},placeholder:"Select Product",options:(null==b?void 0:b.product_list)||[],name:"group_product",value:null!=f&&f.group_product?f.group_product:[],onChange:_}):null,(0,r.jsx)(iB,{field:{label:"Display Group Name",help:"Switch on to show group name in the frontend."},value:null==f?void 0:f.show_name,name:"show_name",onChange:O}),(0,r.jsx)(iB,{field:{label:"Display Group Description",help:"Switch on to show group description in the frontend."},value:null==f?void 0:f.show_desc,name:"show_desc",onChange:O}),(null==f||null===(o=f.inputs)||void 0===o?void 0:o.length)>0?(0,r.jsx)(Ox,{field:{label:"Group Fields",subtitle:""}}):null,(0,r.jsx)(XB,{groupIndex:p,group:f,groupFields:(null==f?void 0:f.inputs)||[],allGroups:h,setGroups:v})]})})})})}));function iF(e){return iF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iF(e)}function aF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aF(Object(n),!0).forEach((function(t){cF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=iF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=iF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==iF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sF(e){return function(e){if(Array.isArray(e))return fF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||dF(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||dF(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dF(e,t){if(e){if("string"==typeof e)return fF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fF(e,t):void 0}}function fF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var pF=function(e){var n=uF(l(),2),o=(n[0],n[1]),i=e.field.value,a=e.id,c=i?pj(i):[],s=uF((0,t.useState)(c),2),u=s[0],f=s[1],p=uF((0,t.useState)(0),2),h=p[0],v=p[1],m=uF((0,t.useState)(0),2),g=m[0],b=(m[1],uF((0,t.useState)(!1),2)),y=b[0],w=b[1],x=(0,t.useRef)(null),S=u.length;(0,t.useEffect)((function(){y&&x.current&&(x.current.scrollIntoView({behavior:"smooth"}),w(!1))}),[u,y]);var C=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=u.filter((function(e){return e.id!==t}));f(n)}},k=RR(MR(_A),MR(SA,{coordinateGetter:AT}));return(0,t.useEffect)((function(){var e;e=u.filter((function(e){return e.name&&""!==e.name.trim()})).map((function(e,t){return lF(lF({},e),{},{id:t+1})})),o({type:d,id:a,value:e,fieldType:"product_addons_special_settings"})}),[u]),(0,r.jsx)(sT,{sensors:k,collisionDetection:FR,onDragEnd:function(e){var t=e.active,n=e.over;t.id!==n.id&&f((function(e){var r=e.findIndex((function(e){return e.id===t.id})),o=e.findIndex((function(e){return e.id===n.id}));return gT(e,r,o)}))},children:(0,r.jsxs)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:g},children:[(0,r.jsx)(ET,{items:u,strategy:ST,children:u.length>0?u.map((function(t,n){var o=n===S-1?x:null;return(0,r.jsx)(oF,{groupId:t.id,groupIndex:n,group:t,allGroups:u,setGroups:f,activePanel:h,handleRemovePanel:C,field:e.field,ref:o},t.id)})):null}),(0,r.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px"},children:(0,r.jsxs)(Qs,{className:"rtsb-button",onClick:function(){var e=u.length>0?u.length+1:1,t={id:e,inputs:[]};f([].concat(sF(u),[t])),v(e),w(!0)},style:{fontSize:"14px",color:"#fff"},children:[" ","Add New Group"," "]})})]})})};function hF(e){return hF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hF(e)}function vF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var gF=function(e){var t=e.field,n=t.fieldType,o=t.type,i=t.dependency,a=t.id,c=t.repeaterDefaults,s=vF(l(),2),u=s[0];s[1];if(function(){if(i&&!h().isEmpty(i)){var t=i.rules,r=i.relation,o=t.map((function(t){var r,o=t.item,i=t.value,a=t.operator,l=vF(o.split("."),4),c=l[0],s=l[1],d=l[2],f=l[3],p=null===(r=u.sections[c])||void 0===r||null===(r=r.list[s])||void 0===r?void 0:r.fields[d],h=(null==p?void 0:p.value)||"";if("repeater"===n&&"on"!==(null==p?void 0:p.value)){var v,m=pj((null==p?void 0:p.value)||[]);h=null===(v=m[e.field.index])||void 0===v?void 0:v[f]}if("search_and_multi_select"===(null==p?void 0:p.type)&&(h=h.map((function(e){return("string"==typeof e?JSON.parse(e):e).value}))),"checkbox"===(null==p?void 0:p.type)||"search_and_multi_select"===(null==p?void 0:p.type)){if("in"===a.toLowerCase()||"=="===a)return Array.isArray(i)?i.every((function(e){return h.includes(e)})):h.includes(i);if("!in"===a.toLowerCase()||"!="===a)return Array.isArray(i)?!i.every((function(e){return h.includes(e)})):!h.includes(i);if("any"===a.toLowerCase()){if(Array.isArray(i))return i.some((function(e){return h.includes(e)}))}else{if("empty"===a.toLowerCase())return 0>=h.length;if("!empty"===a.toLowerCase())return h.length>0}}else{if("in"===a.toLowerCase())return i.includes(h);if("!in"===a.toLowerCase())return!i.includes(h);if("=="===a){if(h===i)return!0}else if("!="===a&&h!=i)return!0}return!1}));return 1===o.length?o[0]:r&&"or"===r.toLowerCase()?o.some((function(e){return e})):o.every((function(e){return e}))}return!0}()){if("object"===hF(c)){var d=e.field.isDefault;if(c[d])if(!Object.keys(c[d]).includes(a))return}return"switch"===o?(0,r.jsx)(nm,{id:e.id,field:e.field}):"checkbox"===o?(0,r.jsx)(ZE,{id:e.id,field:e.field}):"textarea"===o?(0,r.jsx)(Fg,{id:e.id,field:e.field}):"text_editor"===o?(0,r.jsx)(UM,{id:e.id,field:e.field}):"select"===o?(0,r.jsx)(Fw,{id:e.id,field:e.field}):"number"===o?(0,r.jsx)(kx,{id:e.id,field:e.field}):"sortable"===o?(0,r.jsx)(IE,{id:e.id,field:e.field}):"title"===o?(0,r.jsx)(Ox,{id:e.id,field:e.field}):"description"===o?(0,r.jsx)(PM,{id:e.id,field:e.field}):"datetime"===o?(0,r.jsx)(dj,{id:e.id,field:e.field}):"color"===o?(0,r.jsx)(RE,{id:e.id,field:e.field}):"fileupload"===o?(0,r.jsx)(MI,{id:e.id,field:e.field}):"gradient"===o?(0,r.jsx)(Mk,{id:e.id,field:e.field}):"search_and_multi_select"===o?(0,r.jsx)(aP,{id:e.id,field:e.field}):"image_select"===o?(0,r.jsx)($M,{id:e.id,field:e.field}):"text_select"===o?(0,r.jsx)(IM,{id:e.id,field:e.field}):"icon_select"===o?(0,r.jsx)(TM,{id:e.id,field:e.field}):"currency_rate"===o?(0,r.jsx)(JM,{id:e.id,field:e.field}):"product_addons_special_settings"===o?(0,r.jsx)(pF,{id:e.id,field:e.field}):"raw"===o?(0,r.jsx)(Ex,{id:e.id,field:e.field}):(0,r.jsx)(Lg,{id:e.id,field:e.field})}};function bF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var wF=function(e){var n,o,i,a=e.repeater,s=bF((0,t.useState)(!1),2),u=s[0],f=s[1],p=bF(l(),2),h=p[0],v=p[1],m="automatically"===(null===(n=h.sections.modules)||void 0===n||null===(n=n.list)||void 0===n||null===(n=n.currency_switcher)||void 0===n||null===(n=n.fields)||void 0===n||null===(n=n.exchange_rates)||void 0===n?void 0:n.value),g="on"===(null==h||null===(o=h.data)||void 0===o||null===(o=o.options)||void 0===o?void 0:o.active);return(0,t.useEffect)((function(){g&&m&&v({type:c,value:{callSave:!0}})}),[]),(0,r.jsx)(r.Fragment,{children:m?(0,r.jsxs)(Qs,{loading:u,onClick:function(){return function(){if(a.value){var e=new FormData;e.append("action","rtsb_update_currency_rates"),e.append("currency_options",JSON.stringify(pj(a.value))),e.append("__rtsb_wpnonce",rtsbParams.nonce),jQuery.ajax({type:"POST",url:"".concat(rtsbParams.ajaxurl),cache:!1,processData:!1,contentType:!1,dataType:"json",data:e,beforeSend:function(){f(!0)},success:function(e){f(!1),e.success?Ac.success({message:e.data.message,placement:"bottomRight"}):Ac.error({message:e.data.message,placement:"bottomRight"});var t=pj(e.data.currency_options);t.length&&v({type:d,id:"currency_options",value:t})},error:function(e){f(!1),Ac.error({message:e.message||"Failed",placement:"bottomRight"})}})}}()},className:"rtsb-button",style:{fontSize:"14px",color:"#fff",marginLeft:"10px"},children:[null!==(i=rtsbParams)&&void 0!==i&&i.updateRates?rtsbParams.updateRates:""," "]}):""})};function xF(e){return xF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xF(e)}function SF(e){return function(e){if(Array.isArray(e))return $F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_F(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CF(Object(n),!0).forEach((function(t){EF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=xF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||_F(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _F(e,t){if(e){if("string"==typeof e)return $F(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$F(e,t):void 0}}function $F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jF=Dq.Text,NF=(Dq.Link,new Map),IF=function(e){var t,n,r,o,i=null;if(null!=e&&null!==(t=e.repeater_type)&&void 0!==t&&t.value){var a,l,c,s,u=null==e||null===(a=e.repeater_type)||void 0===a?void 0:a.value;i=null==e||null===(l=e.repeater_type)||void 0===l||null===(l=l.options)||void 0===l?void 0:l[u],i=null!=e&&null!==(c=e.title)&&void 0!==c&&c.value?i+" - "+(null==e||null===(s=e.title)||void 0===s?void 0:s.value):i}else{var d;if("select"===(null==e||null===(d=e.title)||void 0===d?void 0:d.type)){var f=null==e||null===(n=e.title)||void 0===n?void 0:n.value;i=null==e||null===(r=e.title)||void 0===r||null===(r=r.options)||void 0===r?void 0:r[f]}else i=null==e||null===(o=e.title)||void 0===o?void 0:o.value}return i},PF=t.forwardRef((function(e,n){var o,i=e.index,a=e.id,l=e.dataLoop,c=e.repeater,s=e.repeaterData,u=e.activePanel,d=e.handleRemovePanel,f=(e.hideContent,e.onSubComponentRendered,c.repeat),p=c.defaults,h=OF((0,t.useState)(String(i)===String(u)),2),v=h[0],m=h[1],g=OF((0,t.useState)("var(--rtsb-admin-color-secondary)"),2),b=g[0],y=g[1],w=PT({id:a}),x=w.attributes,S=w.listeners,C=w.transform,k=w.transition,E=w.setNodeRef,O=w.isDragging,_={transform:xR.Translate.toString(C),transition:k,opacity:O?.8:1,zIndex:O?1:0,marginTop:"1rem",position:"relative",scrollMarginTop:98},$="no"!==(null===(o=l.deletable)||void 0===o?void 0:o.value);return(0,r.jsx)("div",{className:"rtsb-repeater-item",ref:n?function(e){n.current=e,E(e)}:E,style:_,children:(0,r.jsx)($z,{title:(0,r.jsxs)("span",{className:"title-wrapper",children:[(0,r.jsx)(eh,{title:"Rearrange",placement:"left",children:(0,r.jsx)(qz,kF(kF({},x),S))}),(0,r.jsxs)(jF,{children:[" ",(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:IF(l)}})," "]})]}),extra:(0,r.jsxs)(jF,{onClick:function(){m(!v)},children:[v?(0,r.jsx)(zz,{style:{cursor:"pointer"}}):(0,r.jsx)(Hz,{style:{cursor:"pointer"}}),$?(0,r.jsx)(_N,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:b},onClick:function(e){return d(e,i)},onMouseEnter:function(){return y("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return y("var(--rtsb-admin-color-secondary)")}}):""]}),className:"rtsb-card-wrapper ".concat(v?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,r.jsx)(Rz,{isOpen:v,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,r.jsx)("ul",{className:"rtsb_group_repeater",children:Object.keys(f).map((function(e,t){var n,o,a=kF(kF({},l[e]||f[e]),{},{fieldType:"repeater",parentId:c.id,index:i,repeaterData:s,repeaterDefaults:p,isDefault:(null===(n=l.uniqueid)||void 0===n?void 0:n.value)||"",value:(null===(o=l[e])||void 0===o?void 0:o.value)||""});return(0,r.jsx)("li",{children:(0,r.jsx)(gF,{id:e,field:a},e)},e)}))})})})})})),MF=function(e){var n=OF(l(),2),o=(n[0],n[1]),i=e.repeater,a=i.repeat,c=i.id,s=(i.defaults,OF((0,t.useState)(null),2)),u=s[0],f=s[1],p=OF((0,t.useState)([]),2),h=p[0],v=p[1],m=OF((0,t.useState)(0),2),g=m[0],b=m[1],y=OF((0,t.useState)(!1),2),w=y[0],x=y[1],S=OF((0,t.useState)(!1),2),C=S[0],k=S[1],E=(0,t.useRef)(null),O=h.length;(0,t.useEffect)((function(){C&&E.current&&(E.current.scrollIntoView({behavior:"smooth"}),k(!1))}),[h,C]);var _=function(e,t){e.stopPropagation(),window.confirm("Are you sure you want to delete?")&&o({type:d,fieldType:"repeater",parentId:c,doAction:"remove",repeaterData:h,index:t})};(0,t.useEffect)((function(){!function(){if(i.value){var e=pj(i.value);e=e.map((function(e,t){var n={};return e&&0!==Object.keys(e).length?(Object.keys(e).forEach((function(t){e[t]&&(n[t]=kF(kF({},a[t]),{},{id:t,value:e[t]}))})),Object.keys(n).length>0&&(n.uniqueid=null!=n&&n.uniqueid?null==n?void 0:n.uniqueid:{id:"id",value:"rtsb_repeater_item_".concat(t)}),n):n})),e=e.filter((function(e){return 0!==Object.keys(e).length})),v(e)}}()}),[i.value]);var $=h.map((function(e){var t;return null===(t=e.uniqueid)||void 0===t?void 0:t.value})),j=RR(MR(NA,{}),MR(PA,{}),MR(SA,{coordinateGetter:AT})),N=(0,t.useCallback)((function(e){for(var t=h.findIndex((function(t){var n;return(null==t||null===(n=t.uniqueid)||void 0===n?void 0:n.value)===e.active.id})),n=h.slice(0,t),r=0,o=0;o<n.length;o+=1){var i=NF.get(n[o].id);i&&(r+=i.clientHeight)}b(r),x(!0)}),[h]),I=(0,t.useCallback)((function(e){var t=e.active,n=e.over;if(n){if(t.id!==n.id){var r=h.findIndex((function(e){var n;return(null===(n=e.uniqueid)||void 0===n?void 0:n.value)===t.id})),i=h.findIndex((function(e){var t;return(null===(t=e.uniqueid)||void 0===t?void 0:t.value)===n.id})),a=gT(h,r,i);v(a),o({type:d,fieldType:"repeater",parentId:c,doAction:"sort",repeaterData:a})}x(!1),b(0)}}),[h]);return(0,r.jsxs)(sT,{collisionDetection:FR,onDragStart:N,onDragEnd:I,sensors:j,children:[(0,r.jsx)(ET,{items:$,strategy:ST,children:(0,r.jsx)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:g},children:h.map((function(e,t){var n;if(e&&0!==Object.keys(e).length){var o=t===O-1?E:null;return(0,r.jsx)(PF,{index:t,id:null===(n=e.uniqueid)||void 0===n?void 0:n.value,parentId:c,dataLoop:e,hideContent:w,repeater:i,repeaterData:h,handleRemovePanel:_,activePanel:u,ref:o},t)}}))})}),(0,r.jsxs)("div",{className:"repeater-footer",style:{marginTop:"15px"},children:[(0,r.jsx)(Qs,{className:"rtsb-button",onClick:function(){var e=[].concat(SF(h),[kF({},a)]);o({type:d,fieldType:"repeater",repeaterData:e,parentId:c,doAction:"addPanel",index:O}),f(String(O)),v(e),k(!0)},style:{fontSize:"14px",color:"#fff"},children:null!=i&&i.buttonLabel?i.buttonLabel:"Add New"}),"currency_options"===c&&O>0?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(wF,kF({},e))}):""]})]})};function RF(e){return RF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RF(e)}function AF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AF(Object(n),!0).forEach((function(t){qF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=RF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=RF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==RF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var zF=function(e){var n=e.block,o=n.fields,i=LF((0,t.useState)((function(){return n.tabs?Object.keys(n.tabs)[0]:""})),2),a=i[0],l=i[1],c=TF(TF({},n.active_field),{},{type:"switch",value:n.active});return(0,r.jsxs)("div",{className:"rtsb-block-settings".concat(n.tabs?" rtsb-block-tabs":""),children:[n.tabs?(0,r.jsx)("ul",{className:"rtsb-block-tab-nav",children:Object.keys(n.tabs).map((function(e){return(0,r.jsx)("li",{className:"rtsb-block-tab-nav-item".concat(e===a?" active":""),onClick:function(){return l(e)},children:n.tabs[e].title},e)}))}):"",(0,r.jsxs)("div",{className:"rtsb-block-settings-content",children:[!c.disable&&(!n.tabs||n.tabs&&Object.keys(n.tabs)[0]===a)&&(0,r.jsx)("div",{className:"block-active-field",children:(0,r.jsx)(gF,{id:"active",field:c})}),Object.keys(o).map((function(e){if(!("repeaters"===o[e].type||n.tabs&&a&&a!==o[e].tab))return(0,r.jsx)(gF,{id:e,field:o[e]},e)})),Object.keys(o).map((function(e,t){if(!("repeaters"!==o[e].type||n.tabs&&a&&a!==o[e].tab))return(0,r.jsx)(MF,{repeater:o[e]},t)}))]})]})},BF=function(e){e.block;var t=e.visible,n=e.setVisible;return(0,r.jsxs)(Kv,{centered:!0,open:t,className:"rtsb-pro-modal",onOk:function(){return n(!1)},onCancel:function(){return n(!1)},footer:null,children:[(0,r.jsx)("div",{className:"rtsb-box-icon",children:(0,r.jsx)("i",{className:"dashicons dashicons-lock"})}),(0,r.jsxs)("div",{className:"rtsb-box-content",children:[(0,r.jsx)("h3",{className:"rtsb-box-title",children:"Pro Feature Alert!"}),(0,r.jsx)("p",{children:"Sorry! This is a Pro feature. To activate this feature, you need to upgrade to the Pro version."}),(0,r.jsx)("a",{href:"https://shopbuilderwp.com",target:"_blank",className:"rtsb-pro-btn rtsb-button",rel:"noreferrer",children:"Get Pro Version"})]})]})};function FF(e){return FF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FF(e)}function HF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HF(Object(n),!0).forEach((function(t){VF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=FF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=FF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==FF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return GF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var YF=function(e){var n=e.block,o=n.title,i=n.active,a=n.id,c=n.fields,d=n.external,p="on"===i,v=UF(l(),2),m=v[0],g=v[1],b=UF((0,t.useState)(!1),2),y=b[0],w=b[1],x=!h().isEmpty(c),S=UF((0,t.useState)(!1),2),C=S[0],k=S[1],E=UF((0,t.useState)(null),2),O=E[0],_=E[1];(0,t.useEffect)((function(){d&&(jQuery(document).on("wp-plugin-installing",(function(t,n){e.block.pluginSlug===n.slug&&_(WF(WF({},n),{},{status:"installing"}))})),jQuery(document).on("wp-plugin-install-success",(function(t,n){if("plugin"===n.install&&e.block.pluginSlug===n.slug){_(WF(WF({},n),{},{status:"install-success"})),Ac.success({message:n.debug[4],placement:"bottomRight"});var r=JSON.parse(JSON.stringify(m.sections));r[m.data.section_id].list[a]=WF(WF({},e.block),{},{pluginIsInstalled:!0}),g({type:s,sections:r})}})),jQuery(document).on("wp-plugin-install-error",(function(t,n){"plugin"===n.install&&e.block.pluginSlug===n.slug&&(Ac.error({message:n.errorMessage,placement:"bottomRight"}),_(null))})))}),[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"rtsb-ss-item ".concat(e.block.package).concat(p?" active":"").concat(d?" is-external":""),onClick:function(t){if(t.preventDefault(),t.stopPropagation(),!0===d);else{if("pro-disabled"===e.block.package)return void k(!0);x?(g({type:u,id:"block_id",value:a}),w(!0)):g({type:f,id:a,value:p?"":"on"})}},children:(0,r.jsxs)("div",{className:"rtsb-ss-item-box",children:[(0,r.jsx)("div",{className:"rtsb-ss-item-icon"}),(0,r.jsx)("div",{className:"rtsb-ss-item-content",children:(0,r.jsx)("h3",{className:"rtsb-ss-item-title",children:o})}),d&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"externalActions",children:e.block.pluginIsActive?(0,r.jsx)("div",{className:"rtsb-ss-item-switch",children:(0,r.jsx)(uu,{checked:!0,disabled:!0})}):(0,r.jsx)(Qs,{type:"primary rtsb-button",loading:"installing"===(null==O?void 0:O.status),onClick:function(){null!=O&&O.activateUrl?window.open(O.activateUrl,"_self"):e.block.pluginIsInstalled?e.block.pluginIsInstalled&&!e.block.pluginIsActive&&window.open(e.block.pluginActiveUrl):wp.updates.installPlugin({slug:e.block.pluginSlug})},size:"small",children:e.block.pluginIsInstalled||O?e.block.pluginIsInstalled&&!e.block.pluginIsActive?wp.i18n.__("Activate"):"installing"===(null==O?void 0:O.status)?wp.i18n.__("Installing…"):"install-success"===(null==O?void 0:O.status)?wp.i18n.__("Activate"):void 0:wp.i18n.__("Install")})}),!!e.block.help&&(0,r.jsx)(eh,{title:e.block.help,children:(0,r.jsx)(Zv,{style:{fontSize:"150%"}})})]}),!d&&(0,r.jsx)("div",{className:"rtsb-ss-item-switch",children:(0,r.jsx)(uu,{unCheckedChildren:"pro-disabled"===e.block.package?(0,r.jsx)("span",{className:"dashicons dashicons-lock"}):"",checked:p})}),x&&(0,r.jsx)("div",{className:"rtsb-ss-item-action",children:(0,r.jsx)("span",{className:"dashicons dashicons-admin-generic"})})]})}),x&&(0,r.jsx)(Kv,{title:o,centered:!0,open:y,okText:"Save Changes",onCancel:function(){return w(!1)},width:1e3,styles:{body:{maxHeight:"calc(100vh - 200px)",overflow:"scroll",minHeight:"500px"}},footer:[(0,r.jsx)(Qs,{type:"primary",loading:m.saving,onClick:function(){e.saveData(null,(function(){w(!1)}))},disabled:!m.dirty,block:!0,children:"Save Changes"},"save")],children:(0,r.jsx)(zF,{block:e.block})}),"pro-disabled"===e.block.package&&(0,r.jsx)(BF,{block:e.block,visible:C,setVisible:k})]})},KF=function(e){var t=e.blocks,n=e.category;return(0,r.jsx)("div",{className:"rtsb-ss-item-list",children:t&&Object.keys(t).map((function(o){var i=t[o];if(!n||i.category===n)return(0,r.jsx)(YF,{block:t[o],id:o,saveData:e.saveData},o)}))})};function XF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return QF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ZF=function(e){var n,o,i=e.section,a=i.list,l=i.categories,c=XF((0,t.useState)(null),2),s=c[0],u=c[1],d="selected_cat_nav_id_"+e.section.id,f=localStorage.getItem(d)?localStorage.getItem(d):Object.keys(l)[0];return(0,t.useEffect)((function(){u(f)}),[e.section.id]),(0,r.jsx)("div",{className:"rtsb-ss-item-list-wrap",children:l?(0,r.jsxs)("div",{className:"rtsb-cat-tabs-wrap",children:[Object.keys(l).length>0?(0,r.jsx)("div",{className:"rtsb-cat-nav-wrap",children:Object.keys(l).map((function(e){var t=l[e],n=t.title;t.description;return(0,r.jsx)("div",{onClick:function(){localStorage.setItem(d,e),u(e)},className:"rtsb-cat-nav".concat(e===s?" active":""),children:(0,r.jsx)("h3",{className:"rtsb-title",children:n})},e)}))}):null,(0,r.jsxs)("div",{className:"rtsb-cat-content",children:[(null===(n=l[s])||void 0===n?void 0:n.description)&&(0,r.jsx)("h4",{className:"rtsb-cat-description",children:null===(o=l[s])||void 0===o?void 0:o.description}),(0,r.jsx)(KF,{blocks:a,saveData:e.saveData,category:s})]})]}):(0,r.jsx)(KF,{blocks:a})})};function JF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var tH=function(e){var n=e.id,o=JF(l(),2),i=o[0],a=o[1],c=i.sections[n]||{},u=JF((0,t.useState)(!1),2),d=u[0],f=u[1],p=JF((0,t.useState)(!1),2),h=p[0],v=p[1],m=c.title,g=c.short_title,b=c.description,y=function(e){var t="active"===e?"Are you sure you want to enable all ".concat(g.toLowerCase(),"?"):"Are you sure you want to disable all ".concat(g.toLowerCase(),"?");if(window.confirm(t)){var n=c.list,r=Object.keys(n);jQuery.ajax({url:rtsbParams.ajaxurl,data:{module_ids:r,section_id:c.id,action:"rtsb_toggle_modules_activation",__rtsb_wpnonce:rtsbParams.nonce,type:e},method:"POST",beforeSend:function(){e?f(!0):v(!0)},success:function(e){f(!1),v(!1),e.success?(Ac.success({message:e.data.message,placement:"bottomRight"}),a({type:s,sections:e.data.sections})):Ac.error({message:e.data.message,placement:"bottomRight"})},error:function(e){f(!1),v(!1),Ac.error({message:e.message,placement:"bottomRight"})}})}};return(0,r.jsxs)("div",{className:"rtsb-ss-wrap",children:[(0,r.jsxs)("div",{className:"rtsb-ss-header-area",children:[(0,r.jsxs)("div",{className:"rtsb-ss-header",children:[(0,r.jsx)("h2",{className:"rtsb-title",children:m}),(0,r.jsx)("p",{className:"rtsb-description",children:b})]}),(0,r.jsxs)("div",{className:"rtsb-button-wrapper",children:[(0,r.jsxs)(Qs,{type:"primary",loading:d,onClick:function(){return y("active")},className:"rtsb-button rtsb-enable-button",children:["Enable All ",g]},"enable"),(0,r.jsxs)(Qs,{type:"secondary",loading:h,onClick:function(){return y()},className:"rtsb-button rtsb-disable-button",children:["Disable All ",g]},"disable")]})]}),(0,r.jsx)(ZF,{section:c,saveData:e.saveData})]})};function nH(e){return nH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nH(e)}function rH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var iH=function(){var e=rH(l(),2),n=e[0],o=e[1],i=function(e,t){o({type:c,value:{saving:!0}});var r=e||n.data,i=new FormData;i.append("section_id",r.section_id),i.append("block_id",r.block_id);for(var a=function(){var e=rH(s[l],2),t=e[0],n=e[1];if(Array.isArray(n))n.length?n.map((function(e){var n=e;"object"===nH(e)&&null!==e&&(n=JSON.stringify(e)),i.append("options["+t+"][]",n)})):i.append("options["+t+"]",[]);else if("object"===nH(n)&&null!==n){var r=JSON.stringify(n);i.append("options["+t+"]",r)}else i.append("options["+t+"]",n)},l=0,s=Object.entries(r.options);l<s.length;l++)a();i.append("action","rtsb_save_settings_data"),i.append("__rtsb_wpnonce",rtsbParams.nonce),jQuery.ajax({cache:!1,processData:!1,contentType:!1,dataType:"json",url:rtsbParams.ajaxurl,data:i,method:"POST",success:function(e){e.success?(Ac.success({message:e.data.message,placement:"bottomRight"}),o({type:c,value:{saving:!1,callSave:!1,dirty:!1,placement:"bottomRight"}}),o({type:c,value:{modalVisible:!1}})):(Ac.error({message:e.data.message,placement:"bottomRight"}),o({type:c,value:{saving:!1,callSave:!1}})),t&&t()},error:function(e){Ac.error({message:e.message,placement:"bottomRight"}),o({type:c,value:{saving:!1,callSave:!1}}),t&&t()}})};return(0,t.useEffect)((function(){n.callSave&&!n.saving&&i()}),[n.callSave]),(0,r.jsxs)("div",{className:"rtsb-settings-page-wrapper",children:[(0,r.jsxs)("div",{className:"rtsb-header-area",children:[(0,r.jsx)("div",{className:"rtsb-header-logo-wrap",children:(0,r.jsx)("img",{src:rtsbParams.adminLogo,alt:"ShopBuilder",loading:"lazy"})}),(0,r.jsx)("div",{className:"rtsb-header-title-wrap",children:(0,r.jsx)("h2",{className:"rtsb-title",children:"ShopBuilder Settings"})})]}),(0,r.jsxs)("div",{className:"rtsb-settings-tabs-wrap",children:[(0,r.jsx)("div",{className:"rtsb-tabs-nav-wrap",children:(0,r.jsx)("ul",{className:"rtsb-tab-list",children:Object.keys(n.sections).map((function(e){return(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#",onClick:function(t){t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),localStorage.setItem("rtsb_selected_section_nav",e),o({type:u,id:"section_id",value:e})},className:"rtsb-button".concat(e===n.data.section_id?" active":""),children:(0,r.jsx)("span",{children:n.sections[e].title})})},e)}))})}),(0,r.jsx)("div",{className:"rtsb-tabs-content-wrap",children:(0,r.jsx)("div",{className:"rtsb-settings-tab-content rtsb-settings-".concat(n.data.section_id),children:(0,r.jsx)(tH,{id:n.data.section_id,saveData:i})})})]})]})};function aH(e){return function(e){if(Array.isArray(e))return lH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lH(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cH(e){return cH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cH(e)}function sH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sH(Object(n),!0).forEach((function(t){dH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=cH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cH(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fH={callSave:!1,saving:!1,dirty:!1,modalVisible:!1,sections:rtsbParams.sections,section:!1,data:{block_id:!1,section_id:localStorage.getItem("rtsb_selected_section_nav")?localStorage.getItem("rtsb_selected_section_nav"):"general",options:{}}},pH=function(e,t){switch(t.type){case c:return uH(uH({},e),t.value);case s:return uH(uH({},e),{},{sections:t.sections});case u:return uH(uH({},e),{},{data:uH(uH({},e.data),{},dH({},t.id,t.value))});case f:if(!t.id||!e.data.section_id)return e;var n=JSON.parse(JSON.stringify(e.data.options));n.active=t.value;var r=JSON.parse(JSON.stringify(e.sections));return r[e.data.section_id].list[t.id].active=t.value,uH(uH({},e),{},{callSave:!0,dirty:!0,sections:r,data:uH(uH({},e.data),{},{block_id:t.id,options:n})});case d:if(!e.data.block_id||!e.data.section_id)return e;var o=JSON.parse(JSON.stringify(e.data.options));t.value&&(o[t.id]=t.value);var i=JSON.parse(JSON.stringify(e.sections));if("active"===t.id)i[e.data.section_id].list[e.data.block_id].active=t.value;else{var a="repeater"===(null==t?void 0:t.fieldType),l="nested_repeater"===(null==t?void 0:t.fieldType),p="remove"===(null==t?void 0:t.doAction),h="sort"===(null==t?void 0:t.doAction),v="addPanel"===(null==t?void 0:t.doAction);if(a){var m=("object"===cH(null==t?void 0:t.repeaterData)?aH(null==t?void 0:t.repeaterData):[]).map((function(e){var t={};return Object.keys(e).forEach((function(n){t[n]=e[n].value})),t})),g=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value,b="string"==typeof(g=pj(g=g||{}))[t.index]?JSON.parse(g[t.index]):g[t.index],y=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].repeat,w=Object.keys(y).reduce((function(e,t){return e[t]=y[t].value,e}),{});if(h)i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=aH(m),o[t.parentId]=aH(m);else if(v){var x=uH(uH({},g),{},dH({},t.index,uH(uH({uniqueid:"rtsb_repeater_item_".concat(t.index)},w),b)));i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=Object.values(x);var S=uH(uH(uH({},o[t.parentId]),m),{},dH({},t.index,uH({},w)));o[t.parentId]=Object.values(S)}else if(p){var C=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value;delete C[t.index];var k=[];Object.keys(C).forEach((function(e,t){k[t]=C[e]})),i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=k;var E=o[t.parentId];delete E[t.index];var O=[];Object.keys(E).forEach((function(e,t){O[t]=E[e]})),o[t.parentId]=Object.values(O)}else{var _,$=uH(uH({},g),{},dH({},t.index,uH(uH(uH({},w),b),{},dH({},t.id,t.value))));i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=Object.values($);var j=uH(uH(uH({},m),o[t.parentId]),{},dH({},t.index,uH(uH(uH({},m[t.index]),(null===(_=o[t.parentId])||void 0===_?void 0:_[t.index])||{}),{},dH({},t.id,t.value))));o[t.parentId]=Object.values(j)}}else l||(i[e.data.section_id].list[e.data.block_id].fields[t.id].value=t.value)}return uH(uH({},e),{},{dirty:!0,sections:i,data:uH(uH({},e.data),{},{options:o})});default:return e}},hH=document.getElementById("rtsb-admin-app");e.createRoot(hH).render((0,r.jsx)(a,{reducer:pH,initialState:fH,children:(0,r.jsx)(iH,{})}))}()}(); | |
| 87 | + * The buffer module from node.js, for the browser. | |
| 88 | + * | |
| 89 | + * @author Feross Aboukhadijeh <http://feross.org> | |
| 90 | + * @license MIT | |
| 91 | + */function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return s(this,e,t,n)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n);e=l(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=l(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?l(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=l(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|p(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return $(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,a=1,l=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,c/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<l;i++)if(s(e,i)===s(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===c)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+c>l&&(n=l-c),i=n;i>=0;i--){for(var d=!0,f=0;f<c;f++)if(s(e,i+f)!==s(t,f)){d=!1;break}if(d)return i}return-1}function y(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var l=parseInt(t.substr(2*a,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function x(e,t,n,r){return F(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return F(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return w(e,t,n,r)}function C(e,t,n,r){return F(H(t),e,n,r)}function O(e,t,n,r){return F(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,l,c,s=e[o],u=null,d=s>239?4:s>223?3:s>191?2:1;if(o+d<=n)switch(d){case 1:s<128&&(u=s);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&s)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&s)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&l)&&(c=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}(r)}t.hp=c,t.IS=50,c.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return s(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?l(e,t):void 0!==n?"string"==typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.IS;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(i,a),s=this.slice(r,o),u=e.slice(t,n),d=0;d<l;++d)if(s[d]!==u[d]){i=s[d],a=u[d];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function $(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=z(e[i]);return o}function _(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function T(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function A(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function R(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||R(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return i||R(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/a|0)-l&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a|0)-l&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:B(new c(e,r).toString()),l=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%l]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},8303:(e,t,n)=>{var r=n(6110)(n(9325),"WeakMap");e.exports=r},8351:function(e,t,n){var r;/*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */!function(){"use strict";var o,i=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,c="[DecimalError] ",s=c+"Invalid argument: ",u=c+"Exponent out of range: ",d=Math.floor,f=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=1e7,m=9007199254740991,v=d(1286742750677284.5),g={};function b(e,t){var n,r,o,i,a,c,s,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),l?$(t,f):t;if(s=e.d,u=t.d,a=e.e,o=t.e,s=s.slice(),i=a-o){for(i<0?(r=s,i=-i,c=u.length):(r=u,o=a,c=s.length),i>(c=(a=Math.ceil(f/7))>c?a+1:c+1)&&(i=c,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((c=s.length)-(i=u.length)<0&&(i=c,r=u,u=s,s=r),n=0;i;)n=(s[--i]=s[i]+u[i]+n)/h|0,s[i]%=h;for(n&&(s.unshift(n),++o),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=o,l?$(t,f):t}function y(e,t,n){if(e!==~~e||e<t||e>n)throw Error(s+e)}function x(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(i+=k(n)),i+=r;(n=7-(r=(a=e[t])+"").length)&&(i+=k(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},g.comparedTo=g.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return w(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return $(w(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return C(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(l=!1,t=w(E(n,a),E(e,a),a),l=!0,$(t,i))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):b(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(c+"NaN");return n.s?(l=!1,t=w(n,e,0,1).times(e),l=!0,n.minus(t)):$(new r(n),o)},g.naturalExponential=g.exp=function(){return S(this)},g.naturalLogarithm=g.ln=function(){return E(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?b(t,e):P(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(s+e);if(t=C(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,i,a,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(c+"NaN")}for(e=C(s),l=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=x(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),r=new u(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(o.toString()),o=a=(n=u.precision)+3;;)if(r=(i=r).plus(w(s,i,a+2)).times(.5),x(i.d).slice(0,a)===(t=x(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if($(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return l=!0,$(r,n)},g.times=g.mul=function(e){var t,n,r,o,i,a,c,s,u,d=this,f=d.constructor,p=d.d,m=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.e+e.e,(s=p.length)<(u=m.length)&&(i=p,p=m,m=i,a=s,s=u,u=a),i=[],r=a=s+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=s+r;o>r;)c=i[o]+m[r]*p[o-r-1]+t,i[o--]=c%h|0,t=c/h|0;i[o]=(i[o]+t)%h|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,l?$(e,f.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(y(e,0,i),void 0===t?t=r.rounding:y(t,0,8),$(n,e+C(n)+1,t))},g.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=N(r,!0):(y(e,0,i),void 0===t?t=o.rounding:y(t,0,8),n=N(r=$(new o(r),e+1,t),!0,e+1)),n},g.toFixed=function(e,t){var n,r,o=this,a=o.constructor;return void 0===e?N(o):(y(e,0,i),void 0===t?t=a.rounding:y(t,0,8),n=N((r=$(new a(o),e+C(o)+1,t)).abs(),!1,e+C(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return $(new t(e),C(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,i,a,s,u=this,f=u.constructor,p=+(e=new f(e));if(!e.s)return new f(o);if(!(u=new f(u)).s){if(e.s<1)throw Error(c+"Infinity");return u}if(u.eq(o))return u;if(r=f.precision,e.eq(o))return $(u,r);if(s=(t=e.e)>=(n=e.d.length-1),a=u.s,s){if((n=p<0?-p:p)<=m){for(i=new f(o),t=Math.ceil(r/7+4),l=!1;n%2&&_((i=i.times(u)).d,t),0!==(n=d(n/2));)_((u=u.times(u)).d,t);return l=!0,e.s<0?new f(o).div(i):$(i,r)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,l=!1,i=e.times(E(u,r+12)),l=!0,(i=S(i)).s=a,i},g.toPrecision=function(e,t){var n,r,o=this,a=o.constructor;return void 0===e?r=N(o,(n=C(o))<=a.toExpNeg||n>=a.toExpPos):(y(e,1,i),void 0===t?t=a.rounding:y(t,0,8),r=N(o=$(new a(o),e,t),e<=(n=C(o))||n<=a.toExpNeg,e)),r},g.toSignificantDigits=g.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(y(e,1,i),void 0===t?t=n.rounding:y(t,0,8)),$(new n(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=C(e),n=e.constructor;return N(e,t<=n.toExpNeg||t>=n.toExpPos)};var w=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%h|0,r=n/h|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*h+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var l,s,u,d,f,p,m,v,g,b,y,x,w,S,O,k,E,j,P=r.constructor,N=r.s==o.s?1:-1,_=r.d,I=o.d;if(!r.s)return new P(r);if(!o.s)throw Error(c+"Division by zero");for(s=r.e-o.e,E=I.length,O=_.length,v=(m=new P(N)).d=[],u=0;I[u]==(_[u]||0);)++u;if(I[u]>(_[u]||0)&&--s,(x=null==i?i=P.precision:a?i+(C(r)-C(o))+1:i)<0)return new P(0);if(x=x/7+2|0,u=0,1==E)for(d=0,I=I[0],x++;(u<O||d)&&x--;u++)w=d*h+(_[u]||0),v[u]=w/I|0,d=w%I|0;else{for((d=h/(I[0]+1)|0)>1&&(I=e(I,d),_=e(_,d),E=I.length,O=_.length),S=E,b=(g=_.slice(0,E)).length;b<E;)g[b++]=0;(j=I.slice()).unshift(0),k=I[0],I[1]>=h/2&&++k;do{d=0,(l=t(I,g,E,b))<0?(y=g[0],E!=b&&(y=y*h+(g[1]||0)),(d=y/k|0)>1?(d>=h&&(d=h-1),1==(l=t(f=e(I,d),g,p=f.length,b=g.length))&&(d--,n(f,E<p?j:I,p))):(0==d&&(l=d=1),f=I.slice()),(p=f.length)<b&&f.unshift(0),n(g,f,b),-1==l&&(l=t(I,g,E,b=g.length))<1&&(d++,n(g,E<b?j:I,b)),b=g.length):0===l&&(d++,g=[0]),v[u++]=d,l&&g[0]?g[b++]=_[S]||0:(g=[_[S]],b=1)}while((S++<O||void 0!==g[0])&&x--)}return v[0]||v.shift(),m.e=s,$(m,a?i+C(m)+1:i)}}();function S(e,t){var n,r,i,a,c,s=0,d=0,p=e.constructor,h=p.precision;if(C(e)>16)throw Error(u+C(e));if(!e.s)return new p(o);for(null==t?(l=!1,c=h):c=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),d+=5;for(c+=Math.log(f(2,d))/Math.LN10*2+5|0,n=r=i=new p(o),p.precision=c;;){if(r=$(r.times(e),c),n=n.times(++s),x((a=i.plus(w(r,n,c))).d).slice(0,c)===x(i.d).slice(0,c)){for(;d--;)i=$(i.times(i),c);return p.precision=h,null==t?(l=!0,$(i,h)):i}i=a}}function C(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function O(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(c+"LN10 precision limit exceeded");return $(new e(e.LN10),t)}function k(e){for(var t="";e--;)t+="0";return t}function E(e,t){var n,r,i,a,s,u,d,f,p,h=1,m=e,v=m.d,g=m.constructor,b=g.precision;if(m.s<1)throw Error(c+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new g(0);if(null==t?(l=!1,f=b):f=t,m.eq(10))return null==t&&(l=!0),O(g,f);if(f+=10,g.precision=f,r=(n=x(v)).charAt(0),a=C(m),!(Math.abs(a)<15e14))return d=O(g,f+2,b).times(a+""),m=E(new g(r+"."+n.slice(1)),f-10).plus(d),g.precision=b,null==t?(l=!0,$(m,b)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=x((m=m.times(e)).d)).charAt(0),h++;for(a=C(m),r>1?(m=new g("0."+n),a++):m=new g(r+"."+n.slice(1)),u=s=m=w(m.minus(o),m.plus(o),f),p=$(m.times(m),f),i=3;;){if(s=$(s.times(p),f),x((d=u.plus(w(s,new g(i),f))).d).slice(0,f)===x(u.d).slice(0,f))return u=u.times(2),0!==a&&(u=u.plus(O(g,f+2,b).times(a+""))),u=w(u,new g(h),f),g.precision=b,null==t?(l=!0,$(u,b)):u;u=d,i+=2}}function j(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=d(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),l&&(e.e>v||e.e<-v))throw Error(u+n)}else e.s=0,e.e=0,e.d=[0];return e}function $(e,t,n){var r,o,i,a,c,s,p,m,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,p=g[m=0];else{if((m=Math.ceil((r+1)/7))>=(i=g.length))return e;for(p=i=g[m],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(c=p/(i=f(10,a-o-1))%10|0,s=t<0||void 0!==g[m+1]||p%i,s=n<4?(c||s)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||s||6==n&&(r>0?o>0?p/f(10,a-o):0:g[m-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return s?(i=C(e),g.length=1,t=t-i-1,g[0]=f(10,(7-t%7)%7),e.e=d(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=m,i=1,m--):(g.length=m+1,i=f(10,7-r),g[m]=o>0?(p/f(10,a-o)%f(10,o)|0)*i:0),s)for(;;){if(0==m){(g[0]+=i)==h&&(g[0]=1,++e.e);break}if(g[m]+=i,g[m]!=h)break;g[m--]=0,i=1}for(r=g.length;0===g[--r];)g.pop();if(l&&(e.e>v||e.e<-v))throw Error(u+C(e));return e}function P(e,t){var n,r,o,i,a,c,s,u,d,f,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),l?$(t,m):t;if(s=e.d,f=t.d,r=t.e,u=e.e,s=s.slice(),a=u-r){for((d=a<0)?(n=s,a=-a,c=f.length):(n=f,r=u,c=s.length),a>(o=Math.max(Math.ceil(m/7),c)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((d=(o=s.length)<(c=f.length))&&(c=o),o=0;o<c;o++)if(s[o]!=f[o]){d=s[o]<f[o];break}a=0}for(d&&(n=s,s=f,f=n,t.s=-t.s),c=s.length,o=f.length-c;o>0;--o)s[c++]=0;for(o=f.length;o>a;){if(s[--o]<f[o]){for(i=o;i&&0===s[--i];)s[i]=h-1;--s[i],s[o]+=h}s[o]-=f[o]}for(;0===s[--c];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(t.d=s,t.e=r,l?$(t,m):t):new p(0)}function N(e,t,n){var r,o=C(e),i=x(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+k(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+k(-o-1)+i,n&&(r=n-a)>0&&(i+=k(r))):o>=a?(i+=k(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+k(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=k(r))),e.s<0?"-"+i:i}function _(e,t){if(e.length>t)return e.length=t,!0}function I(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,n,r,o=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(d(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(s+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(s+n+": "+r);this[n]=new this(r)}return this}a=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(s+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):j(t,e.toString())}if("string"!=typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(s+e);j(t,e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=I,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}(a),a.default=a.Decimal=a,o=new a(1),void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},8418:(e,t,n)=>{"use strict";n(5160)},8493:(e,t,n)=>{"use strict"; | |
| 92 | +/** | |
| 93 | + * @license React | |
| 94 | + * use-sync-external-store-shim.production.js | |
| 95 | + * | |
| 96 | + * Copyright (c) Meta Platforms, Inc. and affiliates. | |
| 97 | + * | |
| 98 | + * This source code is licensed under the MIT license found in the | |
| 99 | + * LICENSE file in the root directory of this source tree. | |
| 100 | + */var r=n(6540);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,c=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l(function(){o.value=n,o.getSnapshot=t,s(o)&&u({inst:o})},[e,n,t]),a(function(){return s(o)&&u({inst:o}),e(function(){s(o)&&u({inst:o})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},8509:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=/^(?:0|[1-9]\d*)$/;t.isIndex=function(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return n.test(e)}}},8623:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},8805:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.uniqBy=function(e,t){const n=new Map;for(let r=0;r<e.length;r++){const o=e[r],i=t(o);n.has(i)||n.set(i,o)}return Array.from(n.values())}},8859:(e,t,n)=>{var r=n(3661),o=n(1380),i=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},8919:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1366);t.toNumber=function(e){return r.isSymbol(e)?NaN:Number(e)}},8984:(e,t,n)=>{var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},9181:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}},9184:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.argumentsTag="[object Arguments]",t.arrayBufferTag="[object ArrayBuffer]",t.arrayTag="[object Array]",t.bigInt64ArrayTag="[object BigInt64Array]",t.bigUint64ArrayTag="[object BigUint64Array]",t.booleanTag="[object Boolean]",t.dataViewTag="[object DataView]",t.dateTag="[object Date]",t.errorTag="[object Error]",t.float32ArrayTag="[object Float32Array]",t.float64ArrayTag="[object Float64Array]",t.functionTag="[object Function]",t.int16ArrayTag="[object Int16Array]",t.int32ArrayTag="[object Int32Array]",t.int8ArrayTag="[object Int8Array]",t.mapTag="[object Map]",t.numberTag="[object Number]",t.objectTag="[object Object]",t.regexpTag="[object RegExp]",t.setTag="[object Set]",t.stringTag="[object String]",t.symbolTag="[object Symbol]",t.uint16ArrayTag="[object Uint16Array]",t.uint32ArrayTag="[object Uint32Array]",t.uint8ArrayTag="[object Uint8Array]",t.uint8ClampedArrayTag="[object Uint8ClampedArray]"},9219:e=>{e.exports=function(e,t){return e.has(t)}},9242:(e,t,n)=>{"use strict";e.exports=n(2162)},9325:(e,t,n)=>{var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9467:(e,t,n)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3964),o=n(9184);t.cloneDeepWith=function(e,t){return r.cloneDeepWith(e,(n,i,a,l)=>{const c=t?.(n,i,a,l);if(void 0!==c)return c;if("object"==typeof e)switch(Object.prototype.toString.call(e)){case o.numberTag:case o.stringTag:case o.booleanTag:{const t=new e.constructor(e?.valueOf());return r.copyProperties(t,e),t}case o.argumentsTag:{const t={};return r.copyProperties(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}})}},9770:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},9888:(e,t,n)=>{"use strict";e.exports=n(8493)},9935:e=>{e.exports=function(){return!1}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.nc=void 0,(()=>{"use strict";var e={};o.r(e),o.d(e,{scaleBand:()=>t5,scaleDiverging:()=>Y9,scaleDivergingLog:()=>X9,scaleDivergingPow:()=>Z9,scaleDivergingSqrt:()=>J9,scaleDivergingSymlog:()=>Q9,scaleIdentity:()=>F6,scaleImplicit:()=>J4,scaleLinear:()=>H6,scaleLog:()=>Z6,scaleOrdinal:()=>e5,scalePoint:()=>r5,scalePow:()=>l8,scaleQuantile:()=>y8,scaleQuantize:()=>x8,scaleRadial:()=>u8,scaleSequential:()=>H9,scaleSequentialLog:()=>F9,scaleSequentialPow:()=>K9,scaleSequentialQuantile:()=>V9,scaleSequentialSqrt:()=>U9,scaleSequentialSymlog:()=>W9,scaleSqrt:()=>c8,scaleSymlog:()=>n8,scaleThreshold:()=>w8,scaleTime:()=>L9,scaleUtc:()=>q9,tickFormat:()=>z6});var t=o(5338),n=o(6540),r=o.t(n,2),i=o(4848),a=(0,n.createContext)(),l=function(e){var t=e.reducer,r=e.initialState,o=e.children;return(0,i.jsx)(a.Provider,{value:(0,n.useReducer)(t,r),children:o})},c=function(){return(0,n.useContext)(a)},s="UPDATE_GENERAL",u="UPDATE_STATE_ITEM",d="UPDATE_SECTIONS",f="section_id",p="UPDATE_DATA_ITEM",h="UPDATE_DATA_OPTIONS",m="UPDATE_DATA_BLOCK_ID_ACTION";const v=n.createContext({}),g="ant",b="anticon",y=["outlined","borderless","filled","underlined"],x=n.createContext({getPrefixCls:(e,t)=>t||(e?`${g}-${e}`:g),iconPrefixCls:b}),{Consumer:w}=x,S={};function C(e){const t=n.useContext(x),{getPrefixCls:r,direction:o,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:S,styles:S},a),{getPrefixCls:r,direction:o,getPopupContainer:i})}function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function k(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O(t)?t:t+""}function E(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){if(Array.isArray(e))return e}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t){if(e){if("string"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}function N(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,t){return j(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||P(e,t)||N()}function I(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function M(e){return function(e){if(Array.isArray(e))return $(e)}(e)||I(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const R=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)};function D(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function L(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}var q="data-rc-order",z="data-rc-priority",B=new Map;function H(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function F(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function W(e){return Array.from((B.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!D())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(q,a),l&&i&&c.setAttribute(z,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=F(t),u=s.firstChild;if(r){if(l){var d=(t.styles||W(s)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(q)))return!1;var t=Number(e.getAttribute(z)||0);return i>=t});if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=F(t);return(t.styles||W(n)).find(function(n){return n.getAttribute(H(t))===e})}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=U(e,t);n&&F(t).removeChild(n)}function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=F(n),o=W(r),i=A(A({},n),{},{styles:o});!function(e,t){var n=B.get(e);if(!n||!L(document,n)){var r=K("",t),o=r.parentNode;B.set(e,o),e.removeChild(r)}}(r,i);var a=U(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=K(e,i);return u.setAttribute(H(i),t),u}function Y(e,t,r){var o=n.useRef({});return"value"in o.current&&!r(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}var X={},Q=[];function Z(e,t){}function J(e,t){}function ee(e,t,n){t||X[n]||(e(!1,n),X[n]=!0)}function te(e,t){ee(Z,e,t)}te.preMessage=function(e){Q.push(e)},te.resetWarned=function(){X={}},te.noteOnce=function(e,t){ee(J,e,t)};const ne=te;const re=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(ne(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===O(t)&&"object"===O(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every(function(n){return e(t[n],o[n],l)})}return!1}(e,t)};function oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function ae(e,t,n){return t&&ie(e.prototype,t),n&&ie(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function le(e){return e.join("%")}var ce=function(){function e(t){oe(this,e),E(this,"instanceId",void 0),E(this,"cache",new Map),this.instanceId=t}return ae(e,[{key:"get",value:function(e){return this.opGet(le(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(le(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const se=ce;var ue="data-token-hash",de="data-css-hash",fe="__cssinjs_instance__";function pe(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(de,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[fe]=t[fe]||e,t[fe]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(de,"]"))).forEach(function(t){var n,o=t.getAttribute(de);r[o]?t[fe]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new se(e)}var he=n.createContext({hashPriority:"low",cache:pe(),defaultCache:!0});const me=he;var ve="CALC_UNIT";new RegExp(ve,"g");var ge=function(){function e(){oe(this,e),E(this,"cache",void 0),E(this,"keys",void 0),E(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ae(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 o=this.keys.reduce(function(e,t){var n=_(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),i=_(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();E(ge,"MAX_CACHE_SIZE",20),E(ge,"MAX_CACHE_OFFSET",5);var be=0,ye=function(){function e(t){oe(this,e),E(this,"derivatives",void 0),E(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=be,0===t.length&&t.length,be+=1}return ae(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),xe=new ge;function we(e){var t=Array.isArray(e)?e:[e];return xe.has(t)||xe.set(t,new ye(t)),xe.get(t)}var Se=new WeakMap,Ce={};var Oe=new WeakMap;function ke(e){var t=Oe.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof ye?t+=r.id:r&&"object"===O(r)?t+=ke(r):t+=r}),t=R(t),Oe.set(e,t)),t}function Ee(e,t){return R("".concat(t,"_").concat(ke(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var je=D();function $e(e){return"number"==typeof e?"".concat(e,"px"):e}function Pe(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=A(A({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(E(r={},ue,t),E(r,de,n),r)),i=Object.keys(o).map(function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Ne=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()},_e=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=_(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},Ie=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(e){var t,i,a=_(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=Ne(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}}),[o,_e(r,t,{scope:null==n?void 0:n.scope})]},Me=D()?n.useLayoutEffect:n.useEffect,Te=function(e,t){var r=n.useRef(!0);Me(function(){return e(r.current)},t),Me(function(){return r.current=!1,function(){r.current=!0}},[])},Ae=function(e,t){Te(function(t){if(!t)return e()},t)};const Re=Te;var De=A({},r).useInsertionEffect;const Le=De?function(e,t,n){return De(function(){return e(),t()},n)}:function(e,t,r){n.useMemo(e,r),Re(function(){return t(!0)},r)};const qe=void 0!==A({},r).useInsertionEffect?function(e){var t=[],r=!1;return n.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){r||t.push(e)}}:function(){return function(e){e()}};const ze=function(){return!1};function Be(e,t,r,o,i){var a=n.useContext(me).cache,l=le([e].concat(M(t))),c=qe([l]),s=(ze(),function(e){a.opUpdate(l,function(t){var n=_(t||[void 0,void 0],2),o=n[0];var i=[void 0===o?0:o,n[1]||r()];return e?e(i):i})});n.useMemo(function(){s()},[l]);var u=a.opGet(l)[1];return Le(function(){null==i||i(u)},function(e){return s(function(t){var n=_(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(u)),[r+1,o]}),function(){a.opUpdate(l,function(t){var n=_(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c(function(){!e&&a.opGet(l)||null==o||o(s,!1)}),null):[i-1,s]})}},[l]),u}var He={},Fe=new Map;function We(e,t){Fe.set(e,(Fe.get(e)||0)-1);var n=Array.from(Fe.keys()),r=n.filter(function(e){return(Fe.get(e)||0)<=0});n.length-r.length>0&&r.forEach(function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(ue,'="').concat(e,'"]')).forEach(function(e){var n;e[fe]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),Fe.delete(e)})}var Ke="token";function Ue(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,n.useContext)(me),i=o.cache.instanceId,a=o.container,l=r.salt,c=void 0===l?"":l,s=r.override,u=void 0===s?He:s,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,h=function(e,t){for(var n=Se,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Ce)||n.set(Ce,e()),n.get(Ce)}(function(){return Object.assign.apply(Object,[{}].concat(M(t)))},t),m=ke(h),v=ke(u),g=p?ke(p):"",b=Be(Ke,[c,e.id,m,v,g],function(){var t,n=f?f(h,u,e):function(e,t,n,r){var o=A(A({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(h,u,e,d),r=A({},n),o="";if(p){var i=_(Ie(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=Ee(n,c);n._tokenKey=a,r._tokenKey=Ee(r,c);var l=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=l,function(e){Fe.set(e,(Fe.get(e)||0)+1)}(l);var s="".concat("css","-").concat(R(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]},function(e){We(e[0]._themeKey,i)},function(e){var t=_(e,4),n=t[0],r=t[3];if(p&&r){var o=G(r,R("css-variables-".concat(n._themeKey)),{mark:de,prepend:"queue",attachTo:a,priority:-999});o[fe]=i,o.setAttribute(ue,n._themeKey)}});return b}function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ve.apply(null,arguments)}const Ge={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Ye="comm",Xe="rule",Qe="decl",Ze=Math.abs,Je=String.fromCharCode;Object.assign;function et(e){return e.trim()}function tt(e,t,n){return e.replace(t,n)}function nt(e,t,n){return e.indexOf(t,n)}function rt(e,t){return 0|e.charCodeAt(t)}function ot(e,t,n){return e.slice(t,n)}function it(e){return e.length}function at(e,t){return t.push(e),e}function lt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ct(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Qe:return e.return=e.return||e.value;case Ye:return"";case"@keyframes":return e.return=e.value+"{"+lt(e.children,r)+"}";case Xe:if(!it(e.value=e.props.join(",")))return""}return it(n=lt(e.children,r))?e.return=e.value+"{"+n+"}":""}var st=1,ut=1,dt=0,ft=0,pt=0,ht="";function mt(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:st,column:ut,length:a,return:"",siblings:l}}function vt(){return pt=ft>0?rt(ht,--ft):0,ut--,10===pt&&(ut=1,st--),pt}function gt(){return pt=ft<dt?rt(ht,ft++):0,ut++,10===pt&&(ut=1,st++),pt}function bt(){return rt(ht,ft)}function yt(){return ft}function xt(e,t){return ot(ht,e,t)}function wt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function St(e){return st=ut=1,dt=it(ht=e),ft=0,[]}function Ct(e){return ht="",e}function Ot(e){return et(xt(ft-1,jt(91===e?e+2:40===e?e+1:e)))}function kt(e){for(;(pt=bt())&&pt<33;)gt();return wt(e)>2||wt(pt)>3?"":" "}function Et(e,t){for(;--t&>()&&!(pt<48||pt>102||pt>57&&pt<65||pt>70&&pt<97););return xt(e,yt()+(t<6&&32==bt()&&32==gt()))}function jt(e){for(;gt();)switch(pt){case e:return ft;case 34:case 39:34!==e&&39!==e&&jt(pt);break;case 40:41===e&&jt(e);break;case 92:gt()}return ft}function $t(e,t){for(;gt()&&e+pt!==57&&(e+pt!==84||47!==bt()););return"/*"+xt(t,ft-1)+"*"+Je(47===e?e:gt())}function Pt(e){for(;!wt(bt());)gt();return xt(e,ft)}function Nt(e){return Ct(_t("",null,null,null,[""],e=St(e),0,[0],e))}function _t(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,h=0,m=1,v=1,g=1,b=0,y="",x=o,w=i,S=r,C=y;v;)switch(h=b,b=gt()){case 40:if(108!=h&&58==rt(C,d-1)){-1!=nt(C+=tt(Ot(b),"&","&\f"),"&\f",Ze(s?l[s-1]:0))&&(g=-1);break}case 34:case 39:case 91:C+=Ot(b);break;case 9:case 10:case 13:case 32:C+=kt(h);break;case 92:C+=Et(yt()-1,7);continue;case 47:switch(bt()){case 42:case 47:at(Mt($t(gt(),yt()),t,n,c),c),5!=wt(h||1)&&5!=wt(bt()||1)||!it(C)||" "===ot(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:l[s++]=it(C)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==g&&(C=tt(C,/\f/g,"")),p>0&&(it(C)-d||0===m&&47===h)&&at(p>32?Tt(C+";",r,n,d-1,c):Tt(tt(C," ","")+";",r,n,d-2,c),c);break;case 59:C+=";";default:if(at(S=It(C,t,n,s,u,o,l,y,x=[],w=[],d,i),i),123===b)if(0===u)_t(C,t,S,S,x,i,d,l,w);else{switch(f){case 99:if(110===rt(C,3))break;case 108:if(97===rt(C,2))break;default:u=0;case 100:case 109:case 115:}u?_t(e,S,S,r&&at(It(e,S,S,0,0,o,l,y,o,x=[],d,w),w),o,w,d,l,r?x:w):_t(C,S,S,S,[""],w,0,l,w)}}s=u=p=0,m=g=1,y=C="",d=a;break;case 58:d=1+it(C),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==vt())continue;switch(C+=Je(b),b*m){case 38:g=u>0?1:(C+="\f",-1);break;case 44:l[s++]=(it(C)-1)*g,g=1;break;case 64:45===bt()&&(C+=Ot(gt())),f=bt(),u=d=it(y=C+=Pt(yt())),b++;break;case 45:45===h&&2==it(C)&&(m=0)}}return i}function It(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),m=0,v=0,g=0;m<r;++m)for(var b=0,y=ot(e,f+1,f=Ze(v=a[m])),x=e;b<h;++b)(x=et(v>0?p[b]+" "+y:tt(y,/&\f/g,p[b])))&&(c[g++]=x);return mt(e,t,n,0===o?Xe:l,c,s,u,d)}function Mt(e,t,n,r){return mt(e,t,n,Ye,Je(pt),ot(e,2,-2),0,r)}function Tt(e,t,n,r,o){return mt(e,t,n,Qe,ot(e,0,r),ot(e,r+1,-1),r,o)}var At,Rt="data-ant-cssinjs-cache-path",Dt="_FILE_STYLE__";var Lt=!0;function qt(e){return function(){if(!At&&(At={},D())){var e=document.createElement("div");e.className=Rt,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(":"),2),n=t[0],r=t[1];At[n]=r});var n,r=document.querySelector("style[".concat(Rt,"]"));r&&(Lt=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!At[e]}var zt="_multi_value_";function Bt(e){return lt(Nt(e),ct).replace(/\{%%%\:[^;];}/g,";")}function Ht(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(M(n.slice(1))).join(" ")}).join(",")}var Ft=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:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function h(t){var r=t.getName(l);if(!p[r]){var o=_(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var m=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]);return m.forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=d.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(c).forEach(function(t){var r=c[t];if("object"!==O(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===O(e)&&e&&("_skip_check_"in e||zt in e)}(r)){var u;function w(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;Ge[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===O(r)&&null!=r&&r[zt]&&Array.isArray(d)?d.forEach(function(e){w(t,e)}):w(t,d)}else{var m=!1,v=t.trim(),g=!1;(o||i)&&l?v.startsWith("@")?m=!0:v=Ht("&"===v?"":t,l,s):!o||l||"&"!==v&&""!==v||(v="",g=!0);var b=_(e(r,n,{root:g,injectHash:m,parentSelectors:[].concat(M(a),[v])}),2),y=b[0],x=b[1];p=A(A({},p),x),f+="".concat(v).concat(y)}})}}),o?c&&(f&&(f="@layer ".concat(c.name," {").concat(f,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(c.name,";")}).join("\n"))):f="{".concat(f,"}"),[f,p]};function Wt(e,t){return R("".concat(e.join("%")).concat(t))}function Kt(){return null}var Ut="style";function Vt(e,t){var r=e.token,o=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=n.useContext(me),f=d.autoClear,p=(d.mock,d.defaultCache),h=d.hashPriority,m=d.container,v=d.ssrInline,g=d.transformers,b=d.linters,y=d.cache,x=d.layer,w=r._tokenKey,S=[w];x&&S.push("layer"),S.push.apply(S,M(o));var C=je;var O=Be(Ut,S,function(){var e=S.join("|");if(qt(e)){var n=function(e){var t=At[e],n=null;if(t&&D())if(Lt)n=Dt;else{var r=document.querySelector("style[".concat(de,'="').concat(At[e],'"]'));r?n=r.innerHTML:delete At[e]}return[n,t]}(e),r=_(n,2),l=r[0],s=r[1];if(l)return[l,w,s,{},c,u]}var d=t(),f=_(Ft(d,{hashId:i,hashPriority:h,layer:x?a:void 0,path:o.join("-"),transformers:g,linters:b}),2),p=f[0],m=f[1],v=Bt(p),y=Wt(S,v);return[v,w,y,m,c,u]},function(e,t){var n=_(e,3)[2];(t||f)&&je&&V(n,{mark:de})},function(e){var t=_(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(C&&n!==Dt){var i={mark:de,prepend:!x&&"queue",attachTo:m,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?c.push(e):s.push(e)}),c.forEach(function(e){G(Bt(o[e]),"_layer-".concat(e),A(A({},i),{},{prepend:!0}))});var d=G(n,r,i);d[fe]=y.instanceId,d.setAttribute(ue,w),s.forEach(function(e){G(Bt(o[e]),"_effect-".concat(e),i)})}}),k=_(O,3),j=k[0],$=k[1],P=k[2];return function(e){var t,r;v&&!C&&p?t=n.createElement("style",Ve({},(E(r={},ue,$),E(r,de,P),r),{dangerouslySetInnerHTML:{__html:j}})):t=n.createElement(Kt,null);return n.createElement(n.Fragment,null,t,e)}}var Gt="cssVar";const Yt=function(e,t){var r=e.key,o=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=(0,n.useContext)(me),d=u.cache.instanceId,f=u.container,p=l._tokenKey,h=[].concat(M(e.path),[r,s,p]),m=Be(Gt,h,function(){var e=t(),n=_(Ie(e,r,{prefix:o,unitless:i,ignore:a,scope:s}),2),l=n[0],c=n[1];return[l,c,Wt(h,c),r]},function(e){var t=_(e,3)[2];je&&V(t,{mark:de})},function(e){var t=_(e,3),n=t[1],o=t[2];if(n){var i=G(n,o,{mark:de,prepend:"queue",attachTo:f,priority:-999});i[fe]=d,i.setAttribute(ue,r)}});return m};var Xt;E(Xt={},Ut,function(e,t,n){var r=_(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=Pe(o,i,a,f,u),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=Pe(Bt(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}}),[s,a,d]}),E(Xt,Ke,function(e,t,n){var r=_(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,Pe(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}),E(Xt,Gt,function(e,t,n){var r=_(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Pe(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]});var Qt=function(){function e(t,n){oe(this,e),E(this,"name",void 0),E(this,"style",void 0),E(this,"_keyframe",!0),this.name=t,this.style=n}return ae(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}();const Zt=Qt;function Jt(e){return e.notSplit=!0,e}Jt(["borderTop","borderBottom"]),Jt(["borderTop"]),Jt(["borderBottom"]),Jt(["borderLeft","borderRight"]),Jt(["borderLeft"]),Jt(["borderRight"]);const en=(0,n.createContext)({});function tn(e){return j(e)||I(e)||P(e)||N()}function nn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function rn(e,t,n,r){if(!t.length)return n;var o,i=tn(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?M(e):A({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=rn(o[a],l,n,r),o}function on(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!nn(e,t.slice(0,-1))?e:rn(e,t,n,r)}function an(e){return Array.isArray(e)?[]:{}}var ln="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function cn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=an(t[0]);return t.forEach(function(e){!function t(n,o){var i,a=new Set(o),l=nn(e,n),c=Array.isArray(l);if(c||"object"===O(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=nn(r,n);c?r=on(r,n,[]):s&&"object"===O(s)||(r=on(r,n,an(l))),ln(l).forEach(function(e){t([].concat(M(n),[e]),a)})}}else r=on(r,n,l)}([])}),r}function sn(){}const un=n.createContext({}),dn=()=>{const e=()=>{};return e.deprecated=sn,e},fn=(0,n.createContext)(void 0);const pn={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"};const hn=A(A({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"}),mn={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},vn={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"]},hn),timePickerLocale:Object.assign({},mn)},gn="${label} is not a valid ${type}",bn={locale:"en",Pagination:pn,DatePicker:vn,TimePicker:mn,Calendar:vn,global:{placeholder:"Please select",close:"Close"},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",deselectAll:"Deselect 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",collapse:"Collapse"},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:gn,method:gn,array:gn,object:gn,number:gn,date:gn,boolean:gn,integer:gn,float:gn,regexp:gn,email:gn,url:gn,hex:gn},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let yn=Object.assign({},bn.Modal),xn=[];const wn=()=>xn.reduce((e,t)=>Object.assign(Object.assign({},e),t),bn.Modal);function Sn(){return yn}const Cn=(0,n.createContext)(void 0);const On=e=>{const{locale:t={},children:r,_ANT_MARK__:o}=e;n.useEffect(()=>{const e=function(e){if(e){const t=Object.assign({},e);return xn.push(t),yn=wn(),()=>{xn=xn.filter(e=>e!==t),yn=wn()}}yn=Object.assign({},bn.Modal)}(null==t?void 0:t.Modal);return e},[t]);const i=n.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return n.createElement(Cn.Provider,{value:i},r)},kn=Math.round;function En(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const jn=(e,t,n)=>0===n?e:e/100;function $n(e,t){const n=t||255;return e>n?n:e<0?0:e}class Pn{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(E(this,"isValid",!0),E(this,"r",0),E(this,"g",0),E(this,"b",0),E(this,"a",1),E(this,"_h",void 0),E(this,"_s",void 0),E(this,"_l",void 0),E(this,"_v",void 0),E(this,"_max",void 0),E(this,"_min",void 0),E(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof Pn)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=$n(e.r),this.g=$n(e.g),this.b=$n(e.b),this.a="number"==typeof e.a?$n(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:kn(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:kn(o("r")),g:kn(o("g")),b:kn(o("b")),a:kn(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>kn((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=kn(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=kn(100*this.getSaturation()),n=kn(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=$n(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=kn(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,i=s):l>=1&&l<2?(o=s,i=c):l>=2&&l<3?(i=c,a=s):l>=3&&l<4?(i=s,a=c):l>=4&&l<5?(o=s,a=c):l>=5&&l<6&&(o=c,a=s);const u=n-c/2;this.r=kn(255*(o+u)),this.g=kn(255*(i+u)),this.b=kn(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=kn(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,c=kn(n*(1-t)*255),s=kn(n*(1-t*l)*255),u=kn(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=En(e,jn);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=En(e,jn);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=En(e,(e,t)=>t.includes("%")?kn(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Nn=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function _n(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function In(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function Mn(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function Tn(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new Pn(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new Pn({h:_n(o,i,!0),s:In(o,i,!0),v:Mn(o,i,!0)});n.push(a)}n.push(r);for(var l=1;l<=4;l+=1){var c=new Pn({h:_n(o,l),s:In(o,l),v:Mn(o,l)});n.push(c)}return"dark"===t.theme?Nn.map(function(e){var r=e.index,o=e.amount;return new Pn(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(e){return e.toHexString()})}var An={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"},Rn=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Rn.primary=Rn[5];var Dn=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Dn.primary=Dn[5];var Ln=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ln.primary=Ln[5];var qn=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];qn.primary=qn[5];var zn=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];zn.primary=zn[5];var Bn=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Bn.primary=Bn[5];var Hn=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Hn.primary=Hn[5];var Fn=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Fn.primary=Fn[5];var Wn=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Wn.primary=Wn[5];var Kn=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Kn.primary=Kn[5];var Un=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Un.primary=Un[5];var Vn=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Vn.primary=Vn[5];var Gn=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Gn.primary=Gn[5];var Yn={red:Rn,volcano:Dn,orange:Ln,gold:qn,yellow:zn,lime:Bn,green:Hn,cyan:Fn,blue:Wn,geekblue:Kn,purple:Un,magenta:Vn,grey:Gn},Xn=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Xn.primary=Xn[5];var Qn=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Qn.primary=Qn[5];var Zn=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Zn.primary=Zn[5];var Jn=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Jn.primary=Jn[5];var er=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];er.primary=er[5];var tr=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];tr.primary=tr[5];var nr=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];nr.primary=nr[5];var rr=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];rr.primary=rr[5];var or=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];or.primary=or[5];var ir=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];ir.primary=ir[5];var ar=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];ar.primary=ar[5];var lr=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];lr.primary=lr[5];var cr=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];cr.primary=cr[5];const sr={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"},ur=Object.assign(Object.assign({},sr),{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});const dr=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}};const fr=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function pr(e){return(e+8)/e}const hr=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:pr(e)}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const mr=(e,t)=>new Pn(e).setA(t).toRgbString(),vr=(e,t)=>new Pn(e).darken(t).toHexString(),gr=e=>{const t=Tn(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]}},br=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:mr(r,.88),colorTextSecondary:mr(r,.65),colorTextTertiary:mr(r,.45),colorTextQuaternary:mr(r,.25),colorFill:mr(r,.15),colorFillSecondary:mr(r,.06),colorFillTertiary:mr(r,.04),colorFillQuaternary:mr(r,.02),colorBgSolid:mr(r,1),colorBgSolidHover:mr(r,.75),colorBgSolidActive:mr(r,.95),colorBgLayout:vr(n,4),colorBgContainer:vr(n,0),colorBgElevated:vr(n,0),colorBgSpotlight:mr(r,.85),colorBgBlur:"transparent",colorBorder:vr(n,15),colorBorderSecondary:vr(n,6)}};const yr=we(function(e){An.pink=An.magenta,Yn.pink=Yn.magenta;const t=Object.keys(sr).map(t=>{const n=e[t]===An[t]?Yn[t]:Tn(e[t]);return Array.from({length:10},()=>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),function(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:s}=e,u=t(l),d=t(r),f=t(o),p=t(i),h=t(a),m=n(c,s),v=t(e.colorLink||e.colorInfo),g=new Pn(p[1]).mix(new Pn(p[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:g,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Pn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:gr,generateNeutralColorPalettes:br})),hr(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)),fr(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},dr(r))}(e))}),xr=yr,wr={token:ur,override:{override:ur},hashed:!0},Sr=n.createContext(wr),Cr=`-ant-${Date.now()}-${Math.random()}`;function Or(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 Pn(e),i=Tn(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Pn(t.primaryColor),i=Tn(e.toRgbString());i.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.setA(.12*e.a));const a=new Pn(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");const i=Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`);return`\n :root {\n ${i.join("\n")}\n }\n `.trim()}(e,t);D()&&G(n,`${Cr}-dynamic-theme`)}const kr=n.createContext(!1),Er=({children:e,disabled:t})=>{const r=n.useContext(kr);return n.createElement(kr.Provider,{value:null!=t?t:r},e)},jr=kr,$r=n.createContext(void 0),Pr=({children:e,size:t})=>{const r=n.useContext($r);return n.createElement($r.Provider,{value:t||r},e)},Nr=$r;const _r=function(){return{componentDisabled:(0,n.useContext)(jr),componentSize:(0,n.useContext)(Nr)}},Ir=Object.assign({},r),{useId:Mr}=Ir,Tr=void 0===Mr?()=>"":Mr;var Ar=o(6942),Rr=o.n(Ar),Dr=o(961),Lr=o.t(Dr,2);function qr(e){return e instanceof HTMLElement||e instanceof SVGElement}function zr(e){return e&&"object"===O(e)&&qr(e.nativeElement)?e.nativeElement:qr(e)?e:null}function Br(e){var t,r=zr(e);return r||(e instanceof n.Component?null===(t=Dr.findDOMNode)||void 0===t?void 0:t.call(Dr,e):null)}var Hr=o(6351),Fr=Symbol.for("react.element"),Wr=Symbol.for("react.transitional.element"),Kr=Symbol.for("react.fragment");function Ur(e){return e&&"object"===O(e)&&(e.$$typeof===Fr||e.$$typeof===Wr)&&e.type===Kr}var Vr=Number(n.version.split(".")[0]),Gr=function(e,t){"function"==typeof e?e(t):"object"===O(e)&&e&&"current"in e&&(e.current=t)},Yr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){Gr(t,e)})}},Xr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y(function(){return Yr.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},Qr=function(e){var t,n;if(!e)return!1;if(Zr(e)&&Vr>=19)return!0;var r=(0,Hr.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===Hr.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===Hr.ForwardRef)};function Zr(e){return(0,n.isValidElement)(e)&&!Ur(e)}var Jr=function(e){if(e&&Zr(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function eo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var to=["children"],no=n.createContext({});function ro(e){var t=e.children,r=eo(e,to);return n.createElement(no.Provider,{value:r},t)}function oo(e,t){return oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oo(e,t)}function io(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oo(e,t)}function ao(e){return ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ao(e)}function lo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lo=function(){return!!e})()}function co(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function so(e){var t=lo();return function(){var n,r=ao(e);if(t){var o=ao(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return co(e)}(this,n)}}const uo=function(e){io(n,e);var t=so(n);function n(){return oe(this,n),t.apply(this,arguments)}return ae(n,[{key:"render",value:function(){return this.props.children}}]),n}(n.Component);function fo(e){var t=n.useRef();t.current=e;var r=n.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return r}function po(e){var t=n.useRef(!1),r=_(n.useState(e),2),o=r[0],i=r[1];return n.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[o,function(e,n){n&&t.current||i(e)}]}function ho(e){return void 0!==e}function mo(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=_(po(function(){return ho(o)?o:ho(r)?"function"==typeof r?r():r:"function"==typeof e?e():e}),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=fo(i),p=_(po([u]),2),h=p[0],m=p[1];return Ae(function(){var e=h[0];c!==e&&f(c,e)},[h]),Ae(function(){ho(o)||s(o)},[o]),[d,fo(function(e,t){s(e,t),m([u],t)})]}var vo="none",go="appear",bo="enter",yo="leave",xo="none",wo="prepare",So="start",Co="active",Oo="end",ko="prepared";function Eo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var jo=function(e,t){var n={animationend:Eo("Animation","AnimationEnd"),transitionend:Eo("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(D(),"undefined"!=typeof window?window:{}),$o={};if(D()){var Po=document.createElement("div");$o=Po.style}var No={};function _o(e){if(No[e])return No[e];var t=jo[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in $o)return No[e]=t[i],No[e]}return""}var Io=_o("animationend"),Mo=_o("transitionend"),To=!(!Io||!Mo),Ao=Io||"animationend",Ro=Mo||"transitionend";function Do(e,t){if(!e)return null;if("object"===O(e)){var n=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Lo=D()?n.useLayoutEffect:n.useEffect;var qo=function(e){return+setTimeout(e,16)},zo=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(qo=function(e){return window.requestAnimationFrame(e)},zo=function(e){return window.cancelAnimationFrame(e)});var Bo=0,Ho=new Map;function Fo(e){Ho.delete(e)}var Wo=function(e){var t=Bo+=1;return function n(r){if(0===r)Fo(t),e();else{var o=qo(function(){n(r-1)});Ho.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Wo.cancel=function(e){var t=Ho.get(e);return Fo(e),zo(t)};const Ko=Wo;var Uo=[wo,So,Co,Oo],Vo=[wo,ko],Go=!1;function Yo(e){return e===Co||e===Oo}const Xo=function(e,t,r){var o=_(po(xo),2),i=o[0],a=o[1],l=function(){var e=n.useRef(null);function t(){Ko.cancel(e.current)}return n.useEffect(function(){return function(){t()}},[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Ko(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]}(),c=_(l,2),s=c[0],u=c[1];var d=t?Vo:Uo;return Lo(function(){if(i!==xo&&i!==Oo){var e=d.indexOf(i),t=d[e+1],n=r(i);n===Go?a(t,!0):t&&s(function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[e,i]),n.useEffect(function(){return function(){u()}},[]),[function(){a(wo,!0)},i]};function Qo(e,t,r,o){var i=o.motionEnter,a=void 0===i||i,l=o.motionAppear,c=void 0===l||l,s=o.motionLeave,u=void 0===s||s,d=o.motionDeadline,f=o.motionLeaveImmediately,p=o.onAppearPrepare,h=o.onEnterPrepare,m=o.onLeavePrepare,v=o.onAppearStart,g=o.onEnterStart,b=o.onLeaveStart,y=o.onAppearActive,x=o.onEnterActive,w=o.onLeaveActive,S=o.onAppearEnd,C=o.onEnterEnd,O=o.onLeaveEnd,k=o.onVisibleChanged,j=_(po(),2),$=j[0],P=j[1],N=function(e){var t=_(n.useReducer(function(e){return e+1},0),2)[1],r=n.useRef(e);return[fo(function(){return r.current}),fo(function(e){r.current="function"==typeof e?e(r.current):e,t()})]}(vo),I=_(N,2),M=I[0],T=I[1],R=_(po(null),2),D=R[0],L=R[1],q=M(),z=(0,n.useRef)(!1),B=(0,n.useRef)(null);function H(){return r()}var F=(0,n.useRef)(!1);function W(){T(vo),L(null,!0)}var K=fo(function(e){var t=M();if(t!==vo){var n=H();if(!e||e.deadline||e.target===n){var r,o=F.current;t===go&&o?r=null==S?void 0:S(n,e):t===bo&&o?r=null==C?void 0:C(n,e):t===yo&&o&&(r=null==O?void 0:O(n,e)),o&&!1!==r&&W()}}}),U=function(e){var t=(0,n.useRef)();function r(t){t&&(t.removeEventListener(Ro,e),t.removeEventListener(Ao,e))}return n.useEffect(function(){return function(){r(t.current)}},[]),[function(n){t.current&&t.current!==n&&r(t.current),n&&n!==t.current&&(n.addEventListener(Ro,e),n.addEventListener(Ao,e),t.current=n)},r]}(K),V=_(U,1)[0],G=function(e){switch(e){case go:return E(E(E({},wo,p),So,v),Co,y);case bo:return E(E(E({},wo,h),So,g),Co,x);case yo:return E(E(E({},wo,m),So,b),Co,w);default:return{}}},Y=n.useMemo(function(){return G(q)},[q]),X=_(Xo(q,!e,function(e){if(e===wo){var t=Y[wo];return t?t(H()):Go}var n;Z in Y&&L((null===(n=Y[Z])||void 0===n?void 0:n.call(Y,H(),null))||null);return Z===Co&&q!==vo&&(V(H()),d>0&&(clearTimeout(B.current),B.current=setTimeout(function(){K({deadline:!0})},d))),Z===ko&&W(),true}),2),Q=X[0],Z=X[1],J=Yo(Z);F.current=J;var ee=(0,n.useRef)(null);Lo(function(){if(!z.current||ee.current!==t){P(t);var n,r=z.current;z.current=!0,!r&&t&&c&&(n=go),r&&t&&a&&(n=bo),(r&&!t&&u||!r&&f&&!t&&u)&&(n=yo);var o=G(n);n&&(e||o[wo])?(T(n),Q()):T(vo),ee.current=t}},[t]),(0,n.useEffect)(function(){(q===go&&!c||q===bo&&!a||q===yo&&!u)&&T(vo)},[c,a,u]),(0,n.useEffect)(function(){return function(){z.current=!1,clearTimeout(B.current)}},[]);var te=n.useRef(!1);(0,n.useEffect)(function(){$&&(te.current=!0),void 0!==$&&q===vo&&((te.current||$)&&(null==k||k($)),te.current=!0)},[$,q]);var ne=D;return Y[wo]&&Z===So&&(ne=A({transition:"none"},ne)),[q,Z,ne,null!=$?$:t]}const Zo=function(e){var t=e;"object"===O(e)&&(t=e.transitionSupport);var r=n.forwardRef(function(e,r){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,c=e.forceRender,s=e.children,u=e.motionName,d=e.leavedClassName,f=e.eventProps,p=function(e,n){return!(!e.motionName||!t||!1===n)}(e,n.useContext(no).motion),h=(0,n.useRef)(),m=(0,n.useRef)();var v=_(Qo(p,i,function(){try{return h.current instanceof HTMLElement?h.current:Br(m.current)}catch(e){return null}},e),4),g=v[0],b=v[1],y=v[2],x=v[3],w=n.useRef(x);x&&(w.current=!0);var S,C=n.useCallback(function(e){h.current=e,Gr(r,e)},[r]),O=A(A({},f),{},{visible:i});if(s)if(g===vo)S=x?s(A({},O),C):!l&&w.current&&d?s(A(A({},O),{},{className:d}),C):c||!l&&!d?s(A(A({},O),{},{style:{display:"none"}}),C):null;else{var k;b===wo?k="prepare":Yo(b)?k="active":b===So&&(k="start");var j=Do(u,"".concat(g,"-").concat(k));S=s(A(A({},O),{},{className:Rr()(Do(u,g),E(E({},j,j&&k),u,"string"==typeof u)),style:y}),C)}else S=null;n.isValidElement(S)&&Qr(S)&&(Jr(S)||(S=n.cloneElement(S,{ref:C})));return n.createElement(uo,{ref:m},S)});return r.displayName="CSSMotion",r}(To);var Jo="add",ei="keep",ti="remove",ni="removed";function ri(e){var t;return A(A({},t=e&&"object"===O(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function oi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ri)}var ii=["component","children","onVisibleChanged","onAllRemoved"],ai=["status"],li=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const ci=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zo,t=function(t){io(o,t);var r=so(o);function o(){var e;oe(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return E(co(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),E(co(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:A(A({},e),{},{status:ni})})}},function(){var t=e.state.keyEntities.filter(function(e){return e.status!==ni}).length;0===t&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return ae(o,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=(o.onAllRemoved,eo(o,ii)),s=i||n.Fragment,u={};return li.forEach(function(e){u[e]=c[e],delete c[e]}),delete c.keys,n.createElement(s,c,r.map(function(r,o){var i=r.status,c=eo(r,ai),s=i===Jo||i===ei;return n.createElement(e,Ve({},u,{key:c.key,visible:s,eventProps:c,onVisibleChanged:function(e){null==l||l(e,{key:c.key}),e||t.removeKey(c.key)}}),function(e,t){return a(A(A({},e),{},{index:o}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=oi(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=oi(e),a=oi(t);i.forEach(function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map(function(e){return A(A({},e),{},{status:Jo})})),r=i),n.push(A(A({},l),{},{status:ei})),r+=1,t=!0;break}}t||n.push(A(A({},e),{},{status:ti}))}),r<o&&(n=n.concat(a.slice(r).map(function(e){return A(A({},e),{},{status:Jo})})));var l={};n.forEach(function(e){var t=e.key;l[t]=(l[t]||0)+1});var c=Object.keys(l).filter(function(e){return l[e]>1});return c.forEach(function(e){n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==ti}),n.forEach(function(t){t.key===e&&(t.status=ei)})}),n}(r,o);return{keyEntities:i.filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==ni||e.status!==ti})}}}]),o}(n.Component);return E(t,"defaultProps",{component:"div"}),t}(To),si=Zo;function ui(e){return e>=0&&e<=255}const di=function(e,t){const{r:n,g:r,b:o,a:i}=new Pn(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Pn(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(ui(t)&&ui(i)&&ui(s))return new Pn({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new Pn({r:n,g:r,b:o,a:1}).toRgbString()};var fi=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function pi(e){const{override:t}=e,n=fi(e,["override"]),r=Object.assign({},t);Object.keys(ur).forEach(e=>{delete r[e]});const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:di(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:di(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:di(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:di(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.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:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Pn("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Pn("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Pn("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)"}),r)}var hi=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mi={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},vi={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},gi={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},bi=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=hi(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=pi(a),i&&Object.entries(i).forEach(([e,t])=>{const{theme:n}=t,r=hi(t,["theme"]);let o=r;n&&(o=bi(Object.assign(Object.assign({},a),r),{override:r},n)),a[e]=o}),a};function yi(){const{token:e,hashed:t,theme:r,override:o,cssVar:i}=n.useContext(Sr),a=`5.26.1-${t||""}`,l=r||xr,[c,s,u]=Ue(l,[ur,e],{salt:a,override:o,getComputedToken:bi,formatToken:pi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:mi,ignore:vi,preserve:gi}});return[l,u,t?s:"",c,i]}const xi=n.createContext(!0);function wi(e){const t=n.useContext(xi),{children:r}=e,[,o]=yi(),{motion:i}=o,a=n.useRef(!1);return a.current||(a.current=t!==i),a.current?n.createElement(xi.Provider,{value:i},n.createElement(ro,{motion:i},r)):r}const Si=()=>null,Ci={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Oi=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ki=(e,t)=>({outline:`${$e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),Ei=(e,t)=>({"&:focus-visible":Object.assign({},ki(e,t))}),ji=e=>({[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),$i=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Ei(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Pi=(e,t)=>{const[n,r]=yi();return Vt({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>[ji(e)])};var Ni=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _i=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ii,Mi,Ti,Ai;function Ri(){return Ii||g}function Di(){return Mi||b}const Li=()=>({getPrefixCls:(e,t)=>t||(e?`${Ri()}-${e}`:Ri()),getIconPrefixCls:Di,getRootPrefixCls:()=>Ii||Ri(),getTheme:()=>Ti,holderRender:Ai}),qi=e=>{const{children:t,csp:r,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:h,popupMatchSelectWidth:m,popupOverflow:v,legacyLocale:g,parentContext:y,iconPrefixCls:w,theme:S,componentDisabled:C,segmented:O,statistic:k,spin:E,calendar:j,carousel:$,cascader:P,collapse:N,typography:_,checkbox:I,descriptions:M,divider:T,drawer:A,skeleton:R,steps:D,image:L,layout:q,list:z,mentions:B,modal:H,progress:F,result:W,slider:K,breadcrumb:U,menu:V,pagination:G,input:X,textArea:Q,empty:Z,badge:J,radio:ee,rate:te,switch:ne,transfer:oe,avatar:ie,message:ae,tag:le,table:ce,card:se,tabs:ue,timeline:de,timePicker:fe,upload:pe,notification:he,tree:ve,colorPicker:ge,datePicker:be,rangePicker:ye,flex:xe,wave:Se,dropdown:Ce,warning:Oe,tour:ke,tooltip:Ee,popover:je,popconfirm:$e,floatButtonGroup:Pe,variant:Ne,inputNumber:_e,treeSelect:Ie}=e,Me=n.useCallback((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||y.getPrefixCls("");return t?`${o}-${t}`:o},[y.getPrefixCls,e.prefixCls]),Te=w||y.iconPrefixCls||b,Ae=r||y.csp;Pi(Te,Ae);const Re=function(e,t,n){var r;dn("ConfigProvider");const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},wr),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:wr.hashed,cssVar:null==t?void 0:t.cssVar}),a=Tr();return Y(()=>{var r,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])});const s=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||s});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:u})},[o,i],(e,t)=>e.some((e,n)=>{const r=t[n];return!re(e,r,!0)}))}(S,y.theme,{prefixCls:Me("")});const De={csp:Ae,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||g,direction:u,space:d,splitter:f,virtual:p,popupMatchSelectWidth:null!=m?m:h,popupOverflow:v,getPrefixCls:Me,iconPrefixCls:Te,theme:Re,segmented:O,statistic:k,spin:E,calendar:j,carousel:$,cascader:P,collapse:N,typography:_,checkbox:I,descriptions:M,divider:T,drawer:A,skeleton:R,steps:D,image:L,input:X,textArea:Q,layout:q,list:z,mentions:B,modal:H,progress:F,result:W,slider:K,breadcrumb:U,menu:V,pagination:G,empty:Z,badge:J,radio:ee,rate:te,switch:ne,transfer:oe,avatar:ie,message:ae,tag:le,table:ce,card:se,tabs:ue,timeline:de,timePicker:fe,upload:pe,notification:he,tree:ve,colorPicker:ge,datePicker:be,rangePicker:ye,flex:xe,wave:Se,dropdown:Ce,warning:Oe,tour:ke,tooltip:Ee,popover:je,popconfirm:$e,floatButtonGroup:Pe,variant:Ne,inputNumber:_e,treeSelect:Ie};const Le=Object.assign({},y);Object.keys(De).forEach(e=>{void 0!==De[e]&&(Le[e]=De[e])}),_i.forEach(t=>{const n=e[t];n&&(Le[t]=n)}),void 0!==o&&(Le.button=Object.assign({autoInsertSpace:o},Le.button));const qe=Y(()=>Le,Le,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:ze}=n.useContext(me),Be=n.useMemo(()=>({prefixCls:Te,csp:Ae,layer:ze?"antd":void 0}),[Te,Ae,ze]);let He=n.createElement(n.Fragment,null,n.createElement(Si,{dropdownMatchSelectWidth:h}),t);const Fe=n.useMemo(()=>{var e,t,n,r;return cn((null===(e=bn.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=qe.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=qe.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})},[qe,null==l?void 0:l.validateMessages]);Object.keys(Fe).length>0&&(He=n.createElement(fn.Provider,{value:Fe},He)),c&&(He=n.createElement(On,{locale:c,_ANT_MARK__:"internalMark"},He)),(Te||Ae)&&(He=n.createElement(en.Provider,{value:Be},He)),s&&(He=n.createElement(Pr,{size:s},He)),He=n.createElement(wi,null,He);const We=n.useMemo(()=>{const e=Re||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=Ni(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?we(t):xr,l={};Object.entries(r||{}).forEach(([e,t])=>{const n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=we(n.algorithm)),delete n.algorithm),l[e]=n});const c=Object.assign(Object.assign({},ur),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})},[Re]);return S&&(He=n.createElement(Sr.Provider,{value:We},He)),qe.warning&&(He=n.createElement(un.Provider,{value:qe.warning},He)),void 0!==C&&(He=n.createElement(Er,{disabled:C},He)),n.createElement(x.Provider,{value:qe},He)},zi=e=>{const t=n.useContext(x),r=n.useContext(Cn);return n.createElement(qi,Object.assign({parentContext:t,legacyLocale:r},e))};zi.ConfigContext=x,zi.SizeContext=Nr,zi.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Ii=t),void 0!==n&&(Mi=n),"holderRender"in e&&(Ai=o),r&&(!function(e){return Object.keys(e).some(e=>e.endsWith("Color"))}(r)?Ti=r:Or(Ri(),r))},zi.useConfig=_r,Object.defineProperty(zi,"SizeContext",{get:()=>Nr});const Bi=zi;function Hi(e,t){this.v=e,this.k=t}function Fi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Fi=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){Fi(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},Fi(e,t,n,r)}function Wi(){ | |
| 101 | +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ | |
| 102 | +var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return Fi(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Fi(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Fi(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,Fi(d,"constructor",s),Fi(s,"constructor",c),c.displayName="GeneratorFunction",Fi(s,o,"GeneratorFunction"),Fi(d),Fi(d,o,"Generator"),Fi(d,r,function(){return this}),Fi(d,"toString",function(){return"[object Generator]"}),(Wi=function(){return{w:i,m:f}})()}function Ki(e,t){function n(r,o,i,a){try{var l=e[r](o),c=l.value;return c instanceof Hi?t.resolve(c.v).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):t.resolve(c).then(function(e){l.value=e,i(l)},function(e){return n("throw",e,i,a)})}catch(e){a(e)}}var r;this.next||(Fi(Ki.prototype),Fi(Ki.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Fi(this,"_invoke",function(e,o,i){function a(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(a,a):a()},!0)}function Ui(e,t,n,r,o){return new Ki(Wi().w(e,t,n,r),o||Promise)}function Vi(e,t,n,r,o){var i=Ui(e,t,n,r,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function Gi(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function Yi(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(O(e)+" is not iterable")}function Xi(){var e=Wi(),t=e.m(Xi),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,Yi(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(Xi=function(){return{wrap:function(t,n,r,o){return e.w(i(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new Hi(e,t)},AsyncIterator:Ki,async:function(e,t,n,o,a){return(r(t)?Ui:Vi)(i(e),t,n,o,a)},keys:Gi,values:Yi}})()}function Qi(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Zi(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Qi(i,r,o,a,l,"next",e)}function l(e){Qi(i,r,o,a,l,"throw",e)}a(void 0)})}}var Ji,ea=A({},Lr),ta=ea.version,na=ea.render,ra=ea.unmountComponentAtNode;try{Number((ta||"").split(".")[0])>=18&&(Ji=ea.createRoot)}catch(e){}function oa(e){var t=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===O(t)&&(t.usingClientEntryPoint=e)}var ia="__rc_react_root__";function aa(e,t){Ji?function(e,t){oa(!0);var n=t[ia]||Ji(t);oa(!1),n.render(e),t[ia]=n}(e,t):function(e,t){null==na||na(e,t)}(e,t)}function la(e){return ca.apply(this,arguments)}function ca(){return(ca=Zi(Xi().mark(function e(t){return Xi().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[ia])||void 0===e||e.unmount(),delete t[ia]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function sa(e){ra(e)}function ua(){return(ua=Zi(Xi().mark(function e(t){return Xi().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Ji){e.next=2;break}return e.abrupt("return",la(t));case 2:sa(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let da=(e,t)=>(aa(e,t),()=>function(e){return ua.apply(this,arguments)}(t));function fa(e){return e&&(da=e),da}const pa={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"};function ha(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function ma(e){return function(e){return ha(e)instanceof ShadowRoot}(e)?ha(e):null}function va(e){return"object"===O(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===O(e.icon)||"function"==typeof e.icon)}function ga(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}(n)]=r;return t},{})}function ba(e,t,r){return r?n.createElement(e.tag,A(A({key:t},ga(e.attrs)),r),(e.children||[]).map(function(n,r){return ba(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):n.createElement(e.tag,A({key:t},ga(e.attrs)),(e.children||[]).map(function(n,r){return ba(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function ya(e){return Tn(e)[0]}function xa(e){return e?Array.isArray(e)?e:[e]:[]}var wa=["icon","className","onClick","style","primaryColor","secondaryColor"],Sa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ca=function(e){var t,r,o,i,a,l,c=e.icon,s=e.className,u=e.onClick,d=e.style,f=e.primaryColor,p=e.secondaryColor,h=eo(e,wa),m=n.useRef(),v=Sa;if(f&&(v={primaryColor:f,secondaryColor:p||ya(f)}),t=m,r=(0,n.useContext)(en),o=r.csp,i=r.prefixCls,a=r.layer,l="\n.anticon {\n display: inline-flex;\n align-items: center;\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",i&&(l=l.replace(/anticon/g,i)),a&&(l="@layer ".concat(a," {\n").concat(l,"\n}")),(0,n.useEffect)(function(){var e=ma(t.current);G(l,"@ant-design-icons",{prepend:!a,csp:o,attachTo:e})},[]),function(e,t){ne(e,"[@ant-design/icons] ".concat(t))}(va(c),"icon should be icon definiton, but got ".concat(c)),!va(c))return null;var g=c;return g&&"function"==typeof g.icon&&(g=A(A({},g),{},{icon:g.icon(v.primaryColor,v.secondaryColor)})),ba(g.icon,"svg-".concat(g.name),A(A({className:s,onClick:u,style:d,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:m}))};Ca.displayName="IconReact",Ca.getTwoToneColors=function(){return A({},Sa)},Ca.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Sa.primaryColor=t,Sa.secondaryColor=n||ya(t),Sa.calculated=!!n};const Oa=Ca;function ka(e){var t=_(xa(e),2),n=t[0],r=t[1];return Oa.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Ea=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ka(Wn.primary);var ja=n.forwardRef(function(e,t){var r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=eo(e,Ea),d=n.useContext(en),f=d.prefixCls,p=void 0===f?"anticon":f,h=d.rootClassName,m=Rr()(h,p,E(E({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),v=l;void 0===v&&c&&(v=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=_(xa(s),2),y=b[0],x=b[1];return n.createElement("span",Ve({role:"img","aria-label":o.name},u,{ref:t,tabIndex:v,onClick:c,className:m}),n.createElement(Oa,{icon:o,primaryColor:y,secondaryColor:x,style:g}))});ja.displayName="AntdIcon",ja.getTwoToneColor=function(){var e=Oa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ja.setTwoToneColor=ka;const $a=ja;var Pa=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:pa}))}; | |
| 103 | +/** */const Na=n.forwardRef(Pa);const _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"};var Ia=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:_a}))}; | |
| 104 | +/** */const Ma=n.forwardRef(Ia);const Ta={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"};var Aa=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:Ta}))}; | |
| 105 | +/** */const Ra=n.forwardRef(Aa);const Da={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"};var La=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:Da}))}; | |
| 106 | +/** */const qa=n.forwardRef(La);const za={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"};var Ba=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:za}))}; | |
| 107 | +/** */const Ha=n.forwardRef(Ba);const Fa={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"};var Wa=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:Fa}))}; | |
| 108 | +/** */const Ka=n.forwardRef(Wa);var Ua={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>=Ua.F1&&t<=Ua.F12)return!1;switch(t){case Ua.ALT:case Ua.CAPS_LOCK:case Ua.CONTEXT_MENU:case Ua.CTRL:case Ua.DOWN:case Ua.END:case Ua.ESC:case Ua.HOME:case Ua.INSERT:case Ua.LEFT:case Ua.MAC_FF_META:case Ua.META:case Ua.NUMLOCK:case Ua.NUM_CENTER:case Ua.PAGE_DOWN:case Ua.PAGE_UP:case Ua.PAUSE:case Ua.PRINT_SCREEN:case Ua.RIGHT:case Ua.SHIFT:case Ua.UP:case Ua.WIN_KEY:case Ua.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ua.ZERO&&e<=Ua.NINE)return!0;if(e>=Ua.NUM_ZERO&&e<=Ua.NUM_MULTIPLY)return!0;if(e>=Ua.A&&e<=Ua.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Ua.SPACE:case Ua.QUESTION_MARK:case Ua.NUM_PLUS:case Ua.NUM_MINUS:case Ua.NUM_PERIOD:case Ua.NUM_DIVISION:case Ua.SEMICOLON:case Ua.DASH:case Ua.EQUALS:case Ua.COMMA:case Ua.PERIOD:case Ua.SLASH:case Ua.APOSTROPHE:case Ua.SINGLE_QUOTE:case Ua.OPEN_SQUARE_BRACKET:case Ua.BACKSLASH:case Ua.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Va=Ua;var Ga="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Ya(e,t){return 0===e.indexOf(t)}function Xa(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:A({},n);var r={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||Ya(n,"aria-"))||t.data&&Ya(n,"data-")||t.attr&&Ga.includes(n))&&(r[n]=e[n])}),r}var Qa=n.forwardRef(function(e,t){var r=e.prefixCls,o=e.style,i=e.className,a=e.duration,l=void 0===a?4.5:a,c=e.showProgress,s=e.pauseOnHover,u=void 0===s||s,d=e.eventKey,f=e.content,p=e.closable,h=e.closeIcon,m=void 0===h?"x":h,v=e.props,g=e.onClick,b=e.onNoticeClose,y=e.times,x=e.hovering,w=_(n.useState(!1),2),S=w[0],C=w[1],k=_(n.useState(0),2),j=k[0],$=k[1],P=_(n.useState(0),2),N=P[0],I=P[1],M=x||S,T=l>0&&c,A=function(){b(d)};n.useEffect(function(){if(!M&&l>0){var e=Date.now()-N,t=setTimeout(function(){A()},1e3*l-N);return function(){u&&clearTimeout(t),I(Date.now()-e)}}},[l,M,y]),n.useEffect(function(){if(!M&&T&&(u||0===N)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var r=e+N-t,o=Math.min(r/(1e3*l),1);$(100*o),o<1&&n()})}(),function(){u&&cancelAnimationFrame(e)}}},[l,N,M,T,y]);var R=n.useMemo(function(){return"object"===O(p)&&null!==p?p:p?{closeIcon:m}:{}},[p,m]),D=Xa(R,!0),L=100-(!j||j<0?0:j>100?100:j),q="".concat(r,"-notice");return n.createElement("div",Ve({},v,{ref:t,className:Rr()(q,i,E({},"".concat(q,"-closable"),p)),style:o,onMouseEnter:function(e){var t;C(!0),null==v||null===(t=v.onMouseEnter)||void 0===t||t.call(v,e)},onMouseLeave:function(e){var t;C(!1),null==v||null===(t=v.onMouseLeave)||void 0===t||t.call(v,e)},onClick:g}),n.createElement("div",{className:"".concat(q,"-content")},f),p&&n.createElement("a",Ve({tabIndex:0,className:"".concat(q,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Va.ENTER||A()},"aria-label":"Close"},D,{onClick:function(e){e.preventDefault(),e.stopPropagation(),A()}}),R.closeIcon),T&&n.createElement("progress",{className:"".concat(q,"-progress"),max:"100",value:L},L+"%"))});const Za=Qa;var Ja=n.createContext({});const el=function(e){var t=e.children,r=e.classNames;return n.createElement(Ja.Provider,{value:{classNames:r}},t)};const tl=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===O(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]};var nl=["className","style","classNames","styles"];const rl=function(e){var t=e.configList,r=e.placement,o=e.prefixCls,i=e.className,a=e.style,l=e.motion,c=e.onAllNoticeRemoved,s=e.onNoticeClose,u=e.stack,d=(0,n.useContext)(Ja).classNames,f=(0,n.useRef)({}),p=_((0,n.useState)(null),2),h=p[0],m=p[1],v=_((0,n.useState)([]),2),g=v[0],b=v[1],y=t.map(function(e){return{config:e,key:String(e.key)}}),x=_(tl(u),2),w=x[0],S=x[1],C=S.offset,O=S.threshold,k=S.gap,j=w&&(g.length>0||y.length<=O),$="function"==typeof l?l(r):l;return(0,n.useEffect)(function(){w&&g.length>1&&b(function(e){return e.filter(function(e){return y.some(function(t){var n=t.key;return e===n})})})},[g,y,w]),(0,n.useEffect)(function(){var e,t;w&&f.current[null===(e=y[y.length-1])||void 0===e?void 0:e.key]&&m(f.current[null===(t=y[y.length-1])||void 0===t?void 0:t.key])},[y,w]),n.createElement(ci,Ve({key:r,className:Rr()(o,"".concat(o,"-").concat(r),null==d?void 0:d.list,i,E(E({},"".concat(o,"-stack"),!!w),"".concat(o,"-stack-expanded"),j)),style:a,keys:y,motionAppear:!0},$,{onAllRemoved:function(){c(r)}}),function(e,t){var i=e.config,a=e.className,l=e.style,c=e.index,u=i,p=u.key,m=u.times,v=String(p),x=i,S=x.className,O=x.style,E=x.classNames,$=x.styles,P=eo(x,nl),N=y.findIndex(function(e){return e.key===v}),_={};if(w){var I=y.length-1-(N>-1?N:c-1),T="top"===r||"bottom"===r?"-50%":"0";if(I>0){var R,D,L;_.height=j?null===(R=f.current[v])||void 0===R?void 0:R.offsetHeight:null==h?void 0:h.offsetHeight;for(var q=0,z=0;z<I;z++){var B;q+=(null===(B=f.current[y[y.length-1-z].key])||void 0===B?void 0:B.offsetHeight)+k}var H=(j?q:I*C)*(r.startsWith("top")?1:-1),F=!j&&null!=h&&h.offsetWidth&&null!==(D=f.current[v])&&void 0!==D&&D.offsetWidth?((null==h?void 0:h.offsetWidth)-2*C*(I<3?I:3))/(null===(L=f.current[v])||void 0===L?void 0:L.offsetWidth):1;_.transform="translate3d(".concat(T,", ").concat(H,"px, 0) scaleX(").concat(F,")")}else _.transform="translate3d(".concat(T,", 0, 0)")}return n.createElement("div",{ref:t,className:Rr()("".concat(o,"-notice-wrapper"),a,null==E?void 0:E.wrapper),style:A(A(A({},l),_),null==$?void 0:$.wrapper),onMouseEnter:function(){return b(function(e){return e.includes(v)?e:[].concat(M(e),[v])})},onMouseLeave:function(){return b(function(e){return e.filter(function(e){return e!==v})})}},n.createElement(Za,Ve({},P,{ref:function(e){N>-1?f.current[v]=e:delete f.current[v]},prefixCls:o,classNames:E,styles:$,className:Rr()(S,null==d?void 0:d.notice),style:O,times:m,key:p,eventKey:p,onNoticeClose:s,hovering:w&&g.length>0})))})};var ol=n.forwardRef(function(e,t){var r=e.prefixCls,o=void 0===r?"rc-notification":r,i=e.container,a=e.motion,l=e.maxCount,c=e.className,s=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=_(n.useState([]),2),h=p[0],m=p[1],v=function(e){var t,n=h.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),m(function(t){return t.filter(function(t){return t.key!==e})})};n.useImperativeHandle(t,function(){return{open:function(e){m(function(t){var n,r=M(t),o=r.findIndex(function(t){return t.key===e.key}),i=A({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return l>0&&r.length>l&&(r=r.slice(-l)),r})},close:function(e){v(e)},destroy:function(){m([])}}});var g=_(n.useState({}),2),b=g[0],y=g[1];n.useEffect(function(){var e={};h.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(b).forEach(function(t){e[t]=e[t]||[]}),y(e)},[h]);var x=function(e){y(function(t){var n=A({},t);return(n[e]||[]).length||delete n[e],n})},w=n.useRef(!1);if(n.useEffect(function(){Object.keys(b).length>0?w.current=!0:w.current&&(null==u||u(),w.current=!1)},[b]),!i)return null;var S=Object.keys(b);return(0,Dr.createPortal)(n.createElement(n.Fragment,null,S.map(function(e){var t=b[e],r=n.createElement(rl,{key:e,configList:t,placement:e,prefixCls:o,className:null==c?void 0:c(e),style:null==s?void 0:s(e),motion:a,onNoticeClose:v,onAllNoticeRemoved:x,stack:d});return f?f(r,{prefixCls:o,key:e}):r})),i)});const il=ol;var al=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],ll=function(){return document.body},cl=0;function sl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,r=void 0===t?ll:t,o=e.motion,i=e.prefixCls,a=e.maxCount,l=e.className,c=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=eo(e,al),p=_(n.useState(),2),h=p[0],m=p[1],v=n.useRef(),g=n.createElement(il,{container:h,ref:v,prefixCls:i,motion:o,maxCount:a,className:l,style:c,onAllRemoved:s,stack:u,renderNotifications:d}),b=_(n.useState([]),2),y=b[0],x=b[1],w=fo(function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&Object.keys(t).forEach(function(n){var r=t[n];void 0!==r&&(e[n]=r)})}),e}(f,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(cl),cl+=1),x(function(e){return[].concat(M(e),[{type:"open",config:t}])})}),S=n.useMemo(function(){return{open:w,close:function(e){x(function(t){return[].concat(M(t),[{type:"close",key:e}])})},destroy:function(){x(function(e){return[].concat(M(e),[{type:"destroy"}])})}}},[]);return n.useEffect(function(){m(r())}),n.useEffect(function(){var e,t;v.current&&y.length&&(y.forEach(function(e){switch(e.type){case"open":v.current.open(e.config);break;case"close":v.current.close(e.key);break;case"destroy":v.current.destroy()}}),x(function(n){return e===n&&t||(e=n,t=n.filter(function(e){return!y.includes(e)})),t}))},[y]),[S,g]}const ul=e=>{const[,,,,t]=yi();return t?`${e}-css-var`:""};const dl=n.createContext(void 0),fl=100,pl=1e3,hl={Modal:fl,Drawer:fl,Popover:fl,Popconfirm:fl,Tooltip:fl,Tour:fl,FloatButton:fl},ml={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const vl=(e,t)=>{const[,r]=yi(),o=n.useContext(dl),i=function(e){return e in hl}(e);let a;if(void 0!==t)a=[t,t];else{let n=null!=o?o:0;n+=i?(o?0:r.zIndexPopupBase)+hl[e]:ml[e],a=[void 0===o?t:n,n]}return a};const gl=ae(function e(){oe(this,e)});var bl="CALC_UNIT",yl=new RegExp(bl,"g");function xl(e){return"number"==typeof e?"".concat(e).concat(bl):e}var wl=function(e){io(n,e);var t=so(n);function n(e,r){var o;oe(this,n),E(co(o=t.call(this)),"result",""),E(co(o),"unitlessCssVar",void 0),E(co(o),"lowPriority",void 0);var i=O(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=xl(e):"string"===i&&(o.result=e),o}return ae(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(xl(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(xl(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(yl,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(gl);const Sl=function(e){io(n,e);var t=so(n);function n(e){var r;return oe(this,n),E(co(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return ae(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}(gl);const Cl=function(e,t){var n="css"===e?wl:Sl;return function(e){return new n(e,t)}};const Ol=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};const kl=function(e,t,n,r){var o=A({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t,n=_(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))});var i=A(A({},n),o);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i};var El="undefined"!=typeof CSSINJS_STATISTIC,jl=!0;function $l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!El)return Object.assign.apply(Object,[{}].concat(t));jl=!1;var r={};return t.forEach(function(e){"object"===O(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),jl=!0,r}var Pl={};function Nl(){}const _l=function(e){var t,n=e,r=Nl;return El&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;jl&&(null===(r=t)||void 0===r||r.add(n));return e[n]}}),r=function(e,n){var r;Pl[e]={global:Array.from(t),component:A(A({},null===(r=Pl[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}};const Il=function(e,t,n){var r;return"function"==typeof n?n($l(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}};const Ml=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<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return $e(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return $e(e)}).join(","),")")}}};var Tl=function(){function e(){oe(this,e),E(this,"map",new Map),E(this,"objectIDMap",new WeakMap),E(this,"nextID",0),E(this,"lastAccessBeat",new Map),E(this,"accessBeat",0)}return ae(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this,n=e.map(function(e){return e&&"object"===O(e)?"obj_".concat(t.getObjectID(e)):"".concat(O(e),"_").concat(e)});return n.join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}(),Al=new Tl;const Rl=function(e,t){return n.useMemo(function(){var n=Al.get(t);if(n)return n;var r=e();return Al.set(t,r),r},t)};const Dl=function(){return{}};const Ll=function(e){var t=e.useCSP,r=void 0===t?Dl:t,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function s(t,n,c){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=_(u,1)[0],f=u.join("-"),p=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,u=o(),h=u.theme,m=u.realToken,v=u.hashId,g=u.token,b=u.cssVar,y=i(),x=y.rootPrefixCls,w=y.iconPrefixCls,S=r(),C=b?"css":"js",k=Rl(function(){var e=new Set;return b&&Object.keys(s.unitless||{}).forEach(function(t){e.add(Ne(t,b.prefix)),e.add(Ne(t,Ol(d,b.prefix)))}),Cl(C,e)},[C,d,null==b?void 0:b.prefix]),E=Ml(C),j=E.max,$=E.min,P={theme:h,token:g,hashId:v,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:p,order:s.order||-999};"function"==typeof a&&Vt(A(A({},P),{},{clientOnly:!1,path:["Shared",x]}),function(){return a(g,{prefix:{rootPrefixCls:x,iconPrefixCls:w},csp:S})});var N=Vt(A(A({},P),{},{path:[f,e,w]}),function(){if(!1===s.injectStyle)return[];var r=_l(g),o=r.token,i=r.flush,a=Il(d,m,c),u=".".concat(e),f=kl(d,m,a,{deprecatedTokens:s.deprecatedTokens});b&&a&&"object"===O(a)&&Object.keys(a).forEach(function(e){a[e]="var(".concat(Ne(e,Ol(d,b.prefix)),")")});var p=$l(o,{componentCls:u,prefixCls:e,iconCls:".".concat(w),antCls:".".concat(x),calc:k,max:j,min:$},b?a:f),h=n(p,{hashId:v,prefixCls:e,rootPrefixCls:x,iconPrefixCls:w});i(d,f);var y="function"==typeof l?l(p,e,t,s.resetFont):null;return[!1===s.resetStyle?null:y,h]});return[N,v]}}return{genStyleHooks:function(e,t,r,i){var a=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=A(A({},"function"==typeof c?c(e):{}),{},E({},l("zIndexPopup"),!0));Object.keys(u).forEach(function(e){d[l(e)]=u[e]});var f=A(A({},i),{},{unitless:d,prefixToken:l}),p=s(e,t,r,f),h=function(e,t,r){var i=r.unitless,a=r.injectStyle,l=void 0===a||a,c=r.prefixToken,s=r.ignore,u=function(n){var a=n.rootCls,l=n.cssVar,u=void 0===l?{}:l,d=o().realToken;return Yt({path:[e],prefix:u.prefix,key:u.key,unitless:i,ignore:s,token:d,scope:a},function(){var n=Il(e,d,t),o=kl(e,d,n,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(n).forEach(function(e){o[c(e)]=o[e],delete o[e]}),o}),null},d=function(t){var r=o().cssVar;return[function(o){return l&&r?n.createElement(n.Fragment,null,n.createElement(u,{rootCls:t,cssVar:r,component:e}),o):o},null==r?void 0:r.key]};return d}(a,r,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=_(p(e,t),2)[1],r=_(h(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,A({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:s}},{genStyleHooks:ql,genComponentStyleHook:zl,genSubStyleComponent:Bl}=Ll({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,n.useContext)(x);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=yi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=(0,n.useContext)(x);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;const r=(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, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[r,{"&":r},ji(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:b)]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>mi}),Hl=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Zt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Zt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Zt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new Zt("antNotificationLeftFadeIn",{"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:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${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:c}}}}},Fl=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Wl={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Kl=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${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)},Ul=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},Vl=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},Kl(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Ul(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"}}}},Fl.map(t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Wl[t]]:{value:0,_skip_check_:!0}}}}})(e,t)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{}))},Gl=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:s,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,notificationProgressBg:m,notificationProgressHeight:v,fontSize:g,lineHeight:b,width:y,notificationIconSize:x,colorText:w}=e,S=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[S]:{padding:p,width:y,maxWidth:`calc(100vw - ${$e(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:g,color:w},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:o},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:g},[`${S}-icon`]:{position:"absolute",fontSize:x,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:s},[`&-error${t}`]:{color:u}},[`${S}-close`]:Object.assign({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",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Ei(e)),[`${S}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${$e(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:m},"&::-webkit-progress-value":{borderRadius:a,background:m}},[`${S}-actions`]:{float:"right",marginTop:e.marginSM}}},Yl=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new Zt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Oi(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:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,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",[`${a}-actions`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Gl(e))}}]},Xl=e=>({zIndexPopup:e.zIndexPopupBase+pl+50,width:384}),Ql=e=>{const t=e.paddingMD,n=e.paddingLG;return $l(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:`${$e(e.paddingMD)} ${$e(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Zl=ql("Notification",e=>{const t=Ql(e);return[Yl(t),Hl(t),Vl(t)]},Xl),Jl=Bl(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=Ql(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Gl(n)),{width:n.width,maxWidth:`calc(100vw - ${$e(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Xl);var ec=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function tc(e,t){return null===t||!1===t?null:t||n.createElement(Ra,{className:`${e}-close-icon`})}const nc={success:Na,info:Ha,error:Ma,warning:qa},rc=e=>{const{prefixCls:t,icon:r,type:o,message:i,description:a,actions:l,role:c="alert"}=e;let s=null;return r?s=n.createElement("span",{className:`${t}-icon`},r):o&&(s=n.createElement(nc[o]||null,{className:Rr()(`${t}-icon`,`${t}-icon-${o}`)})),n.createElement("div",{className:Rr()({[`${t}-with-icon`]:s}),role:c},s,n.createElement("div",{className:`${t}-message`},i),n.createElement("div",{className:`${t}-description`},a),l&&n.createElement("div",{className:`${t}-actions`},l))},oc=e=>{const{prefixCls:t,className:r,icon:o,type:i,message:a,description:l,btn:c,actions:s,closable:u=!0,closeIcon:d,className:f}=e,p=ec(e,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:h}=n.useContext(x),m=null!=s?s:c;const v=t||h("notification"),g=`${v}-notice`,b=ul(v),[y,w,S]=Zl(v,b);return y(n.createElement("div",{className:Rr()(`${g}-pure-panel`,w,r,S,b)},n.createElement(Jl,{prefixCls:v}),n.createElement(Za,Object.assign({},p,{prefixCls:v,eventKey:"pure",duration:null,closable:u,className:Rr()({notificationClassName:f}),closeIcon:tc(v,d),content:n.createElement(rc,{prefixCls:g,icon:o,type:i,message:a,description:l,actions:m})}))))};var ic=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ac=({children:e,prefixCls:t})=>{const r=ul(t),[o,i,a]=Zl(t,r);return o(n.createElement(el,{classNames:{list:Rr()(i,a,r)}},e))},lc=(e,{prefixCls:t,key:r})=>n.createElement(ac,{prefixCls:t,key:r},e),cc=n.forwardRef((e,t)=>{const{top:r,bottom:o,prefixCls:i,getContainer:a,maxCount:l,rtl:c,onAllRemoved:s,stack:u,duration:d,pauseOnHover:f=!0,showProgress:p}=e,{getPrefixCls:h,getPopupContainer:m,notification:v,direction:g}=(0,n.useContext)(x),[,b]=yi(),y=i||h("notification"),[w,S]=sl({prefixCls:y,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!=r?r:24,null!=o?o:24),className:()=>Rr()({[`${y}-rtl`]:null!=c?c:"rtl"===g}),motion:()=>function(e){return{motionName:`${e}-fade`}}(y),closable:!0,closeIcon:tc(y),duration:null!=d?d:4.5,getContainer:()=>(null==a?void 0:a())||(null==m?void 0:m())||document.body,maxCount:l,pauseOnHover:f,showProgress:p,onAllRemoved:s,renderNotifications:lc,stack:!1!==u&&{threshold:"object"==typeof u?null==u?void 0:u.threshold:void 0,offset:8,gap:b.margin}});return n.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:y,notification:v})),S});function sc(e){const t=n.useRef(null),r=(dn("Notification"),n.useMemo(()=>{const r=r=>{var o;if(!t.current)return;const{open:i,prefixCls:a,notification:l}=t.current,c=`${a}-notice`,{message:s,description:u,icon:d,type:f,btn:p,actions:h,className:m,style:v,role:g="alert",closeIcon:b,closable:y}=r,x=ic(r,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]);const w=null!=h?h:p,S=tc(c,function(e,t,n){return void 0!==e?e:void 0!==(null==t?void 0:t.closeIcon)?t.closeIcon:null==n?void 0:n.closeIcon}(b,e,l));return i(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:"topRight"},x),{content:n.createElement(rc,{prefixCls:c,icon:d,type:f,message:s,description:u,actions:w,role:g}),className:Rr()(f&&`${c}-${f}`,m,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),v),closeIcon:S,closable:null!=y?y:!!S}))},o={open:r,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=>r(Object.assign(Object.assign({},t),{type:e}))}),o},[]));return[r,n.createElement(cc,Object.assign({key:"notification-holder"},e,{ref:t}))]}let uc=null,dc=e=>e(),fc=[],pc={};function hc(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=pc,l=(null==e?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const mc=n.forwardRef((e,t)=>{const{notificationConfig:r,sync:o}=e,{getPrefixCls:i}=(0,n.useContext)(x),a=pc.prefixCls||i("notification"),l=(0,n.useContext)(v),[c,s]=sc(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),l.notification));return n.useEffect(o,[]),n.useImperativeHandle(t,()=>{const e=Object.assign({},c);return Object.keys(e).forEach(t=>{e[t]=(...e)=>(o(),c[t].apply(c,e))}),{instance:e,sync:o}}),s}),vc=n.forwardRef((e,t)=>{const[r,o]=n.useState(hc),i=()=>{o(hc)};n.useEffect(i,[]);const a=Li(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=n.createElement(mc,{ref:t,sync:i,notificationConfig:r});return n.createElement(Bi,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)});function gc(){if(!uc){const e=document.createDocumentFragment(),t={fragment:e};return uc=t,void dc(()=>{fa()(n.createElement(vc,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,gc())})}}),e)})}uc.instance&&(fc.forEach(e=>{switch(e.type){case"open":dc(()=>{uc.instance.open(Object.assign(Object.assign({},pc),e.config))});break;case"destroy":dc(()=>{null==uc||uc.instance.destroy(e.key)})}}),fc=[])}function bc(e){Li();fc.push({type:"open",config:e}),gc()}const yc={open:bc,destroy:e=>{fc.push({type:"destroy",key:e}),gc()},config:function(e){pc=Object.assign(Object.assign({},pc),e),dc(()=>{var e;null===(e=null==uc?void 0:uc.sync)||void 0===e||e.call(uc)})},useNotification:function(e){return sc(e)},_InternalPanelDoNotUseOrYouWillBeFired:oc},xc=yc;["success","info","warning","error"].forEach(e=>{xc[e]=t=>bc(Object.assign(Object.assign({},t),{type:e}))});const wc=xc;function Sc(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}const Cc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function Oc(e){return e&&n.isValidElement(e)&&e.type===n.Fragment}const kc=(e,t,r)=>n.isValidElement(e)?n.cloneElement(e,"function"==typeof r?r(e.props||{}):r):t;function Ec(e,t){return kc(e,e,t)}const jc=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 ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},$c=zl("Wave",e=>[jc(e)]),Pc=`${g}-wave-target`;function Nc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function _c(e){return Number.isNaN(e)?0:e}const Ic=e=>{const{className:t,target:r,component:o,registerUnmount:i}=e,a=n.useRef(null),l=n.useRef(null);n.useEffect(()=>{l.current=i()},[]);const[c,s]=n.useState(null),[u,d]=n.useState([]),[f,p]=n.useState(0),[h,m]=n.useState(0),[v,g]=n.useState(0),[b,y]=n.useState(0),[x,w]=n.useState(!1),S={left:f,top:h,width:v,height:b,borderRadius:u.map(e=>`${e}px`).join(" ")};function C(){const e=getComputedStyle(r);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Nc(t)?t:Nc(n)?n:Nc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;p(t?r.offsetLeft:_c(-parseFloat(n))),m(t?r.offsetTop:_c(-parseFloat(o))),g(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;d([i,a,c,l].map(e=>_c(parseFloat(e))))}if(c&&(S["--wave-color"]=c),n.useEffect(()=>{if(r){const e=Ko(()=>{C(),w(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(C),t.observe(r)),()=>{Ko.cancel(e),null==t||t.disconnect()}}},[]),!x)return null;const O=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(Pc));return n.createElement(si,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;null===(r=l.current)||void 0===r||r.call(l).then(()=>{null==e||e.remove()})}return!1}},({className:e},r)=>n.createElement("div",{ref:Yr(a,r),className:Rr()(t,e,{"wave-quick":O}),style:S}))},Mc=(e,t)=>{var r;const{component:o}=t;if("Checkbox"===o&&!(null===(r=e.querySelector("input"))||void 0===r?void 0:r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild);const a=fa();let l=null;l=a(n.createElement(Ic,Object.assign({},t,{target:e,registerUnmount:function(){return l}})),i)},Tc=(e,t,r)=>{const{wave:o}=n.useContext(x),[,i,a]=yi(),l=fo(n=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${Pc}`)||l,{showEffect:s}=o||{};(s||Mc)(c,{className:t,token:i,component:r,event:n,hashId:a})}),c=n.useRef(null);return e=>{Ko.cancel(c.current),c.current=Ko(()=>{l(e)})}};const Ac=e=>{const{children:t,disabled:r,component:o}=e,{getPrefixCls:i}=(0,n.useContext)(x),a=(0,n.useRef)(null),l=i("wave"),[,c]=$c(l),s=Tc(a,Rr()(l,c),o);if(n.useEffect(()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!Cc(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[r]),!n.isValidElement(t))return null!=t?t:null;return Ec(t,{ref:Qr(t)?Yr(Jr(t),a):a})},Rc=e=>{const t=n.useContext(Nr);return n.useMemo(()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t,[e,t])};function Dc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return n.Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?r=r.concat(Dc(e)):Ur(e)&&e.props?r=r.concat(Dc(e.props.children,t)):r.push(e))}),r}const Lc=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},qc=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},zc=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Bc=ql("Space",e=>{const t=$l(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[qc(t),zc(t),Lc(t)]},()=>({}),{resetStyle:!1});var Hc=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Fc=n.createContext(null),Wc=(e,t)=>{const r=n.useContext(Fc),o=n.useMemo(()=>{if(!r)return"";const{compactDirection:n,isFirstItem:o,isLastItem:i}=r,a="vertical"===n?"-vertical-":"-";return Rr()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})},[e,t,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:o}},Kc=e=>{const{children:t}=e;return n.createElement(Fc.Provider,{value:null},t)},Uc=e=>{const{children:t}=e,r=Hc(e,["children"]);return n.createElement(Fc.Provider,{value:n.useMemo(()=>r,[r])},t)},Vc=e=>{const{getPrefixCls:t,direction:r}=n.useContext(x),{size:o,direction:i,block:a,prefixCls:l,className:c,rootClassName:s,children:u}=e,d=Hc(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Rc(e=>null!=o?o:e),p=t("space-compact",l),[h,m]=Bc(p),v=Rr()(p,m,{[`${p}-rtl`]:"rtl"===r,[`${p}-block`]:a,[`${p}-vertical`]:"vertical"===i},c,s),g=n.useContext(Fc),b=Dc(u),y=n.useMemo(()=>b.map((e,t)=>{const r=(null==e?void 0:e.key)||`${p}-item-${t}`;return n.createElement(Uc,{key:r,compactSize:f,compactDirection:i,isFirstItem:0===t&&(!g||(null==g?void 0:g.isFirstItem)),isLastItem:t===b.length-1&&(!g||(null==g?void 0:g.isLastItem))},e)}),[o,b,g]);return 0===b.length?null:h(n.createElement("div",Object.assign({className:v},d),y))};var Gc=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Yc=n.createContext(void 0),Xc=e=>{const{getPrefixCls:t,direction:r}=n.useContext(x),{prefixCls:o,size:i,className:a}=e,l=Gc(e,["prefixCls","size","className"]),c=t("btn-group",o),[,,s]=yi(),u=n.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]);const d=Rr()(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===r},a,s);return n.createElement(Yc.Provider,{value:i},n.createElement("div",Object.assign({},l,{className:d})))},Qc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Zc=/^[\u4E00-\u9FA5]{2}$/,Jc=Zc.test.bind(Zc);function es(e){return"danger"===e?{danger:!0}:{type:e}}function ts(e){return"string"==typeof e}function ns(e){return"text"===e||"link"===e}function rs(e,t){let r=!1;const o=[];return n.Children.forEach(e,e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n}),n.Children.map(o,e=>function(e,t){if(null==e)return;const r=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&ts(e.type)&&Jc(e.props.children)?Ec(e,{children:e.props.children.split("").join(r)}):ts(e)?Jc(e)?n.createElement("span",null,e.split("").join(r)):n.createElement("span",null,e):Oc(e)?n.createElement("span",null,e):e}(e,t))}["default","primary","danger"].concat(M(Qc));const os=(0,n.forwardRef)((e,t)=>{const{className:r,style:o,children:i,prefixCls:a}=e,l=Rr()(`${a}-icon`,r);return n.createElement("span",{ref:t,className:l,style:o},i)}),is=os,as=(0,n.forwardRef)((e,t)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=e,l=Rr()(`${r}-loading-icon`,o);return n.createElement(is,{prefixCls:r,className:l,style:i,ref:t},n.createElement(Ka,{className:a}))}),ls=()=>({width:0,opacity:0,transform:"scale(0)"}),cs=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ss=e=>{const{prefixCls:t,loading:r,existIcon:o,className:i,style:a,mount:l}=e,c=!!r;return o?n.createElement(as,{prefixCls:t,className:i,style:a}):n.createElement(si,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:ls,onAppearActive:cs,onEnterStart:ls,onEnterActive:cs,onLeaveStart:cs,onLeaveActive:ls},({className:e,style:r},o)=>{const l=Object.assign(Object.assign({},a),r);return n.createElement(as,{prefixCls:t,className:Rr()(i,e),style:l,ref:o})})},us=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ds=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},us(`${t}-primary`,o),us(`${t}-danger`,i)]}};var fs=["b"],ps=["v"],hs=function(e){return Math.round(Number(e||0))},ms=function(e){io(n,e);var t=so(n);function n(e){return oe(this,n),t.call(this,function(e){if(e instanceof Pn)return e;if(e&&"object"===O(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return A(A({},eo(t,fs)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return ae(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=hs(100*e.s),n=hs(100*e.b),r=hs(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return A(A({},eo(e,ps)),{},{b:t,a:this.a})}}]),n}(Pn),vs=function(e){return e instanceof ms?e:new ms(e)},gs=vs("#1677ff"),bs=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),l=a.width,c=a.height,s=n.current.getBoundingClientRect(),u=s.width/2,d=s.height/2,f=(t.x+u)/l,p=1-(t.y+d)/c,h=o.toHsb(),m=f,v=(t.x+u)/l*360;if(i)switch(i){case"hue":return vs(A(A({},h),{},{h:v<=0?0:v}));case"alpha":return vs(A(A({},h),{},{a:m<=0?0:m}))}return vs({h:h.h,s:f<=0?0:f,b:p>=1?1:p,a:h.a})},ys=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}};const xs=function(e){var t=e.color,r=e.prefixCls,o=e.className,i=e.style,a=e.onClick,l="".concat(r,"-color-block");return n.createElement("div",{className:Rr()(l,o),style:i,onClick:a},n.createElement("div",{className:"".concat(l,"-inner"),style:{background:t}}))};const ws=function(e){var t=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,l=e.calculate,c=e.color,s=e.disabledDrag,u=_((0,n.useState)({x:0,y:0}),2),d=u[0],f=u[1],p=(0,n.useRef)(null),h=(0,n.useRef)(null);(0,n.useEffect)(function(){f(l())},[c]),(0,n.useEffect)(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null}},[]);var m=function(e){var n=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=n.pageX,l=n.pageY,c=r.current.getBoundingClientRect(),s=c.x,u=c.y,f=c.width,p=c.height,h=t.current.getBoundingClientRect(),m=h.width,v=h.height,g=m/2,b=v/2,y=Math.max(0,Math.min(a-s,f))-g,x=Math.max(0,Math.min(l-u,p))-b,w={x:y,y:"x"===o?d.y:x};if(0===m&&0===v||m!==v)return!1;null==i||i(w)},v=function(e){e.preventDefault(),m(e)},g=function(e){e.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null,null==a||a()};return[d,function(e){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),s||(m(e),document.addEventListener("mousemove",v),document.addEventListener("mouseup",g),document.addEventListener("touchmove",v),document.addEventListener("touchend",g),p.current=v,h.current=g)}]};const Ss=function(e){var t=e.size,r=void 0===t?"default":t,o=e.color,i=e.prefixCls;return n.createElement("div",{className:Rr()("".concat(i,"-handler"),E({},"".concat(i,"-handler-sm"),"small"===r)),style:{backgroundColor:o}})};const Cs=function(e){var t=e.children,r=e.style,o=e.prefixCls;return n.createElement("div",{className:"".concat(o,"-palette"),style:A({position:"relative"},r)},t)};const Os=(0,n.forwardRef)(function(e,t){var r=e.children,o=e.x,i=e.y;return n.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(o,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)});const ks=function(e){var t=e.color,r=e.onChange,o=e.prefixCls,i=e.onChangeComplete,a=e.disabled,l=(0,n.useRef)(),c=(0,n.useRef)(),s=(0,n.useRef)(t),u=fo(function(e){var n=bs({offset:e,targetRef:c,containerRef:l,color:t});s.current=n,r(n)}),d=_(ws({color:t,containerRef:l,targetRef:c,calculate:function(){return ys(t)},onDragChange:u,onDragChangeComplete:function(){return null==i?void 0:i(s.current)},disabledDrag:a}),2),f=d[0],p=d[1];return n.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:p,onTouchStart:p},n.createElement(Cs,{prefixCls:o},n.createElement(Os,{x:f.x,y:f.y,ref:c},n.createElement(Ss,{color:t.toRgbString(),prefixCls:o})),n.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))};const Es=function(e,t){var r=_(mo(e,{value:t}),2),o=r[0],i=r[1];return[(0,n.useMemo)(function(){return vs(o)},[o]),i]};const js=function(e){var t=e.colors,r=e.children,o=e.direction,i=void 0===o?"to right":o,a=e.type,l=e.prefixCls,c=(0,n.useMemo)(function(){return t.map(function(e,n){var r=vs(e);return"alpha"===a&&n===t.length-1&&(r=new ms(r.setA(1))),r.toRgbString()}).join(",")},[t,a]);return n.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(c,")")}},r)};const $s=function(e){var t=e.prefixCls,r=e.colors,o=e.disabled,i=e.onChange,a=e.onChangeComplete,l=e.color,c=e.type,s=(0,n.useRef)(),u=(0,n.useRef)(),d=(0,n.useRef)(l),f=function(e){return"hue"===c?e.getHue():100*e.a},p=fo(function(e){var t=bs({offset:e,targetRef:u,containerRef:s,color:l,type:c});d.current=t,i(f(t))}),h=_(ws({color:l,targetRef:u,containerRef:s,calculate:function(){return ys(l,c)},onDragChange:p,onDragChangeComplete:function(){a(f(d.current))},direction:"x",disabledDrag:o}),2),m=h[0],v=h[1],g=n.useMemo(function(){if("hue"===c){var e=l.toHsb();return e.s=1,e.b=1,e.a=1,new ms(e)}return l},[l,c]),b=n.useMemo(function(){return r.map(function(e){return"".concat(e.color," ").concat(e.percent,"%")})},[r]);return n.createElement("div",{ref:s,className:Rr()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(c)),onMouseDown:v,onTouchStart:v},n.createElement(Cs,{prefixCls:t},n.createElement(Os,{x:m.x,y:m.y,ref:u},n.createElement(Ss,{size:"small",color:g.toHexString(),prefixCls:t})),n.createElement(js,{colors:b,type:c,prefixCls:t})))};var Ps=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],Ns=(0,n.forwardRef)(function(e,t){var r=e.value,o=e.defaultValue,i=e.prefixCls,a=void 0===i?"rc-color-picker":i,l=e.onChange,c=e.onChangeComplete,s=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,p=void 0!==f&&f,h=e.disabled,m=void 0!==h&&h,v=function(e){return n.useMemo(function(){return[(e||{}).slider||$s]},[e])}(e.components),g=_(v,1)[0],b=_(Es(o||gs,r),2),y=b[0],x=b[1],w=(0,n.useMemo)(function(){return y.setA(1).toRgbString()},[y]),S=function(e,t){r||x(e),null==l||l(e,t)},C=function(e){return new ms(y.setHue(e))},O=function(e){return new ms(y.setA(e/100))},k=Rr()("".concat(a,"-panel"),s,E({},"".concat(a,"-panel-disabled"),m)),j={prefixCls:a,disabled:m,color:y},$=n.createElement(n.Fragment,null,n.createElement(ks,Ve({onChange:S},j,{onChangeComplete:c})),n.createElement("div",{className:"".concat(a,"-slider-container")},n.createElement("div",{className:Rr()("".concat(a,"-slider-group"),E({},"".concat(a,"-slider-group-disabled-alpha"),p))},n.createElement(g,Ve({},j,{type:"hue",colors:Ps,min:0,max:359,value:y.getHue(),onChange:function(e){S(C(e),{type:"hue",value:e})},onChangeComplete:function(e){c&&c(C(e))}})),!p&&n.createElement(g,Ve({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:w}],min:0,max:100,value:100*y.a,onChange:function(e){S(O(e),{type:"alpha",value:e})},onChangeComplete:function(e){c&&c(O(e))}}))),n.createElement(xs,{color:y.toRgbString(),prefixCls:a})));return n.createElement("div",{className:k,style:u,ref:t},"function"==typeof d?d($):$)});const _s=Ns,Is=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"";let Ms=function(){return ae(function e(t){var n;if(oe(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new ms(this.colors[0].color.metaColor)):this.metaColor=new ms(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return((e,t)=>e?Is(e,t):"")(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}])}();const Ts={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"};var As=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:Ts}))}; | |
| 109 | +/** */const Rs=n.forwardRef(As);var Ds=n.forwardRef(function(e,t){var r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,l=e.children,c=e.isActive,s=e.role,u=e.classNames,d=e.styles,f=_(n.useState(c||o),2),p=f[0],h=f[1];return n.useEffect(function(){(o||c)&&h(!0)},[o,c]),p?n.createElement("div",{ref:t,className:Rr()("".concat(r,"-content"),E(E({},"".concat(r,"-content-active"),c),"".concat(r,"-content-inactive"),!c),i),style:a,role:s},n.createElement("div",{className:Rr()("".concat(r,"-content-box"),null==u?void 0:u.body),style:null==d?void 0:d.body},l)):null});Ds.displayName="PanelContent";const Ls=Ds;var qs=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],zs=n.forwardRef(function(e,t){var r=e.showArrow,o=void 0===r||r,i=e.headerClass,a=e.isActive,l=e.onItemClick,c=e.forceRender,s=e.className,u=e.classNames,d=void 0===u?{}:u,f=e.styles,p=void 0===f?{}:f,h=e.prefixCls,m=e.collapsible,v=e.accordion,g=e.panelKey,b=e.extra,y=e.header,x=e.expandIcon,w=e.openMotion,S=e.destroyInactivePanel,C=e.children,O=eo(e,qs),k="disabled"===m,j=null!=b&&"boolean"!=typeof b,$=E(E(E({onClick:function(){null==l||l(g)},onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==Va.ENTER&&e.which!==Va.ENTER||null==l||l(g)},role:v?"tab":"button"},"aria-expanded",a),"aria-disabled",k),"tabIndex",k?-1:0),P="function"==typeof x?x(e):n.createElement("i",{className:"arrow"}),N=P&&n.createElement("div",Ve({className:"".concat(h,"-expand-icon")},["header","icon"].includes(m)?$:{}),P),_=Rr()("".concat(h,"-item"),E(E({},"".concat(h,"-item-active"),a),"".concat(h,"-item-disabled"),k),s),I=A({className:Rr()(i,"".concat(h,"-header"),E({},"".concat(h,"-collapsible-").concat(m),!!m),d.header),style:p.header},["header","icon"].includes(m)?{}:$);return n.createElement("div",Ve({},O,{ref:t,className:_}),n.createElement("div",I,o&&N,n.createElement("span",Ve({className:"".concat(h,"-header-text")},"header"===m?$:{}),y),j&&n.createElement("div",{className:"".concat(h,"-extra")},b)),n.createElement(si,Ve({visible:a,leavedClassName:"".concat(h,"-content-hidden")},w,{forceRender:c,removeOnLeave:S}),function(e,t){var r=e.className,o=e.style;return n.createElement(Ls,{ref:t,prefixCls:h,className:r,classNames:d,style:o,styles:p,isActive:a,forceRender:c,role:v?"tabpanel":void 0},C)}))});const Bs=zs;var Hs=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];const Fs=function(e,t,r){return Array.isArray(e)?function(e,t){var r=t.prefixCls,o=t.accordion,i=t.collapsible,a=t.destroyInactivePanel,l=t.onItemClick,c=t.activeKey,s=t.openMotion,u=t.expandIcon;return e.map(function(e,t){var d=e.children,f=e.label,p=e.key,h=e.collapsible,m=e.onItemClick,v=e.destroyInactivePanel,g=eo(e,Hs),b=String(null!=p?p:t),y=null!=h?h:i,x=null!=v?v:a,w=!1;return w=o?c[0]===b:c.indexOf(b)>-1,n.createElement(Bs,Ve({},g,{prefixCls:r,key:b,panelKey:b,isActive:w,accordion:o,openMotion:s,expandIcon:u,header:f,collapsible:y,onItemClick:function(e){"disabled"!==y&&(l(e),null==m||m(e))},destroyInactivePanel:x}),d)})}(e,r):Dc(t).map(function(e,t){return function(e,t,r){if(!e)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,l=r.destroyInactivePanel,c=r.onItemClick,s=r.activeKey,u=r.openMotion,d=r.expandIcon,f=e.key||String(t),p=e.props,h=p.header,m=p.headerClass,v=p.destroyInactivePanel,g=p.collapsible,b=p.onItemClick,y=!1;y=i?s[0]===f:s.indexOf(f)>-1;var x=null!=g?g:a,w={key:f,panelKey:f,header:h,headerClass:m,isActive:y,prefixCls:o,destroyInactivePanel:null!=v?v:l,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(c(e),null==b||b(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(w).forEach(function(e){void 0===w[e]&&delete w[e]}),n.cloneElement(e,w))}(e,t,r)})};function Ws(e){var t=e;if(!Array.isArray(t)){var n=O(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var Ks=n.forwardRef(function(e,t){var r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,l=e.style,c=e.accordion,s=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,h=e.activeKey,m=e.defaultActiveKey,v=e.onChange,g=e.items,b=Rr()(o,s),y=_(mo([],{value:h,onChange:function(e){return null==v?void 0:v(e)},defaultValue:m,postState:Ws}),2),x=y[0],w=y[1];ne(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var S=Fs(g,u,{prefixCls:o,accordion:c,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:a,onItemClick:function(e){return w(function(){return c?x[0]===e?[]:[e]:x.indexOf(e)>-1?x.filter(function(t){return t!==e}):[].concat(M(x),[e])})},activeKey:x});return n.createElement("div",Ve({ref:t,className:b,style:l,role:c?"tablist":void 0},Xa(e,{aria:!0,data:!0})),S)});const Us=Object.assign(Ks,{Panel:Bs}),Vs=Us;Us.Panel;const Gs=()=>({height:0,opacity:0}),Ys=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Xs=e=>({height:e?e.offsetHeight:0}),Qs=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Zs=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Js=(e=g)=>({motionName:`${e}-motion-collapse`,onAppearStart:Gs,onEnterStart:Gs,onAppearActive:Ys,onEnterActive:Ys,onLeaveStart:Xs,onLeaveActive:Gs,onAppearEnd:Qs,onEnterEnd:Qs,onLeaveEnd:Qs,motionDeadline:500}),eu=n.forwardRef((e,t)=>{const{getPrefixCls:r}=n.useContext(x),{prefixCls:o,className:i,showArrow:a=!0}=e,l=r("collapse",o),c=Rr()({[`${l}-no-arrow`]:!a},i);return n.createElement(Vs.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))}),tu=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`}}}),nu=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:h,fontSizeLG:m,lineHeight:v,lineHeightLG:g,marginSM:b,paddingSM:y,paddingLG:x,paddingXS:w,motionDurationSlow:S,fontSizeIcon:C,contentPadding:O,fontHeight:k,fontHeightLG:E}=e,j=`${$e(s)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},Oi(e)),{backgroundColor:o,border:j,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:j,"&:first-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`${$e(c)} ${$e(c)} 0 0`}},"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${$e(c)} ${$e(c)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:v,cursor:"pointer",transition:`all ${S}, visibility 0s`},Ei(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:k,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:j,[`& > ${t}-content-box`]:{padding:O},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(w).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:m,lineHeight:g,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:E,marginInlineStart:e.calc(x).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${$e(c)} ${$e(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},ru=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},ou=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`\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:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},iu=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}}}}}},au=ql("Collapse",e=>{const t=$l(e,{collapseHeaderPaddingSM:`${$e(e.paddingXS)} ${$e(e.paddingSM)}`,collapseHeaderPaddingLG:`${$e(e.padding)} ${$e(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[nu(t),ou(t),iu(t),ru(t),tu(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"})),lu=n.forwardRef((e,t)=>{const{getPrefixCls:r,direction:o,expandIcon:i,className:a,style:l}=C("collapse"),{prefixCls:c,className:s,rootClassName:u,style:d,bordered:f=!0,ghost:p,size:h,expandIconPosition:m="start",children:v,destroyInactivePanel:g,destroyOnHidden:b,expandIcon:y}=e,x=Rc(e=>{var t;return null!==(t=null!=h?h:e)&&void 0!==t?t:"middle"}),w=r("collapse",c),S=r(),[O,k,E]=au(w);const j=n.useMemo(()=>"left"===m?"start":"right"===m?"end":m,[m]),$=null!=y?y:i,P=n.useCallback((e={})=>{const t="function"==typeof $?$(e):n.createElement(Rs,{rotate:e.isActive?"rtl"===o?-90:90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return Ec(t,()=>{var e;return{className:Rr()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${w}-arrow`)}})},[$,w]),N=Rr()(`${w}-icon-position-${j}`,{[`${w}-borderless`]:!f,[`${w}-rtl`]:"rtl"===o,[`${w}-ghost`]:!!p,[`${w}-${x}`]:"middle"!==x},a,s,u,k,E),_=Object.assign(Object.assign({},Js(S)),{motionAppear:!1,leavedClassName:`${w}-content-hidden`}),I=n.useMemo(()=>v?Dc(v).map((e,t)=>{var n,r;const o=e.props;if(null==o?void 0:o.disabled){const i=null!==(n=e.key)&&void 0!==n?n:String(t);return Ec(e,Object.assign(Object.assign({},Sc(e.props,["disabled"])),{key:i,collapsible:null!==(r=o.collapsible)&&void 0!==r?r:"disabled"}))}return e}):null,[v]);return O(n.createElement(Vs,Object.assign({ref:t,openMotion:_},Sc(e,["rootClassName"]),{expandIcon:P,prefixCls:w,className:N,style:Object.assign(Object.assign({},l),d),destroyInactivePanel:null!=b?b:g}),I))});const cu=Object.assign(lu,{Panel:eu}),su=(e,t)=>{const r=n.useContext(Cn),o=n.useMemo(()=>{var n;const o=t||bn[e],i=null!==(n=null==r?void 0:r[e])&&void 0!==n?n:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})},[e,t,r]);return[o,n.useMemo(()=>{const e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?bn.locale:e},[r])]},uu=e=>e instanceof Ms?e:new Ms(e),du=e=>Math.round(Number(e||0)),fu=e=>du(100*e.toHsb().a),pu=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const n=e.toHsb();return n.a=t||1,uu(n)}return n.a=t||1,uu(n)},hu=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(M(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;e<n.length-1;e+=1){const r=n[e].percent,o=n[e+1].percent,i=n[e].color,a=n[e+1].color;if(r<=t&&t<=o){const e=o-r;if(0===e)return i;const n=(t-r)/e*100,l=new ms(i),c=new ms(a);return l.mix(c,n).toRgbString()}}return""},mu=e=>e.map(e=>(e.colors=e.colors.map(uu),e)),vu=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new ms(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192},gu=(e,t)=>{var n;return`panel-${null!==(n=e.key)&&void 0!==n?n:t}`},bu=({prefixCls:e,presets:t,value:r,onChange:o})=>{const[i]=su("ColorPicker"),[,a]=yi(),[l]=mo(mu(t),{value:mu(t),postState:mu}),c=`${e}-presets`,s=(0,n.useMemo)(()=>l.reduce((e,t,n)=>{const{defaultOpen:r=!0}=t;return r&&e.push(gu(t,n)),e},[]),[l]),u=l.map((t,l)=>{var s;return{key:gu(t,l),label:n.createElement("div",{className:`${c}-label`},null==t?void 0:t.label),children:n.createElement("div",{className:`${c}-items`},Array.isArray(null==t?void 0:t.colors)&&(null===(s=t.colors)||void 0===s?void 0:s.length)>0?t.colors.map((t,i)=>n.createElement(xs,{key:`preset-${i}-${t.toHexString()}`,color:uu(t).toRgbString(),prefixCls:e,className:Rr()(`${c}-color`,{[`${c}-color-checked`]:t.toHexString()===(null==r?void 0:r.toHexString()),[`${c}-color-bright`]:vu(t,a.colorBgElevated)}),onClick:()=>{return e=t,void(null==o||o(e));var e}})):n.createElement("span",{className:`${c}-empty`},i.presetEmpty))}});return n.createElement("div",{className:c},n.createElement(cu,{defaultActiveKey:s,ghost:!0,items:u}))},yu=e=>{const{paddingInline:t,onlyIconSize:n}=e;return $l(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},xu=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:pr(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:pr(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:pr(s),p=vu(new Ms(e.colorBgSolid),"#fff")?"#000":"#fff",h=Qc.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${$e(e.controlOutlineWidth)} 0 ${di(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{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,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)})},wu=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${$e(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{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"}},"> a":{color:"currentColor"},"&:not(:disabled)":Ei(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},Su=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Cu=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Ou=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),ku=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Eu=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Su(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),ju=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ku(e))}),$u=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Pu=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?$u:ju;return Object.assign(Object.assign({},o(e)),Su(e.componentCls,t,n))},Nu=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Pu(e,r,o))}),_u=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Pu(e,r,o))}),Iu=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Mu=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Pu(e,n,r))}),Tu=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Pu(e,r,o,n))}),Au=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Nu(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Iu(e)),Mu(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Eu(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Tu(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ru=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},_u(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Iu(e)),Mu(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Tu(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Tu(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Eu(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Du=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Nu(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),_u(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Iu(e)),Mu(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Tu(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Tu(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Eu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Lu=e=>Object.assign(Object.assign({},Tu(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Eu(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),qu=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Au(e),[`${t}-color-primary`]:Ru(e),[`${t}-color-dangerous`]:Du(e),[`${t}-color-link`]:Lu(e)},(e=>{const{componentCls:t}=e;return Qc.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],l=e[`${r}2`],c=e[`${r}3`],s=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},Nu(e,e.colorTextLightSolid,o,{background:a},{background:s})),_u(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:s,borderColor:s,background:e.colorBgContainer})),Iu(e)),Mu(e,i,{background:l},{background:c})),Tu(e,o,"link",{color:a},{color:s})),Tu(e,o,"text",{color:a,background:i},{color:s,background:c}))})},{})})(e))},zu=e=>Object.assign(Object.assign(Object.assign(Object.assign({},_u(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Tu(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Nu(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Tu(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Bu=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:s}=e;return[{[t]:{fontSize:o,height:r,padding:`${$e(c)} ${$e(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:s}}}},{[`${n}${n}-circle${t}`]:Cu(e)},{[`${n}${n}-round${t}`]:Ou(e)}]},Hu=e=>{const t=$l(e,{fontSize:e.contentFontSize});return Bu(t,e.componentCls)},Fu=e=>{const t=$l(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Bu(t,`${e.componentCls}-sm`)},Wu=e=>{const t=$l(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Bu(t,`${e.componentCls}-lg`)},Ku=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Uu=ql("Button",e=>{const t=yu(e);return[wu(t),Hu(t),Fu(t),Wu(t),Ku(t),qu(t),zu(t),ds(t)]},xu,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Vu(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${a}`).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] ${a}`]:{zIndex:0}})}}function Gu(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 Yu(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Vu(e,r,t)),Gu(n,r,t))}}function Xu(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 Qu(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Xu(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 Zu=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},Ju=Bl(["Button","compact"],e=>{const t=yu(e);return[Yu(t),Qu(t),Zu(t)]},xu);var ed=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const td={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},nd=n.forwardRef((e,t)=>{var r,o;const{loading:i=!1,prefixCls:a,color:l,variant:c,type:s,danger:u=!1,shape:d="default",size:f,styles:p,disabled:h,className:m,rootClassName:v,children:g,icon:b,iconPosition:y="start",ghost:w=!1,block:S=!1,htmlType:O="button",classNames:k,style:E={},autoInsertSpace:j,autoFocus:$}=e,P=ed(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),N=s||"default",{button:_}=n.useContext(x),[I,M]=(0,n.useMemo)(()=>{if(l&&c)return[l,c];if(s||u){const e=td[N]||[];return u?["danger",e[1]]:e}return(null==_?void 0:_.color)&&(null==_?void 0:_.variant)?[_.color,_.variant]:["default","outlined"]},[s,l,c,u,null==_?void 0:_.variant,null==_?void 0:_.color]),T="danger"===I?"dangerous":I,{getPrefixCls:A,direction:R,autoInsertSpace:D,className:L,style:q,classNames:z,styles:B}=C("button"),H=null===(r=null!=j?j:D)||void 0===r||r,F=A("btn",a),[W,K,U]=Uu(F),V=(0,n.useContext)(jr),G=null!=h?h:V,Y=(0,n.useContext)(Yc),X=(0,n.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}}(i),[i]),[Q,Z]=(0,n.useState)(X.loading),[J,ee]=(0,n.useState)(!1),te=(0,n.useRef)(null),ne=Xr(t,te),re=1===n.Children.count(g)&&!b&&!ns(M),oe=(0,n.useRef)(!0);n.useEffect(()=>(oe.current=!1,()=>{oe.current=!0}),[]),(0,n.useLayoutEffect)(()=>{let e=null;return X.delay>0?e=setTimeout(()=>{e=null,Z(!0)},X.delay):Z(X.loading),function(){e&&(clearTimeout(e),e=null)}},[X.delay,X.loading]),(0,n.useEffect)(()=>{if(!te.current||!H)return;const e=te.current.textContent||"";re&&Jc(e)?J||ee(!0):J&&ee(!1)}),(0,n.useEffect)(()=>{$&&te.current&&te.current.focus()},[]);const ie=n.useCallback(t=>{var n;Q||G?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)},[e.onClick,Q,G]);const{compactSize:ae,compactItemClassnames:le}=Wc(F,R),ce={large:"lg",small:"sm",middle:void 0},se=Rc(e=>{var t,n;return null!==(n=null!==(t=null!=f?f:ae)&&void 0!==t?t:Y)&&void 0!==n?n:e}),ue=se&&null!==(o=ce[se])&&void 0!==o?o:"",de=Q?"loading":b,fe=Sc(P,["navigate"]),pe=Rr()(F,K,U,{[`${F}-${d}`]:"default"!==d&&d,[`${F}-${N}`]:N,[`${F}-dangerous`]:u,[`${F}-color-${T}`]:T,[`${F}-variant-${M}`]:M,[`${F}-${ue}`]:ue,[`${F}-icon-only`]:!g&&0!==g&&!!de,[`${F}-background-ghost`]:w&&!ns(M),[`${F}-loading`]:Q,[`${F}-two-chinese-chars`]:J&&H&&!Q,[`${F}-block`]:S,[`${F}-rtl`]:"rtl"===R,[`${F}-icon-end`]:"end"===y},le,m,v,L),he=Object.assign(Object.assign({},q),E),me=Rr()(null==k?void 0:k.icon,z.icon),ve=Object.assign(Object.assign({},(null==p?void 0:p.icon)||{}),B.icon||{}),ge=b&&!Q?n.createElement(is,{prefixCls:F,className:me,style:ve},b):i&&"object"==typeof i&&i.icon?n.createElement(is,{prefixCls:F,className:me,style:ve},i.icon):n.createElement(ss,{existIcon:!!b,prefixCls:F,loading:Q,mount:oe.current}),be=g||0===g?rs(g,re&&H):null;if(void 0!==fe.href)return W(n.createElement("a",Object.assign({},fe,{className:Rr()(pe,{[`${F}-disabled`]:G}),href:G?void 0:fe.href,style:he,onClick:ie,ref:ne,tabIndex:G?-1:0}),ge,be));let ye=n.createElement("button",Object.assign({},P,{type:O,className:pe,style:he,onClick:ie,disabled:G,ref:ne}),ge,be,le&&n.createElement(Ju,{prefixCls:F}));return ns(M)||(ye=n.createElement(Ac,{component:"Button",disabled:Q},ye)),W(ye)}),rd=nd;rd.Group=Xc,rd.__ANT_BUTTON=!0;const od=rd;var id=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ad=n.forwardRef(function(e,t){var r,o=e.prefixCls,i=void 0===o?"rc-switch":o,a=e.className,l=e.checked,c=e.defaultChecked,s=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,h=e.onChange,m=e.onKeyDown,v=eo(e,id),g=_(mo(!1,{value:l,defaultValue:c}),2),b=g[0],y=g[1];function x(e,t){var n=b;return s||(y(n=e),null==h||h(n,t)),n}var w=Rr()(i,a,(E(r={},"".concat(i,"-checked"),b),E(r,"".concat(i,"-disabled"),s),r));return n.createElement("button",Ve({},v,{type:"button",role:"switch","aria-checked":b,disabled:s,className:w,ref:t,onKeyDown:function(e){e.which===Va.LEFT?x(!1,e):e.which===Va.RIGHT&&x(!0,e),null==m||m(e)},onClick:function(e){var t=x(!b,e);null==p||p(t,e)}}),u,n.createElement("span",{className:"".concat(i,"-inner")},n.createElement("span",{className:"".concat(i,"-inner-checked")},d),n.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});ad.displayName="Switch";const ld=ad,cd=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,s=`${t}-inner`,u=$e(c(l).add(c(r).mul(2)).equal()),d=$e(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:$e(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked, ${s}-unchecked`]:{minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${$e(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},sd=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},ud=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${$e(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},dd=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,s=$e(l(a).add(l(r).mul(2)).equal()),u=$e(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},fd=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:$e(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Ei(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},pd=ql("Switch",e=>{const t=$l(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[fd(t),dd(t),ud(t),sd(t),cd(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Pn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}});var hd=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const md=n.forwardRef((e,t)=>{const{prefixCls:r,size:o,disabled:i,loading:a,className:l,rootClassName:c,style:s,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:h}=e,m=hd(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,g]=mo(!1,{value:null!=u?u:d,defaultValue:null!=f?f:p}),{getPrefixCls:b,direction:y,switch:w}=n.useContext(x),S=n.useContext(jr),C=(null!=i?i:S)||a,O=b("switch",r),k=n.createElement("div",{className:`${O}-handle`},a&&n.createElement(Ka,{className:`${O}-loading-icon`})),[E,j,$]=pd(O),P=Rc(o),N=Rr()(null==w?void 0:w.className,{[`${O}-small`]:"small"===P,[`${O}-loading`]:a,[`${O}-rtl`]:"rtl"===y},l,c,j,$),_=Object.assign(Object.assign({},null==w?void 0:w.style),s);return E(n.createElement(Ac,{component:"Switch"},n.createElement(ld,Object.assign({},m,{checked:v,onChange:(...e)=>{g(e[0]),null==h||h.apply(void 0,e)},prefixCls:O,className:N,style:_,disabled:C,ref:t,loadingIcon:k}))))}),vd=md;vd.__ANT_SWITCH=!0;const gd=vd;function bd(e){var t=e.children,r=e.prefixCls,o=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,l=e.className,c=e.style;return n.createElement("div",{className:Rr()("".concat(r,"-content"),l),style:c},n.createElement("div",{className:Rr()("".concat(r,"-inner"),a),id:o,role:"tooltip",style:i},"function"==typeof t?t():t))}const yd=n.createContext(null);var xd,wd=[];function Sd(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";G("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),V(t),{width:f,height:p}}function Cd(e){return"undefined"==typeof document?0:((e||void 0===xd)&&(xd=Sd()),xd.width)}function Od(e){return"undefined"!=typeof document&&e&&e instanceof Element?Sd(e):{width:0,height:0}}var kd="rc-util-locker-".concat(Date.now()),Ed=0;function jd(e){var t=!!e,r=_(n.useState(function(){return Ed+=1,"".concat(kd,"_").concat(Ed)}),1)[0];Re(function(){if(t){var e=Od(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;G("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else V(r);return function(){V(r)}},[t,r])}var $d=!1;var Pd=function(e){return!1!==e&&(D()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Nd=n.forwardRef(function(e,t){var r=e.open,o=e.autoLock,i=e.getContainer,a=(e.debug,e.autoDestroy),l=void 0===a||a,c=e.children,s=_(n.useState(r),2),u=s[0],d=s[1],f=u||r;n.useEffect(function(){(l||r)&&d(r)},[r,l]);var p=_(n.useState(function(){return Pd(i)}),2),h=p[0],m=p[1];n.useEffect(function(){var e=Pd(i);m(null!=e?e:null)});var v=function(e){var t=_(n.useState(function(){return D()?document.createElement("div"):null}),1)[0],r=n.useRef(!1),o=n.useContext(yd),i=_(n.useState(wd),2),a=i[0],l=i[1],c=o||(r.current?void 0:function(e){l(function(t){return[e].concat(M(t))})});function s(){t.parentElement||document.body.appendChild(t),r.current=!0}function u(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),r.current=!1}return Re(function(){return e?o?o(s):s():u(),u},[e]),Re(function(){a.length&&(a.forEach(function(e){return e()}),l(wd))},[a]),[t,c]}(f&&!h),g=_(v,2),b=g[0],y=g[1],x=null!=h?h:b;jd(o&&r&&D()&&(x===b||x===document.body));var w=null;c&&Qr(c)&&t&&(w=c.ref);var S=Xr(w,t);if(!f||!D()||void 0===h)return null;var C,O=!1===x||("boolean"==typeof C&&($d=C),$d),k=c;return t&&(k=n.cloneElement(c,{ref:S})),n.createElement(yd.Provider,{value:y},O?k:(0,Dr.createPortal)(k,x))});const _d=Nd;var Id=n.createContext(null);var Md=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Td="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ad=void 0!==o.g&&o.g.Math===Math?o.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Rd="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ad):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var Dd=["top","right","bottom","left","width","height","size","weight"],Ld="undefined"!=typeof MutationObserver,qd=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){Rd(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Td&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ld?(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(){Td&&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,r=Dd.some(function(e){return!!~n.indexOf(e)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),zd=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Bd=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ad},Hd=Gd(0,0,0,0);function Fd(e){return parseFloat(e)||0}function Wd(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+Fd(e["border-"+n+"-width"])},0)}function Kd(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Hd;var r=Bd(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Fd(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Fd(r.width),c=Fd(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Wd(r,"left","right")+i),Math.round(c+a)!==n&&(c-=Wd(r,"top","bottom")+a)),!function(e){return e===Bd(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return Gd(o.left,o.top,l,c)}var Ud="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Bd(e).SVGGraphicsElement}:function(e){return e instanceof Bd(e).SVGElement&&"function"==typeof e.getBBox};function Vd(e){return Td?Ud(e)?function(e){var t=e.getBBox();return Gd(0,0,t.width,t.height)}(e):Kd(e):Hd}function Gd(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Yd=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Gd(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Vd(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Xd=function(e,t){var n,r,o,i,a,l,c,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),zd(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);zd(this,{target:e,contentRect:s})},Qd=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Md,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Bd(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Yd(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Bd(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new Xd(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Zd="undefined"!=typeof WeakMap?new WeakMap:new Md,Jd=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=qd.getInstance(),r=new Qd(t,n,this);Zd.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){Jd.prototype[e]=function(){var t;return(t=Zd.get(this))[e].apply(t,arguments)}});const ef=void 0!==Ad.ResizeObserver?Ad.ResizeObserver:Jd;var tf=new Map;var nf=new ef(function(e){e.forEach(function(e){var t,n=e.target;null===(t=tf.get(n))||void 0===t||t.forEach(function(e){return e(n)})})});var rf=function(e){io(n,e);var t=so(n);function n(){return oe(this,n),t.apply(this,arguments)}return ae(n,[{key:"render",value:function(){return this.props.children}}]),n}(n.Component);function of(e,t){var r=e.children,o=e.disabled,i=n.useRef(null),a=n.useRef(null),l=n.useContext(Id),c="function"==typeof r,s=c?r(i):r,u=n.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&n.isValidElement(s)&&Qr(s),f=d?Jr(s):null,p=Xr(f,i),h=function(){var e;return Br(i.current)||(i.current&&"object"===O(i.current)?Br(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Br(a.current)};n.useImperativeHandle(t,function(){return h()});var m=n.useRef(e);m.current=e;var v=n.useCallback(function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var h=c===Math.round(i)?i:c,v=s===Math.round(a)?a:s,g=A(A({},p),{},{offsetWidth:h,offsetHeight:v});null==l||l(g,e,r),n&&Promise.resolve().then(function(){n(g,e)})}},[]);return n.useEffect(function(){var e,t,n=h();return n&&!o&&(e=n,t=v,tf.has(e)||(tf.set(e,new Set),nf.observe(e)),tf.get(e).add(t)),function(){return function(e,t){tf.has(e)&&(tf.get(e).delete(t),tf.get(e).size||(nf.unobserve(e),tf.delete(e)))}(n,v)}},[i.current,o]),n.createElement(rf,{ref:a},d?n.cloneElement(s,{ref:p}):s)}const af=n.forwardRef(of);function lf(e,t){var r=e.children;return("function"==typeof r?[r]:Dc(r)).map(function(r,o){var i=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return n.createElement(af,Ve({},e,{key:i,ref:0===o?t:void 0}),r)})}var cf=n.forwardRef(lf);cf.Collection=function(e){var t=e.children,r=e.onBatchResize,o=n.useRef(0),i=n.useRef([]),a=n.useContext(Id),l=n.useCallback(function(e,t,n){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then(function(){l===o.current&&(null==r||r(i.current),i.current=[])}),null==a||a(e,t,n)},[r,a]);return n.createElement(Id.Provider,{value:l},t)};const sf=cf;var uf=0;var df=A({},r).useId;const ff=df?function(e){var t=df();return e||t}:function(e){var t=_(n.useState("ssr-id"),2),r=t[0],o=t[1];return n.useEffect(function(){var e=uf;uf+=1,o("rc_unique_".concat(e))},[]),e||r},pf=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};function hf(e){var t=e.prefixCls,r=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,p=n.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(!1!==r.autoArrow){var m=r.points[0],v=r.points[1],g=m[0],b=m[1],y=v[0],x=v[1];g!==y&&["t","b"].includes(g)?"t"===g?h.top=0:h.bottom=0:h.top=f,b!==x&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return n.createElement("div",{ref:p,className:Rr()("".concat(t,"-arrow"),l),style:h},c)}function mf(e){var t=e.prefixCls,r=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?n.createElement(si,Ve({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(e){var r=e.className;return n.createElement("div",{style:{zIndex:o},className:Rr()("".concat(t,"-mask"),r)})}):null}var vf=n.memo(function(e){return e.children},function(e,t){return t.cache});const gf=vf;var bf=n.forwardRef(function(e,t){var r=e.popup,o=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,h=e.arrow,m=e.arrowPos,v=e.align,g=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,S=e.portal,C=e.zIndex,O=e.onMouseEnter,k=e.onMouseLeave,E=e.onPointerEnter,j=e.onPointerDownCapture,$=e.ready,P=e.offsetX,N=e.offsetY,I=e.offsetR,M=e.offsetB,T=e.onAlign,R=e.onPrepare,D=e.stretch,L=e.targetWidth,q=e.targetHeight,z="function"==typeof r?r():r,B=s||u,H=(null==x?void 0:x.length)>0,F=_(n.useState(!x||!H),2),W=F[0],K=F[1];if(Re(function(){!W&&H&&l&&K(!0)},[W,H,l]),!W)return null;var U="auto",V={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if($||!s){var G,Y=v.points,X=v.dynamicInset||(null===(G=v._experimental)||void 0===G?void 0:G.dynamicInset),Q=X&&"r"===Y[0][1],Z=X&&"b"===Y[0][0];Q?(V.right=I,V.left=U):(V.left=P,V.right=U),Z?(V.bottom=M,V.top=U):(V.top=N,V.bottom=U)}var J={};return D&&(D.includes("height")&&q?J.height=q:D.includes("minHeight")&&q&&(J.minHeight=q),D.includes("width")&&L?J.width=L:D.includes("minWidth")&&L&&(J.minWidth=L)),s||(J.pointerEvents="none"),n.createElement(S,{open:y||B,getContainer:x&&function(){return x(l)},autoDestroy:w},n.createElement(mf,{prefixCls:i,open:s,zIndex:C,mask:p,motion:b}),n.createElement(sf,{onResize:T,disabled:!s},function(e){return n.createElement(si,Ve({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},g,{onAppearPrepare:R,onEnterPrepare:R,visible:s,onVisibleChanged:function(e){var t;null==g||null===(t=g.onVisibleChanged)||void 0===t||t.call(g,e),c(e)}}),function(r,l){var c=r.className,u=r.style,p=Rr()(i,c,o);return n.createElement("div",{ref:Yr(e,t,l),className:p,style:A(A(A(A({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},V),J),u),{},{boxSizing:"border-box",zIndex:C},a),onMouseEnter:O,onMouseLeave:k,onPointerEnter:E,onClick:f,onPointerDownCapture:j},h&&n.createElement(hf,{prefixCls:i,arrow:h,arrowPos:m,align:v}),n.createElement(gf,{cache:!s&&!d},z))})}))});const yf=bf;var xf=n.forwardRef(function(e,t){var r=e.children,o=e.getTriggerDOMNode,i=Qr(r),a=n.useCallback(function(e){Gr(t,o?o(e):e)},[o]),l=Xr(a,Jr(r));return i?n.cloneElement(r,{ref:l}):r});const wf=xf;const Sf=n.createContext(null);function Cf(e){return e?Array.isArray(e)?e:[e]:[]}function Of(){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 kf(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ef(e){return e.ownerDocument.defaultView}function jf(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ef(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 $f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Pf(e){return $f(parseFloat(e),0)}function Nf(e,t){var n=A({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Ef(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=Pf(i),m=Pf(a),v=Pf(l),g=Pf(c),b=$f(Math.round(s.width/f*1e3)/1e3),y=$f(Math.round(s.height/u*1e3)/1e3),x=(f-p-v-g)*b,w=(u-d-h-m)*y,S=h*y,C=m*y,O=v*b,k=g*b,E=0,j=0;if("clip"===r){var $=Pf(o);E=$*b,j=$*y}var P=s.x+O-E,N=s.y+S-j,_=P+s.width+2*E-O-k-x,I=N+s.height+2*j-S-C-w;n.left=Math.max(n.left,P),n.top=Math.max(n.top,N),n.right=Math.min(n.right,_),n.bottom=Math.min(n.bottom,I)}}),n}function _f(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 If(e,t){var n=_(t||[],2),r=n[0],o=n[1];return[_f(e.width,r),_f(e.height,o)]}function Mf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Tf(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 Af(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 Rf=["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"];const Df=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_d,t=n.forwardRef(function(t,r){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=t.children,l=t.action,c=void 0===l?"hover":l,s=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,p=t.onPopupVisibleChange,h=t.afterPopupVisibleChange,m=t.mouseEnterDelay,v=t.mouseLeaveDelay,g=void 0===v?.1:v,b=t.focusDelay,y=t.blurDelay,x=t.mask,w=t.maskClosable,S=void 0===w||w,C=t.getPopupContainer,O=t.forceRender,k=t.autoDestroy,E=t.destroyPopupOnHide,j=t.popup,$=t.popupClassName,P=t.popupStyle,N=t.popupPlacement,I=t.builtinPlacements,T=void 0===I?{}:I,R=t.popupAlign,D=t.zIndex,L=t.stretch,q=t.getPopupClassNameFromAlign,z=t.fresh,B=t.alignPoint,H=t.onPopupClick,F=t.onPopupAlign,W=t.arrow,K=t.popupMotion,U=t.maskMotion,V=t.popupTransitionName,G=t.popupAnimation,Y=t.maskTransitionName,X=t.maskAnimation,Q=t.className,Z=t.getTriggerDOMNode,J=eo(t,Rf),ee=k||E||!1,te=_(n.useState(!1),2),ne=te[0],re=te[1];Re(function(){re(pf())},[]);var oe=n.useRef({}),ie=n.useContext(Sf),ae=n.useMemo(function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null==ie||ie.registerSubPopup(e,t)}}},[ie]),le=ff(),ce=_(n.useState(null),2),se=ce[0],ue=ce[1],de=n.useRef(null),fe=fo(function(e){de.current=e,qr(e)&&se!==e&&ue(e),null==ie||ie.registerSubPopup(le,e)}),pe=_(n.useState(null),2),he=pe[0],me=pe[1],ve=n.useRef(null),ge=fo(function(e){qr(e)&&he!==e&&(me(e),ve.current=e)}),be=n.Children.only(a),ye=(null==be?void 0:be.props)||{},xe={},we=fo(function(e){var t,n,r=he;return(null==r?void 0:r.contains(e))||(null===(t=ma(r))||void 0===t?void 0:t.host)===e||e===r||(null==se?void 0:se.contains(e))||(null===(n=ma(se))||void 0===n?void 0:n.host)===e||e===se||Object.values(oe.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),Se=kf(i,K,G,V),Ce=kf(i,U,X,Y),Oe=_(n.useState(f||!1),2),ke=Oe[0],Ee=Oe[1],je=null!=d?d:ke,$e=fo(function(e){void 0===d&&Ee(e)});Re(function(){Ee(d||!1)},[d]);var Pe=n.useRef(je);Pe.current=je;var Ne=n.useRef([]);Ne.current=[];var _e=fo(function(e){var t;$e(e),(null!==(t=Ne.current[Ne.current.length-1])&&void 0!==t?t:je)!==e&&(Ne.current.push(e),null==p||p(e))}),Ie=n.useRef(),Me=function(){clearTimeout(Ie.current)},Te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Me(),0===t?_e(e):Ie.current=setTimeout(function(){_e(e)},1e3*t)};n.useEffect(function(){return Me},[]);var Ae=_(n.useState(!1),2),De=Ae[0],Le=Ae[1];Re(function(e){e&&!je||Le(!0)},[je]);var qe=_(n.useState(null),2),ze=qe[0],Be=qe[1],He=_(n.useState(null),2),Fe=He[0],We=He[1],Ke=function(e){We([e.clientX,e.clientY])},Ue=function(e,t,r,o,i,a,l){var c=_(n.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=n.useRef(0),f=n.useMemo(function(){return t?jf(t):[]},[t]),p=n.useRef({});e||(p.current={});var h=fo(function(){if(t&&r&&e){var n,c,s,d,h,m=t,v=m.ownerDocument,g=Ef(m),b=g.getComputedStyle(m).position,y=m.style.left,x=m.style.top,w=m.style.right,S=m.style.bottom,C=m.style.overflow,O=A(A({},i[o]),a),k=v.createElement("div");if(null===(n=m.parentElement)||void 0===n||n.appendChild(k),k.style.left="".concat(m.offsetLeft,"px"),k.style.top="".concat(m.offsetTop,"px"),k.style.position=b,k.style.height="".concat(m.offsetHeight,"px"),k.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(r))h={x:r[0],y:r[1],width:0,height:0};else{var E,j,$=r.getBoundingClientRect();$.x=null!==(E=$.x)&&void 0!==E?E:$.left,$.y=null!==(j=$.y)&&void 0!==j?j:$.top,h={x:$.x,y:$.y,width:$.width,height:$.height}}var P=m.getBoundingClientRect(),N=g.getComputedStyle(m),I=N.height,M=N.width;P.x=null!==(c=P.x)&&void 0!==c?c:P.left,P.y=null!==(s=P.y)&&void 0!==s?s:P.top;var T=v.documentElement,R=T.clientWidth,D=T.clientHeight,L=T.scrollWidth,q=T.scrollHeight,z=T.scrollTop,B=T.scrollLeft,H=P.height,F=P.width,W=h.height,K=h.width,U={left:0,top:0,right:R,bottom:D},V={left:-B,top:-z,right:L-B,bottom:q-z},G=O.htmlRegion,Y="visible",X="visibleFirst";"scroll"!==G&&G!==X&&(G=Y);var Q=G===X,Z=Nf(V,f),J=Nf(U,f),ee=G===Y?J:Z,te=Q?J:ee;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var ne=m.getBoundingClientRect();m.style.left=y,m.style.top=x,m.style.right=w,m.style.bottom=S,m.style.overflow=C,null===(d=m.parentElement)||void 0===d||d.removeChild(k);var re=$f(Math.round(F/parseFloat(M)*1e3)/1e3),oe=$f(Math.round(H/parseFloat(I)*1e3)/1e3);if(0===re||0===oe||qr(r)&&!Cc(r))return;var ie=O.offset,ae=O.targetOffset,le=_(If(P,ie),2),ce=le[0],se=le[1],ue=_(If(h,ae),2),de=ue[0],fe=ue[1];h.x-=de,h.y-=fe;var pe=_(O.points||[],2),he=pe[0],me=Mf(pe[1]),ve=Mf(he),ge=Tf(h,me),be=Tf(P,ve),ye=A({},O),xe=ge.x-be.x+ce,we=ge.y-be.y+se;function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ee,r=P.x+e,o=P.y+t,i=r+F,a=o+H,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var Se,Ce,Oe,ke,Ee=ht(xe,we),je=ht(xe,we,J),$e=Tf(h,["t","l"]),Pe=Tf(P,["t","l"]),Ne=Tf(h,["b","r"]),_e=Tf(P,["b","r"]),Ie=O.overflow||{},Me=Ie.adjustX,Te=Ie.adjustY,Ae=Ie.shiftX,Re=Ie.shiftY,De=function(e){return"boolean"==typeof e?e:e>=0};function mt(){Se=P.y+we,Ce=Se+H,Oe=P.x+xe,ke=Oe+F}mt();var Le=De(Te),qe=ve[0]===me[0];if(Le&&"t"===ve[0]&&(Ce>te.bottom||p.current.bt)){var ze=we;qe?ze-=H-W:ze=$e.y-_e.y-se;var Be=ht(xe,ze),He=ht(xe,ze,J);Be>Ee||Be===Ee&&(!Q||He>=je)?(p.current.bt=!0,we=ze,se=-se,ye.points=[Af(ve,0),Af(me,0)]):p.current.bt=!1}if(Le&&"b"===ve[0]&&(Se<te.top||p.current.tb)){var Fe=we;qe?Fe+=H-W:Fe=Ne.y-Pe.y-se;var We=ht(xe,Fe),Ke=ht(xe,Fe,J);We>Ee||We===Ee&&(!Q||Ke>=je)?(p.current.tb=!0,we=Fe,se=-se,ye.points=[Af(ve,0),Af(me,0)]):p.current.tb=!1}var Ue=De(Me),Ve=ve[1]===me[1];if(Ue&&"l"===ve[1]&&(ke>te.right||p.current.rl)){var Ge=xe;Ve?Ge-=F-K:Ge=$e.x-_e.x-ce;var Ye=ht(Ge,we),Xe=ht(Ge,we,J);Ye>Ee||Ye===Ee&&(!Q||Xe>=je)?(p.current.rl=!0,xe=Ge,ce=-ce,ye.points=[Af(ve,1),Af(me,1)]):p.current.rl=!1}if(Ue&&"r"===ve[1]&&(Oe<te.left||p.current.lr)){var Qe=xe;Ve?Qe+=F-K:Qe=Ne.x-Pe.x-ce;var Ze=ht(Qe,we),Je=ht(Qe,we,J);Ze>Ee||Ze===Ee&&(!Q||Je>=je)?(p.current.lr=!0,xe=Qe,ce=-ce,ye.points=[Af(ve,1),Af(me,1)]):p.current.lr=!1}mt();var et=!0===Ae?0:Ae;"number"==typeof et&&(Oe<J.left&&(xe-=Oe-J.left-ce,h.x+K<J.left+et&&(xe+=h.x-J.left+K-et)),ke>J.right&&(xe-=ke-J.right-ce,h.x>J.right-et&&(xe+=h.x-J.right+et)));var tt=!0===Re?0:Re;"number"==typeof tt&&(Se<J.top&&(we-=Se-J.top-se,h.y+W<J.top+tt&&(we+=h.y-J.top+W-tt)),Ce>J.bottom&&(we-=Ce-J.bottom-se,h.y>J.bottom-tt&&(we+=h.y-J.bottom+tt)));var nt=P.x+xe,rt=nt+F,ot=P.y+we,it=ot+H,at=h.x,lt=at+K,ct=h.y,st=ct+W,ut=(Math.max(nt,at)+Math.min(rt,lt))/2-nt,dt=(Math.max(ot,ct)+Math.min(it,st))/2-ot;null==l||l(t,ye);var ft=ne.right-P.x-(xe+P.width),pt=ne.bottom-P.y-(we+P.height);1===re&&(xe=Math.round(xe),ft=Math.round(ft)),1===oe&&(we=Math.round(we),pt=Math.round(pt)),u({ready:!0,offsetX:xe/re,offsetY:we/oe,offsetR:ft/re,offsetB:pt/oe,arrowX:ut/re,arrowY:dt/oe,scaleX:re,scaleY:oe,align:ye})}}),m=function(){u(function(e){return A(A({},e),{},{ready:!1})})};return Re(m,[o]),Re(function(){e||m()},[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then(function(){d.current===e&&h()})}]}(je,se,B&&null!==Fe?Fe:he,N,T,R,F),Ve=_(Ue,11),Ge=Ve[0],Ye=Ve[1],Xe=Ve[2],Qe=Ve[3],Ze=Ve[4],Je=Ve[5],et=Ve[6],tt=Ve[7],nt=Ve[8],rt=Ve[9],ot=Ve[10],it=function(e,t,r,o){return n.useMemo(function(){var n=Cf(null!=r?r:t),i=Cf(null!=o?o:t),a=new Set(n),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,r,o])}(ne,c,s,u),at=_(it,2),lt=at[0],ct=at[1],st=lt.has("click"),ut=ct.has("click")||ct.has("contextMenu"),dt=fo(function(){De||ot()});!function(e,t,n,r,o){Re(function(){if(e&&t&&n){var i=n,a=jf(t),l=jf(i),c=Ef(i),s=new Set([c].concat(M(a),M(l)));function u(){r(),o()}return s.forEach(function(e){e.addEventListener("scroll",u,{passive:!0})}),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach(function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)})}}},[e,t,n])}(je,he,se,dt,function(){Pe.current&&B&&ut&&Te(!1)}),Re(function(){dt()},[Fe,N]),Re(function(){!je||null!=T&&T[N]||dt()},[JSON.stringify(R)]);var ft=n.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(Of(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(T,i,rt,B);return Rr()(e,null==q?void 0:q(rt))},[rt,q,T,i,B]);n.useImperativeHandle(r,function(){return{nativeElement:ve.current,popupElement:de.current,forceAlign:dt}});var pt=_(n.useState(0),2),ht=pt[0],mt=pt[1],vt=_(n.useState(0),2),gt=vt[0],bt=vt[1],yt=function(){if(L&&he){var e=he.getBoundingClientRect();mt(e.width),bt(e.height)}};function xt(e,t,n,r){xe[e]=function(o){var i;null==r||r(o),Te(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=ye[e])||void 0===i||i.call.apply(i,[ye,o].concat(l))}}Re(function(){ze&&(ot(),ze(),Be(null))},[ze]),(st||ut)&&(xe.onClick=function(e){var t;Pe.current&&ut?Te(!1):!Pe.current&&st&&(Ke(e),Te(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onClick)||void 0===t||t.call.apply(t,[ye,e].concat(r))});var wt,St,Ct=function(e,t,r,o,i,a,l,c){var s=n.useRef(e);s.current=e;var u=n.useRef(!1);return n.useEffect(function(){if(t&&o&&(!i||a)){var e=function(){u.current=!1},n=function(e){var t;!s.current||l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||c(!1)},d=Ef(o);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",n,!0),d.addEventListener("contextmenu",n,!0);var f=ma(r);return f&&(f.addEventListener("mousedown",n,!0),f.addEventListener("contextmenu",n,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",n,!0),d.removeEventListener("contextmenu",n,!0),f&&(f.removeEventListener("mousedown",n,!0),f.removeEventListener("contextmenu",n,!0))}}},[t,r,o,i,a]),function(){u.current=!0}}(je,ut,he,se,x,S,we,Te),Ot=lt.has("hover"),kt=ct.has("hover");Ot&&(xt("onMouseEnter",!0,m,function(e){Ke(e)}),xt("onPointerEnter",!0,m,function(e){Ke(e)}),wt=function(e){(je||De)&&null!=se&&se.contains(e.target)&&Te(!0,m)},B&&(xe.onMouseMove=function(e){var t;null===(t=ye.onMouseMove)||void 0===t||t.call(ye,e)})),kt&&(xt("onMouseLeave",!1,g),xt("onPointerLeave",!1,g),St=function(){Te(!1,g)}),lt.has("focus")&&xt("onFocus",!0,b),ct.has("focus")&&xt("onBlur",!1,y),lt.has("contextMenu")&&(xe.onContextMenu=function(e){var t;Pe.current&&ct.has("contextMenu")?Te(!1):(Ke(e),Te(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onContextMenu)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),Q&&(xe.className=Rr()(ye.className,Q));var Et=A(A({},ye),xe),jt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){J[e]&&(jt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Et[e])||void 0===t||t.call.apply(t,[Et].concat(r)),J[e].apply(J,r)})});var $t=n.cloneElement(be,A(A({},Et),jt)),Pt={x:Je,y:et},Nt=W?A({},!0!==W?W:{}):null;return n.createElement(n.Fragment,null,n.createElement(sf,{disabled:!je,ref:ge,onResize:function(){yt(),dt()}},n.createElement(wf,{getTriggerDOMNode:Z},$t)),n.createElement(Sf.Provider,{value:ae},n.createElement(yf,{portal:e,ref:fe,prefixCls:i,popup:j,className:Rr()($,ft),style:P,target:he,onMouseEnter:wt,onMouseLeave:St,onPointerEnter:wt,zIndex:D,open:je,keepDom:De,fresh:z,onClick:H,onPointerDownCapture:Ct,mask:x,motion:Se,maskMotion:Ce,onVisibleChanged:function(e){Le(!1),ot(),null==h||h(e)},onPrepare:function(){return new Promise(function(e){yt(),Be(function(){return e})})},forceRender:O,autoDestroy:ee,getPopupContainer:C,align:rt,arrow:Nt,arrowPos:Pt,ready:Ge,offsetX:Ye,offsetY:Xe,offsetR:Qe,offsetB:Ze,onAlign:dt,stretch:L,targetWidth:ht/tt,targetHeight:gt/nt})))});return t}(_d);var Lf={shiftX:64,adjustY:1},qf={adjustX:1,shiftY:!0},zf=[0,0],Bf={left:{points:["cr","cl"],overflow:qf,offset:[-4,0],targetOffset:zf},right:{points:["cl","cr"],overflow:qf,offset:[4,0],targetOffset:zf},top:{points:["bc","tc"],overflow:Lf,offset:[0,-4],targetOffset:zf},bottom:{points:["tc","bc"],overflow:Lf,offset:[0,4],targetOffset:zf},topLeft:{points:["bl","tl"],overflow:Lf,offset:[0,-4],targetOffset:zf},leftTop:{points:["tr","tl"],overflow:qf,offset:[-4,0],targetOffset:zf},topRight:{points:["br","tr"],overflow:Lf,offset:[0,-4],targetOffset:zf},rightTop:{points:["tl","tr"],overflow:qf,offset:[4,0],targetOffset:zf},bottomRight:{points:["tr","br"],overflow:Lf,offset:[0,4],targetOffset:zf},rightBottom:{points:["bl","br"],overflow:qf,offset:[4,0],targetOffset:zf},bottomLeft:{points:["tl","bl"],overflow:Lf,offset:[0,4],targetOffset:zf},leftBottom:{points:["br","bl"],overflow:qf,offset:[-4,0],targetOffset:zf}};var Hf=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Ff=function(e,t){var r=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,a=e.mouseEnterDelay,l=void 0===a?0:a,c=e.mouseLeaveDelay,s=void 0===c?.1:c,u=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,p=e.children,h=e.onVisibleChange,m=e.afterVisibleChange,v=e.transitionName,g=e.animation,b=e.motion,y=e.placement,x=void 0===y?"right":y,w=e.align,S=void 0===w?{}:w,C=e.destroyTooltipOnHide,O=void 0!==C&&C,k=e.defaultVisible,E=e.getTooltipContainer,j=e.overlayInnerStyle,$=(e.arrowContent,e.overlay),P=e.id,N=e.showArrow,_=void 0===N||N,I=e.classNames,M=e.styles,T=eo(e,Hf),R=ff(P),D=(0,n.useRef)(null);(0,n.useImperativeHandle)(t,function(){return D.current});var L=A({},T);"visible"in e&&(L.popupVisible=e.visible);var q,z;return n.createElement(Df,Ve({popupClassName:Rr()(r,null==I?void 0:I.root),prefixCls:f,popup:function(){return n.createElement(bd,{key:"content",prefixCls:f,id:R,bodyClassName:null==I?void 0:I.body,overlayInnerStyle:A(A({},j),null==M?void 0:M.body)},$)},action:i,builtinPlacements:Bf,popupPlacement:x,ref:D,popupAlign:S,getPopupContainer:E,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:v,popupAnimation:g,popupMotion:b,defaultPopupVisible:k,autoDestroy:O,mouseLeaveDelay:s,popupStyle:A(A({},u),null==M?void 0:M.root),mouseEnterDelay:l,arrow:_},L),(q=n.Children.only(p),z=A(A({},(null==q?void 0:q.props)||{}),{},{"aria-describedby":$?R:null}),n.cloneElement(p,z)))};const Wf=(0,n.forwardRef)(Ff);var Kf="RC_FORM_INTERNAL_HOOKS",Uf=function(){ne(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const Vf=n.createContext({getFieldValue:Uf,getFieldsValue:Uf,getFieldError:Uf,getFieldWarning:Uf,getFieldsError:Uf,isFieldsTouched:Uf,isFieldTouched:Uf,isFieldValidating:Uf,isFieldsValidating:Uf,resetFields:Uf,setFields:Uf,setFieldValue:Uf,setFieldsValue:Uf,validateFields:Uf,submit:Uf,getInternalHooks:function(){return Uf(),{dispatch:Uf,initEntityValue:Uf,registerField:Uf,useSubscribe:Uf,setInitialValues:Uf,destroyForm:Uf,setCallbacks:Uf,registerWatch:Uf,getFields:Uf,setValidateMessages:Uf,setPreserve:Uf,getInitialValue:Uf}}});const Gf=n.createContext(null);function Yf(e){return null==e?[]:Array.isArray(e)?e:[e]}function Xf(){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 Qf=Xf();function Zf(e){var t="function"==typeof Map?new Map:void 0;return Zf=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(lo())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&oo(o,n.prototype),o}(e,arguments,ao(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),oo(n,e)},Zf(e)}var Jf=o(5606),ep=/%[sdj%]/g;function tp(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function np(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(ep,function(e){if("%%"===e)return"%";if(o>=i)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]"}default:return e}}):e}function rp(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 op(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}void 0!==Jf&&Jf.env;var ip=function(e){io(n,e);var t=so(n);function n(e,r){var o;return oe(this,n),E(co(o=t.call(this,"Async Validation Error")),"errors",void 0),E(co(o),"fields",void 0),o.errors=e,o.fields=r,o}return ae(n)}(Zf(Error));function ap(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,M(e[n]||[]))}),t}(e);op(a,n,function(e){return r(e),e.length?i(new ip(e,tp(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise(function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new ip(u,tp(u))):t(o)};l.length||(r(u),t(o)),l.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?op(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,M(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,d)})});return d.catch(function(e){return e}),d}function lp(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function cp(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===O(r)&&"object"===O(e[n])?e[n]=A(A({},e[n]),r):e[n]=r}return e}var sp="enum";const up=function(e,t,n,r,o){e[sp]=Array.isArray(e[sp])?e[sp]:[],-1===e[sp].indexOf(t)&&r.push(np(o.messages[sp],e.fullField,e[sp].join(", ")))};const dp=function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(np(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(np(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}};const fp=function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(np(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(np(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(np(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(np(o.messages[s].range,e.fullField,e.min,e.max))};const pp=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!rp(t,i||e.type)||r.push(np(o.messages.required,e.fullField))};var hp;var mp=/^(([^<>()\[\]\\.,;:\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,}))$/,vp=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,gp={integer:function(e){return gp.number(e)&&parseInt(e,10)===e},float:function(e){return gp.number(e)&&!gp.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"===O(e)&&!gp.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(mp)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(hp)return hp;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(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=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return hp=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(vp)}};const bp=function(e,t,n,r,o){if(e.required&&void 0===t)pp(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?gp[i](t)||r.push(np(o.messages.types[i],e.fullField,e.type)):i&&O(t)!==e.type&&r.push(np(o.messages.types[i],e.fullField,e.type))}};const yp=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(np(o.messages.whitespace,e.fullField))},xp={required:pp,whitespace:yp,type:bp,range:fp,enum:up,pattern:dp};const Sp=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t)&&!e.required)return n();xp.required(e,t,r,i,o)}n(i)};const Cp=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();xp.required(e,t,r,i,o,"array"),null!=t&&(xp.type(e,t,r,i,o),xp.range(e,t,r,i,o))}n(i)};const Op=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t)&&!e.required)return n();xp.required(e,t,r,i,o),void 0!==t&&xp.type(e,t,r,i,o)}n(i)};const kp=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t,"date")&&!e.required)return n();var a;if(xp.required(e,t,r,i,o),!rp(t,"date"))a=t instanceof Date?t:new Date(t),xp.type(e,a,r,i,o),a&&xp.range(e,a.getTime(),r,i,o)}n(i)};const Ep=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t)&&!e.required)return n();xp.required(e,t,r,i,o),void 0!==t&&xp.enum(e,t,r,i,o)}n(i)};const jp=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t)&&!e.required)return n();xp.required(e,t,r,i,o),void 0!==t&&(xp.type(e,t,r,i,o),xp.range(e,t,r,i,o))}n(i)};const $p=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t)&&!e.required)return n();xp.required(e,t,r,i,o),void 0!==t&&(xp.type(e,t,r,i,o),xp.range(e,t,r,i,o))}n(i)};const Pp=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t)&&!e.required)return n();xp.required(e,t,r,i,o),void 0!==t&&xp.type(e,t,r,i,o)}n(i)};const Np=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),rp(t)&&!e.required)return n();xp.required(e,t,r,i,o),void 0!==t&&(xp.type(e,t,r,i,o),xp.range(e,t,r,i,o))}n(i)};const _p=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t)&&!e.required)return n();xp.required(e,t,r,i,o),void 0!==t&&xp.type(e,t,r,i,o)}n(i)};const Ip=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t,"string")&&!e.required)return n();xp.required(e,t,r,i,o),rp(t,"string")||xp.pattern(e,t,r,i,o)}n(i)};const Mp=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t)&&!e.required)return n();xp.required(e,t,r,i,o),rp(t)||xp.type(e,t,r,i,o)}n(i)};const Tp=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":O(t);xp.required(e,t,r,i,o,a),n(i)};const Ap=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t,"string")&&!e.required)return n();xp.required(e,t,r,i,o,"string"),rp(t,"string")||(xp.type(e,t,r,i,o),xp.range(e,t,r,i,o),xp.pattern(e,t,r,i,o),!0===e.whitespace&&xp.whitespace(e,t,r,i,o))}n(i)};const Rp=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(rp(t,i)&&!e.required)return n();xp.required(e,t,r,a,o,i),rp(t,i)||xp.type(e,t,r,a,o)}n(a)},Dp={string:Ap,method:Pp,number:Np,boolean:Op,regexp:Mp,integer:$p,float:jp,array:Cp,object:_p,enum:Ep,pattern:Ip,date:kp,url:Rp,hex:Rp,email:Rp,required:Tp,any:Sp};var Lp=function(){function e(t){oe(this,e),E(this,"rules",null),E(this,"_messages",Qf),this.define(t)}return ae(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==O(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]})}},{key:"messages",value:function(e){return e&&(this._messages=cp(Xf(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===Qf&&(a=Xf()),cp(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach(function(e){var o=n.rules[e],i=r[e];o.forEach(function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=A({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":O(i)))),(a="function"==typeof a?{validator:a}:A({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))})});var c={};return ap(l,o,function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==O(a.fields)&&"object"!==O(a.defaultField));function s(e,t){return A(A({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(M(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(lp(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(lp(a,r)):o.error&&(d=[o.error(a,np(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map(function(e){f[e]=a.defaultField}),f=A(A({},f),t.rule.fields);var p={};Object.keys(f).forEach(function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))});var h=new e(p);h.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),h.validate(t.value,t.rule.options||o,function(e){var t=[];d&&d.length&&t.push.apply(t,M(d)),e&&e.length&&t.push.apply(t,M(e)),n(t.length?t:null)})}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout(function(){throw e},0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,M(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=tp(t),i(t,n)):i(null,r)}(e)},r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Dp.hasOwnProperty(e.type))throw new Error(np("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Dp.required:Dp[this.getType(e)]||void 0}}]),e}();E(Lp,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Dp[e]=t}),E(Lp,"warning",function(){}),E(Lp,"messages",Qf),E(Lp,"validators",Dp);var qp="'${name}' is not a valid ${type}",zp={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:qp,method:qp,array:qp,object:qp,number:qp,date:qp,boolean:qp,integer:qp,float:qp,regexp:qp,email:qp,url:qp,hex:qp},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Bp=Lp;function Hp(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]})}var Fp="CODE_LOGIC_ERROR";function Wp(e,t,n,r,o){return Kp.apply(this,arguments)}function Kp(){return Kp=Zi(Xi().mark(function e(t,r,o,i,a){var l,c,s,u,d,f,p,h,m;return Xi().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=A({},o)).ruleIndex,Bp.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Fp)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new Bp(E({},t,[l])),d=cn(zp,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(E({},t,r),A({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map(function(e,t){var r=e.message,o=r===Fp?d.default:r;return n.isValidElement(o)?n.cloneElement(o,{key:"error_".concat(t)}):o}));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(r.map(function(e,n){return Wp("".concat(t,".").concat(n),e,s,i,a)}));case 21:return p=e.sent,e.abrupt("return",p.reduce(function(e,t){return[].concat(M(e),M(t))},[]));case 23:return h=A(A({},o),{},{name:t,enum:(o.enum||[]).join(", ")},a),m=f.map(function(e){return"string"==typeof e?Hp(e,h):e}),e.abrupt("return",m);case 26:case"end":return e.stop()}},e,null,[[10,15]])})),Kp.apply(this,arguments)}function Up(e,t,n,r,o,i){var a,l=e.join("."),c=n.map(function(e,t){var n=e.validator,r=A(A({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){ne(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)})});o=i&&"function"==typeof i.then&&"function"==typeof i.catch,ne(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1});if(!0===o)a=new Promise(function(){var e=Zi(Xi().mark(function e(n,o){var a,s,u;return Xi().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Wp(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map(function(e){return Wp(l,t,e,r,i).then(function(t){return{errors:t,rule:e}})});a=(o?function(e){return Gp.apply(this,arguments)}(s):function(e){return Vp.apply(this,arguments)}(s)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function Vp(){return(Vp=Zi(Xi().mark(function e(t){return Xi().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,M(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Gp(){return(Gp=Zi(Xi().mark(function e(t){var n;return Xi().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Yp(e){return Yf(e)}function Xp(e,t){var n={};return t.forEach(function(t){var r=nn(e,t);n=on(n,t,r)}),n}function Qp(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return Zp(t,e,n)})}function Zp(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 Jp(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===O(t.target)&&e in t.target?t.target[e]:t}function eh(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(M(e.slice(0,n)),[o],M(e.slice(n,t)),M(e.slice(t+1,r))):i<0?[].concat(M(e.slice(0,t)),M(e.slice(t+1,n+1)),[o],M(e.slice(n+1,r))):e}var th=["name"],nh=[];function rh(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var oh=function(e){io(r,e);var t=so(r);function r(e){var o;(oe(this,r),E(co(o=t.call(this,e)),"state",{resetCount:0}),E(co(o),"cancelRegisterFunc",null),E(co(o),"mounted",!1),E(co(o),"touched",!1),E(co(o),"dirty",!1),E(co(o),"validatePromise",void 0),E(co(o),"prevValidating",void 0),E(co(o),"errors",nh),E(co(o),"warnings",nh),E(co(o),"cancelRegister",function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Yp(r)),o.cancelRegisterFunc=null}),E(co(o),"getNamePath",function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(M(void 0===n?[]:n),M(t)):[]}),E(co(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})}),E(co(o),"refresh",function(){o.mounted&&o.setState(function(e){return{resetCount:e.resetCount+1}})}),E(co(o),"metaCache",null),E(co(o),"triggerMetaEvent",function(e){var t=o.props.onMetaChange;if(t){var n=A(A({},o.getMeta()),{},{destroy:e});re(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null}),E(co(o),"onStoreChange",function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(s),p=t&&Qp(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||re(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=nh,o.warnings=nh,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=nh,o.warnings=nh,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&rh(i,e,s,d,f,n))return void o.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(o.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(o.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(o.errors=h.errors||nh),"warnings"in h&&(o.warnings=h.warnings||nh),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in h&&Qp(t,u,!0))return void o.reRender();if(i&&!u.length&&rh(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Yp).some(function(e){return Qp(n.relatedFields,e)}))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&rh(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()}),E(co(o),"validateRules",function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(Zi(Xi().mark(function r(){var a,l,s,u,d,f,p;return Xi().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(a=o.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||Yf(t).includes(i)})),!d||!i){r.next=10;break}return r.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=Up(t,n,f,e,s,u)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nh;if(o.validatePromise===c){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,i=void 0===o?nh:o;t?r.push.apply(r,M(i)):n.push.apply(n,M(i))}),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}}),r.abrupt("return",p);case 13:case"end":return r.stop()}},r)})));return l||(o.validatePromise=c,o.dirty=!0,o.errors=nh,o.warnings=nh,o.triggerMetaEvent(),o.reRender()),c}),E(co(o),"isFieldValidating",function(){return!!o.validatePromise}),E(co(o),"isFieldTouched",function(){return o.touched}),E(co(o),"isFieldDirty",function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Kf).getInitialValue)(o.getNamePath())}),E(co(o),"getErrors",function(){return o.errors}),E(co(o),"getWarnings",function(){return o.warnings}),E(co(o),"isListField",function(){return o.props.isListField}),E(co(o),"isList",function(){return o.props.isList}),E(co(o),"isPreserve",function(){return o.props.preserve}),E(co(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}}),E(co(o),"getOnlyChild",function(e){if("function"==typeof e){var t=o.getMeta();return A(A({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var r=Dc(e);return 1===r.length&&n.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}}),E(co(o),"getValue",function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return nn(e||t(!0),n)}),E(co(o),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,h=u.getFieldsValue,m=p(Kf).dispatch,v=o.getValue(),g=s||function(e){return E({},c,e)},b=e[r],y=void 0!==n?g(v):{};var x=A(A({},e),y);return x[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):Jp.apply(void 0,[c].concat(n)),l&&(e=l(e,v,h(!0))),e!==v&&m({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},Yf(d||[]).forEach(function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&m({type:"validateField",namePath:f,triggerName:e})}}),x}),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(Kf).initEntityValue)(co(o));return o}return ae(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Kf).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),i=o.child;return o.isFunction?e=i:n.isValidElement(i)?e=n.cloneElement(i,this.getControlled(i.props)):(ne(!i,"`children` of Field is not validate ReactElement."),e=i),n.createElement(n.Fragment,{key:t},e)}}]),r}(n.Component);E(oh,"contextType",Vf),E(oh,"defaultProps",{trigger:"onChange",valuePropName:"value"});const ih=function(e){var t,r=e.name,o=eo(e,th),i=n.useContext(Vf),a=n.useContext(Gf),l=void 0!==r?Yp(r):void 0,c=null!==(t=o.isListField)&&void 0!==t?t:!!a,s="keep";return c||(s="_".concat((l||[]).join("_"))),n.createElement(oh,Ve({key:s,name:l,isListField:c},o,{fieldContext:i}))};const ah=function(e){var t=e.name,r=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=n.useContext(Vf),s=n.useContext(Gf),u=n.useRef({keys:[],id:0}).current,d=n.useMemo(function(){var e=Yp(c.prefixName)||[];return[].concat(M(e),M(Yp(t)))},[c.prefixName,t]),f=n.useMemo(function(){return A(A({},c),{},{prefixName:d})},[c,d]),p=n.useMemo(function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}},[d]);return"function"!=typeof o?(ne(!1,"Form.List only accepts function as children."),null):n.createElement(Gf.Provider,{value:p},n.createElement(Vf.Provider,{value:f},n.createElement(ih,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:null!=l?l:!!s},function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(M(u.keys.slice(0,t)),[u.id],M(u.keys.slice(t))),i([].concat(M(n.slice(0,t)),[e],M(n.slice(t))))):(u.keys=[].concat(M(u.keys),[u.id]),i([].concat(M(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter(function(e,t){return!n.has(t)}),i(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||(u.keys=eh(u.keys,e,t),i(eh(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map(function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}}),s,t)})))};var lh="__@field_split__";function ch(e){return e.map(function(e){return"".concat(O(e),":").concat(e)}).join(lh)}var sh=function(){function e(){oe(this,e),E(this,"kvs",new Map)}return ae(e,[{key:"set",value:function(e,t){this.kvs.set(ch(e),t)}},{key:"get",value:function(e){return this.kvs.get(ch(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(ch(e))}},{key:"map",value:function(e){return M(this.kvs.entries()).map(function(t){var n=_(t,2),r=n[0],o=n[1],i=r.split(lh);return e({key:i.map(function(e){var t=_(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r}),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}();const uh=sh;var dh=["name"],fh=ae(function e(t){var n=this;oe(this,e),E(this,"formHooked",!1),E(this,"forceRootUpdate",void 0),E(this,"subscribable",!0),E(this,"store",{}),E(this,"fieldEntities",[]),E(this,"initialValues",{}),E(this,"callbacks",{}),E(this,"validateMessages",null),E(this,"preserve",null),E(this,"lastValidatePromise",null),E(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}}),E(this,"getInternalHooks",function(e){return e===Kf?(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}):(ne(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),E(this,"useSubscribe",function(e){n.subscribable=e}),E(this,"prevWithoutPreserves",null),E(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=cn(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=on(o,n,nn(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),E(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new uh;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),E(this,"getInitialValue",function(e){var t=nn(n.initialValues,e);return e.length?cn(t):t}),E(this,"setCallbacks",function(e){n.callbacks=e}),E(this,"setValidateMessages",function(e){n.validateMessages=e}),E(this,"setPreserve",function(e){n.preserve=e}),E(this,"watchList",[]),E(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),E(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)})}}),E(this,"timeoutId",null),E(this,"warningUnhooked",function(){0}),E(this,"updateStore",function(e){n.store=e}),E(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),E(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new uh;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),E(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=Yp(e);return t.get(n)||{INVALIDATE_NAME_PATH:Yp(e)}})}),E(this,"getFieldsValue",function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===O(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach(function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)}),Xp(n.store,l.map(Yp))}),E(this,"getFieldValue",function(e){n.warningUnhooked();var t=Yp(e);return nn(n.store,t)}),E(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:Yp(e[n]),errors:[],warnings:[]}})}),E(this,"getFieldError",function(e){n.warningUnhooked();var t=Yp(e);return n.getFieldsError([t])[0].errors}),E(this,"getFieldWarning",function(e){n.warningUnhooked();var t=Yp(e);return n.getFieldsError([t])[0].warnings}),E(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Yp),l=!1):(o=null,l=i):(o=i.map(Yp),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every(function(e){return s(e)||e.isList()}):c.some(s);var u=new uh;o.forEach(function(e){u.set(e,[])}),c.forEach(function(e){var t=e.getNamePath();o.forEach(function(n){n.every(function(e,n){return t[n]===e})&&u.update(n,function(t){return[].concat(M(t),[e])})})});var d=function(e){return e.some(s)},f=u.map(function(e){return e.value});return l?f.every(d):f.some(d)}),E(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),E(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(Yp);return t.some(function(e){var t=e.getNamePath();return Qp(r,t)&&e.isFieldValidating()})}),E(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),E(this,"resetWithFieldInitialValue",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new uh,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,M(M(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))ne(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)ne(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(on(n.store,o,M(i)[0].value))}}}})}),E(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(cn(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Yp);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(on(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),E(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=eo(e,dh),a=Yp(o);r.push(a),"value"in i&&n.updateStore(on(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}),n.notifyWatch(r)}),E(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=A(A({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),E(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===nn(n.store,r)&&n.updateStore(on(n.store,r,t))}}),E(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),E(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 i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!Zp(e.getNamePath(),t)})){var l=n.store;n.updateStore(on(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}}),E(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,i=e.triggerName;n.validateFields([o],{triggerName:i})}}),E(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=A(A({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),E(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(M(r))}),r}),E(this,"updateValue",function(e,t){var r=Yp(e),o=n.store;n.updateStore(on(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Xp(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(M(i)))}),E(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=cn(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),E(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),E(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new uh;n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=Yp(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}),E(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new uh;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){var n=t.name;return Qp(e,n)});a.length&&r(a,o)}}),E(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 i=!!r,a=i?r.map(Yp):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach(function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||Qp(a,t,d)){var r=e.validateRules(A({validateMessages:A(A({},zp),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,M(n)):r.push.apply(r,M(n))}),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))})})}):Promise.resolve([])}(l);n.lastValidatePromise=p,p.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 h=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})});h.catch(function(e){return e});var m=a.filter(function(e){return s.has(e.join(c))});return n.triggerOnFieldsChange(m),h}),E(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});const ph=function(e){var t=n.useRef(),r=_(n.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new fh(function(){r({})});t.current=o.getForm()}return[t.current]};var hh=n.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const mh=hh;var vh=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const gh=function(e,t){var r=e.name,o=e.initialValues,i=e.fields,a=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,h=e.onValuesChange,m=e.onFieldsChange,v=e.onFinish,g=e.onFinishFailed,b=e.clearOnDestroy,y=eo(e,vh),x=n.useRef(null),w=n.useContext(mh),S=_(ph(a),1)[0],C=S.getInternalHooks(Kf),k=C.useSubscribe,E=C.setInitialValues,j=C.setCallbacks,$=C.setValidateMessages,P=C.setPreserve,N=C.destroyForm;n.useImperativeHandle(t,function(){return A(A({},S),{},{nativeElement:x.current})}),n.useEffect(function(){return w.registerForm(r,S),function(){w.unregisterForm(r)}},[w,S,r]),$(A(A({},w.validateMessages),d)),j({onValuesChange:h,onFieldsChange:function(e){if(w.triggerFormChange(r,e),m){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];m.apply(void 0,[e].concat(n))}},onFinish:function(e){w.triggerFormFinish(r,e),v&&v(e)},onFinishFailed:g}),P(l);var I,T=n.useRef(null);E(o,!T.current),T.current||(T.current=!0),n.useEffect(function(){return function(){return N(b)}},[]);var R="function"==typeof c;R?I=c(S.getFieldsValue(!0),S):I=c;k(!R);var D=n.useRef();n.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==O(e)||"object"!==O(t))return!1;var n=Object.keys(e),r=Object.keys(t);return M(new Set([].concat(n,r))).every(function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o})})(D.current||[],i||[])||S.setFields(i||[]),D.current=i},[i,S]);var L=n.useMemo(function(){return A(A({},S),{},{validateTrigger:p})},[S,p]),q=n.createElement(Gf.Provider,{value:null},n.createElement(Vf.Provider,{value:L},I));return!1===u?q:n.createElement(u,Ve({},y,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),S.submit()},onReset:function(e){var t;e.preventDefault(),S.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),q)};function bh(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var yh=function(){};const xh=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t[0],i=t[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=_((0,n.useState)(),2),u=s[0],d=s[1],f=(0,n.useMemo)(function(){return bh(u)},[u]),p=(0,n.useRef)(f);p.current=f;var h=(0,n.useContext)(Vf),m=c||h,v=m&&m._init,g=Yp(o),b=(0,n.useRef)(g);return b.current=g,yh(g),(0,n.useEffect)(function(){if(v){var e=m.getFieldsValue,t=(0,m.getInternalHooks)(Kf).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):nn(n,b.current)},r=t(function(e,t){var r=n(e,t),o=bh(r);p.current!==o&&(p.current=o,d(r))}),i=n(e(),e(!0));return u!==i&&d(i),r}},[v]),u};var wh=n.forwardRef(gh);wh.FormProvider=function(e){var t=e.validateMessages,r=e.onFormChange,o=e.onFormFinish,i=e.children,a=n.useContext(hh),l=n.useRef({});return n.createElement(hh.Provider,{value:A(A({},a),{},{validateMessages:A(A({},a.validateMessages),t),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=A(A({},l.current),{},E({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=A({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},wh.Field=ih,wh.List=ah,wh.useForm=ph,wh.useWatch=xh;const Sh=n.createContext({});const Ch=({children:e,status:t,override:r})=>{const o=n.useContext(Sh),i=n.useMemo(()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,r,o]);return n.createElement(Sh.Provider,{value:i},e)},Oh=n.createContext(void 0),kh=e=>{const{space:t,form:r,children:o}=e;if(null==o)return null;let i=o;return r&&(i=n.createElement(Ch,{override:!0,status:!0},i)),t&&(i=n.createElement(Kc,null,i)),i};function Eh(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,h=2*o-0,m=i,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1);return{arrowShadowWidth:v,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${h} ${m} Z')`,arrowPolygon:`polygon(${g}px 100%, 50% ${g}px, ${2*o-g}px 100%, ${g}px 100%)`}}const jh=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,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:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${$e(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function $h(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Ph(e,t){return e?t:{}}function Nh(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={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"},jh(e,t,o)),{"&:before":{background:t}})]},Ph(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${$e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ph(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${$e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ph(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Ph(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const _h={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"]}},Ih={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"]}},Mh=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Th(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(_h).forEach(e=>{const s=r&&Ih[e]||_h[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Mh.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=$h({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},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),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")}),c}const Ah=e=>({animationDuration:e,animationFillMode:"both"}),Rh=e=>({animationDuration:e,animationFillMode:"both"}),Dh=(e,t,n,r,o=!1)=>{const i=o?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},Ah(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Rh(r)),{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"}}},Lh=new Zt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qh=new Zt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),zh=new Zt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Bh=new Zt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Hh=new Zt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Fh=new Zt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Wh={zoom:{inKeyframes:Lh,outKeyframes:qh},"zoom-big":{inKeyframes:zh,outKeyframes:Bh},"zoom-big-fast":{inKeyframes:zh,outKeyframes:Bh},"zoom-left":{inKeyframes:new Zt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Zt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Zt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Zt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Hh,outKeyframes:Fh},"zoom-down":{inKeyframes:new Zt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Zt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Kh=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Wh[t];return[Dh(r,o,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}}]};function Uh(e,t){return Qc.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const Vh=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:s,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,h=t(a).add(p).add(f).equal(),m=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:m,minHeight:c,padding:`${$e(e.calc(u).div(2).equal())} ${$e(d)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:s,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"}}),Uh(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}}))),{"&-rtl":{direction:"rtl"}})},Nh(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Gh=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},$h({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Eh($l(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Yh=(e,t=!0)=>{const n=ql("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=$l(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Vh(o),Kh(e,"zoom-big-fast")]},Gh,{resetStyle:!1,injectStyle:t});return n(e)},Xh=Qc.map(e=>`${e}-inverse`),Qh=["success","processing","error","default","warning"];function Zh(e,t=!0){return t?[].concat(M(Xh),M(Qc)).includes(e):Qc.includes(e)}function Jh(e,t){const n=Zh(t),r=Rr()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const em=e=>{const{prefixCls:t,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=n.useContext(x),s=c("tooltip",t),[u,d,f]=Yh(s),p=Jh(s,a),h=p.arrowStyle,m=Object.assign(Object.assign({},l),p.overlayStyle),v=Rr()(d,f,s,`${s}-pure`,`${s}-placement-${o}`,r,p.className);return u(n.createElement("div",{className:v,style:h},n.createElement("div",{className:`${s}-arrow`}),n.createElement(bd,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:m}),i)))};var tm=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nm=n.forwardRef((e,t)=>{var r,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,color:c,overlayInnerStyle:s,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:h,arrow:m=!0,title:v,overlay:g,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0,motion:w,getPopupContainer:S,placement:O="top",mouseEnterDelay:k=.1,mouseLeaveDelay:E=.1,overlayStyle:j,rootClassName:$,overlayClassName:P,styles:N,classNames:_}=e,I=tm(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),M=!!m,[,T]=yi(),{getPopupContainer:A,getPrefixCls:R,direction:D,className:L,style:q,classNames:z,styles:B}=C("tooltip"),H=dn("Tooltip"),F=n.useRef(null),W=()=>{var e;null===(e=F.current)||void 0===e||e.forceAlign()};n.useImperativeHandle(t,()=>{var e,t;return{forceAlign:W,forcePopupAlign:()=>{H.deprecated(!1,"forcePopupAlign","forceAlign"),W()},nativeElement:null===(e=F.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=F.current)||void 0===t?void 0:t.popupElement}});const[K,U]=mo(!1,{value:null!==(r=e.open)&&void 0!==r?r:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),V=!v&&!g&&0!==v,G=n.useMemo(()=>{var e,t;let n=y;return"object"==typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:y),b||Th({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:M?T.sizePopupArrow:0,borderRadius:T.borderRadius,offset:T.marginXXS,visibleFirst:!0})},[y,m,b,T]),Y=n.useMemo(()=>0===v?v:g||v||"",[g,v]),X=n.createElement(kh,{space:!0},"function"==typeof Y?Y():Y),Q=R("tooltip",i),Z=R(),J=e["data-popover-inject"];let ee=K;"open"in e||"visible"in e||!V||(ee=!1);const te=n.isValidElement(u)&&!Oc(u)?u:n.createElement("span",null,u),ne=te.props,re=ne.className&&"string"!=typeof ne.className?ne.className:Rr()(ne.className,a||`${Q}-open`),[oe,ie,ae]=Yh(Q,!J),le=Jh(Q,c),ce=le.arrowStyle,se=Rr()(P,{[`${Q}-rtl`]:"rtl"===D},le.className,$,ie,ae,L,z.root,null==_?void 0:_.root),ue=Rr()(z.body,null==_?void 0:_.body),[de,fe]=vl("Tooltip",I.zIndex),pe=n.createElement(Wf,Object.assign({},I,{zIndex:de,showArrow:M,placement:O,mouseEnterDelay:k,mouseLeaveDelay:E,prefixCls:Q,classNames:{root:se,body:ue},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ce),B.root),q),j),null==N?void 0:N.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},B.body),s),null==N?void 0:N.body),le.overlayStyle)},getTooltipContainer:S||l||A,ref:F,builtinPlacements:G,overlay:X,visible:ee,onVisibleChange:t=>{var n,r;U(!V&&t),V||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:f,arrowContent:n.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:Zs(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=h?h:!!p}),ee?Ec(te,{className:re}):te);return oe(n.createElement(dl.Provider,{value:fe},pe))}),rm=nm;rm._InternalPanelDoNotUseOrYouWillBeFired=em;const om=rm;function im(e){return!!(null==e?void 0:e.then)}const am=e=>{const{type:t,children:r,prefixCls:o,buttonProps:i,close:a,autoFocus:l,emitEvent:c,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=n.useRef(!1),p=n.useRef(null),[h,m]=po(!1),v=(...e)=>{null==a||a.apply(void 0,e)};n.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=p.current)||void 0===e||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[]);return n.createElement(od,Object.assign({},es(t),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void v();let t;if(c){if(t=d(e),u&&!im(t))return f.current=!1,void v(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!im(t))return void v();(e=>{im(e)&&(m(!0),e.then((...e)=>{m(!1,!0),v.apply(void 0,e),f.current=!1},e=>{if(m(!1,!0),f.current=!1,!(null==s?void 0:s()))return Promise.reject(e)}))})(t)},loading:h,prefixCls:o},i,{ref:p}),r)},lm=n.createContext({}),{Provider:cm}=lm,sm=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:r,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:c,onConfirm:s}=(0,n.useContext)(lm);return i?n.createElement(am,{isSilent:o,actionFn:c,close:(...e)=>{null==l||l.apply(void 0,e),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},r):null},um=()=>{const{autoFocusButton:e,close:t,isSilent:r,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:c,onOk:s}=(0,n.useContext)(lm);return n.createElement(am,{isSilent:r,type:l||"primary",actionFn:s,close:(...e)=>{null==t||t.apply(void 0,e),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${i}-btn`},a)};var dm=n.createContext({});function fm(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function pm(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}const hm=n.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var mm={width:0,height:0,overflow:"hidden",outline:"none"},vm={outline:"none"},gm=n.forwardRef(function(e,t){var r=e.prefixCls,o=e.className,i=e.style,a=e.title,l=e.ariaId,c=e.footer,s=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,h=e.bodyProps,m=e.modalRender,v=e.onMouseDown,g=e.onMouseUp,b=e.holderRef,y=e.visible,x=e.forceRender,w=e.width,S=e.height,C=e.classNames,k=e.styles,E=n.useContext(dm).panel,j=Xr(b,E),$=(0,n.useRef)(),P=(0,n.useRef)();n.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=$.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===P.current?$.current.focus({preventScroll:!0}):e||t!==$.current||P.current.focus({preventScroll:!0})}}});var N={};void 0!==w&&(N.width=w),void 0!==S&&(N.height=S);var _=c?n.createElement("div",{className:Rr()("".concat(r,"-footer"),null==C?void 0:C.footer),style:A({},null==k?void 0:k.footer)},c):null,I=a?n.createElement("div",{className:Rr()("".concat(r,"-header"),null==C?void 0:C.header),style:A({},null==k?void 0:k.header)},n.createElement("div",{className:"".concat(r,"-title"),id:l},a)):null,M=(0,n.useMemo)(function(){return"object"===O(s)&&null!==s?s:s?{closeIcon:null!=u?u:n.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[s,u,r]),T=Xa(M,!0),R="object"===O(s)&&s.disabled,D=s?n.createElement("button",Ve({type:"button",onClick:d,"aria-label":"Close"},T,{className:"".concat(r,"-close"),disabled:R}),M.closeIcon):null,L=n.createElement("div",{className:Rr()("".concat(r,"-content"),null==C?void 0:C.content),style:null==k?void 0:k.content},D,I,n.createElement("div",Ve({className:Rr()("".concat(r,"-body"),null==C?void 0:C.body),style:A(A({},p),null==k?void 0:k.body)},h),f),_);return n.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:j,style:A(A({},i),N),className:Rr()(r,o),onMouseDown:v,onMouseUp:g},n.createElement("div",{ref:$,tabIndex:0,style:vm},n.createElement(hm,{shouldUpdate:y||x},m?m(L):L)),n.createElement("div",{tabIndex:0,ref:P,style:mm}))});const bm=gm;var ym=n.forwardRef(function(e,t){var r=e.prefixCls,o=e.title,i=e.style,a=e.className,l=e.visible,c=e.forceRender,s=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,h=(0,n.useRef)(),m=_(n.useState(),2),v=m[0],g=m[1],b={};function y(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=pm(o),n.top+=pm(o,!0),n}(h.current);g(p&&(p.x||p.y)?"".concat(p.x-e.left,"px ").concat(p.y-e.top,"px"):"")}return v&&(b.transformOrigin=v),n.createElement(si,{visible:l,onVisibleChanged:f,onAppearPrepare:y,onEnterPrepare:y,forceRender:c,motionName:u,removeOnLeave:s,ref:h},function(l,c){var s=l.className,u=l.style;return n.createElement(bm,Ve({},e,{ref:t,title:o,ariaId:d,prefixCls:r,holderRef:c,style:A(A(A({},u),i),b),className:Rr()(a,s)}))})});ym.displayName="Content";const xm=ym;const wm=function(e){var t=e.prefixCls,r=e.style,o=e.visible,i=e.maskProps,a=e.motionName,l=e.className;return n.createElement(si,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(e,o){var a=e.className,c=e.style;return n.createElement("div",Ve({ref:o,style:A(A({},c),r),className:Rr()("".concat(t,"-mask"),a,l)},i))})};const Sm=function(e){var t=e.prefixCls,r=void 0===t?"rc-dialog":t,o=e.zIndex,i=e.visible,a=void 0!==i&&i,l=e.keyboard,c=void 0===l||l,s=e.focusTriggerAfterClose,u=void 0===s||s,d=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,h=e.onClose,m=e.afterOpenChange,v=e.afterClose,g=e.transitionName,b=e.animation,y=e.closable,x=void 0===y||y,w=e.mask,S=void 0===w||w,C=e.maskTransitionName,O=e.maskAnimation,k=e.maskClosable,E=void 0===k||k,j=e.maskStyle,$=e.maskProps,P=e.rootClassName,N=e.classNames,I=e.styles;var M=(0,n.useRef)(),T=(0,n.useRef)(),R=(0,n.useRef)(),D=_(n.useState(a),2),q=D[0],z=D[1],B=ff();function H(e){null==h||h(e)}var F=(0,n.useRef)(!1),W=(0,n.useRef)(),K=null;E&&(K=function(e){F.current?F.current=!1:T.current===e.target&&H(e)}),(0,n.useEffect)(function(){a&&(z(!0),L(T.current,document.activeElement)||(M.current=document.activeElement))},[a]),(0,n.useEffect)(function(){return function(){clearTimeout(W.current)}},[]);var U=A(A(A({zIndex:o},d),null==I?void 0:I.wrapper),{},{display:q?null:"none"});return n.createElement("div",Ve({className:Rr()("".concat(r,"-root"),P)},Xa(e,{data:!0})),n.createElement(wm,{prefixCls:r,visible:S&&a,motionName:fm(r,C,O),style:A(A({zIndex:o},j),null==I?void 0:I.mask),maskProps:$,className:null==N?void 0:N.mask}),n.createElement("div",Ve({tabIndex:-1,onKeyDown:function(e){if(c&&e.keyCode===Va.ESC)return e.stopPropagation(),void H(e);a&&e.keyCode===Va.TAB&&R.current.changeActive(!e.shiftKey)},className:Rr()("".concat(r,"-wrap"),f,null==N?void 0:N.wrapper),ref:T,onClick:K,style:U},p),n.createElement(xm,Ve({},e,{onMouseDown:function(){clearTimeout(W.current),F.current=!0},onMouseUp:function(){W.current=setTimeout(function(){F.current=!1})},ref:R,closable:x,ariaId:B,prefixCls:r,visible:a&&q,onClose:H,onVisibleChanged:function(e){if(e)L(T.current,document.activeElement)||null===(t=R.current)||void 0===t||t.focus();else{if(z(!1),S&&M.current&&u){try{M.current.focus({preventScroll:!0})}catch(e){}M.current=null}q&&(null==v||v())}var t;null==m||m(e)},motionName:fm(r,g,b)}))))};var Cm=function(e){var t=e.visible,r=e.getContainer,o=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,l=e.afterClose,c=e.panelRef,s=_(n.useState(t),2),u=s[0],d=s[1],f=n.useMemo(function(){return{panel:c}},[c]);return n.useEffect(function(){t&&d(!0)},[t]),o||!a||u?n.createElement(dm.Provider,{value:f},n.createElement(_d,{open:t||o||u,autoDestroy:!1,getContainer:r,autoLock:t||u},n.createElement(Sm,Ve({},e,{destroyOnClose:a,afterClose:function(){null==l||l(),d(!1)}})))):null};Cm.displayName="Dialog";const Om=Cm;const km=function(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t};function Em(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function jm(e){const{closable:t,closeIcon:r}=e||{};return n.useMemo(()=>{if(!t&&(!1===t||!1===r||null===r))return!1;if(void 0===t&&void 0===r)return null;let e={closeIcon:"boolean"!=typeof r&&null!==r?r:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,r])}const $m={};function Pm(e,t,r=$m){const o=jm(e),i=jm(t),[a]=su("global",bn.global),l="boolean"!=typeof o&&!!(null==o?void 0:o.disabled),c=n.useMemo(()=>Object.assign({closeIcon:n.createElement(Ra,null)},r),[r]),s=n.useMemo(()=>!1!==o&&(o?km(c,i,o):!1!==i&&(i?km(c,i):!!c.closable&&c)),[o,i,c]);return n.useMemo(()=>{if(!1===s)return[!1,null,l,{}];const{closeIconRender:e}=c,{closeIcon:t}=s;let r=t;const o=Xa(s,!0);return null!=r&&(e&&(r=e(t)),r=n.isValidElement(r)?n.cloneElement(r,Object.assign({"aria-label":a.close},o)):n.createElement("span",Object.assign({"aria-label":a.close},o),r)),[!0,r,l,o]},[s,c])}const Nm=e=>{const{prefixCls:t,className:r,style:o,size:i,shape:a}=e,l=Rr()({[`${t}-lg`]:"large"===i,[`${t}-sm`]:"small"===i}),c=Rr()({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),s=n.useMemo(()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return n.createElement("span",{className:Rr()(t,l,c,r),style:Object.assign(Object.assign({},s),o)})},_m=new Zt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Im=e=>({height:e,lineHeight:$e(e)}),Mm=e=>Object.assign({width:e},Im(e)),Tm=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:_m,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Am=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Im(e)),Rm=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Mm(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Mm(o)),[`${t}${t}-sm`]:Object.assign({},Mm(i))}},Dm=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Am(t,l)),[`${r}-lg`]:Object.assign({},Am(o,l)),[`${r}-sm`]:Object.assign({},Am(i,l))}},Lm=e=>Object.assign({width:e},Im(e)),qm=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Lm(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Lm(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},zm=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Bm=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Im(e)),Hm=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Bm(r,l))},zm(e,r,n)),{[`${n}-lg`]:Object.assign({},Bm(o,l))}),zm(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Bm(i,l))}),zm(e,i,`${n}-sm`))},Fm=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:m,blockRadius:v,paragraphLiHeight:g,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Mm(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Mm(s)),[`${n}-sm`]:Object.assign({},Mm(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:m,background:d,borderRadius:v,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:g,listStyle:"none",background:d,borderRadius:v,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Hm(e)),Rm(e)),Dm(e)),qm(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},Tm(e))}}},Wm=ql("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=$l(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Fm(r)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Km=e=>{const{prefixCls:t,className:r,rootClassName:o,active:i,shape:a="circle",size:l="default"}=e,{getPrefixCls:c}=n.useContext(x),s=c("skeleton",t),[u,d,f]=Wm(s),p=Sc(e,["prefixCls","className"]),h=Rr()(s,`${s}-element`,{[`${s}-active`]:i},r,o,d,f);return u(n.createElement("div",{className:h},n.createElement(Nm,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:l},p))))},Um=e=>{const{prefixCls:t,className:r,rootClassName:o,active:i,block:a=!1,size:l="default"}=e,{getPrefixCls:c}=n.useContext(x),s=c("skeleton",t),[u,d,f]=Wm(s),p=Sc(e,["prefixCls"]),h=Rr()(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:a},r,o,d,f);return u(n.createElement("div",{className:h},n.createElement(Nm,Object.assign({prefixCls:`${s}-button`,size:l},p))))},Vm=e=>{const{prefixCls:t,className:r,rootClassName:o,style:i,active:a}=e,{getPrefixCls:l}=n.useContext(x),c=l("skeleton",t),[s,u,d]=Wm(c),f=Rr()(c,`${c}-element`,{[`${c}-active`]:a},r,o,u,d);return s(n.createElement("div",{className:f},n.createElement("div",{className:Rr()(`${c}-image`,r),style:i},n.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},n.createElement("title",null,"Image placeholder"),n.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${c}-image-path`})))))},Gm=e=>{const{prefixCls:t,className:r,rootClassName:o,active:i,block:a,size:l="default"}=e,{getPrefixCls:c}=n.useContext(x),s=c("skeleton",t),[u,d,f]=Wm(s),p=Sc(e,["prefixCls"]),h=Rr()(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:a},r,o,d,f);return u(n.createElement("div",{className:h},n.createElement(Nm,Object.assign({prefixCls:`${s}-input`,size:l},p))))},Ym=e=>{const{prefixCls:t,className:r,rootClassName:o,style:i,active:a,children:l}=e,{getPrefixCls:c}=n.useContext(x),s=c("skeleton",t),[u,d,f]=Wm(s),p=Rr()(s,`${s}-element`,{[`${s}-active`]:a},d,r,o,f);return u(n.createElement("div",{className:p},n.createElement("div",{className:Rr()(`${s}-image`,r),style:i},l)))},Xm=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},Qm=e=>{const{prefixCls:t,className:r,style:o,rows:i=0}=e,a=Array.from({length:i}).map((t,r)=>n.createElement("li",{key:r,style:{width:Xm(r,e)}}));return n.createElement("ul",{className:Rr()(t,r),style:o},a)},Zm=({prefixCls:e,className:t,width:r,style:o})=>n.createElement("h3",{className:Rr()(e,t),style:Object.assign({width:r},o)});function Jm(e){return e&&"object"==typeof e?e:{}}const ev=e=>{const{prefixCls:t,loading:r,className:o,rootClassName:i,style:a,children:l,avatar:c=!1,title:s=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:h,className:m,style:v}=C("skeleton"),g=p("skeleton",t),[b,y,x]=Wm(g);if(r||!("loading"in e)){const e=!!c,t=!!s,r=!!u;let l,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,r)),Jm(c));l=n.createElement("div",{className:`${g}-header`},n.createElement(Nm,Object.assign({},e)))}if(t||r){let o,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,r)),Jm(s));o=n.createElement(Zm,Object.assign({},t))}if(r){const r=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Jm(u));i=n.createElement(Qm,Object.assign({},r))}p=n.createElement("div",{className:`${g}-content`},o,i)}const w=Rr()(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:d,[`${g}-rtl`]:"rtl"===h,[`${g}-round`]:f},m,o,i,y,x);return b(n.createElement("div",{className:w,style:Object.assign(Object.assign({},v),a)},l,p))}return null!=l?l:null};ev.Button=Um,ev.Avatar=Km,ev.Input=Gm,ev.Image=Vm,ev.Node=Ym;const tv=ev;function nv(){}const rv=n.createContext({add:nv,remove:nv});const ov=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:r}=(0,n.useContext)(lm);return n.createElement(od,Object.assign({onClick:r},e),t)},iv=()=>{const{confirmLoading:e,okButtonProps:t,okType:r,okTextLocale:o,onOk:i}=(0,n.useContext)(lm);return n.createElement(od,Object.assign({},es(r),{loading:e,onClick:i},t),o)};function av(e,t){return n.createElement("span",{className:`${e}-close-x`},t||n.createElement(Ra,{className:`${e}-close-icon`}))}const lv=e=>{const{okText:t,okType:r="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:l,okButtonProps:c,cancelButtonProps:s,footer:u}=e,[d]=su("Modal",Sn()),f={confirmLoading:i,okButtonProps:c,cancelButtonProps:s,okTextLocale:t||(null==d?void 0:d.okText),cancelTextLocale:o||(null==d?void 0:d.cancelText),okType:r,onOk:a,onCancel:l},p=n.useMemo(()=>f,M(Object.values(f)));let h;return"function"==typeof u||void 0===u?(h=n.createElement(n.Fragment,null,n.createElement(ov,null),n.createElement(iv,null)),"function"==typeof u&&(h=u(h,{OkBtn:iv,CancelBtn:ov})),h=n.createElement(cm,{value:p},h)):h=u,n.createElement(Er,{disabled:!1},h)},cv=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},sv=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i[`${r}${t}-${e}`]={display:"none"},i[`${r}-push-${e}`]={insetInlineStart:"auto"},i[`${r}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${e}`]={marginInlineStart:0},i[`${r}${t}-order-${e}`]={order:0}):(i[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],i[`${r}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},i[`${r}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},i[`${r}${t}-order-${e}`]={order:e});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),uv=ql("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"}}}},()=>({})),dv=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),fv=ql("Grid",e=>{const t=$l(e,{gridColumns:24}),n=dv(t);return delete n.xs,[cv(t),sv(t,""),sv(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${$e(t)})`]:Object.assign({},sv(e,n))}))(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({})),pv=new Zt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),hv=new Zt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),mv=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Dh(r,pv,hv,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]};function vv(e){return{position:e,inset:0}}const gv=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({},vv("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},vv("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:mv(e)}]},bv=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:`${$e(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Oi(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${$e(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:$e(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ei(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${$e(e.borderRadiusLG)} ${$e(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}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${$e(e.margin)} auto`}},[`${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"}}}]},yv=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},xv=e=>{const{componentCls:t}=e,n=dv(e);delete n.xs;const r=Object.keys(n).map(e=>({[`@media (min-width: ${$e(n[e])})`]:{width:`var(--${t.replace(".","")}-${e}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(M(r))}}},wv=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return $l(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,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Sv=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${$e(e.paddingMD)} ${$e(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${$e(e.padding)} ${$e(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${$e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${$e(e.paddingXS)} ${$e(e.padding)}`:0,footerBorderTop:e.wireframe?`${$e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${$e(e.borderRadiusLG)} ${$e(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${$e(2*e.padding)} ${$e(2*e.padding)} ${$e(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Cv=ql("Modal",e=>{const t=wv(e);return[bv(t),yv(t),gv(t),Kh(t,"zoom"),xv(t)]},Sv,{unitless:{titleLineHeight:!0}});var Ov=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let kv;const Ev=e=>{kv={x:e.pageX,y:e.pageY},setTimeout(()=>{kv=null},100)};D()&&window.document.documentElement&&document.documentElement.addEventListener("click",Ev,!0);const jv=e=>{const{prefixCls:t,className:r,rootClassName:o,open:i,wrapClassName:a,centered:l,getContainer:c,focusTriggerAfterClose:s=!0,style:u,visible:d,width:f=520,footer:p,classNames:h,styles:m,children:v,loading:g,confirmLoading:b,zIndex:y,mousePosition:w,onOk:S,onCancel:C,destroyOnHidden:O,destroyOnClose:k}=e,E=Ov(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:j,getPrefixCls:$,direction:P,modal:N}=n.useContext(x),_=e=>{b||null==C||C(e)};const I=$("modal",t),M=$(),T=ul(I),[A,R,D]=Cv(I,T),L=Rr()(a,{[`${I}-centered`]:null!=l?l:null==N?void 0:N.centered,[`${I}-wrap-rtl`]:"rtl"===P}),q=null===p||g?null:n.createElement(lv,Object.assign({},e,{onOk:e=>{null==S||S(e)},onCancel:_})),[z,B,H,F]=Pm(Em(e),Em(N),{closable:!0,closeIcon:n.createElement(Ra,{className:`${I}-close-icon`}),closeIconRender:e=>av(I,e)}),W=function(e){const t=n.useContext(rv),r=n.useRef(null);return fo(n=>{if(n){const o=e?n.querySelector(e):n;t.add(o),r.current=o}else t.remove(r.current)})}(`.${I}-content`),[K,U]=vl("Modal",y),[V,G]=n.useMemo(()=>f&&"object"==typeof f?[void 0,f]:[f,void 0],[f]),Y=n.useMemo(()=>{const e={};return G&&Object.keys(G).forEach(t=>{const n=G[t];void 0!==n&&(e[`--${I}-${t}-width`]="number"==typeof n?`${n}px`:n)}),e},[G]);return A(n.createElement(kh,{form:!0,space:!0},n.createElement(dl.Provider,{value:U},n.createElement(Om,Object.assign({width:V},E,{zIndex:K,getContainer:void 0===c?j:c,prefixCls:I,rootClassName:Rr()(R,o,D,T),footer:q,visible:null!=i?i:d,mousePosition:null!=w?w:kv,onClose:_,closable:z?Object.assign({disabled:H,closeIcon:B},F):z,closeIcon:B,focusTriggerAfterClose:s,transitionName:Zs(M,"zoom",e.transitionName),maskTransitionName:Zs(M,"fade",e.maskTransitionName),className:Rr()(R,r,null==N?void 0:N.className),style:Object.assign(Object.assign(Object.assign({},null==N?void 0:N.style),u),Y),classNames:Object.assign(Object.assign(Object.assign({},null==N?void 0:N.classNames),h),{wrapper:Rr()(L,null==h?void 0:h.wrapper)}),styles:Object.assign(Object.assign({},null==N?void 0:N.styles),m),panelRef:W,destroyOnClose:null!=O?O:k}),g?n.createElement(tv,{active:!0,title:!1,paragraph:{rows:4},className:`${I}-body-skeleton`}):v))))},$v=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:s}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:s},[`${u}-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()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${$e(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${$e(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Pv=Bl(["Modal","confirm"],e=>{const t=wv(e);return[$v(t)]},Sv,{order:-1e3});var Nv=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function _v(e){const{prefixCls:t,icon:r,okText:o,cancelText:i,confirmPrefixCls:a,type:l,okCancel:c,footer:s,locale:u}=e,d=Nv(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=r;if(!r&&null!==r)switch(l){case"info":f=n.createElement(Ha,null);break;case"success":f=n.createElement(Na,null);break;case"error":f=n.createElement(Ma,null);break;default:f=n.createElement(qa,null)}const p=null!=c?c:"confirm"===l,h=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[m]=su("Modal"),v=u||m,g=o||(p?null==v?void 0:v.okText:null==v?void 0:v.justOkText),b=i||(null==v?void 0:v.cancelText),y=Object.assign({autoFocusButton:h,cancelTextLocale:b,okTextLocale:g,mergedOkCancel:p},d),x=n.useMemo(()=>y,M(Object.values(y))),w=n.createElement(n.Fragment,null,n.createElement(sm,null),n.createElement(um,null)),S=void 0!==e.title&&null!==e.title,C=`${a}-body`;return n.createElement("div",{className:`${a}-body-wrapper`},n.createElement("div",{className:Rr()(C,{[`${C}-has-title`]:S})},f,n.createElement("div",{className:`${a}-paragraph`},S&&n.createElement("span",{className:`${a}-title`},e.title),n.createElement("div",{className:`${a}-content`},e.content))),void 0===s||"function"==typeof s?n.createElement(cm,{value:x},n.createElement("div",{className:`${a}-btns`},"function"==typeof s?s(w,{OkBtn:um,CancelBtn:sm}):w)):s,n.createElement(Pv,{prefixCls:t}))}const Iv=e=>{const{close:t,zIndex:r,maskStyle:o,direction:i,prefixCls:a,wrapClassName:l,rootPrefixCls:c,bodyStyle:s,closable:u=!1,onConfirm:d,styles:f}=e;const p=`${a}-confirm`,h=e.width||416,m=e.style||{},v=void 0===e.mask||e.mask,g=void 0!==e.maskClosable&&e.maskClosable,b=Rr()(p,`${p}-${e.type}`,{[`${p}-rtl`]:"rtl"===i},e.className),[,y]=yi(),x=n.useMemo(()=>void 0!==r?r:y.zIndexPopupBase+pl,[r,y]);return n.createElement(jv,Object.assign({},e,{className:b,wrapClassName:Rr()({[`${p}-centered`]:!!e.centered},l),onCancel:()=>{null==t||t({triggerCancel:!0}),null==d||d(!1)},title:"",footer:null,transitionName:Zs(c||"","zoom",e.transitionName),maskTransitionName:Zs(c||"","fade",e.maskTransitionName),mask:v,maskClosable:g,style:m,styles:Object.assign({body:s,mask:o},f),width:h,zIndex:x,closable:u}),n.createElement(_v,Object.assign({},e,{confirmPrefixCls:p})))};const Mv=e=>{const{rootPrefixCls:t,iconPrefixCls:r,direction:o,theme:i}=e;return n.createElement(Bi,{prefixCls:t,iconPrefixCls:r,direction:o,theme:i},n.createElement(Iv,Object.assign({},e)))},Tv=[];let Av="";function Rv(){return Av}const Dv=e=>{var t,r;const{prefixCls:o,getContainer:i,direction:a}=e,l=Sn(),c=(0,n.useContext)(x),s=Rv()||c.getPrefixCls(),u=o||`${s}-modal`;let d=i;return!1===d&&(d=void 0),n.createElement(Mv,Object.assign({},e,{rootPrefixCls:s,prefixCls:u,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=a?a:c.direction,locale:null!==(r=null===(t=c.locale)||void 0===t?void 0:t.Modal)&&void 0!==r?r:l,getContainer:d}))};function Lv(e){const t=Li();const r=document.createDocumentFragment();let o,i,a=Object.assign(Object.assign({},e),{close:s,open:!0});function l(...t){var n;var r;t.some(e=>null==e?void 0:e.triggerCancel)&&(null===(n=e.onCancel)||void 0===n||(r=n).call.apply(r,[e,()=>{}].concat(M(t.slice(1)))));for(let e=0;e<Tv.length;e++){if(Tv[e]===s){Tv.splice(e,1);break}}i()}function c(e){clearTimeout(o),o=setTimeout(()=>{const o=t.getPrefixCls(void 0,Rv()),a=t.getIconPrefixCls(),l=t.getTheme(),c=n.createElement(Dv,Object.assign({},e)),s=fa();i=s(n.createElement(Bi,{prefixCls:o,iconPrefixCls:a,theme:l},t.holderRender?t.holderRender(c):c),r)})}function s(...t){a=Object.assign(Object.assign({},a),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),l.apply(this,t)}}),a.visible&&delete a.visible,c(a)}return c(a),Tv.push(s),{destroy:s,update:function(e){a="function"==typeof e?e(a):Object.assign(Object.assign({},a),e),c(a)}}}function qv(e){return Object.assign(Object.assign({},e),{type:"warning"})}function zv(e){return Object.assign(Object.assign({},e),{type:"info"})}function Bv(e){return Object.assign(Object.assign({},e),{type:"success"})}function Hv(e){return Object.assign(Object.assign({},e),{type:"error"})}function Fv(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Wv(e){return t=>n.createElement(Bi,{theme:{token:{motion:!1,zIndexPopupBase:0}}},n.createElement(e,Object.assign({},t)))}const Kv=(e,t,r,o,i)=>Wv(a=>{const{prefixCls:l,style:c}=a,s=n.useRef(null),[u,d]=n.useState(0),[f,p]=n.useState(0),[h,m]=mo(!1,{value:a.open}),{getPrefixCls:v}=n.useContext(x),g=v(o||"select",l);n.useEffect(()=>{if(m(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;d(t.offsetHeight+8),p(t.offsetWidth)}),t=setInterval(()=>{var n;const r=i?`.${i(g)}`:`.${g}-dropdown`,o=null===(n=s.current)||void 0===n?void 0:n.querySelector(r);o&&(clearInterval(t),e.observe(o))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},c),{margin:0}),open:h,visible:h,getPopupContainer:()=>s.current});r&&(b=r(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:u,position:"relative",minWidth:f};return n.createElement("div",{ref:s,style:y},n.createElement(e,Object.assign({},b)))});var Uv=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Vv=Wv(e=>{const{prefixCls:t,className:r,closeIcon:o,closable:i,type:a,title:l,children:c,footer:s}=e,u=Uv(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=n.useContext(x),f=d(),p=t||d("modal"),h=ul(f),[m,v,g]=Cv(p,h),b=`${p}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:n.createElement(_v,Object.assign({},e,{prefixCls:p,confirmPrefixCls:b,rootPrefixCls:f,content:c}))}:{closable:null==i||i,title:l,footer:null!==s&&n.createElement(lv,Object.assign({},e)),children:c},m(n.createElement(bm,Object.assign({prefixCls:p,className:Rr()(v,`${p}-pure-panel`,a&&b,a&&`${b}-${a}`,r,g,h)},u,{closeIcon:av(p,o),closable:i},y)))});var Gv=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Yv=(e,t)=>{var r,{afterClose:o,config:i}=e,a=Gv(e,["afterClose","config"]);const[l,c]=n.useState(!0),[s,u]=n.useState(i),{direction:d,getPrefixCls:f}=n.useContext(x),p=f("modal"),h=f(),m=(...e)=>{var t;c(!1);var n;e.some(e=>null==e?void 0:e.triggerCancel)&&(null===(t=s.onCancel)||void 0===t||(n=t).call.apply(n,[s,()=>{}].concat(M(e.slice(1)))))};n.useImperativeHandle(t,()=>({destroy:m,update:e=>{u(t=>{const n="function"==typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));const v=null!==(r=s.okCancel)&&void 0!==r?r:"confirm"===s.type,[g]=su("Modal",bn.Modal);return n.createElement(Mv,Object.assign({prefixCls:p,rootPrefixCls:h},s,{close:m,open:l,afterClose:()=>{var e;o(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(v?null==g?void 0:g.okText:null==g?void 0:g.justOkText),direction:s.direction||d,cancelText:s.cancelText||(null==g?void 0:g.cancelText)},a))},Xv=n.forwardRef(Yv);let Qv=0;const Zv=n.memo(n.forwardRef((e,t)=>{const[r,o]=function(){const[e,t]=n.useState([]);return[e,n.useCallback(e=>(t(t=>[].concat(M(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]}();return n.useImperativeHandle(t,()=>({patchElement:o}),[]),n.createElement(n.Fragment,null,r)}));const Jv=function(){const e=n.useRef(null),[t,r]=n.useState([]);n.useEffect(()=>{if(t.length){M(t).forEach(e=>{e()}),r([])}},[t]);const o=n.useCallback(t=>function(o){var i;Qv+=1;const a=n.createRef();let l;const c=new Promise(e=>{l=e});let s,u=!1;const d=n.createElement(Xv,{key:`modal-${Qv}`,config:t(o),ref:a,afterClose:()=>{null==s||s()},isSilent:()=>u,onConfirm:e=>{l(e)}});s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d),s&&Tv.push(s);const f={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():r(t=>[].concat(M(t),[e]))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():r(e=>[].concat(M(e),[t]))},then:e=>(u=!0,c.then(e))};return f},[]);return[n.useMemo(()=>({info:o(zv),success:o(Bv),error:o(Hv),warning:o(qv),confirm:o(Fv)}),[]),n.createElement(Zv,{key:"modal-holder",ref:e})]};function eg(e){return Lv(qv(e))}const tg=jv;tg.useModal=Jv,tg.info=function(e){return Lv(zv(e))},tg.success=function(e){return Lv(Bv(e))},tg.error=function(e){return Lv(Hv(e))},tg.warning=eg,tg.warn=eg,tg.confirm=function(e){return Lv(Fv(e))},tg.destroyAll=function(){for(;Tv.length;){const e=Tv.pop();e&&e()}},tg.config=function({rootPrefixCls:e}){Av=e},tg._InternalPanelDoNotUseOrYouWillBeFired=Vv;const ng=tg;const rg={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"};var og=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:rg}))}; | |
| 110 | +/** */const ig=n.forwardRef(og);function ag(e){return["small","middle","large"].includes(e)}function lg(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const cg=["wrap","nowrap","wrap-reverse"],sg=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],ug=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];const dg=function(e,t){return Rr()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&cg.includes(n)}})(e,t)),((e,t)=>{const n={};return ug.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return sg.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n})(e,t)))},fg=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},pg=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},hg=e=>{const{componentCls:t}=e,n={};return cg.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},mg=e=>{const{componentCls:t}=e,n={};return ug.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},vg=e=>{const{componentCls:t}=e,n={};return sg.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},gg=ql("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=$l(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[fg(o),pg(o),hg(o),mg(o),vg(o)]},()=>({}),{resetStyle:!1});var bg=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yg=n.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:o,className:i,style:a,flex:l,gap:c,children:s,vertical:u=!1,component:d="div"}=e,f=bg(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:h,getPrefixCls:m}=n.useContext(x),v=m("flex",r),[g,b,y]=gg(v),w=null!=u?u:null==p?void 0:p.vertical,S=Rr()(i,o,null==p?void 0:p.className,v,b,y,dg(v,e),{[`${v}-rtl`]:"rtl"===h,[`${v}-gap-${c}`]:ag(c),[`${v}-vertical`]:w}),C=Object.assign(Object.assign({},null==p?void 0:p.style),a);return l&&(C.flex=l),c&&!ag(c)&&(C.gap=c),g(n.createElement(d,Object.assign({ref:t,className:S,style:C},Sc(f,["justify","wrap","align"])),s))});const xg=yg,wg=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return $l(e,{tagFontSize:o,tagLineHeight:$e(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Sg=e=>({defaultBg:new Pn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Cg=ql("Tag",e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Oi(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(wg(e)),Sg);var Og=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kg=n.forwardRef((e,t)=>{const{prefixCls:r,style:o,className:i,checked:a,onChange:l,onClick:c}=e,s=Og(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=n.useContext(x),f=u("tag",r),[p,h,m]=Cg(f),v=Rr()(f,`${f}-checkable`,{[`${f}-checkable-checked`]:a},null==d?void 0:d.className,i,h,m);return p(n.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},o),null==d?void 0:d.style),className:v,onClick:e=>{null==l||l(!a),null==c||c(e)}})))}),Eg=kg,jg=Bl(["Tag","preset"],e=>(e=>Uh(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})))(wg(e)),Sg);const $g=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Pg=Bl(["Tag","status"],e=>{const t=wg(e);return[$g(t,"success","Success"),$g(t,"processing","Info"),$g(t,"error","Error"),$g(t,"warning","Warning")]},Sg);var Ng=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _g=n.forwardRef((e,t)=>{const{prefixCls:r,className:o,rootClassName:i,style:a,children:l,icon:c,color:s,onClose:u,bordered:d=!0,visible:f}=e,p=Ng(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:m,tag:v}=n.useContext(x),[g,b]=n.useState(!0),y=Sc(p,["closeIcon","closable"]);n.useEffect(()=>{void 0!==f&&b(f)},[f]);const w=Zh(s),S=function(e){return Qh.includes(e)}(s),C=w||S,O=Object.assign(Object.assign({backgroundColor:s&&!C?s:void 0},null==v?void 0:v.style),a),k=h("tag",r),[E,j,$]=Cg(k),P=Rr()(k,null==v?void 0:v.className,{[`${k}-${s}`]:C,[`${k}-has-color`]:s&&!C,[`${k}-hidden`]:!g,[`${k}-rtl`]:"rtl"===m,[`${k}-borderless`]:!d},o,i,j,$),N=e=>{e.stopPropagation(),null==u||u(e),e.defaultPrevented||b(!1)},[,_]=Pm(Em(e),Em(v),{closable:!1,closeIconRender:e=>kc(e,n.createElement("span",{className:`${k}-close-icon`,onClick:N},e),e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),N(t)},className:Rr()(null==e?void 0:e.className,`${k}-close-icon`)}))}),I="function"==typeof p.onClick||l&&"a"===l.type,M=c||null,T=M?n.createElement(n.Fragment,null,M,l&&n.createElement("span",null,l)):l,A=n.createElement("span",Object.assign({},y,{ref:t,className:P,style:O}),T,_,w&&n.createElement(jg,{key:"preset",prefixCls:k}),S&&n.createElement(Pg,{key:"status",prefixCls:k}));return E(I?n.createElement(Ac,{component:"Tag"},A):A)}),Ig=_g;Ig.CheckableTag=Eg;const Mg=Ig;const Tg=function(e){var t=e.field,n=t.label,r=t.isPro;return n&&(0,i.jsx)("div",{className:"rtsb-field__label_wrap",style:{position:"relative"},children:(0,i.jsxs)(xg,{wrap:!0,gap:"small",children:[(0,i.jsx)("h6",{className:"rtsb-field__label",dangerouslySetInnerHTML:{__html:n}}),r?(0,i.jsx)(Mg,{style:{position:"absolute",right:0,marginRight:0},color:"red",children:"PRO"}):null]})})};function Ag(e){return Ag="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ag(e)}function Rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rg(Object(n),!0).forEach(function(t){Lg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lg(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ag(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ag(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ag(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Bg=function(e){var t,r,o,a,l=e.id,s=e.field,d=s.value,f=s.help,p=s.disabled,m=s.isPro,v=(0,n.useRef)(),g=qg(c(),2),b=(g[0],g[1]),y={};p?y.disabled=p||!1:m&&(y.disabled=m),(0,n.useEffect)(function(){var e=v.current.closest(".ant-modal-body");"active"===l&&("on"===d?e.classList.remove("is-disable"):e.classList.add("is-disable"))},[d]);var x=null===(t=e.field)||void 0===t?void 0:t.fieldType,w=null===(r=e.field)||void 0===r?void 0:r.parentId,S=null===(o=e.field)||void 0===o?void 0:o.index,C=null===(a=e.field)||void 0===a?void 0:a.repeaterData;if(l)return(0,i.jsxs)("div",{className:"rtsb-field rtsb-switch",ref:v,children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsx)(gd,Dg(Dg({},y),{},{checkedChildren:"On",unCheckedChildren:m?(0,i.jsx)("span",{className:"dashicons dashicons-lock"}):"Off",checked:"on"===d,onChange:function(e){b({type:h,id:l,value:e?"on":"off",fieldType:x,parentId:w,repeaterData:C,index:S}),e&&"active"===l&&b({type:u,value:{callSave:!0}})}}))}),f&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:f}})]})]})};function Hg(e){return $l(e,{inputAffixPadding:e.paddingXXS})}const Fg=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:m,controlOutline:v,colorErrorOutline:g,colorWarningOutline:b,colorBgContainer:y,inputFontSize:x,inputFontSizeLG:w,inputFontSizeSM:S}=e,C=x||n,O=S||C,k=w||l,E=Math.round((t-C*r)/2*10)/10-o,j=Math.round((i-O*r)/2*10)/10-o,$=Math.ceil((a-k*c)/2*10)/10-o;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(j,0),paddingBlockLG:Math.max($,0),paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${v}`,errorActiveShadow:`0 0 0 ${m}px ${g}`,warningActiveShadow:`0 0 0 ${m}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:k,inputFontSizeSM:O}},Wg=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Kg=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Wg($l(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Ug=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Vg=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ug(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Gg=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ug(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Kg(e))}),Vg(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Vg(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Yg=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Xg=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Yg(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Yg(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Kg(e))}})}),Qg=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Zg=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null==t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},Jg=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Zg(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),eb=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Kg(e))}),Jg(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Jg(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),tb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),nb=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},tb(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),tb(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),rb=(e,t)=>({background:e.colorBgContainer,borderWidth:`${$e(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),ob=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},rb(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),ib=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rb(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),ob(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ob(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),ab=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),lb=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${$e(t)} ${$e(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},cb=e=>({padding:`${$e(e.paddingBlockSM)} ${$e(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),sb=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${$e(e.paddingBlock)} ${$e(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},ab(e.colorTextPlaceholder)),{"&-lg":Object.assign({},lb(e)),"&-sm":Object.assign({},cb(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),ub=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},lb(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},cb(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${$e(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${$e(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${$e(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${$e(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${$e(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},db=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e)),sb(e)),Gg(e)),eb(e)),Qg(e)),ib(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},fb=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${$e(e.inputAffixPadding)}`}}}},pb=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,s=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},sb(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),fb(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[s]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},hb=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Oi(e)),ub(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Xg(e)),nb(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},mb=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},vb=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},gb=ql(["Input","Shared"],e=>{const t=$l(e,Hg(e));return[db(t),pb(t)]},Fg,{resetFont:!1}),bb=ql(["Input","Component"],e=>{const t=$l(e,Hg(e));return[hb(t),mb(t),vb(t),Yu(t)]},Fg,{resetFont:!1}),yb=e=>{const{getPrefixCls:t,direction:r}=(0,n.useContext)(x),{prefixCls:o,className:i}=e,a=t("input-group",o),l=t("input"),[c,s,u]=bb(l),d=Rr()(a,u,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===r},s,i),f=(0,n.useContext)(Sh),p=(0,n.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return c(n.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},n.createElement(Sh.Provider,{value:p},e.children)))};function xb(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function wb(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=xb(t,e,r)):n(o=xb(t,e,""))}}function Sb(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var Cb=n.forwardRef(function(e,t){var r,o,i,a=e.inputElement,l=e.children,c=e.prefixCls,s=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,h=e.style,m=e.disabled,v=e.readOnly,g=e.focused,b=e.triggerFocus,y=e.allowClear,x=e.value,w=e.handleReset,S=e.hidden,C=e.classes,k=e.classNames,j=e.dataAttrs,$=e.styles,P=e.components,N=e.onClear,_=null!=l?l:a,I=(null==P?void 0:P.affixWrapper)||"span",M=(null==P?void 0:P.groupWrapper)||"span",T=(null==P?void 0:P.wrapper)||"span",R=(null==P?void 0:P.groupAddon)||"span",D=(0,n.useRef)(null),L=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),q=(0,n.cloneElement)(_,{value:x,className:Rr()(null===(r=_.props)||void 0===r?void 0:r.className,!L&&(null==k?void 0:k.variant))||null}),z=(0,n.useRef)(null);if(n.useImperativeHandle(t,function(){return{nativeElement:z.current||D.current}}),L){var B=null;if(y){var H=!m&&!v&&x,F="".concat(c,"-clear-icon"),W="object"===O(y)&&null!=y&&y.clearIcon?y.clearIcon:"✖";B=n.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==w||w(e),null==N||N()},onMouseDown:function(e){return e.preventDefault()},className:Rr()(F,E(E({},"".concat(F,"-hidden"),!H),"".concat(F,"-has-suffix"),!!u))},W)}var K="".concat(c,"-affix-wrapper"),U=Rr()(K,E(E(E(E(E({},"".concat(c,"-disabled"),m),"".concat(K,"-disabled"),m),"".concat(K,"-focused"),g),"".concat(K,"-readonly"),v),"".concat(K,"-input-with-clear-btn"),u&&y&&x),null==C?void 0:C.affixWrapper,null==k?void 0:k.affixWrapper,null==k?void 0:k.variant),V=(u||y)&&n.createElement("span",{className:Rr()("".concat(c,"-suffix"),null==k?void 0:k.suffix),style:null==$?void 0:$.suffix},B,u);q=n.createElement(I,Ve({className:U,style:null==$?void 0:$.affixWrapper,onClick:function(e){var t;null!==(t=D.current)&&void 0!==t&&t.contains(e.target)&&(null==b||b())}},null==j?void 0:j.affixWrapper,{ref:D}),s&&n.createElement("span",{className:Rr()("".concat(c,"-prefix"),null==k?void 0:k.prefix),style:null==$?void 0:$.prefix},s),q,V)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var G="".concat(c,"-group"),Y="".concat(G,"-addon"),X="".concat(G,"-wrapper"),Q=Rr()("".concat(c,"-wrapper"),G,null==C?void 0:C.wrapper,null==k?void 0:k.wrapper),Z=Rr()(X,E({},"".concat(X,"-disabled"),m),null==C?void 0:C.group,null==k?void 0:k.groupWrapper);q=n.createElement(M,{className:Z,ref:z},n.createElement(T,{className:Q},d&&n.createElement(R,{className:Y},d),q,f&&n.createElement(R,{className:Y},f)))}return n.cloneElement(q,{className:Rr()(null===(o=q.props)||void 0===o?void 0:o.className,p)||null,style:A(A({},null===(i=q.props)||void 0===i?void 0:i.style),h),hidden:S})});const Ob=Cb;var kb=["show"];function Eb(e,t){return n.useMemo(function(){var n={};t&&(n.show="object"===O(t)&&t.formatter?t.formatter:!!t);var r=n=A(A({},n),e),o=r.show,i=eo(r,kb);return A(A({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})},[e,t])}var jb=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],$b=(0,n.forwardRef)(function(e,t){var r=e.autoComplete,o=e.onChange,i=e.onFocus,a=e.onBlur,l=e.onPressEnter,c=e.onKeyDown,s=e.onKeyUp,u=e.prefixCls,d=void 0===u?"rc-input":u,f=e.disabled,p=e.htmlSize,h=e.className,m=e.maxLength,v=e.suffix,g=e.showCount,b=e.count,y=e.type,x=void 0===y?"text":y,w=e.classes,S=e.classNames,C=e.styles,O=e.onCompositionStart,k=e.onCompositionEnd,j=eo(e,jb),$=_((0,n.useState)(!1),2),P=$[0],N=$[1],I=(0,n.useRef)(!1),T=(0,n.useRef)(!1),R=(0,n.useRef)(null),D=(0,n.useRef)(null),L=function(e){R.current&&Sb(R.current,e)},q=_(mo(e.defaultValue,{value:e.value}),2),z=q[0],B=q[1],H=null==z?"":String(z),F=_((0,n.useState)(null),2),W=F[0],K=F[1],U=Eb(b,g),V=U.max||m,G=U.strategy(H),Y=!!V&&G>V;(0,n.useImperativeHandle)(t,function(){var e;return{focus:L,blur:function(){var e;null===(e=R.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=R.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=R.current)||void 0===e||e.select()},input:R.current,nativeElement:(null===(e=D.current)||void 0===e?void 0:e.nativeElement)||R.current}}),(0,n.useEffect)(function(){T.current&&(T.current=!1),N(function(e){return(!e||!f)&&e})},[f]);var X=function(e,t,n){var r,i,a=t;if(!I.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max)t!==(a=U.exceedFormatter(t,{max:U.max}))&&K([(null===(r=R.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=R.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;B(a),R.current&&wb(R.current,e,o,a)};(0,n.useEffect)(function(){var e;W&&(null===(e=R.current)||void 0===e||e.setSelectionRange.apply(e,M(W)))},[W]);var Q,Z=function(e){X(e,e.target.value,{source:"change"})},J=function(e){I.current=!1,X(e,e.currentTarget.value,{source:"compositionEnd"}),null==k||k(e)},ee=function(e){l&&"Enter"===e.key&&!T.current&&(T.current=!0,l(e)),null==c||c(e)},te=function(e){"Enter"===e.key&&(T.current=!1),null==s||s(e)},ne=function(e){N(!0),null==i||i(e)},re=function(e){T.current&&(T.current=!1),N(!1),null==a||a(e)},oe=Y&&"".concat(d,"-out-of-range");return n.createElement(Ob,Ve({},j,{prefixCls:d,className:Rr()(h,oe),handleReset:function(e){B(""),L(),R.current&&wb(R.current,e,o)},value:H,focused:P,triggerFocus:L,suffix:function(){var e=Number(V)>0;if(v||U.show){var t=U.showFormatter?U.showFormatter({value:H,count:G,maxLength:V}):"".concat(G).concat(e?" / ".concat(V):"");return n.createElement(n.Fragment,null,U.show&&n.createElement("span",{className:Rr()("".concat(d,"-show-count-suffix"),E({},"".concat(d,"-show-count-has-suffix"),!!v),null==S?void 0:S.count),style:A({},null==C?void 0:C.count)},t),v)}return null}(),disabled:f,classes:w,classNames:S,styles:C,ref:D}),(Q=Sc(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),n.createElement("input",Ve({autoComplete:r},Q,{onChange:Z,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:Rr()(d,E({},"".concat(d,"-disabled"),f),null==S?void 0:S.input),style:null==C?void 0:C.input,ref:R,size:p,type:x,onCompositionStart:function(e){I.current=!0,null==O||O(e)},onCompositionEnd:J}))))});const Pb=$b,Nb=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:n.createElement(Ma,null)}),t};function _b(e,t,n){return Rr()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Ib=(e,t)=>t||e,Mb=(e,t,r=void 0)=>{var o,i;const{variant:a,[e]:l}=n.useContext(x),c=n.useContext(Oh),s=null==l?void 0:l.variant;let u;u=void 0!==t?t:!1===r?"borderless":null!==(i=null!==(o=null!=c?c:s)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,y.includes(u)]};function Tb(e,t){const r=(0,n.useRef)([]),o=()=>{r.current.push(setTimeout(()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,n.useEffect)(()=>(t&&o(),()=>r.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}var Ab=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rb=(0,n.forwardRef)((e,t)=>{const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:c,onFocus:s,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:m,styles:v,rootClassName:g,onChange:b,classNames:y,variant:x}=e,w=Ab(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:S,direction:O,allowClear:k,autoComplete:E,className:j,style:$,classNames:P,styles:N}=C("input"),_=S("input",r),I=(0,n.useRef)(null),M=ul(_),[T,A,R]=gb(_,g),[D]=bb(_,M),{compactSize:L,compactItemClassnames:q}=Wc(_,O),z=Rc(e=>{var t;return null!==(t=null!=a?a:L)&&void 0!==t?t:e}),B=n.useContext(jr),H=null!=l?l:B,{status:F,hasFeedback:W,feedbackIcon:K}=(0,n.useContext)(Sh),U=Ib(F,i),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!W;(0,n.useRef)(V);const G=Tb(I,!0),Y=(W||u)&&n.createElement(n.Fragment,null,u,W&&K),X=Nb(null!=d?d:k),[Q,Z]=Mb("input",x,o);return T(D(n.createElement(Pb,Object.assign({ref:Yr(t,I),prefixCls:_,autoComplete:E},w,{disabled:H,onBlur:e=>{G(),null==c||c(e)},onFocus:e=>{G(),null==s||s(e)},style:Object.assign(Object.assign({},$),m),styles:Object.assign(Object.assign({},N),v),suffix:Y,allowClear:X,className:Rr()(h,g,R,M,q,j),onChange:e=>{G(),null==b||b(e)},addonBefore:p&&n.createElement(kh,{form:!0,space:!0},p),addonAfter:f&&n.createElement(kh,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},y),P),{input:Rr()({[`${_}-sm`]:"small"===z,[`${_}-lg`]:"large"===z,[`${_}-rtl`]:"rtl"===O},null==y?void 0:y.input,P.input,A),variant:Rr()({[`${_}-${Q}`]:Z},_b(_,U)),affixWrapper:Rr()({[`${_}-affix-wrapper-sm`]:"small"===z,[`${_}-affix-wrapper-lg`]:"large"===z,[`${_}-affix-wrapper-rtl`]:"rtl"===O},A),wrapper:Rr()({[`${_}-group-rtl`]:"rtl"===O},A),groupWrapper:Rr()({[`${_}-group-wrapper-sm`]:"small"===z,[`${_}-group-wrapper-lg`]:"large"===z,[`${_}-group-wrapper-rtl`]:"rtl"===O,[`${_}-group-wrapper-${Q}`]:Z},_b(`${_}-group-wrapper`,U,W),A)})}))))});const Db=Rb,Lb=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},qb=ql(["Input","OTP"],e=>{const t=$l(e,Hg(e));return[Lb(t)]},Fg);var zb=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Bb=n.forwardRef((e,t)=>{const{className:r,value:o,onChange:i,onActiveChange:a,index:l,mask:c}=e,s=zb(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=n.useContext(x),d=u("otp"),f="string"==typeof c?c:o,p=n.useRef(null);n.useImperativeHandle(t,()=>p.current);const h=()=>{Ko(()=>{var e;const t=null===(e=p.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()})};return n.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},c&&""!==o&&void 0!==o&&n.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),n.createElement(Db,Object.assign({"aria-label":`OTP Input ${l+1}`,type:!0===c?"password":"text"},s,{ref:p,value:o,onInput:e=>{i(l,e.target.value)},onFocus:h,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:r}=e;"ArrowLeft"===t?a(l-1):"ArrowRight"===t?a(l+1):"z"===t&&(n||r)&&e.preventDefault(),h()},onKeyUp:e=>{"Backspace"!==e.key||o||a(l-1),h()},onMouseDown:h,onMouseUp:h,className:Rr()(r,{[`${d}-mask-input`]:c})})))}),Hb=Bb;var Fb=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Wb(e){return(e||"").split("")}const Kb=e=>{const{index:t,prefixCls:r,separator:o}=e,i="function"==typeof o?o(t):o;return i?n.createElement("span",{className:`${r}-separator`},i):null},Ub=n.forwardRef((e,t)=>{const{prefixCls:r,length:o=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,separator:u,variant:d,disabled:f,status:p,autoFocus:h,mask:m,type:v,onInput:g,inputMode:b}=e,y=Fb(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);const{getPrefixCls:w,direction:S}=n.useContext(x),C=w("otp",r),O=Xa(y,{aria:!0,data:!0,attr:!0}),[k,E,j]=qb(C),$=Rc(e=>null!=i?i:e),P=n.useContext(Sh),N=Ib(P.status,p),_=n.useMemo(()=>Object.assign(Object.assign({},P),{status:N,hasFeedback:!1,feedbackIcon:null}),[P,N]),I=n.useRef(null),T=n.useRef({});n.useImperativeHandle(t,()=>({focus:()=>{var e;null===(e=T.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=T.current[t])||void 0===e||e.blur()},nativeElement:I.current}));const A=e=>s?s(e):e,[R,D]=n.useState(()=>Wb(A(a||"")));n.useEffect(()=>{void 0!==l&&D(Wb(l))},[l]);const L=fo(e=>{D(e),g&&g(e),c&&e.length===o&&e.every(e=>e)&&e.some((e,t)=>R[t]!==e)&&c(e.join(""))}),q=fo((e,t)=>{let n=M(R);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Wb(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=A(n.map(e=>e||" ").join(""));return n=Wb(r).map((e,t)=>" "!==e||n[t]?e:n[t]),n}),z=(e,t)=>{var n;const r=q(e,t),i=Math.min(e+t.length,o-1);i!==e&&void 0!==r[e]&&(null===(n=T.current[i])||void 0===n||n.focus()),L(r)},B=e=>{var t;null===(t=T.current[e])||void 0===t||t.focus()},H={variant:d,disabled:f,status:N,mask:m,type:v,inputMode:b};return k(n.createElement("div",Object.assign({},O,{ref:I,className:Rr()(C,{[`${C}-sm`]:"small"===$,[`${C}-lg`]:"large"===$,[`${C}-rtl`]:"rtl"===S},j,E),role:"group"}),n.createElement(Sh.Provider,{value:_},Array.from({length:o}).map((e,t)=>{const r=`otp-${t}`,i=R[t]||"";return n.createElement(n.Fragment,{key:r},n.createElement(Hb,Object.assign({ref:e=>{T.current[t]=e},index:t,size:$,htmlSize:1,className:`${C}-input`,onChange:z,value:i,onActiveChange:B,autoFocus:0===t&&h},H)),t<o-1&&n.createElement(Kb,{separator:u,index:t,prefixCls:C}))}))))}),Vb=Ub;const Gb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var Yb=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:Gb}))}; | |
| 111 | +/** */const Xb=n.forwardRef(Yb);const Qb={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"};var Zb=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:Qb}))}; | |
| 112 | +/** */const Jb=n.forwardRef(Zb);var ey=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ty=e=>e?n.createElement(Jb,null):n.createElement(Xb,null),ny={click:"onClick",hover:"onMouseOver"},ry=n.forwardRef((e,t)=>{const{disabled:r,action:o="click",visibilityToggle:i=!0,iconRender:a=ty}=e,l=n.useContext(jr),c=null!=r?r:l,s="object"==typeof i&&void 0!==i.visible,[u,d]=(0,n.useState)(()=>!!s&&i.visible),f=(0,n.useRef)(null);n.useEffect(()=>{s&&d(i.visible)},[s,i]);const p=Tb(f),h=()=>{var e;if(c)return;u&&p();const t=!u;d(t),"object"==typeof i&&(null===(e=i.onVisibleChange)||void 0===e||e.call(i,t))},{className:m,prefixCls:v,inputPrefixCls:g,size:b}=e,y=ey(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=n.useContext(x),S=w("input",g),C=w("input-password",v),O=i&&(e=>{const t=ny[o]||"",r=a(u),i={[t]:h,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return n.cloneElement(n.isValidElement(r)?r:n.createElement("span",null,r),i)})(C),k=Rr()(C,m,{[`${C}-${b}`]:!!b}),E=Object.assign(Object.assign({},Sc(y,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:k,prefixCls:S,suffix:O});return b&&(E.size=b),n.createElement(Db,Object.assign({ref:Yr(t,f)},E))});const oy=ry;const iy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var ay=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:iy}))}; | |
| 113 | +/** */const ly=n.forwardRef(ay);var cy=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sy=n.forwardRef((e,t)=>{const{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:h,onCompositionEnd:m,variant:v,onPressEnter:g}=e,b=cy(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:w}=n.useContext(x),S=n.useRef(!1),C=y("input-search",r),O=y("input",o),{compactSize:k}=Wc(C,w),E=Rc(e=>{var t;return null!==(t=null!=a?a:k)&&void 0!==t?t:e}),j=n.useRef(null),$=e=>{var t;document.activeElement===(null===(t=j.current)||void 0===t?void 0:t.input)&&e.preventDefault()},P=e=>{var t,n;f&&f(null===(n=null===(t=j.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},N="boolean"==typeof c?n.createElement(ly,null):null,_=`${C}-button`;let I;const M=c||{},T=M.type&&!0===M.type.__ANT_BUTTON;I=T||"button"===M.type?Ec(M,Object.assign({onMouseDown:$,onClick:e=>{var t,n;null===(n=null===(t=null==M?void 0:M.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),P(e)},key:"enterButton"},T?{className:_,size:E}:{})):n.createElement(od,{className:_,color:c?"primary":"default",size:E,disabled:d,key:"enterButton",onMouseDown:$,onClick:P,loading:u,icon:N,variant:"borderless"===v||"filled"===v||"underlined"===v?"text":c?"solid":void 0},c),s&&(I=[I,Ec(s,{key:"addonAfter"})]);const A=Rr()(C,{[`${C}-rtl`]:"rtl"===w,[`${C}-${E}`]:!!E,[`${C}-with-button`]:!!c},i),R=Object.assign(Object.assign({},b),{className:A,prefixCls:O,type:"search",size:E,variant:v,onPressEnter:e=>{S.current||u||(null==g||g(e),P(e))},onCompositionStart:e=>{S.current=!0,null==h||h(e)},onCompositionEnd:e=>{S.current=!1,null==m||m(e)},addonAfter:I,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},disabled:d});return n.createElement(Db,Object.assign({ref:Yr(j,t)},R))});const uy=sy;var dy,fy=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],py={};function hy(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;dy||((dy=document.createElement("textarea")).setAttribute("tab-index","-1"),dy.setAttribute("aria-hidden","true"),dy.setAttribute("name","hiddenTextarea"),document.body.appendChild(dy)),e.getAttribute("wrap")?dy.setAttribute("wrap",e.getAttribute("wrap")):dy.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&py[n])return py[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:fy.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(py[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;dy.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),dy.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=dy.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){dy.value=" ";var p=dy.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:s,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var my=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],vy=n.forwardRef(function(e,t){var r=e,o=r.prefixCls,i=r.defaultValue,a=r.value,l=r.autoSize,c=r.onResize,s=r.className,u=r.style,d=r.disabled,f=r.onChange,p=(r.onInternalAutoSize,eo(r,my)),h=_(mo(i,{value:a,postState:function(e){return null!=e?e:""}}),2),m=h[0],v=h[1],g=n.useRef();n.useImperativeHandle(t,function(){return{textArea:g.current}});var b=_(n.useMemo(function(){return l&&"object"===O(l)?[l.minRows,l.maxRows]:[]},[l]),2),y=b[0],x=b[1],w=!!l,S=_(n.useState(2),2),C=S[0],k=S[1],j=_(n.useState(),2),$=j[0],P=j[1],N=function(){k(0)};Re(function(){w&&N()},[a,y,x,w]),Re(function(){if(0===C)k(1);else if(1===C){var e=hy(g.current,!1,y,x);k(2),P(e)}else!function(){try{if(document.activeElement===g.current){var e=g.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;g.current.setSelectionRange(t,n),g.current.scrollTop=r}}catch(e){}}()},[C]);var I=n.useRef(),M=function(){Ko.cancel(I.current)};n.useEffect(function(){return M},[]);var T=w?$:null,R=A(A({},u),T);return 0!==C&&1!==C||(R.overflowY="hidden",R.overflowX="hidden"),n.createElement(sf,{onResize:function(e){2===C&&(null==c||c(e),l&&(M(),I.current=Ko(function(){N()})))},disabled:!(l||c)},n.createElement("textarea",Ve({},p,{ref:g,style:R,className:Rr()(o,s,E({},"".concat(o,"-disabled"),d)),disabled:d,value:m,onChange:function(e){v(e.target.value),null==f||f(e)}})))});const gy=vy;var by=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],yy=n.forwardRef(function(e,t){var r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,c=e.onChange,s=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,m=void 0===h?"rc-textarea":h,v=e.showCount,g=e.count,b=e.className,y=e.style,x=e.disabled,w=e.hidden,S=e.classNames,C=e.styles,O=e.onResize,k=e.onClear,j=e.onPressEnter,$=e.readOnly,P=e.autoSize,N=e.onKeyDown,I=eo(e,by),T=_(mo(o,{value:i,defaultValue:o}),2),R=T[0],D=T[1],L=null==R?"":String(R),q=_(n.useState(!1),2),z=q[0],B=q[1],H=n.useRef(!1),F=_(n.useState(null),2),W=F[0],K=F[1],U=(0,n.useRef)(null),V=(0,n.useRef)(null),G=function(){var e;return null===(e=V.current)||void 0===e?void 0:e.textArea},Y=function(){G().focus()};(0,n.useImperativeHandle)(t,function(){var e;return{resizableTextArea:V.current,focus:Y,blur:function(){G().blur()},nativeElement:(null===(e=U.current)||void 0===e?void 0:e.nativeElement)||G()}}),(0,n.useEffect)(function(){B(function(e){return!x&&e})},[x]);var X=_(n.useState(null),2),Q=X[0],Z=X[1];n.useEffect(function(){var e;Q&&(e=G()).setSelectionRange.apply(e,M(Q))},[Q]);var J,ee=Eb(g,v),te=null!==(r=ee.max)&&void 0!==r?r:u,ne=Number(te)>0,re=ee.strategy(L),oe=!!te&&re>te,ie=function(e,t){var n=t;!H.current&&ee.exceedFormatter&&ee.max&&ee.strategy(t)>ee.max&&t!==(n=ee.exceedFormatter(t,{max:ee.max}))&&Z([G().selectionStart||0,G().selectionEnd||0]),D(n),wb(e.currentTarget,e,c,n)},ae=p;ee.show&&(J=ee.showFormatter?ee.showFormatter({value:L,count:re,maxLength:te}):"".concat(re).concat(ne?" / ".concat(te):""),ae=n.createElement(n.Fragment,null,ae,n.createElement("span",{className:Rr()("".concat(m,"-data-count"),null==S?void 0:S.count),style:null==C?void 0:C.count},J)));var le=!P&&!v&&!s;return n.createElement(Ob,{ref:U,value:L,allowClear:s,handleReset:function(e){D(""),Y(),wb(G(),e,c)},suffix:ae,prefixCls:m,classNames:A(A({},S),{},{affixWrapper:Rr()(null==S?void 0:S.affixWrapper,E(E({},"".concat(m,"-show-count"),v),"".concat(m,"-textarea-allow-clear"),s))}),disabled:x,focused:z,className:Rr()(b,oe&&"".concat(m,"-out-of-range")),style:A(A({},y),W&&!le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof J?J:void 0}},hidden:w,readOnly:$,onClear:k},n.createElement(gy,Ve({},I,{autoSize:P,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&j&&j(e),null==N||N(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){B(!0),null==a||a(e)},onBlur:function(e){B(!1),null==l||l(e)},onCompositionStart:function(e){H.current=!0,null==d||d(e)},onCompositionEnd:function(e){H.current=!1,ie(e,e.currentTarget.value),null==f||f(e)},className:Rr()(null==S?void 0:S.textarea),style:A(A({},null==C?void 0:C.textarea),{},{resize:null==y?void 0:y.resize}),disabled:x,prefixCls:m,onResize:function(e){var t;null==O||O(e),null!==(t=G())&&void 0!==t&&t.style.height&&K(!0)},ref:V,readOnly:$})))});const xy=yy,wy=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Sy=ql(["Input","TextArea"],e=>{const t=$l(e,Hg(e));return[wy(t)]},Fg,{resetFont:!1});var Cy=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Oy=(0,n.forwardRef)((e,t)=>{var r;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:c,allowClear:s,classNames:u,rootClassName:d,className:f,style:p,styles:h,variant:m,showCount:v,onMouseDown:g,onResize:b}=e,y=Cy(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);const{getPrefixCls:x,direction:w,allowClear:S,autoComplete:O,className:k,style:E,classNames:j,styles:$}=C("textArea"),P=n.useContext(jr),N=null!=l?l:P,{status:_,hasFeedback:I,feedbackIcon:M}=n.useContext(Sh),T=Ib(_,c),A=n.useRef(null);n.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=A.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;Sb(null===(n=null===(t=A.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=A.current)||void 0===e?void 0:e.blur()}}});const R=x("input",o),D=ul(R),[L,q,z]=gb(R,d),[B]=Sy(R,D),{compactSize:H,compactItemClassnames:F}=Wc(R,w),W=Rc(e=>{var t;return null!==(t=null!=a?a:H)&&void 0!==t?t:e}),[K,U]=Mb("textArea",m,i),V=Nb(null!=s?s:S),[G,Y]=n.useState(!1),[X,Q]=n.useState(!1);return L(B(n.createElement(xy,Object.assign({autoComplete:O},y,{style:Object.assign(Object.assign({},E),p),styles:Object.assign(Object.assign({},$),h),disabled:N,allowClear:V,className:Rr()(z,D,f,d,F,k,X&&`${R}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),j),{textarea:Rr()({[`${R}-sm`]:"small"===W,[`${R}-lg`]:"large"===W},q,null==u?void 0:u.textarea,j.textarea,G&&`${R}-mouse-active`),variant:Rr()({[`${R}-${K}`]:U},_b(R,T)),affixWrapper:Rr()(`${R}-textarea-affix-wrapper`,{[`${R}-affix-wrapper-rtl`]:"rtl"===w,[`${R}-affix-wrapper-sm`]:"small"===W,[`${R}-affix-wrapper-lg`]:"large"===W,[`${R}-textarea-show-count`]:v||(null===(r=e.count)||void 0===r?void 0:r.show)},q)}),prefixCls:R,suffix:I&&n.createElement("span",{className:`${R}-textarea-suffix`},M),showCount:v,ref:A,onResize:e=>{var t,n;if(null==b||b(e),G&&"function"==typeof getComputedStyle){const e=null===(n=null===(t=A.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&Q(!0)}},onMouseDown:e=>{Y(!0),null==g||g(e);const t=()=>{Y(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))}),ky=Oy,Ey=Db;Ey.Group=yb,Ey.Search=uy,Ey.TextArea=ky,Ey.Password=oy,Ey.OTP=Vb;const jy=Ey;const $y={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M81.8 537.8a60.3 60.3 0 010-51.5C176.6 286.5 319.8 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 838c-192.1 0-335.4-100.5-430.2-300.2z",fill:t}},{tag:"path",attrs:{d:"M512 258c-161.3 0-279.4 81.8-362.7 254C232.6 684.2 350.7 766 512 766c161.4 0 279.5-81.8 362.7-254C791.4 339.8 673.3 258 512 258zm-4 430c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z",fill:t}},{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 258s279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z",fill:e}},{tag:"path",attrs:{d:"M508 336c-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",fill:e}}]}},name:"eye",theme:"twotone"};var Py=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:$y}))}; | |
| 114 | +/** */const Ny=n.forwardRef(Py);function _y(e){return _y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_y(e)}function Iy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function My(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iy(Object(n),!0).forEach(function(t){Ty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ty(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ay(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ry(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ry(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ry(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Dy=jy.Password;const Ly=function(e){var t,r,o,a,l=e.field,s=l.help,u=l.value,d=l.type,f=l.placeholder,p=l.disabled,m=l.isPro,v=e.id,g=null===(t=e.field)||void 0===t?void 0:t.fieldType,b=null===(r=e.field)||void 0===r?void 0:r.parentId,y=null===(o=e.field)||void 0===o?void 0:o.index,x=null===(a=e.field)||void 0===a?void 0:a.repeaterData,w=Ay(c(),2),S=(w[0],w[1]);(0,n.useEffect)(function(){O(u)},[]);var C={};p?C.disabled=p||!1:m&&(C.disabled=m);var O=function(e){S({type:h,id:v,value:e,fieldType:g,parentId:b,repeaterData:x,index:y})};return(0,i.jsxs)("div",{className:"rtsb-field text",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:"password"===d?(0,i.jsx)(Dy,My(My({},C),{},{className:"rtsb-form-field",placeholder:f,value:u,onChange:function(e){return O(e.target.value)},iconRender:function(e){return e?(0,i.jsx)(Ny,{}):(0,i.jsx)(Xb,{})}})):(0,i.jsx)(jy,My(My({},C),{},{type:"text ",className:"rtsb-form-field",placeholder:f,value:u,onChange:function(e){return O(e.target.value)}}))}),s&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function qy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zy(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var By=jy.TextArea;const Hy=function(e){var t,n,r,o,a=e.field,l=a.help,s=a.value,u=a.placeholder,d=e.id,f=null===(t=e.field)||void 0===t?void 0:t.fieldType,p=null===(n=e.field)||void 0===n?void 0:n.parentId,m=null===(r=e.field)||void 0===r?void 0:r.index,v=null===(o=e.field)||void 0===o?void 0:o.repeaterData,g=qy(c(),2),b=(g[0],g[1]);return(0,i.jsxs)("div",{className:"rtsb-field textarea",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsx)(By,{rows:4,className:"rtsb-form-field",placeholder:u,value:s,onChange:function(e){b({type:h,id:d,value:e.target.value,fieldType:f,parentId:p,repeaterData:v,index:m})}})}),l&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:l}})]})]})};const Fy=function(e){var t=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.children,a=e.onMouseDown,l=e.onClick,c="function"==typeof r?r(o):r;return n.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==c?c:n.createElement("span",{className:Rr()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},i))};var Wy=n.createContext(null);function Ky(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=n.useRef(null),r=n.useRef(null);return n.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]),[function(){return t.current},function(n){(n||null===t.current)&&(t.current=n),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}]}var Uy=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Vy=void 0;function Gy(e,t){var r=e.prefixCls,o=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,h=e.display,m=e.order,v=e.component,g=void 0===v?"div":v,b=eo(e,Uy),y=l&&!h;function x(e){s(u,e)}n.useEffect(function(){return function(){x(null)}},[]);var w,S=a&&i!==Vy?a(i,{index:m}):p;o||(w={opacity:y?0:1,height:y?0:Vy,overflowY:y?"hidden":Vy,order:l?m:Vy,pointerEvents:y?"none":Vy,position:y?"absolute":Vy});var C={};y&&(C["aria-hidden"]=!0);var O=n.createElement(g,Ve({className:Rr()(!o&&r,d),style:A(A({},w),f)},C,b,{ref:t}),S);return l&&(O=n.createElement(sf,{onResize:function(e){x(e.offsetWidth)},disabled:c},O)),O}var Yy=n.forwardRef(Gy);Yy.displayName="Item";const Xy=Yy;function Qy(){var e=n.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Ko(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,Dr.unstable_batchedUpdates)(function(){e.current.forEach(function(e){e()}),e.current=null})})),e.current.push(t)}}function Zy(e,t){var r=_(n.useState(t),2),o=r[0],i=r[1];return[o,fo(function(t){e(function(){i(t)})})]}var Jy=n.createContext(null),ex=["component"],tx=["className"],nx=["className"],rx=function(e,t){var r=n.useContext(Jy);if(!r){var o=e.component,i=void 0===o?"div":o,a=eo(e,ex);return n.createElement(i,Ve({},a,{ref:t}))}var l=r.className,c=eo(r,tx),s=e.className,u=eo(e,nx);return n.createElement(Jy.Provider,{value:null},n.createElement(Xy,Ve({ref:t,className:Rr()(l,s)},c,u)))},ox=n.forwardRef(rx);ox.displayName="RawItem";const ix=ox;var ax=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],lx="responsive",cx="invalidate";function sx(e){return"+ ".concat(e.length," ...")}function ux(e,t){var r=e.prefixCls,o=void 0===r?"rc-overflow":r,i=e.data,a=void 0===i?[]:i,l=e.renderItem,c=e.renderRawItem,s=e.itemKey,u=e.itemWidth,d=void 0===u?10:u,f=e.ssr,p=e.style,h=e.className,m=e.maxCount,v=e.renderRest,g=e.renderRawRest,b=e.suffix,y=e.component,x=void 0===y?"div":y,w=e.itemComponent,S=e.onVisibleChange,C=eo(e,ax),O="full"===f,k=Qy(),E=_(Zy(k,null),2),j=E[0],$=E[1],P=j||0,N=_(Zy(k,new Map),2),I=N[0],M=N[1],T=_(Zy(k,0),2),R=T[0],D=T[1],L=_(Zy(k,0),2),q=L[0],z=L[1],B=_(Zy(k,0),2),H=B[0],F=B[1],W=_((0,n.useState)(null),2),K=W[0],U=W[1],V=_((0,n.useState)(null),2),G=V[0],Y=V[1],X=n.useMemo(function(){return null===G&&O?Number.MAX_SAFE_INTEGER:G||0},[G,j]),Q=_((0,n.useState)(!1),2),Z=Q[0],J=Q[1],ee="".concat(o,"-item"),te=Math.max(R,q),ne=m===lx,re=a.length&&ne,oe=m===cx,ie=re||"number"==typeof m&&a.length>m,ae=(0,n.useMemo)(function(){var e=a;return re?e=null===j&&O?a:a.slice(0,Math.min(a.length,P/d)):"number"==typeof m&&(e=a.slice(0,m)),e},[a,d,j,m,re]),le=(0,n.useMemo)(function(){return re?a.slice(X+1):a.slice(ae.length)},[a,ae,re,X]),ce=(0,n.useCallback)(function(e,t){var n;return"function"==typeof s?s(e):null!==(n=s&&(null==e?void 0:e[s]))&&void 0!==n?n:t},[s]),se=(0,n.useCallback)(l||function(e){return e},[l]);function ue(e,t,n){(G!==e||void 0!==t&&t!==K)&&(Y(e),n||(J(e<a.length-1),null==S||S(e)),void 0!==t&&U(t))}function de(e,t){M(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function fe(e){return I.get(ce(ae[e],e))}Re(function(){if(P&&"number"==typeof te&&ae){var e=H,t=ae.length,n=t-1;if(!t)return void ue(0,null);for(var r=0;r<t;r+=1){var o=fe(r);if(O&&(o=o||0),void 0===o){ue(r-1,void 0,!0);break}if(e+=o,0===n&&e<=P||r===n-1&&e+fe(n)<=P){ue(n,null);break}if(e+te>P){ue(r-1,e-o-H+q);break}}b&&fe(0)+H>P&&U(null)}},[P,I,q,H,ce,ae]);var pe=Z&&!!le.length,he={};null!==K&&re&&(he={position:"absolute",left:K,top:0});var me={prefixCls:ee,responsive:re,component:w,invalidate:oe},ve=c?function(e,t){var r=ce(e,t);return n.createElement(Jy.Provider,{key:r,value:A(A({},me),{},{order:t,item:e,itemKey:r,registerSize:de,display:t<=X})},c(e,t))}:function(e,t){var r=ce(e,t);return n.createElement(Xy,Ve({},me,{order:t,key:r,item:e,renderItem:se,itemKey:r,registerSize:de,display:t<=X}))},ge={order:pe?X:Number.MAX_SAFE_INTEGER,className:"".concat(ee,"-rest"),registerSize:function(e,t){z(t),D(q)},display:pe},be=v||sx,ye=g?n.createElement(Jy.Provider,{value:A(A({},me),ge)},g(le)):n.createElement(Xy,Ve({},me,ge),"function"==typeof be?be(le):be),xe=n.createElement(x,Ve({className:Rr()(!oe&&o,h),style:p,ref:t},C),ae.map(ve),ie?ye:null,b&&n.createElement(Xy,Ve({},me,{responsive:ne,responsiveDisabled:!re,order:X,className:"".concat(ee,"-suffix"),registerSize:function(e,t){F(t)},display:!0,style:he}),b));return ne?n.createElement(sf,{onResize:function(e,t){$(t.clientWidth)},disabled:!re},xe):xe}var dx=n.forwardRef(ux);dx.displayName="Overflow",dx.Item=ix,dx.RESPONSIVE=lx,dx.INVALIDATE=cx;const fx=dx;const px=function(e,t,n){var r=A(A({},e),n?t:{});return Object.keys(t).forEach(function(n){var o=t[n];"function"==typeof o&&(r[n]=function(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o.apply(void 0,i),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(i))})}),r};var hx=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],mx=function(e,t){var r=e.prefixCls,o=e.id,i=e.inputElement,a=e.autoFocus,l=e.autoComplete,c=e.editable,s=e.activeDescendantId,u=e.value,d=e.open,f=e.attrs,p=eo(e,hx),h=i||n.createElement("input",null),m=h,v=m.ref,g=m.props;return h.props,h=n.cloneElement(h,A(A(A({type:"search"},px(p,g,!0)),{},{id:o,ref:Yr(t,v),autoComplete:l||"off",autoFocus:a,className:Rr()("".concat(r,"-selection-search-input"),null==g?void 0:g.className),role:"combobox","aria-expanded":d||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":d?s:void 0},f),{},{value:c?u:"",readOnly:!c,unselectable:c?null:"on",style:A(A({},g.style),{},{opacity:c?null:0})}))};const vx=n.forwardRef(mx);function gx(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var bx="undefined"!=typeof window&&window.document&&window.document.documentElement;function yx(e){return["string","number"].includes(O(e))}function xx(e){var t=void 0;return e&&(yx(e.title)?t=e.title.toString():yx(e.label)&&(t=e.label.toString())),t}function wx(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Sx=function(e){e.preventDefault(),e.stopPropagation()};const Cx=function(e){var t,r,o=e.id,i=e.prefixCls,a=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,u=e.inputRef,d=e.placeholder,f=e.disabled,p=e.mode,h=e.showSearch,m=e.autoFocus,v=e.autoComplete,g=e.activeDescendantId,b=e.tabIndex,y=e.removeIcon,x=e.maxTagCount,w=e.maxTagTextLength,S=e.maxTagPlaceholder,C=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,O=e.tagRender,k=e.onToggleOpen,j=e.onRemove,$=e.onInputChange,P=e.onInputPaste,N=e.onInputKeyDown,I=e.onInputMouseDown,M=e.onInputCompositionStart,T=e.onInputCompositionEnd,A=e.onInputBlur,R=n.useRef(null),D=_((0,n.useState)(0),2),L=D[0],q=D[1],z=_((0,n.useState)(!1),2),B=z[0],H=z[1],F="".concat(i,"-selection"),W=l||"multiple"===p&&!1===s||"tags"===p?c:"",K="tags"===p||"multiple"===p&&!1===s||h&&(l||B);t=function(){q(R.current.scrollWidth)},r=[W],bx?n.useLayoutEffect(t,r):n.useEffect(t,r);var U=function(e,t,r,o,i){return n.createElement("span",{title:xx(e),className:Rr()("".concat(F,"-item"),E({},"".concat(F,"-item-disabled"),r))},n.createElement("span",{className:"".concat(F,"-item-content")},t),o&&n.createElement(Fy,{className:"".concat(F,"-item-remove"),onMouseDown:Sx,onClick:i,customizeIcon:y},"×"))},V=function(e,t,r,o,i,a){return n.createElement("span",{onMouseDown:function(e){Sx(e),k(!l)}},O({label:t,value:e,disabled:r,closable:o,onClose:i,isMaxTag:!!a}))},G=n.createElement("div",{className:"".concat(F,"-search"),style:{width:L},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},n.createElement(vx,{ref:u,open:l,prefixCls:i,id:o,inputElement:null,disabled:f,autoFocus:m,autoComplete:v,editable:K,activeDescendantId:g,value:W,onKeyDown:N,onMouseDown:I,onChange:$,onPaste:P,onCompositionStart:M,onCompositionEnd:T,onBlur:A,tabIndex:b,attrs:Xa(e,!0)}),n.createElement("span",{ref:R,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},W," ")),Y=n.createElement(fx,{prefixCls:"".concat(F,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!f&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>w&&(i="".concat(a.slice(0,w),"..."))}var l=function(t){t&&t.stopPropagation(),j(e)};return"function"==typeof O?V(r,i,t,o,l):U(e,i,t,o,l)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof C?C(e):C;return"function"==typeof O?V(void 0,t,!1,!1,void 0,!0):U({title:t},t,!1)},suffix:G,itemKey:wx,maxCount:x});return n.createElement("span",{className:"".concat(F,"-wrap")},Y,!a.length&&!W&&n.createElement("span",{className:"".concat(F,"-placeholder")},d))};const Ox=function(e){var t=e.inputElement,r=e.prefixCls,o=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,h=e.tabIndex,m=e.showSearch,v=e.searchValue,g=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,S=e.onInputPaste,C=e.onInputCompositionStart,O=e.onInputCompositionEnd,k=e.onInputBlur,E=e.title,j=_(n.useState(!1),2),$=j[0],P=j[1],N="combobox"===u,I=N||m,M=f[0],T=v||"";N&&g&&!$&&(T=g),n.useEffect(function(){N&&P(!1)},[N,g]);var A=!("combobox"!==u&&!d&&!m)&&!!T,R=void 0===E?xx(M):E,D=n.useMemo(function(){return M?null:n.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:A?{visibility:"hidden"}:void 0},p)},[M,A,p,r]);return n.createElement("span",{className:"".concat(r,"-selection-wrap")},n.createElement("span",{className:"".concat(r,"-selection-search")},n.createElement(vx,{ref:i,prefixCls:r,id:o,open:d,inputElement:t,disabled:a,autoFocus:l,autoComplete:c,editable:I,activeDescendantId:s,value:T,onKeyDown:y,onMouseDown:x,onChange:function(e){P(!0),w(e)},onPaste:S,onCompositionStart:C,onCompositionEnd:O,onBlur:k,tabIndex:h,attrs:Xa(e,!0),maxLength:N?b:void 0})),!N&&M?n.createElement("span",{className:"".concat(r,"-selection-item"),title:R,style:A?{visibility:"hidden"}:void 0},M.label):null,D)};var kx=function(e,t){var r=(0,n.useRef)(null),o=(0,n.useRef)(!1),i=e.prefixCls,a=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,u=e.disabled,d=e.prefix,f=e.autoClearSearchValue,p=e.onSearch,h=e.onSearchSubmit,m=e.onToggleOpen,v=e.onInputKeyDown,g=e.onInputBlur,b=e.domRef;n.useImperativeHandle(t,function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}});var y=_(Ky(0),2),x=y[0],w=y[1],S=(0,n.useRef)(null),C=function(e){!1!==p(e,!0,o.current)&&m(!0)},O={inputRef:r,onInputKeyDown:function(e){var t,n=e.which,i=r.current instanceof HTMLTextAreaElement;(i||!a||n!==Va.UP&&n!==Va.DOWN||e.preventDefault(),v&&v(e),n!==Va.ENTER||"tags"!==l||o.current||a||null==h||h(e.target.value),i&&!a&&~[Va.UP,Va.DOWN,Va.LEFT,Va.RIGHT].indexOf(n))||(t=n)&&![Va.ESC,Va.SHIFT,Va.BACKSPACE,Va.TAB,Va.WIN_KEY,Va.ALT,Va.META,Va.WIN_KEY_RIGHT,Va.CTRL,Va.SEMICOLON,Va.EQUALS,Va.CAPS_LOCK,Va.CONTEXT_MENU,Va.F1,Va.F2,Va.F3,Va.F4,Va.F5,Va.F6,Va.F7,Va.F8,Va.F9,Va.F10,Va.F11,Va.F12].includes(t)&&m(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(s&&S.current&&/[\r\n]/.test(S.current)){var n=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,S.current)}S.current=null,C(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");S.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&C(e.target.value)},onInputBlur:g},k="multiple"===l||"tags"===l?n.createElement(Cx,Ve({},e,O)):n.createElement(Ox,Ve({},e,O));return n.createElement("div",{ref:b,className:"".concat(i,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){r.current.focus()}):r.current.focus())},onMouseDown:function(e){var t=x();e.target===r.current||t||"combobox"===l&&u||e.preventDefault(),("combobox"===l||c&&t)&&a||(a&&!1!==f&&p("",!0,!1),m())}},d&&n.createElement("div",{className:"".concat(i,"-prefix")},d),k)};const Ex=n.forwardRef(kx);var jx=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],$x=function(e,t){var r=e.prefixCls,o=(e.disabled,e.visible),i=e.children,a=e.popupElement,l=e.animation,c=e.transitionName,s=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,f=void 0===d?"ltr":d,p=e.placement,h=e.builtinPlacements,m=e.dropdownMatchSelectWidth,v=e.dropdownRender,g=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,w=e.onPopupVisibleChange,S=e.onPopupMouseEnter,C=eo(e,jx),O="".concat(r,"-dropdown"),k=a;v&&(k=v(a));var j=n.useMemo(function(){return h||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(m)},[h,m]),$=l?"".concat(O,"-").concat(l):c,P="number"==typeof m,N=n.useMemo(function(){return P?null:!1===m?"minWidth":"width"},[m,P]),_=s;P&&(_=A(A({},_),{},{width:m}));var I=n.useRef(null);return n.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null===(e=I.current)||void 0===e?void 0:e.popupElement}}}),n.createElement(Df,Ve({},C,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:p||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:j,prefixCls:O,popupTransitionName:$,popup:n.createElement("div",{onMouseEnter:S},k),ref:I,stretch:N,popupAlign:g,popupVisible:o,getPopupContainer:b,popupClassName:Rr()(u,E({},"".concat(O,"-empty"),y)),popupStyle:_,getTriggerDOMNode:x,onPopupVisibleChange:w}),i)};const Px=n.forwardRef($x);function Nx(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function _x(e){return void 0!==e&&!Number.isNaN(e)}function Ix(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function Mx(e){var t=A({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return ne(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Tx=n.createContext(null);function Ax(e){var t=e.visible,r=e.values;if(!t)return null;return n.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,50).map(function(e){var t=e.label,n=e.value;return["number","string"].includes(O(t))?t:n}).join(", ")),r.length>50?", ...":null)}var Rx=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Dx=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Lx=function(e){return"tags"===e||"multiple"===e},qx=n.forwardRef(function(e,t){var r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,c=e.tagRender,s=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,m=void 0===h?"Not Found":h,v=e.onClear,g=e.mode,b=e.disabled,y=e.loading,x=e.getInputElement,w=e.getRawInputElement,S=e.open,C=e.defaultOpen,k=e.onDropdownVisibleChange,j=e.activeValue,$=e.onActiveValueChange,P=e.activeDescendantId,N=e.searchValue,I=e.autoClearSearchValue,T=e.onSearch,R=e.onSearchSplit,D=e.tokenSeparators,L=e.allowClear,q=e.prefix,z=e.suffixIcon,B=e.clearIcon,H=e.OptionList,F=e.animation,W=e.transitionName,K=e.dropdownStyle,U=e.dropdownClassName,V=e.dropdownMatchSelectWidth,G=e.dropdownRender,Y=e.dropdownAlign,X=e.placement,Q=e.builtinPlacements,Z=e.getPopupContainer,J=e.showAction,ee=void 0===J?[]:J,te=e.onFocus,ne=e.onBlur,re=e.onKeyUp,oe=e.onKeyDown,ie=e.onMouseDown,ae=eo(e,Rx),le=Lx(g),ce=(void 0!==l?l:le)||"combobox"===g,se=A({},ae);Dx.forEach(function(e){delete se[e]}),null==u||u.forEach(function(e){delete se[e]});var ue=_(n.useState(!1),2),de=ue[0],fe=ue[1];n.useEffect(function(){fe(pf())},[]);var pe=n.useRef(null),he=n.useRef(null),me=n.useRef(null),ve=n.useRef(null),ge=n.useRef(null),be=n.useRef(!1),ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=_(n.useState(!1),2),r=t[0],o=t[1],i=n.useRef(null),a=function(){window.clearTimeout(i.current)};return n.useEffect(function(){return a},[]),[r,function(t,n){a(),i.current=window.setTimeout(function(){o(t),n&&n()},e)},a]}(),xe=_(ye,3),we=xe[0],Se=xe[1],Ce=xe[2];n.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=ve.current)||void 0===e?void 0:e.focus,blur:null===(t=ve.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=ge.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:pe.current||he.current}});var Oe=n.useMemo(function(){var e;if("combobox"!==g)return N;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[N,g,d]),ke="combobox"===g&&"function"==typeof x&&x()||null,Ee="function"==typeof w&&w(),je=Xr(he,null==Ee||null===(r=Ee.props)||void 0===r?void 0:r.ref),$e=_(n.useState(!1),2),Pe=$e[0],Ne=$e[1];Re(function(){Ne(!0)},[]);var _e=_(mo(!1,{defaultValue:C,value:S}),2),Ie=_e[0],Me=_e[1],Te=!!Pe&&Ie,Ae=!m&&p;(b||Ae&&Te&&"combobox"===g)&&(Te=!1);var De=!Ae&&Te,Le=n.useCallback(function(e){var t=void 0!==e?e:!Te;b||(Me(t),Te!==t&&(null==k||k(t)))},[b,Te,Me,k]),qe=n.useMemo(function(){return(D||[]).some(function(e){return["\n","\r\n"].includes(e)})},[D]),ze=n.useContext(Tx)||{},Be=ze.maxCount,He=ze.rawValues,Fe=function(e,t,n){if(!(le&&_x(Be)&&(null==He?void 0:He.size)>=Be)){var r=!0,o=e;null==$||$(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=tn(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce(function(t,n){return[].concat(M(t),M(e(n,a)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,D,_x(Be)?Be-He.size:void 0),a=n?null:i;return"combobox"!==g&&a&&(o="",null==R||R(a),Le(!1),r=!1),T&&Oe!==o&&T(o,{source:t?"typing":"effect"}),r}};n.useEffect(function(){Te||le||"combobox"===g||Fe("",!1,!1)},[Te]),n.useEffect(function(){Ie&&b&&Me(!1),b&&!be.current&&Se(!1)},[b]);var We=_(Ky(),2),Ke=We[0],Ue=We[1],Ge=n.useRef(!1),Ye=n.useRef(!1),Xe=[];n.useEffect(function(){return function(){Xe.forEach(function(e){return clearTimeout(e)}),Xe.splice(0,Xe.length)}},[]);var Qe,Ze=_(n.useState({}),2)[1];Ee&&(Qe=function(e){Le(e)}),function(e,t,r,o){var i=n.useRef(null);i.current={open:t,triggerOpen:r,customizedTrigger:o},n.useEffect(function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}},[])}(function(){var e;return[pe.current,null===(e=me.current)||void 0===e?void 0:e.getPopupElement()]},De,Le,!!Ee);var Je,et=n.useMemo(function(){return A(A({},e),{},{notFoundContent:m,open:Te,triggerOpen:De,id:o,showSearch:ce,multiple:le,toggleOpen:Le})},[e,m,De,Te,o,ce,le,Le]),tt=!!z||y;tt&&(Je=n.createElement(Fy,{className:Rr()("".concat(i,"-arrow"),E({},"".concat(i,"-arrow-loading"),y)),customizeIcon:z,customizeIconProps:{loading:y,searchValue:Oe,open:Te,focused:we,showSearch:ce}}));var nt,rt=function(e,t,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=n.useMemo(function(){return"object"===O(o)?o.clearIcon:i||void 0},[o,i]);return{allowClear:n.useMemo(function(){return!(a||!o||!r.length&&!l||"combobox"===c&&""===l)},[o,a,r.length,l,c]),clearIcon:n.createElement(Fy,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}(i,function(){var e;null==v||v(),null===(e=ve.current)||void 0===e||e.focus(),f([],{type:"clear",values:d}),Fe("",!1,!1)},d,L,B,b,Oe,g),ot=rt.allowClear,it=rt.clearIcon,at=n.createElement(H,{ref:ge}),lt=Rr()(i,a,E(E(E(E(E(E(E(E(E(E({},"".concat(i,"-focused"),we),"".concat(i,"-multiple"),le),"".concat(i,"-single"),!le),"".concat(i,"-allow-clear"),L),"".concat(i,"-show-arrow"),tt),"".concat(i,"-disabled"),b),"".concat(i,"-loading"),y),"".concat(i,"-open"),Te),"".concat(i,"-customize-input"),ke),"".concat(i,"-show-search"),ce)),ct=n.createElement(Px,{ref:me,disabled:b,prefixCls:i,visible:De,popupElement:at,animation:F,transitionName:W,dropdownStyle:K,dropdownClassName:U,direction:s,dropdownMatchSelectWidth:V,dropdownRender:G,dropdownAlign:Y,placement:X,builtinPlacements:Q,getPopupContainer:Z,empty:p,getTriggerDOMNode:function(e){return he.current||e},onPopupVisibleChange:Qe,onPopupMouseEnter:function(){Ze({})}},Ee?n.cloneElement(Ee,{ref:je}):n.createElement(Ex,Ve({},e,{domRef:he,prefixCls:i,inputElement:ke,ref:ve,id:o,prefix:q,showSearch:ce,autoClearSearchValue:I,mode:g,activeDescendantId:P,tagRender:c,values:d,open:Te,onToggleOpen:Le,activeValue:j,searchValue:Oe,onSearch:Fe,onSearchSubmit:function(e){e&&e.trim()&&T(e,{source:"submit"})},onRemove:function(e){var t=d.filter(function(t){return t!==e});f(t,{type:"remove",values:[e]})},tokenWithEnter:qe,onInputBlur:function(){Ge.current=!1}})));return nt=Ee?ct:n.createElement("div",Ve({className:lt},se,{ref:pe,onMouseDown:function(e){var t,n=e.target,r=null===(t=me.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=Xe.indexOf(o);-1!==t&&Xe.splice(t,1),Ce(),de||r.contains(document.activeElement)||null===(e=ve.current)||void 0===e||e.focus()});Xe.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==ie||ie.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ke(),r=e.key,o="Enter"===r;if(o&&("combobox"!==g&&e.preventDefault(),Te||Le(!0)),Ue(!!Oe),"Backspace"===r&&!n&&le&&!Oe&&d.length){for(var i=M(d),a=null,l=i.length-1;l>=0;l-=1){var c=i[l];if(!c.disabled){i.splice(l,1),a=c;break}}a&&f(i,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),p=1;p<s;p++)u[p-1]=arguments[p];!Te||o&&Ge.current||(o&&(Ge.current=!0),null===(t=ge.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u))),null==oe||oe.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Te&&(null===(o=ge.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),"Enter"===e.key&&(Ge.current=!1),null==re||re.apply(void 0,[e].concat(n))},onFocus:function(){Se(!0),b||(te&&!Ye.current&&te.apply(void 0,arguments),ee.includes("focus")&&Le(!0)),Ye.current=!0},onBlur:function(){be.current=!0,Se(!1,function(){Ye.current=!1,be.current=!1,Le(!1)}),b||(Oe&&("tags"===g?T(Oe,{source:"submit"}):"multiple"===g&&T("",{source:"blur"})),ne&&ne.apply(void 0,arguments))}}),n.createElement(Ax,{visible:we&&!Te,values:d}),ct,Je,ot&&it),n.createElement(Wy.Provider,{value:et},nt)});const zx=qx;var Bx=function(){return null};Bx.isSelectOptGroup=!0;const Hx=Bx;var Fx=function(){return null};Fx.isSelectOption=!0;const Wx=Fx;var Kx=n.forwardRef(function(e,t){var r=e.height,o=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,c=e.onInnerResize,s=e.innerProps,u=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};return void 0!==o&&(f={height:r,position:"relative",overflow:"hidden"},p=A(A({},p),{},E(E(E(E(E({transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),n.createElement("div",{style:f},n.createElement(sf,{onResize:function(e){e.offsetHeight&&c&&c()}},n.createElement("div",Ve({style:p,className:Rr()(E({},"".concat(l,"-holder-inner"),l)),ref:t},s),a,d)))});Kx.displayName="Filler";const Ux=Kx;function Vx(e){var t=e.children,r=e.setRef,o=n.useCallback(function(e){r(e)},[]);return n.cloneElement(t,{ref:o})}function Gx(e,t,r){var o=_(n.useState(e),2),i=o[0],a=o[1],l=_(n.useState(null),2),c=l[0],s=l[1];return n.useEffect(function(){var n=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){s=d,u=u||f!==c(o[d+1]);break}}return null===s?null:{index:s,multiple:u}}(i||[],e||[],t);void 0!==(null==n?void 0:n.index)&&(null==r||r(n.index),s(e[n.index])),a(e)},[e]),[c]}const Yx="object"===("undefined"==typeof navigator?"undefined":O(navigator))&&/Firefox/i.test(navigator.userAgent),Xx=function(e,t,r,o){var i=(0,n.useRef)(!1),a=(0,n.useRef)(null);var l=(0,n.useRef)({top:e,bottom:t,left:r,right:o});return l.current.top=e,l.current.bottom=t,l.current.left=r,l.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)),!i.current&&r}};function Qx(e,t,r,o,i,a,l){var c=(0,n.useRef)(0),s=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useRef)(!1),f=Xx(t,r,o,i);var p=(0,n.useRef)(null),h=(0,n.useRef)(null);return[function(t){if(e){Ko.cancel(h.current),h.current=Ko(function(){p.current=null},2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,i=n,m=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,m=0,p.current="sx");var v=Math.abs(i),g=Math.abs(m);null===p.current&&(p.current=a&&v>g?"x":"y"),"y"===p.current?function(e,t){if(Ko.cancel(s.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,c.current+=t,u.current=t,Yx||n.preventDefault(),s.current=Ko(function(){var e=d.current?10:1;l(c.current*e,!1),c.current=0}))}}(t,m):function(e,t){l(t,!0),Yx||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}var Zx=function(){function e(){oe(this,e),E(this,"maps",void 0),E(this,"id",0),E(this,"diffRecords",new Map),this.maps=Object.create(null)}return ae(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();const Jx=Zx;function ew(e){var t=parseFloat(e);return isNaN(t)?0:t}var tw=14/15;function nw(e){return Math.floor(Math.pow(e,.5))}function rw(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var ow=n.forwardRef(function(e,t){var r=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,c=e.onStopMove,s=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,m=e.showScrollBar,v=_(n.useState(!1),2),g=v[0],b=v[1],y=_(n.useState(null),2),x=y[0],w=y[1],S=_(n.useState(null),2),C=S[0],O=S[1],k=!o,j=n.useRef(),$=n.useRef(),P=_(n.useState(m),2),N=P[0],I=P[1],M=n.useRef(),T=function(){!0!==m&&!1!==m&&(clearTimeout(M.current),I(!0),M.current=setTimeout(function(){I(!1)},3e3))},R=a-f||0,D=f-d||0,L=n.useMemo(function(){return 0===i||0===R?0:i/R*D},[i,R,D]),q=n.useRef({top:L,dragging:g,pageY:x,startTop:C});q.current={top:L,dragging:g,pageY:x,startTop:C};var z=function(e){b(!0),w(rw(e,u)),O(q.current.top),l(),e.stopPropagation(),e.preventDefault()};n.useEffect(function(){var e=function(e){e.preventDefault()},t=j.current,n=$.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",z,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",z)}},[]);var B=n.useRef();B.current=R;var H=n.useRef();H.current=D,n.useEffect(function(){if(g){var e,t=function(t){var n=q.current,r=n.dragging,o=n.pageY,i=n.startTop;Ko.cancel(e);var a=j.current.getBoundingClientRect(),l=f/(u?a.width:a.height);if(r){var c=(rw(t,u)-o)*l,d=i;!k&&u?d-=c:d+=c;var p=B.current,h=H.current,m=h?d/h:0,v=Math.ceil(m*p);v=Math.max(v,0),v=Math.min(v,p),e=Ko(function(){s(v,u)})}},n=function(){b(!1),c()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Ko.cancel(e)}}},[g]),n.useEffect(function(){return T(),function(){clearTimeout(M.current)}},[i]),n.useImperativeHandle(t,function(){return{delayHidden:T}});var F="".concat(r,"-scrollbar"),W={position:"absolute",visibility:N?null:"hidden"},K={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(W,{height:8,left:0,right:0,bottom:0}),Object.assign(K,E({height:"100%",width:d},k?"left":"right",L))):(Object.assign(W,E({width:8,top:0,bottom:0},k?"right":"left",0)),Object.assign(K,{width:"100%",height:d,top:L})),n.createElement("div",{ref:j,className:Rr()(F,E(E(E({},"".concat(F,"-horizontal"),u),"".concat(F,"-vertical"),!u),"".concat(F,"-visible"),N)),style:A(A({},W),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:T},n.createElement("div",{ref:$,className:Rr()("".concat(F,"-thumb"),E({},"".concat(F,"-thumb-moving"),g)),style:A(A({},K),h),onMouseDown:z}))});const iw=ow;function aw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var lw=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],cw=[],sw={overflowY:"auto",overflowAnchor:"none"};function uw(e,t){var r=e.prefixCls,o=void 0===r?"rc-virtual-list":r,i=e.className,a=e.height,l=e.itemHeight,c=e.fullHeight,s=void 0===c||c,u=e.style,d=e.data,f=e.children,p=e.itemKey,h=e.virtual,m=e.direction,v=e.scrollWidth,g=e.component,b=void 0===g?"div":g,y=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,S=e.innerProps,C=e.extraRender,k=e.styles,j=e.showScrollBar,$=void 0===j?"optional":j,P=eo(e,lw),N=n.useCallback(function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]},[p]),I=function(e,t,r){var o=_(n.useState(0),2),i=o[0],a=o[1],l=(0,n.useRef)(new Map),c=(0,n.useRef)(new Jx),s=(0,n.useRef)(0);function u(){s.current+=1}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){var e=!1;l.current.forEach(function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,a=o.marginBottom,l=r+ew(i)+ew(a);c.current.get(n)!==l&&(c.current.set(n,l),e=!0)}}),e&&a(function(e){return e+1})};if(e)t();else{s.current+=1;var n=s.current;Promise.resolve().then(function(){n===s.current&&t()})}}return(0,n.useEffect)(function(){return u},[]),[function(n,o){var i=e(n),a=l.current.get(i);o?(l.current.set(i,o),d()):l.current.delete(i),!a!=!o&&(o?null==t||t(n):null==r||r(n))},d,c.current,i]}(N,null,null),M=_(I,4),T=M[0],R=M[1],D=M[2],L=M[3],q=!(!1===h||!a||!l),z=n.useMemo(function(){return Object.values(D.maps).reduce(function(e,t){return e+t},0)},[D.id,D.maps]),B=q&&d&&(Math.max(l*d.length,z)>a||!!v),H="rtl"===m,F=Rr()(o,E({},"".concat(o,"-rtl"),H),i),W=d||cw,K=(0,n.useRef)(),U=(0,n.useRef)(),V=(0,n.useRef)(),G=_((0,n.useState)(0),2),Y=G[0],X=G[1],Q=_((0,n.useState)(0),2),Z=Q[0],J=Q[1],ee=_((0,n.useState)(!1),2),te=ee[0],ne=ee[1],re=function(){ne(!0)},oe=function(){ne(!1)},ie={getKey:N};function ae(e){X(function(t){var n=function(e){var t=e;Number.isNaN(Ce.current)||(t=Math.min(t,Ce.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return K.current.scrollTop=n,n})}var le=(0,n.useRef)({start:0,end:W.length}),ce=(0,n.useRef)(),se=_(Gx(W,N),1)[0];ce.current=se;var ue=n.useMemo(function(){if(!q)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};var e;if(!B)return{scrollHeight:(null===(e=U.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:W.length-1,offset:void 0};for(var t,n,r,o=0,i=W.length,c=0;c<i;c+=1){var s=W[c],u=N(s),d=D.get(u),f=o+(void 0===d?l:d);f>=Y&&void 0===t&&(t=c,n=o),f>Y+a&&void 0===r&&(r=c),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/l)),void 0===r&&(r=W.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,W.length-1),offset:n}},[B,q,Y,W,L,a]),de=ue.scrollHeight,fe=ue.start,pe=ue.end,he=ue.offset;le.current.start=fe,le.current.end=pe,n.useLayoutEffect(function(){var e=D.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=W[fe];if(r&&void 0===n)if(N(r)===t){var o=D.get(t)-l;ae(function(e){return e+o})}}D.resetRecord()},[de]);var me=_(n.useState({width:0,height:a}),2),ve=me[0],ge=me[1],be=(0,n.useRef)(),ye=(0,n.useRef)(),xe=n.useMemo(function(){return aw(ve.width,v)},[ve.width,v]),we=n.useMemo(function(){return aw(ve.height,de)},[ve.height,de]),Se=de-a,Ce=(0,n.useRef)(Se);Ce.current=Se;var Oe=Y<=0,ke=Y>=Se,Ee=Z<=0,je=Z>=v,$e=Xx(Oe,ke,Ee,je),Pe=function(){return{x:H?-Z:Z,y:Y}},Ne=(0,n.useRef)(Pe()),_e=fo(function(e){if(x){var t=A(A({},Pe()),e);Ne.current.x===t.x&&Ne.current.y===t.y||(x(t),Ne.current=t)}});function Ie(e,t){var n=e;t?((0,Dr.flushSync)(function(){J(n)}),_e()):ae(n)}var Me=function(e){var t=e,n=v?v-ve.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Te=fo(function(e,t){t?((0,Dr.flushSync)(function(){J(function(t){return Me(t+(H?-e:e))})}),_e()):ae(function(t){return t+e})}),Ae=_(Qx(q,Oe,ke,Ee,je,!!v,Te),2),De=Ae[0],Le=Ae[1];!function(e,t,r){var o,i=(0,n.useRef)(!1),a=(0,n.useRef)(0),l=(0,n.useRef)(0),c=(0,n.useRef)(null),s=(0,n.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=a.current-t,c=l.current-n,u=Math.abs(o)>Math.abs(c);u?a.current=t:l.current=n;var d=r(u,u?o:c,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval(function(){u?o*=tw:c*=tw;var e=Math.floor(u?o:c);(!r(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},d=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",u,{passive:!1}),c.current.addEventListener("touchend",d,{passive:!0}))};o=function(){c.current&&(c.current.removeEventListener("touchmove",u),c.current.removeEventListener("touchend",d))},Re(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(s.current)}},[e])}(q,K,function(e,t,n,r){var o=r;return!$e(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),De({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))}),function(e,t,r){n.useEffect(function(){var n=t.current;if(e&&n){var o,i,a=!1,l=function(){Ko.cancel(o)},c=function e(){l(),o=Ko(function(){r(i),e()})},s=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,l()},d=function(e){if(a){var t=rw(e,!1),r=n.getBoundingClientRect(),o=r.top,s=r.bottom;t<=o?(i=-nw(o-t),c()):t>=s?(i=nw(t-s),c()):l()}};return n.addEventListener("mousedown",s),n.ownerDocument.addEventListener("mouseup",u),n.ownerDocument.addEventListener("mousemove",d),function(){n.removeEventListener("mousedown",s),n.ownerDocument.removeEventListener("mouseup",u),n.ownerDocument.removeEventListener("mousemove",d),l()}}},[e])}(B,K,function(e){ae(function(t){return t+e})}),Re(function(){function e(e){var t=Oe&&e.detail<0,n=ke&&e.detail>0;!q||t||n||e.preventDefault()}var t=K.current;return t.addEventListener("wheel",De,{passive:!1}),t.addEventListener("DOMMouseScroll",Le,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",De),t.removeEventListener("DOMMouseScroll",Le),t.removeEventListener("MozMousePixelScroll",e)}},[q,Oe,ke]),Re(function(){if(v){var e=Me(Z);J(e),_e({x:e})}},[ve.width,v]);var qe=function(){var e,t;null===(e=be.current)||void 0===e||e.delayHidden(),null===(t=ye.current)||void 0===t||t.delayHidden()},ze=function(e,t,r,o,i,a,l,c){var s=n.useRef(),u=_(n.useState(null),2),d=u[0],f=u[1];return Re(function(){if(d&&d.times<10){if(!e.current)return void f(function(e){return A({},e)});a();var n=d.targetAlign,c=d.originAlign,s=d.index,u=d.offset,p=e.current.clientHeight,h=!1,m=n,v=null;if(p){for(var g=n||c,b=0,y=0,x=0,w=Math.min(t.length-1,s),S=0;S<=w;S+=1){var C=i(t[S]);y=b;var O=r.get(C);b=x=y+(void 0===O?o:O)}for(var k="top"===g?u:p-u,E=w;E>=0;E-=1){var j=i(t[E]),$=r.get(j);if(void 0===$){h=!0;break}if((k-=$)<=0)break}switch(g){case"top":v=y-u;break;case"bottom":v=x-p+u;break;default:var P=e.current.scrollTop;y<P?m="top":x>P+p&&(m="bottom")}null!==v&&l(v),v!==d.lastTop&&(h=!0)}h&&f(A(A({},d),{},{times:d.times+1,targetAlign:m,lastTop:v}))}},[d,e.current]),function(e){if(null!=e){if(Ko.cancel(s.current),"number"==typeof e)l(e);else if(e&&"object"===O(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex(function(t){return i(t)===e.key});var o=e.offset;f({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else c()}}(K,W,D,l,N,function(){return R(!0)},ae,qe);n.useImperativeHandle(t,function(){return{nativeElement:V.current,getScrollInfo:Pe,scrollTo:function(e){var t;(t=e)&&"object"===O(t)&&("left"in t||"top"in t)?(void 0!==e.left&&J(Me(e.left)),ze(e.top)):ze(e)}}}),Re(function(){if(w){var e=W.slice(fe,pe+1);w(e,W)}},[fe,pe,W]);var Be=function(e,t,r,o){var i=_(n.useMemo(function(){return[new Map,[]]},[e,r.id,o]),2),a=i[0],l=i[1];return function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,c=a.get(n),s=a.get(i);if(void 0===c||void 0===s)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],h=t(p);a.set(h,d);var m=null!==(f=r.get(h))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+m,h===n&&(c=d),h===i&&(s=d),void 0!==c&&void 0!==s)break}return{top:l[c-1]||0,bottom:l[s]}}}(W,N,D,l),He=null==C?void 0:C({start:fe,end:pe,virtual:B,offsetX:Z,offsetY:he,rtl:H,getSize:Be}),Fe=function(e,t,r,o,i,a,l,c){var s=c.getKey;return e.slice(t,r+1).map(function(e,r){var c=l(e,t+r,{style:{width:o},offsetX:i}),u=s(e);return n.createElement(Vx,{key:u,setRef:function(t){return a(e,t)}},c)})}(W,fe,pe,v,Z,T,f,ie),We=null;a&&(We=A(E({},s?"height":"maxHeight",a),sw),q&&(We.overflowY="hidden",v&&(We.overflowX="hidden"),te&&(We.pointerEvents="none")));var Ke={};return H&&(Ke.dir="rtl"),n.createElement("div",Ve({ref:V,style:A(A({},u),{},{position:"relative"}),className:F},Ke,P),n.createElement(sf,{onResize:function(e){ge({width:e.offsetWidth,height:e.offsetHeight})}},n.createElement(b,{className:"".concat(o,"-holder"),style:We,ref:K,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==Y&&ae(t),null==y||y(e),_e()},onMouseEnter:qe},n.createElement(Ux,{prefixCls:o,height:de,offsetX:Z,offsetY:he,scrollWidth:v,onInnerResize:R,ref:U,innerProps:S,rtl:H,extra:He},Fe))),B&&de>a&&n.createElement(iw,{ref:be,prefixCls:o,scrollOffset:Y,scrollRange:de,rtl:H,onScroll:Ie,onStartMove:re,onStopMove:oe,spinSize:we,containerSize:ve.height,style:null==k?void 0:k.verticalScrollBar,thumbStyle:null==k?void 0:k.verticalScrollBarThumb,showScrollBar:$}),B&&v>ve.width&&n.createElement(iw,{ref:ye,prefixCls:o,scrollOffset:Z,scrollRange:v,rtl:H,onScroll:Ie,onStartMove:re,onStopMove:oe,spinSize:xe,containerSize:ve.width,horizontal:!0,style:null==k?void 0:k.horizontalScrollBar,thumbStyle:null==k?void 0:k.horizontalScrollBarThumb,showScrollBar:$}))}var dw=n.forwardRef(uw);dw.displayName="List";const fw=dw;var pw=["disabled","title","children","style","className"];function hw(e){return"string"==typeof e||"number"==typeof e}var mw=function(e,t){var r=n.useContext(Wy),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,c=r.mode,s=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=n.useContext(Tx),h=p.maxCount,m=p.flattenOptions,v=p.onActiveValue,g=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,x=p.rawValues,w=p.fieldNames,S=p.virtual,C=p.direction,O=p.listHeight,k=p.listItemHeight,j=p.optionRender,$="".concat(o,"-item"),P=Y(function(){return m},[a,m],function(e,t){return t[0]&&e[1]!==t[1]}),N=n.useRef(null),I=n.useMemo(function(){return l&&_x(h)&&(null==x?void 0:x.size)>=h},[l,h,null==x?void 0:x.size]),T=function(e){e.preventDefault()},A=function(e){var t;null===(t=N.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},R=n.useCallback(function(e){return"combobox"!==c&&x.has(e)},[c,M(x).toString(),x.size]),D=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=P.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=P[o]||{},a=i.group,l=i.data;if(!a&&(null==l||!l.disabled)&&(R(l.value)||!I))return o}return-1},L=_(n.useState(function(){return D(0)}),2),q=L[0],z=L[1],B=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];z(e);var n={source:t?"keyboard":"mouse"},r=P[e];r?v(r.value,e,n):v(null,-1,n)};(0,n.useEffect)(function(){B(!1!==g?D(0):-1)},[P.length,s]);var H=n.useCallback(function(e){return"combobox"===c?String(e).toLowerCase()===s.toLowerCase():x.has(e)},[c,s,M(x).toString(),x.size]);(0,n.useEffect)(function(){var e,t=setTimeout(function(){if(!l&&a&&1===x.size){var e=Array.from(x)[0],t=P.findIndex(function(t){var n=t.data;return s?String(n.value).startsWith(s):n.value===e});-1!==t&&(B(t),A(t))}});a&&(null===(e=N.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}},[a,s]);var F=function(e){void 0!==e&&b(e,{selected:!x.has(e)}),l||u(!1)};if(n.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Va.N:case Va.P:case Va.UP:case Va.DOWN:var r=0;if(t===Va.UP?r=-1:t===Va.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Va.N?r=1:t===Va.P&&(r=-1)),0!==r){var o=D(q+r,r);A(o),B(o,!0)}break;case Va.TAB:case Va.ENTER:var i,l=P[q];!l||null!=l&&null!==(i=l.data)&&void 0!==i&&i.disabled||I?F(void 0):F(l.value),a&&e.preventDefault();break;case Va.ESC:u(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){A(e)}}}),0===P.length)return n.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat($,"-empty"),onMouseDown:T},d);var W=Object.keys(w).map(function(e){return w[e]}),K=function(e){return e.label};function U(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var V=function(e){var t=P[e];if(!t)return null;var r=t.data||{},o=r.value,i=t.group,a=Xa(r,!0),l=K(t);return t?n.createElement("div",Ve({"aria-label":"string"!=typeof l||i?null:l},a,{key:e},U(t,e),{"aria-selected":H(o)}),o):null},G={role:"listbox",id:"".concat(i,"_list")};return n.createElement(n.Fragment,null,S&&n.createElement("div",Ve({},G,{style:{height:0,width:0,overflow:"hidden"}}),V(q-1),V(q),V(q+1)),n.createElement(fw,{itemKey:"key",ref:N,data:P,height:O,itemHeight:k,fullHeight:!1,onMouseDown:T,onScroll:f,virtual:S,direction:C,innerProps:S?null:G},function(e,t){var r=e.group,o=e.groupOption,i=e.data,a=e.label,l=e.value,c=i.key;if(r){var s,u=null!==(s=i.title)&&void 0!==s?s:hw(a)?a.toString():void 0;return n.createElement("div",{className:Rr()($,"".concat($,"-group"),i.className),title:u},void 0!==a?a:c)}var d=i.disabled,f=i.title,p=(i.children,i.style),h=i.className,m=Sc(eo(i,pw),W),v=R(l),g=d||!v&&I,b="".concat($,"-option"),x=Rr()($,b,h,E(E(E(E({},"".concat(b,"-grouped"),o),"".concat(b,"-active"),q===t&&!g),"".concat(b,"-disabled"),g),"".concat(b,"-selected"),v)),w=K(e),C=!y||"function"==typeof y||v,O="number"==typeof w?w:w||l,k=hw(O)?O.toString():void 0;return void 0!==f&&(k=f),n.createElement("div",Ve({},Xa(m),S?{}:U(e,t),{"aria-selected":H(l),className:x,title:k,onMouseMove:function(){q===t||g||B(t)},onClick:function(){g||F(l)},style:p}),n.createElement("div",{className:"".concat(b,"-content")},"function"==typeof j?j(e,{index:t}):O),n.isValidElement(y)||v,C&&n.createElement(Fy,{className:"".concat($,"-option-state"),customizeIcon:y,customizeIconProps:{value:l,disabled:g,isSelected:v}},v?"✓":null))}))};const vw=n.forwardRef(mw);function gw(e,t){return gx(e).join("").toUpperCase().includes(t)}var bw=0,yw=D();function xw(e){var t=_(n.useState(),2),r=t[0],o=t[1];return n.useEffect(function(){var e;o("rc_select_".concat((yw?(e=bw,bw+=1):e="TEST_OR_SSR",e)))},[]),e||r}var ww=["children","value"],Sw=["children"];function Cw(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Dc(e).map(function(e,r){if(!n.isValidElement(e)||!e.type)return null;var o=e,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,s=eo(l,Sw);return t||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return A({key:n,value:void 0!==i?i:n,children:o},eo(r,ww))}(e):A(A({key:"__RC_SELECT_GRP__".concat(null===a?r:a,"__"),label:a},s),{},{options:Cw(c)})}).filter(function(e){return e})}const Ow=function(e,t,r,o,i){return n.useMemo(function(){var n=e;!e&&(n=Cw(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[r.options]||n?(a.set(u[r.value],u),c(l,u,r.label),c(l,u,o),c(l,u,i)):e(u[r.options],!0)}}(n),{options:n,valueOptions:a,labelOptions:l}},[e,t,r,o,i])};function kw(e){var t=n.useRef();t.current=e;var r=n.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}var Ew=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],jw=["inputValue"];var $w=n.forwardRef(function(e,t){var r=e.id,o=e.mode,i=e.prefixCls,a=void 0===i?"rc-select":i,l=e.backfill,c=e.fieldNames,s=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=void 0===f||f,h=e.onSelect,m=e.onDeselect,v=e.dropdownMatchSelectWidth,g=void 0===v||v,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,S=e.options,C=e.optionRender,k=e.children,j=e.defaultActiveFirstOption,$=e.menuItemSelectedIcon,P=e.virtual,N=e.direction,I=e.listHeight,T=void 0===I?200:I,R=e.listItemHeight,D=void 0===R?20:R,L=e.labelRender,q=e.value,z=e.defaultValue,B=e.labelInValue,H=e.onChange,F=e.maxCount,W=eo(e,Ew),K=xw(r),U=Lx(o),V=!(S||!k),G=n.useMemo(function(){return(void 0!==b||"combobox"!==o)&&b},[b,o]),Y=n.useMemo(function(){return Ix(c,V)},[JSON.stringify(c),V]),X=_(mo("",{value:void 0!==u?u:s,postState:function(e){return e||""}}),2),Q=X[0],Z=X[1],J=Ow(S,k,Y,x,w),ee=J.valueOptions,te=J.labelOptions,ne=J.options,re=n.useCallback(function(e){return gx(e).map(function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==O(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,c=ee.get(t);c&&(void 0===n&&(n=null==c?void 0:c[w||Y.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:t),o=null==c?void 0:c.disabled,i=null==c?void 0:c.title);return{label:n,value:t,key:r,disabled:o,title:i}})},[Y,w,ee]),oe=_(mo(z,{value:q}),2),ie=oe[0],ae=oe[1],le=n.useMemo(function(){var e,t=re(U&&null===ie?[]:ie);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t},[ie,re,o,U]),ce=function(e,t){var r=n.useRef({values:new Map,options:new Map});return[n.useMemo(function(){var n=r.current,o=n.values,i=n.options,a=e.map(function(e){var t;return void 0===e.label?A(A({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e}),l=new Map,c=new Map;return a.forEach(function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||i.get(e.value))}),r.current.values=l,r.current.options=c,a},[e,t]),n.useCallback(function(e){return t.get(e)||r.current.options.get(e)},[t])]}(le,ee),se=_(ce,2),ue=se[0],de=se[1],fe=n.useMemo(function(){if(!o&&1===ue.length){var e=ue[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ue.map(function(e){var t;return A(A({},e),{},{label:null!==(t="function"==typeof L?L(e):e.label)&&void 0!==t?t:e.value})})},[o,ue,L]),pe=n.useMemo(function(){return new Set(ue.map(function(e){return e.value}))},[ue]);n.useEffect(function(){if("combobox"===o){var e,t=null===(e=ue[0])||void 0===e?void 0:e.value;Z(function(e){return null!=e}(t)?String(t):"")}},[ue]);var he=kw(function(e,t){var n=null!=t?t:e;return E(E({},Y.value,e),Y.label,n)}),me=n.useMemo(function(){if("tags"!==o)return ne;var e=M(ne);return M(ue).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;(function(e){return ee.has(e)})(n)||e.push(he(n,t.label))}),e},[he,ne,ee,ue,o]),ve=function(e,t,r,o,i){return n.useMemo(function(){if(!r||!1===o)return e;var n=t.options,a=t.label,l=t.value,c=[],s="function"==typeof o,u=r.toUpperCase(),d=s?o:function(e,t){return i?gw(t[i],u):t[n]?gw(t["children"!==a?a:"label"],u):gw(t[l],u)},f=s?function(e){return Mx(e)}:function(e){return e};return e.forEach(function(e){if(e[n])if(d(r,f(e)))c.push(e);else{var t=e[n].filter(function(e){return d(r,f(e))});t.length&&c.push(A(A({},e),{},E({},n,t)))}else d(r,f(e))&&c.push(e)}),c},[e,o,i,r,t])}(me,Y,Q,G,x),ge=n.useMemo(function(){return"tags"!==o||!Q||ve.some(function(e){return e[x||"value"]===Q})||ve.some(function(e){return e[Y.value]===Q})?ve:[he(Q)].concat(M(ve))},[he,x,o,ve,Q,Y]),be=function e(t){var n=M(t).sort(function(e,t){return y(e,t,{searchValue:Q})});return n.map(function(t){return Array.isArray(t.options)?A(A({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})},ye=n.useMemo(function(){return y?be(ge):ge},[ge,y,Q]),xe=n.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Ix(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(n||!(c in t)){var i=t[l];o.push({key:Nx(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:Nx(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}})}(e,!1),o}(ye,{fieldNames:Y,childrenAsData:V})},[ye,Y,V]),we=function(e){var t=re(e);if(ae(t),H&&(t.length!==ue.length||t.some(function(e,t){var n;return(null===(n=ue[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=B?t:t.map(function(e){return e.value}),r=t.map(function(e){return Mx(de(e.value))});H(U?n:n[0],U?r:r[0])}},Se=_(n.useState(null),2),Ce=Se[0],Oe=Se[1],ke=_(n.useState(0),2),Ee=ke[0],je=ke[1],$e=void 0!==j?j:"combobox"!==o,Pe=n.useCallback(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;je(t),l&&"combobox"===o&&null!==e&&"keyboard"===r&&Oe(String(e))},[l,o]),Ne=function(e,t,n){var r=function(){var t,n=de(e);return[B?{label:null==n?void 0:n[Y.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Mx(n)]};if(t&&h){var o=_(r(),2),i=o[0],a=o[1];h(i,a)}else if(!t&&m&&"clear"!==n){var l=_(r(),2),c=l[0],s=l[1];m(c,s)}},_e=kw(function(e,t){var n,r=!U||t.selected;n=r?U?[].concat(M(ue),[e]):[e]:ue.filter(function(t){return t.value!==e}),we(n),Ne(e,r),"combobox"===o?Oe(""):Lx&&!p||(Z(""),Oe(""))}),Ie=n.useMemo(function(){var e=!1!==P&&!1!==g;return A(A({},J),{},{flattenOptions:xe,onActiveValue:Pe,defaultActiveFirstOption:$e,onSelect:_e,menuItemSelectedIcon:$,rawValues:pe,fieldNames:Y,virtual:e,direction:N,listHeight:T,listItemHeight:D,childrenAsData:V,maxCount:F,optionRender:C})},[F,J,xe,Pe,$e,_e,$,pe,Y,P,g,N,T,D,V,C]);return n.createElement(Tx.Provider,{value:Ie},n.createElement(zx,Ve({},W,{id:K,prefixCls:a,ref:t,omitDomProps:jw,mode:o,displayValues:fe,onDisplayValuesChange:function(e,t){we(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach(function(e){Ne(e.value,!1,n)})},direction:N,searchValue:Q,onSearch:function(e,t){if(Z(e),Oe(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&we(e),null==d||d(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(M(pe),[n])));we(r),Ne(n,!0),Z("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map(function(e){var t=te.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat(M(pe),M(t))));we(n),n.forEach(function(e){Ne(e,!0)})},dropdownMatchSelectWidth:g,OptionList:vw,emptyOptions:!xe.length,activeValue:Ce,activeDescendantId:"".concat(K,"_list_").concat(Ee)})))});var Pw=$w;Pw.Option=Wx,Pw.OptGroup=Hx;const Nw=Pw;const _w=()=>{const[,e]=yi(),[t]=su("Empty"),r=new Pn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return n.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,(null==t?void 0:t.description)||"Empty"),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(24 31.67)"},n.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),n.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),n.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),n.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),n.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),n.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),n.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},n.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),n.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const Iw=()=>{const[,e]=yi(),[t]=su("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:l,shadowColor:c,contentColor:s}=(0,n.useMemo)(()=>({borderColor:new Pn(r).onBackground(a).toHexString(),shadowColor:new Pn(o).onBackground(a).toHexString(),contentColor:new Pn(i).onBackground(a).toHexString()}),[r,o,i,a]);return n.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,(null==t?void 0:t.description)||"Empty"),n.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},n.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),n.createElement("g",{fillRule:"nonzero",stroke:l},n.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),n.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},Mw=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Tw=ql("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=$l(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Mw(o)]});var Aw=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rw=n.createElement(_w,null),Dw=n.createElement(Iw,null),Lw=e=>{const{className:t,rootClassName:r,prefixCls:o,image:i=Rw,description:a,children:l,imageStyle:c,style:s,classNames:u,styles:d}=e,f=Aw(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:p,direction:h,className:m,style:v,classNames:g,styles:b}=C("empty"),y=p("empty",o),[x,w,S]=Tw(y),[O]=su("Empty"),k=void 0!==a?a:null==O?void 0:O.description,E="string"==typeof k?k:"empty";let j=null;return j="string"==typeof i?n.createElement("img",{alt:E,src:i}):i,x(n.createElement("div",Object.assign({className:Rr()(w,S,y,m,{[`${y}-normal`]:i===Dw,[`${y}-rtl`]:"rtl"===h},t,r,g.root,null==u?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},b.root),v),null==d?void 0:d.root),s)},f),n.createElement("div",{className:Rr()(`${y}-image`,g.image,null==u?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},c),b.image),null==d?void 0:d.image)},j),k&&n.createElement("div",{className:Rr()(`${y}-description`,g.description,null==u?void 0:u.description),style:Object.assign(Object.assign({},b.description),null==d?void 0:d.description)},k),l&&n.createElement("div",{className:Rr()(`${y}-footer`,g.footer,null==u?void 0:u.footer),style:Object.assign(Object.assign({},b.footer),null==d?void 0:d.footer)},l)))};Lw.PRESENTED_IMAGE_DEFAULT=Rw,Lw.PRESENTED_IMAGE_SIMPLE=Dw;const qw=Lw,zw=e=>{const{componentName:t}=e,{getPrefixCls:r}=(0,n.useContext)(x),o=r("empty");switch(t){case"Table":case"List":return n.createElement(qw,{image:qw.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return n.createElement(qw,{image:qw.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return n.createElement(qw,null)}};const Bw=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},Hw=new Zt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Fw=new Zt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ww=new Zt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Kw=new Zt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Uw=new Zt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Vw=new Zt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gw=new Zt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Yw=new Zt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Xw={"slide-up":{inKeyframes:Hw,outKeyframes:Fw},"slide-down":{inKeyframes:Ww,outKeyframes:Kw},"slide-left":{inKeyframes:Uw,outKeyframes:Vw},"slide-right":{inKeyframes:Gw,outKeyframes:Yw}},Qw=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Xw[t];return[Dh(r,o,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}}]},Zw=new Zt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Jw=new Zt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),eS=new Zt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tS=new Zt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),nS=new Zt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rS=new Zt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),oS={"move-up":{inKeyframes:new Zt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Zt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Zw,outKeyframes:Jw},"move-left":{inKeyframes:eS,outKeyframes:tS},"move-right":{inKeyframes:nS,outKeyframes:rS}},iS=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=oS[t];return[Dh(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},aS=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},lS=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Oi(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:Hw},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:Ww},[`${a}${l}bottomLeft`]:{animationName:Fw},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:Kw},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},aS(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ci),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},aS(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Qw(e,"slide-up"),Qw(e,"slide-down"),iS(e,"move-up"),iS(e,"move-down")]},cS=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:$e(t),itemLineHeight:$e(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},sS=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},uS=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",c=cS(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},sS(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${$e(r)} 0`,lineHeight:$e(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:$e(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:$e(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${o}-item + ${o}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:$e(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function dS(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[uS(e,t),o]}const fS=e=>{const{componentCls:t}=e,n=$l(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=$l(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[dS(e),dS(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},dS(r,"lg")]};function pS(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Oi(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:$e(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:$e(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${$e(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:$e(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${$e(r)}`,"&:after":{display:"none"}}}}}}}function hS(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[pS(e),pS($l(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${$e(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},pS($l(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const mS=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${$e(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${$e(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},vS=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mS(e,t))}),gS=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},mS(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),vS(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),vS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),bS=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${$e(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},yS=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},bS(e,t))}),xS=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},bS(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),yS(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),yS(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${$e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),wS=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${$e(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),SS=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${$e(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},CS=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},SS(e,t))}),OS=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},SS(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),CS(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),CS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),kS=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},gS(e)),xS(e)),wS(e)),OS(e))}),ES=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},jS=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},$S=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Oi(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},ES(e)),jS(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ci),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ci),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},PS=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},$S(e),hS(e),fS(e),lS(e),{[`${t}-rtl`]:{direction:"rtl"}},Yu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},NS=ql("Select",(e,{rootPrefixCls:t})=>{const n=$l(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[PS(n),kS(n)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:m,colorBgContainerDisabled:v,colorTextDisabled:g,colorPrimaryHover:b,colorPrimary:y,controlOutline:x}=e,w=2*l,S=2*r,C=Math.min(o-w,o-S),O=Math.min(i-w,i-S),k=Math.min(a-w,a-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:O,multipleItemHeightLG:k,multipleSelectorBgDisabled:v,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:x,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});const _S={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"};var IS=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:_S}))}; | |
| 115 | +/** */const MS=n.forwardRef(IS);const TS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var AS=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:TS}))}; | |
| 116 | +/** */const RS=n.forwardRef(AS);function DS({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:s,feedbackIcon:u,showArrow:d,componentName:f}){const p=null!=t?t:n.createElement(Ma,null),h=t=>null!==e||l||d?n.createElement(n.Fragment,null,!1!==s&&t,l&&u):null;let m=null;if(void 0!==e)m=h(e);else if(i)m=h(n.createElement(Ka,{spin:!0}));else{const e=`${c}-suffix`;m=({open:t,showSearch:r})=>h(t&&r?n.createElement(ly,{className:e}):n.createElement(RS,{className:e}))}let v=null;v=void 0!==r?r:a?n.createElement(MS,null):null;let g=null;return g=void 0!==o?o:n.createElement(Ra,null),{clearIcon:p,suffixIcon:m,itemIcon:v,removeIcon:g}}var LS=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qS="SECRET_COMBOBOX_MODE_DO_NOT_USE",zS=(e,t)=>{var r,o,i,a,l;const{prefixCls:c,bordered:s,className:u,rootClassName:d,getPopupContainer:f,popupClassName:p,dropdownClassName:h,listHeight:m=256,placement:v,listItemHeight:g,size:b,disabled:y,notFoundContent:w,status:S,builtinPlacements:O,dropdownMatchSelectWidth:k,popupMatchSelectWidth:E,direction:j,style:$,allowClear:P,variant:N,dropdownStyle:_,transitionName:I,tagRender:M,maxCount:T,prefix:A,dropdownRender:R,popupRender:D,onDropdownVisibleChange:L,onOpenChange:q,styles:z,classNames:B}=e,H=LS(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:F,getPrefixCls:W,renderEmpty:K,direction:U,virtual:V,popupMatchSelectWidth:G,popupOverflow:Y}=n.useContext(x),{showSearch:X,style:Q,styles:Z,className:J,classNames:ee}=C("select"),[,te]=yi(),ne=null!=g?g:null==te?void 0:te.controlHeight,re=W("select",c),oe=W(),ie=null!=j?j:U,{compactSize:ae,compactItemClassnames:le}=Wc(re,ie),[ce,se]=Mb("select",N,s),ue=ul(re),[de,fe,pe]=NS(re,ue),he=n.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===qS?"combobox":t},[e.mode]),me="multiple"===he||"tags"===he,ve=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ge=null!==(r=null!=E?E:k)&&void 0!==r?r:G,be=(null===(o=null==z?void 0:z.popup)||void 0===o?void 0:o.root)||(null===(i=Z.popup)||void 0===i?void 0:i.root)||_,ye=D||R,xe=q||L,{status:we,hasFeedback:Se,isFormItemInput:Ce,feedbackIcon:Oe}=n.useContext(Sh),ke=Ib(we,S);let Ee;Ee=void 0!==w?w:"combobox"===he?null:(null==K?void 0:K("Select"))||n.createElement(zw,{componentName:"Select"});const{suffixIcon:je,itemIcon:$e,removeIcon:Pe,clearIcon:Ne}=DS(Object.assign(Object.assign({},H),{multiple:me,hasFeedback:Se,feedbackIcon:Oe,showSuffixIcon:ve,prefixCls:re,componentName:"Select"})),_e=!0===P?{clearIcon:Ne}:P,Ie=Sc(H,["suffixIcon","itemIcon"]),Me=Rr()((null===(a=null==B?void 0:B.popup)||void 0===a?void 0:a.root)||(null===(l=null==ee?void 0:ee.popup)||void 0===l?void 0:l.root)||p||h,{[`${re}-dropdown-${ie}`]:"rtl"===ie},d,ee.root,null==B?void 0:B.root,pe,ue,fe),Te=Rc(e=>{var t;return null!==(t=null!=b?b:ae)&&void 0!==t?t:e}),Ae=n.useContext(jr),Re=null!=y?y:Ae,De=Rr()({[`${re}-lg`]:"large"===Te,[`${re}-sm`]:"small"===Te,[`${re}-rtl`]:"rtl"===ie,[`${re}-${ce}`]:se,[`${re}-in-form-item`]:Ce},_b(re,ke,Se),le,J,u,ee.root,null==B?void 0:B.root,d,pe,ue,fe),Le=n.useMemo(()=>void 0!==v?v:"rtl"===ie?"bottomRight":"bottomLeft",[v,ie]);const[qe]=vl("SelectLike",null==be?void 0:be.zIndex);return de(n.createElement(Nw,Object.assign({ref:t,virtual:V,showSearch:X},Ie,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Z.root),null==z?void 0:z.root),Q),$),dropdownMatchSelectWidth:ge,transitionName:Zs(oe,"slide-up",I),builtinPlacements:Bw(O,Y),listHeight:m,listItemHeight:ne,mode:he,prefixCls:re,placement:Le,direction:ie,prefix:A,suffixIcon:je,menuItemSelectedIcon:$e,removeIcon:Pe,allowClear:_e,notFoundContent:Ee,className:De,getPopupContainer:f||F,dropdownClassName:Me,disabled:Re,dropdownStyle:Object.assign(Object.assign({},be),{zIndex:qe}),maxCount:me?T:void 0,tagRender:me?M:void 0,dropdownRender:ye,onDropdownVisibleChange:xe})))};const BS=n.forwardRef(zS),HS=Kv(BS,"dropdownAlign");BS.SECRET_COMBOBOX_MODE_DO_NOT_USE=qS,BS.Option=Wx,BS.OptGroup=Hx,BS._InternalPanelDoNotUseOrYouWillBeFired=HS;const FS=BS;function WS(e){return WS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WS(e)}function KS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function US(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KS(Object(n),!0).forEach(function(t){VS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function VS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=WS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=WS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==WS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return YS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?YS(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var XS=FS.Option;const QS=function(e){var t,n,r,o,a=e.id,l=e.field,s=l.value,u=l.help,d=l.options,f=l.empty,p=l.searchable,m=l.multiple,v=l.disabled,g=l.isPro,b=null===(t=e.field)||void 0===t?void 0:t.fieldType,y=null===(n=e.field)||void 0===n?void 0:n.parentId,x=null===(r=e.field)||void 0===r?void 0:r.index,w=null===(o=e.field)||void 0===o?void 0:o.repeaterData,S={};v?S.disabled=v||!1:g&&(S.disabled=g);var C=GS(c(),2),O=(C[0],C[1]);return(0,i.jsxs)("div",{className:"rtsb-field select",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsxs)(FS,US(US({},S),{},{className:"rtsb-form-field".concat(S.disabled?"-disabled":null),showSearch:!!p,value:s,mode:m?"multiple":null,onChange:function(e){O({type:h,id:a,value:e,fieldType:b,parentId:y,repeaterData:w,index:x})},filterOption:function(e,t){return null==t?void 0:t.title.toLowerCase().includes(e.toLowerCase())},children:[f&&(0,i.jsx)(XS,{value:"",children:f}),Object.keys(d).map(function(e){var t=e.toString(),n=d[e].toString();return(0,i.jsx)(XS,{value:t,title:n,children:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:n}})},e)})]}))}),u&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};const ZS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var JS=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:ZS}))}; | |
| 117 | +/** */const eC=n.forwardRef(JS);function tC(){return"function"==typeof BigInt}function nC(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function rC(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function oC(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function iC(e){var t=String(e);if(oC(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&lC(t)?t.length-t.indexOf(".")-1:0}function aC(e){var t=String(e);if(oC(e)){if(e>Number.MAX_SAFE_INTEGER)return String(tC()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(tC()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(iC(t))}return rC(t).fullStr}function lC(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var cC=function(){function e(t){if(oe(this,e),E(this,"origin",""),E(this,"negative",void 0),E(this,"integer",void 0),E(this,"decimal",void 0),E(this,"decimalLen",void 0),E(this,"empty",void 0),E(this,"nan",void 0),nC(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(oC(n)&&(n=Number(n)),lC(n="string"==typeof n?n:aC(n))){var r=rC(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return ae(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),l=rC(i),c=l.negativeStr,s=l.trimStr,u="".concat(c).concat(s.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":rC("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),sC=function(){function e(t){oe(this,e),E(this,"origin",""),E(this,"number",void 0),E(this,"empty",void 0),nC(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return ae(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(iC(this.number),iC(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(iC(this.number),iC(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":aC(this.number):this.origin}}]),e}();function uC(e){return tC()?new cC(e):new sC(e)}function dC(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=rC(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?dC(uC(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}const fC=uC;const pC=function(){var e=_((0,n.useState)(!1),2),t=e[0],r=e[1];return Re(function(){r(pf())},[]),t};function hC(e){var t=e.prefixCls,r=e.upNode,o=e.downNode,i=e.upDisabled,a=e.downDisabled,l=e.onStep,c=n.useRef(),s=n.useRef([]),u=n.useRef();u.current=l;var d=function(){clearTimeout(c.current)},f=function(e,t){e.preventDefault(),d(),u.current(t),c.current=setTimeout(function e(){u.current(t),c.current=setTimeout(e,200)},600)};if(n.useEffect(function(){return function(){d(),s.current.forEach(function(e){return Ko.cancel(e)})}},[]),pC())return null;var p="".concat(t,"-handler"),h=Rr()(p,"".concat(p,"-up"),E({},"".concat(p,"-up-disabled"),i)),m=Rr()(p,"".concat(p,"-down"),E({},"".concat(p,"-down-disabled"),a)),v=function(){return s.current.push(Ko(d))},g={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return n.createElement("div",{className:"".concat(p,"-wrap")},n.createElement("span",Ve({},g,{onMouseDown:function(e){f(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:h}),r||n.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),n.createElement("span",Ve({},g,{onMouseDown:function(e){f(e,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:m}),o||n.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function mC(e){var t="number"==typeof e?aC(e):rC(e).fullStr;return t.includes(".")?rC(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var vC=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],gC=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],bC=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},yC=function(e){var t=fC(e);return t.isInvalidate()?null:t},xC=n.forwardRef(function(e,t){var r=e.prefixCls,o=e.className,i=e.style,a=e.min,l=e.max,c=e.step,s=void 0===c?1:c,u=e.defaultValue,d=e.value,f=e.disabled,p=e.readOnly,h=e.upHandler,m=e.downHandler,v=e.keyboard,g=e.changeOnWheel,b=void 0!==g&&g,y=e.controls,x=void 0===y||y,w=(e.classNames,e.stringMode),S=e.parser,C=e.formatter,k=e.precision,j=e.decimalSeparator,$=e.onChange,P=e.onInput,N=e.onPressEnter,I=e.onStep,M=e.changeOnBlur,T=void 0===M||M,A=e.domRef,R=eo(e,vC),D="".concat(r,"-input"),L=n.useRef(null),q=_(n.useState(!1),2),z=q[0],B=q[1],H=n.useRef(!1),F=n.useRef(!1),W=n.useRef(!1),K=_(n.useState(function(){return fC(null!=d?d:u)}),2),U=K[0],V=K[1];var G=n.useCallback(function(e,t){if(!t)return k>=0?k:Math.max(iC(e),iC(s))},[k,s]),Y=n.useCallback(function(e){var t=String(e);if(S)return S(t);var n=t;return j&&(n=n.replace(j,".")),n.replace(/[^\w.-]+/g,"")},[S,j]),X=n.useRef(""),Q=n.useCallback(function(e,t){if(C)return C(e,{userTyping:t,input:String(X.current)});var n="number"==typeof e?aC(e):e;if(!t){var r=G(n,t);if(lC(n)&&(j||r>=0))n=dC(n,j||".",r)}return n},[C,G,j]),Z=_(n.useState(function(){var e=null!=u?u:d;return U.isInvalidate()&&["string","number"].includes(O(e))?Number.isNaN(e)?"":e:Q(U.toString(),!1)}),2),J=Z[0],ee=Z[1];function te(e,t){ee(Q(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}X.current=J;var re,oe,ie=n.useMemo(function(){return yC(l)},[l,k]),ae=n.useMemo(function(){return yC(a)},[a,k]),le=n.useMemo(function(){return!(!ie||!U||U.isInvalidate())&&ie.lessEquals(U)},[ie,U]),ce=n.useMemo(function(){return!(!ae||!U||U.isInvalidate())&&U.lessEquals(ae)},[ae,U]),se=function(e,t){var r=(0,n.useRef)(null);return[function(){try{var t=e.selectionStart,n=e.selectionEnd,o=e.value,i=o.substring(0,t),a=o.substring(n);r.current={start:t,end:n,value:o,beforeTxt:i,afterTxt:a}}catch(e){}},function(){if(e&&r.current&&t)try{var n=e.value,o=r.current,i=o.beforeTxt,a=o.afterTxt,l=o.start,c=n.length;if(n.startsWith(i))c=i.length;else if(n.endsWith(a))c=n.length-r.current.afterTxt.length;else{var s=i[l-1],u=n.indexOf(s,l-1);-1!==u&&(c=u+1)}e.setSelectionRange(c,c)}catch(e){ne(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}(L.current,z),ue=_(se,2),de=ue[0],fe=ue[1],pe=function(e){return ie&&!e.lessEquals(ie)?ie:ae&&!ae.lessEquals(e)?ae:null},he=function(e){return!pe(e)},me=function(e,t){var n,r=e,o=he(r)||r.isEmpty();if(r.isEmpty()||t||(r=pe(r)||r,o=!0),!p&&!f&&o){var i=r.toString(),a=G(i,t);return a>=0&&(r=fC(dC(i,".",a)),he(r)||(r=fC(dC(i,".",a,!0)))),r.equals(U)||(n=r,void 0===d&&V(n),null==$||$(r.isEmpty()?null:bC(w,r)),void 0===d&&te(r,t)),r}return U},ve=(re=(0,n.useRef)(0),oe=function(){Ko.cancel(re.current)},(0,n.useEffect)(function(){return oe},[]),function(e){oe(),re.current=Ko(function(){e()})}),ge=function e(t){if(de(),X.current=t,ee(t),!F.current){var n=Y(t),r=fC(n);r.isNaN()||me(r,!0)}null==P||P(t),ve(function(){var n=t;S||(n=t.replace(/。/g,".")),n!==t&&e(n)})},be=function(e){var t;if(!(e&&le||!e&&ce)){H.current=!1;var n=fC(W.current?mC(s):s);e||(n=n.negate());var r=(U||fC(0)).add(n.toString()),o=me(r,!1);null==I||I(bC(w,o),{offset:W.current?mC(s):s,type:e?"up":"down"}),null===(t=L.current)||void 0===t||t.focus()}},ye=function(e){var t,n=fC(Y(J));t=n.isNaN()?me(U,e):me(n,e),void 0!==d?te(U,!1):t.isNaN()||te(t,!1)};n.useEffect(function(){if(b&&z){var e=function(e){be(e.deltaY<0),e.preventDefault()},t=L.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}});return Ae(function(){U.isInvalidate()||te(U,!1)},[k,C]),Ae(function(){var e=fC(d);V(e);var t=fC(Y(J));e.equals(t)&&H.current&&!C||te(e,H.current)},[d]),Ae(function(){C&&fe()},[J]),n.createElement("div",{ref:A,className:Rr()(r,o,E(E(E(E(E({},"".concat(r,"-focused"),z),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),p),"".concat(r,"-not-a-number"),U.isNaN()),"".concat(r,"-out-of-range"),!U.isInvalidate()&&!he(U))),style:i,onFocus:function(){B(!0)},onBlur:function(){T&&ye(!1),B(!1),H.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;H.current=!0,W.current=n,"Enter"===t&&(F.current||(H.current=!1),ye(!1),null==N||N(e)),!1!==v&&!F.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(be("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){H.current=!1,W.current=!1},onCompositionStart:function(){F.current=!0},onCompositionEnd:function(){F.current=!1,ge(L.current.value)},onBeforeInput:function(){H.current=!0}},x&&n.createElement(hC,{prefixCls:r,upNode:h,downNode:m,upDisabled:le,downDisabled:ce,onStep:be}),n.createElement("div",{className:"".concat(D,"-wrap")},n.createElement("input",Ve({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":l,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:s},R,{ref:Yr(L,t),className:D,value:J,onChange:function(e){ge(e.target.value)},disabled:f,readOnly:p}))))}),wC=n.forwardRef(function(e,t){var r=e.disabled,o=e.style,i=e.prefixCls,a=void 0===i?"rc-input-number":i,l=e.value,c=e.prefix,s=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,h=eo(e,gC),m=n.useRef(null),v=n.useRef(null),g=n.useRef(null),b=function(e){g.current&&Sb(g.current,e)};return n.useImperativeHandle(t,function(){return e=g.current,t={focus:b,nativeElement:m.current.nativeElement||v.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var r=e[n];return"function"==typeof r?r.bind(e):r}}):e;var e,t}),n.createElement(Ob,{className:f,triggerFocus:b,prefixCls:a,value:l,disabled:r,style:o,prefix:c,suffix:s,addonAfter:d,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},n.createElement(xC,Ve({prefixCls:a,disabled:r,ref:g,domRef:v,className:null==p?void 0:p.input},h)))});const SC=wC,CC=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o="lg"===r?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},OC=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:c,colorError:s,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:p,colorIcon:h,motionDurationMid:m,handleHoverColor:v,handleOpacity:g,paddingInline:b,paddingBlock:y,handleBg:x,handleActiveBg:w,colorTextDisabled:S,borderRadiusSM:C,borderRadiusLG:O,controlWidth:k,handleBorderColor:E,filledHandleBg:j,lineHeightLG:$,calc:P}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e)),sb(e)),{display:"inline-block",width:k,margin:0,padding:0,borderRadius:o}),Gg(e,{[`${t}-handler-wrap`]:{background:x,[`${t}-handler-down`]:{borderBlockStart:`${$e(n)} ${r} ${E}`}}})),eb(e,{[`${t}-handler-wrap`]:{background:j,[`${t}-handler-down`]:{borderBlockStart:`${$e(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:x}}})),ib(e,{[`${t}-handler-wrap`]:{background:x,[`${t}-handler-down`]:{borderBlockStart:`${$e(n)} ${r} ${E}`}}})),Qg(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:$,borderRadius:O,[`input${t}-input`]:{height:P(l).sub(P(n).mul(2)).equal(),padding:`${$e(f)} ${$e(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:P(c).sub(P(n).mul(2)).equal(),padding:`${$e(d)} ${$e(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},Oi(e)),ub(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:O,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},Xg(e)),nb(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e)),{width:"100%",padding:`${$e(y)} ${$e(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),ab(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${$e(n)} ${r} ${E}`,transition:`all ${m} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{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"}}),{color:h,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},CC(e,"lg")),CC(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:S}})}]},kC=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${$e(n)} 0`}},sb(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${$e(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${$e(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${f}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},EC=ql("InputNumber",e=>{const t=$l(e,Hg(e));return[OC(t),kC(t),Yu(t)]},e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto",r=e.controlHeightSM-2*e.lineWidth;return Object.assign(Object.assign({},Fg(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Pn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0,handleVisibleWidth:!0===n?r:0})},{unitless:{handleOpacity:!0}});var jC=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $C=n.forwardRef((e,t)=>{const{getPrefixCls:r,direction:o}=n.useContext(x),i=n.useRef(null);n.useImperativeHandle(t,()=>i.current);const{className:a,rootClassName:l,size:c,disabled:s,prefixCls:u,addonBefore:d,addonAfter:f,prefix:p,suffix:h,bordered:m,readOnly:v,status:g,controls:b,variant:y}=e,w=jC(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=r("input-number",u),C=ul(S),[O,k,E]=EC(S,C),{compactSize:j,compactItemClassnames:$}=Wc(S,o);let P=n.createElement(eC,{className:`${S}-handler-up-inner`}),N=n.createElement(RS,{className:`${S}-handler-down-inner`});const _="boolean"==typeof b?b:void 0;"object"==typeof b&&(P=void 0===b.upIcon?P:n.createElement("span",{className:`${S}-handler-up-inner`},b.upIcon),N=void 0===b.downIcon?N:n.createElement("span",{className:`${S}-handler-down-inner`},b.downIcon));const{hasFeedback:I,status:M,isFormItemInput:T,feedbackIcon:A}=n.useContext(Sh),R=Ib(M,g),D=Rc(e=>{var t;return null!==(t=null!=c?c:j)&&void 0!==t?t:e}),L=n.useContext(jr),q=null!=s?s:L,[z,B]=Mb("inputNumber",y,m),H=I&&n.createElement(n.Fragment,null,A),F=Rr()({[`${S}-lg`]:"large"===D,[`${S}-sm`]:"small"===D,[`${S}-rtl`]:"rtl"===o,[`${S}-in-form-item`]:T},k),W=`${S}-group`;return O(n.createElement(SC,Object.assign({ref:i,disabled:q,className:Rr()(E,C,a,l,$),upHandler:P,downHandler:N,prefixCls:S,readOnly:v,controls:_,prefix:p,suffix:H||h,addonBefore:d&&n.createElement(kh,{form:!0,space:!0},d),addonAfter:f&&n.createElement(kh,{form:!0,space:!0},f),classNames:{input:F,variant:Rr()({[`${S}-${z}`]:B},_b(S,R,I)),affixWrapper:Rr()({[`${S}-affix-wrapper-sm`]:"small"===D,[`${S}-affix-wrapper-lg`]:"large"===D,[`${S}-affix-wrapper-rtl`]:"rtl"===o,[`${S}-affix-wrapper-without-controls`]:!1===b||q},k),wrapper:Rr()({[`${W}-rtl`]:"rtl"===o},k),groupWrapper:Rr()({[`${S}-group-wrapper-sm`]:"small"===D,[`${S}-group-wrapper-lg`]:"large"===D,[`${S}-group-wrapper-rtl`]:"rtl"===o,[`${S}-group-wrapper-${z}`]:B},_b(`${S}-group-wrapper`,R,I),k)}},w)))}),PC=$C;PC._InternalPanelDoNotUseOrYouWillBeFired=e=>n.createElement(Bi,{theme:{components:{InputNumber:{handleVisible:!0}}}},n.createElement($C,Object.assign({},e)));const NC=PC;function _C(e){return _C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_C(e)}function IC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IC(Object(n),!0).forEach(function(t){TC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return RC(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RC(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const DC=function(e){var t,n,r,o,a=e.field,l=a.help,s=a.value,u=a.placeholder,d=a.size,f=a.min,p=a.max,m=a.integer,v=a.isPro,g=a.disabled,b=e.id,y=AC(c(),2),x=(y[0],y[1]),w=null===(t=e.field)||void 0===t?void 0:t.fieldType,S=null===(n=e.field)||void 0===n?void 0:n.parentId,C=null===(r=e.field)||void 0===r?void 0:r.index,O=null===(o=e.field)||void 0===o?void 0:o.repeaterData,k=s;!0===m&&(k=parseInt(s,10));var E={};return g?E.disabled=g||!1:v&&(E.disabled=v),(0,i.jsxs)("div",{className:"rtsb-field text",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsx)(NC,MC(MC({},E),{},{className:"rtsb-form-field",size:d,min:f,max:p,defaultValue:"null"!==k?k:"",placeholder:u,value:"null"!==k?k:"",onChange:function(e){x({type:h,id:b,value:e,fieldType:w,parentId:S,repeaterData:O,index:C})}}))}),l&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:l}})]})]})};const LC=function(e){var t=e.field.html;return(0,i.jsxs)("div",{className:"rtsb-field raw",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsx)("div",{className:"rtsb-field__content",children:t&&(0,i.jsx)("div",{className:"rtsb-field__html",dangerouslySetInnerHTML:{__html:t}})})]})};const qC=function(e){var t,n=e.field,r=n.label,o=n.subtitle,a=(null===(t=e.field)||void 0===t?void 0:t.customClass)||"";return(0,i.jsxs)("div",{className:"rtsb-field-title ".concat(a),children:[(0,i.jsx)("h3",{className:"title-label",dangerouslySetInnerHTML:{__html:r}}),o&&(0,i.jsx)("div",{className:"rtsb-field__subtitle",dangerouslySetInnerHTML:{__html:o}})]})},zC=e=>e?"function"==typeof e?e():e:null,BC=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:h,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},Oi(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:m},[`${t}-inner-content`]:{color:n,padding:h}})},Nh(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},HC=e=>{const{componentCls:t}=e;return{[t]:Qc.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},FC=ql("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=$l(e,{popoverBg:t,popoverColor:n});return[BC(r),HC(r),Kh(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,h=f/2-t,m=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Eh(e)),$h({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${m}px ${h}px`:0,titleBorderBottom:i?`${t}px ${s} ${u}`:"none",innerContentPadding:i?`${d}px ${m}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var WC=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const KC=({title:e,content:t,prefixCls:r})=>e||t?n.createElement(n.Fragment,null,e&&n.createElement("div",{className:`${r}-title`},e),t&&n.createElement("div",{className:`${r}-inner-content`},t)):null,UC=e=>{const{hashId:t,prefixCls:r,className:o,style:i,placement:a="top",title:l,content:c,children:s}=e,u=zC(l),d=zC(c),f=Rr()(t,r,`${r}-pure`,`${r}-placement-${a}`,o);return n.createElement("div",{className:f,style:i},n.createElement("div",{className:`${r}-arrow`}),n.createElement(bd,Object.assign({},e,{className:t,prefixCls:r}),s||n.createElement(KC,{prefixCls:r,title:u,content:d})))},VC=e=>{const{prefixCls:t,className:r}=e,o=WC(e,["prefixCls","className"]),{getPrefixCls:i}=n.useContext(x),a=i("popover",t),[l,c,s]=FC(a);return l(n.createElement(UC,Object.assign({},o,{prefixCls:a,hashId:c,className:Rr()(r,s)})))};var GC=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const YC=n.forwardRef((e,t)=>{var r,o;const{prefixCls:i,title:a,content:l,overlayClassName:c,placement:s="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,onOpenChange:h,overlayStyle:m={},styles:v,classNames:g}=e,b=GC(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:x,style:w,classNames:S,styles:O}=C("popover"),k=y("popover",i),[E,j,$]=FC(k),P=y(),N=Rr()(c,j,$,x,S.root,null==g?void 0:g.root),_=Rr()(S.body,null==g?void 0:g.body),[I,M]=mo(!1,{value:null!==(r=e.open)&&void 0!==r?r:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),T=(e,t)=>{M(e,!0),null==h||h(e,t)},A=zC(a),R=zC(l);return E(n.createElement(om,Object.assign({placement:s,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:p},b,{prefixCls:k,classNames:{root:N,body:_},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},O.root),w),m),null==v?void 0:v.root),body:Object.assign(Object.assign({},O.body),null==v?void 0:v.body)},ref:t,open:I,onOpenChange:e=>{T(e)},overlay:A||R?n.createElement(KC,{prefixCls:k,title:A,content:R}):null,transitionName:Zs(P,"zoom-big",b.transitionName),"data-popover-inject":!0}),Ec(d,{onKeyDown:e=>{var t,r;n.isValidElement(d)&&(null===(r=null==d?void 0:(t=d.props).onKeyDown)||void 0===r||r.call(t,e)),(e=>{e.keyCode===Va.ESC&&T(!1,e)})(e)}})))}),XC=YC;XC._InternalPanelDoNotUseOrYouWillBeFired=VC;const QC=XC,ZC=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},JC=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},Oi(e)),{borderBlockStart:`${$e(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${$e(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${$e(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${$e(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${$e(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${$e(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${$e(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},eO=ql("Divider",e=>{const t=$l(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[JC(t),ZC(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var tO=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nO={small:"sm",middle:"md"};const rO=e=>{const{getPrefixCls:t,direction:r,className:o,style:i}=C("divider"),{prefixCls:a,type:l="horizontal",orientation:c="center",orientationMargin:s,className:u,rootClassName:d,children:f,dashed:p,variant:h="solid",plain:m,style:v,size:g}=e,b=tO(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),y=t("divider",a),[x,w,S]=eO(y),O=Rc(g),k=nO[O],E=!!f,j=n.useMemo(()=>"left"===c?"rtl"===r?"end":"start":"right"===c?"rtl"===r?"start":"end":c,[r,c]),$="start"===j&&null!=s,P="end"===j&&null!=s,N=Rr()(y,o,w,S,`${y}-${l}`,{[`${y}-with-text`]:E,[`${y}-with-text-${j}`]:E,[`${y}-dashed`]:!!p,[`${y}-${h}`]:"solid"!==h,[`${y}-plain`]:!!m,[`${y}-rtl`]:"rtl"===r,[`${y}-no-default-orientation-margin-start`]:$,[`${y}-no-default-orientation-margin-end`]:P,[`${y}-${k}`]:!!k},u,d),_=n.useMemo(()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s,[s]),I={marginInlineStart:$?_:void 0,marginInlineEnd:P?_:void 0};return x(n.createElement("div",Object.assign({className:N,style:Object.assign(Object.assign({},i),v)},b,{role:"separator"}),f&&"vertical"!==l&&n.createElement("span",{className:`${y}-inner-text`,style:I},f)))};var oO=function(e,t){if(!e)return null;var n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},iO=function(e){return void 0!==e?"".concat(e,"px"):void 0};function aO(e){var t=e.prefixCls,r=e.containerRef,o=e.value,i=e.getValueIndex,a=e.motionName,l=e.onMotionStart,c=e.onMotionEnd,s=e.direction,u=e.vertical,d=void 0!==u&&u,f=n.useRef(null),p=_(n.useState(o),2),h=p[0],m=p[1],v=function(e){var n,o=i(e),a=null===(n=r.current)||void 0===n?void 0:n.querySelectorAll(".".concat(t,"-item"))[o];return(null==a?void 0:a.offsetParent)&&a},g=_(n.useState(null),2),b=g[0],y=g[1],x=_(n.useState(null),2),w=x[0],S=x[1];Re(function(){if(h!==o){var e=v(h),t=v(o),n=oO(e,d),r=oO(t,d);m(o),y(n),S(r),e&&t?l():c()}},[o]);var C=n.useMemo(function(){var e;return iO(d?null!==(e=null==b?void 0:b.top)&&void 0!==e?e:0:"rtl"===s?-(null==b?void 0:b.right):null==b?void 0:b.left)},[d,s,b]),O=n.useMemo(function(){var e;return iO(d?null!==(e=null==w?void 0:w.top)&&void 0!==e?e:0:"rtl"===s?-(null==w?void 0:w.right):null==w?void 0:w.left)},[d,s,w]);return b&&w?n.createElement(si,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:function(){return d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){y(null),S(null),c()}},function(e,r){var o=e.className,i=A(A({},e.style),{},{"--thumb-start-left":C,"--thumb-start-width":iO(null==b?void 0:b.width),"--thumb-active-left":O,"--thumb-active-width":iO(null==w?void 0:w.width),"--thumb-start-top":C,"--thumb-start-height":iO(null==b?void 0:b.height),"--thumb-active-top":O,"--thumb-active-height":iO(null==w?void 0:w.height)}),a={ref:Yr(f,r),style:i,className:Rr()("".concat(t,"-thumb"),o)};return n.createElement("div",a)}):null}var lO=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function cO(e){return e.map(function(e){if("object"===O(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==O(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return A(A({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}})}var sO=function(e){var t=e.prefixCls,r=e.className,o=e.disabled,i=e.checked,a=e.label,l=e.title,c=e.value,s=e.name,u=e.onChange,d=e.onFocus,f=e.onBlur,p=e.onKeyDown,h=e.onKeyUp,m=e.onMouseDown;return n.createElement("label",{className:Rr()(r,E({},"".concat(t,"-item-disabled"),o)),onMouseDown:m},n.createElement("input",{name:s,className:"".concat(t,"-item-input"),type:"radio",disabled:o,checked:i,onChange:function(e){o||u(e,c)},onFocus:d,onBlur:f,onKeyDown:p,onKeyUp:h}),n.createElement("div",{className:"".concat(t,"-item-label"),title:l,"aria-selected":i},a))},uO=n.forwardRef(function(e,t){var r,o,i=e.prefixCls,a=void 0===i?"rc-segmented":i,l=e.direction,c=e.vertical,s=e.options,u=void 0===s?[]:s,d=e.disabled,f=e.defaultValue,p=e.value,h=e.name,m=e.onChange,v=e.className,g=void 0===v?"":v,b=e.motionName,y=void 0===b?"thumb-motion":b,x=eo(e,lO),w=n.useRef(null),S=n.useMemo(function(){return Yr(w,t)},[w,t]),C=n.useMemo(function(){return cO(u)},[u]),O=_(mo(null===(r=C[0])||void 0===r?void 0:r.value,{value:p,defaultValue:f}),2),k=O[0],j=O[1],$=_(n.useState(!1),2),P=$[0],N=$[1],I=function(e,t){j(t),null==m||m(t)},M=Sc(x,["children"]),T=_(n.useState(!1),2),A=T[0],R=T[1],D=_(n.useState(!1),2),L=D[0],q=D[1],z=function(){q(!0)},B=function(){q(!1)},H=function(){R(!1)},F=function(e){"Tab"===e.key&&R(!0)},W=function(e){var t=C.findIndex(function(e){return e.value===k}),n=C.length,r=C[(t+e+n)%n];r&&(j(r.value),null==m||m(r.value))},K=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":W(-1);break;case"ArrowRight":case"ArrowDown":W(1)}};return n.createElement("div",Ve({role:"radiogroup","aria-label":"segmented control",tabIndex:d?void 0:0},M,{className:Rr()(a,(o={},E(o,"".concat(a,"-rtl"),"rtl"===l),E(o,"".concat(a,"-disabled"),d),E(o,"".concat(a,"-vertical"),c),o),g),ref:S}),n.createElement("div",{className:"".concat(a,"-group")},n.createElement(aO,{vertical:c,prefixCls:a,value:k,containerRef:w,motionName:"".concat(a,"-").concat(y),direction:l,getValueIndex:function(e){return C.findIndex(function(t){return t.value===e})},onMotionStart:function(){N(!0)},onMotionEnd:function(){N(!1)}}),C.map(function(e){var t;return n.createElement(sO,Ve({},e,{name:h,key:e.value,prefixCls:a,className:Rr()(e.className,"".concat(a,"-item"),(t={},E(t,"".concat(a,"-item-selected"),e.value===k&&!P),E(t,"".concat(a,"-item-focused"),L&&A&&e.value===k),t)),checked:e.value===k,onChange:I,onFocus:z,onBlur:B,onKeyDown:K,onKeyUp:F,onMouseDown:H,disabled:!!d||!!e.disabled}))})))});const dO=uO;function fO(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function pO(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const hO=Object.assign({overflow:"hidden"},Ci),mO=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Ei(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${$e(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},pO(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},ki(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:$e(n),padding:`0 ${$e(e.segmentedPaddingHorizontal)}`},hO),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},pO(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${$e(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:$e(r),padding:`0 ${$e(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:$e(o),padding:`0 ${$e(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),fO(`&-disabled ${t}-item`,e)),fO(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},vO=ql("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=$l(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[mO(r)]},e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}});var gO=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const bO=n.forwardRef((e,t)=>{const r=ff(),{prefixCls:o,className:i,rootClassName:a,block:l,options:c=[],size:s="middle",style:u,vertical:d,shape:f="default",name:p=r}=e,h=gO(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:m,direction:v,className:g,style:b}=C("segmented"),y=m("segmented",o),[x,w,S]=vO(y),O=Rc(s),k=n.useMemo(()=>c.map(e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:r}=e,o=gO(e,["icon","label"]);return Object.assign(Object.assign({},o),{label:n.createElement(n.Fragment,null,n.createElement("span",{className:`${y}-item-icon`},t),r&&n.createElement("span",null,r))})}return e}),[c,y]),E=Rr()(i,a,g,{[`${y}-block`]:l,[`${y}-sm`]:"small"===O,[`${y}-lg`]:"large"===O,[`${y}-vertical`]:d,[`${y}-shape-${f}`]:"round"===f},w,S),j=Object.assign(Object.assign({},b),u);return x(n.createElement(dO,Object.assign({},h,{name:p,className:E,style:j,options:k,ref:t,prefixCls:y,direction:v,vertical:d})))});const yO=bO,xO=n.createContext({}),wO=n.createContext({}),SO=({prefixCls:e,value:t,onChange:r})=>n.createElement("div",{className:`${e}-clear`,onClick:()=>{if(r&&t&&!t.cleared){const e=t.toHsb();e.a=0;const n=uu(e);n.cleared=!0,r(n)}}}),CO="hex",OO="rgb",kO="hsb",EO=({prefixCls:e,min:t=0,max:r=100,value:o,onChange:i,className:a,formatter:l})=>{const c=`${e}-steppers`,[s,u]=(0,n.useState)(0),d=Number.isNaN(o)?s:o;return n.createElement(NC,{className:Rr()(c,a),min:t,max:r,value:d,formatter:l,size:"small",onChange:e=>{u(e||0),null==i||i(e)}})},jO=({prefixCls:e,value:t,onChange:r})=>{const o=`${e}-alpha-input`,[i,a]=(0,n.useState)(()=>uu(t||"#000")),l=t||i;return n.createElement(EO,{value:fu(l),prefixCls:e,formatter:e=>`${e}%`,className:o,onChange:e=>{const t=l.toHsb();t.a=(e||0)/100;const n=uu(t);a(n),null==r||r(n)}})},$O=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,PO=({prefixCls:e,value:t,onChange:r})=>{const o=`${e}-hex-input`,[i,a]=(0,n.useState)(()=>t?Is(t.toHexString()):void 0);(0,n.useEffect)(()=>{t&&a(Is(t.toHexString()))},[t]);return n.createElement(Db,{className:o,value:i,prefix:"#",onChange:e=>{const t=e.target.value;a(Is(t)),(e=>$O.test(`#${e}`))(Is(t,!0))&&(null==r||r(uu(t)))},size:"small"})},NO=({prefixCls:e,value:t,onChange:r})=>{const o=`${e}-hsb-input`,[i,a]=(0,n.useState)(()=>uu(t||"#000")),l=t||i,c=(e,t)=>{const n=l.toHsb();n[t]="h"===t?e:(e||0)/100;const o=uu(n);a(o),null==r||r(o)};return n.createElement("div",{className:o},n.createElement(EO,{max:360,min:0,value:Number(l.toHsb().h),prefixCls:e,className:o,formatter:e=>du(e||0).toString(),onChange:e=>c(Number(e),"h")}),n.createElement(EO,{max:100,min:0,value:100*Number(l.toHsb().s),prefixCls:e,className:o,formatter:e=>`${du(e||0)}%`,onChange:e=>c(Number(e),"s")}),n.createElement(EO,{max:100,min:0,value:100*Number(l.toHsb().b),prefixCls:e,className:o,formatter:e=>`${du(e||0)}%`,onChange:e=>c(Number(e),"b")}))},_O=({prefixCls:e,value:t,onChange:r})=>{const o=`${e}-rgb-input`,[i,a]=(0,n.useState)(()=>uu(t||"#000")),l=t||i,c=(e,t)=>{const n=l.toRgb();n[t]=e||0;const o=uu(n);a(o),null==r||r(o)};return n.createElement("div",{className:o},n.createElement(EO,{max:255,min:0,value:Number(l.toRgb().r),prefixCls:e,className:o,onChange:e=>c(Number(e),"r")}),n.createElement(EO,{max:255,min:0,value:Number(l.toRgb().g),prefixCls:e,className:o,onChange:e=>c(Number(e),"g")}),n.createElement(EO,{max:255,min:0,value:Number(l.toRgb().b),prefixCls:e,className:o,onChange:e=>c(Number(e),"b")}))},IO=[CO,kO,OO].map(e=>({value:e,label:e.toUpperCase()})),MO=e=>{const{prefixCls:t,format:r,value:o,disabledAlpha:i,onFormatChange:a,onChange:l,disabledFormat:c}=e,[s,u]=mo(CO,{value:r,onChange:a}),d=`${t}-input`,f=(0,n.useMemo)(()=>{const e={value:o,prefixCls:t,onChange:l};switch(s){case kO:return n.createElement(NO,Object.assign({},e));case OO:return n.createElement(_O,Object.assign({},e));default:return n.createElement(PO,Object.assign({},e))}},[s,t,o,l]);return n.createElement("div",{className:`${d}-container`},!c&&n.createElement(FS,{value:s,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{u(e)},className:`${t}-format-select`,size:"small",options:IO}),n.createElement("div",{className:d},f),!i&&n.createElement(jO,{prefixCls:t,value:o,onChange:l}))};function TO(e,t,n){return(e-t)/(n-t)}function AO(e,t,n,r){var o=TO(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function RO(e,t){return Array.isArray(e)?e[t]:e}const DO=n.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});var LO=n.createContext({}),qO=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],zO=n.forwardRef(function(e,t){var r,o=e.prefixCls,i=e.value,a=e.valueIndex,l=e.onStartMove,c=e.onDelete,s=e.style,u=e.render,d=e.dragging,f=e.draggingDelete,p=e.onOffsetChange,h=e.onChangeComplete,m=e.onFocus,v=e.onMouseEnter,g=eo(e,qO),b=n.useContext(DO),y=b.min,x=b.max,w=b.direction,S=b.disabled,C=b.keyboard,O=b.range,k=b.tabIndex,j=b.ariaLabelForHandle,$=b.ariaLabelledByForHandle,P=b.ariaRequired,N=b.ariaValueTextFormatterForHandle,_=b.styles,I=b.classNames,M="".concat(o,"-handle"),T=function(e){S||l(e,a)},R=AO(w,i,y,x),D={};null!==a&&(D={tabIndex:S?null:RO(k,a),role:"slider","aria-valuemin":y,"aria-valuemax":x,"aria-valuenow":i,"aria-disabled":S,"aria-label":RO(j,a),"aria-labelledby":RO($,a),"aria-required":RO(P,a),"aria-valuetext":null===(r=RO(N,a))||void 0===r?void 0:r(i),"aria-orientation":"ltr"===w||"rtl"===w?"horizontal":"vertical",onMouseDown:T,onTouchStart:T,onFocus:function(e){null==m||m(e,a)},onMouseEnter:function(e){v(e,a)},onKeyDown:function(e){if(!S&&C){var t=null;switch(e.which||e.keyCode){case Va.LEFT:t="ltr"===w||"btt"===w?-1:1;break;case Va.RIGHT:t="ltr"===w||"btt"===w?1:-1;break;case Va.UP:t="ttb"!==w?1:-1;break;case Va.DOWN:t="ttb"!==w?-1:1;break;case Va.HOME:t="min";break;case Va.END:t="max";break;case Va.PAGE_UP:t=2;break;case Va.PAGE_DOWN:t=-2;break;case Va.BACKSPACE:case Va.DELETE:c(a)}null!==t&&(e.preventDefault(),p(t,a))}},onKeyUp:function(e){switch(e.which||e.keyCode){case Va.LEFT:case Va.RIGHT:case Va.UP:case Va.DOWN:case Va.HOME:case Va.END:case Va.PAGE_UP:case Va.PAGE_DOWN:null==h||h()}}});var L=n.createElement("div",Ve({ref:t,className:Rr()(M,E(E(E({},"".concat(M,"-").concat(a+1),null!==a&&O),"".concat(M,"-dragging"),d),"".concat(M,"-dragging-delete"),f),I.handle),style:A(A(A({},R),s),_.handle)},D,g));return u&&(L=u(L,{index:a,prefixCls:o,value:i,dragging:d,draggingDelete:f})),L});const BO=zO;var HO=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],FO=n.forwardRef(function(e,t){var r=e.prefixCls,o=e.style,i=e.onStartMove,a=e.onOffsetChange,l=e.values,c=e.handleRender,s=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,p=eo(e,HO),h=n.useRef({}),m=_(n.useState(!1),2),v=m[0],g=m[1],b=_(n.useState(-1),2),y=b[0],x=b[1],w=function(e){x(e),g(!0)};n.useImperativeHandle(t,function(){return{focus:function(e){var t;null===(t=h.current[e])||void 0===t||t.focus()},hideHelp:function(){(0,Dr.flushSync)(function(){g(!1)})}}});var S=A({prefixCls:r,onStartMove:i,onOffsetChange:a,render:c,onFocus:function(e,t){w(t),null==f||f(e)},onMouseEnter:function(e,t){w(t)}},p);return n.createElement(n.Fragment,null,l.map(function(e,t){var r=u===t;return n.createElement(BO,Ve({ref:function(e){e?h.current[t]=e:delete h.current[t]},dragging:r,draggingDelete:r&&d,style:RO(o,t),key:t,value:e,valueIndex:t},S))}),s&&v&&n.createElement(BO,Ve({key:"a11y"},S,{value:l[y],valueIndex:null,dragging:-1!==u,draggingDelete:d,render:s,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const WO=FO;const KO=function(e){var t=e.prefixCls,r=e.style,o=e.children,i=e.value,a=e.onClick,l=n.useContext(DO),c=l.min,s=l.max,u=l.direction,d=l.includedStart,f=l.includedEnd,p=l.included,h="".concat(t,"-text"),m=AO(u,i,c,s);return n.createElement("span",{className:Rr()(h,E({},"".concat(h,"-active"),p&&d<=i&&i<=f)),style:A(A({},m),r),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(i)}},o)};const UO=function(e){var t=e.prefixCls,r=e.marks,o=e.onClick,i="".concat(t,"-mark");return r.length?n.createElement("div",{className:i},r.map(function(e){var t=e.value,r=e.style,a=e.label;return n.createElement(KO,{key:t,prefixCls:i,style:r,value:t,onClick:o},a)})):null};const VO=function(e){var t=e.prefixCls,r=e.value,o=e.style,i=e.activeStyle,a=n.useContext(DO),l=a.min,c=a.max,s=a.direction,u=a.included,d=a.includedStart,f=a.includedEnd,p="".concat(t,"-dot"),h=u&&d<=r&&r<=f,m=A(A({},AO(s,r,l,c)),"function"==typeof o?o(r):o);return h&&(m=A(A({},m),"function"==typeof i?i(r):i)),n.createElement("span",{className:Rr()(p,E({},"".concat(p,"-active"),h)),style:m})};const GO=function(e){var t=e.prefixCls,r=e.marks,o=e.dots,i=e.style,a=e.activeStyle,l=n.useContext(DO),c=l.min,s=l.max,u=l.step,d=n.useMemo(function(){var e=new Set;if(r.forEach(function(t){e.add(t.value)}),o&&null!==u)for(var t=c;t<=s;)e.add(t),t+=u;return Array.from(e)},[c,s,u,o,r]);return n.createElement("div",{className:"".concat(t,"-step")},d.map(function(e){return n.createElement(VO,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})}))};const YO=function(e){var t=e.prefixCls,r=e.style,o=e.start,i=e.end,a=e.index,l=e.onStartMove,c=e.replaceCls,s=n.useContext(DO),u=s.direction,d=s.min,f=s.max,p=s.disabled,h=s.range,m=s.classNames,v="".concat(t,"-track"),g=TO(o,d,f),b=TO(i,d,f),y=function(e){!p&&l&&l(e,-1)},x={};switch(u){case"rtl":x.right="".concat(100*g,"%"),x.width="".concat(100*b-100*g,"%");break;case"btt":x.bottom="".concat(100*g,"%"),x.height="".concat(100*b-100*g,"%");break;case"ttb":x.top="".concat(100*g,"%"),x.height="".concat(100*b-100*g,"%");break;default:x.left="".concat(100*g,"%"),x.width="".concat(100*b-100*g,"%")}var w=c||Rr()(v,E(E({},"".concat(v,"-").concat(a+1),null!==a&&h),"".concat(t,"-track-draggable"),l),m.track);return n.createElement("div",{className:w,style:A(A({},x),r),onMouseDown:y,onTouchStart:y})};const XO=function(e){var t=e.prefixCls,r=e.style,o=e.values,i=e.startPoint,a=e.onStartMove,l=n.useContext(DO),c=l.included,s=l.range,u=l.min,d=l.styles,f=l.classNames,p=n.useMemo(function(){if(!s){if(0===o.length)return[];var e=null!=i?i:u,t=o[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],r=0;r<o.length-1;r+=1)n.push({start:o[r],end:o[r+1]});return n},[o,s,i,u]);if(!c)return null;var h=null!=p&&p.length&&(f.tracks||d.tracks)?n.createElement(YO,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:Rr()(f.tracks,"".concat(t,"-tracks")),style:d.tracks}):null;return n.createElement(n.Fragment,null,h,p.map(function(e,o){var i=e.start,l=e.end;return n.createElement(YO,{index:o,prefixCls:t,style:A(A({},RO(r,o)),d.track),start:i,end:l,key:o,onStartMove:a})}))};function QO(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}const ZO=function(e,t,r,o,i,a,l,c,s,u,d){var f=_(n.useState(null),2),p=f[0],h=f[1],m=_(n.useState(-1),2),v=m[0],g=m[1],b=_(n.useState(!1),2),y=b[0],x=b[1],w=_(n.useState(r),2),S=w[0],C=w[1],O=_(n.useState(r),2),k=O[0],E=O[1],j=n.useRef(null),$=n.useRef(null),P=n.useRef(null),N=n.useContext(LO),I=N.onDragStart,T=N.onDragChange;Re(function(){-1===v&&C(r)},[r,v]),n.useEffect(function(){return function(){document.removeEventListener("mousemove",j.current),document.removeEventListener("mouseup",$.current),P.current&&(P.current.removeEventListener("touchmove",j.current),P.current.removeEventListener("touchend",$.current))}},[]);var A=function(e,t,n){void 0!==t&&h(t),C(e);var r=e;n&&(r=e.filter(function(e,t){return t!==v})),l(r),T&&T({rawValues:e,deleteIndex:n?v:-1,draggingIndex:v,draggingValue:t})},R=fo(function(e,t,n){if(-1===e){var r=k[0],l=k[k.length-1],c=o-r,u=i-l,d=t*(i-o);d=Math.max(d,c),d=Math.min(d,u);var f=a(r+d);d=f-r;var p=k.map(function(e){return e+d});A(p)}else{var h=(i-o)*t,m=M(S);m[e]=k[e];var v=s(m,h,e,"dist");A(v.values,v.value,n)}}),D=n.useMemo(function(){var e=M(r).sort(function(e,t){return e-t}),t=M(S).sort(function(e,t){return e-t}),n={};t.forEach(function(e){n[e]=(n[e]||0)+1}),e.forEach(function(e){n[e]=(n[e]||0)-1});var o=u?1:0,i=Object.values(n).reduce(function(e,t){return e+Math.abs(t)},0);return i<=o?S:r},[r,S,u]);return[v,p,y,D,function(n,o,i){n.stopPropagation();var a=i||r,l=a[o];g(o),h(l),E(a),C(a),x(!1);var s=QO(n),f=s.pageX,p=s.pageY,m=!1;I&&I({rawValues:a,draggingIndex:o,draggingValue:l});var v=function(n){n.preventDefault();var r,i,a=QO(n),l=a.pageX,c=a.pageY,s=l-f,h=c-p,v=e.current.getBoundingClientRect(),g=v.width,b=v.height;switch(t){case"btt":r=-h/b,i=s;break;case"ttb":r=h/b,i=s;break;case"rtl":r=-s/g,i=h;break;default:r=s/g,i=h}m=!!u&&(Math.abs(i)>130&&d<S.length),x(m),R(o,r,m)},b=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",v),P.current&&(P.current.removeEventListener("touchmove",j.current),P.current.removeEventListener("touchend",$.current)),j.current=null,$.current=null,P.current=null,c(m),g(-1),x(!1)};document.addEventListener("mouseup",b),document.addEventListener("mousemove",v),n.currentTarget.addEventListener("touchend",b),n.currentTarget.addEventListener("touchmove",v),j.current=v,$.current=b,P.current=n.currentTarget}]};var JO=n.forwardRef(function(e,t){var r=e.prefixCls,o=void 0===r?"rc-slider":r,i=e.className,a=e.style,l=e.classNames,c=e.styles,s=e.id,u=e.disabled,d=void 0!==u&&u,f=e.keyboard,p=void 0===f||f,h=e.autoFocus,m=e.onFocus,v=e.onBlur,g=e.min,b=void 0===g?0:g,y=e.max,x=void 0===y?100:y,w=e.step,S=void 0===w?1:w,C=e.value,k=e.defaultValue,j=e.range,$=e.count,P=e.onChange,N=e.onBeforeChange,I=e.onAfterChange,T=e.onChangeComplete,R=e.allowCross,D=void 0===R||R,L=e.pushable,q=void 0!==L&&L,z=e.reverse,B=e.vertical,H=e.included,F=void 0===H||H,W=e.startPoint,K=e.trackStyle,U=e.handleStyle,V=e.railStyle,G=e.dotStyle,Y=e.activeDotStyle,X=e.marks,Q=e.dots,Z=e.handleRender,J=e.activeHandleRender,ee=e.track,te=e.tabIndex,oe=void 0===te?0:te,ie=e.ariaLabelForHandle,ae=e.ariaLabelledByForHandle,le=e.ariaRequired,ce=e.ariaValueTextFormatterForHandle,se=n.useRef(null),ue=n.useRef(null),de=n.useMemo(function(){return B?z?"ttb":"btt":z?"rtl":"ltr"},[z,B]),fe=function(e){return(0,n.useMemo)(function(){if(!0===e||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack;return[!0,t,!t&&n,e.minCount||0,e.maxCount]},[e])}(j),pe=_(fe,5),he=pe[0],me=pe[1],ve=pe[2],ge=pe[3],be=pe[4],ye=n.useMemo(function(){return isFinite(b)?b:0},[b]),xe=n.useMemo(function(){return isFinite(x)?x:100},[x]),we=n.useMemo(function(){return null!==S&&S<=0?1:S},[S]),Se=n.useMemo(function(){return"boolean"==typeof q?!!q&&we:q>=0&&q},[q,we]),Ce=n.useMemo(function(){return Object.keys(X||{}).map(function(e){var t=X[e],r={value:Number(e)};return t&&"object"===O(t)&&!n.isValidElement(t)&&("label"in t||"style"in t)?(r.style=t.style,r.label=t.label):r.label=t,r}).filter(function(e){var t=e.label;return t||"number"==typeof t}).sort(function(e,t){return e.value-t.value})},[X]),Oe=function(e,t,r,o,i,a){var l=n.useCallback(function(n){return Math.max(e,Math.min(t,n))},[e,t]),c=n.useCallback(function(n){if(null!==r){var o=e+Math.round((l(n)-e)/r)*r,i=function(e){return(String(e).split(".")[1]||"").length},a=Math.max(i(r),i(t),i(e)),c=Number(o.toFixed(a));return e<=c&&c<=t?c:null}return null},[r,e,t,l]),s=n.useCallback(function(n){var i=l(n),a=o.map(function(e){return e.value});null!==r&&a.push(c(n)),a.push(e,t);var s=a[0],u=t-e;return a.forEach(function(e){var t=Math.abs(i-e);t<=u&&(s=e,u=t)}),s},[e,t,o,r,l,c]),u=function n(i,a,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var u,d=i[l],f=d+a,p=[];o.forEach(function(e){p.push(e.value)}),p.push(e,t),p.push(c(d));var h=a>0?1:-1;"unit"===s?p.push(c(d+h*r)):p.push(c(f)),p=p.filter(function(e){return null!==e}).filter(function(e){return a<0?e<=d:e>=d}),"unit"===s&&(p=p.filter(function(e){return e!==d}));var m="unit"===s?d:f;u=p[0];var v=Math.abs(u-m);if(p.forEach(function(e){var t=Math.abs(e-m);t<v&&(u=e,v=t)}),void 0===u)return a<0?e:t;if("dist"===s)return u;if(Math.abs(a)>1){var g=M(i);return g[l]=u,n(g,a-h,l,s)}return u}return"min"===a?e:"max"===a?t:void 0},d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],i=u(e,t,n,r);return{value:i,changed:i!==o}},f=function(e){return null===a&&0===e||"number"==typeof a&&e<a};return[s,function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e.map(s),l=o[n],c=u(o,t,n,r);if(o[n]=c,!1===i){var p=a||0;n>0&&o[n-1]!==l&&(o[n]=Math.max(o[n],o[n-1]+p)),n<o.length-1&&o[n+1]!==l&&(o[n]=Math.min(o[n],o[n+1]-p))}else if("number"==typeof a||null===a){for(var h=n+1;h<o.length;h+=1)for(var m=!0;f(o[h]-o[h-1])&&m;){var v=d(o,1,h);o[h]=v.value,m=v.changed}for(var g=n;g>0;g-=1)for(var b=!0;f(o[g]-o[g-1])&&b;){var y=d(o,-1,g-1);o[g-1]=y.value,b=y.changed}for(var x=o.length-1;x>0;x-=1)for(var w=!0;f(o[x]-o[x-1])&&w;){var S=d(o,-1,x-1);o[x-1]=S.value,w=S.changed}for(var C=0;C<o.length-1;C+=1)for(var O=!0;f(o[C+1]-o[C])&&O;){var k=d(o,1,C+1);o[C+1]=k.value,O=k.changed}}return{value:o[n],values:o}}]}(ye,xe,we,Ce,D,Se),ke=_(Oe,2),Ee=ke[0],je=ke[1],$e=_(mo(k,{value:C}),2),Pe=$e[0],Ne=$e[1],_e=n.useMemo(function(){var e=null==Pe?[]:Array.isArray(Pe)?Pe:[Pe],t=_(e,1)[0],n=null===Pe?[]:[void 0===t?ye:t];if(he){if(n=M(e),$||void 0===Pe){var r=$>=0?$+1:2;for(n=n.slice(0,r);n.length<r;){var o;n.push(null!==(o=n[n.length-1])&&void 0!==o?o:ye)}}n.sort(function(e,t){return e-t})}return n.forEach(function(e,t){n[t]=Ee(e)}),n},[Pe,he,ye,$,Ee]),Ie=function(e){return he?e:e[0]},Me=fo(function(e){var t=M(e).sort(function(e,t){return e-t});P&&!re(t,_e,!0)&&P(Ie(t)),Ne(t)}),Te=fo(function(e){e&&se.current.hideHelp();var t=Ie(_e);null==I||I(t),ne(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==T||T(t)}),Ae=_(ZO(ue,de,_e,ye,xe,Ee,Me,Te,je,me,ge),5),Re=Ae[0],De=Ae[1],Le=Ae[2],qe=Ae[3],ze=Ae[4],Be=function(e,t){if(!d){var n=M(_e),r=0,o=0,i=xe-ye;_e.forEach(function(t,n){var a=Math.abs(e-t);a<=i&&(i=a,r=n),t<e&&(o=n)});var a=r;me&&0!==i&&(!be||_e.length<be)?(n.splice(o+1,0,e),a=o+1):n[r]=e,he&&!_e.length&&void 0===$&&n.push(e);var l,c,s=Ie(n);if(null==N||N(s),Me(n),t)null===(l=document.activeElement)||void 0===l||null===(c=l.blur)||void 0===c||c.call(l),se.current.focus(a),ze(t,a,n);else null==I||I(s),ne(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==T||T(s)}},He=_(n.useState(null),2),Fe=He[0],We=He[1];n.useEffect(function(){if(null!==Fe){var e=_e.indexOf(Fe);e>=0&&se.current.focus(e)}We(null)},[Fe]);var Ke=n.useMemo(function(){return(!ve||null!==we)&&ve},[ve,we]),Ue=fo(function(e,t){ze(e,t),null==N||N(Ie(_e))}),Ve=-1!==Re;n.useEffect(function(){if(!Ve){var e=_e.lastIndexOf(De);se.current.focus(e)}},[Ve]);var Ge=n.useMemo(function(){return M(qe).sort(function(e,t){return e-t})},[qe]),Ye=_(n.useMemo(function(){return he?[Ge[0],Ge[Ge.length-1]]:[ye,Ge[0]]},[Ge,he,ye]),2),Xe=Ye[0],Qe=Ye[1];n.useImperativeHandle(t,function(){return{focus:function(){se.current.focus(0)},blur:function(){var e,t=document.activeElement;null!==(e=ue.current)&&void 0!==e&&e.contains(t)&&(null==t||t.blur())}}}),n.useEffect(function(){h&&se.current.focus(0)},[]);var Ze=n.useMemo(function(){return{min:ye,max:xe,direction:de,disabled:d,keyboard:p,step:we,included:F,includedStart:Xe,includedEnd:Qe,range:he,tabIndex:oe,ariaLabelForHandle:ie,ariaLabelledByForHandle:ae,ariaRequired:le,ariaValueTextFormatterForHandle:ce,styles:c||{},classNames:l||{}}},[ye,xe,de,d,p,we,F,Xe,Qe,he,oe,ie,ae,le,ce,c,l]);return n.createElement(DO.Provider,{value:Ze},n.createElement("div",{ref:ue,className:Rr()(o,i,E(E(E(E({},"".concat(o,"-disabled"),d),"".concat(o,"-vertical"),B),"".concat(o,"-horizontal"),!B),"".concat(o,"-with-marks"),Ce.length)),style:a,onMouseDown:function(e){e.preventDefault();var t,n=ue.current.getBoundingClientRect(),r=n.width,o=n.height,i=n.left,a=n.top,l=n.bottom,c=n.right,s=e.clientX,u=e.clientY;switch(de){case"btt":t=(l-u)/o;break;case"ttb":t=(u-a)/o;break;case"rtl":t=(c-s)/r;break;default:t=(s-i)/r}Be(Ee(ye+t*(xe-ye)),e)},id:s},n.createElement("div",{className:Rr()("".concat(o,"-rail"),null==l?void 0:l.rail),style:A(A({},V),null==c?void 0:c.rail)}),!1!==ee&&n.createElement(XO,{prefixCls:o,style:K,values:_e,startPoint:W,onStartMove:Ke?Ue:void 0}),n.createElement(GO,{prefixCls:o,marks:Ce,dots:Q,style:G,activeStyle:Y}),n.createElement(WO,{ref:se,prefixCls:o,style:U,values:qe,draggingIndex:Re,draggingDelete:Le,onStartMove:Ue,onOffsetChange:function(e,t){if(!d){var n=je(_e,e,t);null==N||N(Ie(_e)),Me(n.values),We(n.value)}},onFocus:m,onBlur:v,handleRender:Z,activeHandleRender:J,onChangeComplete:Te,onDelete:me?function(e){if(!(d||!me||_e.length<=ge)){var t=M(_e);t.splice(e,1),null==N||N(Ie(t)),Me(t);var n=Math.max(0,e-1);se.current.hideHelp(),se.current.focus(n)}}:void 0}),n.createElement(UO,{prefixCls:o,marks:Ce,onClick:Be})))});const ek=JO,tk=(0,n.createContext)({}),nk=n.forwardRef((e,t)=>{const{open:r,draggingDelete:o,value:i}=e,a=(0,n.useRef)(null),l=r&&!o,c=(0,n.useRef)(null);function s(){Ko.cancel(c.current),c.current=null}return n.useEffect(()=>(l?c.current=Ko(()=>{var e;null===(e=a.current)||void 0===e||e.forceAlign(),c.current=null}):s(),s),[l,e.title,i]),n.createElement(om,Object.assign({ref:Yr(a,t)},e,{open:l}))});const rk=nk,ok=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:c,calc:s,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:h,handleLineWidthHover:m,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},Oi(e)),{position:"relative",height:r,margin:`${$e(a)} ${$e(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${$e(i)} ${$e(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${$e(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:s(h).mul(-1).equal(),insetBlockStart:s(h).mul(-1).equal(),width:s(u).add(s(h).mul(2)).equal(),height:s(u).add(s(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${$e(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${v},\n inset-block-start ${v},\n width ${v},\n height ${v},\n box-shadow ${v},\n outline ${v}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:s(d).sub(u).div(2).add(m).mul(-1).equal(),insetBlockStart:s(d).sub(u).div(2).add(m).mul(-1).equal(),width:s(d).add(s(m).mul(2)).equal(),height:s(d).add(s(m).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${$e(m)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${$e(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${$e(h)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},ik=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:l}=e,c=t?"paddingBlock":"paddingInline",s=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",p=l(r).mul(3).sub(o).div(2).equal(),h=l(o).sub(r).div(2).equal(),m=t?{borderWidth:`${$e(h)} 0`,transform:`translateY(${$e(l(h).mul(-1).equal())})`}:{borderWidth:`0 ${$e(h)}`,transform:`translateX(${$e(e.calc(h).mul(-1).equal())})`};return{[c]:r,[u]:l(r).mul(3).equal(),[`${n}-rail`]:{[s]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},m),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:l(r).mul(3).add(t?0:a).equal(),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[s]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:l(r).sub(i).div(2).equal()}}},ak=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},ik(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},lk=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},ik(e,!1)),{height:"100%"})}},ck=ql("Slider",e=>{const t=$l(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[ok(t),ak(t),lk(t)]},e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1.5,i=e.colorPrimary,a=new Pn(i).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:a,handleColorDisabled:new Pn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function sk(){const[e,t]=n.useState(!1),r=n.useRef(null),o=()=>{Ko.cancel(r.current)};return n.useEffect(()=>o,[]),[e,e=>{o(),e?t(e):r.current=Ko(()=>{t(e)})}]}var uk=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const dk=n.forwardRef((e,t)=>{const{prefixCls:r,range:o,className:i,rootClassName:a,style:l,disabled:c,tooltipPrefixCls:s,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:h={},onChangeComplete:m,classNames:v,styles:g}=e,b=uk(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:y}=e,{getPrefixCls:x,direction:w,className:S,style:O,classNames:k,styles:E,getPopupContainer:j}=C("slider"),$=n.useContext(jr),P=null!=c?c:$,{handleRender:N,direction:_}=n.useContext(tk),I="rtl"===(_||w),[M,T]=sk(),[A,R]=sk(),D=Object.assign({},h),{open:L,placement:q,getPopupContainer:z,prefixCls:B,formatter:H}=D,F=null!=L?L:d,W=(M||A)&&!1!==F,K=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(H,u),[U,V]=sk(),G=(e,t)=>e||(t?I?"left":"right":"top"),Y=x("slider",r),[X,Q,Z]=ck(Y),J=Rr()(i,S,k.root,null==v?void 0:v.root,a,{[`${Y}-rtl`]:I,[`${Y}-lock`]:U},Q,Z);I&&!b.vertical&&(b.reverse=!b.reverse),n.useEffect(()=>{const e=()=>{Ko(()=>{R(!1)},1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},[]);const ee=o&&!F,te=N||((e,t)=>{const{index:r}=t,o=e.props;function i(e,t,n){var r,i,a,l;n&&(null===(i=(r=b)[e])||void 0===i||i.call(r,t)),null===(l=(a=o)[e])||void 0===l||l.call(a,t)}const a=Object.assign(Object.assign({},o),{onMouseEnter:e=>{T(!0),i("onMouseEnter",e)},onMouseLeave:e=>{T(!1),i("onMouseLeave",e)},onMouseDown:e=>{R(!0),V(!0),i("onMouseDown",e)},onFocus:e=>{var t;R(!0),null===(t=b.onFocus)||void 0===t||t.call(b,e),i("onFocus",e,!0)},onBlur:e=>{var t;R(!1),null===(t=b.onBlur)||void 0===t||t.call(b,e),i("onBlur",e,!0)}}),l=n.cloneElement(e,a),c=(!!F||W)&&null!==K;return ee?l:n.createElement(rk,Object.assign({},D,{prefixCls:x("tooltip",null!=B?B:s),title:K?K(t.value):"",value:t.value,open:c,placement:G(null!=q?q:p,y),key:r,classNames:{root:`${Y}-tooltip`},getPopupContainer:z||f||j}),l)}),ne=ee?(e,t)=>{const r=n.cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return n.createElement(rk,Object.assign({},D,{prefixCls:x("tooltip",null!=B?B:s),title:K?K(t.value):"",open:null!==K&&W,placement:G(null!=q?q:p,y),key:"tooltip",classNames:{root:`${Y}-tooltip`},getPopupContainer:z||f||j,draggingDelete:t.draggingDelete}),r)}:void 0,re=Object.assign(Object.assign(Object.assign(Object.assign({},E.root),O),null==g?void 0:g.root),l),oe=Object.assign(Object.assign({},E.tracks),null==g?void 0:g.tracks),ie=Rr()(k.tracks,null==v?void 0:v.tracks);return X(n.createElement(ek,Object.assign({},b,{classNames:Object.assign({handle:Rr()(k.handle,null==v?void 0:v.handle),rail:Rr()(k.rail,null==v?void 0:v.rail),track:Rr()(k.track,null==v?void 0:v.track)},ie?{tracks:ie}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},E.handle),null==g?void 0:g.handle),rail:Object.assign(Object.assign({},E.rail),null==g?void 0:g.rail),track:Object.assign(Object.assign({},E.track),null==g?void 0:g.track)},Object.keys(oe).length?{tracks:oe}:{}),step:b.step,range:o,className:J,style:re,disabled:P,ref:t,prefixCls:Y,handleRender:te,activeHandleRender:ne,onChangeComplete:e=>{null==m||m(e),V(!1)}})))});const fk=dk;var pk=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const hk=e=>{const{prefixCls:t,colors:r,type:o,color:i,range:a=!1,className:l,activeIndex:c,onActive:s,onDragStart:u,onDragChange:d,onKeyDelete:f}=e,p=pk(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),h=Object.assign(Object.assign({},p),{track:!1}),m=n.useMemo(()=>`linear-gradient(90deg, ${r.map(e=>`${e.color} ${e.percent}%`).join(", ")})`,[r]),v=n.useMemo(()=>i&&o?"alpha"===o?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`:null,[i,o]),g=fo(u),b=fo(d),y=n.useMemo(()=>({onDragStart:g,onDragChange:b}),[]),x=fo((e,i)=>{const{onFocus:a,style:l,className:u,onKeyDown:d}=e.props,p=Object.assign({},l);return"gradient"===o&&(p.background=hu(r,i.value)),n.cloneElement(e,{onFocus:e=>{null==s||s(i.index),null==a||a(e)},style:p,className:Rr()(u,{[`${t}-slider-handle-active`]:c===i.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!f||f(i.index),null==d||d(e)}})}),w=n.useMemo(()=>({direction:"ltr",handleRender:x}),[]);return n.createElement(tk.Provider,{value:w},n.createElement(LO.Provider,{value:y},n.createElement(fk,Object.assign({},h,{className:Rr()(l,`${t}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:m},handle:v?{background:v}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},mk=e=>{const{value:t,onChange:r,onChangeComplete:o}=e;return n.createElement(hk,Object.assign({},e,{value:[t],onChange:e=>r(e[0]),onChangeComplete:e=>o(e[0])}))};function vk(e){return M(e).sort((e,t)=>e.percent-t.percent)}const gk=e=>{const{prefixCls:t,mode:r,onChange:o,onChangeComplete:i,onActive:a,activeIndex:l,onGradientDragging:c,colors:s}=e,u="gradient"===r,d=n.useMemo(()=>s.map(e=>({percent:e.percent,color:e.color.toRgbString()})),[s]),f=n.useMemo(()=>d.map(e=>e.percent),[d]),p=n.useRef(d);return u?n.createElement(hk,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:e=>{i(new Ms(d)),l>=e.length&&a(e.length-1),c(!1)},disabled:!1,type:"gradient",activeIndex:l,onActive:a,onDragStart:({rawValues:e,draggingIndex:t,draggingValue:n})=>{if(e.length>d.length){const e=hu(d,n),r=M(d);r.splice(t,0,{percent:n,color:e}),p.current=r}else p.current=d;c(!0),o(new Ms(vk(p.current)),!0)},onDragChange:({deleteIndex:e,draggingIndex:t,draggingValue:n})=>{let r=M(p.current);-1!==e?r.splice(e,1):(r[t]=Object.assign(Object.assign({},r[t]),{percent:n}),r=vk(r)),o(new Ms(r),!0)},onKeyDelete:e=>{const t=M(d);t.splice(e,1);const n=new Ms(t);o(n),i(n)}}):null},bk=n.memo(gk);var yk=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xk={slider:mk},wk=()=>{const e=(0,n.useContext)(xO),{mode:t,onModeChange:r,modeOptions:o,prefixCls:i,allowClear:a,value:l,disabledAlpha:c,onChange:s,onClear:u,onChangeComplete:d,activeIndex:f,gradientDragging:p}=e,h=yk(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=n.useMemo(()=>l.cleared?[{percent:0,color:new Ms("")},{percent:100,color:new Ms("")}]:l.getColors(),[l]),v=!l.isGradient(),[g,b]=n.useState(l);Re(()=>{var e;v||b(null===(e=m[f])||void 0===e?void 0:e.color)},[p,f]);const y=n.useMemo(()=>{var e;return v?l:p?g:null===(e=m[f])||void 0===e?void 0:e.color},[l,f,v,g,p]),[x,w]=n.useState(y),[S,C]=n.useState(0),O=(null==x?void 0:x.equals(y))?y:x;Re(()=>{w(y)},[S,null==y?void 0:y.toHexString()]);const k=(e,n)=>{let r=uu(e);if(l.cleared){const e=r.toRgb();if(e.r||e.g||e.b||!n)r=pu(r);else{const{type:e,value:t=0}=n;r=new Ms({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1})}}if("single"===t)return r;const o=M(m);return o[f]=Object.assign(Object.assign({},o[f]),{color:r}),new Ms(o)};let E=null;const j=o.length>1;return(a||j)&&(E=n.createElement("div",{className:`${i}-operation`},j&&n.createElement(yO,{size:"small",options:o,value:t,onChange:r}),n.createElement(SO,Object.assign({prefixCls:i,value:l,onChange:e=>{s(e),null==u||u()}},h)))),n.createElement(n.Fragment,null,E,n.createElement(bk,Object.assign({},e,{colors:m})),n.createElement(_s,{prefixCls:i,value:null==O?void 0:O.toHsb(),disabledAlpha:c,onChange:(e,t)=>{((e,t,n)=>{const r=k(e,n);w(r.isGradient()?r.getColors()[f].color:r),s(r,t)})(e,!0,t)},onChangeComplete:(e,t)=>{((e,t)=>{d(k(e,t)),C(e=>e+1)})(e,t)},components:xk}),n.createElement(MO,Object.assign({value:y,onChange:e=>{s(k(e))},prefixCls:i,disabledAlpha:c},h)))},Sk=()=>{const{prefixCls:e,value:t,presets:r,onChange:o}=(0,n.useContext)(wO);return Array.isArray(r)?n.createElement(bu,{value:t,presets:r,prefixCls:e,onChange:o}):null};const Ck=e=>{const{prefixCls:t,presets:r,panelRender:o,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:m,format:v,onFormatChange:g,gradientDragging:b,onGradientDragging:y,disabledFormat:x}=e,w=`${t}-inner`,S=n.useMemo(()=>({prefixCls:t,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:m,format:v,onFormatChange:g,gradientDragging:b,onGradientDragging:y,disabledFormat:x}),[t,i,a,l,c,s,u,d,f,p,h,m,v,g,b,y,x]),C=n.useMemo(()=>({prefixCls:t,value:i,presets:r,onChange:a}),[t,i,r,a]),O=n.createElement("div",{className:`${w}-content`},n.createElement(wk,null),Array.isArray(r)&&n.createElement(rO,null),n.createElement(Sk,null));return n.createElement(xO.Provider,{value:S},n.createElement(wO.Provider,{value:C},n.createElement("div",{className:w},"function"==typeof o?o(O,{components:{Picker:wk,Presets:Sk}}):O)))};var Ok=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kk=(0,n.forwardRef)((e,t)=>{const{color:r,prefixCls:o,open:i,disabled:a,format:l,className:c,showText:s,activeIndex:u}=e,d=Ok(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${o}-trigger`,p=`${f}-text`,h=`${p}-cell`,[m]=su("ColorPicker"),v=n.useMemo(()=>{if(!s)return"";if("function"==typeof s)return s(r);if(r.cleared)return m.transparent;if(r.isGradient())return r.getColors().map((e,t)=>{const r=-1!==u&&u!==t;return n.createElement("span",{key:t,className:Rr()(h,r&&`${h}-inactive`)},e.color.toRgbString()," ",e.percent,"%")});const e=r.toHexString().toUpperCase(),t=fu(r);switch(l){case"rgb":return r.toRgbString();case"hsb":return r.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}},[r,l,s,u]),g=(0,n.useMemo)(()=>r.cleared?n.createElement(SO,{prefixCls:o}):n.createElement(xs,{prefixCls:o,color:r.toCssString()}),[r,o]);return n.createElement("div",Object.assign({ref:t,className:Rr()(f,c,{[`${f}-active`]:i,[`${f}-disabled`]:a})},Xa(d)),g,s&&n.createElement("div",{className:p},v))}),Ek=kk;const jk=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),$k=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none"},jk("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${$e(i)} ${a}`,borderRadius:"inherit"}})}},Pk=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:c,marginXS:s,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:p,lineWidth:h}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${$e(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:s,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:r,lineHeight:$e(c)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${$e(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:$e(e.calc(c).sub(e.calc(h).mul(2)).equal())},[`${n}-input-prefix`]:{color:f}}}}}},Nk=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:s}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:s,height:s,border:`${$e(c)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}},_k=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:c,lineWidth:s,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:p,paddingXS:h,fontHeightSM:m}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:m,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${$e(h)} 0`},"&-label":{fontSize:a,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(s).mul(4)).equal(),height:e.calc(i).add(e.calc(s).mul(4)).equal(),position:"absolute",top:e.calc(s).mul(-2).equal(),insetInlineStart:e.calc(s).mul(-2).equal(),borderRadius:u,border:`${$e(s)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${$e(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:f,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},Ik=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:c,marginXS:s}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),f={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[jk($e(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${$e(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":f}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:s,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":f}}}},Mk=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${$e(e.controlOutlineWidth)} ${n}`,outline:0}),Tk=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Ak=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:l,red6:c}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${$e(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},Rk=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},Mk(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Mk(e,r,l))}}},Dk=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:s,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:$e(i)}}}},Lk=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:s,borderRadius:u,marginXS:d,marginSM:f,controlHeight:p,controlHeightSM:h,colorBgTextActive:m,colorPickerPresetColorSize:v,colorPickerPreviewSize:g,lineWidth:b,colorBorder:y,paddingXXS:x,fontSize:w,colorPrimaryHover:S,controlOutline:C}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${$e(f)} 0 ${$e(d)}`}},[`${n}-panel`]:Object.assign({},Nk(e))},Ik(e)),$k(e,g)),Pk(e)),_k(e)),Ak(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${$e(b)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(x).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(x).sub(b)).equal(),fontSize:w,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:Object.assign({},Mk(e,o,C)),"&-disabled":{color:l,background:s,cursor:"not-allowed","&:hover":{borderColor:m},[`${n}-trigger-text`]:{color:l}}},Ak(e,h)),$k(e,h)),Rk(e)),Dk(e))},Tk(e))},Yu(e,{focusElCls:`${n}-trigger-active`})]},qk=ql("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=$l(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(n).equal()});return[Lk(r)]});var zk=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Bk=e=>{const{mode:t,value:r,defaultValue:o,format:i,defaultFormat:a,allowClear:l=!1,presets:c,children:s,trigger:u="click",open:d,disabled:f,placement:p="bottomLeft",arrow:h=!0,panelRender:m,showText:v,style:g,className:b,size:y,rootClassName:w,prefixCls:S,styles:C,disabledAlpha:O=!1,onFormatChange:k,onChange:E,onClear:j,onOpenChange:$,onChangeComplete:P,getPopupContainer:N,autoAdjustOverflow:_=!0,destroyTooltipOnHide:I,destroyOnHidden:M,disabledFormat:T}=e,A=zk(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","destroyOnHidden","disabledFormat"]),{getPrefixCls:R,direction:D,colorPicker:L}=(0,n.useContext)(x),q=(0,n.useContext)(jr),z=null!=f?f:q,[B,H]=mo(!1,{value:d,postState:e=>!z&&e,onChange:$}),[F,W]=mo(i,{value:i,defaultValue:a,onChange:k}),K=R("color-picker",S),[U,V,G,Y,X]=function(e,t,r){const[o]=su("ColorPicker"),[i,a]=mo(e,{value:t}),[l,c]=n.useState("single"),[s,u]=n.useMemo(()=>{const e=(Array.isArray(r)?r:[r]).filter(e=>e);e.length||e.push("single");const t=new Set(e),n=[],i=(e,r)=>{t.has(e)&&n.push({label:r,value:e})};return i("single",o.singleColor),i("gradient",o.gradientColor),[n,t]},[r]),[d,f]=n.useState(null),p=fo(e=>{f(e),a(e)}),h=n.useMemo(()=>{const e=uu(i||"");return e.equals(d)?d:e},[i,d]),m=n.useMemo(()=>{var e;return u.has(l)?l:null===(e=s[0])||void 0===e?void 0:e.value},[u,l,s]);return n.useEffect(()=>{c(h.isGradient()?"gradient":"single")},[h]),[h,p,m,c,s]}(o,r,t),Q=(0,n.useMemo)(()=>fu(U)<100,[U]),[Z,J]=n.useState(null),ee=e=>{if(P){let t=uu(e);O&&Q&&(t=pu(e)),P(t)}},te=(e,t)=>{let n=uu(e);O&&Q&&(n=pu(n)),V(n),J(null),E&&E(n,n.toCssString()),t||ee(n)},[ne,re]=n.useState(0),[oe,ie]=n.useState(!1),{status:ae}=n.useContext(Sh),{compactSize:le,compactItemClassnames:ce}=Wc(K,D),se=Rc(e=>{var t;return null!==(t=null!=y?y:le)&&void 0!==t?t:e}),ue=ul(K),[de,fe,pe]=qk(K,ue),he={[`${K}-rtl`]:D},me=Rr()(w,pe,ue,he),ve=Rr()(_b(K,ae),{[`${K}-sm`]:"small"===se,[`${K}-lg`]:"large"===se},ce,null==L?void 0:L.className,me,b,fe),ge=Rr()(K,me);const be={open:B,trigger:u,placement:p,arrow:h,rootClassName:w,getPopupContainer:N,autoAdjustOverflow:_,destroyOnHidden:null!=M?M:!!I},ye=Object.assign(Object.assign({},null==L?void 0:L.style),g);return de(n.createElement(QC,Object.assign({style:null==C?void 0:C.popup,styles:{body:null==C?void 0:C.popupOverlayInner},onOpenChange:e=>{e&&z||H(e)},content:n.createElement(kh,{form:!0},n.createElement(Ck,{mode:G,onModeChange:e=>{if(Y(e),"single"===e&&U.isGradient())re(0),te(new Ms(U.getColors()[0].color)),J(U);else if("gradient"===e&&!U.isGradient()){const e=Q?pu(U):U;te(new Ms(Z||[{percent:0,color:e},{percent:100,color:e}]))}},modeOptions:X,prefixCls:K,value:U,allowClear:l,disabled:z,disabledAlpha:O,presets:c,panelRender:m,format:F,onFormatChange:W,onChange:te,onChangeComplete:ee,onClear:j,activeIndex:ne,onActive:re,gradientDragging:oe,onGradientDragging:ie,disabledFormat:T})),classNames:{root:ge}},be),s||n.createElement(Ek,Object.assign({activeIndex:B?ne:-1,open:B,className:ve,style:ye,prefixCls:K,disabled:z,showText:v,format:F},A,{color:U}))))};const Hk=Kv(Bk,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);Bk._InternalPanelDoNotUseOrYouWillBeFired=Hk;const Fk=Bk;function Wk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kk(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kk(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Uk=function(e){var t,r,o,a,l=e.field.items,s=e.field.items,u=s.help,d=(s.value,s.default_val),f=(e.id,Wk(c(),2)),p=(f[0],f[1]),m=Wk((0,n.useState)("yes"),2),v=m[0],g=m[1],b=(0,n.useRef)(),y=null===(t=e.field)||void 0===t?void 0:t.fieldType,x=null===(r=e.field)||void 0===r?void 0:r.parentId,w=null===(o=e.field)||void 0===o?void 0:o.index,S=null===(a=e.field)||void 0===a?void 0:a.repeaterData;return(0,i.jsxs)("div",{className:"rtsb-field text",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",ref:b,children:Object.keys(l).map(function(e,t){var n=l[e].id;return(0,i.jsx)(Fk,{format:"hex",value:l[e].value,defaultValue:l[e].default_val,allowClear:!0,onChange:function(e){"yes"===v&&0==e.metaColor.roundA&&(e.metaColor.roundA=1),g("no"),p({type:h,id:n,value:e.metaColor.roundA?e.toRgbString():"",fieldType:y,parentId:x,repeaterData:S,index:w})},onClear:function(){p({type:h,id:n,value:null!=d?d:"",fieldType:y,parentId:x,repeaterData:S,index:w}),g("no")}},t)})}),u&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};const Vk="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Gk(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Yk(e){return"nodeType"in e}function Xk(e){var t,n;return e?Gk(e)?e:Yk(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Qk(e){const{Document:t}=Xk(e);return e instanceof t}function Zk(e){return!Gk(e)&&e instanceof Xk(e).HTMLElement}function Jk(e){return e instanceof Xk(e).SVGElement}function eE(e){return e?Gk(e)?e.document:Yk(e)?Qk(e)?e:Zk(e)||Jk(e)?e.ownerDocument:document:document:document}const tE=Vk?n.useLayoutEffect:n.useEffect;function nE(e){const t=(0,n.useRef)(e);return tE(()=>{t.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function rE(e,t){void 0===t&&(t=[e]);const r=(0,n.useRef)(e);return tE(()=>{r.current!==e&&(r.current=e)},t),r}function oE(e,t){const r=(0,n.useRef)();return(0,n.useMemo)(()=>{const t=e(r.current);return r.current=t,t},[...t])}function iE(e){const t=nE(e),r=(0,n.useRef)(null),o=(0,n.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,o]}function aE(e){const t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}let lE={};function cE(e,t){return(0,n.useMemo)(()=>{if(t)return t;const n=null==lE[e]?0:lE[e]+1;return lE[e]=n,e+"-"+n},[e,t])}function sE(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t},{...t})}}const uE=sE(1),dE=sE(-1);function fE(e){if(!e)return!1;const{KeyboardEvent:t}=Xk(e.target);return t&&e instanceof t}function pE(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Xk(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const hE=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[hE.Translate.toString(e),hE.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),mE="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function vE(e){return e.matches(mE)?e:e.querySelector(mE)}const gE={display:"none"};function bE(e){let{id:t,value:r}=e;return n.createElement("div",{id:t,style:gE},r)}function yE(e){let{id:t,announcement:r,ariaLiveType:o="assertive"}=e;return n.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},r)}const xE=(0,n.createContext)(null);const wE={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},SE={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function CE(e){let{announcements:t=SE,container:r,hiddenTextDescribedById:o,screenReaderInstructions:i=wE}=e;const{announce:a,announcement:l}=function(){const[e,t]=(0,n.useState)(""),r=(0,n.useCallback)(e=>{null!=e&&t(e)},[]);return{announce:r,announcement:e}}(),c=cE("DndLiveRegion"),[s,u]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{u(!0)},[]),function(e){const t=(0,n.useContext)(xE);(0,n.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,n.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!s)return null;const d=n.createElement(n.Fragment,null,n.createElement(bE,{id:o,value:i.draggable}),n.createElement(yE,{id:c,announcement:l}));return r?(0,Dr.createPortal)(d,r):d}var OE;function kE(){}function EE(e,t){return(0,n.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function jE(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(OE||(OE={}));const $E=Object.freeze({x:0,y:0});function PE(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function NE(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function _E(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function IE(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function ME(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function TE(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const AE=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=TE(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=PE(TE(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(NE)};function RE(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const DE=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=RE(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(_E)};function LE(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:$E}function qE(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}const zE=qE(1);function BE(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const HE={ignoreTransform:!1};function FE(e,t){void 0===t&&(t=HE);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=Xk(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=BE(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,c=e.left-a-(1-o)*parseFloat(n),s=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:s,right:c+u,bottom:s+d,left:c}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:l,right:c}=n;return{top:r,left:o,width:i,height:a,bottom:l,right:c}}function WE(e){return FE(e,{ignoreTransform:!0})}function KE(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(Qk(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Zk(o)||Jk(o))return n;if(n.includes(o))return n;const i=Xk(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=Xk(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=Xk(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function UE(e){const[t]=KE(e,1);return null!=t?t:null}function VE(e){return Vk&&e?Gk(e)?e:Yk(e)?Qk(e)||e===eE(e).scrollingElement?window:Zk(e)?e:null:null:null}function GE(e){return Gk(e)?e.scrollX:e.scrollLeft}function YE(e){return Gk(e)?e.scrollY:e.scrollTop}function XE(e){return{x:GE(e),y:YE(e)}}var QE;function ZE(e){return!(!Vk||!e)&&e===document.scrollingElement}function JE(e){const t={x:0,y:0},n=ZE(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(QE||(QE={}));const ej={x:.2,y:.2};function tj(e,t,n,r,o){let{top:i,left:a,right:l,bottom:c}=n;void 0===r&&(r=10),void 0===o&&(o=ej);const{isTop:s,isBottom:u,isLeft:d,isRight:f}=JE(e),p={x:0,y:0},h={x:0,y:0},m=t.height*o.y,v=t.width*o.x;return!s&&i<=t.top+m?(p.y=QE.Backward,h.y=r*Math.abs((t.top+m-i)/m)):!u&&c>=t.bottom-m&&(p.y=QE.Forward,h.y=r*Math.abs((t.bottom-m-c)/m)),!f&&l>=t.right-v?(p.x=QE.Forward,h.x=r*Math.abs((t.right-v-l)/v)):!d&&a<=t.left+v&&(p.x=QE.Backward,h.x=r*Math.abs((t.left+v-a)/v)),{direction:p,speed:h}}function nj(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function rj(e){return e.reduce((e,t)=>uE(e,XE(t)),$E)}function oj(e,t){if(void 0===t&&(t=FE),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);UE(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const ij=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+GE(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+YE(t),0)}]];class aj{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=KE(t),r=rj(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of ij)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class lj{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function cj(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var sj,uj;function dj(e){e.preventDefault()}function fj(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(sj||(sj={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(uj||(uj={}));const pj={start:[uj.Space,uj.Enter],cancel:[uj.Esc],end:[uj.Space,uj.Enter,uj.Tab]},hj=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case uj.Right:return{...n,x:n.x+25};case uj.Left:return{...n,x:n.x-25};case uj.Down:return{...n,y:n.y+25};case uj.Up:return{...n,y:n.y-25}}};class mj{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new lj(eE(t)),this.windowListeners=new lj(Xk(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(sj.Resize,this.handleCancel),this.windowListeners.add(sj.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(sj.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&oj(n),t($E)}handleKeyDown(e){if(fE(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=pj,coordinateGetter:i=hj,scrollBehavior:a="smooth"}=r,{code:l}=e;if(o.end.includes(l))return void this.handleEnd(e);if(o.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:c}=n.current,s=c?{x:c.left,y:c.top}:$E;this.referenceCoordinates||(this.referenceCoordinates=s);const u=i(e,{active:t,context:n.current,currentCoordinates:s});if(u){const t=dE(u,s),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:l,isLeft:c,isBottom:s,maxScroll:d,minScroll:f}=JE(n),p=nj(n),h={x:Math.min(o===uj.Right?p.right-p.width/2:p.right,Math.max(o===uj.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(o===uj.Down?p.bottom-p.height/2:p.bottom,Math.max(o===uj.Down?p.top:p.top+p.height/2,u.y))},m=o===uj.Right&&!l||o===uj.Left&&!c,v=o===uj.Down&&!s||o===uj.Up&&!i;if(m&&h.x!==u.x){const e=n.scrollLeft+t.x,i=o===uj.Right&&e<=d.x||o===uj.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===uj.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(v&&h.y!==u.y){const e=n.scrollTop+t.y,i=o===uj.Down&&e<=d.y||o===uj.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===uj.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,uE(dE(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function vj(e){return Boolean(e&&"distance"in e)}function gj(e){return Boolean(e&&"delay"in e)}mj.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=pj,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class bj{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Xk(e);return e instanceof t?e:eE(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=eE(i),this.documentListeners=new lj(this.document),this.listeners=new lj(n),this.windowListeners=new lj(Xk(i)),this.initialCoordinates=null!=(r=pE(o))?r:$E,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(sj.Resize,this.handleCancel),this.windowListeners.add(sj.DragStart,dj),this.windowListeners.add(sj.VisibilityChange,this.handleCancel),this.windowListeners.add(sj.ContextMenu,dj),this.documentListeners.add(sj.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(gj(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(vj(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(sj.Click,fj,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(sj.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const l=null!=(t=pE(e))?t:$E,c=dE(r,l);if(!n&&a){if(vj(a)){if(null!=a.tolerance&&cj(c,a.tolerance))return this.handleCancel();if(cj(c,a.distance))return this.handleStart()}return gj(a)&&cj(c,a.tolerance)?this.handleCancel():void this.handlePending(a,c)}e.cancelable&&e.preventDefault(),i(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===uj.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const yj={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class xj extends bj{constructor(e){const{event:t}=e,n=eE(t.target);super(e,yj,n)}}xj.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const wj={move:{name:"mousemove"},end:{name:"mouseup"}};var Sj;!function(e){e[e.RightClick=2]="RightClick"}(Sj||(Sj={}));class Cj extends bj{constructor(e){super(e,wj,eE(e.event.target))}}Cj.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Sj.RightClick&&(null==r||r({event:n}),!0)}}];const Oj={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class kj extends bj{constructor(e){super(e,Oj)}static setup(){return window.addEventListener(Oj.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Oj.move.name,e)};function e(){}}}var Ej,jj;function $j(e){let{acceleration:t,activator:r=Ej.Pointer,canScroll:o,draggingRect:i,enabled:a,interval:l=5,order:c=jj.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=aE(t);return oE(e=>{if(n||!r||!e)return Pj;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[QE.Backward]:e.x[QE.Backward]||-1===o.x,[QE.Forward]:e.x[QE.Forward]||1===o.x},y:{[QE.Backward]:e.y[QE.Backward]||-1===o.y,[QE.Forward]:e.y[QE.Forward]||1===o.y}}},[n,t,r])}({delta:f,disabled:!a}),[m,v]=function(){const e=(0,n.useRef)(null),t=(0,n.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]);return[t,(0,n.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),g=(0,n.useRef)({x:0,y:0}),b=(0,n.useRef)({x:0,y:0}),y=(0,n.useMemo)(()=>{switch(r){case Ej.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case Ej.DraggableRect:return i}},[r,i,s]),x=(0,n.useRef)(null),w=(0,n.useCallback)(()=>{const e=x.current;if(!e)return;const t=g.current.x*b.current.x,n=g.current.y*b.current.y;e.scrollBy(t,n)},[]),S=(0,n.useMemo)(()=>c===jj.TreeOrder?[...u].reverse():u,[c,u]);(0,n.useEffect)(()=>{if(a&&u.length&&y){for(const e of S){if(!1===(null==o?void 0:o(e)))continue;const n=u.indexOf(e),r=d[n];if(!r)continue;const{direction:i,speed:a}=tj(e,r,y,t,p);for(const e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return v(),x.current=e,m(w,l),g.current=a,void(b.current=i)}g.current={x:0,y:0},b.current={x:0,y:0},v()}else v()},[t,w,o,v,a,l,JSON.stringify(y),JSON.stringify(h),m,u,S,d,JSON.stringify(p)])}kj.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Ej||(Ej={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(jj||(jj={}));const Pj={x:{[QE.Backward]:!1,[QE.Forward]:!1},y:{[QE.Backward]:!1,[QE.Forward]:!1}};var Nj,_j;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Nj||(Nj={})),function(e){e.Optimized="optimized"}(_j||(_j={}));const Ij=new Map;function Mj(e,t){return oE(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function Tj(e){let{callback:t,disabled:r}=e;const o=nE(t),i=(0,n.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)},[r]);return(0,n.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function Aj(e){return new aj(FE(e),e)}function Rj(e,t,r){void 0===t&&(t=Aj);const[o,i]=(0,n.useState)(null);function a(){i(n=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=n?n:r)?o:null;const i=t(e);return JSON.stringify(n)===JSON.stringify(i)?n:i})}const l=function(e){let{callback:t,disabled:r}=e;const o=nE(t),i=(0,n.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)},[o,r]);return(0,n.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),c=Tj({callback:a});return tE(()=>{a(),e?(null==c||c.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==l||l.disconnect())},[e]),o}const Dj=[];function Lj(e,t){void 0===t&&(t=[]);const r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{r.current=null},t),(0,n.useEffect)(()=>{const t=e!==$E;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?dE(e,r.current):$E}function qj(e){return(0,n.useMemo)(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const zj=[];function Bj(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Zk(t)?t:e}const Hj=[{sensor:xj,options:{}},{sensor:mj,options:{}}],Fj={current:{}},Wj={draggable:{measure:WE},droppable:{measure:WE,strategy:Nj.WhileDragging,frequency:_j.Optimized},dragOverlay:{measure:FE}};class Kj extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Uj={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Kj,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:kE},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Wj,measureDroppableContainers:kE,windowRect:null,measuringScheduled:!1},Vj={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:kE,draggableNodes:new Map,over:null,measureDroppableContainers:kE},Gj=(0,n.createContext)(Vj),Yj=(0,n.createContext)(Uj);function Xj(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Kj}}}function Qj(e,t){switch(t.type){case OE.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case OE.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case OE.DragEnd:case OE.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case OE.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Kj(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case OE.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Kj(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case OE.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Kj(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Zj(e){let{disabled:t}=e;const{active:r,activatorEvent:o,draggableNodes:i}=(0,n.useContext)(Gj),a=aE(o),l=aE(null==r?void 0:r.id);return(0,n.useEffect)(()=>{if(!t&&!o&&a&&null!=l){if(!fE(a))return;if(document.activeElement===a.target)return;const e=i.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=vE(e);if(t){t.focus();break}}})}},[o,t,i,l,a]),null}function Jj(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}const e$=(0,n.createContext)({...$E,scaleX:1,scaleY:1});var t$;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(t$||(t$={}));const n$=(0,n.memo)(function(e){var t,r,o,i;let{id:a,accessibility:l,autoScroll:c=!0,children:s,sensors:u=Hj,collisionDetection:d=DE,measuring:f,modifiers:p,...h}=e;const m=(0,n.useReducer)(Qj,void 0,Xj),[v,g]=m,[b,y]=function(){const[e]=(0,n.useState)(()=>new Set),t=(0,n.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]),r=(0,n.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]);return[r,t]}(),[x,w]=(0,n.useState)(t$.Uninitialized),S=x===t$.Initialized,{draggable:{active:C,nodes:O,translate:k},droppable:{containers:E}}=v,j=null!=C?O.get(C):null,$=(0,n.useRef)({initial:null,translated:null}),P=(0,n.useMemo)(()=>{var e;return null!=C?{id:C,data:null!=(e=null==j?void 0:j.data)?e:Fj,rect:$}:null},[C,j]),N=(0,n.useRef)(null),[_,I]=(0,n.useState)(null),[M,T]=(0,n.useState)(null),A=rE(h,Object.values(h)),R=cE("DndDescribedBy",a),D=(0,n.useMemo)(()=>E.getEnabled(),[E]),L=(q=f,(0,n.useMemo)(()=>({draggable:{...Wj.draggable,...null==q?void 0:q.draggable},droppable:{...Wj.droppable,...null==q?void 0:q.droppable},dragOverlay:{...Wj.dragOverlay,...null==q?void 0:q.dragOverlay}}),[null==q?void 0:q.draggable,null==q?void 0:q.droppable,null==q?void 0:q.dragOverlay]));var q;const{droppableRects:z,measureDroppableContainers:B,measuringScheduled:H}=function(e,t){let{dragging:r,dependencies:o,config:i}=t;const[a,l]=(0,n.useState)(null),{frequency:c,measure:s,strategy:u}=i,d=(0,n.useRef)(e),f=function(){switch(u){case Nj.Always:return!1;case Nj.BeforeDragging:return r;default:return!r}}(),p=rE(f),h=(0,n.useCallback)(function(e){void 0===e&&(e=[]),p.current||l(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[p]),m=(0,n.useRef)(null),v=oE(t=>{if(f&&!r)return Ij;if(!t||t===Ij||d.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new aj(s(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,r,f,s]);return(0,n.useEffect)(()=>{d.current=e},[e]),(0,n.useEffect)(()=>{f||h()},[r,f]),(0,n.useEffect)(()=>{a&&a.length>0&&l(null)},[JSON.stringify(a)]),(0,n.useEffect)(()=>{f||"number"!=typeof c||null!==m.current||(m.current=setTimeout(()=>{h(),m.current=null},c))},[c,f,h,...o]),{droppableRects:v,measureDroppableContainers:h,measuringScheduled:null!=a}}(D,{dragging:S,dependencies:[k.x,k.y],config:L.droppable}),F=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return oE(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(O,C),W=(0,n.useMemo)(()=>M?pE(M):null,[M]),K=function(){const e=!1===(null==_?void 0:_.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,n=S&&!e&&!t;if("object"==typeof c)return{...c,enabled:n};return{enabled:n}}(),U=function(e,t){return Mj(e,t)}(F,L.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:o,config:i=!0}=e;const a=(0,n.useRef)(!1),{x:l,y:c}="boolean"==typeof i?{x:i,y:i}:i;tE(()=>{if(!l&&!c||!t)return void(a.current=!1);if(a.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const n=LE(r(e),o);if(l||(n.x=0),c||(n.y=0),a.current=!0,Math.abs(n.x)>0||Math.abs(n.y)>0){const t=UE(e);t&&t.scrollBy({top:n.y,left:n.x})}},[t,l,c,o,r])}({activeNode:null!=C?O.get(C):null,config:K.layoutShiftCompensation,initialRect:U,measure:L.draggable.measure});const V=Rj(F,L.draggable.measure,U),G=Rj(F?F.parentElement:null),Y=(0,n.useRef)({activatorEvent:null,active:null,activeNode:F,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:O,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),X=E.getNodeFor(null==(t=Y.current.over)?void 0:t.id),Q=function(e){let{measure:t}=e;const[r,o]=(0,n.useState)(null),i=Tj({callback:(0,n.useCallback)(e=>{for(const{target:n}of e)if(Zk(n)){o(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),a=(0,n.useCallback)(e=>{const n=Bj(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),o(n?t(n):null)},[t,i]),[l,c]=iE(a);return(0,n.useMemo)(()=>({nodeRef:l,rect:r,setRef:c}),[r,l,c])}({measure:L.dragOverlay.measure}),Z=null!=(r=Q.nodeRef.current)?r:F,J=S?null!=(o=Q.rect)?o:V:null,ee=Boolean(Q.nodeRef.current&&Q.rect),te=LE(ne=ee?null:V,Mj(ne));var ne;const re=qj(Z?Xk(Z):null),oe=function(e){const t=(0,n.useRef)(e),r=oE(n=>e?n&&n!==Dj&&e&&t.current&&e.parentNode===t.current.parentNode?n:KE(e):Dj,[e]);return(0,n.useEffect)(()=>{t.current=e},[e]),r}(S?null!=X?X:F:null),ie=function(e,t){void 0===t&&(t=FE);const[r]=e,o=qj(r?Xk(r):null),[i,a]=(0,n.useState)(zj);function l(){a(()=>e.length?e.map(e=>ZE(e)?o:new aj(t(e),e)):zj)}const c=Tj({callback:l});return tE(()=>{null==c||c.disconnect(),l(),e.forEach(e=>null==c?void 0:c.observe(e))},[e]),i}(oe),ae=Jj(p,{transform:{x:k.x-te.x,y:k.y-te.y,scaleX:1,scaleY:1},activatorEvent:M,active:P,activeNodeRect:V,containerNodeRect:G,draggingNodeRect:J,over:Y.current.over,overlayNodeRect:Q.rect,scrollableAncestors:oe,scrollableAncestorRects:ie,windowRect:re}),le=W?uE(W,k):null,ce=function(e){const[t,r]=(0,n.useState)(null),o=(0,n.useRef)(e),i=(0,n.useCallback)(e=>{const t=VE(e.target);t&&r(e=>e?(e.set(t,XE(t)),new Map(e)):null)},[]);return(0,n.useEffect)(()=>{const t=o.current;if(e!==t){n(t);const a=e.map(e=>{const t=VE(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,XE(t)]):null}).filter(e=>null!=e);r(a.length?new Map(a):null),o.current=e}return()=>{n(e),n(t)};function n(e){e.forEach(e=>{const t=VE(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,n.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>uE(e,t),$E):rj(e):$E,[e,t])}(oe),se=Lj(ce),ue=Lj(ce,[V]),de=uE(ae,se),fe=J?zE(J,ae):null,pe=P&&fe?d({active:P,collisionRect:fe,droppableRects:z,droppableContainers:D,pointerCoordinates:le}):null,he=ME(pe,"id"),[me,ve]=(0,n.useState)(null),ge=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?ae:uE(ae,ue),null!=(i=null==me?void 0:me.rect)?i:null,V),be=(0,n.useRef)(null),ye=(0,n.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==N.current)return;const o=O.get(N.current);if(!o)return;const i=e.nativeEvent,a=new n({active:N.current,activeNode:o,event:i,options:r,context:Y,onAbort(e){if(!O.get(e))return;const{onDragAbort:t}=A.current,n={id:e};null==t||t(n),b({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!O.get(e))return;const{onDragPending:o}=A.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(i),b({type:"onDragPending",event:i})},onStart(e){const t=N.current;if(null==t)return;const n=O.get(t);if(!n)return;const{onDragStart:r}=A.current,o={activatorEvent:i,active:{id:t,data:n.data,rect:$}};(0,Dr.unstable_batchedUpdates)(()=>{null==r||r(o),w(t$.Initializing),g({type:OE.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:o}),I(be.current),T(i)})},onMove(e){g({type:OE.DragMove,coordinates:e})},onEnd:l(OE.DragEnd),onCancel:l(OE.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=Y.current;let a=null;if(t&&o){const{cancelDrop:l}=A.current;if(a={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===OE.DragEnd&&"function"==typeof l){await Promise.resolve(l(a))&&(e=OE.DragCancel)}}N.current=null,(0,Dr.unstable_batchedUpdates)(()=>{g({type:e}),w(t$.Uninitialized),ve(null),I(null),T(null),be.current=null;const t=e===OE.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=A.current[t];null==e||e(a),b({type:t,event:a})}})}}be.current=a},[O]),xe=(0,n.useCallback)((e,t)=>(n,r)=>{const o=n.nativeEvent,i=O.get(r);if(null!==N.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},N.current=r,ye(n,t))},[O,ye]),we=function(e,t){return(0,n.useMemo)(()=>e.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(u,xe);!function(e){(0,n.useEffect)(()=>{if(!Vk)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(u),tE(()=>{V&&x===t$.Initializing&&w(t$.Initialized)},[V,x]),(0,n.useEffect)(()=>{const{onDragMove:e}=A.current,{active:t,activatorEvent:n,collisions:r,over:o}=Y.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:o};(0,Dr.unstable_batchedUpdates)(()=>{null==e||e(i),b({type:"onDragMove",event:i})})},[de.x,de.y]),(0,n.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=Y.current;if(!e||null==N.current||!t||!o)return;const{onDragOver:i}=A.current,a=r.get(he),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};(0,Dr.unstable_batchedUpdates)(()=>{ve(l),null==i||i(c),b({type:"onDragOver",event:c})})},[he]),tE(()=>{Y.current={activatorEvent:M,active:P,activeNode:F,collisionRect:fe,collisions:pe,droppableRects:z,draggableNodes:O,draggingNode:Z,draggingNodeRect:J,droppableContainers:E,over:me,scrollableAncestors:oe,scrollAdjustedTranslate:de},$.current={initial:J,translated:fe}},[P,F,pe,fe,O,Z,J,z,E,me,oe,de]),$j({...K,delta:k,draggingRect:fe,pointerCoordinates:le,scrollableAncestors:oe,scrollableAncestorRects:ie});const Se=(0,n.useMemo)(()=>({active:P,activeNode:F,activeNodeRect:V,activatorEvent:M,collisions:pe,containerNodeRect:G,dragOverlay:Q,draggableNodes:O,droppableContainers:E,droppableRects:z,over:me,measureDroppableContainers:B,scrollableAncestors:oe,scrollableAncestorRects:ie,measuringConfiguration:L,measuringScheduled:H,windowRect:re}),[P,F,V,M,pe,G,Q,O,E,z,me,B,oe,ie,L,H,re]),Ce=(0,n.useMemo)(()=>({activatorEvent:M,activators:we,active:P,activeNodeRect:V,ariaDescribedById:{draggable:R},dispatch:g,draggableNodes:O,over:me,measureDroppableContainers:B}),[M,we,P,V,g,R,O,me,B]);return n.createElement(xE.Provider,{value:y},n.createElement(Gj.Provider,{value:Ce},n.createElement(Yj.Provider,{value:Se},n.createElement(e$.Provider,{value:ge},s)),n.createElement(Zj,{disabled:!1===(null==l?void 0:l.restoreFocus)})),n.createElement(CE,{...l,hiddenTextDescribedById:R}))}),r$=(0,n.createContext)(null),o$="button";function i$(e){let{id:t,data:r,disabled:o=!1,attributes:i}=e;const a=cE("Draggable"),{activators:l,activatorEvent:c,active:s,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=(0,n.useContext)(Gj),{role:h=o$,roleDescription:m="draggable",tabIndex:v=0}=null!=i?i:{},g=(null==s?void 0:s.id)===t,b=(0,n.useContext)(g?e$:r$),[y,x]=iE(),[w,S]=iE(),C=function(e,t){return(0,n.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e},{}),[e,t])}(l,t),O=rE(r);tE(()=>(f.set(t,{id:t,key:a,node:y,activatorNode:w,data:O}),()=>{const e=f.get(t);e&&e.key===a&&f.delete(t)}),[f,t]);return{active:s,activatorEvent:c,activeNodeRect:u,attributes:(0,n.useMemo)(()=>({role:h,tabIndex:v,"aria-disabled":o,"aria-pressed":!(!g||h!==o$)||void 0,"aria-roledescription":m,"aria-describedby":d.draggable}),[o,h,v,g,m,d.draggable]),isDragging:g,listeners:o?void 0:C,node:y,over:p,setNodeRef:x,setActivatorNodeRef:S,transform:b}}function a$(){return(0,n.useContext)(Yj)}const l$={timeout:25};function c$(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s$(e,t){return e.reduce((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e},Array(e.length))}function u$(e){return null!==e&&e>=0}const d$=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=c$(t,r,n),a=t[o],l=i[o];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},f$={scaleX:1,scaleY:1},p$=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...f$}:null}const c=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-c,...f$}:o<n&&o>=a?{x:0,y:l.height+c,...f$}:{x:0,y:0,...f$}};const h$="Sortable",m$=n.createContext({activeIndex:-1,containerId:h$,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:d$,disabled:{draggable:!1,droppable:!1}});function v$(e){let{children:t,id:r,items:o,strategy:i=d$,disabled:a=!1}=e;const{active:l,dragOverlay:c,droppableRects:s,over:u,measureDroppableContainers:d}=a$(),f=cE(h$,r),p=Boolean(null!==c.rect),h=(0,n.useMemo)(()=>o.map(e=>"object"==typeof e&&"id"in e?e.id:e),[o]),m=null!=l,v=l?h.indexOf(l.id):-1,g=u?h.indexOf(u.id):-1,b=(0,n.useRef)(h),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(h,b.current),x=-1!==g&&-1===v||y,w=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(a);tE(()=>{y&&m&&d(h)},[y,h,m,d]),(0,n.useEffect)(()=>{b.current=h},[h]);const S=(0,n.useMemo)(()=>({activeIndex:v,containerId:f,disabled:w,disableTransforms:x,items:h,overIndex:g,useDragOverlay:p,sortedRects:s$(h,s),strategy:i}),[v,f,w.draggable,w.droppable,x,h,g,s,p,i]);return n.createElement(m$.Provider,{value:S},t)}const g$=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return c$(n,r,o).indexOf(t)},b$=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:c,transition:s}=e;return!(!s||!r)&&((l===i||o!==a)&&(!!n||a!==o&&t===c))},y$={duration:200,easing:"ease"},x$="transform",w$=hE.Transition.toString({property:x$,duration:0,easing:"linear"}),S$={roleDescription:"sortable"};function C$(e){let{animateLayoutChanges:t=b$,attributes:r,disabled:o,data:i,getNewIndex:a=g$,id:l,strategy:c,resizeObserverConfig:s,transition:u=y$}=e;const{items:d,containerId:f,activeIndex:p,disabled:h,disableTransforms:m,sortedRects:v,overIndex:g,useDragOverlay:b,strategy:y}=(0,n.useContext)(m$),x=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(o,h),w=d.indexOf(l),S=(0,n.useMemo)(()=>({sortable:{containerId:f,index:w,items:d},...i}),[f,i,w,d]),C=(0,n.useMemo)(()=>d.slice(d.indexOf(l)),[d,l]),{rect:O,node:k,isOver:E,setNodeRef:j}=function(e){let{data:t,disabled:r=!1,id:o,resizeObserverConfig:i}=e;const a=cE("Droppable"),{active:l,dispatch:c,over:s,measureDroppableContainers:u}=(0,n.useContext)(Gj),d=(0,n.useRef)({disabled:r}),f=(0,n.useRef)(!1),p=(0,n.useRef)(null),h=(0,n.useRef)(null),{disabled:m,updateMeasurementsFor:v,timeout:g}={...l$,...i},b=rE(null!=v?v:o),y=Tj({callback:(0,n.useCallback)(()=>{f.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(b.current)?b.current:[b.current]),h.current=null},g)):f.current=!0},[g]),disabled:m||!l}),x=(0,n.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),f.current=!1),e&&y.observe(e))},[y]),[w,S]=iE(x),C=rE(t);return(0,n.useEffect)(()=>{y&&w.current&&(y.disconnect(),f.current=!1,y.observe(w.current))},[w,y]),(0,n.useEffect)(()=>(c({type:OE.RegisterDroppable,element:{id:o,key:a,disabled:r,node:w,rect:p,data:C}}),()=>c({type:OE.UnregisterDroppable,key:a,id:o})),[o]),(0,n.useEffect)(()=>{r!==d.current.disabled&&(c({type:OE.SetDroppableDisabled,id:o,key:a,disabled:r}),d.current.disabled=r)},[o,a,r,c]),{active:l,rect:p,isOver:(null==s?void 0:s.id)===o,node:w,over:s,setNodeRef:S}}({id:l,data:S,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...s}}),{active:$,activatorEvent:P,activeNodeRect:N,attributes:_,setNodeRef:I,listeners:M,isDragging:T,over:A,setActivatorNodeRef:R,transform:D}=i$({id:l,data:S,attributes:{...S$,...r},disabled:x.draggable}),L=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}(j,I),q=Boolean($),z=q&&!m&&u$(p)&&u$(g),B=!b&&T,H=B&&z?D:null,F=z?null!=H?H:(null!=c?c:y)({rects:v,activeNodeRect:N,activeIndex:p,overIndex:g,index:w}):null,W=u$(p)&&u$(g)?a({id:l,items:d,activeIndex:p,overIndex:g}):w,K=null==$?void 0:$.id,U=(0,n.useRef)({activeId:K,items:d,newIndex:W,containerId:f}),V=d!==U.current.items,G=t({active:$,containerId:f,isDragging:T,isSorting:q,id:l,index:w,items:d,newIndex:U.current.newIndex,previousItems:U.current.items,previousContainerId:U.current.containerId,transition:u,wasDragging:null!=U.current.activeId}),Y=function(e){let{disabled:t,index:r,node:o,rect:i}=e;const[a,l]=(0,n.useState)(null),c=(0,n.useRef)(r);return tE(()=>{if(!t&&r!==c.current&&o.current){const e=i.current;if(e){const t=FE(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}r!==c.current&&(c.current=r)},[t,r,o,i]),(0,n.useEffect)(()=>{a&&l(null)},[a]),a}({disabled:!G,index:w,node:k,rect:O});return(0,n.useEffect)(()=>{q&&U.current.newIndex!==W&&(U.current.newIndex=W),f!==U.current.containerId&&(U.current.containerId=f),d!==U.current.items&&(U.current.items=d)},[q,W,f,d]),(0,n.useEffect)(()=>{if(K===U.current.activeId)return;if(K&&!U.current.activeId)return void(U.current.activeId=K);const e=setTimeout(()=>{U.current.activeId=K},50);return()=>clearTimeout(e)},[K]),{active:$,activeIndex:p,attributes:_,data:S,rect:O,index:w,newIndex:W,items:d,isOver:E,isSorting:q,isDragging:T,listeners:M,node:k,overIndex:g,over:A,setNodeRef:L,setActivatorNodeRef:R,setDroppableNodeRef:j,setDraggableNodeRef:I,transform:null!=Y?Y:F,transition:function(){if(Y||V&&U.current.newIndex===w)return w$;if(B&&!fE(P)||!u)return;if(q||G)return hE.Transition.toString({...u,property:x$});return}()}}function O$(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const k$=[uj.Down,uj.Right,uj.Up,uj.Left],E$=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:l}}=t;if(k$.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];i.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const i=o.get(n.id);if(i)switch(e.code){case uj.Down:r.top<i.top&&t.push(n);break;case uj.Up:r.top>i.top&&t.push(n);break;case uj.Left:r.left>i.left&&t.push(n);break;case uj.Right:r.left<i.left&&t.push(n)}});const c=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=IE(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=IE(r),a=o.reduce((e,t,r)=>e+PE(n[r],t),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(NE)})({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let s=ME(c,"id");if(s===(null==a?void 0:a.id)&&c.length>1&&(s=c[1].id),null!=s){const e=i.get(n.id),t=i.get(s),a=t?o.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&a&&e&&t){const n=KE(c).some((e,t)=>l[t]!==e),o=j$(e,t),i=function(e,t){if(!O$(e)||!O$(t))return!1;if(!j$(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),s=n||!o?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},u={x:a.left,y:a.top};return s.x&&s.y?u:dE(u,s)}}}};function j$(e,t){return!(!O$(e)||!O$(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const $$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var P$=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:$$}))}; | |
| 118 | +/** */const N$=n.forwardRef(P$);function _$(e){return _$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_$(e)}function I$(e){return function(e){if(Array.isArray(e))return L$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D$(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M$(Object(n),!0).forEach(function(t){A$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_$(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_$(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||D$(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D$(e,t){if(e){if("string"==typeof e)return L$(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L$(e,t):void 0}}function L$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var q$=function(e){var t=e.id,n=e.label,r=e.field,o=C$({id:t}),a=o.attributes,l=o.listeners,s=o.setNodeRef,u=o.transform,d=o.transition,f=R$(c(),2),p=(f[0],f[1]),m={transform:hE.Transform.toString(u),transition:d};return(0,i.jsxs)("li",{ref:s,style:m,className:"rtsb-sortable-item",children:[(0,i.jsx)("span",T$(T$(T$({className:"handler"},a),l),{},{children:(0,i.jsx)(om,{title:"Rearrange",placement:"left",children:(0,i.jsx)(N$,{})})})),(0,i.jsxs)("label",{htmlFor:"sortable-item-".concat(t),children:[(0,i.jsx)("input",{id:"sortable-item-".concat(t),type:"checkbox",checked:Array.isArray(r.value)&&r.value.includes(t),onChange:function(e){var n=I$(r.value);e.target.checked?n.push(t):n=n.filter(function(e){return e!==t}),p({type:h,id:r.id,value:n})},value:t}),n]})]})};const z$=function(e){var t=e.field,r=t.options,o=t.value,a=t.id,l=R$((0,n.useState)(Object.keys(r)),2),s=l[0],u=l[1],d=R$(c(),2),f=(d[0],d[1]);(0,n.useEffect)(function(){var e=o||[],t=T$({},r),n=[].concat(I$(e),I$(Object.keys(t).filter(function(t){return!e.includes(t)})));u(n)},[]);var p=jE(EE(xj,{activationConstraint:{distance:5}}));return(0,i.jsxs)("div",{className:"rtsb-field sortable",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsx)("div",{className:"rtsb-field__content",children:(0,i.jsx)(n$,{sensors:p,collisionDetection:AE,onDragEnd:function(e){var t=e.active,n=e.over;if(n&&t.id!==n.id){var r=s.indexOf(t.id),i=s.indexOf(n.id),l=c$(s,r,i);u(l);var c=l.filter(function(e){return o.includes(e)});f({type:h,id:a,value:c})}},children:(0,i.jsx)(v$,{items:s,strategy:p$,children:(0,i.jsx)("ul",{className:"rtsb-sortable-wrap",children:s.map(function(t){return(0,i.jsx)(q$,{id:t,label:r[t],field:e.field},t)})})})})})]})};function B$(e){return B$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B$(e)}function H$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function F$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H$(Object(n),!0).forEach(function(t){W$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=B$(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=B$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==B$(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return U$(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U$(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const V$=function(e){var t,r,o,a,l=e.field,s=l.help,u=l.value,d=l.default_val,f=l.disabled,p=l.isPro,m=e.id,v=K$(c(),2),g=(v[0],v[1]),b=K$((0,n.useState)("yes"),2),y=b[0],x=b[1],w=(0,n.useRef)(),S=null===(t=e.field)||void 0===t?void 0:t.fieldType,C=null===(r=e.field)||void 0===r?void 0:r.parentId,O=null===(o=e.field)||void 0===o?void 0:o.index,k=null===(a=e.field)||void 0===a?void 0:a.repeaterData,E=u?"Code: ".concat(u):"No color selected",j={};return f?j.disabled=f||!1:p&&(j.disabled=p),(0,i.jsxs)("div",{className:"rtsb-field text",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsxs)("div",{className:"rtsb-field-control",ref:w,children:[(0,i.jsx)(Fk,F$(F$({},j),{},{allowClear:!0,format:"hex",defaultValue:u||d||"#0066ff",onChangeComplete:function(e){"yes"===y&&0==e.metaColor.roundA&&(e.metaColor.roundA=1),x("no"),g({type:h,id:m,value:e.toHexString(),fieldType:S,parentId:C,repeaterData:k,index:O})},onClear:function(){g({type:h,id:m,value:null!=d?d:"",fieldType:S,parentId:C,repeaterData:k,index:O}),setTimeout(function(){if(d){var e=w.current.querySelector(".ant-color-picker-clear");e.classList.add("rtrb-color-picker-reset"),e.style.backgroundColor=d}},200),x("no")}})),(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:E}})]}),s&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};var G$=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Y$=(0,n.forwardRef)(function(e,t){var r=e.prefixCls,o=void 0===r?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,c=e.disabled,s=e.defaultChecked,u=void 0!==s&&s,d=e.type,f=void 0===d?"checkbox":d,p=e.title,h=e.onChange,m=eo(e,G$),v=(0,n.useRef)(null),g=(0,n.useRef)(null),b=_(mo(u,{value:l}),2),y=b[0],x=b[1];(0,n.useImperativeHandle)(t,function(){return{focus:function(e){var t;null===(t=v.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=v.current)||void 0===e||e.blur()},input:v.current,nativeElement:g.current}});var w=Rr()(o,i,E(E({},"".concat(o,"-checked"),y),"".concat(o,"-disabled"),c));return n.createElement("span",{className:w,title:p,style:a,ref:g},n.createElement("input",Ve({},m,{className:"".concat(o,"-input"),ref:v,onChange:function(t){c||("checked"in e||x(t.target.checked),null==h||h({target:A(A({},e),{},{type:f,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:c,checked:!!y,type:f})),n.createElement("span",{className:"".concat(o,"-inner")}))});const X$=Y$,Q$=n.createContext(null),Z$=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Oi(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Oi(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Oi(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},ki(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${$e(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function J$(e,t){const n=$l(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Z$(n)]}const eP=ql("Checkbox",(e,{prefixCls:t})=>[J$(t,e)]);function tP(e){const t=n.useRef(null),r=()=>{Ko.cancel(t.current),t.current=null};return[()=>{r(),t.current=Ko(()=>{t.current=null})},n=>{t.current&&(n.stopPropagation(),r()),null==e||e(n)}]}var nP=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rP=(e,t)=>{var r;const{prefixCls:o,className:i,rootClassName:a,children:l,indeterminate:c=!1,style:s,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,h=nP(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:v,checkbox:g}=n.useContext(x),b=n.useContext(Q$),{isFormItemInput:y}=n.useContext(Sh),w=n.useContext(jr),S=null!==(r=(null==b?void 0:b.disabled)||p)&&void 0!==r?r:w,C=n.useRef(h.value),O=n.useRef(null),k=Yr(t,O);n.useEffect(()=>{null==b||b.registerValue(h.value)},[]),n.useEffect(()=>{if(!f)return h.value!==C.current&&(null==b||b.cancelValue(C.current),null==b||b.registerValue(h.value),C.current=h.value),()=>null==b?void 0:b.cancelValue(h.value)},[h.value]),n.useEffect(()=>{var e;(null===(e=O.current)||void 0===e?void 0:e.input)&&(O.current.input.indeterminate=c)},[c]);const E=m("checkbox",o),j=ul(E),[$,P,N]=eP(E,j),_=Object.assign({},h);b&&!f&&(_.onChange=(...e)=>{h.onChange&&h.onChange.apply(h,e),b.toggleOption&&b.toggleOption({label:l,value:h.value})},_.name=b.name,_.checked=b.value.includes(h.value));const I=Rr()(`${E}-wrapper`,{[`${E}-rtl`]:"rtl"===v,[`${E}-wrapper-checked`]:_.checked,[`${E}-wrapper-disabled`]:S,[`${E}-wrapper-in-form-item`]:y},null==g?void 0:g.className,i,a,N,j,P),M=Rr()({[`${E}-indeterminate`]:c},Pc,P),[T,A]=tP(_.onClick);return $(n.createElement(Ac,{component:"Checkbox",disabled:S},n.createElement("label",{className:I,style:Object.assign(Object.assign({},null==g?void 0:g.style),s),onMouseEnter:u,onMouseLeave:d,onClick:T},n.createElement(X$,Object.assign({},_,{onClick:A,prefixCls:E,className:M,disabled:S,ref:k})),null!=l&&n.createElement("span",{className:`${E}-label`},l))))};const oP=n.forwardRef(rP);var iP=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const aP=n.forwardRef((e,t)=>{const{defaultValue:r,children:o,options:i=[],prefixCls:a,className:l,rootClassName:c,style:s,onChange:u}=e,d=iP(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=n.useContext(x),[h,m]=n.useState(d.value||r||[]),[v,g]=n.useState([]);n.useEffect(()=>{"value"in d&&m(d.value||[])},[d.value]);const b=n.useMemo(()=>i.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[i]),y=e=>{g(t=>t.filter(t=>t!==e))},w=e=>{g(t=>[].concat(M(t),[e]))},S=e=>{const t=h.indexOf(e.value),n=M(h);-1===t?n.push(e.value):n.splice(t,1),"value"in d||m(n),null==u||u(n.filter(e=>v.includes(e)).sort((e,t)=>b.findIndex(t=>t.value===e)-b.findIndex(e=>e.value===t)))},C=f("checkbox",a),O=`${C}-group`,k=ul(C),[E,j,$]=eP(C,k),P=Sc(d,["value","disabled"]),N=i.length?b.map(e=>n.createElement(oP,{prefixCls:C,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:h.includes(e.value),onChange:e.onChange,className:Rr()(`${O}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):o,_=n.useMemo(()=>({toggleOption:S,value:h,disabled:d.disabled,name:d.name,registerValue:w,cancelValue:y}),[S,h,d.disabled,d.name,w,y]),I=Rr()(O,{[`${O}-rtl`]:"rtl"===p},l,c,$,k,j);return E(n.createElement("div",Object.assign({className:I,style:s},P,{ref:t}),n.createElement(Q$.Provider,{value:_},N)))}),lP=aP,cP=oP;cP.Group=lP,cP.__ANT_CHECKBOX=!0;const sP=cP;function uP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dP(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var fP=sP.Group;const pP=function(e){var t,n,r,o,a=e.id,l=e.field,s=l.value,u=l.help,d=l.options,f=(l.empty,l.searchable,l.orientation),p=uP(c(),2),m=(p[0],p[1]),v=null===(t=e.field)||void 0===t?void 0:t.fieldType,g=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(r=e.field)||void 0===r?void 0:r.index,y=null===(o=e.field)||void 0===o?void 0:o.repeaterData;return(0,i.jsxs)("div",{className:"rtsb-field checkbox-group-wrap field-".concat(a),children:[(0,i.jsx)(Tg,{field:l}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsx)(fP,{className:"rtsb-checkbox-group ".concat(f||"vertical"),options:d,value:s,onChange:function(e){m({type:h,id:a,value:e,fieldType:v,parentId:g,repeaterData:y,index:b})}})}),u&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};var hP=o(4353),mP=o.n(hP),vP=o(6986),gP=o.n(vP),bP=o(1840),yP=o.n(bP),xP=o(8134),wP=o.n(xP),SP=o(8623),CP=o.n(SP),OP=o(7375),kP=o.n(OP),EP=o(445),jP=o.n(EP);mP().extend(jP()),mP().extend(kP()),mP().extend(gP()),mP().extend(yP()),mP().extend(wP()),mP().extend(CP()),mP().extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}});var $P={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},PP=function(e){return $P[e]||e.split("_")[0]},NP=function(){},_P={getNow:function(){var e=mP()();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return mP()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return mP()().locale(PP(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(PP(e)).weekday(0)},getWeek:function(e,t){return t.locale(PP(e)).week()},getShortWeekDays:function(e){return mP()().locale(PP(e)).localeData().weekdaysMin()},getShortMonths:function(e){return mP()().locale(PP(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(PP(e)).format(n)},parse:function(e,t,n){for(var r=PP(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var l=a.split("-")[0],c=a.split("-")[1],s=mP()(l,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var d=s.add(u,"week");if(d.format("Wo")===c)return d}return NP(),null}var f=mP()(a,i,!0).locale(r);if(f.isValid())return f}return null}}};const IP=_P;const MP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var TP=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:MP}))}; | |
| 119 | +/** */const AP=n.forwardRef(TP);const RP={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var DP=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:RP}))}; | |
| 120 | +/** */const LP=n.forwardRef(DP);const qP={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};var zP=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:qP}))}; | |
| 121 | +/** */const BP=n.forwardRef(zP);const HP=n.createContext(null);var FP={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};const WP=function(e){var t=e.popupElement,r=e.popupStyle,o=e.popupClassName,i=e.popupAlign,a=e.transitionName,l=e.getPopupContainer,c=e.children,s=e.range,u=e.placement,d=e.builtinPlacements,f=void 0===d?FP:d,p=e.direction,h=e.visible,m=e.onClose,v=n.useContext(HP).prefixCls,g="".concat(v,"-dropdown"),b=function(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}(u,"rtl"===p);return n.createElement(Df,{showAction:[],hideAction:["click"],popupPlacement:b,builtinPlacements:f,prefixCls:g,popupTransitionName:a,popup:t,popupAlign:i,popupVisible:h,popupClassName:Rr()(o,E(E({},"".concat(g,"-range"),s),"".concat(g,"-rtl"),"rtl"===p)),popupStyle:r,stretch:"minWidth",getPopupContainer:l,onPopupVisibleChange:function(e){e||m()}},c)};function KP(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function UP(e){return null==e?[]:Array.isArray(e)?e:[e]}function VP(e,t,n){var r=M(e);return r[t]=n,r}function GP(e,t){var n={};return(t||Object.keys(e)).forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n}function YP(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function XP(e,t,n){var r=void 0!==n?n:t[t.length-1],o=t.find(function(t){return e[t]});return r!==o?e[o]:void 0}function QP(e){return GP(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function ZP(e,t,r,o){var i=n.useMemo(function(){return e||function(e,n){var o=e;return t&&"date"===n.type?t(o,n.today):r&&"month"===n.type?r(o,n.locale):n.originNode}},[e,r,t]),a=n.useCallback(function(e,t){return i(e,A(A({},t),{},{range:o}))},[i,o]);return a}function JP(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=_(n.useState([!1,!1]),2),i=o[0],a=o[1],l=n.useMemo(function(){return i.map(function(n,o){if(n)return!0;var i=e[o];return!!i&&(!r[o]&&!i||!(!i||!t(i,{activeIndex:o})))})},[e,i,t,r]);return[l,function(e,t){a(function(n){return VP(n,t,e)})}]}function eN(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function tN(e,t){var r=t.showHour,o=t.showMinute,i=t.showSecond,a=t.showMillisecond,l=t.use12Hours;return n.useMemo(function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,h=e.cellYearFormat,m=e.cellQuarterFormat,v=e.dayFormat,g=e.cellDateFormat,b=eN(t,n,r,o,i);return A(A({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:g||v||"D"})}(e,r,o,i,a,l)},[e,r,o,i,a,l])}function nN(e,t,n){return null!=n?n:t.some(function(t){return e.includes(t)})}var rN=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function oN(e){return e&&"string"==typeof e}function iN(e,t,n,r){return[e,t,n,r].some(function(e){return void 0!==e})}function aN(e,t,n,r,o){var i=t,a=n,l=r;if(e||i||a||l||o){if(e){var c,s,u,d=[i,a,l].some(function(e){return!1===e}),f=[i,a,l].some(function(e){return!0===e}),p=!!d||!f;i=null!==(c=i)&&void 0!==c?c:p,a=null!==(s=a)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else i=!0,a=!0,l=!0;return[i,a,l,o]}function lN(e){var t=e.showTime,n=function(e){var t=GP(e,rN),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===O(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=_(n,2),o=r[0],i=r[1],a=t&&"object"===O(t)?t:{},l=A(A({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),c=l.showMillisecond,s=l.showHour,u=l.showMinute,d=l.showSecond,f=_(aN(iN(s,u,d,c),s,u,d,c),3);return s=f[0],u=f[1],d=f[2],[l,A(A({},l),{},{showHour:s,showMinute:u,showSecond:d,showMillisecond:c}),l.format,i]}function cN(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=YP(e,o,null),l=[t,n],c=0;c<l.length;c+=1){var s=UP(l[c])[0];if(oN(s)){a=s;break}}var u=i.showHour,d=i.showMinute,f=i.showSecond,p=i.showMillisecond,h=nN(a,["a","A","LT","LLL","LTS"],i.use12Hours),m=iN(u,d,f,p);m||(u=nN(a,["H","h","k","LT","LLL"]),d=nN(a,["m","LT","LLL"]),f=nN(a,["s","LTS"]),p=nN(a,["SSS"]));var v=_(aN(m,u,d,f,p),3);u=v[0],d=v[1],f=v[2];var g=t||eN(u,d,f,p,h);return A(A({},i),{},{format:g,showHour:u,showMinute:d,showSecond:f,showMillisecond:p,use12Hours:h})}return null}function sN(e,t,r){return!1===t?null:(t&&"object"===O(t)?t:{}).clearIcon||r||n.createElement("span",{className:"".concat(e,"-clear-btn")})}function uN(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function dN(e,t,n){return uN(t,n,function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)})}function fN(e,t,n){return uN(t,n,function(){return e.getYear(t)===e.getYear(n)})}function pN(e,t){return Math.floor(e.getMonth(t)/3)+1}function hN(e,t,n){return uN(t,n,function(){return fN(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function mN(e,t,n){return uN(t,n,function(){return fN(e,t,n)&&hN(e,t,n)&&e.getDate(t)===e.getDate(n)})}function vN(e,t,n){return uN(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function gN(e,t,n){return uN(t,n,function(){return mN(e,t,n)&&vN(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function bN(e,t,n,r){return uN(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return fN(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function yN(e,t,n,r,o){switch(o){case"date":return mN(e,n,r);case"week":return bN(e,t.locale,n,r);case"month":return hN(e,n,r);case"quarter":return function(e,t,n){return uN(t,n,function(){return fN(e,t,n)&&pN(e,t)===pN(e,n)})}(e,n,r);case"year":return fN(e,n,r);case"decade":return dN(e,n,r);case"time":return vN(e,n,r);default:return gN(e,n,r)}}function xN(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function wN(e,t,n,r,o){return!!yN(e,t,n,r,o)||e.isAfter(n,r)}function SN(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"==typeof o?o(e):n.locale.format(r.locale,e,o):""}function CN(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach(function(t,i){r=n?e[t](r,e[o[i]](n)):e[t](r,0)}),r}function ON(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.useMemo(function(){var n=e?UP(e):e;return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function kN(e,t){var r=e.generateConfig,o=e.locale,i=e.picker,a=void 0===i?"date":i,l=e.prefixCls,c=void 0===l?"rc-picker":l,s=e.styles,u=void 0===s?{}:s,d=e.classNames,f=void 0===d?{}:d,p=e.order,h=void 0===p||p,m=e.components,v=void 0===m?{}:m,g=e.inputRender,b=e.allowClear,y=e.clearIcon,x=e.needConfirm,w=e.multiple,S=e.format,C=e.inputReadOnly,k=e.disabledDate,E=e.minDate,j=e.maxDate,$=e.showTime,P=e.value,N=e.defaultValue,I=e.pickerValue,M=e.defaultPickerValue,T=ON(P),R=ON(N),D=ON(I),L=ON(M),q="date"===a&&$?"datetime":a,z="time"===q||"datetime"===q,B=z||w,H=null!=x?x:z,F=_(lN(e),4),W=F[0],K=F[1],U=F[2],V=F[3],G=tN(o,K),Y=n.useMemo(function(){return cN(q,U,V,W,G)},[q,U,V,W,G]);var X=n.useMemo(function(){return A(A({},e),{},{prefixCls:c,locale:G,picker:a,styles:u,classNames:f,order:h,components:A({input:g},v),clearIcon:sN(c,b,y),showTime:Y,value:T,defaultValue:R,pickerValue:D,defaultPickerValue:L},null==t?void 0:t())},[e]),Q=function(e,t,r){return n.useMemo(function(){var n=UP(YP(e,t,r)),o=n[0],i="object"===O(o)&&"mask"===o.type?o.format:null;return[n.map(function(e){return"string"==typeof e||"function"==typeof e?e:e.format}),i]},[e,t,r])}(q,G,S),Z=_(Q,2),J=Z[0],ee=Z[1],te=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(J,C,w),ne=function(e,t,n,r,o){var i=fo(function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||yN(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||yN(e,t,o,i,a.type))});return i}(r,o,k,E,j),re=function(e,t,n,r){var o=fo(function(o,i){var a=A({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var l,c=i&&1===i.activeIndex?"end":"start",s=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,c,{from:a.from}))||{},u=s.disabledHours,d=s.disabledMinutes,f=s.disabledSeconds,p=s.disabledMilliseconds,h=r.disabledHours,m=r.disabledMinutes,v=r.disabledSeconds,g=u||h,b=d||m,y=f||v,x=e.getHour(o),w=e.getMinute(o),S=e.getSecond(o),C=e.getMillisecond(o);if(g&&g().includes(x))return!0;if(b&&b(x).includes(w))return!0;if(y&&y(x,w).includes(S))return!0;if(p&&p(x,w,S).includes(C))return!0}return!1});return o}(r,a,ne,Y);return[n.useMemo(function(){return A(A({},X),{},{needConfirm:H,inputReadOnly:te,disabledDate:ne})},[X,H,te,ne]),q,B,J,ee,re]}function EN(e,t){var r=arguments.length>3?arguments[3]:void 0,o=function(e,t,r){var o=_(mo(t,{value:e}),2),i=o[0],a=o[1],l=n.useRef(e),c=n.useRef(),s=function(){Ko.cancel(c.current)},u=fo(function(){a(l.current),r&&i!==l.current&&r(l.current)}),d=fo(function(e,t){s(),l.current=e,e||t?u():c.current=Ko(u)});return n.useEffect(function(){return s},[]),[i,d]}(!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every(function(e){return e})&&e,t||!1,r),i=_(o,2),a=i[0],l=i[1];return[a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!a||l(e,t.force)}]}function jN(e){var t=n.useRef();return n.useImperativeHandle(e,function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}}),t}function $N(e,t){return n.useMemo(function(){return e||(t?(ne(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(e){var t=_(e,2);return{label:t[0],value:t[1]}})):[])},[e,t])}function PN(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=n.useRef(t);o.current=t,Ae(function(){if(!e){var t=Ko(function(){o.current(e)},r);return function(){Ko.cancel(t)}}o.current(e)},[e])}function NN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=_(n.useState(0),2),i=o[0],a=o[1],l=_(n.useState(!1),2),c=l[0],s=l[1],u=n.useRef([]),d=n.useRef(null),f=n.useRef(null),p=function(e){d.current=e};return PN(c||r,function(){c||(u.current=[],p(null))}),n.useEffect(function(){c&&u.current.push(i)},[c,i]),[c,function(e){s(e)},function(e){return e&&(f.current=e),f.current},i,a,function(n){var r=u.current,o=new Set(r.filter(function(e){return n[e]||t[e]})),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},u.current,p,function(e){return d.current===e}]}function _N(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var IN=[];function MN(e,t,r,o,i,a,l,c){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:IN,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:IN,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,h="time"===l,m=a||0,v=function(t){var n=e.getNow();return h&&(n=CN(e,n)),s[t]||r[t]||n},g=_(arguments.length>9&&void 0!==arguments[9]?arguments[9]:IN,2),b=g[0],y=g[1],x=_(mo(function(){return v(0)},{value:b}),2),w=x[0],S=x[1],C=_(mo(function(){return v(1)},{value:y}),2),O=C[0],k=C[1],E=n.useMemo(function(){var t=[w,O][m];return h?t:CN(e,t,u[m])},[h,w,O,m,e,u]),j=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[S,k][m])(n);var i=[w,O];i[m]=n,!d||yN(e,t,w,i[0],l)&&yN(e,t,O,i[1],l)||d(i,{source:r,range:1===m?"end":"start",mode:o})},$=n.useRef(null);return Re(function(){if(i&&!s[m]){var n=h?null:e.getNow();if(null!==$.current&&$.current!==m?n=[w,O][1^m]:r[m]?n=0===m?r[0]:function(n,r){if(c){var o={date:"month",week:"month",month:"year",quarter:"year"}[l];if(o&&!yN(e,t,n,r,o))return _N(e,l,r,-1);if("year"===l&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return _N(e,l,r,-1)}return r}(r[0],r[1]):r[1^m]&&(n=r[1^m]),n){f&&e.isAfter(f,n)&&(n=f);var o=c?_N(e,l,n,1):n;p&&e.isAfter(o,p)&&(n=c?_N(e,l,p,-1):p),j(n,"reset")}}},[i,m,r[m]]),n.useEffect(function(){$.current=i?m:null},[i,m]),Re(function(){i&&s&&s[m]&&j(s[m],"reset")},[i,m]),[E,j]}function TN(e,t){var r=n.useRef(e),o=_(n.useState({}),2)[1],i=function(e){return e&&void 0!==t?t:r.current};return[i,function(e){r.current=e,o({})},i(!0)]}var AN=[];function RN(e,t,n){return[function(r){return r.map(function(r){return SN(r,{generateConfig:e,locale:t,format:n[0]})})},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i<r;i+=1){var a=t[i]||null,l=n[i]||null;if(a!==l&&!gN(e,a,l)){o=i;break}}return[o<0,0!==o]}]}function DN(e,t){return M(e).sort(function(e,n){return t.isAfter(e,n)?1:-1})}function LN(e,t,r,o,i,a,l,c,s){var u=_(mo(a,{value:l}),2),d=u[0],f=u[1],p=d||AN,h=function(e){var t=_(TN(e),2),r=t[0],o=t[1],i=fo(function(){o(e)});return n.useEffect(function(){i()},[e]),[r,o]}(p),m=_(h,2),v=m[0],g=m[1],b=_(RN(e,t,r),2),y=b[0],x=b[1],w=fo(function(t){var n=M(t);if(o)for(var r=0;r<2;r+=1)n[r]=n[r]||null;else i&&(n=DN(n.filter(function(e){return e}),e));var a=_(x(v(),n),2),l=a[0],s=a[1];if(!l&&(g(n),c)){var u=y(n);c(n,u,{range:s?"end":"start"})}});return[p,f,v,w,function(){s&&s(v())}]}function qN(e,t,r,o,i,a,l,c,s,u){var d=e.generateConfig,f=e.locale,p=e.picker,h=e.onChange,m=e.allowEmpty,v=e.order,g=!a.some(function(e){return e})&&v,b=_(RN(d,f,l),2),y=b[0],x=b[1],w=_(TN(t),2),S=w[0],C=w[1],O=fo(function(){C(t)});n.useEffect(function(){O()},[t]);var k=fo(function(e){var n=null===e,o=M(e||S());if(n)for(var l=Math.max(a.length,o.length),c=0;c<l;c+=1)a[c]||(o[c]=null);g&&o[0]&&o[1]&&(o=DN(o,d)),i(o);var s=_(o,2),b=s[0],w=s[1],C=!b,O=!w,k=!m||(!C||m[0])&&(!O||m[1]),E=!v||C||O||yN(d,f,b,w,p)||d.isAfter(w,b),j=(a[0]||!b||!u(b,{activeIndex:0}))&&(a[1]||!w||!u(w,{from:b,activeIndex:1})),$=n||k&&E&&j;if($){r(o);var P=_(x(o,t),1)[0];h&&!P&&h(n&&o.every(function(e){return!e})?null:o,y(o))}return $}),E=fo(function(e,t){var n=VP(S(),e,o()[e]);C(n),t&&k()}),j=!c&&!s;return PN(!j,function(){j&&(k(),i(t),O())},2),[E,k]}function zN(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function BN(){return[]}function HN(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||a.push({label:KP(c,i),value:c,disabled:s})}return a}function FN(e){var t=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=r.use12Hours,i=r.hourStep,a=void 0===i?1:i,l=r.minuteStep,c=void 0===l?1:l,s=r.secondStep,u=void 0===s?1:s,d=r.millisecondStep,f=void 0===d?100:d,p=r.hideDisabledOptions,h=r.disabledTime,m=r.disabledHours,v=r.disabledMinutes,g=r.disabledSeconds,b=n.useMemo(function(){return t||e.getNow()},[t,e]),y=n.useCallback(function(e){var t=(null==h?void 0:h(e))||{};return[t.disabledHours||m||BN,t.disabledMinutes||v||BN,t.disabledSeconds||g||BN,t.disabledMilliseconds||BN]},[h,m,v,g]),x=_(n.useMemo(function(){return y(b)},[b,y]),4),w=x[0],S=x[1],C=x[2],O=x[3],k=n.useCallback(function(e,t,n,r){var i=HN(0,23,a,p,e()),l=o?i.map(function(e){return A(A({},e),{},{label:KP(e.value%12||12,2)})}):i;return[l,function(e){return HN(0,59,c,p,t(e))},function(e,t){return HN(0,59,u,p,n(e,t))},function(e,t,n){return HN(0,999,f,p,r(e,t,n),3)}]},[p,a,o,f,c,u]),E=_(n.useMemo(function(){return k(w,S,C,O)},[k,w,S,C,O]),4),j=E[0],$=E[1],P=E[2],N=E[3];return[function(t,n){var r=function(){return j},o=$,i=P,a=N;if(n){var l=_(y(n),4),c=l[0],s=l[1],u=l[2],d=l[3],f=_(k(c,s,u,d),4),p=f[0];r=function(){return p},o=f[1],i=f[2],a=f[3]}var h=function(e,t,n,r,o,i){var a=e;function l(e,t,n){var r=i[e](a),o=n.find(function(e){return e.value===r});if(!o||o.disabled){var l=n.filter(function(e){return!e.disabled}),c=M(l).reverse().find(function(e){return e.value<=r})||l[0];c&&(r=c.value,a=i[t](a,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),a}(t,r,o,i,a,e);return h},j,$,P,N]}function WN(e){var t=e.mode,r=e.internalMode,o=e.renderExtraFooter,i=e.showNow,a=e.showTime,l=e.onSubmit,c=e.onNow,s=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=n.useContext(HP),h=p.prefixCls,m=p.locale,v=p.button,g=void 0===v?"button":v,b=d.getNow(),y=_(FN(d,a,b),1)[0],x=null==o?void 0:o(t),w=f(b,{type:t}),S="".concat(h,"-now"),C="".concat(S,"-btn"),O=i&&n.createElement("li",{className:S},n.createElement("a",{className:Rr()(C,w&&"".concat(C,"-disabled")),"aria-disabled":w,onClick:function(){if(!w){var e=y(b);c(e)}}},"date"===r?m.today:m.now)),k=u&&n.createElement("li",{className:"".concat(h,"-ok")},n.createElement(g,{disabled:s,onClick:l},m.ok)),E=(O||k)&&n.createElement("ul",{className:"".concat(h,"-ranges")},O,k);return x||E?n.createElement("div",{className:"".concat(h,"-footer")},x&&n.createElement("div",{className:"".concat(h,"-footer-extra")},x),E):null}function KN(e,t,n){return function(r,o){var i=r.findIndex(function(r){return yN(e,t,r,o,n)});if(-1===i)return[].concat(M(r),[o]);var a=M(r);return a.splice(i,1),a}}var UN=n.createContext(null);function VN(){return n.useContext(UN)}function GN(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,h=e.onSelect,m=e.prevIcon,v=e.nextIcon,g=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:m,nextIcon:v,superPrevIcon:g,superNextIcon:b},y]}var YN=n.createContext({});function XN(e){for(var t=e.rowNum,r=e.colNum,o=e.baseDate,i=e.getCellDate,a=e.prefixColumn,l=e.rowClassName,c=e.titleFormat,s=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=void 0===f||f,h=e.disabledDate,m=VN(),v=m.prefixCls,g=m.panelType,b=m.now,y=m.disabledDate,x=m.cellRender,w=m.onHover,S=m.hoverValue,C=m.hoverRangeValue,O=m.generateConfig,k=m.values,j=m.locale,$=m.onSelect,P=h||y,N="".concat(v,"-cell"),I=n.useContext(YN).onCellDblClick,M=function(e){return k.some(function(t){return t&&yN(O,j,e,t,g)})},T=[],R=0;R<t;R+=1){for(var D=[],L=void 0,q=function(){var e=i(o,R*r+z),t=null==P?void 0:P(e,{type:g});0===z&&(L=e,a&&D.push(a(L)));var l=!1,d=!1,f=!1;if(p&&C){var h=_(C,2),m=h[0],y=h[1];l=xN(O,m,y,e),d=yN(O,j,e,m,g),f=yN(O,j,e,y,g)}var k=c?SN(e,{locale:j,format:c,generateConfig:O}):void 0,T=n.createElement("div",{className:"".concat(N,"-inner")},s(e));D.push(n.createElement("td",{key:z,title:k,className:Rr()(N,A(E(E(E(E(E(E({},"".concat(N,"-disabled"),t),"".concat(N,"-hover"),(S||[]).some(function(t){return yN(O,j,e,t,g)})),"".concat(N,"-in-range"),l&&!d&&!f),"".concat(N,"-range-start"),d),"".concat(N,"-range-end"),f),"".concat(v,"-cell-selected"),!C&&"week"!==g&&M(e)),u(e))),onClick:function(){t||$(e)},onDoubleClick:function(){!t&&I&&I()},onMouseEnter:function(){t||null==w||w(e)},onMouseLeave:function(){t||null==w||w(null)}},x?x(e,{prefixCls:v,originNode:T,today:b,type:g,locale:j}):T))},z=0;z<r;z+=1)q();T.push(n.createElement("tr",{key:R,className:null==l?void 0:l(L)},D))}return n.createElement("div",{className:"".concat(v,"-body")},n.createElement("table",{className:"".concat(v,"-content")},d&&n.createElement("thead",null,n.createElement("tr",null,d)),n.createElement("tbody",null,T)))}var QN={visibility:"hidden"};const ZN=function(e){var t=e.offset,r=e.superOffset,o=e.onChange,i=e.getStart,a=e.getEnd,l=e.children,c=VN(),s=c.prefixCls,u=c.prevIcon,d=void 0===u?"‹":u,f=c.nextIcon,p=void 0===f?"›":f,h=c.superPrevIcon,m=void 0===h?"«":h,v=c.superNextIcon,g=void 0===v?"»":v,b=c.minDate,y=c.maxDate,x=c.generateConfig,w=c.locale,S=c.pickerValue,C=c.panelType,O="".concat(s,"-header"),k=n.useContext(YN),E=k.hidePrev,j=k.hideNext,$=k.hideHeader,P=n.useMemo(function(){if(!b||!t||!a)return!1;var e=a(t(-1,S));return!wN(x,w,e,b,C)},[b,t,S,a,x,w,C]),N=n.useMemo(function(){if(!b||!r||!a)return!1;var e=a(r(-1,S));return!wN(x,w,e,b,C)},[b,r,S,a,x,w,C]),_=n.useMemo(function(){if(!y||!t||!i)return!1;var e=i(t(1,S));return!wN(x,w,y,e,C)},[y,t,S,i,x,w,C]),I=n.useMemo(function(){if(!y||!r||!i)return!1;var e=i(r(1,S));return!wN(x,w,y,e,C)},[y,r,S,i,x,w,C]),M=function(e){t&&o(t(e,S))},T=function(e){r&&o(r(e,S))};if($)return null;var A="".concat(O,"-prev-btn"),R="".concat(O,"-next-btn"),D="".concat(O,"-super-prev-btn"),L="".concat(O,"-super-next-btn");return n.createElement("div",{className:O},r&&n.createElement("button",{type:"button","aria-label":w.previousYear,onClick:function(){return T(-1)},tabIndex:-1,className:Rr()(D,N&&"".concat(D,"-disabled")),disabled:N,style:E?QN:{}},m),t&&n.createElement("button",{type:"button","aria-label":w.previousMonth,onClick:function(){return M(-1)},tabIndex:-1,className:Rr()(A,P&&"".concat(A,"-disabled")),disabled:P,style:E?QN:{}},d),n.createElement("div",{className:"".concat(O,"-view")},l),t&&n.createElement("button",{type:"button","aria-label":w.nextMonth,onClick:function(){return M(1)},tabIndex:-1,className:Rr()(R,_&&"".concat(R,"-disabled")),disabled:_,style:j?QN:{}},p),r&&n.createElement("button",{type:"button","aria-label":w.nextYear,onClick:function(){return T(1)},tabIndex:-1,className:Rr()(L,I&&"".concat(L,"-disabled")),disabled:I,style:j?QN:{}},g))};function JN(e){var t=e.prefixCls,r=e.panelName,o=void 0===r?"date":r,i=e.locale,a=e.generateConfig,l=e.pickerValue,c=e.onPickerValueChange,s=e.onModeChange,u=e.mode,d=void 0===u?"date":u,f=e.disabledDate,p=e.onSelect,h=e.onHover,m=e.showWeek,v="".concat(t,"-").concat(o,"-panel"),g="".concat(t,"-cell"),b="week"===d,y=_(GN(e,d),2),x=y[0],w=y[1],S=a.locale.getWeekFirstDay(i.locale),C=a.setDate(l,1),O=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(i.locale,a,C),k=a.getMonth(l),j=(void 0===m?b:m)?function(e){var t=null==f?void 0:f(e,{type:"week"});return n.createElement("td",{key:"week",className:Rr()(g,"".concat(g,"-week"),E({},"".concat(g,"-disabled"),t)),onClick:function(){t||p(e)},onMouseEnter:function(){t||null==h||h(e)},onMouseLeave:function(){t||null==h||h(null)}},n.createElement("div",{className:"".concat(g,"-inner")},a.locale.getWeek(i.locale,e)))}:null,$=[],P=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);j&&$.push(n.createElement("th",{key:"empty"},n.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},i.week)));for(var N=0;N<7;N+=1)$.push(n.createElement("th",{key:N},P[(N+S)%7]));var I=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),M=n.createElement("button",{type:"button","aria-label":i.yearSelect,key:"year",onClick:function(){s("year",l)},tabIndex:-1,className:"".concat(t,"-year-btn")},SN(l,{locale:i,format:i.yearFormat,generateConfig:a})),T=n.createElement("button",{type:"button","aria-label":i.monthSelect,key:"month",onClick:function(){s("month",l)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?SN(l,{locale:i,format:i.monthFormat,generateConfig:a}):I[k]),A=i.monthBeforeYear?[T,M]:[M,T];return n.createElement(UN.Provider,{value:x},n.createElement("div",{className:Rr()(v,m&&"".concat(v,"-show-week"))},n.createElement(ZN,{offset:function(e){return a.addMonth(l,e)},superOffset:function(e){return a.addYear(l,e)},onChange:c,getStart:function(e){return a.setDate(e,1)},getEnd:function(e){var t=a.setDate(e,1);return t=a.addMonth(t,1),a.addDate(t,-1)}},A),n.createElement(XN,Ve({titleFormat:i.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:O,headerCells:$,getCellDate:function(e,t){return a.addDate(e,t)},getCellText:function(e){return SN(e,{locale:i,format:i.cellDateFormat,generateConfig:a})},getCellClassName:function(e){return E(E({},"".concat(t,"-cell-in-view"),hN(a,e,l)),"".concat(t,"-cell-today"),mN(a,e,w))},prefixColumn:j,cellSelection:!b}))))}var e_=1/3;function t_(e){return e.map(function(e){return[e.value,e.label,e.disabled].join(",")}).join(";")}function n_(e){var t=e.units,r=e.value,o=e.optionalValue,i=e.type,a=e.onChange,l=e.onHover,c=e.onDblClick,s=e.changeOnScroll,u=VN(),d=u.prefixCls,f=u.cellRender,p=u.now,h=u.locale,m="".concat(d,"-time-panel"),v="".concat(d,"-time-panel-cell"),g=n.useRef(null),b=n.useRef(),y=function(){clearTimeout(b.current)},x=function(e,t){var r=n.useRef(!1),o=n.useRef(null),i=n.useRef(null),a=function(){Ko.cancel(o.current),r.current=!1},l=n.useRef();return[fo(function(){var n=e.current;if(i.current=null,l.current=0,n){var c=n.querySelector('[data-value="'.concat(t,'"]')),s=n.querySelector("li");c&&s&&function e(){a(),r.current=!0,l.current+=1;var t=n.scrollTop,u=s.offsetTop,d=c.offsetTop,f=d-u;if(0===d&&c!==s||!Cc(n))l.current<=5&&(o.current=Ko(e));else{var p=t+(f-t)*e_,h=Math.abs(f-p);if(null!==i.current&&i.current<h)a();else{if(i.current=h,h<=1)return n.scrollTop=f,void a();n.scrollTop=p,o.current=Ko(e)}}}()}}),a,function(){return r.current}]}(g,null!=r?r:o),w=_(x,3),S=w[0],C=w[1],O=w[2];Re(function(){return S(),y(),function(){C(),y()}},[r,o,t_(t)]);var k="".concat(m,"-column");return n.createElement("ul",{className:k,ref:g,"data-type":i,onScroll:function(e){y();var n=e.target;!O()&&s&&(b.current=setTimeout(function(){var e=g.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map(function(e){return e.offsetTop-r}).map(function(e,r){return t[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)}),i=Math.min.apply(Math,M(o)),l=o.findIndex(function(e){return e===i}),c=t[l];c&&!c.disabled&&a(c.value)},300))}},t.map(function(e){var t=e.label,o=e.value,s=e.disabled,u=n.createElement("div",{className:"".concat(v,"-inner")},t);return n.createElement("li",{key:o,className:Rr()(v,E(E({},"".concat(v,"-selected"),r===o),"".concat(v,"-disabled"),s)),onClick:function(){s||a(o)},onDoubleClick:function(){!s&&c&&c()},onMouseEnter:function(){l(o)},onMouseLeave:function(){l(null)},"data-value":o},f?f(o,{prefixCls:d,originNode:u,today:p,type:"time",subType:i,locale:h}):u)}))}function r_(e){return e<12}function o_(e){var t=e.showHour,r=e.showMinute,o=e.showSecond,i=e.showMillisecond,a=e.use12Hours,l=e.changeOnScroll,c=VN(),s=c.prefixCls,u=c.values,d=c.generateConfig,f=c.locale,p=c.onSelect,h=c.onHover,m=void 0===h?function(){}:h,v=c.pickerValue,g=(null==u?void 0:u[0])||null,b=n.useContext(YN).onCellDblClick,y=_(FN(d,e,g),5),x=y[0],w=y[1],S=y[2],C=y[3],O=y[4],k=function(e){return[g&&d[e](g),v&&d[e](v)]},E=_(k("getHour"),2),j=E[0],$=E[1],P=_(k("getMinute"),2),N=P[0],I=P[1],M=_(k("getSecond"),2),T=M[0],A=M[1],R=_(k("getMillisecond"),2),D=R[0],L=R[1],q=null===j?null:r_(j)?"am":"pm",z=n.useMemo(function(){return a?r_(j)?w.filter(function(e){return r_(e.value)}):w.filter(function(e){return!r_(e.value)}):w},[j,w,a]),B=function(e,t){var n,r=e.filter(function(e){return!e.disabled});return null!=t?t:null==r||null===(n=r[0])||void 0===n?void 0:n.value},H=B(w,j),F=n.useMemo(function(){return S(H)},[S,H]),W=B(F,N),K=n.useMemo(function(){return C(H,W)},[C,H,W]),U=B(K,T),V=n.useMemo(function(){return O(H,W,U)},[O,H,W,U]),G=B(V,D),Y=n.useMemo(function(){if(!a)return[];var e=d.getNow(),t=d.setHour(e,6),n=d.setHour(e,18),r=function(e,t){var n=f.cellMeridiemFormat;return n?SN(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:w.every(function(e){return e.disabled||!r_(e.value)})},{label:r(n,"PM"),value:"pm",disabled:w.every(function(e){return e.disabled||r_(e.value)})}]},[w,a,d,f]),X=function(e){var t=x(e);p(t)},Q=n.useMemo(function(){var e=g||v||d.getNow(),t=function(e){return null!=e};return t(j)?(e=d.setHour(e,j),e=d.setMinute(e,N),e=d.setSecond(e,T),e=d.setMillisecond(e,D)):t($)?(e=d.setHour(e,$),e=d.setMinute(e,I),e=d.setSecond(e,A),e=d.setMillisecond(e,L)):t(H)&&(e=d.setHour(e,H),e=d.setMinute(e,W),e=d.setSecond(e,U),e=d.setMillisecond(e,G)),e},[g,v,j,N,T,D,H,W,U,G,$,I,A,L,d]),Z=function(e,t){return null===e?null:d[t](Q,e)},J=function(e){return Z(e,"setHour")},ee=function(e){return Z(e,"setMinute")},te=function(e){return Z(e,"setSecond")},ne=function(e){return Z(e,"setMillisecond")},re=function(e){return null===e?null:"am"!==e||r_(j)?"pm"===e&&r_(j)?d.setHour(Q,j+12):Q:d.setHour(Q,j-12)},oe={onDblClick:b,changeOnScroll:l};return n.createElement("div",{className:"".concat(s,"-content")},t&&n.createElement(n_,Ve({units:z,value:j,optionalValue:$,type:"hour",onChange:function(e){X(J(e))},onHover:function(e){m(J(e))}},oe)),r&&n.createElement(n_,Ve({units:F,value:N,optionalValue:I,type:"minute",onChange:function(e){X(ee(e))},onHover:function(e){m(ee(e))}},oe)),o&&n.createElement(n_,Ve({units:K,value:T,optionalValue:A,type:"second",onChange:function(e){X(te(e))},onHover:function(e){m(te(e))}},oe)),i&&n.createElement(n_,Ve({units:V,value:D,optionalValue:L,type:"millisecond",onChange:function(e){X(ne(e))},onHover:function(e){m(ne(e))}},oe)),a&&n.createElement(n_,Ve({units:Y,value:q,type:"meridiem",onChange:function(e){X(re(e))},onHover:function(e){m(re(e))}},oe)))}function i_(e){var t=e.prefixCls,r=e.value,o=e.locale,i=e.generateConfig,a=e.showTime,l=(a||{}).format,c="".concat(t,"-time-panel"),s=_(GN(e,"time"),1)[0];return n.createElement(UN.Provider,{value:s},n.createElement("div",{className:Rr()(c)},n.createElement(ZN,null,r?SN(r,{locale:o,format:l,generateConfig:i}):" "),n.createElement(o_,a)))}var a_={date:JN,datetime:function(e){var t=e.prefixCls,r=e.generateConfig,o=e.showTime,i=e.onSelect,a=e.value,l=e.pickerValue,c=e.onHover,s="".concat(t,"-datetime-panel"),u=_(FN(r,o),1)[0],d=function(e){return CN(r,e,a||l)};return n.createElement("div",{className:s},n.createElement(JN,Ve({},e,{onSelect:function(e){var t=d(e);i(u(t,t))},onHover:function(e){null==c||c(e?d(e):e)}})),n.createElement(i_,e))},week:function(e){var t=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.value,a=e.hoverValue,l=e.hoverRangeValue,c=o.locale,s="".concat(t,"-week-panel-row");return n.createElement(JN,Ve({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(l){var n=_(l,2),o=n[0],u=n[1],d=bN(r,c,o,e),f=bN(r,c,u,e);t["".concat(s,"-range-start")]=d,t["".concat(s,"-range-end")]=f,t["".concat(s,"-range-hover")]=!d&&!f&&xN(r,o,u,e)}return a&&(t["".concat(s,"-hover")]=a.some(function(t){return bN(r,c,e,t)})),Rr()(s,E({},"".concat(s,"-selected"),!l&&bN(r,c,i,e)),t)}}))},month:function(e){var t=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c=e.onModeChange,s="".concat(t,"-month-panel"),u=_(GN(e,"month"),1)[0],d=o.setMonth(i,0),f=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),p=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,o.getMonth(n)+1),i=o.addDate(r,-1);return a(n,t)&&a(i,t)}:null,h=n.createElement("button",{type:"button",key:"year","aria-label":r.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},SN(i,{locale:r,format:r.yearFormat,generateConfig:o}));return n.createElement(UN.Provider,{value:u},n.createElement("div",{className:s},n.createElement(ZN,{superOffset:function(e){return o.addYear(i,e)},onChange:l,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},h),n.createElement(XN,Ve({},e,{disabledDate:p,titleFormat:r.fieldMonthFormat,colNum:3,rowNum:4,baseDate:d,getCellDate:function(e,t){return o.addMonth(e,t)},getCellText:function(e){var t=o.getMonth(e);return r.monthFormat?SN(e,{locale:r,format:r.monthFormat,generateConfig:o}):f[t]},getCellClassName:function(){return E({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,l=e.onModeChange,c="".concat(t,"-quarter-panel"),s=_(GN(e,"quarter"),1)[0],u=o.setMonth(i,0),d=n.createElement("button",{type:"button",key:"year","aria-label":r.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},SN(i,{locale:r,format:r.yearFormat,generateConfig:o}));return n.createElement(UN.Provider,{value:s},n.createElement("div",{className:c},n.createElement(ZN,{superOffset:function(e){return o.addYear(i,e)},onChange:a,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},d),n.createElement(XN,Ve({},e,{titleFormat:r.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:function(e,t){return o.addMonth(e,3*t)},getCellText:function(e){return SN(e,{locale:r,format:r.cellQuarterFormat,generateConfig:o})},getCellClassName:function(){return E({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c=e.onModeChange,s="".concat(t,"-year-panel"),u=_(GN(e,"year"),1)[0],d=function(e){var t=10*Math.floor(o.getYear(e)/10);return o.setYear(e,t)},f=function(e){var t=d(e);return o.addYear(t,9)},p=d(i),h=f(i),m=o.addYear(p,-1),v=a?function(e,t){var n=o.setMonth(e,0),r=o.setDate(n,1),i=o.addYear(r,1),l=o.addDate(i,-1);return a(r,t)&&a(l,t)}:null,g=n.createElement("button",{type:"button",key:"decade","aria-label":r.decadeSelect,onClick:function(){c("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},SN(p,{locale:r,format:r.yearFormat,generateConfig:o}),"-",SN(h,{locale:r,format:r.yearFormat,generateConfig:o}));return n.createElement(UN.Provider,{value:u},n.createElement("div",{className:s},n.createElement(ZN,{superOffset:function(e){return o.addYear(i,10*e)},onChange:l,getStart:d,getEnd:f},g),n.createElement(XN,Ve({},e,{disabledDate:v,titleFormat:r.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:function(e,t){return o.addYear(e,t)},getCellText:function(e){return SN(e,{locale:r,format:r.cellYearFormat,generateConfig:o})},getCellClassName:function(e){return E({},"".concat(t,"-cell-in-view"),fN(o,e,p)||fN(o,e,h)||xN(o,p,h,e))}}))))},decade:function(e){var t=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c="".concat(t,"-decade-panel"),s=_(GN(e,"decade"),1)[0],u=function(e){var t=100*Math.floor(o.getYear(e)/100);return o.setYear(e,t)},d=function(e){var t=u(e);return o.addYear(t,99)},f=u(i),p=d(i),h=o.addYear(f,-10),m=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,0),i=o.setYear(r,10*Math.floor(o.getYear(r)/10)),l=o.addYear(i,10),c=o.addDate(l,-1);return a(i,t)&&a(c,t)}:null,v="".concat(SN(f,{locale:r,format:r.yearFormat,generateConfig:o}),"-").concat(SN(p,{locale:r,format:r.yearFormat,generateConfig:o}));return n.createElement(UN.Provider,{value:s},n.createElement("div",{className:c},n.createElement(ZN,{superOffset:function(e){return o.addYear(i,100*e)},onChange:l,getStart:u,getEnd:d},v),n.createElement(XN,Ve({},e,{disabledDate:m,colNum:3,rowNum:4,baseDate:h,getCellDate:function(e,t){return o.addYear(e,10*t)},getCellText:function(e){var t=r.cellYearFormat,n=SN(e,{locale:r,format:t,generateConfig:o}),i=SN(o.addYear(e,9),{locale:r,format:t,generateConfig:o});return"".concat(n,"-").concat(i)},getCellClassName:function(e){return E({},"".concat(t,"-cell-in-view"),dN(o,e,f)||dN(o,e,p)||xN(o,f,p,e))}}))))},time:i_};function l_(e,t){var r,o=e.locale,i=e.generateConfig,a=e.direction,l=e.prefixCls,c=e.tabIndex,s=void 0===c?0:c,u=e.multiple,d=e.defaultValue,f=e.value,p=e.onChange,h=e.onSelect,m=e.defaultPickerValue,v=e.pickerValue,g=e.onPickerValueChange,b=e.mode,y=e.onPanelChange,x=e.picker,w=void 0===x?"date":x,S=e.showTime,C=e.hoverValue,O=e.hoverRangeValue,k=e.cellRender,j=e.dateRender,$=e.monthCellRender,P=e.components,N=void 0===P?{}:P,I=e.hideHeader,T=(null===(r=n.useContext(HP))||void 0===r?void 0:r.prefixCls)||l||"rc-picker",R=n.useRef();n.useImperativeHandle(t,function(){return{nativeElement:R.current}});var D=_(lN(e),4),L=D[0],q=D[1],z=D[2],B=D[3],H=tN(o,q),F="date"===w&&S?"datetime":w,W=n.useMemo(function(){return cN(F,z,B,L,H)},[F,z,B,L,H]),K=i.getNow(),U=_(mo(w,{value:b,postState:function(e){return e||"date"}}),2),V=U[0],G=U[1],Y="date"===V&&W?"datetime":V,X=KN(i,o,F),Q=_(mo(d,{value:f}),2),Z=Q[0],J=Q[1],ee=n.useMemo(function(){var e=UP(Z).filter(function(e){return e});return u?e:e.slice(0,1)},[Z,u]),te=fo(function(e){J(e),p&&(null===e||ee.length!==e.length||ee.some(function(t,n){return!yN(i,o,t,e[n],F)}))&&(null==p||p(u?e:e[0]))}),ne=fo(function(e){if(null==h||h(e),V===w){var t=u?X(ee,e):[e];te(t)}}),re=_(mo(m||ee[0]||K,{value:v}),2),oe=re[0],ie=re[1];n.useEffect(function(){ee[0]&&!v&&ie(ee[0])},[ee[0]]);var ae=function(e,t){null==y||y(e||v,t||V)},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ie(e),null==g||g(e),t&&ae(e)},ce=function(e,t){G(e),t&&le(t),ae(t,e)},se=n.useMemo(function(){var e,t;if(Array.isArray(O)){var n=_(O,2);e=n[0],t=n[1]}else e=O;return e||t?(e=e||t,t=t||e,i.isAfter(e,t)?[t,e]:[e,t]):null},[O,i]),ue=ZP(k,j,$),de=N[Y]||a_[Y]||JN,fe=n.useContext(YN),pe=n.useMemo(function(){return A(A({},fe),{},{hideHeader:I})},[fe,I]);var he="".concat(T,"-panel"),me=GP(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return n.createElement(YN.Provider,{value:pe},n.createElement("div",{ref:R,tabIndex:s,className:Rr()(he,E({},"".concat(he,"-rtl"),"rtl"===a))},n.createElement(de,Ve({},me,{showTime:W,prefixCls:T,locale:H,generateConfig:i,onModeChange:ce,pickerValue:oe,onPickerValueChange:function(e){le(e,!0)},value:ee[0],onSelect:function(e){if(ne(e),le(e),V!==w){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(M(n),["week"]),date:[].concat(M(n),["date"])}[w]||n,o=r.indexOf(V),i=r[o+1];i&&ce(i,e)}},values:ee,cellRender:ue,hoverRangeValue:se,hoverValue:C}))))}const c_=n.memo(n.forwardRef(l_));function s_(e){var t=e.picker,r=e.multiplePanel,o=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,l=e.onSubmit,c=e.range,s=e.hoverValue,u=n.useContext(HP),d=u.prefixCls,f=u.generateConfig,p=n.useCallback(function(e,n){return _N(f,t,e,n)},[f,t]),h=n.useMemo(function(){return p(o,1)},[o,p]),m={onCellDblClick:function(){a&&l()}},v="time"===t,g=A(A({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return c?g.hoverRangeValue=s:g.hoverValue=s,r?n.createElement("div",{className:"".concat(d,"-panels")},n.createElement(YN.Provider,{value:A(A({},m),{},{hideNext:!0})},n.createElement(c_,g)),n.createElement(YN.Provider,{value:A(A({},m),{},{hidePrev:!0})},n.createElement(c_,Ve({},g,{pickerValue:h,onPickerValueChange:function(e){i(p(e,-1))}})))):n.createElement(YN.Provider,{value:A({},m)},n.createElement(c_,g))}function u_(e){return"function"==typeof e?e():e}function d_(e){var t=e.prefixCls,r=e.presets,o=e.onClick,i=e.onHover;return r.length?n.createElement("div",{className:"".concat(t,"-presets")},n.createElement("ul",null,r.map(function(e,t){var r=e.label,a=e.value;return n.createElement("li",{key:t,onClick:function(){o(u_(a))},onMouseEnter:function(){i(u_(a))},onMouseLeave:function(){i(null)}},r)}))):null}function f_(e){var t=e.panelRender,r=e.internalMode,o=e.picker,i=e.showNow,a=e.range,l=e.multiple,c=e.activeInfo,s=void 0===c?[0,0,0]:c,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,p=e.onFocus,h=e.onBlur,m=e.onPanelMouseDown,v=e.direction,g=e.value,b=e.onSelect,y=e.isInvalid,x=e.defaultOpenValue,w=e.onOk,S=e.onSubmit,C=n.useContext(HP).prefixCls,O="".concat(C,"-panel"),k="rtl"===v,j=n.useRef(null),$=n.useRef(null),P=_(n.useState(0),2),N=P[0],I=P[1],M=_(n.useState(0),2),T=M[0],A=M[1],R=_(n.useState(0),2),D=R[0],L=R[1],q=_(s,3),z=q[0],B=q[1],H=q[2],F=_(n.useState(0),2),W=F[0],K=F[1];function U(e){return e.filter(function(e){return e})}n.useEffect(function(){K(10)},[z]),n.useEffect(function(){if(a&&$.current){var e,t=(null===(e=j.current)||void 0===e?void 0:e.offsetWidth)||0,n=$.current.getBoundingClientRect();if(!n.height||n.right<0)return void K(function(e){return Math.max(0,e-1)});var r=(k?B-t:z)-n.left;if(L(r),N&&N<H){var o=k?n.right-(B-t+N):z+t-n.left-N,i=Math.max(0,o);A(i)}else A(0)}},[W,k,N,z,B,H,a]);var V=n.useMemo(function(){return U(UP(g))},[g]),G="time"===o&&!V.length,Y=n.useMemo(function(){return G?U([x]):V},[G,V,x]),X=G?x:V,Q=n.useMemo(function(){return!Y.length||Y.some(function(e){return y(e)})},[Y,y]),Z=n.createElement("div",{className:"".concat(C,"-panel-layout")},n.createElement(d_,{prefixCls:C,presets:u,onClick:f,onHover:d}),n.createElement("div",null,n.createElement(s_,Ve({},e,{value:X})),n.createElement(WN,Ve({},e,{showNow:!l&&i,invalid:Q,onSubmit:function(){G&&b(x),w(),S()}}))));t&&(Z=t(Z));var J="".concat(O,"-container"),ee="marginLeft",te="marginRight",ne=n.createElement("div",{onMouseDown:m,tabIndex:-1,className:Rr()(J,"".concat(C,"-").concat(r,"-panel-container")),style:E(E({},k?te:ee,T),k?ee:te,"auto"),onFocus:p,onBlur:h},Z);return a&&(ne=n.createElement("div",{onMouseDown:m,ref:$,className:Rr()("".concat(C,"-range-wrapper"),"".concat(C,"-").concat(o,"-range-wrapper"))},n.createElement("div",{ref:j,className:"".concat(C,"-range-arrow"),style:{left:D}}),n.createElement(sf,{onResize:function(e){e.width&&I(e.width)}},ne))),ne}function p_(e,t){var r=e.format,o=e.maskFormat,i=e.generateConfig,a=e.locale,l=e.preserveInvalidOnBlur,c=e.inputReadOnly,s=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,h=e.onInputChange,m=e.onInvalid,v=e.open,g=e.onOpenChange,b=e.onKeyDown,y=e.onChange,x=e.activeHelp,w=e.name,S=e.autoComplete,C=e.id,O=e.value,k=e.invalid,E=e.placeholder,j=e.disabled,$=e.activeIndex,P=e.allHelp,N=e.picker,_=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},I=r[0],M=n.useCallback(function(e){return SN(e,{locale:a,format:I,generateConfig:i})},[a,i,I]),T=n.useMemo(function(){return O.map(M)},[O,M]),R=n.useMemo(function(){var e="time"===N?8:10,t="function"==typeof I?I(i.getNow()).length:I.length;return Math.max(e,t)+2},[I,N,i]),D=function(e){for(var t=0;t<r.length;t+=1){var n=r[t];if("string"==typeof n){var o=_(e,n);if(o)return o}}return!1};return[function(n){function r(e){return void 0!==n?e[n]:e}var i=A(A({},Xa(e,{aria:!0,data:!0})),{},{format:o,validateFormat:function(e){return!!D(e)},preserveInvalidOnBlur:l,readOnly:c,required:s,"aria-required":u,name:w,autoComplete:S,size:R,id:r(C),value:r(T)||"",invalid:r(k),placeholder:r(E),active:$===n,helped:P||x&&$===n,disabled:r(j),onFocus:function(e){f(e,n)},onBlur:function(e){p(e,n)},onSubmit:d,onChange:function(e){h();var t=D(e);if(t)return m(!1,n),void y(t,n);m(!!e,n)},onHelp:function(){g(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null==b||b(e,function(){t=!0}),!e.defaultPrevented&&!t)switch(e.key){case"Escape":g(!1,{index:n});break;case"Enter":v||g(!0)}}},null==t?void 0:t({valueTexts:T}));return Object.keys(i).forEach(function(e){void 0===i[e]&&delete i[e]}),i},M]}var h_=["onMouseEnter","onMouseLeave"];function m_(e){return n.useMemo(function(){return GP(e,h_)},[e])}var v_=["icon","type"],g_=["onClear"];function b_(e){var t=e.icon,r=e.type,o=eo(e,v_),i=n.useContext(HP).prefixCls;return t?n.createElement("span",Ve({className:"".concat(i,"-").concat(r)},o),t):null}function y_(e){var t=e.onClear,r=eo(e,g_);return n.createElement(b_,Ve({},r,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}var x_=["YYYY","MM","DD","HH","mm","ss","SSS"],w_=function(){function e(t){oe(this,e),E(this,"format",void 0),E(this,"maskFormat",void 0),E(this,"cells",void 0),E(this,"maskCells",void 0),this.format=t;var n=x_.map(function(e){return"(".concat(e,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(e){return"顧".repeat(e.length)});var o=new RegExp("(".concat(x_.join("|"),")")),i=(t.split(o)||[]).filter(function(e){return e}),a=0;this.cells=i.map(function(e){var t=x_.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(function(e){return e.mask})}return ae(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],i=o.start,a=o.end;if(e>=i&&e<=a)return r;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l<t&&(t=l,n=r)}return n}}]),e}();var S_=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],C_=n.forwardRef(function(e,t){var r=e.active,o=e.showActiveCls,i=void 0===o||o,a=e.suffixIcon,l=e.format,c=e.validateFormat,s=e.onChange,u=(e.onInput,e.helped),d=e.onHelp,f=e.onSubmit,p=e.onKeyDown,h=e.preserveInvalidOnBlur,m=void 0!==h&&h,v=e.invalid,g=e.clearIcon,b=eo(e,S_),y=e.value,x=e.onFocus,w=e.onBlur,S=e.onMouseUp,C=n.useContext(HP),O=C.prefixCls,k=C.input,j=void 0===k?"input":k,$="".concat(O,"-input"),P=_(n.useState(!1),2),N=P[0],I=P[1],M=_(n.useState(y),2),T=M[0],A=M[1],R=_(n.useState(""),2),D=R[0],L=R[1],q=_(n.useState(null),2),z=q[0],B=q[1],H=_(n.useState(null),2),F=H[0],W=H[1],K=T||"";n.useEffect(function(){A(y)},[y]);var U=n.useRef(),V=n.useRef();n.useImperativeHandle(t,function(){return{nativeElement:U.current,inputElement:V.current,focus:function(e){V.current.focus(e)},blur:function(){V.current.blur()}}});var G=n.useMemo(function(){return new w_(l||"")},[l]),Y=_(n.useMemo(function(){return u?[0,0]:G.getSelection(z)},[G,z,u]),2),X=Y[0],Q=Y[1],Z=function(e){e&&e!==l&&e!==y&&d()},J=fo(function(e){c(e)&&s(e),A(e),Z(e)}),ee=n.useRef(!1),te=function(e){w(e)};PN(r,function(){r||m||A(y)});var ne=function(e){"Enter"===e.key&&c(K)&&f(),null==p||p(e)},re=n.useRef();Re(function(){if(N&&l&&!ee.current){if(G.match(K))return V.current.setSelectionRange(X,Q),re.current=Ko(function(){V.current.setSelectionRange(X,Q)}),function(){Ko.cancel(re.current)};J(l)}},[G,l,N,K,z,X,Q,F,J]);var oe=l?{onFocus:function(e){I(!0),B(0),L(""),x(e)},onBlur:function(e){I(!1),te(e)},onKeyDown:function(e){ne(e);var t=e.key,n=null,r=null,o=Q-X,i=l.slice(X,Q),a=function(e){B(function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,G.size()-1)})},c=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=_(t,3),r=n[0],o=n[1],a=n[2],l=K.slice(X,Q),c=Number(l);if(isNaN(c))return String(a||(e>0?r:o));var s=o-r+1;return String(r+(s+(c+e)-r)%s)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",r=c(1);break;case"ArrowDown":n="",r=c(-1);break;default:isNaN(Number(t))||(r=n=D+t)}if(null!==n&&(L(n),n.length>=o&&(a(1),L(""))),null!==r){var s=K.slice(0,X)+KP(r,o)+K.slice(Q);J(s.slice(0,l.length))}W({})},onMouseDown:function(){ee.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=G.getMaskCellIndex(t);B(n),W({}),null==S||S(e),ee.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");c(t)&&J(t)}}:{};return n.createElement("div",{ref:U,className:Rr()($,E(E({},"".concat($,"-active"),r&&i),"".concat($,"-placeholder"),u))},n.createElement(j,Ve({ref:V,"aria-invalid":v,autoComplete:"off"},b,{onKeyDown:ne,onBlur:te},oe,{value:K,onChange:function(e){if(!l){var t=e.target.value;Z(t),A(t),s(t)}}})),n.createElement(b_,{type:"suffix",icon:a}),g)});const O_=C_;var k_=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],E_=["index"];function j_(e,t){var r=e.id,o=e.prefix,i=e.clearIcon,a=e.suffixIcon,l=e.separator,c=void 0===l?"~":l,s=e.activeIndex,u=(e.activeHelp,e.allHelp,e.focused),d=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),f=e.className,p=e.style,h=e.onClick,m=e.onClear,v=e.value,g=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),b=e.invalid,y=(e.inputReadOnly,e.direction),x=(e.onOpenChange,e.onActiveInfo),w=(e.placement,e.onMouseDown),S=(e.required,e["aria-required"],e.autoFocus),C=e.tabIndex,k=eo(e,k_),j="rtl"===y,$=n.useContext(HP).prefixCls,P=n.useMemo(function(){if("string"==typeof r)return[r];var e=r||{};return[e.start,e.end]},[r]),N=n.useRef(),I=n.useRef(),M=n.useRef(),T=function(e){var t;return null===(t=[I,M][e])||void 0===t?void 0:t.current};n.useImperativeHandle(t,function(){return{nativeElement:N.current,focus:function(e){if("object"===O(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=eo(n,E_);null===(t=T(o))||void 0===t||t.focus(i)}else{var a;null===(a=T(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=T(0))||void 0===e||e.blur(),null===(t=T(1))||void 0===t||t.blur()}}});var R=m_(k),D=n.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),L=_(p_(A(A({},e),{},{id:P,placeholder:D})),1)[0],q=_(n.useState({position:"absolute",width:0}),2),z=q[0],B=q[1],H=fo(function(){var e=T(s);if(e){var t=e.nativeElement.getBoundingClientRect(),n=N.current.getBoundingClientRect(),r=t.left-n.left;B(function(e){return A(A({},e),{},{width:t.width,left:r})}),x([t.left,t.right,n.width])}});n.useEffect(function(){H()},[s]);var F=i&&(v[0]&&!g[0]||v[1]&&!g[1]),W=S&&!g[0],K=S&&!W&&!g[1];return n.createElement(sf,{onResize:H},n.createElement("div",Ve({},R,{className:Rr()($,"".concat($,"-range"),E(E(E(E({},"".concat($,"-focused"),u),"".concat($,"-disabled"),g.every(function(e){return e})),"".concat($,"-invalid"),b.some(function(e){return e})),"".concat($,"-rtl"),j),f),style:p,ref:N,onClick:h,onMouseDown:function(e){var t=e.target;t!==I.current.inputElement&&t!==M.current.inputElement&&e.preventDefault(),null==w||w(e)}}),o&&n.createElement("div",{className:"".concat($,"-prefix")},o),n.createElement(O_,Ve({ref:I},L(0),{autoFocus:W,tabIndex:C,"date-range":"start"})),n.createElement("div",{className:"".concat($,"-range-separator")},c),n.createElement(O_,Ve({ref:M},L(1),{autoFocus:K,tabIndex:C,"date-range":"end"})),n.createElement("div",{className:"".concat($,"-active-bar"),style:z}),n.createElement(b_,{type:"suffix",icon:a}),F&&n.createElement(y_,{icon:i,onClear:m})))}const $_=n.forwardRef(j_);function P_(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function N_(e){return 1===e?"end":"start"}function __(e,t){var r=kN(e,function(){var t=e.disabled,n=e.allowEmpty;return{disabled:P_(t,!1),allowEmpty:P_(n,!1)}}),o=_(r,6),i=o[0],a=o[1],l=o[2],c=o[3],s=o[4],u=o[5],d=i.prefixCls,f=i.styles,p=i.classNames,h=i.defaultValue,m=i.value,v=i.needConfirm,g=i.onKeyDown,b=i.disabled,y=i.allowEmpty,x=i.disabledDate,w=i.minDate,S=i.maxDate,C=i.defaultOpen,O=i.open,k=i.onOpenChange,E=i.locale,j=i.generateConfig,$=i.picker,P=i.showNow,N=i.showToday,I=i.showTime,T=i.mode,R=i.onPanelChange,D=i.onCalendarChange,L=i.onOk,q=i.defaultPickerValue,z=i.pickerValue,B=i.onPickerValueChange,H=i.inputReadOnly,F=i.suffixIcon,W=i.onFocus,K=i.onBlur,U=i.presets,V=i.ranges,G=i.components,Y=i.cellRender,X=i.dateRender,Q=i.monthCellRender,Z=i.onClick,J=jN(t),ee=_(EN(O,C,b,k),2),te=ee[0],ne=ee[1],re=function(e,t){!b.some(function(e){return!e})&&e||ne(e,t)},oe=_(LN(j,E,c,!0,!1,h,m,D,L),5),ie=oe[0],ae=oe[1],le=oe[2],ce=oe[3],se=oe[4],ue=le(),de=_(NN(b,y,te),9),fe=de[0],pe=de[1],he=de[2],me=de[3],ve=de[4],ge=de[5],be=de[6],ye=de[7],xe=de[8],we=function(e,t){pe(!0),null==W||W(e,{range:N_(null!=t?t:me)})},Se=function(e,t){pe(!1),null==K||K(e,{range:N_(null!=t?t:me)})},Ce=n.useMemo(function(){if(!I)return null;var e=I.disabledTime,t=e?function(t){var n=N_(me),r=XP(ue,be,me);return e(t,n,{from:r})}:void 0;return A(A({},I),{},{disabledTime:t})},[I,me,ue,be]),Oe=_(mo([$,$],{value:T}),2),ke=Oe[0],Ee=Oe[1],je=ke[me]||$,$e="date"===je&&Ce?"datetime":je,Pe=$e===$&&"time"!==$e,Ne=zN($,je,P,N,!0),_e=_(qN(i,ie,ae,le,ce,b,c,fe,te,u),2),Ie=_e[0],Me=_e[1],Te=function(e,t,n,r,o,i){var a=n[n.length-1];return function(l,c){var s=_(e,2),u=s[0],d=s[1],f=A(A({},c),{},{from:XP(e,n)});return!(1!==a||!t[0]||!u||yN(r,o,u,l,f.type)||!r.isAfter(u,l))||!(0!==a||!t[1]||!d||yN(r,o,d,l,f.type)||!r.isAfter(l,d))||(null==i?void 0:i(l,f))}}(ue,b,be,j,E,x),Ae=_(JP(ue,u,y),2),De=Ae[0],Le=Ae[1],qe=_(MN(j,E,ue,ke,te,me,a,Pe,q,z,null==Ce?void 0:Ce.defaultOpenValue,B,w,S),2),ze=qe[0],Be=qe[1],He=fo(function(e,t,n){var r=VP(ke,me,t);if(r[0]===ke[0]&&r[1]===ke[1]||Ee(r),R&&!1!==n){var o=M(ue);e&&(o[me]=e),R(o,r)}}),Fe=function(e,t){return VP(ue,t,e)},We=function(e,t){var n=ue;e&&(n=Fe(e,me)),ye(me);var r=ge(n);ce(n),Ie(me,null===r),null===r?re(!1,{force:!0}):t||J.current.focus({index:r})},Ke=_(n.useState(null),2),Ue=Ke[0],Ge=Ke[1],Ye=_(n.useState(null),2),Xe=Ye[0],Qe=Ye[1],Ze=n.useMemo(function(){return Xe||ue},[ue,Xe]);n.useEffect(function(){te||Qe(null)},[te]);var Je=_(n.useState([0,0,0]),2),et=Je[0],tt=Je[1],nt=$N(U,V),rt=ZP(Y,X,Q,N_(me)),ot=ue[me]||null,it=fo(function(e){return u(e,{activeIndex:me})}),at=n.useMemo(function(){var e=Xa(i,!1);return Sc(i,[].concat(M(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))},[i]),lt=n.createElement(f_,Ve({},at,{showNow:Ne,showTime:Ce,range:!0,multiplePanel:Pe,activeInfo:et,disabledDate:Te,onFocus:function(e){re(!0),we(e)},onBlur:Se,onPanelMouseDown:function(){he("panel")},picker:$,mode:je,internalMode:$e,onPanelChange:He,format:s,value:ot,isInvalid:it,onChange:null,onSelect:function(e){var t=VP(ue,me,e);ce(t),v||l||a!==$e||We(e)},pickerValue:ze,defaultOpenValue:UP(null==I?void 0:I.defaultOpenValue)[me],onPickerValueChange:Be,hoverValue:Ze,onHover:function(e){Qe(e?Fe(e,me):null),Ge("cell")},needConfirm:v,onSubmit:We,onOk:se,presets:nt,onPresetHover:function(e){Qe(e),Ge("preset")},onPresetSubmit:function(e){Me(e)&&re(!1,{force:!0})},onNow:function(e){We(e)},cellRender:rt})),ct=n.useMemo(function(){return{prefixCls:d,locale:E,generateConfig:j,button:G.button,input:G.input}},[d,E,j,G.button,G.input]);return Re(function(){te&&void 0!==me&&He(null,$,!1)},[te,me,$]),Re(function(){var e=he();te||"input"!==e||(re(!1),We(null,!0)),te||!l||v||"panel"!==e||(re(!0),We())},[te]),n.createElement(HP.Provider,{value:ct},n.createElement(WP,Ve({},QP(i),{popupElement:lt,popupStyle:f.popup,popupClassName:p.popup,visible:te,onClose:function(){re(!1)},range:!0}),n.createElement($_,Ve({},i,{ref:J,suffixIcon:F,activeIndex:fe||te?me:null,activeHelp:!!Xe,allHelp:!!Xe&&"preset"===Ue,focused:fe,onFocus:function(e,t){var n=be.length,r=be[n-1];n&&r!==t&&v&&!y[r]&&!xe(r)&&ue[r]?J.current.focus({index:r}):(he("input"),re(!0,{inherit:!0}),me!==t&&te&&!v&&l&&We(null,!0),ve(t),we(e,t))},onBlur:function(e,t){if(re(!1),!v&&"input"===he()){var n=ge(ue);Ie(me,null===n)}Se(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&We(null,!0),null==g||g(e,t)},onSubmit:We,value:Ze,maskFormat:s,onChange:function(e,t){var n=Fe(e,t);ce(n)},onInputChange:function(){he("input")},format:c,inputReadOnly:H,disabled:b,open:te,onOpenChange:re,onClick:function(e){var t,n=e.target.getRootNode();if(!J.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=b.findIndex(function(e){return!e});r>=0&&J.current.focus({index:r})}re(!0),null==Z||Z(e)},onClear:function(){Me(null),re(!1,{force:!0})},invalid:De,onInvalid:Le,onActiveInfo:tt}))))}const I_=n.forwardRef(__);function M_(e){var t=e.prefixCls,r=e.value,o=e.onRemove,i=e.removeIcon,a=void 0===i?"×":i,l=e.formatDate,c=e.disabled,s=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function h(e,t){return n.createElement("span",{className:Rr()("".concat(f,"-item")),title:"string"==typeof e?e:null},n.createElement("span",{className:"".concat(f,"-item-content")},e),!c&&t&&n.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(f,"-item-remove")},a))}return n.createElement("div",{className:d},n.createElement(fx,{prefixCls:p,data:r,renderItem:function(e){return h(l(e),function(t){t&&t.stopPropagation(),o(e)})},renderRest:function(e){return h("+ ".concat(e.length," ..."))},itemKey:function(e){return l(e)},maxCount:s}),!r.length&&n.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var T_=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function A_(e,t){e.id;var r=e.open,o=e.prefix,i=e.clearIcon,a=e.suffixIcon,l=(e.activeHelp,e.allHelp,e.focused),c=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),s=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,p=e.onClick,h=e.onClear,m=e.internalPicker,v=e.value,g=e.onChange,b=e.onSubmit,y=(e.onInputChange,e.multiple),x=e.maxTagCount,w=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),S=e.invalid,C=(e.inputReadOnly,e.direction),O=(e.onOpenChange,e.onMouseDown),k=(e.required,e["aria-required"],e.autoFocus),j=e.tabIndex,$=e.removeIcon,P=eo(e,T_),N="rtl"===C,I=n.useContext(HP).prefixCls,M=n.useRef(),T=n.useRef();n.useImperativeHandle(t,function(){return{nativeElement:M.current,focus:function(e){var t;null===(t=T.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=T.current)||void 0===e||e.blur()}}});var R=m_(P),D=p_(A(A({},e),{},{onChange:function(e){g([e])}}),function(e){return{value:e.valueTexts[0]||"",active:l}}),L=_(D,2),q=L[0],z=L[1],B=!(!i||!v.length||w),H=y?n.createElement(n.Fragment,null,n.createElement(M_,{prefixCls:I,value:v,onRemove:function(e){var t=v.filter(function(t){return t&&!yN(s,c,t,e,m)});g(t),r||b()},formatDate:z,maxTagCount:x,disabled:w,removeIcon:$,placeholder:u}),n.createElement("input",{className:"".concat(I,"-multiple-input"),value:v.map(z).join(","),ref:T,readOnly:!0,autoFocus:k,tabIndex:j}),n.createElement(b_,{type:"suffix",icon:a}),B&&n.createElement(y_,{icon:i,onClear:h})):n.createElement(O_,Ve({ref:T},q(),{autoFocus:k,tabIndex:j,suffixIcon:a,clearIcon:B&&n.createElement(y_,{icon:i,onClear:h}),showActiveCls:!1}));return n.createElement("div",Ve({},R,{className:Rr()(I,E(E(E(E(E({},"".concat(I,"-multiple"),y),"".concat(I,"-focused"),l),"".concat(I,"-disabled"),w),"".concat(I,"-invalid"),S),"".concat(I,"-rtl"),N),d),style:f,ref:M,onClick:p,onMouseDown:function(e){var t;e.target!==(null===(t=T.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==O||O(e)}}),o&&n.createElement("div",{className:"".concat(I,"-prefix")},o),H)}const R_=n.forwardRef(A_);function D_(e,t){var r=_(kN(e),6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=o,d=u.prefixCls,f=u.styles,p=u.classNames,h=u.order,m=u.defaultValue,v=u.value,g=u.needConfirm,b=u.onChange,y=u.onKeyDown,x=u.disabled,w=u.disabledDate,S=u.minDate,C=u.maxDate,O=u.defaultOpen,k=u.open,E=u.onOpenChange,j=u.locale,$=u.generateConfig,P=u.picker,N=u.showNow,I=u.showToday,T=u.showTime,R=u.mode,D=u.onPanelChange,L=u.onCalendarChange,q=u.onOk,z=u.multiple,B=u.defaultPickerValue,H=u.pickerValue,F=u.onPickerValueChange,W=u.inputReadOnly,K=u.suffixIcon,U=u.removeIcon,V=u.onFocus,G=u.onBlur,Y=u.presets,X=u.components,Q=u.cellRender,Z=u.dateRender,J=u.monthCellRender,ee=u.onClick,te=jN(t);function ne(e){return null===e?null:z?e:e[0]}var re=KN($,j,i),oe=_(EN(k,O,[x],E),2),ie=oe[0],ae=oe[1],le=_(LN($,j,l,!1,h,m,v,function(e,t,n){if(L){var r=A({},n);delete r.range,L(ne(e),ne(t),r)}},function(e){null==q||q(ne(e))}),5),ce=le[0],se=le[1],ue=le[2],de=le[3],fe=le[4],pe=ue(),he=_(NN([x]),4),me=he[0],ve=he[1],ge=he[2],be=he[3],ye=function(e){ve(!0),null==V||V(e,{})},xe=function(e){ve(!1),null==G||G(e,{})},we=_(mo(P,{value:R}),2),Se=we[0],Ce=we[1],Oe="date"===Se&&T?"datetime":Se,ke=zN(P,Se,N,I),Ee=b&&function(e,t){b(ne(e),ne(t))},je=_(qN(A(A({},o),{},{onChange:Ee}),ce,se,ue,de,[],l,me,ie,s),2)[1],$e=_(JP(pe,s),2),Pe=$e[0],Ne=$e[1],_e=n.useMemo(function(){return Pe.some(function(e){return e})},[Pe]),Ie=_(MN($,j,pe,[Se],ie,be,i,!1,B,H,UP(null==T?void 0:T.defaultOpenValue),function(e,t){if(F){var n=A(A({},t),{},{mode:t.mode[0]});delete n.range,F(e[0],n)}},S,C),2),Me=Ie[0],Te=Ie[1],Ae=fo(function(e,t,n){if(Ce(t),D&&!1!==n){var r=e||pe[pe.length-1];D(r,t)}}),De=function(){je(ue()),ae(!1,{force:!0})},Le=_(n.useState(null),2),qe=Le[0],ze=Le[1],Be=_(n.useState(null),2),He=Be[0],Fe=Be[1],We=n.useMemo(function(){var e=[He].concat(M(pe)).filter(function(e){return e});return z?e:e.slice(0,1)},[pe,He,z]),Ke=n.useMemo(function(){return!z&&He?[He]:pe.filter(function(e){return e})},[pe,He,z]);n.useEffect(function(){ie||Fe(null)},[ie]);var Ue=$N(Y),Ge=function(e){var t=z?re(ue(),e):[e];je(t)&&!z&&ae(!1,{force:!0})},Ye=ZP(Q,Z,J),Xe=n.useMemo(function(){var e=Xa(o,!1);return A(A({},Sc(o,[].concat(M(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:o.multiple})},[o]),Qe=n.createElement(f_,Ve({},Xe,{showNow:ke,showTime:T,disabledDate:w,onFocus:function(e){ae(!0),ye(e)},onBlur:xe,picker:P,mode:Se,internalMode:Oe,onPanelChange:Ae,format:c,value:pe,isInvalid:s,onChange:null,onSelect:function(e){if(ge("panel"),!z||Oe===P){var t=z?re(ue(),e):[e];de(t),g||a||i!==Oe||De()}},pickerValue:Me,defaultOpenValue:null==T?void 0:T.defaultOpenValue,onPickerValueChange:Te,hoverValue:We,onHover:function(e){Fe(e),ze("cell")},needConfirm:g,onSubmit:De,onOk:fe,presets:Ue,onPresetHover:function(e){Fe(e),ze("preset")},onPresetSubmit:Ge,onNow:function(e){Ge(e)},cellRender:Ye})),Ze=n.useMemo(function(){return{prefixCls:d,locale:j,generateConfig:$,button:X.button,input:X.input}},[d,j,$,X.button,X.input]);return Re(function(){ie&&void 0!==be&&Ae(null,P,!1)},[ie,be,P]),Re(function(){var e=ge();ie||"input"!==e||(ae(!1),De()),ie||!a||g||"panel"!==e||De()},[ie]),n.createElement(HP.Provider,{value:Ze},n.createElement(WP,Ve({},QP(o),{popupElement:Qe,popupStyle:f.popup,popupClassName:p.popup,visible:ie,onClose:function(){ae(!1)}}),n.createElement(R_,Ve({},o,{ref:te,suffixIcon:K,removeIcon:U,activeHelp:!!He,allHelp:!!He&&"preset"===qe,focused:me,onFocus:function(e){ge("input"),ae(!0,{inherit:!0}),ye(e)},onBlur:function(e){ae(!1),xe(e)},onKeyDown:function(e,t){"Tab"===e.key&&De(),null==y||y(e,t)},onSubmit:De,value:Ke,maskFormat:c,onChange:function(e){de(e)},onInputChange:function(){ge("input")},internalPicker:i,format:l,inputReadOnly:W,disabled:x,open:ie,onOpenChange:ae,onClick:function(e){x||te.current.nativeElement.contains(document.activeElement)||te.current.focus(),ae(!0),null==ee||ee(e)},onClear:function(){je(null),ae(!1,{force:!0})},invalid:_e,onInvalid:function(e){Ne(e,0)}}))))}const L_=n.forwardRef(D_),q_=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=cS(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:$e(i.itemLineHeight)}}}]},z_=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=$l(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=$l(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[q_(o,"small"),q_(e),q_(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},sS(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},B_=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:$e(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${$e(l)} ${c} ${s}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:f,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},H_=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:h,colorTextHeading:m,colorSplit:v,pickerControlIconBorderWidth:g,colorIcon:b,textHeight:y,motionDurationMid:x,colorIconHover:w,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:O,colorTextDisabled:k,colorText:E,fontSize:j,motionDurationSlow:$,withoutTimeCellHeight:P,pickerQuarterPanelContentHeight:N,borderRadiusSM:_,colorTextLightSolid:I,cellHoverBg:M,timeColumnHeight:T,timeColumnWidth:A,timeCellHeight:R,controlItemBgActive:D,marginXXS:L,pickerDatePanelPaddingHorizontal:q,pickerControlIconMargin:z}=e,B=e.calc(a).mul(7).add(e.calc(q).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:B},"&-header":{display:"flex",padding:`0 ${$e(c)}`,color:m,borderBottom:`${$e(d)} ${f} ${v}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:$e(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:j,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:$e(y),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:g,borderInlineStartWidth:g,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:z,insetInlineStart:z,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:g,borderInlineStartWidth:g,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:C,fontWeight:"normal"},th:{height:e.calc(C).add(e.calc(O).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${$e(O)} 0`,color:k,cursor:"pointer","&-in-view":{color:E}},B_(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(P).mul(4).equal()},[r]:{padding:`0 ${$e(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:N}},"&-decade-panel":{[r]:{padding:`0 ${$e(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${$e(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${$e(c)} ${$e(q)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${x}`},"&:first-child:before":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child:before":{borderStartEndRadius:_,borderEndEndRadius:_}},"&:hover td:before":{background:M},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Pn(I).setA(.5).toHexString()},[r]:{color:I}}},"&-range-hover td:before":{background:D}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${$e(c)} ${$e(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${$e(d)} ${f} ${v}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${$}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:T},"&-column":{flex:"1 0 auto",width:A,margin:`${$e(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${$e(R)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${$e(d)} ${f} ${v}`},"&-active":{background:new Pn(D).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:L,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(A).sub(e.calc(L).mul(2)).equal(),height:R,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(A).sub(R).div(2).equal(),color:E,lineHeight:$e(R),borderRadius:_,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:M}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:D}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:k,background:"transparent",cursor:"not-allowed"}}}}}}}}},F_=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${$e(r)} ${s} ${u}`,"&-extra":{padding:`0 ${$e(o)}`,lineHeight:$e(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${$e(r)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:$e(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:$e(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},W_=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},Gg(e)),ib(e)),eb(e)),Qg(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${$e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},K_=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${$e(i)} ${$e(r)} ${$e(a)}`}},U_=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},V_=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:h,paddingInlineSM:m,paddingXS:v,marginXS:g,colorIcon:b,lineWidthBold:y,colorPrimary:x,motionDurationSlow:w,zIndexPopup:S,paddingXXS:C,sizePopupArrow:O,colorBgElevated:k,borderRadiusLG:E,boxShadowSecondary:j,borderRadiusSM:$,colorSplit:P,cellHoverBg:N,presetsWidth:_,presetsMaxWidth:I,boxShadowPopoverArrow:M,fontHeight:T,fontHeightLG:A,lineHeightLG:R}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Oi(e)),K_(e,r,T,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},ab(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},K_(e,f,A,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:R}}),"&-small":Object.assign({},K_(e,h,T,m)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:g}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:y,background:x,opacity:0,transition:`all ${w} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${$e(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:m}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Oi(e)),H_(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,\n &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,\n &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Ww},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Hw},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Kw},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Fw},[`${t}-panel > ${t}-time-panel`]:{paddingTop:C},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${w} ease-out`},jh(e,k,M)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:k,borderRadius:E,boxShadow:j,transition:`margin ${w}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:_,maxWidth:I,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${$e(i)} ${a} ${P}`,li:Object.assign(Object.assign({},Ci),{borderRadius:$,paddingInline:v,paddingBlock:e.calc(h).sub(T).div(2).equal(),cursor:"pointer",transition:`all ${w}`,"+ li":{marginTop:g},"&:hover":{background:N}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${$e(e.calc(O).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Qw(e,"slide-up"),Qw(e,"slide-down"),iS(e,"move-up"),iS(e,"move-down")]},G_=ql("DatePicker",e=>{const t=$l(Hg(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[F_(t),V_(t),W_(t),U_(t),z_(t),Yu(e,{focusElCls:`${e.componentCls}-focused`})]},e=>Object.assign(Object.assign(Object.assign(Object.assign({},Fg(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,l=2*i,c=2*a,s=Math.min(n-l,n-c),u=Math.min(r-l,r-c),d=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Pn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Pn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),Eh(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}));function Y_(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function X_(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Q_(e,t){const{allowClear:r=!0}=e,{clearIcon:o,removeIcon:i}=DS(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[n.useMemo(()=>{if(!1===r)return!1;const e=!0===r?{}:r;return Object.assign({clearIcon:o},e)},[r,o]),i]}const[Z_,J_]=["week","WeekPicker"],[eI,tI]=["month","MonthPicker"],[nI,rI]=["year","YearPicker"],[oI,iI]=["quarter","QuarterPicker"],[aI,lI]=["time","TimePicker"],cI=e=>n.createElement(od,Object.assign({size:"small",type:"primary"},e));function sI(e){return(0,n.useMemo)(()=>Object.assign({button:cI},e),[e])}function uI(e,...t){const n=e||{};return t.reduce((e,t)=>(Object.keys(t||{}).forEach(r=>{const o=n[r],i=t[r];if(o&&"object"==typeof o)if(i&&"object"==typeof i)e[r]=uI(o,e[r],i);else{const{_default:t}=o;e[r]=e[r]||{},e[r][t]=Rr()(e[r][t],i)}else e[r]=Rr()(e[r],i)}),e),{})}function dI(e,...t){return n.useMemo(()=>uI.apply(void 0,[e].concat(t)),[t])}function fI(...e){return n.useMemo(()=>e.reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]=Object.assign(Object.assign({},e[n]),t[n])}),e),{}),[e])}function pI(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(e=>{if("_default"!==e){const r=t[e],o=n[e]||{};n[e]=r?pI(o,r):o}}),n}function hI(e,t,r){const o=dI.apply(void 0,[r].concat(M(e))),i=fI.apply(void 0,M(t));return n.useMemo(()=>[pI(o,r),pI(i,r)],[o,i])}const mI=(e,t,r,o,i)=>{const{classNames:a,styles:l}=C(e),[c,s]=hI([a,t],[l,r],{popup:{_default:"root"}});return n.useMemo(()=>{var e,t;return[Object.assign(Object.assign({},c),{popup:Object.assign(Object.assign({},c.popup),{root:Rr()(null===(e=c.popup)||void 0===e?void 0:e.root,o)})}),Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Object.assign(Object.assign({},null===(t=s.popup)||void 0===t?void 0:t.root),i)})})]},[c,s,o,i])};var vI=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gI=e=>{const t=(0,n.forwardRef)((t,r)=>{var o;const{prefixCls:i,getPopupContainer:a,components:l,className:c,style:s,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:h,popupStyle:m,popupClassName:v,dropdownClassName:g,status:b,rootClassName:y,variant:w,picker:S,styles:C,classNames:O}=t,k=vI(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),E=S===aI?"timePicker":"datePicker",j=n.useRef(null),{getPrefixCls:$,direction:P,getPopupContainer:N,rangePicker:_}=(0,n.useContext)(x),I=$("picker",i),{compactSize:M,compactItemClassnames:T}=Wc(I,P),A=$(),[R,D]=Mb("rangePicker",w,p),L=ul(I),[q,z,B]=G_(I,L);const[H,F]=mI(E,O,C,v||g,m),[W]=Q_(t,I),K=sI(l),U=Rc(e=>{var t;return null!==(t=null!=d?d:M)&&void 0!==t?t:e}),V=n.useContext(jr),G=null!=f?f:V,Y=(0,n.useContext)(Sh),{hasFeedback:X,status:Q,feedbackIcon:Z}=Y,J=n.createElement(n.Fragment,null,S===aI?n.createElement(LP,null):n.createElement(AP,null),X&&Z);(0,n.useImperativeHandle)(r,()=>j.current);const[ee]=su("Calendar",vn),te=Object.assign(Object.assign({},ee),t.locale),[ne]=vl("DatePicker",null===(o=F.popup.root)||void 0===o?void 0:o.zIndex);return q(n.createElement(kh,{space:!0},n.createElement(I_,Object.assign({separator:n.createElement("span",{"aria-label":"to",className:`${I}-separator`},n.createElement(BP,null)),disabled:G,ref:j,placement:u,placeholder:X_(te,S,h),suffixIcon:J,prevIcon:n.createElement("span",{className:`${I}-prev-icon`}),nextIcon:n.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:n.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:n.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:S},k,{className:Rr()({[`${I}-${U}`]:U,[`${I}-${R}`]:D},_b(I,Ib(Q,b),X),z,T,c,null==_?void 0:_.className,B,L,y,H.root),style:Object.assign(Object.assign(Object.assign({},null==_?void 0:_.style),s),F.root),locale:te.lang,prefixCls:I,getPopupContainer:a||N,generateConfig:e,components:K,direction:P,classNames:{popup:Rr()(z,B,L,y,H.popup.root)},styles:{popup:Object.assign(Object.assign({},F.popup.root),{zIndex:ne})},allowClear:W}))))});return t};var bI=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yI=e=>{const t=(t,r)=>{const o=r===lI?"timePicker":"datePicker",i=(0,n.forwardRef)((r,i)=>{var a;const{prefixCls:l,getPopupContainer:c,components:s,style:u,className:d,rootClassName:f,size:p,bordered:h,placement:m,placeholder:v,popupStyle:g,popupClassName:b,dropdownClassName:y,disabled:w,status:S,variant:C,onCalendarChange:O,styles:k,classNames:E}=r,j=bI(r,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:$,direction:P,getPopupContainer:N,[o]:_}=(0,n.useContext)(x),I=$("picker",l),{compactSize:M,compactItemClassnames:T}=Wc(I,P),A=n.useRef(null),[R,D]=Mb("datePicker",C,h),L=ul(I),[q,z,B]=G_(I,L);(0,n.useImperativeHandle)(i,()=>A.current);const H=t||r.picker,F=$(),{onSelect:W,multiple:K}=j,U=W&&"time"===t&&!K;const[V,G]=mI(o,E,k,b||y,g),[Y,X]=Q_(r,I),Q=sI(s),Z=Rc(e=>{var t;return null!==(t=null!=p?p:M)&&void 0!==t?t:e}),J=n.useContext(jr),ee=null!=w?w:J,te=(0,n.useContext)(Sh),{hasFeedback:ne,status:re,feedbackIcon:oe}=te,ie=n.createElement(n.Fragment,null,"time"===H?n.createElement(LP,null):n.createElement(AP,null),ne&&oe),[ae]=su("DatePicker",vn),le=Object.assign(Object.assign({},ae),r.locale),[ce]=vl("DatePicker",null===(a=G.popup.root)||void 0===a?void 0:a.zIndex);return q(n.createElement(kh,{space:!0},n.createElement(L_,Object.assign({ref:A,placeholder:Y_(le,H,v),suffixIcon:ie,placement:m,prevIcon:n.createElement("span",{className:`${I}-prev-icon`}),nextIcon:n.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:n.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:n.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${F}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{null==O||O(e,t,n),U&&W(e)}},{showToday:!0},j,{locale:le.lang,className:Rr()({[`${I}-${Z}`]:Z,[`${I}-${R}`]:D},_b(I,Ib(re,S),ne),z,T,null==_?void 0:_.className,d,B,L,f,V.root),style:Object.assign(Object.assign(Object.assign({},null==_?void 0:_.style),u),G.root),prefixCls:I,getPopupContainer:c||N,generateConfig:e,components:Q,direction:P,disabled:ee,classNames:{popup:Rr()(z,B,L,f,V.popup.root)},styles:{popup:Object.assign(Object.assign({},G.popup.root),{zIndex:ce})},allowClear:Y,removeIcon:X}))))});return i},r=t(),o=t(Z_,J_),i=t(eI,tI),a=t(nI,rI),l=t(oI,iI);return{DatePicker:r,WeekPicker:o,MonthPicker:i,YearPicker:a,TimePicker:t(aI,lI),QuarterPicker:l}},xI=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=yI(e),l=gI(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=o,c.RangePicker=l,c.TimePicker=i,c.QuarterPicker=a,c},wI=xI(IP),SI=Kv(wI,"popupAlign",void 0,"picker");wI._InternalPanelDoNotUseOrYouWillBeFired=SI;const CI=Kv(wI.RangePicker,"popupAlign",void 0,"picker");wI._InternalRangePanelDoNotUseOrYouWillBeFired=CI,wI.generatePicker=xI;const OI=wI;function kI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return EI(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?EI(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const jI=function(e){var t,r,o,a,l,s,u,d=e.field,f=d.help,p=d.value,m=d.placeholder,v=e.id,g=null===(t=e.field)||void 0===t?void 0:t.fieldType,b=null===(r=e.field)||void 0===r?void 0:r.parentId,y=null===(o=e.field)||void 0===o?void 0:o.index,x=null===(a=e.field)||void 0===a?void 0:a.repeaterData,w=null===(l=e.field)||void 0===l?void 0:l.format,S=!(null===(s=e.field)||void 0===s||!s.showtime),C=!(null===(u=e.field)||void 0===u||!u.disableDates),O=kI(c(),2),k=(O[0],O[1]);return(0,n.useEffect)(function(){var e=p||mP()().format(w);k({type:h,value:e,id:v,fieldType:g,parentId:b,repeaterData:x,index:y})},[]),(0,i.jsxs)("div",{className:"rtsb-field datetime",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsx)(OI,{className:"rtsb-form-field",value:""!==p?mP()(p):mP()(),placeholder:m,disabledDate:!!C&&function(e){return e&&e<mP()().startOf("day")},onChange:function(e,t){k({type:h,value:t,id:v,fieldType:g,parentId:b,repeaterData:x,index:y})},format:w,allowClear:!1,showTime:S})}),f&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:f}})]})]})};function $I(e){return $I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$I(e)}var PI=function(e){e=_I(e);var t=[];return"string"==typeof e?t=JSON.parse(e):"object"===$I(e)&&(t=e),Object.keys(t).map(function(e){return t[e]})},NI=function(e,t){var n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];clearTimeout(n),n=setTimeout(function(){e.apply(void 0,o)},t)}},_I=function(e){return"string"==typeof e&&e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1)),e},II=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};const MI={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"};var TI=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:MI}))}; | |
| 122 | +/** */const AI=n.forwardRef(TI);const RI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var DI=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:RI}))}; | |
| 123 | +/** */const LI=n.forwardRef(DI);function qI(e){return qI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qI(e)}function zI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return BI(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BI(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const HI=function(e){var t,r,o,a,l=e.field,s=l.help,u=l.value,d=e.id,f=zI(c(),2),p=(f[0],f[1]),m=null===(t=e.field)||void 0===t?void 0:t.fieldType,v=null===(r=e.field)||void 0===r?void 0:r.parentId,g=null===(o=e.field)||void 0===o?void 0:o.index,b=null===(a=e.field)||void 0===a?void 0:a.repeaterData,y=zI((0,n.useState)(!1),2),x=y[0],w=y[1],S=zI((0,n.useState)(""),2),C=S[0],O=S[1],k=zI((0,n.useState)(null),2),E=k[0],j=k[1];return(0,n.useEffect)(function(){u&&j("object"===qI(u)?u:JSON.parse(u.replace(/\\/g,"")))},[]),(0,i.jsxs)("div",{className:"rtsb-field text",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsxs)("div",{className:"rtsb-field-control",children:[(0,i.jsxs)("div",{className:"rtsb-field-upload-wrapper",style:{position:"relative",display:"inline-flex",alignItems:"center"},children:[(0,i.jsx)("div",{className:"rtsb-avatar-uploader ".concat(null!=E&&E.source?"rtsb-avatar-uploaded":"rtsb-avatar-deleted"),onClick:function(){var e=wp.media({title:"Select or Upload Media",button:{text:"Use this media"},multiple:!1});e.on("select",function(){var t=e.state().get("selection").first().toJSON(),n={id:t.id,source:t.url};j(n),p({type:h,id:d,value:n,fieldType:m,parentId:v,repeaterData:b,index:g}),wc.success({message:"Media selected successfully!"})}),e.open()},style:{minWidth:100,height:100,border:"1px dashed #ccc",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},children:null!=E&&E.source?(0,i.jsx)("img",{src:E.source,alt:"media",style:{width:"auto",height:"100%",objectFit:"cover"}}):(0,i.jsx)(AI,{})}),(null==E?void 0:E.source)&&(0,i.jsxs)("div",{className:"image-preview-overlay",children:[(0,i.jsx)(Jb,{className:"preview-icon",onClick:function(){O(null==E?void 0:E.source),w(!0)}}),(0,i.jsx)(LI,{className:"delete-icon",onClick:function(){j(null),p({type:h,id:d,value:null,fieldType:m,parentId:v,repeaterData:b,index:g}),wc.success({message:"Media removed successfully!"})}})]})]}),(0,i.jsx)(ng,{open:x,title:"Image Preview",footer:null,className:"rtsb-image-preview-modal",styles:{body:{padding:"15px"}},onCancel:function(){return w(!1)},children:(0,i.jsx)("img",{alt:"Preview",style:{width:"100%"},src:C})})]}),s&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function FI(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,s=Date.now()-f;function h(){f=Date.now(),t.apply(l,o)}function m(){r=void 0}d||(c||!u||r||h(),p(),void 0===u&&s>e?c?(f=Date.now(),a||(r=setTimeout(u?m:h,e))):h():!0!==a&&(r=setTimeout(u?m:h,void 0===u?e-s:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const WI=80*Math.PI,KI=e=>{const{dotClassName:t,style:r,hasCircleCls:o}=e;return n.createElement("circle",{className:Rr()(`${t}-circle`,{[`${t}-circle-bg`]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:r})},UI=({percent:e,prefixCls:t})=>{const r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`,[a,l]=n.useState(!1);Re(()=>{0!==e&&l(!0)},[0!==e]);const c=Math.max(Math.min(e,100),0);if(!a)return null;const s={strokeDashoffset:""+WI/4,strokeDasharray:`${WI*c/100} ${WI*(100-c)/100}`};return n.createElement("span",{className:Rr()(o,`${r}-progress`,c<=0&&i)},n.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},n.createElement(KI,{dotClassName:r,hasCircleCls:!0}),n.createElement(KI,{dotClassName:r,style:s})))};function VI(e){const{prefixCls:t,percent:r=0}=e,o=`${t}-dot`,i=`${o}-holder`,a=`${i}-hidden`;return n.createElement(n.Fragment,null,n.createElement("span",{className:Rr()(i,r>0&&a)},n.createElement("span",{className:Rr()(o,`${t}-dot-spin`)},[1,2,3,4].map(e=>n.createElement("i",{className:`${t}-dot-item`,key:e})))),n.createElement(UI,{prefixCls:t,percent:r}))}function GI(e){const{prefixCls:t,indicator:r,percent:o}=e,i=`${t}-dot`;return r&&n.isValidElement(r)?Ec(r,{className:Rr()(r.props.className,i),percent:o}):n.createElement(VI,{prefixCls:t,percent:o})}const YI=new Zt("antSpinMove",{to:{opacity:1}}),XI=new Zt("antRotate",{to:{transform:"rotate(405deg)"}}),QI=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Oi(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",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]:{[`${t}-dot-holder`]:{color: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-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${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(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:YI,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:XI,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{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`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{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"}})}},ZI=ql("Spin",e=>{const t=$l(e,{spinDotDefault:e.colorTextDescription});return[QI(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),JI=[[30,.05],[70,.03],[96,.01]];var eM=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let tM;const nM=e=>{var t;const{prefixCls:r,spinning:o=!0,delay:i=0,className:a,rootClassName:l,size:c="default",tip:s,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:h,percent:m}=e,v=eM(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:b,className:y,style:x,indicator:w}=C("spin"),S=g("spin",r),[O,k,E]=ZI(S),[j,$]=n.useState(()=>o&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(o,i)),P=function(e,t){const[r,o]=n.useState(0),i=n.useRef(null),a="auto"===t;return n.useEffect(()=>(a&&e&&(o(0),i.current=setInterval(()=>{o(e=>{const t=100-e;for(let n=0;n<JI.length;n+=1){const[r,o]=JI[n];if(e<=r)return e+t*o}return e})},200)),()=>{clearInterval(i.current)}),[a,e]),a?r:t}(j,m);n.useEffect(()=>{if(o){const e=FI(i,()=>{$(!0)});return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}$(!1)},[i,o]);const N=n.useMemo(()=>void 0!==f&&!p,[f,p]);const _=Rr()(S,y,{[`${S}-sm`]:"small"===c,[`${S}-lg`]:"large"===c,[`${S}-spinning`]:j,[`${S}-show-text`]:!!s,[`${S}-rtl`]:"rtl"===b},a,!p&&l,k,E),I=Rr()(`${S}-container`,{[`${S}-blur`]:j}),M=null!==(t=null!=h?h:w)&&void 0!==t?t:tM,T=Object.assign(Object.assign({},x),d),A=n.createElement("div",Object.assign({},v,{style:T,className:_,"aria-live":"polite","aria-busy":j}),n.createElement(GI,{prefixCls:S,indicator:M,percent:P}),s&&(N||p)?n.createElement("div",{className:`${S}-text`},s):null);return O(N?n.createElement("div",Object.assign({},v,{className:Rr()(`${S}-nested-loading`,u,k,E)}),j&&n.createElement("div",{key:"loading"},A),n.createElement("div",{className:I,key:"container"},f)):p?n.createElement("div",{className:Rr()(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:j},l,k,E)},A):A)};nM.setDefaultIndicator=e=>{tM=e};const rM=nM;var oM=["fetchOptions","initialOptions","debounceTimeout"];function iM(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return aM(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(aM(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,aM(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,aM(d,"constructor",s),aM(s,"constructor",c),c.displayName="GeneratorFunction",aM(s,o,"GeneratorFunction"),aM(d),aM(d,o,"Generator"),aM(d,r,function(){return this}),aM(d,"toString",function(){return"[object Generator]"}),(iM=function(){return{w:i,m:f}})()}function aM(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}aM=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){aM(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},aM(e,t,n,r)}function lM(e){return lM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lM(e)}function cM(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function sM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sM(Object(n),!0).forEach(function(t){dM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=lM(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lM(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pM(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pM(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hM(e){var t=e.fetchOptions,r=e.initialOptions,o=void 0===r?[]:r,a=e.debounceTimeout,l=void 0===a?400:a,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,oM),s=fM((0,n.useState)(!1),2),u=s[0],d=s[1],f=fM((0,n.useState)(o),2),p=f[0],h=f[1],m=(0,n.useRef)(0),v=(0,n.useMemo)(function(){return NI(function(e){m.current+=1;var n=m.current;h([]),d(!0),t(e).then(function(e){n===m.current&&(h(e),d(!1))})},l)},[t,l]);return(0,i.jsx)(FS,uM(uM({filterOption:!1,onSearch:v,notFoundContent:u?(0,i.jsx)(rM,{size:"small"}):null},c),{},{children:p.map(function(e){return(0,i.jsx)(FS.Option,{value:e.value,children:e.label},e.value)})}))}function mM(){var e;return e=iM().m(function e(t,n){var r,o,i,a;return iM().w(function(e){for(;;)if(0===e.n)return(r=new URLSearchParams).append("action","rtsb_get_multiselect_data"),r.append("__rtsb_wpnonce",rtsbParams.nonce),null!=t&&t.func_with_param&&r.append("func_with_param",JSON.stringify(null==t?void 0:t.func_with_param)),n&&r.append("s",n),o=rtsbParams.ajaxurl.includes("?"),i=o?"&":"?",a="".concat(rtsbParams.ajaxurl).concat(i).concat(r.toString()),e.a(2,fetch(a).then(function(e){return e.json()}).then(function(e){return e.data.map(function(e){return{label:e.label,value:e.value}})}))},e)}),mM=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){cM(i,r,o,a,l,"next",e)}function l(e){cM(i,r,o,a,l,"throw",e)}a(void 0)})},mM.apply(this,arguments)}const vM=function(e){var t,n,r,o,a,l=e.id,s=e.field,u=s.value,d=s.help,f=s.options,p=(s.empty,s.searchable,s.placeholder),m=s.disabled,v=s.isPro,g=null===(t=e.field)||void 0===t?void 0:t.fieldType,b=null===(n=e.field)||void 0===n?void 0:n.parentId,y=null===(r=e.field)||void 0===r?void 0:r.index,x=!1!==(null===(o=e.field)||void 0===o?void 0:o.multiple),w=null===(a=e.field)||void 0===a?void 0:a.repeaterData,S=fM(c(),2),C=(S[0],S[1]),O=(Array.isArray(u)?u:[]).map(function(e){return"object"!==lM(e)?JSON.parse(e):e}),k=O.concat(f),E=new Set,j=k.filter(function(e){return!E.has(e.value)&&(E.add(e.value),!0)}),$={};return m?$.disabled=m||!1:v&&($.disabled=v),(0,i.jsxs)("div",{className:"rtsb-field select",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsx)(hM,uM(uM({},$),{},{mode:"multiple",value:O,placeholder:p,initialOptions:j,fetchOptions:function(e){return function(e,t){return mM.apply(this,arguments)}(s,e)},onChange:function(e,t){var n=t.map(function(e){return{value:e.value,label:e.children}}),r=x?n:n.slice(-1);C({type:h,id:l,value:r,fieldType:g,parentId:b,repeaterData:w,index:y})},style:{width:"100%"}}))}),d&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:d}})]})]})},gM=n.createContext(null),bM=gM.Provider,yM=gM,xM=n.createContext(null),wM=xM.Provider,SM=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Oi(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},CM=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:h,lineType:m,radioColor:v,radioBgColor:g,calc:b}=e,y=`${t}-inner`,x=b(o).sub(b(4).mul(2)),w=b(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Oi(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${$e(u)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Oi(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},ki(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:b(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:g,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},OM=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:h,paddingXS:m,borderRadius:v,borderRadiusSM:g,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:w,colorBgContainerDisabled:S,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:O,colorPrimary:k,colorPrimaryHover:E,colorPrimaryActive:j,buttonSolidCheckedBg:$,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:N,calc:_}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:$e(_(n).sub(_(o).mul(2)).equal()),background:d,border:`${$e(o)} ${i} ${a}`,borderBlockStartWidth:_(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:_(o).mul(-1).equal(),insetInlineStart:_(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${$e(o)} ${i} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:$e(_(p).sub(_(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:h,paddingInline:_(m).sub(o).equal(),paddingBlock:0,lineHeight:$e(_(h).sub(_(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":Object.assign({},ki(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:k,background:y,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:j,borderColor:j,"&::before":{backgroundColor:j}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:$,borderColor:$,"&:hover":{color:x,background:P,borderColor:P},"&:active":{color:x,background:N,borderColor:N}},"&-disabled":{color:w,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:C,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},kM=ql("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${$e(n)} ${t}`,o=$l(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[SM(o),CM(o),OM(o)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:h}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?l:d}},{unitless:{radioSize:!0,dotSize:!0}});var EM=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jM=(e,t)=>{var r,o;const i=n.useContext(yM),a=n.useContext(xM),{getPrefixCls:l,direction:c,radio:s}=n.useContext(x),u=n.useRef(null),d=Yr(t,u),{isFormItemInput:f}=n.useContext(Sh);const p=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:h,className:m,rootClassName:v,children:g,style:b,title:y}=e,w=EM(e,["prefixCls","className","rootClassName","children","style","title"]),S=l("radio",h),C="button"===((null==i?void 0:i.optionType)||a),O=C?`${S}-button`:S,k=ul(S),[E,j,$]=kM(S,k),P=Object.assign({},w),N=n.useContext(jr);i&&(P.name=i.name,P.onChange=p,P.checked=e.value===i.value,P.disabled=null!==(r=P.disabled)&&void 0!==r?r:i.disabled),P.disabled=null!==(o=P.disabled)&&void 0!==o?o:N;const _=Rr()(`${O}-wrapper`,{[`${O}-wrapper-checked`]:P.checked,[`${O}-wrapper-disabled`]:P.disabled,[`${O}-wrapper-rtl`]:"rtl"===c,[`${O}-wrapper-in-form-item`]:f,[`${O}-wrapper-block`]:!!(null==i?void 0:i.block)},null==s?void 0:s.className,m,v,j,$,k),[I,M]=tP(P.onClick);return E(n.createElement(Ac,{component:"Radio",disabled:P.disabled},n.createElement("label",{className:_,style:Object.assign(Object.assign({},null==s?void 0:s.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:I},n.createElement(X$,Object.assign({},P,{className:Rr()(P.className,{[Pc]:!C}),type:"radio",prefixCls:O,ref:d,onClick:M})),void 0!==g?n.createElement("span",{className:`${O}-label`},g):null)))};const $M=n.forwardRef(jM),PM=n.forwardRef((e,t)=>{const{getPrefixCls:r,direction:o}=n.useContext(x),i=ff(),{prefixCls:a,className:l,rootClassName:c,options:s,buttonStyle:u="outline",disabled:d,children:f,size:p,style:h,id:m,optionType:v,name:g=i,defaultValue:b,value:y,block:w=!1,onChange:S,onMouseEnter:C,onMouseLeave:O,onFocus:k,onBlur:E}=e,[j,$]=mo(b,{value:y}),P=n.useCallback(t=>{const n=j,r=t.target.value;"value"in e||$(r),r!==n&&(null==S||S(t))},[j,$,S]),N=r("radio",a),_=`${N}-group`,I=ul(N),[M,T,A]=kM(N,I);let R=f;s&&s.length>0&&(R=s.map(e=>"string"==typeof e||"number"==typeof e?n.createElement($M,{key:e.toString(),prefixCls:N,disabled:d,value:e,checked:j===e},e):n.createElement($M,{key:`radio-group-value-options-${e.value}`,prefixCls:N,disabled:e.disabled||d,value:e.value,checked:j===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));const D=Rc(p),L=Rr()(_,`${_}-${u}`,{[`${_}-${D}`]:D,[`${_}-rtl`]:"rtl"===o,[`${_}-block`]:w},l,c,T,A,I),q=n.useMemo(()=>({onChange:P,value:j,disabled:d,name:g,optionType:v,block:w}),[P,j,d,g,v,w]);return M(n.createElement("div",Object.assign({},Xa(e,{aria:!0,data:!0}),{className:L,style:h,onMouseEnter:C,onMouseLeave:O,onFocus:k,onBlur:E,id:m,ref:t}),n.createElement(bM,{value:q},R)))}),NM=n.memo(PM);var _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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const IM=(e,t)=>{const{getPrefixCls:r}=n.useContext(x),{prefixCls:o}=e,i=_M(e,["prefixCls"]),a=r("radio",o);return n.createElement(wM,{value:"button"},n.createElement($M,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},MM=n.forwardRef(IM),TM=$M;TM.Button=MM,TM.Group=NM,TM.__ANT_RADIO=!0;const AM=TM;function RM(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function DM(e,t,n,r){var o=Dr.unstable_batchedUpdates?function(e){Dr.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var LM=n.createContext(null);const qM=function(e){var t=e.visible,r=e.maskTransitionName,o=e.getContainer,i=e.prefixCls,a=e.rootClassName,l=e.icons,c=e.countRender,s=e.showSwitch,u=e.showProgress,d=e.current,f=e.transform,p=e.count,h=e.scale,m=e.minScale,v=e.maxScale,g=e.closeIcon,b=e.onActive,y=e.onClose,x=e.onZoomIn,w=e.onZoomOut,S=e.onRotateRight,C=e.onRotateLeft,O=e.onFlipX,k=e.onFlipY,j=e.onReset,$=e.toolbarRender,P=e.zIndex,N=e.image,_=(0,n.useContext)(LM),I=l.rotateLeft,M=l.rotateRight,T=l.zoomIn,R=l.zoomOut,D=l.close,L=l.left,q=l.right,z=l.flipX,B=l.flipY,H="".concat(i,"-operations-operation");n.useEffect(function(){var e=function(e){e.keyCode===Va.ESC&&y()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[t]);var F=function(e,t){e.preventDefault(),e.stopPropagation(),b(t)},W=n.useCallback(function(e){var t=e.type,r=e.disabled,o=e.onClick,a=e.icon;return n.createElement("div",{key:t,className:Rr()(H,"".concat(i,"-operations-operation-").concat(t),E({},"".concat(i,"-operations-operation-disabled"),!!r)),onClick:o},a)},[H,i]),K=s?W({icon:L,onClick:function(e){return F(e,-1)},type:"prev",disabled:0===d}):void 0,U=s?W({icon:q,onClick:function(e){return F(e,1)},type:"next",disabled:d===p-1}):void 0,V=W({icon:B,onClick:k,type:"flipY"}),G=W({icon:z,onClick:O,type:"flipX"}),Y=W({icon:I,onClick:C,type:"rotateLeft"}),X=W({icon:M,onClick:S,type:"rotateRight"}),Q=W({icon:R,onClick:w,type:"zoomOut",disabled:h<=m}),Z=W({icon:T,onClick:x,type:"zoomIn",disabled:h===v}),J=n.createElement("div",{className:"".concat(i,"-operations")},V,G,Y,X,Q,Z);return n.createElement(si,{visible:t,motionName:r},function(e){var t=e.className,r=e.style;return n.createElement(_d,{open:!0,getContainer:null!=o?o:document.body},n.createElement("div",{className:Rr()("".concat(i,"-operations-wrapper"),t,a),style:A(A({},r),{},{zIndex:P})},null===g?null:n.createElement("button",{className:"".concat(i,"-close"),onClick:y},g||D),s&&n.createElement(n.Fragment,null,n.createElement("div",{className:Rr()("".concat(i,"-switch-left"),E({},"".concat(i,"-switch-left-disabled"),0===d)),onClick:function(e){return F(e,-1)}},L),n.createElement("div",{className:Rr()("".concat(i,"-switch-right"),E({},"".concat(i,"-switch-right-disabled"),d===p-1)),onClick:function(e){return F(e,1)}},q)),n.createElement("div",{className:"".concat(i,"-footer")},u&&n.createElement("div",{className:"".concat(i,"-progress")},c?c(d+1,p):n.createElement("bdi",null,"".concat(d+1," / ").concat(p))),$?$(J,A(A({icons:{prevIcon:K,nextIcon:U,flipYIcon:V,flipXIcon:G,rotateLeftIcon:Y,rotateRightIcon:X,zoomOutIcon:Q,zoomInIcon:Z},actions:{onActive:b,onFlipY:k,onFlipX:O,onRotateLeft:C,onRotateRight:S,onZoomOut:w,onZoomIn:x,onReset:j,onClose:y},transform:f},_?{current:d,total:p}:{}),{},{image:N})):J)))})};var zM={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function BM(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return E({},e,i);if(t<0&&o<r)return E({},e,-i)}else if(t<0||o>r)return E({},e,t<0?i:-i);return{}}function HM(e,t,n,r){var o=RM(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=A(A({},BM("x",n,e,i)),BM("y",r,t,a))),l}function FM(e){var t=e.src,r=e.isCustomPlaceholder,o=e.fallback,i=_((0,n.useState)(r?"loading":"normal"),2),a=i[0],l=i[1],c=(0,n.useRef)(!1),s="error"===a;(0,n.useEffect)(function(){var e=!0;return function(e){return new Promise(function(t){if(e){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}else t(!1)})}(t).then(function(t){!t&&e&&l("error")}),function(){e=!1}},[t]),(0,n.useEffect)(function(){r&&!c.current?l("loading"):s&&l("normal")},[t]);var u=function(){l("normal")};return[function(e){c.current=!1,"loading"===a&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,u())},s&&o?{src:o}:{onLoad:u,src:t},a]}function WM(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function KM(e,t,r,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,d=i.y,f=_((0,n.useState)(!1),2),p=f[0],h=f[1],m=(0,n.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(e){m.current=A(A({},m.current),e)};return(0,n.useEffect)(function(){var e;return r&&t&&(e=DM(window,"touchmove",function(e){return e.preventDefault()},{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}},[r,t]),{isTouching:p,onTouchStart:function(e){if(t){e.stopPropagation(),h(!0);var n=e.touches,r=void 0===n?[]:n;r.length>1?v({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):v({point1:{x:r[0].clientX-u,y:r[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=m.current,o=r.point1,i=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=WM(e,n),i=WM(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,s,u),f=_(d,2),p=f[0],h=f[1],g=WM(s,u)/WM(o,i);l(g,"touchZoom",p,h,!0),v({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),v({eventType:"move"}))},onTouchEnd:function(){if(r){if(p&&h(!1),v({eventType:"none"}),o>s)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*s,n=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,d=c%180!=0,f=HM(d?n:t,d?t:n,l,u);f&&a(A({},f),"dragRebound")}}}}var UM=["fallback","src","imgRef"],VM=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],GM=function(e){var t=e.fallback,r=e.src,o=e.imgRef,i=eo(e,UM),a=_(FM({src:r,fallback:t}),2),l=a[0],c=a[1];return n.createElement("img",Ve({ref:function(e){o.current=e,l(e)}},i,c))};const YM=function(e){var t=e.prefixCls,r=e.src,o=e.alt,i=e.imageInfo,a=e.fallback,l=e.movable,c=void 0===l||l,s=e.onClose,u=e.visible,d=e.icons,f=void 0===d?{}:d,p=e.rootClassName,h=e.closeIcon,m=e.getContainer,v=e.current,g=void 0===v?0:v,b=e.count,y=void 0===b?1:b,x=e.countRender,w=e.scaleStep,S=void 0===w?.5:w,C=e.minScale,O=void 0===C?1:C,k=e.maxScale,j=void 0===k?50:k,$=e.transitionName,P=void 0===$?"zoom":$,N=e.maskTransitionName,I=void 0===N?"fade":N,M=e.imageRender,T=e.imgCommonProps,R=e.toolbarRender,D=e.onTransform,L=e.onChange,q=eo(e,VM),z=(0,n.useRef)(),B=(0,n.useContext)(LM),H=B&&y>1,F=B&&y>=1,W=_((0,n.useState)(!0),2),K=W[0],U=W[1],V=function(e,t,r,o){var i=(0,n.useRef)(null),a=(0,n.useRef)([]),l=_((0,n.useState)(zM),2),c=l[0],s=l[1],u=function(e,t){null===i.current&&(a.current=[],i.current=Ko(function(){s(function(e){var n=e;return a.current.forEach(function(e){n=A(A({},n),e)}),i.current=null,null==o||o({transform:n,action:t}),n})})),a.current.push(A(A({},c),e))};return{transform:c,resetTransform:function(e){s(zM),re(zM,c)||null==o||o({transform:zM,action:e})},updateTransform:u,dispatchZoomChange:function(n,o,i,a,l){var s=e.current,d=s.width,f=s.height,p=s.offsetWidth,h=s.offsetHeight,m=s.offsetLeft,v=s.offsetTop,g=n,b=c.scale*n;b>r?(b=r,g=r/c.scale):b<t&&(g=(b=l?b:t)/c.scale);var y=null!=i?i:innerWidth/2,x=null!=a?a:innerHeight/2,w=g-1,S=w*d*.5,C=w*f*.5,O=w*(y-c.x-m),k=w*(x-c.y-v),E=c.x-(O-S),j=c.y-(k-C);if(n<1&&1===b){var $=p*b,P=h*b,N=RM(),_=N.width,I=N.height;$<=_&&P<=I&&(E=0,j=0)}u({x:E,y:j,scale:b},o)}}}(z,O,j,D),G=V.transform,Y=V.resetTransform,X=V.updateTransform,Q=V.dispatchZoomChange,Z=function(e,t,r,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,d=i.y,f=_((0,n.useState)(!1),2),p=f[0],h=f[1],m=(0,n.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(e){r&&p&&a({x:e.pageX-m.current.diffX,y:e.pageY-m.current.diffY},"move")},g=function(){if(r&&p){h(!1);var t=m.current,n=t.transformX,o=t.transformY;if(u===n||d===o)return;var i=e.current.offsetWidth*s,l=e.current.offsetHeight*s,f=e.current.getBoundingClientRect(),v=f.left,g=f.top,b=c%180!=0,y=HM(b?l:i,b?i:l,v,g);y&&a(A({},y),"dragRebound")}};return(0,n.useEffect)(function(){var e,n,r,o;if(t){r=DM(window,"mouseup",g,!1),o=DM(window,"mousemove",v,!1);try{window.top!==window.self&&(e=DM(window.top,"mouseup",g,!1),n=DM(window.top,"mousemove",v,!1))}catch(e){"[rc-image] ".concat(e)}}return function(){var t,i,a,l;null===(t=r)||void 0===t||t.remove(),null===(i=o)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(l=n)||void 0===l||l.remove()}},[r,p,u,d,c,t]),{isMoving:p,onMouseDown:function(e){t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),m.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},h(!0))},onMouseMove:v,onMouseUp:g,onWheel:function(e){if(r&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),n=1+Math.min(t,1)*o;e.deltaY>0&&(n=1/n),l(n,"wheel",e.clientX,e.clientY)}}}}(z,c,u,S,G,X,Q),J=Z.isMoving,ee=Z.onMouseDown,te=Z.onWheel,ne=KM(z,c,u,O,G,X,Q),oe=ne.isTouching,ie=ne.onTouchStart,ae=ne.onTouchMove,le=ne.onTouchEnd,ce=G.rotate,se=G.scale,ue=Rr()(E({},"".concat(t,"-moving"),J));(0,n.useEffect)(function(){K||U(!0)},[K]);var de=function(e){var t=g+e;!Number.isInteger(t)||t<0||t>y-1||(U(!1),Y(e<0?"prev":"next"),null==L||L(t,g))},fe=function(e){u&&H&&(e.keyCode===Va.LEFT?de(-1):e.keyCode===Va.RIGHT&&de(1))};(0,n.useEffect)(function(){var e=DM(window,"keydown",fe,!1);return function(){e.remove()}},[u,H,g]);var pe=n.createElement(GM,Ve({},T,{width:e.width,height:e.height,imgRef:z,className:"".concat(t,"-img"),alt:o,style:{transform:"translate3d(".concat(G.x,"px, ").concat(G.y,"px, 0) scale3d(").concat(G.flipX?"-":"").concat(se,", ").concat(G.flipY?"-":"").concat(se,", 1) rotate(").concat(ce,"deg)"),transitionDuration:(!K||oe)&&"0s"},fallback:a,src:r,onWheel:te,onMouseDown:ee,onDoubleClick:function(e){u&&(1!==se?X({x:0,y:0,scale:1},"doubleClick"):Q(1+S,"doubleClick",e.clientX,e.clientY))},onTouchStart:ie,onTouchMove:ae,onTouchEnd:le,onTouchCancel:le})),he=A({url:r,alt:o},i);return n.createElement(n.Fragment,null,n.createElement(Om,Ve({transitionName:P,maskTransitionName:I,closable:!1,keyboard:!0,prefixCls:t,onClose:s,visible:u,classNames:{wrapper:ue},rootClassName:p,getContainer:m},q,{afterClose:function(){Y("close")}}),n.createElement("div",{className:"".concat(t,"-img-wrapper")},M?M(pe,A({transform:G,image:he},B?{current:g}:{})):pe)),n.createElement(qM,{visible:u,transform:G,maskTransitionName:I,closeIcon:h,getContainer:m,prefixCls:t,rootClassName:p,icons:f,countRender:x,showSwitch:H,showProgress:F,current:g,count:y,scale:se,minScale:O,maxScale:j,toolbarRender:R,onActive:de,onZoomIn:function(){Q(1+S,"zoomIn")},onZoomOut:function(){Q(1/(1+S),"zoomOut")},onRotateRight:function(){X({rotate:ce+90},"rotateRight")},onRotateLeft:function(){X({rotate:ce-90},"rotateLeft")},onFlipX:function(){X({flipX:!G.flipX},"flipX")},onFlipY:function(){X({flipY:!G.flipY},"flipY")},onClose:s,onReset:function(){Y("reset")},zIndex:void 0!==q.zIndex?q.zIndex+1:void 0,image:he}))};var XM=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var QM=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ZM=["src"];const JM=function(e){var t,r=e.previewPrefixCls,o=void 0===r?"rc-image-preview":r,i=e.children,a=e.icons,l=void 0===a?{}:a,c=e.items,s=e.preview,u=e.fallback,d="object"===O(s)?s:{},f=d.visible,p=d.onVisibleChange,h=d.getContainer,m=d.current,v=d.movable,g=d.minScale,b=d.maxScale,y=d.countRender,x=d.closeIcon,w=d.onChange,S=d.onTransform,C=d.toolbarRender,k=d.imageRender,j=eo(d,QM),$=function(e){var t=_(n.useState({}),2),r=t[0],o=t[1],i=n.useCallback(function(e,t){return o(function(n){return A(A({},n),{},E({},e,t))}),function(){o(function(t){var n=A({},t);return delete n[e],n})}},[]),a=n.useMemo(function(){return e?e.map(function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach(function(n){["src"].concat(M(XM)).includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(r).reduce(function(e,t){var n=r[t],o=n.canPreview,i=n.data;return o&&e.push({data:i,id:t}),e},[])},[e,r]);return[a,i,!!e]}(c),P=_($,3),N=P[0],I=P[1],T=P[2],R=_(mo(0,{value:m}),2),D=R[0],L=R[1],q=_((0,n.useState)(!1),2),z=q[0],B=q[1],H=(null===(t=N[D])||void 0===t?void 0:t.data)||{},F=H.src,W=eo(H,ZM),K=_(mo(!!f,{value:f,onChange:function(e,t){null==p||p(e,t,D)}}),2),U=K[0],V=K[1],G=_((0,n.useState)(null),2),Y=G[0],X=G[1],Q=n.useCallback(function(e,t,n,r){var o=T?N.findIndex(function(e){return e.data.src===t}):N.findIndex(function(t){return t.id===e});L(o<0?0:o),V(!0),X({x:n,y:r}),B(!0)},[N,T]);n.useEffect(function(){U?z||L(0):B(!1)},[U]);var Z=n.useMemo(function(){return{register:I,onPreview:Q}},[I,Q]);return n.createElement(LM.Provider,{value:Z},i,n.createElement(YM,Ve({"aria-hidden":!U,movable:v,visible:U,prefixCls:o,closeIcon:x,onClose:function(){V(!1),X(null)},mousePosition:Y,imgCommonProps:W,src:F,fallback:u,icons:l,minScale:g,maxScale:b,getContainer:h,current:D,count:N.length,countRender:y,onTransform:S,toolbarRender:C,imageRender:k,onChange:function(e,t){L(e),null==w||w(e,t)}},j)))};var eT=0;var tT=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],nT=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],rT=function(e){var t=e.src,r=e.alt,o=e.onPreviewClose,i=e.prefixCls,a=void 0===i?"rc-image":i,l=e.previewPrefixCls,c=void 0===l?"".concat(a,"-preview"):l,s=e.placeholder,u=e.fallback,d=e.width,f=e.height,p=e.style,h=e.preview,m=void 0===h||h,v=e.className,g=e.onClick,b=e.onError,y=e.wrapperClassName,x=e.wrapperStyle,w=e.rootClassName,S=eo(e,tT),C=s&&!0!==s,k="object"===O(m)?m:{},j=k.src,$=k.visible,P=void 0===$?void 0:$,N=k.onVisibleChange,I=void 0===N?o:N,M=k.getContainer,T=void 0===M?void 0:M,R=k.mask,D=k.maskClassName,L=k.movable,q=k.icons,z=k.scaleStep,B=k.minScale,H=k.maxScale,F=k.imageRender,W=k.toolbarRender,K=eo(k,nT),U=null!=j?j:t,V=_(mo(!!P,{value:P,onChange:I}),2),G=V[0],Y=V[1],X=_(FM({src:t,isCustomPlaceholder:C,fallback:u}),3),Q=X[0],Z=X[1],J=X[2],ee=_((0,n.useState)(null),2),te=ee[0],ne=ee[1],re=(0,n.useContext)(LM),oe=!!m,ie=Rr()(a,y,w,E({},"".concat(a,"-error"),"error"===J)),ae=(0,n.useMemo)(function(){var t={};return XM.forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t},XM.map(function(t){return e[t]})),le=function(e,t){var r=_(n.useState(function(){return String(eT+=1)}),1)[0],o=n.useContext(LM),i={data:t,canPreview:e};return n.useEffect(function(){if(o)return o.register(r,i)},[]),n.useEffect(function(){o&&o.register(r,i)},[e,t]),r}(oe,(0,n.useMemo)(function(){return A(A({},ae),{},{src:U})},[U,ae]));return n.createElement(n.Fragment,null,n.createElement("div",Ve({},S,{className:ie,onClick:oe?function(e){var t=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}(e.target),n=t.left,r=t.top;re?re.onPreview(le,U,n,r):(ne({x:n,y:r}),Y(!0)),null==g||g(e)}:g,style:A({width:d,height:f},x)}),n.createElement("img",Ve({},ae,{className:Rr()("".concat(a,"-img"),E({},"".concat(a,"-img-placeholder"),!0===s),v),style:A({height:f},p),ref:Q},Z,{width:d,height:f,onError:b})),"loading"===J&&n.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},s),R&&oe&&n.createElement("div",{className:Rr()("".concat(a,"-mask"),D),style:{display:"none"===(null==p?void 0:p.display)?"none":void 0}},R)),!re&&oe&&n.createElement(YM,Ve({"aria-hidden":!G,visible:G,prefixCls:c,onClose:function(){Y(!1),ne(null)},mousePosition:te,src:U,alt:r,imageInfo:{width:d,height:f},fallback:u,getContainer:T,icons:q,movable:L,scaleStep:z,minScale:B,maxScale:H,rootClassName:w,imageRender:F,imgCommonProps:ae,toolbarRender:W},K)))};rT.PreviewGroup=JM;const oT=rT;const iT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var aT=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:iT}))}; | |
| 124 | +/** */const lT=n.forwardRef(aT);const cT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};var sT=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:cT}))}; | |
| 125 | +/** */const uT=n.forwardRef(sT);const dT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};var fT=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:dT}))}; | |
| 126 | +/** */const pT=n.forwardRef(fT);const hT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};var mT=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:hT}))}; | |
| 127 | +/** */const vT=n.forwardRef(mT);const gT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var bT=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:gT}))}; | |
| 128 | +/** */const yT=n.forwardRef(bT);const xT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var wT=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:xT}))}; | |
| 129 | +/** */const ST=n.forwardRef(wT),CT=e=>({position:e||"absolute",inset:0}),OT=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Pn("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Ci),{padding:`0 ${$e(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},kT=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new Pn(n).setA(.1),p=f.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${$e(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},ET=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new Pn(t).setA(.1),c=l.clone().setA(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),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:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},jT=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},CT()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},CT()),{transition:`transform ${r} ${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"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[kT(e),ET(e)]}]},$T=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({},OT(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},CT())}}},PT=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Kh(e,"zoom"),"&":mv(e,!0)}},NT=ql("Image",e=>{const t=`${e.componentCls}-preview`,n=$l(e,{previewCls:t,modalMaskBg:new Pn("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[$T(n),jT(n),gv($l(n,{componentCls:t})),PT(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Pn(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Pn(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Pn(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}));var _T=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const IT={rotateLeft:n.createElement(uT,null),rotateRight:n.createElement(pT,null),zoomIn:n.createElement(yT,null),zoomOut:n.createElement(ST,null),close:n.createElement(Ra,null),left:n.createElement(lT,null),right:n.createElement(Rs,null),flipX:n.createElement(vT,null),flipY:n.createElement(vT,{rotate:90})};var MT=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const TT=e=>{const{prefixCls:t,preview:r,className:o,rootClassName:i,style:a}=e,l=MT(e,["prefixCls","preview","className","rootClassName","style"]);const{getPrefixCls:c,getPopupContainer:s,className:u,style:d,preview:f}=C("image"),[p]=su("Image"),h=c("image",t),m=c(),v=ul(h),[g,b,y]=NT(h,v),x=Rr()(i,b,y,v),w=Rr()(o,b,u),[S]=vl("ImagePreview","object"==typeof r?r.zIndex:void 0),O=n.useMemo(()=>{if(!1===r)return r;const e="object"==typeof r?r:{},{getContainer:t,closeIcon:o,rootClassName:i,destroyOnClose:a,destroyOnHidden:l}=e,c=MT(e,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:n.createElement("div",{className:`${h}-mask-info`},n.createElement(Jb,null),null==p?void 0:p.preview),icons:IT},c),{destroyOnClose:null!=l?l:a,rootClassName:Rr()(x,i),getContainer:null!=t?t:s,transitionName:Zs(m,"zoom",e.transitionName),maskTransitionName:Zs(m,"fade",e.maskTransitionName),zIndex:S,closeIcon:null!=o?o:null==f?void 0:f.closeIcon})},[r,p,null==f?void 0:f.closeIcon]),k=Object.assign(Object.assign({},d),a);return g(n.createElement(oT,Object.assign({prefixCls:h,preview:O,rootClassName:x,className:w,style:k},l)))};TT.PreviewGroup=e=>{var{previewPrefixCls:t,preview:r}=e,o=_T(e,["previewPrefixCls","preview"]);const{getPrefixCls:i,direction:a}=n.useContext(x),l=i("image",t),c=`${l}-preview`,s=i(),u=ul(l),[d,f,p]=NT(l,u),[h]=vl("ImagePreview","object"==typeof r?r.zIndex:void 0),m=n.useMemo(()=>Object.assign(Object.assign({},IT),{left:"rtl"===a?n.createElement(Rs,null):n.createElement(lT,null),right:"rtl"===a?n.createElement(lT,null):n.createElement(Rs,null)}),[a]),v=n.useMemo(()=>{var e;if(!1===r)return r;const t="object"==typeof r?r:{},n=Rr()(f,p,u,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:Zs(s,"zoom",t.transitionName),maskTransitionName:Zs(s,"fade",t.maskTransitionName),rootClassName:n,zIndex:h})},[r]);return d(n.createElement(oT.PreviewGroup,Object.assign({preview:v,previewPrefixCls:c,icons:m},o)))};const AT=TT;function RT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DT(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DT(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const LT=function(e){var t,n,r,o,a=e.id,l=e.field,s=l.value,u=l.help,d=l.options,f=(l.empty,l.searchable,null===(t=e.field)||void 0===t?void 0:t.fieldType),p=null===(n=e.field)||void 0===n?void 0:n.parentId,m=null===(r=e.field)||void 0===r?void 0:r.index,v=null===(o=e.field)||void 0===o?void 0:o.repeaterData,g=RT(c(),2),b=(g[0],g[1]);return(0,i.jsxs)("div",{className:"rtsb-field rtsb-image-select-field",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsx)(AM.Group,{size:"large",value:s,onChange:function(e){b({type:h,id:a,value:e.target.value,fieldType:f,parentId:p,repeaterData:v,index:m})},children:Object.keys(d).map(function(e){var t,n;return(0,i.jsx)(AM,{value:e,children:(0,i.jsx)(AT,{preview:!1,src:null===(t=d[e])||void 0===t?void 0:t.url,alt:null===(n=d[e])||void 0===n?void 0:n.label})},e)})})}),u&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};function qT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zT(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zT(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const BT=function(e){var t,n,r,o,a=e.id,l=e.field,s=l.value,u=l.help,d=l.options,f=(l.empty,l.searchable,null===(t=e.field)||void 0===t?void 0:t.fieldType),p=null===(n=e.field)||void 0===n?void 0:n.parentId,m=null===(r=e.field)||void 0===r?void 0:r.index,v=null===(o=e.field)||void 0===o?void 0:o.repeaterData,g=qT(c(),2),b=(g[0],g[1]);return(0,i.jsxs)("div",{className:"rtsb-field rtsb-text-select-field",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsx)(AM.Group,{size:"large",value:s,onChange:function(e){b({type:h,id:a,value:e.target.value,fieldType:f,parentId:p,repeaterData:v,index:m})},buttonStyle:"solid",children:Object.keys(d).map(function(e){return(0,i.jsx)(AM.Button,{value:e,children:d[e]},e)})})}),u&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};const HT=function(e){var t=e.field.text;return(0,i.jsx)("div",{className:"rtsb-field-description",children:(0,i.jsx)("div",{className:"rtsb-field__description-label",dangerouslySetInnerHTML:{__html:t}})})};function FT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return WT(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?WT(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var KT=FS.Option;const UT=function(e){var t,n,r,o,a=e.id,l=e.field,s=l.value,u=l.help,d=l.options,f=l.empty,p=l.searchable,m=l.multiple,v=null===(t=e.field)||void 0===t?void 0:t.fieldType,g=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(r=e.field)||void 0===r?void 0:r.index,y=null===(o=e.field)||void 0===o?void 0:o.repeaterData,x=FT(c(),2),w=(x[0],x[1]);return(0,i.jsxs)("div",{className:"rtsb-field select icon-select",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsxs)(FS,{showSearch:!!p,value:s,mode:m?"multiple":null,popupClassName:"rtsb-icon-selector",onChange:function(e){w({type:h,id:a,value:e,fieldType:v,parentId:g,repeaterData:y,index:b})},filterOption:function(e,t){return null==t?void 0:t.key.toLowerCase().includes(e.toLowerCase())},children:[f&&(0,i.jsx)(KT,{value:"",children:f}),Object.keys(d).map(function(e){return(0,i.jsx)(KT,{value:e,children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:d[e]}})},e)})]})}),u&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};var VT=o(5708),GT=o.n(VT),YT=o(5072),XT=o.n(YT),QT=o(6452),ZT={insert:"head",singleton:!1};XT()(QT.A,ZT);QT.A.locals;function JT(e){return JT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JT(e)}function eA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eA(Object(n),!0).forEach(function(t){nA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=JT(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=JT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==JT(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oA(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oA(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var iA=jy.TextArea;const aA=function(e){var t,r,o,a,l=e.field,s=l.help,u=l.value,d=l.placeholder,f=l.disabled,p=l.isPro,m=e.id,v=null===(t=e.field)||void 0===t?void 0:t.fieldType,g=null===(r=e.field)||void 0===r?void 0:r.parentId,b=null===(o=e.field)||void 0===o?void 0:o.index,y=null===(a=e.field)||void 0===a?void 0:a.repeaterData,x=rA(c(),2),w=(x[0],x[1]),S=rA((0,n.useState)("visual"),2),C=S[0],O=S[1],k=rA((0,n.useState)(u),2),E=k[0],j=k[1],$={};f?$.disabled=f||!1:p&&($.disabled=p);var P=function(e){w({type:h,id:m,value:e,fieldType:v,parentId:g,repeaterData:y,index:b})},N=function(e){O(e)};return(0,n.useEffect)(function(){j(u)},[u]),(0,i.jsxs)("div",{className:"rtsb-field textarea",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsxs)("div",{className:"rtsb-field-control ".concat(p?"rtsb-text-editor-disable":""),children:[(0,i.jsxs)("div",{className:"editor-tabs",children:[(0,i.jsx)("button",{onClick:function(){return N("visual")},className:"".concat("visual"===C?"active ":"","rtsb-switch-editor"),children:"Visual"}),(0,i.jsx)("button",{onClick:function(){return N("html")},className:"".concat("html"===C?"active ":"","html rtsb-switch-editor"),children:"HTML"})]}),"visual"===C?(0,i.jsx)(GT(),{theme:"snow",value:E,modules:{toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"bullet"},{list:"ordered"}],["blockquote",{align:[]},"link","code"],[{color:[]},{background:[]}]]},formats:["header","bold","italic","underline","bullet","list","blockquote","align","link","code","color","background"],onChange:function(e){p&&(e=""),j(e),P(e)},placeholder:d}):(0,i.jsx)(iA,tA(tA({},$),{},{rows:4,className:"rtsb-form-field",value:E,onChange:function(e){return j(e.target.value)},placeholder:d}))]}),s&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function lA(e){return lA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lA(e)}function cA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cA(Object(n),!0).forEach(function(t){uA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=lA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lA(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fA(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fA(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const pA=function(e){var t,n,r,o,a,l=e.field,s=l.help,u=l.value,d=l.placeholder,f=l.size,p=l.min,m=l.max,v=e.id,g=dA(c(),2),b=g[0],y=g[1],x=null===(t=e.field)||void 0===t?void 0:t.fieldType,w=null===(n=e.field)||void 0===n?void 0:n.parentId,S=null===(r=e.field)||void 0===r?void 0:r.index,C=null===(o=e.field)||void 0===o?void 0:o.repeaterData,O={};"currency_options"===w&&"currency_rate"===v&&(O.disabled="automatically"===(null===(a=b.sections.modules)||void 0===a||null===(a=a.list)||void 0===a||null===(a=a.currency_switcher)||void 0===a||null===(a=a.fields)||void 0===a||null===(a=a.exchange_rates)||void 0===a?void 0:a.value));return(0,i.jsxs)("div",{className:"rtsb-field text",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsx)(NC,sA(sA({},O),{},{className:"rtsb-form-field",size:f,min:p,max:m,defaultValue:"null"!==u?u:"",placeholder:d,value:"null"!==u?u:"",onChange:function(e){y({type:h,id:v,value:e,fieldType:x,parentId:w,repeaterData:C,index:S})}}))}),s&&(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};const hA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var mA=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:hA}))}; | |
| 130 | +/** */const vA=n.forwardRef(mA);var gA=function(e){if(D()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1};function bA(e,t){return Array.isArray(e)||void 0===t?gA(e):function(e,t){if(!gA(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}const yA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};var xA=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:yA}))}; | |
| 131 | +/** */const wA=n.forwardRef(xA),SA=e=>{const t={};return[1,2,3,4,5].forEach(n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t},CA=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},$i(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},OA=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:qn[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),kA=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${$e(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},EA=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),jA=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},SA(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),OA(e)),CA(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},$i(e)),{marginInlineStart:e.marginXXS})}),kA(e)),EA(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},$A=ql("Typography",e=>[jA(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),PA=e=>{const{prefixCls:t,"aria-label":r,className:o,style:i,direction:a,maxLength:l,autoSize:c=!0,value:s,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:h=n.createElement(wA,null)}=e,m=n.useRef(null),v=n.useRef(!1),g=n.useRef(null),[b,y]=n.useState(s);n.useEffect(()=>{y(s)},[s]),n.useEffect(()=>{var e;if(null===(e=m.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=m.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}},[]);const x=()=>{u(b.trim())},[w,S,C]=$A(t),O=Rr()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===a,[`${t}-${p}`]:!!p},o,S,C);return w(n.createElement("div",{className:O,style:i},n.createElement(ky,{ref:m,maxLength:l,value:b,onChange:({target:e})=>{y(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{v.current||(g.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:o})=>{g.current!==e||v.current||t||n||r||o||(e===Va.ENTER?(x(),null==f||f()):e===Va.ESC&&d())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{x()},"aria-label":r,rows:1,autoSize:c}),null!==h?Ec(h,{className:`${t}-edit-content-confirm`}):null))};var NA=o(7965),_A=o.n(NA);const IA=(e,t=!1)=>t&&null==e?[]:Array.isArray(e)?e:[e];var MA=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const TA=({copyConfig:e,children:t})=>{const[r,o]=n.useState(!1),[i,a]=n.useState(!1),l=n.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},s={};e.format&&(s.format=e.format),n.useEffect(()=>c,[]);return{copied:r,copyLoading:i,onClick:fo(n=>MA(void 0,void 0,void 0,function*(){var r;null==n||n.preventDefault(),null==n||n.stopPropagation(),a(!0);try{const i="function"==typeof e.text?yield e.text():e.text;_A()(i||IA(t,!0).join("")||"",s),a(!1),o(!0),c(),l.current=setTimeout(()=>{o(!1)},3e3),null===(r=e.onCopy)||void 0===r||r.call(e,n)}catch(e){throw a(!1),e}}))}};function AA(e,t){return n.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]},[e])}const RA=e=>{const t=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{t.current=e}),t.current},DA=(e,t,r)=>(0,n.useMemo)(()=>!0===e?{title:null!=t?t:r}:(0,n.isValidElement)(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:r},e):{title:e},[e,t,r]);var LA=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qA=n.forwardRef((e,t)=>{const{prefixCls:r,component:o="article",className:i,rootClassName:a,setContentRef:l,children:c,direction:s,style:u}=e,d=LA(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,className:h,style:m}=C("typography"),v=null!=s?s:p,g=l?Yr(t,l):t,b=f("typography",r);const[y,x,w]=$A(b),S=Rr()(b,h,{[`${b}-rtl`]:"rtl"===v},i,a,x,w),O=Object.assign(Object.assign({},m),u);return y(n.createElement(o,Object.assign({className:S,style:O,ref:g},d),c))});const zA=qA;const BA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};var HA=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:BA}))}; | |
| 132 | +/** */const FA=n.forwardRef(HA);function WA(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function KA(e,t,n){return!0===e||void 0===e?t:e||n&&t}const UA=e=>["string","number"].includes(typeof e),VA=({prefixCls:e,copied:t,locale:r,iconOnly:o,tooltips:i,icon:a,tabIndex:l,onCopy:c,loading:s})=>{const u=WA(i),d=WA(a),{copied:f,copy:p}=null!=r?r:{},h=t?f:p,m=KA(u[t?1:0],h),v="string"==typeof m?m:h;return n.createElement(om,{title:m},n.createElement("button",{type:"button",className:Rr()(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:o}),onClick:c,"aria-label":v,tabIndex:l},t?KA(d[1],n.createElement(MS,null),!0):KA(d[0],s?n.createElement(Ka,null):n.createElement(FA,null),!0)))},GA=n.forwardRef(({style:e,children:t},r)=>{const o=n.useRef(null);return n.useImperativeHandle(r,()=>({isExceed:()=>{const e=o.current;return e.scrollHeight>e.clientHeight},getHeight:()=>o.current.clientHeight})),n.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)});function YA(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],a=n+(UA(i)?String(i).length:1);if(a>t){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const XA=0,QA=4,ZA={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function JA(e){const{enableMeasure:t,width:r,text:o,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:s}=e,u=n.useMemo(()=>Dc(o),[o]),d=n.useMemo(()=>(e=>e.reduce((e,t)=>e+(UA(t)?String(t).length:1),0))(u),[o]),f=n.useMemo(()=>i(u,!1),[o]),[p,h]=n.useState(null),m=n.useRef(null),v=n.useRef(null),g=n.useRef(null),b=n.useRef(null),y=n.useRef(null),[x,w]=n.useState(!1),[S,C]=n.useState(XA),[O,k]=n.useState(0),[E,j]=n.useState(null);Re(()=>{C(t&&r&&d?1:XA)},[r,o,a,t,u]),Re(()=>{var e,t,n,r;if(1===S){C(2);const e=v.current&&getComputedStyle(v.current).whiteSpace;j(e)}else if(2===S){const o=!!(null===(e=g.current)||void 0===e?void 0:e.isExceed());C(o?3:QA),h(o?[0,d]:null),w(o);const i=(null===(t=g.current)||void 0===t?void 0:t.getHeight())||0,l=1===a?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0,c=(null===(r=y.current)||void 0===r?void 0:r.getHeight())||0,u=Math.max(i,l+c);k(u+1),s(o)}},[S]);const $=p?Math.ceil((p[0]+p[1])/2):0;Re(()=>{var e;const[t,n]=p||[0,0];if(t!==n){const r=((null===(e=m.current)||void 0===e?void 0:e.getHeight())||0)>O;let o=$;n-t===1&&(o=r?t:n),h(r?[t,o]:[o,n])}},[p,$]);const P=n.useMemo(()=>{if(!t)return i(u,!1);if(3!==S||!p||p[0]!==p[1]){const e=i(u,!1);return[QA,XA].includes(S)?e:n.createElement("span",{style:Object.assign(Object.assign({},ZA),{WebkitLineClamp:a})},e)}return i(l?u:YA(u,p[0]),x)},[l,S,p,u].concat(M(c))),N={width:r,margin:0,padding:0,whiteSpace:"nowrap"===E?"normal":"inherit"};return n.createElement(n.Fragment,null,P,2===S&&n.createElement(n.Fragment,null,n.createElement(GA,{style:Object.assign(Object.assign(Object.assign({},N),ZA),{WebkitLineClamp:a}),ref:g},f),n.createElement(GA,{style:Object.assign(Object.assign(Object.assign({},N),ZA),{WebkitLineClamp:a-1}),ref:b},f),n.createElement(GA,{style:Object.assign(Object.assign(Object.assign({},N),ZA),{WebkitLineClamp:1}),ref:y},i([],!0))),3===S&&p&&p[0]!==p[1]&&n.createElement(GA,{style:Object.assign(Object.assign({},N),{top:400}),ref:m},i(YA(u,$),!0)),1===S&&n.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const eR=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:o})=>(null==o?void 0:o.title)&&e?n.createElement(om,Object.assign({open:!!t&&void 0},o),r):r;var tR=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nR=["delete","mark","code","underline","strong","keyboard","italic"],rR=n.forwardRef((e,t)=>{var r;const{prefixCls:o,className:i,style:a,type:l,disabled:c,children:s,ellipsis:u,editable:d,copyable:f,component:p,title:h}=e,m=tR(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:v,direction:g}=n.useContext(x),[b]=su("Text"),y=n.useRef(null),w=n.useRef(null),S=v("typography",o),C=Sc(m,nR),[O,k]=AA(d),[E,j]=mo(!1,{value:k.editing}),{triggerType:$=["icon"]}=k,P=e=>{var t;e&&(null===(t=k.onStart)||void 0===t||t.call(k)),j(e)},N=RA(E);Re(()=>{var e;!E&&N&&(null===(e=w.current)||void 0===e||e.focus())},[E]);const _=e=>{null==e||e.preventDefault(),P(!0)},I=e=>{var t;null===(t=k.onChange)||void 0===t||t.call(k,e),P(!1)},T=()=>{var e;null===(e=k.onCancel)||void 0===e||e.call(k),P(!1)},[A,R]=AA(f),{copied:D,copyLoading:L,onClick:q}=TA({copyConfig:R,children:s}),[z,B]=n.useState(!1),[H,F]=n.useState(!1),[W,K]=n.useState(!1),[U,V]=n.useState(!1),[G,Y]=n.useState(!0),[X,Q]=AA(u,{expandable:!1,symbol:e=>e?null==b?void 0:b.collapse:null==b?void 0:b.expand}),[Z,J]=mo(Q.defaultExpanded||!1,{value:Q.expanded}),ee=X&&(!Z||"collapsible"===Q.expandable),{rows:te=1}=Q,ne=n.useMemo(()=>ee&&(void 0!==Q.suffix||Q.onEllipsis||Q.expandable||O||A),[ee,Q,O,A]);Re(()=>{X&&!ne&&(B(bA("webkitLineClamp")),F(bA("textOverflow")))},[ne,X]);const[re,oe]=n.useState(ee),ie=n.useMemo(()=>!ne&&(1===te?H:z),[ne,H,z]);Re(()=>{oe(ie&&ee)},[ie,ee]);const ae=ee&&(re?U:W),le=ee&&1===te&&re,ce=ee&&te>1&&re,[se,ue]=n.useState(0),de=e=>{var t;K(e),W!==e&&(null===(t=Q.onEllipsis)||void 0===t||t.call(Q,e))};n.useEffect(()=>{const e=y.current;if(X&&re&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}(e);U!==t&&V(t)}},[X,re,s,ce,G,se]),n.useEffect(()=>{const e=y.current;if("undefined"==typeof IntersectionObserver||!e||!re||!ee)return;const t=new IntersectionObserver(()=>{Y(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[re,ee]);const fe=DA(Q.tooltip,k.text,s),pe=n.useMemo(()=>{if(X&&!re)return[k.text,s,h,fe.title].find(UA)},[X,re,h,fe.title,ae]);if(E)return n.createElement(PA,{value:null!==(r=k.text)&&void 0!==r?r:"string"==typeof s?s:"",onSave:I,onCancel:T,onEnd:k.onEnd,prefixCls:S,className:i,style:a,direction:g,component:p,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon});const he=()=>{const{expandable:e,symbol:t}=Q;return e?n.createElement("button",{type:"button",key:"expand",className:`${S}-${Z?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;J(t.expanded),null===(n=Q.onExpand)||void 0===n||n.call(Q,e,t)})(e,{expanded:!Z}),"aria-label":Z?b.collapse:null==b?void 0:b.expand},"function"==typeof t?t(Z):t):null},me=()=>{if(!O)return;const{icon:e,tooltip:t,tabIndex:r}=k,o=Dc(t)[0]||(null==b?void 0:b.edit),i="string"==typeof o?o:"";return $.includes("icon")?n.createElement(om,{key:"edit",title:!1===t?"":o},n.createElement("button",{type:"button",ref:w,className:`${S}-edit`,onClick:_,"aria-label":i,tabIndex:r},e||n.createElement(vA,{role:"button"}))):null},ve=e=>[e&&he(),me(),A?n.createElement(VA,Object.assign({key:"copy"},R,{prefixCls:S,copied:D,locale:b,onCopy:q,loading:L,iconOnly:null==s})):null];return n.createElement(sf,{onResize:({offsetWidth:e})=>{ue(e)},disabled:!ee},r=>n.createElement(eR,{tooltipProps:fe,enableEllipsis:ee,isEllipsis:ae},n.createElement(zA,Object.assign({className:Rr()({[`${S}-${l}`]:l,[`${S}-disabled`]:c,[`${S}-ellipsis`]:X,[`${S}-ellipsis-single-line`]:le,[`${S}-ellipsis-multiple-line`]:ce},i),prefixCls:o,style:Object.assign(Object.assign({},a),{WebkitLineClamp:ce?te:void 0}),component:p,ref:Yr(r,y,t),direction:g,onClick:$.includes("text")?_:void 0,"aria-label":null==pe?void 0:pe.toString(),title:h},C),n.createElement(JA,{enableMeasure:ee&&!re,text:s,rows:te,width:se,onEllipsis:de,expanded:Z,miscDeps:[D,Z,L,O,A,b].concat(M(nR.map(t=>e[t])))},(t,r)=>function({mark:e,code:t,underline:r,delete:o,strong:i,keyboard:a,italic:l},c){let s=c;function u(e,t){t&&(s=n.createElement(e,{},s))}return u("strong",i),u("u",r),u("del",o),u("code",t),u("mark",e),u("kbd",a),u("i",l),s}(e,n.createElement(n.Fragment,null,t.length>0&&r&&!Z&&pe?n.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!Z&&n.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Q.suffix,ve(e)])(r)))))))}),oR=rR;var iR=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const aR=n.forwardRef((e,t)=>{var{ellipsis:r,rel:o}=e,i=iR(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:void 0===o&&"_blank"===i.target?"noopener noreferrer":o});return delete a.navigate,n.createElement(oR,Object.assign({},a,{ref:t,ellipsis:!!r,component:"a"}))}),lR=aR,cR=n.forwardRef((e,t)=>n.createElement(oR,Object.assign({ref:t},e,{component:"div"})));var sR=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const uR=(e,t)=>{var{ellipsis:r}=e,o=sR(e,["ellipsis"]);const i=n.useMemo(()=>r&&"object"==typeof r?Sc(r,["expandable","rows"]):r,[r]);return n.createElement(oR,Object.assign({ref:t},o,{ellipsis:i,component:"span"}))},dR=n.forwardRef(uR);var fR=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pR=[1,2,3,4,5],hR=n.forwardRef((e,t)=>{const{level:r=1}=e,o=fR(e,["level"]);const i=pR.includes(r)?`h${r}`:"h1";return n.createElement(oR,Object.assign({ref:t},o,{component:i}))}),mR=zA;mR.Text=dR,mR.Link=lR,mR.Title=hR,mR.Paragraph=cR;const vR=mR;const gR={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"};var bR=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:gR}))}; | |
| 133 | +/** */const yR=n.forwardRef(bR),xR=(0,n.createContext)(null);const wR=function(e){var t=e.activeTabOffset,r=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=_((0,n.useState)(),2),d=u[0],f=u[1],p=(0,n.useRef)(),h=n.useCallback(function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e},[l]);function m(){Ko.cancel(p.current)}return(0,n.useEffect)(function(){var e={};if(t)if(r){e.width=h(t.width);var n=o?"right":"left";"start"===s&&(e[n]=t[n]),"center"===s&&(e[n]=t[n]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[n]=t[n]+t.width,e.transform="translateX(-100%)")}else e.height=h(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return m(),p.current=Ko(function(){var t=d&&e&&Object.keys(e).every(function(t){var n=e[t],r=d[t];return"number"==typeof n&&"number"==typeof r?Math.round(n)===Math.round(r):n===r});t||f(e)}),m},[JSON.stringify(t),r,o,s,h]),{style:d}};var SR={width:0,height:0,left:0,top:0};function CR(e,t){var r=n.useRef(e),o=_(n.useState({}),2)[1];return[r.current,function(e){var n="function"==typeof e?e(r.current):e;n!==r.current&&t(n,r.current),r.current=n,o({})}]}var OR=Math.pow(.995,20);function kR(e){var t=_((0,n.useState)(0),2),r=t[0],o=t[1],i=(0,n.useRef)(0),a=(0,n.useRef)();return a.current=e,Ae(function(){var e;null===(e=a.current)||void 0===e||e.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var ER={width:0,height:0,left:0,top:0,right:0};function jR(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function $R(e){return String(e).replace(/"/g,"TABS_DQ")}function PR(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var NR=n.forwardRef(function(e,t){var r=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?n.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null});const _R=NR;var IR=n.forwardRef(function(e,t){var r,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==O(a)||n.isValidElement(a)?l.right=a:l=a,"right"===o&&(r=l.right),"left"===o&&(r=l.left),r?n.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},r):null});const MR=IR;var TR=Va.ESC,AR=Va.TAB;const RR=(0,n.forwardRef)(function(e,t){var r=e.overlay,o=e.arrow,i=e.prefixCls,a=(0,n.useMemo)(function(){return"function"==typeof r?r():r},[r]),l=Yr(t,Jr(a));return n.createElement(n.Fragment,null,o&&n.createElement("div",{className:"".concat(i,"-arrow")}),n.cloneElement(a,{ref:Qr(a)?l:void 0}))});var DR={adjustX:1,adjustY:1},LR=[0,0];const qR={topLeft:{points:["bl","tl"],overflow:DR,offset:[0,-4],targetOffset:LR},top:{points:["bc","tc"],overflow:DR,offset:[0,-4],targetOffset:LR},topRight:{points:["br","tr"],overflow:DR,offset:[0,-4],targetOffset:LR},bottomLeft:{points:["tl","bl"],overflow:DR,offset:[0,4],targetOffset:LR},bottom:{points:["tc","bc"],overflow:DR,offset:[0,4],targetOffset:LR},bottomRight:{points:["tr","br"],overflow:DR,offset:[0,4],targetOffset:LR}};var zR=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function BR(e,t){var r,o=e.arrow,i=void 0!==o&&o,a=e.prefixCls,l=void 0===a?"rc-dropdown":a,c=e.transitionName,s=e.animation,u=e.align,d=e.placement,f=void 0===d?"bottomLeft":d,p=e.placements,h=void 0===p?qR:p,m=e.getPopupContainer,v=e.showAction,g=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,x=e.visible,w=e.trigger,S=void 0===w?["hover"]:w,C=e.autoFocus,O=e.overlay,k=e.children,j=e.onVisibleChange,$=eo(e,zR),P=_(n.useState(),2),N=P[0],I=P[1],M="visible"in e?x:N,T=n.useRef(null),A=n.useRef(null),R=n.useRef(null);n.useImperativeHandle(t,function(){return T.current});var D=function(e){I(e),null==j||j(e)};!function(e){var t=e.visible,r=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=n.useRef(!1),c=function(){var e,n;t&&(null===(e=r.current)||void 0===e||null===(n=e.focus)||void 0===n||n.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case TR:c();break;case AR:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};n.useEffect(function(){return t?(window.addEventListener("keydown",u),i&&Ko(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[t])}({visible:M,triggerRef:R,onVisibleChange:D,autoFocus:C,overlayRef:A});var L,q,z,B=function(){return n.createElement(RR,{ref:A,overlay:O,prefixCls:l,arrow:i})},H=n.cloneElement(k,{className:Rr()(null===(r=k.props)||void 0===r?void 0:r.className,M&&(L=e.openClassName,void 0!==L?L:"".concat(l,"-open"))),ref:Qr(k)?Yr(R,Jr(k)):void 0}),F=g;return F||-1===S.indexOf("contextMenu")||(F=["click"]),n.createElement(Df,Ve({builtinPlacements:h},$,{prefixCls:l,ref:T,popupClassName:Rr()(b,E({},"".concat(l,"-show-arrow"),i)),popupStyle:y,action:S,showAction:v,hideAction:F,popupPlacement:f,popupAlign:u,popupTransitionName:c,popupAnimation:s,popupVisible:M,stretch:(q=e.minOverlayWidthMatchTrigger,z=e.alignPoint,("minOverlayWidthMatchTrigger"in e?q:!z)?"minWidth":""),popup:"function"==typeof O?B:B(),onPopupVisibleChange:D,onPopupClick:function(t){var n=e.onOverlayClick;I(!1),n&&n(t)},getPopupContainer:m}),H)}const HR=n.forwardRef(BR);var FR=n.createContext(null);function WR(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function KR(e){return WR(n.useContext(FR),e)}var UR=["children","locked"],VR=n.createContext(null);function GR(e){var t=e.children,r=e.locked,o=eo(e,UR),i=n.useContext(VR),a=Y(function(){return e=o,t=A({},i),Object.keys(e).forEach(function(n){var r=e[n];void 0!==r&&(t[n]=r)}),t;var e,t},[i,o],function(e,t){return!(r||e[0]===t[0]&&re(e[1],t[1],!0))});return n.createElement(VR.Provider,{value:a},t)}var YR=[],XR=n.createContext(null);function QR(){return n.useContext(XR)}var ZR=n.createContext(YR);function JR(e){var t=n.useContext(ZR);return n.useMemo(function(){return void 0!==e?[].concat(M(t),[e]):t},[t,e])}var eD=n.createContext(null);const tD=n.createContext({});function nD(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Cc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function rD(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=M(e.querySelectorAll("*")).filter(function(e){return nD(e,t)});return nD(e,t)&&n.unshift(e),n}var oD=Va.LEFT,iD=Va.RIGHT,aD=Va.UP,lD=Va.DOWN,cD=Va.ENTER,sD=Va.ESC,uD=Va.HOME,dD=Va.END,fD=[aD,lD,oD,iD];function pD(e,t){return rD(e,!0).filter(function(e){return t.has(e)})}function hD(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=pD(e,t),i=o.length,a=o.findIndex(function(e){return n===e});return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var mD=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var i=document.querySelector("[data-menu-id='".concat(WR(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))}),{elements:n,key2element:r,element2key:o}};function vD(e,t,r,o,i,a,l,c,s,u){var d=n.useRef(),f=n.useRef();f.current=t;var p=function(){Ko.cancel(d.current)};return n.useEffect(function(){return function(){p()}},[]),function(n){var h=n.which;if([].concat(fD,[cD,sD,uD,dD]).includes(h)){var m=a(),v=mD(m,o),g=v,b=g.elements,y=g.key2element,x=g.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),S=x.get(w),C=function(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if("inline"===e&&r===cD)return{inlineTrigger:!0};var s=E(E({},aD,i),lD,a),u=E(E(E(E({},oD,n?a:i),iD,n?i:a),lD,l),cD,l),d=E(E(E(E(E(E({},aD,i),lD,a),cD,l),sD,c),oD,n?l:c),iD,n?c:l);switch(null===(o={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l(S,!0).length,r,h);if(!C&&h!==uD&&h!==dD)return;(fD.includes(h)||[uD,dD].includes(h))&&n.preventDefault();var O=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=x.get(e);c(r),p(),d.current=Ko(function(){f.current===r&&t.focus()})}};if([uD,dD].includes(h)||C.sibling||!w){var k,j,$=pD(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):i.current,b);j=h===uD?$[0]:h===dD?$[$.length-1]:hD(k,b,w,C.offset),O(j)}else if(C.inlineTrigger)s(S);else if(C.offset>0)s(S,!0),p(),d.current=Ko(function(){v=mD(m,o);var e=w.getAttribute("aria-controls"),t=hD(document.getElementById(e),v.elements);O(t)},5);else if(C.offset<0){var P=l(S,!0),N=P[P.length-2],_=y.get(N);s(N,!1),O(_)}}null==u||u(n)}}var gD="__RC_UTIL_PATH_SPLIT__",bD=function(e){return e.join(gD)},yD="rc-menu-more";function xD(){var e=_(n.useState({}),2)[1],t=(0,n.useRef)(new Map),r=(0,n.useRef)(new Map),o=_(n.useState([]),2),i=o[0],a=o[1],l=(0,n.useRef)(0),c=(0,n.useRef)(!1),s=(0,n.useCallback)(function(n,o){var i=bD(o);r.current.set(i,n),t.current.set(n,i),l.current+=1;var a,s=l.current;a=function(){s===l.current&&(c.current||e({}))},Promise.resolve().then(a)},[]),u=(0,n.useCallback)(function(e,n){var o=bD(n);r.current.delete(o),t.current.delete(e)},[]),d=(0,n.useCallback)(function(e){a(e)},[]),f=(0,n.useCallback)(function(e,n){var r=t.current.get(e)||"",o=r.split(gD);return n&&i.includes(o[0])&&o.unshift(yD),o},[i]),p=(0,n.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return f(e,!0).includes(t)})},[f]),h=(0,n.useCallback)(function(e){var n="".concat(t.current.get(e)).concat(gD),o=new Set;return M(r.current.keys()).forEach(function(e){e.startsWith(n)&&o.add(r.current.get(e))}),o},[]);return n.useEffect(function(){return function(){c.current=!0}},[]),{registerPath:s,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:f,getKeys:function(){var e=M(t.current.keys());return i.length&&e.push(yD),e},getSubPathKeys:h}}function wD(e){var t=n.useRef(e);t.current=e;var r=n.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return e?r:void 0}var SD=Math.random().toFixed(5).toString().slice(2),CD=0;function OD(e,t,r,o){var i=n.useContext(VR),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(t){null==r||r({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),c(e)}),s}function kD(e){var t=n.useContext(VR),r=t.mode,o=t.rtl,i=t.inlineIndent;if("inline"!==r)return null;return o?{paddingRight:e*i}:{paddingLeft:e*i}}function ED(e){var t,r=e.icon,o=e.props,i=e.children;return null===r||!1===r?null:("function"==typeof r?t=n.createElement(r,A({},o)):"boolean"!=typeof r&&(t=r),t||i||null)}var jD=["item"];function $D(e){var t=e.item,n=eo(e,jD);return Object.defineProperty(n,"item",{get:function(){return ne(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var PD=["title","attribute","elementRef"],ND=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],_D=["active"],ID=function(e){io(r,e);var t=so(r);function r(){return oe(this,r),t.apply(this,arguments)}return ae(r,[{key:"render",value:function(){var e=this.props,t=e.title,r=e.attribute,o=e.elementRef,i=Sc(eo(e,PD),["eventKey","popupClassName","popupOffset","onTitleClick"]);return ne(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),n.createElement(fx.Item,Ve({},r,{title:"string"==typeof t?t:void 0},i,{ref:o}))}}]),r}(n.Component),MD=n.forwardRef(function(e,t){var r=e.style,o=e.className,i=e.eventKey,a=(e.warnKey,e.disabled),l=e.itemIcon,c=e.children,s=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,p=e.onKeyDown,h=e.onFocus,m=eo(e,ND),v=KR(i),g=n.useContext(VR),b=g.prefixCls,y=g.onItemClick,x=g.disabled,w=g.overflowDisabled,S=g.itemIcon,C=g.selectedKeys,O=g.onActive,k=n.useContext(tD)._internalRenderMenuItem,j="".concat(b,"-item"),$=n.useRef(),P=n.useRef(),N=x||a,_=Xr(t,P),I=JR(i);var T=function(e){return{key:i,keyPath:M(I).reverse(),item:$.current,domEvent:e}},R=l||S,D=OD(i,N,u,d),L=D.active,q=eo(D,_D),z=C.includes(i),B=kD(I.length),H={};"option"===e.role&&(H["aria-selected"]=z);var F=n.createElement(ID,Ve({ref:$,elementRef:_,role:null===s?"none":s||"menuitem",tabIndex:a?null:-1,"data-menu-id":w&&v?null:v},Sc(m,["extra"]),q,H,{component:"li","aria-disabled":a,style:A(A({},B),r),className:Rr()(j,E(E(E({},"".concat(j,"-active"),L),"".concat(j,"-selected"),z),"".concat(j,"-disabled"),N),o),onClick:function(e){if(!N){var t=T(e);null==f||f($D(t)),y(t)}},onKeyDown:function(e){if(null==p||p(e),e.which===Va.ENTER){var t=T(e);null==f||f($D(t)),y(t)}},onFocus:function(e){O(i),null==h||h(e)}}),c,n.createElement(ED,{props:A(A({},e),{},{isSelected:z}),icon:R}));return k&&(F=k(F,e,{selected:z})),F});function TD(e,t){var r=e.eventKey,o=QR(),i=JR(r);return n.useEffect(function(){if(o)return o.registerPath(r,i),function(){o.unregisterPath(r,i)}},[i]),o?null:n.createElement(MD,Ve({},e,{ref:t}))}const AD=n.forwardRef(TD);var RD=["className","children"],DD=function(e,t){var r=e.className,o=e.children,i=eo(e,RD),a=n.useContext(VR),l=a.prefixCls,c=a.mode,s=a.rtl;return n.createElement("ul",Ve({className:Rr()(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)},LD=n.forwardRef(DD);LD.displayName="SubMenuList";const qD=LD;function zD(e,t){return Dc(e).map(function(e,r){if(n.isValidElement(e)){var o,i,a=e.key,l=null!==(o=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a;null==l&&(l="tmp_key-".concat([].concat(M(t),[r]).join("-")));var c={key:l,eventKey:l};return n.cloneElement(e,c)}return e})}var BD={adjustX:1,adjustY:1},HD={topLeft:{points:["bl","tl"],overflow:BD},topRight:{points:["br","tr"],overflow:BD},bottomLeft:{points:["tl","bl"],overflow:BD},bottomRight:{points:["tr","br"],overflow:BD},leftTop:{points:["tr","tl"],overflow:BD},leftBottom:{points:["br","bl"],overflow:BD},rightTop:{points:["tl","tr"],overflow:BD},rightBottom:{points:["bl","br"],overflow:BD}},FD={topLeft:{points:["bl","tl"],overflow:BD},topRight:{points:["br","tr"],overflow:BD},bottomLeft:{points:["tl","bl"],overflow:BD},bottomRight:{points:["tr","br"],overflow:BD},rightTop:{points:["tr","tl"],overflow:BD},rightBottom:{points:["br","bl"],overflow:BD},leftTop:{points:["tl","tr"],overflow:BD},leftBottom:{points:["bl","br"],overflow:BD}};function WD(e,t,n){return t||(n?n[e]||n.other:void 0)}var KD={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function UD(e){var t=e.prefixCls,r=e.visible,o=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=n.useContext(VR),p=f.getPopupContainer,h=f.rtl,m=f.subMenuOpenDelay,v=f.subMenuCloseDelay,g=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,x=f.rootClassName,w=f.motion,S=f.defaultMotions,C=_(n.useState(!1),2),O=C[0],k=C[1],j=A(A({},h?FD:HD),g),$=KD[u],P=WD(u,w,S),N=n.useRef(P);"inline"!==u&&(N.current=P);var I=A(A({},N.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),M=n.useRef();return n.useEffect(function(){return M.current=Ko(function(){k(r)}),function(){Ko.cancel(M.current)}},[r]),n.createElement(Df,{prefixCls:t,popupClassName:Rr()("".concat(t,"-popup"),E({},"".concat(t,"-rtl"),h),l,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:j,popupPlacement:$,popupVisible:O,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[b],mouseEnterDelay:m,mouseLeaveDelay:v,onPopupVisibleChange:d,forceRender:y,popupMotion:I,fresh:!0},o)}function VD(e){var t=e.id,r=e.open,o=e.keyPath,i=e.children,a="inline",l=n.useContext(VR),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=n.useRef(!1);p.current=f===a;var h=_(n.useState(!p.current),2),m=h[0],v=h[1],g=!!p.current&&r;n.useEffect(function(){p.current&&v(!1)},[f]);var b=A({},WD(a,u,d));o.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||v(!0),null==y?void 0:y(e)},m?null:n.createElement(GR,{mode:a,locked:!p.current},n.createElement(si,Ve({visible:g},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(e){var r=e.className,o=e.style;return n.createElement(qD,{id:t,className:r,style:o},i)}))}var GD=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],YD=["active"],XD=n.forwardRef(function(e,t){var r=e.style,o=e.className,i=e.title,a=e.eventKey,l=(e.warnKey,e.disabled),c=e.internalPopupClose,s=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,p=e.popupOffset,h=e.popupStyle,m=e.onClick,v=e.onMouseEnter,g=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,x=e.onTitleMouseLeave,w=eo(e,GD),S=KR(a),C=n.useContext(VR),O=C.prefixCls,k=C.mode,j=C.openKeys,$=C.disabled,P=C.overflowDisabled,N=C.activeKey,I=C.selectedKeys,M=C.itemIcon,T=C.expandIcon,R=C.onItemClick,D=C.onOpenChange,L=C.onActive,q=n.useContext(tD)._internalRenderSubMenuItem,z=n.useContext(eD).isSubPathKey,B=JR(),H="".concat(O,"-submenu"),F=$||l,W=n.useRef(),K=n.useRef();var U=null!=u?u:M,V=null!=d?d:T,G=j.includes(a),Y=!P&&G,X=z(I,a),Q=OD(a,F,y,x),Z=Q.active,J=eo(Q,YD),ee=_(n.useState(!1),2),te=ee[0],ne=ee[1],re=function(e){F||ne(e)},oe=n.useMemo(function(){return Z||"inline"!==k&&(te||z([N],a))},[k,Z,N,te,a,z]),ie=kD(B.length),ae=wD(function(e){null==m||m($D(e)),R(e)}),le=S&&"".concat(S,"-popup"),ce=n.useMemo(function(){return n.createElement(ED,{icon:"horizontal"!==k?V:void 0,props:A(A({},e),{},{isOpen:Y,isSubMenu:!0})},n.createElement("i",{className:"".concat(H,"-arrow")}))},[k,V,e,Y,H]),se=n.createElement("div",Ve({role:"menuitem",style:ie,className:"".concat(H,"-title"),tabIndex:F?null:-1,ref:W,title:"string"==typeof i?i:null,"data-menu-id":P&&S?null:S,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":le,"aria-disabled":F,onClick:function(e){F||(null==b||b({key:a,domEvent:e}),"inline"===k&&D(a,!G))},onFocus:function(){L(a)}},J),i,ce),ue=n.useRef(k);if("inline"!==k&&B.length>1?ue.current="vertical":ue.current=k,!P){var de=ue.current;se=n.createElement(UD,{mode:de,prefixCls:H,visible:!c&&Y&&"inline"!==k,popupClassName:f,popupOffset:p,popupStyle:h,popup:n.createElement(GR,{mode:"horizontal"===de?"vertical":de},n.createElement(qD,{id:le,ref:K},s)),disabled:F,onVisibleChange:function(e){"inline"!==k&&D(a,e)}},se)}var fe=n.createElement(fx.Item,Ve({ref:t,role:"none"},w,{component:"li",style:r,className:Rr()(H,"".concat(H,"-").concat(k),o,E(E(E(E({},"".concat(H,"-open"),Y),"".concat(H,"-active"),oe),"".concat(H,"-selected"),X),"".concat(H,"-disabled"),F)),onMouseEnter:function(e){re(!0),null==v||v({key:a,domEvent:e})},onMouseLeave:function(e){re(!1),null==g||g({key:a,domEvent:e})}}),se,!P&&n.createElement(VD,{id:le,open:Y,keyPath:B},s));return q&&(fe=q(fe,e,{selected:X,active:oe,open:Y,disabled:F})),n.createElement(GR,{onItemClick:ae,mode:"horizontal"===k?"vertical":k,itemIcon:U,expandIcon:V},fe)});const QD=n.forwardRef(function(e,t){var r,o=e.eventKey,i=e.children,a=JR(o),l=zD(i,a),c=QR();return n.useEffect(function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}},[a]),r=c?l:n.createElement(XD,Ve({ref:t},e),l),n.createElement(ZR.Provider,{value:a},r)});function ZD(e){var t=e.className,r=e.style,o=n.useContext(VR).prefixCls;return QR()?null:n.createElement("li",{role:"separator",className:Rr()("".concat(o,"-item-divider"),t),style:r})}var JD=["className","title","eventKey","children"],eL=n.forwardRef(function(e,t){var r=e.className,o=e.title,i=(e.eventKey,e.children),a=eo(e,JD),l=n.useContext(VR).prefixCls,c="".concat(l,"-item-group");return n.createElement("li",Ve({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:Rr()(c,r)}),n.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),n.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))});const tL=n.forwardRef(function(e,t){var r=e.eventKey,o=zD(e.children,JR(r));return QR()?o:n.createElement(eL,Ve({ref:t},Sc(e,["warnKey"])),o)});var nL=["label","children","key","type","extra"];function rL(e,t,r){var o=t.item,i=t.group,a=t.submenu,l=t.divider;return(e||[]).map(function(e,c){if(e&&"object"===O(e)){var s=e,u=s.label,d=s.children,f=s.key,p=s.type,h=s.extra,m=eo(s,nL),v=null!=f?f:"tmp-".concat(c);return d||"group"===p?"group"===p?n.createElement(i,Ve({key:v},m,{title:u}),rL(d,t,r)):n.createElement(a,Ve({key:v},m,{title:u}),rL(d,t,r)):"divider"===p?n.createElement(l,Ve({key:v},m)):n.createElement(o,Ve({key:v},m,{extra:h}),u,(!!h||0===h)&&n.createElement("span",{className:"".concat(r,"-item-extra")},h))}return null}).filter(function(e){return e})}function oL(e,t,n,r,o){var i=e,a=A({divider:ZD,item:AD,group:tL,submenu:QD},r);return t&&(i=rL(t,a,o)),zD(i,n)}var iL=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],aL=[],lL=n.forwardRef(function(e,t){var r,o=e,i=o.prefixCls,a=void 0===i?"rc-menu":i,l=o.rootClassName,c=o.style,s=o.className,u=o.tabIndex,d=void 0===u?0:u,f=o.items,p=o.children,h=o.direction,m=o.id,v=o.mode,g=void 0===v?"vertical":v,b=o.inlineCollapsed,y=o.disabled,x=o.disabledOverflow,w=o.subMenuOpenDelay,S=void 0===w?.1:w,C=o.subMenuCloseDelay,O=void 0===C?.1:C,k=o.forceSubMenuRender,j=o.defaultOpenKeys,$=o.openKeys,P=o.activeKey,N=o.defaultActiveFirst,I=o.selectable,T=void 0===I||I,R=o.multiple,D=void 0!==R&&R,L=o.defaultSelectedKeys,q=o.selectedKeys,z=o.onSelect,B=o.onDeselect,H=o.inlineIndent,F=void 0===H?24:H,W=o.motion,K=o.defaultMotions,U=o.triggerSubMenuAction,V=void 0===U?"hover":U,G=o.builtinPlacements,Y=o.itemIcon,X=o.expandIcon,Q=o.overflowedIndicator,Z=void 0===Q?"...":Q,J=o.overflowedIndicatorPopupClassName,ee=o.getPopupContainer,te=o.onClick,ne=o.onOpenChange,oe=o.onKeyDown,ie=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),ae=o._internalRenderSubMenuItem,le=o._internalComponents,ce=eo(o,iL),se=_(n.useMemo(function(){return[oL(p,f,aL,le,a),oL(p,f,aL,{},a)]},[p,f,le]),2),ue=se[0],de=se[1],fe=_(n.useState(!1),2),pe=fe[0],he=fe[1],me=n.useRef(),ve=function(e){var t=_(mo(e,{value:e}),2),r=t[0],o=t[1];return n.useEffect(function(){CD+=1;var e="".concat(SD,"-").concat(CD);o("rc-menu-uuid-".concat(e))},[]),r}(m),ge="rtl"===h;var be=mo(j,{value:$,postState:function(e){return e||aL}}),ye=_(be,2),xe=ye[0],we=ye[1],Se=function(e){function t(){we(e),null==ne||ne(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Dr.flushSync)(t):t()},Ce=_(n.useState(xe),2),Oe=Ce[0],ke=Ce[1],Ee=n.useRef(!1),je=_(n.useMemo(function(){return"inline"!==g&&"vertical"!==g||!b?[g,!1]:["vertical",b]},[g,b]),2),$e=je[0],Pe=je[1],Ne="inline"===$e,_e=_(n.useState($e),2),Ie=_e[0],Me=_e[1],Te=_(n.useState(Pe),2),Ae=Te[0],Re=Te[1];n.useEffect(function(){Me($e),Re(Pe),Ee.current&&(Ne?we(Oe):Se(aL))},[$e,Pe]);var De=_(n.useState(0),2),Le=De[0],qe=De[1],ze=Le>=ue.length-1||"horizontal"!==Ie||x;n.useEffect(function(){Ne&&ke(xe)},[xe]),n.useEffect(function(){return Ee.current=!0,function(){Ee.current=!1}},[]);var Be=xD(),He=Be.registerPath,Fe=Be.unregisterPath,We=Be.refreshOverflowKeys,Ke=Be.isSubPathKey,Ue=Be.getKeyPath,Ge=Be.getKeys,Ye=Be.getSubPathKeys,Xe=n.useMemo(function(){return{registerPath:He,unregisterPath:Fe}},[He,Fe]),Qe=n.useMemo(function(){return{isSubPathKey:Ke}},[Ke]);n.useEffect(function(){We(ze?aL:ue.slice(Le+1).map(function(e){return e.key}))},[Le,ze]);var Ze=_(mo(P||N&&(null===(r=ue[0])||void 0===r?void 0:r.key),{value:P}),2),Je=Ze[0],et=Ze[1],tt=wD(function(e){et(e)}),nt=wD(function(){et(void 0)});(0,n.useImperativeHandle)(t,function(){return{list:me.current,focus:function(e){var t,n,r=Ge(),o=mD(r,ve),i=o.elements,a=o.key2element,l=o.element2key,c=pD(me.current,i),s=null!=Je?Je:c[0]?l.get(c[0]):null===(t=ue.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}});var rt=mo(L||[],{value:q,postState:function(e){return Array.isArray(e)?e:null==e?aL:[e]}}),ot=_(rt,2),it=ot[0],at=ot[1],lt=wD(function(e){null==te||te($D(e)),function(e){if(T){var t,n=e.key,r=it.includes(n);t=D?r?it.filter(function(e){return e!==n}):[].concat(M(it),[n]):[n],at(t);var o=A(A({},e),{},{selectedKeys:t});r?null==B||B(o):null==z||z(o)}!D&&xe.length&&"inline"!==Ie&&Se(aL)}(e)}),ct=wD(function(e,t){var n=xe.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==Ie){var r=Ye(e);n=n.filter(function(e){return!r.has(e)})}re(xe,n,!0)||Se(n,!0)}),st=vD(Ie,Je,ge,ve,me,Ge,Ue,et,function(e,t){var n=null!=t?t:!xe.includes(e);ct(e,n)},oe);n.useEffect(function(){he(!0)},[]);var ut=n.useMemo(function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ae}},[ie,ae]),dt="horizontal"!==Ie||x?ue:ue.map(function(e,t){return n.createElement(GR,{key:e.key,overflowDisabled:t>Le},e)}),ft=n.createElement(fx,Ve({id:m,ref:me,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:AD,className:Rr()(a,"".concat(a,"-root"),"".concat(a,"-").concat(Ie),s,E(E({},"".concat(a,"-inline-collapsed"),Ae),"".concat(a,"-rtl"),ge),l),dir:h,style:c,role:"menu",tabIndex:d,data:dt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,r=t?ue.slice(-t):null;return n.createElement(QD,{eventKey:yD,title:Z,disabled:ze,internalPopupClose:0===t,popupClassName:J},r)},maxCount:"horizontal"!==Ie||x?fx.INVALIDATE:fx.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){qe(e)},onKeyDown:st},ce));return n.createElement(tD.Provider,{value:ut},n.createElement(FR.Provider,{value:ve},n.createElement(GR,{prefixCls:a,rootClassName:l,mode:Ie,openKeys:xe,rtl:ge,disabled:y,motion:pe?W:null,defaultMotions:pe?K:null,activeKey:Je,onActive:tt,onInactive:nt,selectedKeys:it,inlineIndent:F,subMenuOpenDelay:S,subMenuCloseDelay:O,forceSubMenuRender:k,builtinPlacements:G,triggerSubMenuAction:V,getPopupContainer:ee,itemIcon:Y,expandIcon:X,onItemClick:lt,onOpenChange:ct},n.createElement(eD.Provider,{value:Qe},ft),n.createElement("div",{style:{display:"none"},"aria-hidden":!0},n.createElement(XR.Provider,{value:Xe},de)))))});var cL=lL;cL.Item=AD,cL.SubMenu=QD,cL.ItemGroup=tL,cL.Divider=ZD;const sL=cL;var uL=n.forwardRef(function(e,t){var r=e.prefixCls,o=e.id,i=e.tabs,a=e.locale,l=e.mobile,c=e.more,s=void 0===c?{}:c,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,m=e.removeAriaLabel,v=e.onTabClick,g=e.getPopupContainer,b=e.popupClassName,y=_((0,n.useState)(!1),2),x=y[0],w=y[1],S=_((0,n.useState)(null),2),C=S[0],O=S[1],k=s.icon,j=void 0===k?"More":k,$="".concat(o,"-more-popup"),P="".concat(r,"-dropdown"),N=null!==C?"".concat($,"-").concat(C):null,I=null==a?void 0:a.dropdownAriaLabel;var M=n.createElement(sL,{onClick:function(e){var t=e.key,n=e.domEvent;v(t,n),w(!1)},prefixCls:"".concat(P,"-menu"),id:$,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[C],"aria-label":void 0!==I?I:"expanded dropdown"},i.map(function(e){var t=e.closable,r=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=PR(t,i,f,r);return n.createElement(AD,{key:a,id:"".concat($,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:r},n.createElement("span",null,l),c&&n.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,a)}},i||f.removeIcon||"×"))}));function T(e){for(var t=i.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===C})||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void O(a.key)}}(0,n.useEffect)(function(){var e=document.getElementById(N);e&&e.scrollIntoView&&e.scrollIntoView(!1)},[C]),(0,n.useEffect)(function(){x||O(null)},[x]);var A=E({},h?"marginRight":"marginLeft",p);i.length||(A.visibility="hidden",A.order=1);var R=Rr()(E({},"".concat(P,"-rtl"),h)),D=l?null:n.createElement(HR,Ve({prefixCls:P,overlay:M,visible:!!i.length&&x,onVisibleChange:w,overlayClassName:Rr()(R,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},s),n.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:A,"aria-haspopup":"listbox","aria-controls":$,id:"".concat(o,"-more"),"aria-expanded":x,onKeyDown:function(e){var t=e.which;if(x)switch(t){case Va.UP:T(-1),e.preventDefault();break;case Va.DOWN:T(1),e.preventDefault();break;case Va.ESC:w(!1);break;case Va.SPACE:case Va.ENTER:null!==C&&v(C,e)}else[Va.DOWN,Va.SPACE,Va.ENTER].includes(t)&&(w(!0),e.preventDefault())}},j));return n.createElement("div",{className:Rr()("".concat(r,"-nav-operations"),d),style:u,ref:t},D,n.createElement(_R,{prefixCls:r,locale:a,editable:f}))});const dL=n.memo(uL,function(e,t){return t.tabMoving});const fL=function(e){var t=e.prefixCls,r=e.id,o=e.active,i=e.focus,a=e.tab,l=a.key,c=a.label,s=a.disabled,u=a.closeIcon,d=a.icon,f=e.closable,p=e.renderWrapper,h=e.removeAriaLabel,m=e.editable,v=e.onClick,g=e.onFocus,b=e.onBlur,y=e.onKeyDown,x=e.onMouseDown,w=e.onMouseUp,S=e.style,C=e.tabCount,O=e.currentPosition,k="".concat(t,"-tab"),j=PR(f,u,m,s);function $(e){s||v(e)}var P=n.useMemo(function(){return d&&"string"==typeof c?n.createElement("span",null,c):c},[c,d]),N=n.useRef(null);n.useEffect(function(){i&&N.current&&N.current.focus()},[i]);var _=n.createElement("div",{key:l,"data-node-key":$R(l),className:Rr()(k,E(E(E(E({},"".concat(k,"-with-remove"),j),"".concat(k,"-active"),o),"".concat(k,"-disabled"),s),"".concat(k,"-focus"),i)),style:S,onClick:$},n.createElement("div",{ref:N,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(l),className:"".concat(k,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(l),"aria-disabled":s,tabIndex:s?null:o?0:-1,onClick:function(e){e.stopPropagation(),$(e)},onKeyDown:y,onMouseDown:x,onMouseUp:w,onFocus:g,onBlur:b},i&&n.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(O," of ").concat(C)),d&&n.createElement("span",{className:"".concat(k,"-icon")},d),c&&P),j&&n.createElement("button",{type:"button",role:"tab","aria-label":h||"remove",tabIndex:o?0:-1,className:"".concat(k,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:l,event:t})}},u||m.removeIcon||"×"));return p?p(_):_};var pL=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},hL=function(e,t){return e[t?0:1]},mL=n.forwardRef(function(e,t){var r,o,i,a,l,c=e.className,s=e.style,u=e.id,d=e.animated,f=e.activeKey,p=e.rtl,h=e.extra,m=e.editable,v=e.locale,g=e.tabPosition,b=e.tabBarGutter,y=e.children,x=e.onTabClick,w=e.onTabScroll,S=e.indicator,C=n.useContext(xR),O=C.prefixCls,k=C.tabs,j=(0,n.useRef)(null),$=(0,n.useRef)(null),P=(0,n.useRef)(null),N=(0,n.useRef)(null),I=(0,n.useRef)(null),T=(0,n.useRef)(null),R=(0,n.useRef)(null),D="top"===g||"bottom"===g,L=CR(0,function(e,t){D&&w&&w({direction:e>t?"left":"right"})}),q=_(L,2),z=q[0],B=q[1],H=CR(0,function(e,t){!D&&w&&w({direction:e>t?"top":"bottom"})}),F=_(H,2),W=F[0],K=F[1],U=_((0,n.useState)([0,0]),2),V=U[0],G=U[1],Y=_((0,n.useState)([0,0]),2),X=Y[0],Q=Y[1],Z=_((0,n.useState)([0,0]),2),J=Z[0],ee=Z[1],te=_((0,n.useState)([0,0]),2),ne=te[0],re=te[1],oe=(r=new Map,o=(0,n.useRef)([]),i=_((0,n.useState)({}),2)[1],a=(0,n.useRef)("function"==typeof r?r():r),l=kR(function(){var e=a.current;o.current.forEach(function(t){e=t(e)}),o.current=[],a.current=e,i({})}),[a.current,function(e){o.current.push(e),l()}]),ie=_(oe,2),ae=ie[0],le=ie[1],ce=function(e,t,r){return(0,n.useMemo)(function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||SR,i=o.left+o.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=t.get(c);s||(s=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||SR);var u=r.get(c)||A({},s);u.right=i-u.left-u.width,r.set(c,u)}return r},[e.map(function(e){return e.key}).join("_"),t,r])}(k,ae,X[0]),se=hL(V,D),ue=hL(X,D),de=hL(J,D),fe=hL(ne,D),pe=Math.floor(se)<Math.floor(ue+de),he=pe?se-fe:se-de,me="".concat(O,"-nav-operations-hidden"),ve=0,ge=0;function be(e){return e<ve?ve:e>ge?ge:e}D&&p?(ve=0,ge=Math.max(0,ue-he)):(ve=Math.min(0,he-ue),ge=0);var ye=(0,n.useRef)(null),xe=_((0,n.useState)(),2),we=xe[0],Se=xe[1];function Ce(){Se(Date.now())}function Oe(){ye.current&&clearTimeout(ye.current)}!function(e,t){var r=_((0,n.useState)(),2),o=r[0],i=r[1],a=_((0,n.useState)(0),2),l=a[0],c=a[1],s=_((0,n.useState)(0),2),u=s[0],d=s[1],f=_((0,n.useState)(),2),p=f[0],h=f[1],m=(0,n.useRef)(),v=(0,n.useRef)(),g=(0,n.useRef)(null);g.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(m.current)},onTouchMove:function(e){if(o){var n=e.touches[0],r=n.screenX,a=n.screenY;i({x:r,y:a});var s=r-o.x,u=a-o.y;t(s,u);var f=Date.now();c(f),d(f-l),h({x:s,y:u})}},onTouchEnd:function(){if(o&&(i(null),h(null),p)){var e=p.x/u,n=p.y/u,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var l=e,c=n;m.current=window.setInterval(function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(m.current):t(20*(l*=OR),20*(c*=OR))},20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===v.current?n:r:i>a?(o=n,v.current="x"):(o=r,v.current="y"),t(-o,-o)&&e.preventDefault()}},n.useEffect(function(){function t(e){g.current.onTouchMove(e)}function n(e){g.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",function(e){g.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){g.current.onWheel(e)},{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(N,function(e,t){function n(e,t){e(function(e){return be(e+t)})}return!!pe&&(D?n(B,e):n(K,t),Oe(),Ce(),!0)}),(0,n.useEffect)(function(){return Oe(),we&&(ye.current=setTimeout(function(){Se(0)},100)),Oe},[we]);var ke=function(e,t,r,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(r)):(c="height",s="top",u=-r),(0,n.useMemo)(function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;o<n;o+=1){var i=e.get(d[o].key)||ER;if(Math.floor(i[s]+i[c])>Math.floor(u+t)){r=o-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||ER)[s]<u){a=l+1;break}return a>=r?[0,0]:[a,r]},[e,t,o,i,a,u,f,d.map(function(e){return e.key}).join("_"),p])}(ce,he,D?z:W,ue,de,fe,A(A({},e),{},{tabs:k})),Ee=_(ke,2),je=Ee[0],$e=Ee[1],Pe=fo(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=ce.get(e)||{width:0,height:0,left:0,right:0,top:0};if(D){var n=z;p?t.right<z?n=t.right:t.right+t.width>z+he&&(n=t.right+t.width-he):t.left<-z?n=-t.left:t.left+t.width>-z+he&&(n=-(t.left+t.width-he)),K(0),B(be(n))}else{var r=W;t.top<-W?r=-t.top:t.top+t.height>-W+he&&(r=-(t.top+t.height-he)),B(0),K(be(r))}}),Ne=_((0,n.useState)(),2),_e=Ne[0],Ie=Ne[1],Me=_((0,n.useState)(!1),2),Te=Me[0],Ae=Me[1],Re=k.filter(function(e){return!e.disabled}).map(function(e){return e.key}),De=function(e){var t=Re.indexOf(_e||f),n=Re.length,r=Re[(t+e+n)%n];Ie(r)},Le=function(e){var t=e.code,n=p&&D,r=Re[0],o=Re[Re.length-1];switch(t){case"ArrowLeft":D&&De(n?1:-1);break;case"ArrowRight":D&&De(n?-1:1);break;case"ArrowUp":e.preventDefault(),D||De(-1);break;case"ArrowDown":e.preventDefault(),D||De(1);break;case"Home":e.preventDefault(),Ie(r);break;case"End":e.preventDefault(),Ie(o);break;case"Enter":case"Space":e.preventDefault(),x(null!=_e?_e:f,e);break;case"Backspace":case"Delete":var i=Re.indexOf(_e),a=k.find(function(e){return e.key===_e});PR(null==a?void 0:a.closable,null==a?void 0:a.closeIcon,m,null==a?void 0:a.disabled)&&(e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:_e,event:e}),i===Re.length-1?De(-1):De(1))}},qe={};D?qe[p?"marginRight":"marginLeft"]=b:qe.marginTop=b;var ze=k.map(function(e,t){var r=e.key;return n.createElement(fL,{id:u,prefixCls:O,key:r,tab:e,style:0===t?void 0:qe,closable:e.closable,editable:m,active:r===f,focus:r===_e,renderWrapper:y,removeAriaLabel:null==v?void 0:v.removeAriaLabel,tabCount:Re.length,currentPosition:t+1,onClick:function(e){x(r,e)},onKeyDown:Le,onFocus:function(){Te||Ie(r),Pe(r),Ce(),N.current&&(p||(N.current.scrollLeft=0),N.current.scrollTop=0)},onBlur:function(){Ie(void 0)},onMouseDown:function(){Ae(!0)},onMouseUp:function(){Ae(!1)}})}),Be=function(){return le(function(){var e,t=new Map,n=null===(e=I.current)||void 0===e?void 0:e.getBoundingClientRect();return k.forEach(function(e){var r,o=e.key,i=null===(r=I.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat($R(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.left,u=a.top;return Math.abs(l-n)<1?[l,c,s-t.left,u-t.top]:[n,r,i,o]}(i,n),l=_(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}}),t})};(0,n.useEffect)(function(){Be()},[k.map(function(e){return e.key}).join("_")]);var He=kR(function(){var e=pL(j),t=pL($),n=pL(P);G([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=pL(R);ee(r);var o=pL(T);re(o);var i=pL(I);Q([i[0]-r[0],i[1]-r[1]]),Be()}),Fe=k.slice(0,je),We=k.slice($e+1),Ke=[].concat(M(Fe),M(We)),Ue=ce.get(f),Ge=wR({activeTabOffset:Ue,horizontal:D,indicator:S,rtl:p}).style;(0,n.useEffect)(function(){Pe()},[f,ve,ge,jR(Ue),jR(ce),D]),(0,n.useEffect)(function(){He()},[p]);var Ye,Xe,Qe,Ze,Je=!!Ke.length,et="".concat(O,"-nav-wrap");return D?p?(Xe=z>0,Ye=z!==ge):(Ye=z<0,Xe=z!==ve):(Qe=W<0,Ze=W!==ve),n.createElement(sf,{onResize:He},n.createElement("div",{ref:Xr(t,j),role:"tablist","aria-orientation":D?"horizontal":"vertical",className:Rr()("".concat(O,"-nav"),c),style:s,onKeyDown:function(){Ce()}},n.createElement(MR,{ref:$,position:"left",extra:h,prefixCls:O}),n.createElement(sf,{onResize:He},n.createElement("div",{className:Rr()(et,E(E(E(E({},"".concat(et,"-ping-left"),Ye),"".concat(et,"-ping-right"),Xe),"".concat(et,"-ping-top"),Qe),"".concat(et,"-ping-bottom"),Ze)),ref:N},n.createElement(sf,{onResize:He},n.createElement("div",{ref:I,className:"".concat(O,"-nav-list"),style:{transform:"translate(".concat(z,"px, ").concat(W,"px)"),transition:we?"none":void 0}},ze,n.createElement(_R,{ref:R,prefixCls:O,locale:v,editable:m,style:A(A({},0===ze.length?void 0:qe),{},{visibility:Je?"hidden":null})}),n.createElement("div",{className:Rr()("".concat(O,"-ink-bar"),E({},"".concat(O,"-ink-bar-animated"),d.inkBar)),style:Ge}))))),n.createElement(dL,Ve({},e,{removeAriaLabel:null==v?void 0:v.removeAriaLabel,ref:T,prefixCls:O,tabs:Ke,className:!Je&&me,tabMoving:!!we})),n.createElement(MR,{ref:P,position:"right",extra:h,prefixCls:O})))});const vL=mL;var gL=n.forwardRef(function(e,t){var r=e.prefixCls,o=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,s=e.children;return n.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:Rr()(r,l&&"".concat(r,"-active"),o),ref:t},s)});const bL=gL;var yL=["renderTabBar"],xL=["label","key"];const wL=function(e){var t=e.renderTabBar,r=eo(e,yL),o=n.useContext(xR).tabs;if(t){var i=A(A({},r),{},{panes:o.map(function(e){var t=e.label,r=e.key,o=eo(e,xL);return n.createElement(bL,Ve({tab:t,key:r,tabKey:r},o))})});return t(i,vL)}return n.createElement(vL,r)};var SL=["key","forceRender","style","className","destroyInactiveTabPane"];const CL=function(e){var t=e.id,r=e.activeKey,o=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,l=n.useContext(xR),c=l.prefixCls,s=l.tabs,u=o.tabPane,d="".concat(c,"-tabpane");return n.createElement("div",{className:Rr()("".concat(c,"-content-holder"))},n.createElement("div",{className:Rr()("".concat(c,"-content"),"".concat(c,"-content-").concat(i),E({},"".concat(c,"-content-animated"),u))},s.map(function(e){var i=e.key,l=e.forceRender,c=e.style,s=e.className,f=e.destroyInactiveTabPane,p=eo(e,SL),h=i===r;return n.createElement(si,Ve({key:i,visible:h,forceRender:l,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),function(e,r){var o=e.style,a=e.className;return n.createElement(bL,Ve({},p,{prefixCls:d,id:t,tabKey:i,animated:u,active:h,style:A(A({},c),o),className:Rr()(s,a),ref:r}))})})))};var OL=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],kL=0,EL=n.forwardRef(function(e,t){var r=e.id,o=e.prefixCls,i=void 0===o?"rc-tabs":o,a=e.className,l=e.items,c=e.direction,s=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,h=void 0===p?"top":p,m=e.tabBarGutter,v=e.tabBarStyle,g=e.tabBarExtraContent,b=e.locale,y=e.more,x=e.destroyInactiveTabPane,w=e.renderTabBar,S=e.onChange,C=e.onTabClick,k=e.onTabScroll,j=e.getPopupContainer,$=e.popupClassName,P=e.indicator,N=eo(e,OL),I=n.useMemo(function(){return(l||[]).filter(function(e){return e&&"object"===O(e)&&"key"in e})},[l]),M="rtl"===c,T=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}:A({inkBar:!0},"object"===O(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(f),R=_((0,n.useState)(!1),2),D=R[0],L=R[1];(0,n.useEffect)(function(){L(pf())},[]);var q=_(mo(function(){var e;return null===(e=I[0])||void 0===e?void 0:e.key},{value:s,defaultValue:u}),2),z=q[0],B=q[1],H=_((0,n.useState)(function(){return I.findIndex(function(e){return e.key===z})}),2),F=H[0],W=H[1];(0,n.useEffect)(function(){var e,t=I.findIndex(function(e){return e.key===z});-1===t&&(t=Math.max(0,Math.min(F,I.length-1)),B(null===(e=I[t])||void 0===e?void 0:e.key));W(t)},[I.map(function(e){return e.key}).join("_"),z,F]);var K=_(mo(null,{value:r}),2),U=K[0],V=K[1];(0,n.useEffect)(function(){r||(V("rc-tabs-".concat(kL)),kL+=1)},[]);var G={id:U,activeKey:z,animated:T,tabPosition:h,rtl:M,mobile:D},Y=A(A({},G),{},{editable:d,locale:b,more:y,tabBarGutter:m,onTabClick:function(e,t){null==C||C(e,t);var n=e!==z;B(e),n&&(null==S||S(e))},onTabScroll:k,extra:g,style:v,panes:null,getPopupContainer:j,popupClassName:$,indicator:P});return n.createElement(xR.Provider,{value:{tabs:I,prefixCls:i}},n.createElement("div",Ve({ref:t,id:r,className:Rr()(i,"".concat(i,"-").concat(h),E(E(E({},"".concat(i,"-mobile"),D),"".concat(i,"-editable"),d),"".concat(i,"-rtl"),M),a)},N),n.createElement(wL,Ve({},Y,{renderTabBar:w})),n.createElement(CL,Ve({destroyInactiveTabPane:x},G,{animated:T}))))});const jL=EL,$L={motionAppear:!1,motionEnter:!0,motionLeave:!0};var PL=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const NL=e=>{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}`}}}}},[Qw(e,"slide-up"),Qw(e,"slide-down")]]},_L=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${$e(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ki(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:$e(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${$e(e.borderRadiusLG)} ${$e(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${$e(e.borderRadiusLG)} ${$e(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:$e(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${$e(e.borderRadiusLG)} 0 0 ${$e(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 ${$e(e.borderRadiusLG)} ${$e(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},IL=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Oi(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:`${$e(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({},Ci),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${$e(e.paddingXXS)} ${$e(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.colorIcon,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"}}})}})}},ML=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,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:`${$e(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:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${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:$e(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${$e(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:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},TL=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${$e(e.borderRadius)} ${$e(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${$e(e.borderRadius)} ${$e(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${$e(e.borderRadius)} ${$e(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${$e(e.borderRadius)} 0 0 ${$e(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},AL=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Ei(e)),"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-focus ${s}-btn:focus-visible`]:ki(e),[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},RL=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{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:$e(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:$e(e.marginXS)},marginLeft:{_skip_check_:!0,value:$e(i(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"}}}}},DL=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Oi(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},background:"transparent",border:`${$e(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${$e(e.borderRadiusLG)} ${$e(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Ei(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),AL(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ei(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},LL=ql("Tabs",e=>{const t=$l(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${$e(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${$e(e.horizontalItemGutter)}`});return[TL(t),RL(t),ML(t),IL(t),_L(t),DL(t),NL(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,l=n||o,c=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:c,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}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}});var qL=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const zL=e=>{var t,r,o,i,a,l,c,s,u,d,f;const{type:p,className:h,rootClassName:m,size:v,onEdit:g,hideAdd:b,centered:y,addIcon:w,removeIcon:S,moreIcon:C,more:O,popupClassName:k,children:E,items:j,animated:$,style:P,indicatorSize:N,indicator:_,destroyInactiveTabPane:I,destroyOnHidden:M}=e,T=qL(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:A}=T,{direction:R,tabs:D,getPrefixCls:L,getPopupContainer:q}=n.useContext(x),z=L("tabs",A),B=ul(z),[H,F,W]=LL(z,B);let K;"editable-card"===p&&(K={onEdit:(e,{key:t,event:n})=>{null==g||g("add"===e?n:t,e)},removeIcon:null!==(t=null!=S?S:null==D?void 0:D.removeIcon)&&void 0!==t?t:n.createElement(Ra,null),addIcon:(null!=w?w:null==D?void 0:D.addIcon)||n.createElement(AI,null),showAdd:!0!==b});const U=L();const V=Rc(v),G=function(e,t){if(e)return e.map(e=>{var t;const n=null!==(t=e.destroyOnHidden)&&void 0!==t?t:e.destroyInactiveTabPane;return Object.assign(Object.assign({},e),{destroyInactiveTabPane:n})});const r=Dc(t).map(e=>{if(n.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=PL(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null});return function(e){return e.filter(e=>e)}(r)}(j,E),Y=function(e,t={inkBar:!0,tabPane:!1}){let n;return n=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof t?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},$L),{motionName:Zs(e,"switch")})),n}(z,$),X=Object.assign(Object.assign({},null==D?void 0:D.style),P),Q={align:null!==(r=null==_?void 0:_.align)&&void 0!==r?r:null===(o=null==D?void 0:D.indicator)||void 0===o?void 0:o.align,size:null!==(c=null!==(a=null!==(i=null==_?void 0:_.size)&&void 0!==i?i:N)&&void 0!==a?a:null===(l=null==D?void 0:D.indicator)||void 0===l?void 0:l.size)&&void 0!==c?c:null==D?void 0:D.indicatorSize};return H(n.createElement(jL,Object.assign({direction:R,getPopupContainer:q},T,{items:G,className:Rr()({[`${z}-${V}`]:V,[`${z}-card`]:["card","editable-card"].includes(p),[`${z}-editable-card`]:"editable-card"===p,[`${z}-centered`]:y},null==D?void 0:D.className,h,m,F,W,B),popupClassName:Rr()(k,F,W,B),style:X,editable:K,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(s=null==D?void 0:D.more)||void 0===s?void 0:s.icon)&&void 0!==u?u:null==D?void 0:D.moreIcon)&&void 0!==d?d:C)&&void 0!==f?f:n.createElement(yR,null),transitionName:`${U}-slide-up`},O),prefixCls:z,animated:Y,indicator:Q,destroyInactiveTabPane:null!=M?M:I})))};zL.TabPane=()=>null;const BL=zL;var HL=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const FL=e=>{var{prefixCls:t,className:r,hoverable:o=!0}=e,i=HL(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=n.useContext(x),l=a("card",t),c=Rr()(`${l}-grid`,r,{[`${l}-grid-hoverable`]:o});return n.createElement("div",Object.assign({},i,{className:c}))},WL=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${$e(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${$e(e.borderRadiusLG)} ${$e(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Ci),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},KL=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${$e(o)} 0 0 0 ${n},\n 0 ${$e(o)} 0 0 ${n},\n ${$e(o)} ${$e(o)} 0 0 ${n},\n ${$e(o)} 0 0 0 ${n} inset,\n 0 ${$e(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},UL=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${$e(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${$e(e.borderRadiusLG)} ${$e(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:$e(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:$e(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${$e(e.lineWidth)} ${e.lineType} ${i}`}}})},VL=e=>Object.assign(Object.assign({margin:`${$e(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Ci),"&-description":{color:e.colorTextDescription}}),GL=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${$e(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${$e(e.padding)} ${$e(o)}`}}},YL=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},XL=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},Oi(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:WL(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${$e(e.borderRadiusLG)} ${$e(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:KL(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${$e(e.borderRadiusLG)} ${$e(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:UL(e),[`${t}-meta`]:VL(e)}),[`${t}-bordered`]:{border:`${$e(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${$e(e.borderRadiusLG)} ${$e(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:GL(e),[`${t}-loading`]:YL(e),[`${t}-rtl`]:{direction:"rtl"}}},QL=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${$e(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ZL=ql("Card",e=>{const t=$l(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[XL(t),QL(t)]},e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:null!==(t=e.bodyPadding)&&void 0!==t?t:e.paddingLG,headerPadding:null!==(n=e.headerPadding)&&void 0!==n?n:e.paddingLG}});var JL=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const eq=e=>{const{actionClasses:t,actions:r=[],actionStyle:o}=e;return n.createElement("ul",{className:t,style:o},r.map((e,t)=>{const o=`action-${t}`;return n.createElement("li",{style:{width:100/r.length+"%"},key:o},n.createElement("span",null,e))}))},tq=n.forwardRef((e,t)=>{const{prefixCls:r,className:o,rootClassName:i,style:a,extra:l,headStyle:c={},bodyStyle:s={},title:u,loading:d,bordered:f,variant:p,size:h,type:m,cover:v,actions:g,tabList:b,children:y,activeTabKey:w,defaultActiveTabKey:S,tabBarExtraContent:C,hoverable:O,tabProps:k={},classNames:E,styles:j}=e,$=JL(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:P,direction:N,card:_}=n.useContext(x),[I]=Mb("card",p,f);const M=e=>{var t;return Rr()(null===(t=null==_?void 0:_.classNames)||void 0===t?void 0:t[e],null==E?void 0:E[e])},T=e=>{var t;return Object.assign(Object.assign({},null===(t=null==_?void 0:_.styles)||void 0===t?void 0:t[e]),null==j?void 0:j[e])},A=n.useMemo(()=>{let e=!1;return n.Children.forEach(y,t=>{(null==t?void 0:t.type)===FL&&(e=!0)}),e},[y]),R=P("card",r),[D,L,q]=ZL(R),z=n.createElement(tv,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),B=void 0!==w,H=Object.assign(Object.assign({},k),{[B?"activeKey":"defaultActiveKey"]:B?w:S,tabBarExtraContent:C});let F;const W=Rc(h),K=W&&"default"!==W?W:"large",U=b?n.createElement(BL,Object.assign({size:K},H,{className:`${R}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:b.map(e=>{var{tab:t}=e,n=JL(e,["tab"]);return Object.assign({label:t},n)})})):null;if(u||l||U){const e=Rr()(`${R}-head`,M("header")),t=Rr()(`${R}-head-title`,M("title")),r=Rr()(`${R}-extra`,M("extra")),o=Object.assign(Object.assign({},c),T("header"));F=n.createElement("div",{className:e,style:o},n.createElement("div",{className:`${R}-head-wrapper`},u&&n.createElement("div",{className:t,style:T("title")},u),l&&n.createElement("div",{className:r,style:T("extra")},l)),U)}const V=Rr()(`${R}-cover`,M("cover")),G=v?n.createElement("div",{className:V,style:T("cover")},v):null,Y=Rr()(`${R}-body`,M("body")),X=Object.assign(Object.assign({},s),T("body")),Q=n.createElement("div",{className:Y,style:X},d?z:y),Z=Rr()(`${R}-actions`,M("actions")),J=(null==g?void 0:g.length)?n.createElement(eq,{actionClasses:Z,actionStyle:T("actions"),actions:g}):null,ee=Sc($,["onTabChange"]),te=Rr()(R,null==_?void 0:_.className,{[`${R}-loading`]:d,[`${R}-bordered`]:"borderless"!==I,[`${R}-hoverable`]:O,[`${R}-contain-grid`]:A,[`${R}-contain-tabs`]:null==b?void 0:b.length,[`${R}-${W}`]:W,[`${R}-type-${m}`]:!!m,[`${R}-rtl`]:"rtl"===N},o,i,L,q),ne=Object.assign(Object.assign({},null==_?void 0:_.style),a);return D(n.createElement("div",Object.assign({ref:t},ee,{className:te,style:ne}),F,G,Q,J))});var nq=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rq=e=>{const{prefixCls:t,className:r,avatar:o,title:i,description:a}=e,l=nq(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=n.useContext(x),s=c("card",t),u=Rr()(`${s}-meta`,r),d=o?n.createElement("div",{className:`${s}-meta-avatar`},o):null,f=i?n.createElement("div",{className:`${s}-meta-title`},i):null,p=a?n.createElement("div",{className:`${s}-meta-description`},a):null,h=f||p?n.createElement("div",{className:`${s}-meta-detail`},f,p):null;return n.createElement("div",Object.assign({},l,{className:u}),d,h)},oq=tq;oq.Grid=FL,oq.Meta=rq;const iq=oq,aq="collapsed",lq="collapsing",cq="expanding",sq="expanded";function uq(e){requestAnimationFrame(function(){requestAnimationFrame(e)})}const dq=({children:e,transition:t,style:r,render:o,elementType:a="div",isOpen:l,collapseHeight:c="0px",onInit:s,onChange:u,className:d="collapse-css-transition",addState:f,noAnim:p,overflowOnExpanded:h,...m})=>{const v=()=>"0px"===c?"hidden":void 0,[g,b]=(0,n.useReducer)(e=>e+1,0),y=(0,n.useRef)(),[x,w]=(0,n.useState)(0),S=(0,n.useRef)({collapse:l?sq:aq,style:{height:l?void 0:c,visibility:l?void 0:v()}}).current;(0,n.useEffect)(()=>{x&&C(u)},[x]);const C=(e,t={})=>{e&&e({state:S.collapse,style:S.style,...t})};function O(){y.current&&(S.collapse=aq,S.style={height:c,visibility:v()},b(),setTimeout(()=>w(Date.now),0))}function k(){y.current&&(S.collapse=sq,S.style={height:void 0,visibility:void 0},b(),setTimeout(()=>w(Date.now),0))}function E(){return`${y.current.scrollHeight}px`}const j=S.collapse===sq||S.collapse===cq;!j&&l&&function(){if(y.current){if(p)return k();S.collapse=cq,uq(()=>{y.current&&S.collapse===cq&&(S.style={height:E(),visibility:void 0},w(Date.now))})}}(),j&&!l&&function(){if(y.current){if(p)return O();S.collapse=lq,S.style={height:E(),visibility:void 0},b(),uq(()=>{y.current&&S.collapse===lq&&(S.style={height:c,visibility:void 0},w(Date.now))})}}();const $={overflow:S.collapse===sq&&h?void 0:"hidden",transition:t,...r,...S.style},P=a,N=(0,n.useCallback)(e=>{e&&(y.current=e,C(s,{node:e}))},[a]),_=f?`${d} --c-${S.collapse}`:d;return(0,i.jsx)(P,{ref:N,style:$,onTransitionEnd:function({target:e,propertyName:t}){if(e===y.current&&"height"===t){const t=e.style.height;switch(S.collapse){case cq:void 0===t||t===c||k();break;case lq:void 0===t||t!==c||O()}}},className:_,...m,children:"function"==typeof e?e(S.collapse):"function"==typeof o?o(S.collapse):e})};const fq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};var pq=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:fq}))}; | |
| 134 | +/** */const hq=n.forwardRef(pq);const mq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};var vq=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:mq}))}; | |
| 135 | +/** */const gq=n.forwardRef(vq);var bq=function(e){var t=e.field,n=t.label,r=t.isPro;return n&&(0,i.jsx)("div",{className:"rtsb-field__label_wrap",children:(0,i.jsxs)(xg,{wrap:!0,gap:"small",children:[(0,i.jsx)("h6",{className:"rtsb-field__label",dangerouslySetInnerHTML:{__html:n}}),r?(0,i.jsx)(Mg,{color:"red",children:"PRO"}):null]})})};function yq(e){return yq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yq(e)}function xq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xq(Object(n),!0).forEach(function(t){Sq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sq(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=yq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yq(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oq(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oq(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var kq=function(e){var t=e.children,n=e.field,r=e.type,o=n.isPro,a=n.help,l=Cq(c(),2),u=l[0],d=l[1];return(0,i.jsxs)("div",{className:"rtsb-field ".concat(r),onClick:function(){o&&"yes"!==rtsbParams.hasPro&&d({type:s,general:wq(wq({},u.general),{},{proInfoVisible:!0})})},children:[(0,i.jsx)(bq,{field:n}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:t}),(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:a}})]})]})};function Eq(e){return Eq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eq(e)}function jq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jq(Object(n),!0).forEach(function(t){Pq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pq(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Eq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Eq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Eq(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nq=function(e){var t=e.name,n=e.value,r=e.onChange,o=e.placeholder,a=e.disabled,l=e.isPro,c={};return a?c.disabled=a||!1:l&&(c.disabled=l),(0,i.jsx)(kq,{field:e,type:"text",children:(0,i.jsx)(jy,$q($q({},c),{},{className:"rtsb-form-field",placeholder:o,name:t,value:n,onChange:function(e){return r(t,e.target.value)}}))})};function _q(e){return _q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_q(e)}function Iq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iq(Object(n),!0).forEach(function(t){Tq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tq(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_q(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Aq=function(e){var t=e.name,n=e.value,r=e.disabled,o=e.isPro,a=e.options,l=e.onChange,c=e.mode,s={};return r?s.disabled=r||!1:o&&(s.disabled=o),(0,i.jsx)(kq,{field:e,type:"select",children:(0,i.jsx)(FS,Mq(Mq({},s),{},{mode:c,showSearch:!0,options:a,name:t,value:n,onChange:function(e){return l(t,e)}}))})};function Rq(e){return Rq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rq(e)}var Dq=["fetchOptions","initialOptions","debounceTimeout"];function Lq(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return qq(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(qq(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,qq(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,qq(d,"constructor",s),qq(s,"constructor",c),c.displayName="GeneratorFunction",qq(s,o,"GeneratorFunction"),qq(d),qq(d,o,"Generator"),qq(d,r,function(){return this}),qq(d,"toString",function(){return"[object Generator]"}),(Lq=function(){return{w:i,m:f}})()}function qq(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}qq=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){qq(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},qq(e,t,n,r)}function zq(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Bq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bq(Object(n),!0).forEach(function(t){Fq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fq(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Rq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Rq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rq(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kq(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kq(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Uq(e){var t=e.fetchOptions,r=e.initialOptions,o=void 0===r?[]:r,a=e.debounceTimeout,l=void 0===a?400:a,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Dq),s=Wq((0,n.useState)(!1),2),u=s[0],d=s[1],f=Wq((0,n.useState)(o),2),p=f[0],h=f[1],m=(0,n.useRef)(0),v=(0,n.useMemo)(function(){return NI(function(e){m.current+=1;var n=m.current;h([]),d(!0),t(e).then(function(e){n===m.current&&(h(e),d(!1))})},l)},[t,l]);return(0,i.jsx)(FS,Hq(Hq({filterOption:!1,onSearch:v,notFoundContent:u?(0,i.jsx)(rM,{size:"small"}):null},c),{},{children:p.map(function(e){return(0,i.jsx)(FS.Option,{value:e.value,children:e.label},e.value)})}))}function Vq(){var e;return e=Lq().m(function e(t,n){var r,o,i,a;return Lq().w(function(e){for(;;)if(0===e.n)return(r=new URLSearchParams).append("action","rtsb_get_multiselect_data"),r.append("__rtsb_wpnonce",rtsbParams.nonce),null!=t&&t.func_with_param&&r.append("func_with_param",JSON.stringify(null==t?void 0:t.func_with_param)),n&&r.append("s",n),o=rtsbParams.ajaxurl.includes("?"),i=o?"&":"?",a="".concat(rtsbParams.ajaxurl).concat(i).concat(r.toString()),e.a(2,fetch(a).then(function(e){return e.json()}).then(function(e){return e.data.map(function(e){return{label:e.label,value:e.value}})}))},e)}),Vq=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){zq(i,r,o,a,l,"next",e)}function l(e){zq(i,r,o,a,l,"throw",e)}a(void 0)})},Vq.apply(this,arguments)}var Gq=function(e){var t=e.options,n=e.value,r=e.name,o=e.placeholder,a=e.onChange,l=(e.help,e.disabled),c=e.isPro,s=new Set,u={};return l?u.disabled=l||!1:c&&(u.disabled=c),(0,i.jsx)(kq,{field:e,type:"select",children:(0,i.jsx)(Uq,Hq(Hq({},u),{},{mode:"multiple",placeholder:o,initialOptions:t,fetchOptions:function(t){return function(e,t){return Vq.apply(this,arguments)}(e,t)},onChange:function(e,t){var n=t.map(function(e){return{value:e.value,label:e.children}}).filter(function(e){return!s.has(e.value)&&(s.add(e.value),!0)});a(r,n)},style:{width:"100%"},value:n}))})};function Yq(e){return Yq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yq(e)}function Xq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xq(Object(n),!0).forEach(function(t){Zq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zq(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Yq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Yq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yq(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jq=function(e){var t=e.name,n=e.value,r=e.onChange,o=e.disabled,a=e.isPro,l={};return o?l.disabled=o||!1:a&&(l.disabled=a),(0,i.jsx)(kq,{field:e,type:"select",children:(0,i.jsx)(gd,Qq(Qq({},l),{},{checkedChildren:"On",unCheckedChildren:"Off",checked:"on"===n,onChange:function(e){return r(t,e?"on":"off")}}))})};function ez(e){return ez="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ez(e)}function tz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tz(Object(n),!0).forEach(function(t){rz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rz(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ez(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ez(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ez(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oz(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return iz(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iz(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var az=(0,n.forwardRef)(function(e,t){var r=C$({id:e.id}),o=r.attributes,a=r.listeners,l=r.setNodeRef,c=r.transform,s=r.transition,u=r.isDragging,d=e.option,f=(e.index,e.activePanel,e.fieldGroup),p=e.allOptions,h=e.handleRemovePanel,m=e.setFieldsOptions,v=oz((0,n.useState)("var(--rtsb-admin-color-secondary)"),2),g=v[0],b=v[1],y={transform:hE.Translate.toString(c),transition:s,opacity:u?.8:1,zIndex:u?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},x=function(e,t){var n=p.map(function(n){return"isDefault"!==e||["checkboxgroup","multiselect"].includes(null==f?void 0:f.type)||(n.isDefault="off"),n.id===d.id?nz(nz({},n),{},rz({},e,t)):n});m(n)};return(0,n.useEffect)(function(){!function(){if(!["checkboxgroup","multiselect"].includes(null==f?void 0:f.type)){var e=!1,t=p.map(function(t){return e||"on"!==(null==t?void 0:t.isDefault)||e?nz(nz({},t),{},{isDefault:"off"}):(e=!0,t)});m(t)}}()},[null==f?void 0:f.type]),(0,i.jsx)("div",{className:"rtsb-repeater-item",ref:t?function(e){t.current=e,l(e)}:l,style:y,children:(0,i.jsx)("div",{className:"rtsb_group_repeater rtsb-inline-options-field",children:(0,i.jsxs)(xg,{wrap:!0,gap:"small",children:[(0,i.jsx)(om,{title:"Rearrange",placement:"left",children:(0,i.jsx)(N$,nz(nz({},o),a))}),(0,i.jsx)(Nq,{label:"",help:"Option Label",placeholder:"Option",value:d.label,name:"label",onChange:x}),(0,i.jsx)(Nq,{label:"",help:"Option Value",placeholder:"Value",value:d.value,name:"value",onChange:x}),(0,i.jsx)(Jq,{label:"",help:"Set as Default",value:d.isDefault,name:"isDefault",onChange:x}),(0,i.jsx)(LI,{style:{color:g},onClick:function(e){return h(e,null==d?void 0:d.id)},onMouseEnter:function(){return b("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return b("var(--rtsb-admin-color-secondary)")}})]})})})}),lz=function(e){var t=e.label,n=e.subtitle,r=(null==e?void 0:e.customClass)||"";return(0,i.jsxs)("div",{className:"rtsb-field-title ".concat(r),children:[(0,i.jsx)("h3",{className:"title-label",dangerouslySetInnerHTML:{__html:t}}),n&&(0,i.jsx)("div",{className:"rtsb-field__subtitle",dangerouslySetInnerHTML:{__html:n}})]})};function cz(e){return function(e){if(Array.isArray(e))return dz(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uz(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sz(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||uz(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uz(e,t){if(e){if("string"==typeof e)return dz(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dz(e,t):void 0}}function dz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const fz=function(e){var t=e.fieldGroup,r=e.onChange,o=null!=t&&t.options?t.options:[],a=sz((0,n.useState)(o),2),l=a[0],c=a[1],s=sz((0,n.useState)(0),2),u=s[0],d=s[1],f=sz((0,n.useState)(0),2),p=f[0],h=(f[1],function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=l.filter(function(e){return e.id!==t});c(n)}}),m=jE(EE(xj),EE(mj,{coordinateGetter:E$}));return(0,n.useEffect)(function(){r("options",l)},[l]),(0,i.jsx)(n$,{sensors:m,collisionDetection:AE,onDragEnd:function(e){var t=e.active,n=e.over;t.id!==n.id&&c(function(e){var r=e.findIndex(function(e){return e.id===t.id}),o=e.findIndex(function(e){return e.id===n.id});return c$(e,r,o)})},children:(0,i.jsxs)("div",{className:"rtsb-repeater-wrapper field-options-wrapper",style:{paddingTop:p,margin:0},children:[(0,i.jsxs)(v$,{items:l,strategy:p$,children:[(0,i.jsx)(lz,{label:"Options",subtitle:""}),l.length>0?l.map(function(e,n){return(0,i.jsx)(az,{id:e.id,index:n,activePanel:u,handleRemovePanel:h,fieldGroup:t,option:e,allOptions:l,setFieldsOptions:c},e.id)}):(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:"Kindly add at least one option."}})]}),(0,i.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px",display:"flex",justifyContent:"flex-end",position:"static",minWidth:"140px"},children:(0,i.jsx)(od,{className:"rtsb-button",onClick:function(){var e=l.length+1;c([].concat(cz(l),[{id:e,label:"",value:"",isDefault:!1}])),d(e)},style:{fontSize:"14px",color:"#fff"},children:" Add New Option "})})]})})};function pz(e){return pz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pz(e)}function hz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hz(Object(n),!0).forEach(function(t){vz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vz(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=pz(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=pz(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pz(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gz(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return bz(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(bz(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,bz(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,bz(d,"constructor",s),bz(s,"constructor",c),c.displayName="GeneratorFunction",bz(s,o,"GeneratorFunction"),bz(d),bz(d,o,"Generator"),bz(d,r,function(){return this}),bz(d,"toString",function(){return"[object Generator]"}),(gz=function(){return{w:i,m:f}})()}function bz(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}bz=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){bz(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},bz(e,t,n,r)}function yz(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function xz(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wz(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wz(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Sz=vR.Text,Cz=(vR.Link,(0,n.forwardRef)(function(e,t){var r,o,a,l,s=C$({id:e.fieldId}),u=s.attributes,d=s.listeners,f=s.setNodeRef,p=s.transform,h=s.transition,m=s.isDragging,v=e.fieldIndex,g=e.fieldActivePanel,b=e.fieldHandleRemovePanel,y=e.fieldGroup,x=e.setGroupFieldData,w=e.group,S=(e.groupIndex,e.allGroups),C=e.setGroups,O=xz(c(),2),k=(O[0],O[1],xz((0,n.useState)(String(v+1)===String(g)),2)),E=k[0],j=k[1],$=xz((0,n.useState)("var(--rtsb-admin-color-secondary)"),2),P=$[0],N=$[1],_={transform:hE.Translate.toString(p),transition:h,opacity:m?.8:1,zIndex:m?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},I=function(){var e,t=(e=gz().m(function e(t,n){var r;return gz().w(function(e){for(;;)switch(e.n){case 0:return r=n,"custom_key"===t&&(r=n.replace(/[\s-]+/g,"_")),e.n=1,x(y.id,t,r);case 1:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){yz(i,r,o,a,l,"next",e)}function l(e){yz(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e,n){return t.apply(this,arguments)}}(),M=function(e){return["custom_field"].includes(null==y?void 0:y.name)&&e===(null==y?void 0:y.type)},T=(null==y?void 0:y.validation)||"default";null!=y&&y.validation||"email"!==(null==y?void 0:y.name)&&!M("email")?null!=y&&y.validation||"state"!==(null==y?void 0:y.name)?null!=y&&y.validation||"postcode"!==(null==y?void 0:y.name)?null!=y&&y.validation||"phone"!==(null==y?void 0:y.name)&&!M("phone")||(T="phone"):T="postcode":T="state":T="email";var A=Object.entries(rtsbParams.userRoles).map(function(e){var t=xz(e,2),n=t[0];return{label:t[1],value:n}});return(0,i.jsx)("div",{className:"rtsb-repeater-item",ref:t?function(e){t.current=e,f(e)}:f,style:_,children:(0,i.jsx)(iq,{title:(0,i.jsxs)("span",{className:"title-wrapper",children:[(0,i.jsx)(om,{title:"Rearrange",placement:"left",children:(0,i.jsx)(N$,mz(mz({},u),d))}),(0,i.jsxs)(Sz,{children:[" ",(0,i.jsxs)(xg,{wrap:!0,gap:"small",align:"center",children:[(0,i.jsx)(Mg,{className:"on"===(null==y?void 0:y.isEnable)?"green":"red",style:{display:"inline-flex",alignItems:"center"},children:(0,i.jsxs)("div",{style:{display:"none"},children:[" ","on"===(null==y?void 0:y.isEnable)?"Enabled":"Disabled"," "]})}),["custom_field"].includes(null==y?void 0:y.name)?"Custom Field: ":null," ",(null==y?void 0:y.label)||"Untitled Field"," "]})," "]})]}),extra:(0,i.jsxs)(Sz,{onClick:function(){j(!E)},children:[E?(0,i.jsx)(hq,{style:{cursor:"pointer"}}):(0,i.jsx)(gq,{style:{cursor:"pointer"}}),"no"!==(null==y?void 0:y.deletable)?(0,i.jsx)(LI,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:P},onClick:function(e){return b(e,null==y?void 0:y.id)},onMouseEnter:function(){return N("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return N("var(--rtsb-admin-color-secondary)")}}):null]}),className:"rtsb-card-wrapper ".concat(E?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,i.jsx)(dq,{isOpen:E,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,i.jsxs)("div",{className:"rtsb_group_repeater",children:[(0,i.jsx)(Jq,{label:"Enable Field?",help:"Switch on to enable this field. When disabled, the field will not appear to users.",value:null==y?void 0:y.isEnable,name:"isEnable",onChange:I}),(0,i.jsx)(Nq,{label:"Field Label",help:"Enter the field label to be displayed next to the field.",placeholder:"Ex: First Name",value:null==y?void 0:y.label,name:"label",onChange:I}),(0,i.jsx)(Nq,{label:"Field Placeholder",help:"Enter the field placeholder to be displayed inside the field.",placeholder:"Field Placeholder",value:null==y?void 0:y.placeholder,name:"placeholder",onChange:I}),["custom_field"].includes(null==y?void 0:y.name)?null:(0,i.jsx)(Nq,{label:"Field Name",help:"no"===(null==y?void 0:y.deletable)?"This is the unique field name. You cannot change the default field name.":"Enter the name of the field used in form processing (e.g., first_name). This should be unique to avoid conflicts.",disabled:!0,placeholder:"Name",value:null==y?void 0:y.name,name:"name"}),["custom_field"].includes(null==y?void 0:y.name)&&!["heading"].includes(null==y?void 0:y.type)?(0,i.jsx)(Nq,{label:"Field Name",help:"Required Field",placeholder:"Custom Key",value:y.custom_key||"custom_key_".concat(null==y?void 0:y.id),name:"custom_key",onChange:I}):null,["custom_field"].includes(null==y?void 0:y.name)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Aq,{label:"Custom Field Type",help:"Select your preferred custom field type.",options:[{value:"text",label:"Text"},{value:"textarea",label:"Textarea"},{value:"select",label:"Select"},{value:"radio",label:"Radio"},{value:"number",label:"Number"},{value:"checkbox",label:"Checkbox"},{value:"email",label:"Email"},{value:"tel",label:"Tel"},{value:"heading",label:"Heading"},{value:"multiselect",label:"Multi-Select"},{value:"checkboxgroup",label:"Checkbox Group"},{value:"date",label:"Date"},{value:"time",label:"Time"},{value:"month",label:"Month"},{value:"week",label:"Week"}],value:(null==y?void 0:y.type)||"text",name:"type",onChange:I})}):null,["custom_field"].includes(null==y?void 0:y.name)&&["heading"].includes(null==y?void 0:y.type)?(0,i.jsx)(Aq,{label:"Heading Tag",help:"Select the heading tag.",options:[{value:"h1",label:"H1"},{value:"h2",label:"H2"},{value:"h3",label:"H3"},{value:"h4",label:"H4"},{value:"h5",label:"H5"},{value:"h6",label:"H6"},{value:"p",label:"P"},{value:"span",label:"Span"},{value:"div",label:"Div"}],value:(null==y?void 0:y.tag)||"h3",name:"tag",onChange:I}):null,["select","radio","checkboxgroup","multiselect","heading"].includes(null==y?void 0:y.type)?null:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Nq,{label:"checkbox"===(null==y?void 0:y.type)?"Value":"Default Value",help:"country"===(null==y?void 0:y.name)?"Enter a default value. Ex: US.":"Enter a default value. This is the pre-filled data for this field, shown to users by default.",placeholder:"checkbox"===(null==y?void 0:y.type)?"Value":"Enter a default value",value:null==y?void 0:y.default,name:"default",onChange:I})}),!["select","checkbox","radio","checkboxgroup","multiselect","heading","number"].includes(null==y?void 0:y.type)&&["custom_field"].includes(null==y?void 0:y.name)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Aq,{label:"Field Validation",help:"Choose the field validation rule. This prevents incorrect or incomplete submissions.",options:[{value:"default",label:"Default"},{value:"email",label:"Email"},{value:"phone",label:"Phone"},{value:"postcode",label:"Postcode"},{value:"state",label:"State"}],value:T,name:"validation",onChange:I})}):null,(0,i.jsx)(Nq,{label:"Custom Class",help:"Add custom CSS classes for styling purposes. You can input multiple classes separated by commas (e.g., form-row-first, form-row-last, form-row-wide).",placeholder:"Custom Class",value:null==y?void 0:y.custom_class,name:"custom_class",onChange:I}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Aq,{label:"Field Visibility",help:"Please choose whether to show this field to all users or only to specific users.",isPro:"yes"!==(null===(r=rtsbParams)||void 0===r?void 0:r.hasPro),options:[{value:"all",label:"All users"},{value:"specific",label:"Only users with a specific role"}],value:(null==y?void 0:y.fieldVisibility)||"all",name:"fieldVisibility",onChange:I}),["specific"].includes(null==y?void 0:y.fieldVisibility)?(0,i.jsx)(Gq,{label:"Select User Roles",help:"Please choose user roles to show this field.",isPro:"yes"!==(null===(o=rtsbParams)||void 0===o?void 0:o.hasPro),options:A,value:null==y?void 0:y.fieldVisibilityRoles,name:"fieldVisibilityRoles",onChange:I}):null]}),"checkbox"===(null==y?void 0:y.type)?(0,i.jsx)(Jq,{label:"Default Checkbox State",help:"Switch on to set the checkbox to be checked by default.",value:null==y?void 0:y.isChecked,name:"isChecked",onChange:I}):null,["custom_field"].includes(null==y?void 0:y.name)&&["heading"].includes(null==y?void 0:y.type)?null:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Jq,{label:"Required Field",help:"Switch on to make this field required for the checkout process to continue.",value:null==y?void 0:y.isRequired,name:"isRequired",onChange:I})}),["custom_field"].includes(null==y?void 0:y.name)&&!["heading"].includes(null==y?void 0:y.type)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Jq,{label:"Show in Email",help:"Switch on this option to include the field’s value in customer and admin emails.",value:null==y?void 0:y.isShowinEmail,name:"isShowinEmail",isPro:"yes"!==(null===(a=rtsbParams)||void 0===a?void 0:a.hasPro),onChange:I}),(0,i.jsx)(Jq,{label:"Show in Thank You Page",help:"Switch on this option to display the field’s value on the thank you page.",value:null==y?void 0:y.isShowinOrderDetails,name:"isShowinOrderDetails",isPro:"yes"!==(null===(l=rtsbParams)||void 0===l?void 0:l.hasPro),onChange:I})]}):null,["select","radio","checkboxgroup","multiselect"].includes(y.type)?(0,i.jsx)(fz,{fieldGroup:y,onChange:I,group:w,allGroups:S,setGroups:C}):null]})})})})})),Oz=[{id:1,deletable:"no",isEnable:"on",label:"First Name",type:"email",options:[],name:"first_name",validation:[],placeholder:"Placeholder Text ",isRequired:"on",default:"Name Is Required ",custom_class:"row-first"},{id:2,deletable:"no",isEnable:"on",label:"Last Name",type:"text",options:[],name:"last_name",isRequired:"on",placeholder:"Last Name ",default:"NO value",validation:[],custom_class:"row-last"},{id:3,deletable:"no",label:"Company Name",type:"text",options:[],isEnable:"on",name:"company",custom_class:"row-first"},{id:4,deletable:"no",label:"Country ",name:"country",type:"text",options:[],isEnable:"on"},{id:5,deletable:"no",label:"Email Address ",type:"text",options:[],isEnable:"on",name:"email",isRequired:"on",custom_class:"row-first"},{id:6,deletable:"no",label:"Street address",type:"text",options:[],name:"address_1",custom_class:"row-last",validation:["state"],isEnable:"on"},{id:7,deletable:"no",label:"Appartment Address ",type:"text",options:[],isEnable:"on",name:"address_2"},{id:8,deletable:"no",label:"City / Town ",type:"text",options:[],isEnable:"on",name:"city",validation:[],isRequired:"on",custom_class:"row-first"},{id:9,deletable:"no",label:"State/Country ",type:"text",options:[],name:"state",isEnable:"on"},{id:10,deletable:"no",label:"Postcode / ZIP",type:"text",options:[],isEnable:"on",name:"postcode",isRequired:"on",custom_class:"row-last"},{id:11,deletable:"no",label:"Phone",type:"text",options:[],isEnable:"on",name:"phone",isRequired:"on"}],kz=[{id:1,deletable:"no",isEnable:"on",label:"Order Note",type:"text",options:[],name:"order_comments",validation:[],placeholder:"Placeholder Text ",isRequired:"",default:"",custom_class:""}];function Ez(e){return Ez="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ez(e)}function jz(e){return function(e){if(Array.isArray(e))return Mz(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Iz(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$z(Object(n),!0).forEach(function(t){Nz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nz(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ez(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ez(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ez(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||Iz(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iz(e,t){if(e){if("string"==typeof e)return Mz(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mz(e,t):void 0}}function Mz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Tz=function(e){var t=_z(c(),2),r=t[0],o=t[1],a=e.field,l=(a.help,a.value),u=(a.placeholder,e.id),d=[];d="checkout_additional_fields"===u?kz:Oz;var f=l?PI(l):[];f=f.length>0?f:d;var p=_z((0,n.useState)(f),2),m=p[0],v=p[1],g=_z((0,n.useState)(0),2),b=g[0],y=g[1],x=_z((0,n.useState)(0),2),w=x[0],S=(x[1],_z((0,n.useState)(!1),2)),C=S[0],O=S[1],k=_z((0,n.useState)(!1),2),E=k[0],j=k[1],$=(0,n.useRef)(null),P=m.length,N=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=m.filter(function(e){return e.id!==t});v(n),j(!0)}},_=jE(EE(xj),EE(mj,{coordinateGetter:E$}));var I=function(e,t,n){j(!0);var r=m.map(function(r){return"type"===t&&(r.validation="default"),r.id===e?Pz(Pz({},r),{},Nz({},t,n)):r});v(r)};return(0,n.useEffect)(function(){C&&$.current&&($.current.scrollIntoView({behavior:"smooth"}),O(!1)),j(!0)},[m,C]),(0,n.useEffect)(function(){!function(){if(E){var e=m.filter(function(e){return e.name&&""!==e.name.trim()}).map(function(e,t){return Pz(Pz({},e),{},{id:t+1})});o({type:h,id:u,value:e,fieldType:"checkout_fields"}),j(!1)}}()},[E]),(0,i.jsx)(n$,{sensors:_,collisionDetection:AE,onDragEnd:function(e){if("yes"===rtsbParams.hasPro){var t=e.active,n=e.over;t.id!==n.id&&(v(function(e){var r=e.findIndex(function(e){return e.id===t.id}),o=e.findIndex(function(e){return e.id===n.id});return c$(e,r,o)}),j(!0))}else o({type:s,general:Pz(Pz({},r.general),{},{proInfoVisible:!0})})},children:(0,i.jsxs)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:w,margin:0},children:[(0,i.jsx)(v$,{items:m,strategy:p$,children:m.length>0?m.map(function(e,t){var n=t===P-1?$:null;return(0,i.jsx)(Cz,{fieldId:e.id,fieldIndex:t,fieldActivePanel:b,fieldHandleRemovePanel:N,fieldGroup:e,setGroupFieldData:I,ref:n},t)}):(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:"Kindly add at least one fields."}})}),(0,i.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px"},children:(0,i.jsx)(od,{className:"rtsb-button",onClick:function(){if("yes"===rtsbParams.hasPro){var e=P>0?P+1:1;v([].concat(jz(m),[{id:e,deletable:"yes",label:"Custom Field Label",name:"custom_field",custom_key:"custom_field_".concat(e),type:"text",validation:"default",custom_class:"form-row-wide",fieldVisibility:"all",fieldVisibilityRoles:[],options:[]}])),y(e),O(!0),j(!0)}else o({type:s,general:Pz(Pz({},r.general),{},{proInfoVisible:!0})})},style:{fontSize:"14px",color:"#fff"},children:"Add Custom Field"})})]})})};function Az(e){return Az="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Az(e)}function Rz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rz(Object(n),!0).forEach(function(t){Lz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lz(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Az(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Az(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Az(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qz=jy.TextArea,zz=function(e){var t=e.name,n=e.value,r=e.placeholder,o=e.isPro,a=e.onChange,l=e.disabled,c={};return l?c.disabled=l||!1:o&&(c.disabled=o),(0,i.jsx)(kq,{field:e,type:"text",children:(0,i.jsx)(qz,Dz(Dz({},c),{},{rows:4,className:"rtsb-form-field",placeholder:r,name:t,value:n,onChange:function(e){return a(t,e.target.value)}}))})};function Bz(e){return Bz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bz(e)}function Hz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hz(Object(n),!0).forEach(function(t){Wz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wz(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Bz(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Bz(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bz(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kz=function(e){var t=e.name,n=e.value,r=e.onChange,o=e.placeholder,a=e.disabled,l=e.isPro,c={};return a?c.disabled=a||!1:l&&(c.disabled=l),(0,i.jsx)(kq,{field:e,type:"number",children:(0,i.jsx)(NC,Fz(Fz({},c),{},{className:"rtsb-form-field",placeholder:o,name:t,value:"null"!==n?n:"",defaultValue:"null"!==n?n:"",min:0,onChange:function(e){return r(t,e)}}))})};function Uz(e){return Uz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uz(e)}function Vz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vz(Object(n),!0).forEach(function(t){Yz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yz(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Uz(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Uz(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uz(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xz(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qz(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qz(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Zz=(0,n.forwardRef)(function(e,t){var r=C$({id:e.id}),o=r.attributes,a=r.listeners,l=r.setNodeRef,c=r.transform,s=r.transition,u=r.isDragging,d=e.option,f=(e.index,e.activePanel,e.allOptions),p=e.handleRemovePanel,h=e.setFieldsOptions,m=Xz((0,n.useState)("var(--rtsb-admin-color-secondary)"),2),v=m[0],g=m[1],b={transform:hE.Translate.toString(c),transition:s,opacity:u?.8:1,zIndex:u?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},y=function(e,t){var n=f.map(function(n){return"default"===e&&(n.default="off"),n.id===d.id?Gz(Gz({},n),{},Yz({},e,t)):n});h(n)};return(0,i.jsx)("div",{className:"rtsb-repeater-item",ref:t?function(e){t.current=e,l(e)}:l,style:b,children:(0,i.jsx)("div",{className:"rtsb_group_repeater rtsb-inline-options-field",children:(0,i.jsxs)(xg,{wrap:!0,gap:"small",children:[(0,i.jsx)(om,{title:"Rearrange",placement:"left",children:(0,i.jsx)(N$,Gz(Gz({},o),a))}),(0,i.jsx)(Nq,{label:"",help:"Option Name",placeholder:"Option",value:d.name,name:"name",onChange:y}),(0,i.jsx)(Kz,{label:"",help:"Option Price",placeholder:"Price",value:d.price,name:"price",onChange:y}),(0,i.jsx)(Jq,{label:"",help:"Default Selected?",value:d.default,name:"default",onChange:y}),(0,i.jsx)(LI,{style:{color:v},onClick:function(e){return p(e,null==d?void 0:d.id)},onMouseEnter:function(){return g("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return g("var(--rtsb-admin-color-secondary)")}})]})})})});function Jz(e){return function(e){if(Array.isArray(e))return nB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tB(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||tB(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tB(e,t){if(e){if("string"==typeof e)return nB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nB(e,t):void 0}}function nB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const rB=function(e){var t=e.fieldGroup,r=e.onChange,o=null!=t&&t.options?t.options:[],a=eB((0,n.useState)(o),2),l=a[0],c=a[1],s=eB((0,n.useState)(0),2),u=s[0],d=s[1],f=eB((0,n.useState)(30),2),p=f[0],h=f[1],m=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=l.filter(function(e){return e.id!==t});c(n),h(0)}},v=jE(EE(xj),EE(mj,{coordinateGetter:E$}));return(0,n.useEffect)(function(){r("options",l)},[l]),(0,i.jsx)(n$,{sensors:v,collisionDetection:AE,onDragEnd:function(e){var t=e.active,n=e.over;t.id!==n.id&&c(function(e){var r=e.findIndex(function(e){return e.id===t.id}),o=e.findIndex(function(e){return e.id===n.id});return c$(e,r,o)})},children:(0,i.jsxs)("div",{className:"rtsb-repeater-wrapper field-options-wrapper",style:{paddingTop:p,margin:0},children:[(0,i.jsxs)(v$,{items:l,strategy:p$,children:[l.length>0?(0,i.jsx)(lz,{label:"Options",subtitle:""}):null,l.length>0?l.map(function(e,t){return(0,i.jsx)(Zz,{id:e.id,index:t,activePanel:u,handleRemovePanel:m,option:e,allOptions:l,setFieldsOptions:c},e.id)}):null]}),(0,i.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px",display:"flex",justifyContent:"flex-end",position:"static",minWidth:"140px"},children:(0,i.jsxs)(od,{className:"rtsb-button",onClick:function(){var e=l.length+1;c([].concat(Jz(l),[{id:e}])),d(e),h(30)},style:{fontSize:"13px",padding:"7px 10px",color:"#fff",minWidth:"140px"},children:[" ","Add New Option"," "]})})]})})};function oB(e){return oB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oB(e)}function iB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iB(Object(n),!0).forEach(function(t){lB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=oB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var uB=vR.Text,dB=(vR.Link,(0,n.forwardRef)(function(e,t){var r=C$({id:e.fieldId}),o=r.attributes,a=r.listeners,l=r.setNodeRef,c=r.transform,s=r.transition,u=r.isDragging,d=e.fieldIndex,f=e.fieldActivePanel,p=e.fieldHandleRemovePanel,h=e.fieldGroup,m=e.setGroupFieldData,v=e.group,g=(e.groupIndex,e.allGroups),b=e.setGroups,y=cB((0,n.useState)(String(d+1)===String(f)),2),x=y[0],w=y[1],S=cB((0,n.useState)("var(--rtsb-admin-color-secondary)"),2),C=S[0],O=S[1],k={transform:hE.Translate.toString(c),transition:s,opacity:u?.8:1,zIndex:u?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},E=function(e,t){m(h.id,e,t)};return(0,i.jsx)("div",{className:"rtsb-repeater-item",ref:t?function(e){t.current=e,l(e)}:l,style:k,children:(0,i.jsx)(iq,{title:(0,i.jsxs)("span",{className:"title-wrapper",children:[(0,i.jsx)(om,{title:"Rearrange",placement:"left",children:(0,i.jsx)(N$,aB(aB({},o),a))}),(0,i.jsxs)(uB,{children:[" ",(null==h?void 0:h.label)||"Untitled Field"," "]})]}),extra:(0,i.jsxs)(uB,{onClick:function(){w(!x)},children:[x?(0,i.jsx)(hq,{style:{cursor:"pointer"}}):(0,i.jsx)(gq,{style:{cursor:"pointer"}}),(0,i.jsx)(LI,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:C},onClick:function(e){return p(e,null==h?void 0:h.id)},onMouseEnter:function(){return O("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return O("var(--rtsb-admin-color-secondary)")}})]}),className:"rtsb-card-wrapper ".concat(x?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,i.jsx)(dq,{isOpen:x,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,i.jsxs)("div",{className:"rtsb_group_repeater",children:[(0,i.jsx)(Nq,{label:"Field Label",help:"Enter the field label. This is a mandatory field.",placeholder:"Field Label",value:h.label,name:"label",onChange:E}),(0,i.jsx)(Aq,{label:"Field Type",help:"Select your desired field type.",options:[{value:"text",label:"Text"},{value:"textarea",label:"TextArea"},{value:"number",label:"Number"},{value:"radio",label:"Radio"},{value:"select",label:"Select"},{value:"image_upload",label:"Image Upload"},{value:"checkbox",label:"Checkbox"},{value:"text_select",label:"Text Select"},{value:"switch",label:"Switch"}],value:(null==h?void 0:h.type)||"text",name:"type",onChange:E}),["select","checkbox","radio","text_select","switch"].includes(h.type)?null:(0,i.jsx)(Kz,{label:"Price",help:"Enter the field price.",placeholder:"Price",value:h.price,name:"price",onChange:E}),(0,i.jsx)(zz,{label:"Description",help:"Enter the field description.",placeholder:"Field Description",value:h.description,name:"description",onChange:E}),["checkbox","radio","text_select","switch"].includes(h.type)?null:(0,i.jsx)(Nq,{label:"Placeholder",help:"Enter the field placeholder. This can also be used if the input type is select.",placeholder:"Placeholder Text",value:h.placeholder,name:"placeholder",onChange:E}),(0,i.jsx)(Jq,{label:"Is The Field Required?",help:"Switch on to add this field as required.",value:null==h?void 0:h.required,name:"required",onChange:E}),(0,i.jsx)(Jq,{label:"Show Description as Tooltips?",help:"Switch on to show the field description as a tooltip.",value:null==h?void 0:h.tooltip,name:"tooltip",onChange:E}),["checkbox","text_select","select","switch"].includes(h.type)?(0,i.jsx)(Jq,{label:"Allow Multiple Selection?",help:"Switch on to allow multiple selection.",value:null==h?void 0:h.multiple,name:"multiple",onChange:E}):null,["select","checkbox","radio","text_select","switch"].includes(h.type)?(0,i.jsx)(rB,{fieldGroup:h,onChange:E,group:v,allGroups:g,setGroups:b}):null]})})})})}));function fB(e){return fB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fB(e)}function pB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pB(Object(n),!0).forEach(function(t){mB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=fB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vB(e){return function(e){if(Array.isArray(e))return yB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bB(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||bB(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bB(e,t){if(e){if("string"==typeof e)return yB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yB(e,t):void 0}}function yB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const xB=function(e){var t=e.group,r=e.groupIndex,o=e.groupFields,a=e.allGroups,l=e.setGroups,c=gB((0,n.useState)(o||[]),2),s=c[0],u=c[1],d=gB((0,n.useState)(0),2),f=d[0],p=d[1],h=gB((0,n.useState)(0),2),m=h[0],v=(h[1],gB((0,n.useState)(!1),2)),g=v[0],b=v[1],y=(0,n.useRef)(null),x=s.length;(0,n.useEffect)(function(){g&&y.current&&(y.current.scrollIntoView({behavior:"smooth"}),b(!1))},[s,g]);var w=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=s.filter(function(e){return e.id!==t});u(n)}},S=jE(EE(xj),EE(mj,{coordinateGetter:E$}));var C=function(e,t,n){var r=s.map(function(r){return r.id===e?hB(hB({},r),{},mB({},t,n)):r});u(r)};return(0,n.useEffect)(function(){var e;e=a.map(function(e,n){return e.id===t.id?hB(hB({},e),{},{inputs:s}):e}),l(e)},[s]),(0,i.jsx)(n$,{sensors:S,collisionDetection:AE,onDragEnd:function(e){var t=e.active,n=e.over;t.id!==n.id&&u(function(e){var r=e.findIndex(function(e){return e.id===t.id}),o=e.findIndex(function(e){return e.id===n.id});return c$(e,r,o)})},children:(0,i.jsxs)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:m,margin:0},children:[(0,i.jsx)(v$,{items:s,strategy:p$,children:s.length>0?s.map(function(e,n){var o=n===x-1?y:null;return(0,i.jsx)(dB,{fieldId:e.id,fieldIndex:n,fieldActivePanel:f,fieldHandleRemovePanel:w,fieldGroup:e,setGroupFieldData:C,groupIndex:r,group:t,allGroups:a,setGroups:l,ref:o},n)}):null}),(0,i.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px",display:"flex",justifyContent:"flex-end",position:"static"},children:(0,i.jsxs)(od,{className:"rtsb-button",onClick:function(){var e=s.length>0?s.length+1:1;u([].concat(vB(s),[{id:e,label:"",type:"text",price:"",options:[]}])),p(e),b(!0)},style:{fontSize:"13px",padding:"7px 10px",color:"#fff",minWidth:"140px"},children:[" ","Add New Field"]})})]})})};function wB(e){return wB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wB(e)}function SB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SB(Object(n),!0).forEach(function(t){OB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function OB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=wB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return EB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?EB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jB=vR.Text,$B=(0,n.forwardRef)(function(e,t){var r,o=C$({id:e.groupId}),a=o.attributes,l=o.listeners,c=o.setNodeRef,s=o.transform,u=o.transition,d=o.isDragging,f=e.group,p=e.groupIndex,h=e.allGroups,m=e.setGroups,v=e.activePanel,g=e.handleRemovePanel,b=e.field,y=kB((0,n.useState)(String(p+1)===String(v)),2),x=y[0],w=y[1],S=kB((0,n.useState)("var(--rtsb-admin-color-secondary)"),2),C=S[0],O=S[1],k={transform:hE.Translate.toString(s),transition:u,opacity:d?.8:1,zIndex:d?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},E=function(e,t){var n=h.map(function(n){return n.id===f.id?CB(CB({},n),{},OB({},e,t)):n});m(n)},j=function(e,t){var n=h.map(function(n){return n.id===f.id?CB(CB({},n),{},OB({},e,t)):n});m(n)};return(0,i.jsx)("div",{className:"rtsb-repeater-item",ref:t?function(e){t.current=e,c(e)}:c,style:k,children:(0,i.jsx)(iq,{title:(0,i.jsxs)("span",{className:"title-wrapper",children:[(0,i.jsx)(om,{title:"Rearrange",placement:"left",children:(0,i.jsx)(N$,CB(CB({},a),l))}),(0,i.jsxs)(jB,{children:[" ",(null==f?void 0:f.name)||"Untitled Group"," "]})]}),extra:(0,i.jsxs)(jB,{onClick:function(){w(!x)},children:[x?(0,i.jsx)(hq,{style:{cursor:"pointer"}}):(0,i.jsx)(gq,{style:{cursor:"pointer"}}),(0,i.jsx)(LI,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:C},onClick:function(e){return g(e,null==f?void 0:f.id)},onMouseEnter:function(){return O("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return O("var(--rtsb-admin-color-secondary)")}})]}),className:"rtsb-card-wrapper ".concat(x?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,i.jsx)(dq,{isOpen:x,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,i.jsxs)("div",{className:"rtsb_group_repeater",children:[(0,i.jsx)(Nq,{label:"Group Name",help:"Enter the group name. This is a required field.",placeholder:"Name",value:f.name,name:"name",onChange:E}),(0,i.jsx)(zz,{label:"Group Description",help:"Enter the group description.",value:f.description,name:"description",onChange:E}),(0,i.jsx)(Aq,{label:"Group By",help:"Select your desired field type.",options:[{value:"category",label:"Category"},{value:"product",label:"Product"}],value:(null==f?void 0:f.group_by)||"category",name:"group_by",onChange:E}),"category"===((null==f?void 0:f.group_by)||"category")?(0,i.jsx)(Gq,{label:"Group By Category",help:"Choose categories to include. Leave blank to apply in all categories.",func_with_param:["RadiusTheme\\SB\\Helpers\\Fns","products_category_query"],placeholder:"Select Category",options:(null==b?void 0:b.cat_list)||[],name:"group_cat",value:null!=f&&f.group_cat?f.group_cat:[],onChange:j}):null,"product"===((null==f?void 0:f.group_by)||"category")?(0,i.jsx)(Gq,{label:"Group By Product",help:"Choose products to include. Leave blank to apply in all product.",func_with_param:["RadiusTheme\\SB\\Helpers\\Fns","get_post_types",{post_type:["product"]}],placeholder:"Select Product",options:(null==b?void 0:b.product_list)||[],name:"group_product",value:null!=f&&f.group_product?f.group_product:[],onChange:j}):null,(0,i.jsx)(Jq,{label:"Display Group Name",help:"Switch on to show group name in the frontend.",value:null==f?void 0:f.show_name,name:"show_name",onChange:E}),(0,i.jsx)(Jq,{label:"Display Group Description",help:"Switch on to show group description in the frontend.",value:null==f?void 0:f.show_desc,name:"show_desc",onChange:E}),(null==f||null===(r=f.inputs)||void 0===r?void 0:r.length)>0?(0,i.jsx)(lz,{label:"Group Fields",subtitle:""}):null,(0,i.jsx)(xB,{groupIndex:p,group:f,groupFields:(null==f?void 0:f.inputs)||[],allGroups:h,setGroups:m})]})})})})});function PB(e){return PB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PB(e)}function NB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NB(Object(n),!0).forEach(function(t){IB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function IB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=PB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=PB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==PB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MB(e){return function(e){if(Array.isArray(e))return RB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AB(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||AB(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AB(e,t){if(e){if("string"==typeof e)return RB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RB(e,t):void 0}}function RB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const DB=function(e){var t=TB(c(),2),r=(t[0],t[1]),o=e.field.value,a=e.id,l=o?PI(o):[],s=TB((0,n.useState)(l),2),u=s[0],d=s[1],f=TB((0,n.useState)(0),2),p=f[0],m=f[1],v=TB((0,n.useState)(0),2),g=v[0],b=(v[1],TB((0,n.useState)(!1),2)),y=b[0],x=b[1],w=(0,n.useRef)(null),S=u.length;(0,n.useEffect)(function(){y&&w.current&&(w.current.scrollIntoView({behavior:"smooth"}),x(!1))},[u,y]);var C=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=u.filter(function(e){return e.id!==t});d(n)}},O=jE(EE(xj),EE(mj,{coordinateGetter:E$}));return(0,n.useEffect)(function(){var e;e=u.filter(function(e){return e.name&&""!==e.name.trim()}).map(function(e,t){return _B(_B({},e),{},{id:t+1})}),r({type:h,id:a,value:e,fieldType:"product_addons_special_settings"})},[u]),(0,i.jsx)(n$,{sensors:O,collisionDetection:AE,onDragEnd:function(e){var t=e.active,n=e.over;t.id!==n.id&&d(function(e){var r=e.findIndex(function(e){return e.id===t.id}),o=e.findIndex(function(e){return e.id===n.id});return c$(e,r,o)})},children:(0,i.jsxs)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:g},children:[(0,i.jsx)(v$,{items:u,strategy:p$,children:u.length>0?u.map(function(t,n){var r=n===S-1?w:null;return(0,i.jsx)($B,{groupId:t.id,groupIndex:n,group:t,allGroups:u,setGroups:d,activePanel:p,handleRemovePanel:C,field:e.field,ref:r},t.id)}):null}),(0,i.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px"},children:(0,i.jsxs)(od,{className:"rtsb-button",onClick:function(){var e=u.length>0?u.length+1:1,t={id:e,inputs:[]};d([].concat(MB(u),[t])),m(e),x(!0)},style:{fontSize:"14px",color:"#fff"},children:[" ","Add New Group"," "]})})]})})};function LB(e){return LB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LB(e)}function qB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qB(Object(n),!0).forEach(function(t){BB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function BB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=LB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=LB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==LB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return FB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const WB=function(e){var t,r,o,a,l=e.field,s=l.help,u=l.value,d=l.min,f=l.max,p=l.unit,m=l.disabled,v=l.isPro,g=e.id,b=null===(t=e.field)||void 0===t?void 0:t.fieldType,y=null===(r=e.field)||void 0===r?void 0:r.parentId,x=null===(o=e.field)||void 0===o?void 0:o.index,w=null===(a=e.field)||void 0===a?void 0:a.repeaterData,S=HB(c(),2),C=(S[0],S[1]),O=HB((0,n.useState)(u||1),2),k=O[0],E=O[1],j={};m?j.disabled=m||!1:v&&(j.disabled=v),(0,n.useEffect)(function(){E(u)},[u]);var $=function(e){E(e),C({type:h,id:g,value:e,fieldType:b,parentId:y,repeaterData:w,index:x})};return(0,i.jsxs)("div",{className:"rtsb-field rtsb-slider",children:[(0,i.jsx)(Tg,{field:e.field}),(0,i.jsxs)("div",{className:"rtsb-field__content",children:[(0,i.jsx)("div",{className:"rtsb-field-control",children:(0,i.jsxs)("div",{className:"slider-wrapper",children:[(0,i.jsx)(fk,zB(zB({},j),{},{className:"rtsb-form-field",min:d,max:f,onChange:$,value:k})),(0,i.jsxs)("div",{className:"number-input",children:[(0,i.jsx)(NC,zB(zB({},j),{},{min:d,max:f,onChange:$,value:k})),(0,i.jsx)("span",{children:p})]})]})}),(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function KB(e){return KB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KB(e)}function UB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UB(Object(n),!0).forEach(function(t){GB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function GB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=KB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=KB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==KB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return XB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var QB=jy.TextArea,ZB=function(e){var t=e.name,r=e.value,o=e.onChange,a=e.placeholder,l=e.disabled,s=e.isPro,u=YB(c(),2),d=(u[0],u[1],YB((0,n.useState)("visual"),2)),f=d[0],p=d[1],h=YB((0,n.useState)(r),2),m=h[0],v=h[1],g={};l?g.disabled=l||!1:s&&(g.disabled=s);var b=function(e){p(e)};return(0,n.useEffect)(function(){v(r)},[r]),(0,i.jsx)(kq,{field:e,type:"editor",children:(0,i.jsxs)("div",{className:"rtsb-field-control ".concat(s?"rtsb-text-editor-disable":""),children:[(0,i.jsxs)("div",{className:"editor-tabs",children:[(0,i.jsx)("button",{onClick:function(){return b("visual")},className:"".concat("visual"===f?"active ":"","rtsb-switch-editor"),children:"Visual"}),(0,i.jsx)("button",{onClick:function(){return b("html")},className:"".concat("html"===f?"active ":"","html rtsb-switch-editor"),children:"HTML"})]}),"visual"===f?(0,i.jsx)(GT(),{theme:"snow",value:m,modules:{toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"bullet"},{list:"ordered"}],["blockquote",{align:[]},"link","code"],[{color:[]},{background:[]}]]},formats:["header","bold","italic","underline","bullet","list","blockquote","align","link","code","color","background"],onChange:function(e){s&&(e=""),v(e),o(t,e)},placeholder:a}):(0,i.jsx)(QB,VB(VB({},g),{},{rows:4,className:"rtsb-form-field",value:m,onChange:function(e){return o(t,e.target.value)},placeholder:a}))]})})};function JB(e){return JB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JB(e)}function eH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eH(Object(n),!0).forEach(function(t){nH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=JB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=JB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==JB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var iH=vR.Text,aH=(vR.Link,(0,n.forwardRef)(function(e,t){var r=C$({id:e.fieldId}),o=r.attributes,a=r.listeners,l=r.setNodeRef,s=r.transform,u=r.transition,d=r.isDragging,f=e.fieldIndex,p=e.fieldActivePanel,h=e.fieldHandleRemovePanel,m=e.fieldGroup,v=e.setGroupFieldData,g=(e.group,e.groupIndex,e.allGroups,e.setGroups,rH(c(),2)),b=(g[0],g[1],rH((0,n.useState)(String(f+1)===String(p)),2)),y=b[0],x=b[1],w=rH((0,n.useState)("var(--rtsb-admin-color-secondary)"),2),S=w[0],C=w[1],O={transform:hE.Translate.toString(s),transition:u,opacity:d?.8:1,zIndex:d?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},k=function(e,t){v(m.id,e,t)};return(0,i.jsx)("div",{className:"rtsb-repeater-item",ref:t?function(e){t.current=e,l(e)}:l,style:O,children:(0,i.jsx)(iq,{title:(0,i.jsxs)("span",{className:"title-wrapper",children:[(0,i.jsx)(om,{title:"Rearrange",placement:"left",children:(0,i.jsx)(N$,tH(tH({},o),a))}),(0,i.jsxs)(iH,{children:[" ",(0,i.jsxs)(xg,{wrap:!0,gap:"small",align:"center",children:[(0,i.jsx)(Mg,{className:"on"===(null==m?void 0:m.is_activated)?"green":"red",style:{display:"inline-flex",alignItems:"center"},children:(0,i.jsxs)("div",{style:{display:"none"},children:[" ","on"===(null==m?void 0:m.is_activated)?"Enabled":"Disabled"," "]})}),(null==m?void 0:m.title)||"Untitled Field"," "]})," "]})]}),extra:(0,i.jsxs)(iH,{onClick:function(){x(!y)},children:[y?(0,i.jsx)(hq,{style:{cursor:"pointer"}}):(0,i.jsx)(gq,{style:{cursor:"pointer"}}),"no"!==(null==m?void 0:m.deletable)?(0,i.jsx)(LI,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:S},onClick:function(e){return h(e,null==m?void 0:m.id)},onMouseEnter:function(){return C("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return C("var(--rtsb-admin-color-secondary)")}}):null]}),className:"rtsb-card-wrapper ".concat(y?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,i.jsx)(dq,{isOpen:y,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,i.jsxs)("div",{className:"rtsb_group_repeater",children:[(0,i.jsx)(Jq,{label:"Enable Template?",help:"Switch on to enable this Template. When disabled, the Template will not use at all.",value:null==m?void 0:m.is_activated,name:"is_activated",onChange:k}),(0,i.jsx)(Nq,{label:"Template Name",help:"Enter the field label to be displayed next to the field.",placeholder:"Ex: First Template",value:null==m?void 0:m.title,name:"title",onChange:k}),(0,i.jsx)(Nq,{label:"Subject",help:"Enter the subject line that will appear in the recovery email.",placeholder:"Ex: Subject",value:null==m?void 0:m.email_subject,name:"email_subject",onChange:k}),(0,i.jsx)(ZB,{label:"Email Body",help:"Enter the email body content for the recovery email. <br/> You can use the following dynamic variables: {{cart.total}}, {{cart.item_count}}, {{cart.checkout_url}}, {{cart.unsubscribe}}, {{customer.first_name}}, {{customer.last_name}}, {{customer.full_name}}, {{customer.email}}, {{store.name}}, {{store.url}}, {{admin.firstname}}, {{cart.coupon_code}}, {{cart.abandoned_date}}",placeholder:"Ex: Thank you For you email",value:null==m?void 0:m.email_body,name:"email_body",onChange:k}),(0,i.jsx)(Kz,{label:"Frequency",help:"Set how long after cart abandonment is detected this email will be sent. Combine this with the Frequency Unit below to determine the exact timing.",placeholder:"Ex: 10",value:null==m?void 0:m.frequency,name:"frequency",onChange:k}),(0,i.jsx)(Aq,{label:"Frequency Unit",help:"Select the unit of time for the frequency. For example, if you enter 10 and select 'Minutes', this abandoned cart email will be sent 10 minutes after the cart is abandoned. Selecting 'Hours' or 'Days' will send it 10 hours or 10 days later, respectively.",options:[{value:"MINUTE",label:"Minutes"},{value:"HOUR",label:"Hours"},{value:"DAY",label:"Days"}],value:(null==m?void 0:m.frequency_unit)||"MINUTE",name:"frequency_unit",onChange:k}),(0,i.jsx)(lz,{label:"Coupon Code",subtitle:"Auto-create a special coupon for the abandoned cart."}),(0,i.jsx)(Jq,{label:"Create Coupon Code?",help:"Switch on to Auto-create a special coupon for the abandoned cart..",value:null==m?void 0:m.coupon_enabled,name:"coupon_enabled",onChange:k}),"on"===(null==m?void 0:m.coupon_enabled)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Aq,{label:"Discount Type",help:"Select the Discount Type.",options:[{value:"percentage",label:"Percentage Discount"},{value:"fixed",label:"Fixed Cart Discount"}],value:(null==m?void 0:m.coupon_discount_type)||"fixed",name:"coupon_discount_type",onChange:k}),(0,i.jsx)(Kz,{label:"Amount/Discount",help:"Amount for the coupon.",placeholder:"Ex: 10",value:null==m?void 0:m.coupon_amount,name:"coupon_amount",onChange:k}),(0,i.jsx)(Nq,{label:"Coupon Prefix",help:"Enter a prefix to be added before the generated coupon code.",placeholder:"Ex: SAVE",value:null==m?void 0:m.coupon_prefix,name:"coupon_prefix",onChange:k}),(0,i.jsx)(Kz,{label:"Coupon Expired After (Days)",help:"Set how many days after issuance the coupon will remain valid.",placeholder:"Ex: 10",min:1,value:null==m?void 0:m.coupon_expiration,name:"coupon_expiration",onChange:k}),(0,i.jsx)(Jq,{label:"Free Shipping",help:"Grant free shipping with this coupon.",value:null==m?void 0:m.coupon_free_shipping,name:"coupon_free_shipping",onChange:k}),(0,i.jsx)(Jq,{label:"Individual Use Only",help:"Coupon cannot be used in conjunction with other coupons.",value:null==m?void 0:m.coupon_individual_use,name:"coupon_individual_use",onChange:k}),(0,i.jsx)(Jq,{label:"Auto Apply Coupon",help:"Automatically apply coupon at checkout.",value:null==m?void 0:m.coupon_auto_apply,name:"coupon_auto_apply",onChange:k})]}):""]})})})})})),lH=[{id:1,title:"Gentle Cart Reminder",email_subject:"You left something behind!",email_body:'\n <div style="font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto; padding: 20px; background-color: #f9f9f9;">\n <div style="background-color: #ffffff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">\n <h2 style="color: #333; margin-top: 0;">Hi {{customer.first_name}},</h2>\n \n <p style="color: #555; line-height: 1.6;">We noticed you left <strong>{{cart.item_count}} item(s)</strong> in your cart at {{store.name}}. We\'ve saved them for you!</p>\n \n <p style="color: #555; line-height: 1.6;">Your cart total: <strong>{{cart.total}}</strong></p>\n \n <div style="text-align: center; margin: 30px 0;">\n <a href="{{cart.checkout_url}}" style="background-color: #4CAF50; color: white; padding: 14px 28px; text-decoration: none; border-radius: 4px; display: inline-block; font-weight: bold;">Complete Your Purchase</a>\n </div>\n \n <p style="color: #555; line-height: 1.6;">If you have any questions, feel free to reach out. We\'re here to help!</p>\n \n <p style="color: #555; line-height: 1.6;">Best regards,<br>{{admin.firstname}} from {{store.name}}</p>\n \n <hr style="border: none; border-top: 1px solid #eee; margin: 30px 0;">\n \n <p style="color: #999; font-size: 12px; text-align: center;">\n <a href="{{cart.unsubscribe}}" style="color: #999;">Unsubscribe from cart reminders</a>\n </p>\n </div>\n </div>\n ',is_activated:"",menu_order:0,frequency:30,frequency_unit:"MINUTE"},{id:2,title:"Your Items Are Waiting",email_subject:"Still interested? Your cart is ready!",email_body:'\n <div style="font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto; padding: 20px; background-color: #f9f9f9;">\n <div style="background-color: #ffffff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">\n <h2 style="color: #333; margin-top: 0;">Hello {{customer.full_name}},</h2>\n \n <p style="color: #555; line-height: 1.6;">Your cart at {{store.name}} is still waiting for you! We wanted to remind you about the items you selected on {{cart.abandoned_date}}.</p>\n \n <div style="background-color: #f0f8ff; padding: 20px; border-radius: 6px; margin: 20px 0;">\n <p style="margin: 0; color: #555; font-size: 14px;">Cart Summary:</p>\n <p style="margin: 10px 0 0 0; color: #333; font-size: 18px; font-weight: bold;">{{cart.item_count}} item(s) • {{cart.total}}</p>\n </div>\n \n <p style="color: #555; line-height: 1.6;">These items are popular and might sell out soon. Complete your order now to secure them!</p>\n \n <div style="text-align: center; margin: 30px 0;">\n <a href="{{cart.checkout_url}}" style="background-color: #2196F3; color: white; padding: 14px 28px; text-decoration: none; border-radius: 4px; display: inline-block; font-weight: bold;">View My Cart</a>\n </div>\n \n <p style="color: #555; line-height: 1.6;">Need help deciding? Contact us at <a href="{{store.url}}" style="color: #2196F3;">{{store.name}}</a></p>\n \n <hr style="border: none; border-top: 1px solid #eee; margin: 30px 0;">\n \n <p style="color: #999; font-size: 12px; text-align: center;">\n <a href="{{cart.unsubscribe}}" style="color: #999;">Unsubscribe</a>\n </p>\n </div>\n </div>\n ',is_activated:"",menu_order:1,frequency:6,frequency_unit:"HOUR"},{id:3,title:"Special Discount Offer",email_subject:"Here's 15% OFF to complete your order!",email_body:'\n <div style="font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto; padding: 20px; background-color: #f9f9f9;">\n <div style="background-color: #ffffff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">\n <div style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; border-radius: 6px; text-align: center; margin-bottom: 30px;">\n <h2 style="color: #ffffff; margin: 0; font-size: 24px;">Special Offer Just For You!</h2>\n <p style="color: #ffffff; margin: 10px 0 0 0; font-size: 16px;">Complete your purchase and save!</p>\n </div>\n \n <p style="color: #555; line-height: 1.6;">Hi {{customer.first_name}},</p>\n \n <p style="color: #555; line-height: 1.6;">We really want to see you complete your order! As a special thank you for being a valued customer, we\'re offering you an exclusive discount.</p>\n \n <div style="background-color: #fff3cd; border-left: 4px solid #ffc107; padding: 15px; margin: 20px 0;">\n <p style="margin: 0; color: #856404; font-weight: bold;">Your Exclusive Coupon Code:</p>\n <p style="margin: 10px 0 0 0; color: #856404; font-size: 24px; font-weight: bold; letter-spacing: 2px;">{{cart.coupon_code}}</p>\n </div>\n \n <p style="color: #555; line-height: 1.6;">Use this code at checkout to get your discount on your cart total of <strong>{{cart.total}}</strong>.</p>\n \n <div style="text-align: center; margin: 30px 0;">\n <a href="{{cart.checkout_url}}" style="background-color: #FF9800; color: white; padding: 14px 28px; text-decoration: none; border-radius: 4px; display: inline-block; font-weight: bold;">Claim My Discount Now</a>\n </div>\n \n <p style="color: #d32f2f; font-weight: bold; text-align: center;">⏰ This offer expires in 24 hours!</p>\n \n <p style="color: #555; line-height: 1.6;">Warm regards,<br>The {{store.name}} Team</p>\n \n <hr style="border: none; border-top: 1px solid #eee; margin: 30px 0;">\n \n <p style="color: #999; font-size: 12px; text-align: center;">\n <a href="{{cart.unsubscribe}}" style="color: #999;">Unsubscribe</a>\n </p>\n </div>\n </div>\n ',is_activated:"",menu_order:2,frequency:1,frequency_unit:"DAY"},{id:4,title:"Final Reminder - Last Chance",email_subject:"Last chance! Your cart expires soon",email_body:'\n <div style="font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto; padding: 20px; background-color: #f9f9f9;">\n <div style="background-color: #ffffff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">\n <div style="background-color: #f44336; padding: 15px; border-radius: 6px; text-align: center; margin-bottom: 20px;">\n <h2 style="color: #ffffff; margin: 0; font-size: 22px;">⚠️ Final Reminder</h2>\n </div>\n \n <p style="color: #555; line-height: 1.6;">Dear {{customer.full_name}},</p>\n \n <p style="color: #555; line-height: 1.6;">This is our final reminder about your cart at {{store.name}}. We\'ve been holding your items since {{cart.abandoned_date}}, but we can\'t reserve them much longer.</p>\n \n <div style="border: 2px solid #f44336; padding: 20px; border-radius: 6px; margin: 20px 0; text-align: center;">\n <p style="margin: 0; color: #f44336; font-weight: bold; font-size: 16px;">Your cart will expire soon!</p>\n <p style="margin: 10px 0 0 0; color: #555;">{{cart.item_count}} item(s) • {{cart.total}}</p>\n </div>\n \n <p style="color: #555; line-height: 1.6;"><strong>Don\'t lose out on your items!</strong> These products are in high demand and may not be available later.</p>\n \n <div style="text-align: center; margin: 30px 0;">\n <a href="{{cart.checkout_url}}" style="background-color: #f44336; color: white; padding: 14px 28px; text-decoration: none; border-radius: 4px; display: inline-block; font-weight: bold;">Complete Purchase Now</a>\n </div>\n \n <p style="color: #555; line-height: 1.6;">If you\'re experiencing any issues or have questions, please don\'t hesitate to <a href="{{store.url}}" style="color: #f44336;">contact us</a>. We\'re here to help!</p>\n \n <p style="color: #555; line-height: 1.6;">Thank you for considering {{store.name}}.</p>\n \n <p style="color: #555; line-height: 1.6;">Best wishes,<br>{{admin.firstname}}</p>\n \n <hr style="border: none; border-top: 1px solid #eee; margin: 30px 0;">\n \n <p style="color: #999; font-size: 12px; text-align: center;">\n <a href="{{cart.unsubscribe}}" style="color: #999;">Unsubscribe from these emails</a>\n </p>\n </div>\n </div>\n ',is_activated:"",menu_order:3,frequency:2,frequency_unit:"DAY"}];function cH(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return sH(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(sH(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,sH(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,sH(d,"constructor",s),sH(s,"constructor",c),c.displayName="GeneratorFunction",sH(s,o,"GeneratorFunction"),sH(d),sH(d,o,"Generator"),sH(d,r,function(){return this}),sH(d,"toString",function(){return"[object Generator]"}),(cH=function(){return{w:i,m:f}})()}function sH(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}sH=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){sH(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},sH(e,t,n,r)}function uH(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function dH(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){uH(i,r,o,a,l,"next",e)}function l(e){uH(i,r,o,a,l,"throw",e)}a(void 0)})}}function fH(){return(fH=dH(cH().m(function e(t){var n,r;return cH().w(function(e){for(;;)switch(e.n){case 0:if(!(t.length<=0)){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,fetch("".concat(rtsbParams.restApiUrl,"Cart/Recovery/v1/CreateTemplates"),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":rtsbParams.rest_nonce},body:JSON.stringify(t)});case 2:if((n=e.v).ok){e.n=3;break}return e.a(2,"Failed: ".concat(n.statusText));case 3:return e.n=4,n.json();case 4:return e.a(2,e.v);case 5:return e.p=5,r=e.v,e.a(2,"Error: ".concat(r.message))}},e,null,[[1,5]])}))).apply(this,arguments)}function pH(){return hH.apply(this,arguments)}function hH(){return hH=dH(cH().m(function e(){var t,n,r;return cH().w(function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,fetch("".concat(rtsbParams.restApiUrl,"Cart/Recovery/v1/getTemplates"),{method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":rtsbParams.rest_nonce}});case 1:if((t=e.v).ok){e.n=2;break}return e.a(2,"Failed: ".concat(t.statusText));case 2:return e.n=3,t.json();case 3:return n=e.v,e.a(2,n.templates||[]);case 4:return e.p=4,r=e.v,e.a(2,"Error: ".concat(r.message))}},e,null,[[0,4]])})),hH.apply(this,arguments)}function mH(){return(mH=dH(cH().m(function e(t){var n,r;return cH().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,fetch("".concat(rtsbParams.restApiUrl,"Cart/Recovery/v1/deleteTemplates"),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":rtsbParams.rest_nonce},body:JSON.stringify({id:t})});case 2:if((n=e.v).ok){e.n=3;break}return e.a(2,"Failed: ".concat(n.statusText));case 3:return e.n=4,n.json();case 4:return e.a(2,e.v);case 5:return e.p=5,r=e.v,e.a(2,"Error: ".concat(r.message))}},e,null,[[1,5]])}))).apply(this,arguments)}function vH(){return gH.apply(this,arguments)}function gH(){return gH=dH(cH().m(function e(){var t,n,r,o,i,a=arguments;return cH().w(function(e){for(;;)switch(e.n){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.p=1,n=new URLSearchParams(t).toString(),e.n=2,fetch("".concat(rtsbParams.restApiUrl,"Cart/Recovery/v1/getCartAbandonment?").concat(n),{method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":rtsbParams.rest_nonce}});case 2:if((r=e.v).ok){e.n=3;break}return e.a(2,"Failed: ".concat(r.statusText));case 3:return e.n=4,r.json();case 4:return o=e.v,e.a(2,(null==o?void 0:o.getAbandonment)||[]);case 5:return e.p=5,i=e.v,e.a(2,"Error: ".concat(i.message))}},e,null,[[1,5]])})),gH.apply(this,arguments)}function bH(){return yH.apply(this,arguments)}function yH(){return yH=dH(cH().m(function e(){var t,n,r,o,i,a=arguments;return cH().w(function(e){for(;;)switch(e.n){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.p=1,n=new URLSearchParams(t).toString(),e.n=2,fetch("".concat(rtsbParams.restApiUrl,"Cart/Recovery/v1/getOverView?").concat(n),{method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":rtsbParams.rest_nonce}});case 2:if((r=e.v).ok){e.n=3;break}return e.a(2,"Failed: ".concat(r.statusText));case 3:return e.n=4,r.json();case 4:return o=e.v,e.a(2,o||[]);case 5:return e.p=5,i=e.v,e.a(2,"Error: ".concat(i.message))}},e,null,[[1,5]])})),yH.apply(this,arguments)}function xH(e){return wH.apply(this,arguments)}function wH(){return(wH=dH(cH().m(function e(t){var n,r;return cH().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,fetch("".concat(rtsbParams.restApiUrl,"Cart/Recovery/v1/deleteAbandonment"),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":rtsbParams.rest_nonce},body:JSON.stringify({id:t})});case 2:if((n=e.v).ok){e.n=3;break}return e.a(2,"Failed: ".concat(n.statusText));case 3:return e.n=4,n.json();case 4:return e.a(2,e.v);case 5:return e.p=5,r=e.v,e.a(2,"Error: ".concat(r.message))}},e,null,[[1,5]])}))).apply(this,arguments)}function SH(e){return CH.apply(this,arguments)}function CH(){return(CH=dH(cH().m(function e(t){var n,r;return cH().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,fetch("".concat(rtsbParams.restApiUrl,"Cart/Recovery/v1/unsubscribedAbandonment"),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":rtsbParams.rest_nonce},body:JSON.stringify({id:t})});case 2:if((n=e.v).ok){e.n=3;break}return e.a(2,"Failed: ".concat(n.statusText));case 3:return e.n=4,n.json();case 4:return e.a(2,e.v);case 5:return e.p=5,r=e.v,e.a(2,"Error: ".concat(r.message))}},e,null,[[1,5]])}))).apply(this,arguments)}function OH(e){return kH.apply(this,arguments)}function kH(){return(kH=dH(cH().m(function e(t){var n,r;return cH().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,fetch("".concat(rtsbParams.restApiUrl,"Cart/Recovery/v1/rescheduleEmails"),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":rtsbParams.rest_nonce},body:JSON.stringify({id:t})});case 2:if((n=e.v).ok){e.n=3;break}return e.a(2,"Failed: ".concat(n.statusText));case 3:return e.n=4,n.json();case 4:return e.a(2,e.v);case 5:return e.p=5,r=e.v,e.a(2,"Error: ".concat(r.message))}},e,null,[[1,5]])}))).apply(this,arguments)}function EH(e){return jH.apply(this,arguments)}function jH(){return(jH=dH(cH().m(function e(t){var n,r;return cH().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,fetch("".concat(rtsbParams.restApiUrl,"Cart/Recovery/v1/deleteScheduleEmails"),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":rtsbParams.rest_nonce},body:JSON.stringify({id:t})});case 2:if((n=e.v).ok){e.n=3;break}return e.a(2,"Failed: ".concat(n.statusText));case 3:return e.n=4,n.json();case 4:return e.a(2,e.v);case 5:return e.p=5,r=e.v,e.a(2,"Error: ".concat(r.message))}},e,null,[[1,5]])}))).apply(this,arguments)}function $H(){return PH.apply(this,arguments)}function PH(){return PH=dH(cH().m(function e(){var t,n,r,o,i,a=arguments;return cH().w(function(e){for(;;)switch(e.n){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.p=1,n=new URLSearchParams(t).toString(),console.log("query",n),e.n=2,fetch("".concat(rtsbParams.restApiUrl,"Cart/Recovery/v1/getAbandonmentDetails?").concat(n),{method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":rtsbParams.rest_nonce}});case 2:if((r=e.v).ok){e.n=3;break}return e.a(2,"Failed: ".concat(r.statusText));case 3:return e.n=4,r.json();case 4:return o=e.v,e.a(2,(null==o?void 0:o.details)||[]);case 5:return e.p=5,i=e.v,e.a(2,"Error: ".concat(i.message))}},e,null,[[1,5]])})),PH.apply(this,arguments)}function NH(e){return NH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NH(e)}function _H(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return IH(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(IH(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,IH(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,IH(d,"constructor",s),IH(s,"constructor",c),c.displayName="GeneratorFunction",IH(s,o,"GeneratorFunction"),IH(d),IH(d,o,"Generator"),IH(d,r,function(){return this}),IH(d,"toString",function(){return"[object Generator]"}),(_H=function(){return{w:i,m:f}})()}function IH(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}IH=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){IH(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},IH(e,t,n,r)}function MH(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function TH(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){MH(i,r,o,a,l,"next",e)}function l(e){MH(i,r,o,a,l,"throw",e)}a(void 0)})}}function AH(e){return function(e){if(Array.isArray(e))return BH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zH(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RH(Object(n),!0).forEach(function(t){LH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=NH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=NH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==NH(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||zH(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zH(e,t){if(e){if("string"==typeof e)return BH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BH(e,t):void 0}}function BH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const HH=function(e){var t=qH(c(),2),r=t[0],o=t[1],a=e.field,l=(a.help,a.value),u=(a.placeholder,e.id),d=l.length>0?l:lH,f=qH((0,n.useState)(d),2),p=f[0],m=f[1],v=qH((0,n.useState)(0),2),g=v[0],b=v[1],y=qH((0,n.useState)(0),2),x=y[0],w=(y[1],qH((0,n.useState)(!1),2)),S=w[0],C=w[1],O=qH((0,n.useState)(!1),2),k=O[0],E=O[1],j=(0,n.useRef)(null),$=p.length,P=localStorage.getItem("saved_email_template"),N=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=p.filter(function(e){return e.id!==t});m(n),E(!0),function(e){return mH.apply(this,arguments)}(t).then(function(e){null!=e&&e.message&&wc.success({message:e.message,placement:"bottomRight"})}).catch(function(e){console.error("Error:",e)})}},_=jE(EE(xj),EE(mj,{coordinateGetter:E$}));var I=function(e,t,n){E(!0);var r=p.map(function(r){return r.id===e?DH(DH({},r),{},LH({},t,n)):r});m(r),console.log("Data Set, updateTemplates ",r)},M=function(){var e=TH(_H().m(function e(){var t,n;return _H().w(function(e){for(;;)switch(e.n){case 0:if(null!==P&&!P){e.n=2;break}return e.n=1,pH();case 1:t=e.v,n=t.length>0?t:lH,m(n),E(!1),localStorage.setItem("saved_email_template",!1);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),T=function(){var e=TH(_H().m(function e(){var t;return _H().w(function(e){for(;;)switch(e.n){case 0:if(k){e.n=1;break}return console.log("No Data Save"),e.a(2);case 1:t=p.sort(function(e,t){return e.menu_order-t.menu_order}).map(function(e,t){return DH(DH({},e),{},{id:Number(e.id),menu_order:t+1})}),o({type:h,id:u,value:t,fieldType:"cart_recovery_email_template"}),console.log("Data Set - dataSave ",k);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,n.useEffect)(function(){S&&j.current&&(j.current.scrollIntoView({behavior:"smooth"}),C(!1)),E(!0)},[p,S]),(0,n.useEffect)(function(){k&&T()},[k,p]),(0,n.useEffect)(function(){M()},[P]),(0,i.jsx)(n$,{sensors:_,collisionDetection:AE,onDragEnd:function(e){if("yes"===rtsbParams.hasPro){var t=e.active,n=e.over;t.id!==n.id&&(m(function(e){var r=e.findIndex(function(e){return e.id===t.id}),o=e.findIndex(function(e){return e.id===n.id});return c$(e,r,o).map(function(e,t){return DH(DH({},e),{},{menu_order:t})})}),E(!0))}else o({type:s,general:DH(DH({},r.general),{},{proInfoVisible:!0})})},children:(0,i.jsxs)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:x,margin:0},children:[(0,i.jsx)(v$,{items:p,strategy:p$,children:p.length>0?p.map(function(e,t){var n=t===$-1?j:null;return(0,i.jsx)(aH,{fieldId:e.id,fieldIndex:t,fieldActivePanel:g,fieldHandleRemovePanel:N,fieldGroup:e,setGroupFieldData:I,ref:n},t)}):(0,i.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:"Kindly add at least one fields."}})}),(0,i.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px"},children:(0,i.jsx)(od,{className:"rtsb-button",onClick:function(){if("yes"===rtsbParams.hasPro){var e=$>0?$+1:1,t=p.length>0?Math.max.apply(Math,AH(p.map(function(e){return e.id}))):0;m([].concat(AH(p),[{id:t+1,menu_order:e,title:"Custom Template",email_subject:"Subject",email_body:"",is_activated:"on",frequency:10,frequency_unit:"MINUTE"}])),b(e),C(!0),E(!0)}else o({type:s,general:DH(DH({},r.general),{},{proInfoVisible:!0})})},style:{fontSize:"14px",color:"#fff"},children:"Add Email Template"})})]})})};function FH(e){return FH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FH(e)}function WH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return KH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const UH=function(e){var t=e.field,n=t.fieldType,r=t.type,o=t.dependency,a=t.id,l=t.repeaterDefaults,s=WH(c(),2),u=s[0];s[1];if(function(){if(o&&Object.keys(o).length>0){var t=o.rules,r=o.relation,i=t.map(function(t){var r,o=t.item,i=t.value,a=t.operator,l=WH(o.split("."),4),c=l[0],s=l[1],d=l[2],f=l[3],p=null===(r=u.sections[c])||void 0===r||null===(r=r.list[s])||void 0===r?void 0:r.fields[d],h=(null==p?void 0:p.value)||"";if("repeater"===n&&"on"!==(null==p?void 0:p.value)){var m,v=PI((null==p?void 0:p.value)||[]);h=null===(m=v[e.field.index])||void 0===m?void 0:m[f]}if("search_and_multi_select"===(null==p?void 0:p.type)&&(h=h.map(function(e){return("string"==typeof e?JSON.parse(e):e).value})),"checkbox"===(null==p?void 0:p.type)||"search_and_multi_select"===(null==p?void 0:p.type)){if("in"===a.toLowerCase()||"=="===a)return Array.isArray(i)?i.every(function(e){return h.includes(e)}):h.includes(i);if("!in"===a.toLowerCase()||"!="===a)return Array.isArray(i)?!i.every(function(e){return h.includes(e)}):!h.includes(i);if("any"===a.toLowerCase()){if(Array.isArray(i))return i.some(function(e){return h.includes(e)})}else{if("empty"===a.toLowerCase())return 0>=h.length;if("!empty"===a.toLowerCase())return h.length>0}}else{if("in"===a.toLowerCase())return i.includes(h);if("!in"===a.toLowerCase())return!i.includes(h);if("=="===a){if(h===i)return!0}else if("!="===a&&h!=i)return!0}return!1});return 1===i.length?i[0]:r&&"or"===r.toLowerCase()?i.some(function(e){return e}):i.every(function(e){return e})}return!0}()){if("object"===FH(l)){var d=e.field.isDefault;if(l[d])if(!Object.keys(l[d]).includes(a))return}return"switch"===r?(0,i.jsx)(Bg,{id:e.id,field:e.field}):"checkbox"===r?(0,i.jsx)(pP,{id:e.id,field:e.field}):"textarea"===r?(0,i.jsx)(Hy,{id:e.id,field:e.field}):"text_editor"===r?(0,i.jsx)(aA,{id:e.id,field:e.field}):"select"===r?(0,i.jsx)(QS,{id:e.id,field:e.field}):"number"===r?(0,i.jsx)(DC,{id:e.id,field:e.field}):"sortable"===r?(0,i.jsx)(z$,{id:e.id,field:e.field}):"title"===r?(0,i.jsx)(qC,{id:e.id,field:e.field}):"description"===r?(0,i.jsx)(HT,{id:e.id,field:e.field}):"datetime"===r?(0,i.jsx)(jI,{id:e.id,field:e.field}):"color"===r?(0,i.jsx)(V$,{id:e.id,field:e.field}):"fileupload"===r?(0,i.jsx)(HI,{id:e.id,field:e.field}):"gradient"===r?(0,i.jsx)(Uk,{id:e.id,field:e.field}):"search_and_multi_select"===r?(0,i.jsx)(vM,{id:e.id,field:e.field}):"image_select"===r?(0,i.jsx)(LT,{id:e.id,field:e.field}):"text_select"===r?(0,i.jsx)(BT,{id:e.id,field:e.field}):"icon_select"===r?(0,i.jsx)(UT,{id:e.id,field:e.field}):"currency_rate"===r?(0,i.jsx)(pA,{id:e.id,field:e.field}):"checkout_fields"===r?(0,i.jsx)(Tz,{id:e.id,field:e.field}):"product_addons_special_settings"===r?(0,i.jsx)(DB,{id:e.id,field:e.field}):"cart_recovery_email_template"===r?(0,i.jsx)(HH,{id:e.id,field:e.field}):"raw"===r?(0,i.jsx)(LC,{id:e.id,field:e.field}):"slider"===r?(0,i.jsx)(WB,{id:e.id,field:e.field}):(0,i.jsx)(Ly,{id:e.id,field:e.field})}};function VH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return GH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const YH=function(e){var t,r,o,a=e.repeater,l=VH((0,n.useState)(!1),2),s=l[0],d=l[1],f=VH(c(),2),p=f[0],m=f[1],v="automatically"===(null===(t=p.sections.modules)||void 0===t||null===(t=t.list)||void 0===t||null===(t=t.currency_switcher)||void 0===t||null===(t=t.fields)||void 0===t||null===(t=t.exchange_rates)||void 0===t?void 0:t.value),g="on"===(null==p||null===(r=p.data)||void 0===r||null===(r=r.options)||void 0===r?void 0:r.active);return(0,n.useEffect)(function(){g&&v&&m({type:u,value:{callSave:!0}})},[]),(0,i.jsx)(i.Fragment,{children:v?(0,i.jsxs)(od,{loading:s,onClick:function(){return function(){if(a.value){var e=new FormData;e.append("action","rtsb_update_currency_rates"),e.append("currency_options",JSON.stringify(PI(a.value))),e.append("__rtsb_wpnonce",rtsbParams.nonce),jQuery.ajax({type:"POST",url:"".concat(rtsbParams.ajaxurl),cache:!1,processData:!1,contentType:!1,dataType:"json",data:e,beforeSend:function(){d(!0)},success:function(e){d(!1),e.success?wc.success({message:e.data.message,placement:"bottomRight"}):wc.error({message:e.data.message,placement:"bottomRight"});var t=PI(e.data.currency_options);t.length&&m({type:h,id:"currency_options",value:t})},error:function(e){d(!1),wc.error({message:e.message||"Failed",placement:"bottomRight"})}})}}()},className:"rtsb-button",style:{fontSize:"14px",color:"#fff",marginLeft:"10px"},children:[null!==(o=rtsbParams)&&void 0!==o&&o.updateRates?rtsbParams.updateRates:""," "]}):""})};function XH(e){return XH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XH(e)}function QH(e){return function(e){if(Array.isArray(e))return rF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nF(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZH(Object(n),!0).forEach(function(t){eF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=XH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=XH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==XH(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||nF(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nF(e,t){if(e){if("string"==typeof e)return rF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rF(e,t):void 0}}function rF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oF=vR.Text,iF=(vR.Link,new Map),aF=function(e){var t,n,r,o,i=null;if(null!=e&&null!==(t=e.repeater_type)&&void 0!==t&&t.value){var a,l,c,s,u=null==e||null===(a=e.repeater_type)||void 0===a?void 0:a.value;i=null==e||null===(l=e.repeater_type)||void 0===l||null===(l=l.options)||void 0===l?void 0:l[u],i=null!=e&&null!==(c=e.title)&&void 0!==c&&c.value?i+" - "+(null==e||null===(s=e.title)||void 0===s?void 0:s.value):i}else{var d;if("select"===(null==e||null===(d=e.title)||void 0===d?void 0:d.type)){var f=null==e||null===(n=e.title)||void 0===n?void 0:n.value;i=null==e||null===(r=e.title)||void 0===r||null===(r=r.options)||void 0===r?void 0:r[f]}else i=null==e||null===(o=e.title)||void 0===o?void 0:o.value}return i},lF=n.forwardRef(function(e,t){var r,o=tF(c(),2),a=o[0],l=o[1],u=e.index,d=e.id,f=e.dataLoop,p=e.repeater,h=e.repeaterData,m=e.activePanel,v=e.handleRemovePanel,g=(e.hideContent,e.onSubComponentRendered,p.repeat),b=p.defaults,y=tF((0,n.useState)(String(u)===String(m)),2),x=y[0],w=y[1],S=tF((0,n.useState)("var(--rtsb-admin-color-secondary)"),2),C=S[0],O=S[1],k=C$({id:d}),E=k.attributes,j=k.listeners,$=k.transform,P=k.transition,N=k.setNodeRef,_=k.isDragging,I={transform:hE.Translate.toString($),transition:P,opacity:_?.8:1,zIndex:_?1:0,marginTop:"1rem",position:"relative",scrollMarginTop:98},M="no"!==(null===(r=f.deletable)||void 0===r?void 0:r.value);return(0,i.jsx)("div",{className:"rtsb-repeater-item",ref:t?function(e){t.current=e,N(e)}:N,style:I,children:(0,i.jsx)(iq,{title:(0,i.jsxs)("span",{className:"title-wrapper",children:[(0,i.jsx)(om,{title:"Rearrange",placement:"left",children:(0,i.jsx)(N$,JH(JH({},E),j))}),(0,i.jsxs)(oF,{children:[" ",(0,i.jsxs)(xg,{wrap:!0,gap:"small",align:"center",children:[f.isEnable&&(0,i.jsx)(Mg,{className:"on"===(null==f?void 0:f.isEnable)?"green":"red",style:{display:"inline-flex",alignItems:"center"},children:(0,i.jsxs)("div",{style:{display:"none"},children:[" ","on"===(null==f?void 0:f.isEnable)?"Enabled":"Disabled"," "]})}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:aF(f)}})]})," "]})]}),extra:(0,i.jsxs)(oF,{onClick:function(){w(!x)},children:[x?(0,i.jsx)(hq,{style:{cursor:"pointer"}}):(0,i.jsx)(gq,{style:{cursor:"pointer"}}),M?(0,i.jsx)(LI,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:C},onClick:function(e){return v(e,u)},onMouseEnter:function(){return O("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return O("var(--rtsb-admin-color-secondary)")}}):""]}),className:"rtsb-card-wrapper ".concat(x?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,i.jsx)(dq,{isOpen:x,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,i.jsx)("ul",{className:"rtsb_group_repeater",children:Object.keys(g).map(function(e,t){var n,r,o=JH(JH({},f[e]||g[e]),{},{fieldType:"repeater",parentId:p.id,index:u,repeaterData:h,repeaterDefaults:b,isDefault:(null===(n=f.uniqueid)||void 0===n?void 0:n.value)||"",value:(null===(r=f[e])||void 0===r?void 0:r.value)||""});return(0,i.jsx)("li",{onClick:function(){(null==o?void 0:o.isPro)&&"yes"!==rtsbParams.hasPro&&l({type:s,general:JH(JH({},a.general),{},{proInfoVisible:!0})})},children:(0,i.jsx)(UH,{id:e,field:o},e)},e)})})})})})});const cF=function(e){var t=tF(c(),2),r=(t[0],t[1]),o=e.repeater,a=o.repeat,l=o.id,s=(o.defaults,tF((0,n.useState)(null),2)),u=s[0],d=s[1],f=tF((0,n.useState)([]),2),p=f[0],m=f[1],v=tF((0,n.useState)(0),2),g=v[0],b=v[1],y=tF((0,n.useState)(!1),2),x=y[0],w=y[1],S=tF((0,n.useState)(!1),2),C=S[0],O=S[1],k=(0,n.useRef)(null),E=p.length;(0,n.useEffect)(function(){C&&k.current&&(k.current.scrollIntoView({behavior:"smooth"}),O(!1))},[p,C]);var j=function(e,t){e.stopPropagation(),window.confirm("Are you sure you want to delete?")&&r({type:h,fieldType:"repeater",parentId:l,doAction:"remove",repeaterData:p,index:t})};(0,n.useEffect)(function(){!function(){if(o.value){var e=PI(o.value);e=e.map(function(e,t){var n,r=II(),o={};return e&&0!==Object.keys(e).length?(Object.keys(e).forEach(function(t){e[t]&&(o[t]=JH(JH({},a[t]),{},{id:t,value:e[t]}))}),Object.keys(o).length>0&&("no"===(null==o||null===(n=o.deletable)||void 0===n?void 0:n.value)&&null!=o&&o.uniqueid&&!o.uniqueid.value.includes("rtsb_repeater_item_")||(o.uniqueid={id:"id",value:"rtsb_repeater_item_"+r})),o):o}),e=e.filter(function(e){return 0!==Object.keys(e).length}),m(e)}}()},[o.value]);var $=p.map(function(e){var t;return null===(t=e.uniqueid)||void 0===t?void 0:t.value}),P=jE(EE(Cj,{}),EE(kj,{}),EE(mj,{coordinateGetter:E$})),N=(0,n.useCallback)(function(e){for(var t=p.findIndex(function(t){var n;return(null==t||null===(n=t.uniqueid)||void 0===n?void 0:n.value)===e.active.id}),n=p.slice(0,t),r=0,o=0;o<n.length;o+=1){var i=iF.get(n[o].id);i&&(r+=i.clientHeight)}b(r),w(!0)},[p]),_=(0,n.useCallback)(function(e){var t=e.active,n=e.over;if(n){if(t.id!==n.id){var o=p.findIndex(function(e){var n;return(null===(n=e.uniqueid)||void 0===n?void 0:n.value)===t.id}),i=p.findIndex(function(e){var t;return(null===(t=e.uniqueid)||void 0===t?void 0:t.value)===n.id}),a=c$(p,o,i);m(a),r({type:h,fieldType:"repeater",parentId:l,doAction:"sort",repeaterData:a})}w(!1),b(0)}},[p]);return(0,i.jsxs)(n$,{collisionDetection:AE,onDragStart:N,onDragEnd:_,sensors:P,children:[(0,i.jsx)(v$,{items:$,strategy:p$,children:(0,i.jsx)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:g},children:p.map(function(e,t){var n,r,a,c;if(null==e||!e.isEnable)switch(l){case"endpoint_field":e.isEnable="on"===(null==e||null===(n=e.menu_visibility)||void 0===n?void 0:n.value)?"on":"off";break;case"currency_options":e.isEnable="on"===(null==e||null===(r=e.activate_currency)||void 0===r?void 0:r.value)?"on":"off";break;case"campaign_field":e.isEnable="on"===(null==e||null===(a=e.enable_campaign)||void 0===a?void 0:a.value)?"on":"off";break;default:e.isEnable=!1}if(e&&0!==Object.keys(e).length){var s=t===E-1?k:null;return(0,i.jsx)(lF,{index:t,id:null===(c=e.uniqueid)||void 0===c?void 0:c.value,parentId:l,dataLoop:e,hideContent:x,repeater:o,repeaterData:p,handleRemovePanel:j,activePanel:u,ref:s},t)}})})}),(0,i.jsxs)("div",{className:"repeater-footer",style:{marginTop:"15px"},children:[(0,i.jsx)(od,{className:"rtsb-button",onClick:function(){var e=[].concat(QH(p),[JH({},a)]);r({type:h,fieldType:"repeater",repeaterData:e,parentId:l,doAction:"addPanel",index:E}),d(String(E)),m(e),O(!0)},style:{fontSize:"14px",color:"#fff"},children:null!=o&&o.buttonLabel?o.buttonLabel:"Add New"}),"currency_options"===l&&E>0?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(YH,JH({},e))}):""]})]})};function sF(e){return sF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sF(e)}function uF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uF(Object(n),!0).forEach(function(t){fF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=sF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const mF=function(e){var t=e.block,r=t.fields,o=pF(c(),2),a=o[0],l=o[1],u=pF((0,n.useState)(function(){return t.tabs?Object.keys(t.tabs)[0]:""}),2),d=u[0],f=u[1],p=dF(dF({},t.active_field),{},{type:"switch",value:t.active});return(0,i.jsxs)("div",{className:"rtsb-block-settings".concat(t.tabs?" rtsb-block-tabs rtsb-active-tab-"+d:""),children:[t.tabs?(0,i.jsx)("ul",{className:"rtsb-block-tab-nav",children:Object.keys(t.tabs).map(function(e){return(0,i.jsx)("li",{className:"rtsb-block-tab-nav-item".concat(e===d?" active":""),onClick:function(){return f(e)},children:t.tabs[e].title},e)})}):"",(0,i.jsxs)("div",{className:"rtsb-block-settings-content",children:[!p.disable&&(!t.tabs||t.tabs&&Object.keys(t.tabs)[0]===d)&&(0,i.jsx)("div",{className:"block-active-field",children:(0,i.jsx)(UH,{id:"active",field:p})}),Object.keys(r).map(function(e){if(!("repeaters"===r[e].type||t.tabs&&d&&d!==r[e].tab))return(0,i.jsx)("div",{onClick:function(){var t;(null===(t=r[e])||void 0===t?void 0:t.isPro)&&"yes"!==rtsbParams.hasPro&&l({type:s,general:dF(dF({},a.general),{},{proInfoVisible:!0})})},children:(0,i.jsx)(UH,{id:e,field:r[e]},e)},e)}),Object.keys(r).map(function(e,n){if(!("repeaters"!==r[e].type||t.tabs&&d&&d!==r[e].tab))return(0,i.jsx)(cF,{repeater:r[e]},n)})]})]})};function vF(e){return function(e){if(Array.isArray(e))return gF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return gF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gF(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bF(e){return bF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bF(e)}function yF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yF(Object(n),!0).forEach(function(t){wF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=bF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SF={callSave:!1,saving:!1,dirty:!1,modalVisible:!1,sections:rtsbParams.sections,section:!1,general:{proInfoVisible:!1},data:{block_id:!1,section_id:localStorage.getItem("rtsb_selected_section_nav")?localStorage.getItem("rtsb_selected_section_nav"):"general",options:{}}};const CF=function(e,t){switch(t.type){case u:return xF(xF({},e),t.value);case s:return xF(xF({},e),{},{general:t.general});case d:return xF(xF({},e),{},{sections:t.sections});case p:return xF(xF({},e),{},{data:xF(xF({},e.data),{},wF({},t.id,t.value))});case m:if(!t.id||!e.data.section_id)return e;var n=JSON.parse(JSON.stringify(e.data.options));n.active=t.value;var r=JSON.parse(JSON.stringify(e.sections));return r[e.data.section_id].list[t.id].active=t.value,xF(xF({},e),{},{callSave:!0,dirty:!0,sections:r,data:xF(xF({},e.data),{},{block_id:t.id,options:n})});case h:if(!e.data.block_id||!e.data.section_id)return e;var o=JSON.parse(JSON.stringify(e.data.options));void 0!==(null==t?void 0:t.value)&&(o[t.id]=t.value);var i=JSON.parse(JSON.stringify(e.sections));if("active"===t.id)i[e.data.section_id].list[e.data.block_id].active=t.value;else{var a="repeater"===(null==t?void 0:t.fieldType),l="remove"===(null==t?void 0:t.doAction),c="sort"===(null==t?void 0:t.doAction),f="addPanel"===(null==t?void 0:t.doAction);if(a){var v=("object"===bF(null==t?void 0:t.repeaterData)?vF(null==t?void 0:t.repeaterData):[]).map(function(e){var t={};return Object.keys(e).forEach(function(n){t[n]=e[n].value}),t}),g=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value,b="string"==typeof(g=PI(g=g||{}))[t.index]?JSON.parse(g[t.index]):g[t.index],y=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].repeat,x=Object.keys(y).reduce(function(e,t){return e[t]=y[t].value,e},{});if(c)i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=vF(v),o[t.parentId]=vF(v);else if(f){var w=II(),S=xF(xF({},g),{},wF({},t.index,xF(xF({uniqueid:"rtsb_repeater_item_"+w},x),b)));i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=Object.values(S);var C=xF(xF(xF({},o[t.parentId]),v),{},wF({},t.index,xF({},x)));o[t.parentId]=Object.values(C)}else if(l){var O=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value;delete O[t.index];var k=[];Object.keys(O).forEach(function(e,t){k[t]=O[e]}),i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=k;var E=o[t.parentId];delete E[t.index];var j=[];Object.keys(E).forEach(function(e,t){j[t]=E[e]}),o[t.parentId]=Object.values(j)}else{var $,P=xF(xF({},g),{},wF({},t.index,xF(xF(xF({},x),b),{},wF({},t.id,t.value))));i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=Object.values(P);var N=xF(xF(xF({},v),o[t.parentId]),{},wF({},t.index,xF(xF(xF({},v[t.index]),(null===($=o[t.parentId])||void 0===$?void 0:$[t.index])||{}),{},wF({},t.id,t.value))));o[t.parentId]=Object.values(N)}}else i[e.data.section_id].list[e.data.block_id].fields[t.id].value=t.value}return xF(xF({},e),{},{dirty:!0,sections:i,data:xF(xF({},e.data),{},{options:o})});default:return e}};function OF(e){return OF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OF(e)}function kF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kF(Object(n),!0).forEach(function(t){jF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=OF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=OF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==OF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const NF=function(e){var t,r,o=e.block,a=o.title,l=o.active,f=o.id,h=o.fields,v=o.external,g="on"===l,b=$F(c(),2),y=b[0],x=b[1],w=$F((0,n.useState)(!1),2),S=w[0],C=w[1],O=h&&Object.keys(h).length>0,k=$F((0,n.useState)(null),2),E=k[0],j=k[1];(0,n.useEffect)(function(){v&&(jQuery(document).on("wp-plugin-installing",function(t,n){e.block.pluginSlug===n.slug&&j(EF(EF({},n),{},{status:"installing"}))}),jQuery(document).on("wp-plugin-install-success",function(t,n){if("plugin"===n.install&&e.block.pluginSlug===n.slug){j(EF(EF({},n),{},{status:"install-success"})),wc.success({message:n.debug[4],placement:"bottomRight"});var r=JSON.parse(JSON.stringify(y.sections));r[y.data.section_id].list[f]=EF(EF({},e.block),{},{pluginIsInstalled:!0}),x({type:d,sections:r})}}),jQuery(document).on("wp-plugin-install-error",function(t,n){"plugin"===n.install&&e.block.pluginSlug===n.slug&&(wc.error({message:n.errorMessage,placement:"bottomRight"}),j(null))}))},[]);var $=null!==(t=null==e||null===(r=e.block)||void 0===r?void 0:r.badge)&&void 0!==t?t:"";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"rtsb-ss-item ".concat($," ").concat(e.block.package).concat(g?" active":"").concat(v?" is-external":""),onClick:function(t){if(t.preventDefault(),t.stopPropagation(),!0===v);else{if("pro-disabled"===e.block.package)return void x({type:s,general:EF(EF({},y.general),{},{proInfoVisible:!0})});if("fail"===e.block.package)return void x({type:s,general:EF(EF({},y.general),{},{proFailVisible:!0})});O?(x({type:u,value:{saving:!1,callSave:!1,data:EF(EF({},y.data),{},{options:SF.data.options})}}),x({type:p,id:"block_id",value:f}),C(!0)):x({type:m,id:f,value:g?"":"on"})}},children:(0,i.jsxs)("div",{className:"rtsb-ss-item-box",children:[(0,i.jsx)("div",{className:"rtsb-ss-item-icon"}),(0,i.jsx)("div",{className:"rtsb-ss-item-content",children:(0,i.jsx)("h3",{className:"rtsb-ss-item-title",children:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:a}})})}),v&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"externalActions",children:e.block.pluginIsActive?(0,i.jsx)("div",{className:"rtsb-ss-item-switch",children:(0,i.jsx)(gd,{checked:!0,disabled:!0})}):(0,i.jsx)(od,{type:"primary rtsb-button",loading:"installing"===(null==E?void 0:E.status),onClick:function(){null!=E&&E.activateUrl?window.open(E.activateUrl,"_self"):e.block.pluginIsInstalled?e.block.pluginIsInstalled&&!e.block.pluginIsActive&&window.open(e.block.pluginActiveUrl):wp.updates.installPlugin({slug:e.block.pluginSlug})},size:"small",children:e.block.pluginIsInstalled||E?e.block.pluginIsInstalled&&!e.block.pluginIsActive?wp.i18n.__("Activate"):"installing"===(null==E?void 0:E.status)?wp.i18n.__("Installing…"):"install-success"===(null==E?void 0:E.status)?wp.i18n.__("Activate"):void 0:wp.i18n.__("Install")})}),!!e.block.help&&(0,i.jsx)(om,{title:(0,i.jsx)("span",{children:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e.block.help.replace(/<a\s+href="([^"]+)"\s*([^>]*)>(.*?)<\/a>/g,function(e,t,n,r){return'<a href="'.concat(t,'" target="_blank" rel="noopener noreferrer" onClick="event.stopPropagation();" style="color: #fff;font-weight: 700;outline: none;text-decoration: underline dotted;">').concat(r,"</a>")})}})}),children:(0,i.jsx)(ig,{style:{fontSize:"150%"}})})]}),!v&&(0,i.jsx)("div",{className:"rtsb-ss-item-switch",children:(0,i.jsx)(gd,{unCheckedChildren:"pro-disabled"===e.block.package?(0,i.jsx)("span",{className:"dashicons dashicons-lock"}):"",checked:g})}),O&&(0,i.jsx)("div",{className:"rtsb-ss-item-action",children:(0,i.jsx)("span",{className:"dashicons dashicons-admin-generic"})})]})}),O&&(0,i.jsx)(ng,{title:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:a}}),centered:!0,open:S,okText:"Save Changes",onCancel:function(){return C(!1)},width:1e3,styles:{body:{maxHeight:"calc(100vh - 200px)",overflow:"scroll",minHeight:"500px"}},footer:[(0,i.jsx)(od,{type:"primary",loading:y.saving,onClick:function(){e.saveData(null,function(){var t;if(C(!1),"optimization"===(null===(t=e.block)||void 0===t?void 0:t.id)){var n=document.querySelector("#wp-admin-bar-shop_builder-default > #wp-admin-bar-clear_all_cache a");n?window.location.href=n.href:window.location.reload()}})},disabled:!y.dirty,block:!0,children:"Save Changes"},"save")],children:(0,i.jsx)(mF,{block:e.block})})]})};const _F=function(e){var t=e.blocks,n=e.category;return(0,i.jsx)("div",{className:"rtsb-ss-item-list",children:t&&Object.keys(t).map(function(r){var o=t[r];if(!n||o.category===n)return(0,i.jsx)(NF,{block:t[r],id:r,saveData:e.saveData},r)})})};function IF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return MF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const TF=function(e){var t,r,o=e.section,a=o.list,l=o.categories,c=IF((0,n.useState)(null),2),s=c[0],u=c[1],d="selected_cat_nav_id_"+e.section.id,f=localStorage.getItem(d),p=f||(l&&Object.keys(l).length>0?Object.keys(l)[0]:null);return(0,n.useEffect)(function(){u(p)},[e.section.id]),(0,i.jsx)("div",{className:"rtsb-ss-item-list-wrap",children:l?(0,i.jsxs)("div",{className:"rtsb-cat-tabs-wrap",children:[Object.keys(l).length>0?(0,i.jsx)("div",{className:"rtsb-cat-nav-wrap",children:Object.keys(l).map(function(e){var t=l[e],n=t.title;t.description;return(0,i.jsx)("div",{onClick:function(){localStorage.setItem(d,e),u(e)},className:"rtsb-cat-nav".concat(e===s?" active":""),children:(0,i.jsx)("h3",{className:"rtsb-title",children:n})},e)})}):null,(0,i.jsxs)("div",{className:"rtsb-cat-content",children:[(null===(t=l[s])||void 0===t?void 0:t.description)&&(0,i.jsx)("h4",{className:"rtsb-cat-description",children:null===(r=l[s])||void 0===r?void 0:r.description}),(0,i.jsx)(_F,{blocks:a,saveData:e.saveData,category:s})]})]}):(0,i.jsx)(_F,{blocks:a})})};function AF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return RF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const DF=function(e){var t=e.id,r=AF(c(),2),o=r[0],a=r[1],l=o.sections[t]||{},s=AF((0,n.useState)(!1),2),u=s[0],f=s[1],p=AF((0,n.useState)(!1),2),h=p[0],m=p[1],v=l.title,g=l.short_title,b=l.description,y=function(e){var t="active"===e?"Are you sure you want to enable all ".concat(g.toLowerCase(),"?"):"Are you sure you want to disable all ".concat(g.toLowerCase(),"?");if(window.confirm(t)){var n=l.list,r=Object.keys(n);jQuery.ajax({url:rtsbParams.ajaxurl,data:{module_ids:r,section_id:l.id,action:"rtsb_toggle_modules_activation",__rtsb_wpnonce:rtsbParams.nonce,type:e},method:"POST",beforeSend:function(){e?f(!0):m(!0)},success:function(e){f(!1),m(!1),e.success?(wc.success({message:e.data.message,placement:"bottomRight"}),a({type:d,sections:e.data.sections})):wc.error({message:e.data.message,placement:"bottomRight"})},error:function(e){f(!1),m(!1),wc.error({message:e.message,placement:"bottomRight"})}})}};return(0,i.jsxs)("div",{className:"rtsb-ss-wrap",children:[(0,i.jsxs)("div",{className:"rtsb-ss-header-area",children:[(0,i.jsxs)("div",{className:"rtsb-ss-header",children:[(0,i.jsx)("h2",{className:"rtsb-title",children:v}),(0,i.jsx)("p",{className:"rtsb-description",children:b})]}),(0,i.jsxs)("div",{className:"rtsb-button-wrapper",children:[(0,i.jsxs)(od,{type:"primary",loading:u,onClick:function(){return y("active")},className:"rtsb-button rtsb-enable-button",children:["Enable All ",g]},"enable"),(0,i.jsxs)(od,{type:"secondary",loading:h,onClick:function(){return y()},className:"rtsb-button rtsb-disable-button",children:["Disable All ",g]},"disable")]})]}),(0,i.jsx)(TF,{section:l,saveData:e.saveData})]})};const LF=function(e){var t=e.visible,n=e.setVisible;return(0,i.jsxs)(ng,{centered:!0,open:t,className:"rtsb-pro-modal",onOk:function(){return n(!1)},onCancel:function(){return n(!1)},footer:null,children:[(0,i.jsx)("div",{className:"rtsb-box-icon",children:(0,i.jsx)("i",{className:"dashicons dashicons-lock"})}),(0,i.jsxs)("div",{className:"rtsb-box-content",children:[(0,i.jsx)("h3",{className:"rtsb-box-title",children:"Pro Feature Alert!"}),(0,i.jsx)("p",{children:"Sorry! This is a Pro feature. To activate this feature, you need to upgrade to the Pro version."}),(0,i.jsx)("a",{href:"https://shopbuilderwp.com",target:"_blank",className:"rtsb-pro-btn rtsb-button",rel:"noreferrer",children:"Get Pro Version"})]})]})};const qF=function(e){var t=e.visible,n=e.setVisible,r=(e.requiredVersion,e.currentVersion),o=void 0===r?rtsbParams.proVersion:r;return(0,i.jsxs)(ng,{centered:!0,open:t,className:"rtsb-pro-modal rtsb-update-modal",onOk:function(){return n(!1)},onCancel:function(){return n(!1)},footer:null,children:[(0,i.jsx)("div",{className:"rtsb-box-icon",children:(0,i.jsx)("i",{className:"dashicons dashicons-update"})}),(0,i.jsxs)("div",{className:"rtsb-box-content rtsb-pro-update",children:[(0,i.jsx)("h3",{className:"rtsb-box-title",children:"Pro Version Update Required"}),(0,i.jsxs)("p",{children:["This feature isn’t available in"," ",(0,i.jsxs)("strong",{children:["ShopBuilder Pro v",o]}),".",(0,i.jsx)("br",{})," To use it, please update to ",(0,i.jsx)("strong",{children:"Pro v2.0.0 or higher"}),"."]}),(0,i.jsx)("a",{href:"/wp-admin/plugins.php",className:"rtsb-pro-btn rtsb-button",children:"Update Now"})]})]})},zF=n.createContext({latestIndex:0}),BF=zF.Provider,HF=({className:e,index:t,children:r,split:o,style:i})=>{const{latestIndex:a}=n.useContext(zF);return null==r?null:n.createElement(n.Fragment,null,n.createElement("div",{className:e,style:i},r),t<a&&o&&n.createElement("span",{className:`${e}-split`},o))};var FF=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const WF=n.forwardRef((e,t)=>{var r;const{getPrefixCls:o,direction:i,size:a,className:l,style:c,classNames:s,styles:u}=C("space"),{size:d=(null!=a?a:"small"),align:f,className:p,rootClassName:h,children:m,direction:v="horizontal",prefixCls:g,split:b,style:y,wrap:x=!1,classNames:w,styles:S}=e,O=FF(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[k,E]=Array.isArray(d)?d:[d,d],j=ag(E),$=ag(k),P=lg(E),N=lg(k),_=Dc(m,{keepEmpty:!0}),I=void 0===f&&"horizontal"===v?"center":f,M=o("space",g),[T,A,R]=Bc(M),D=Rr()(M,l,A,`${M}-${v}`,{[`${M}-rtl`]:"rtl"===i,[`${M}-align-${I}`]:I,[`${M}-gap-row-${E}`]:j,[`${M}-gap-col-${k}`]:$},p,h,R),L=Rr()(`${M}-item`,null!==(r=null==w?void 0:w.item)&&void 0!==r?r:s.item);let q=0;const z=_.map((e,t)=>{var r;null!=e&&(q=t);const o=(null==e?void 0:e.key)||`${L}-${t}`;return n.createElement(HF,{className:L,key:o,index:t,split:b,style:null!==(r=null==S?void 0:S.item)&&void 0!==r?r:u.item},e)}),B=n.useMemo(()=>({latestIndex:q}),[q]);if(0===_.length)return null;const H={};return x&&(H.flexWrap="wrap"),!$&&N&&(H.columnGap=k),!j&&P&&(H.rowGap=E),T(n.createElement("div",Object.assign({ref:t,className:D,style:Object.assign(Object.assign(Object.assign({},H),c),y)},O),n.createElement(BF,{value:B},z)))}),KF=WF;KF.Compact=Vc;const UF=KF;const VF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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"}}]},name:"check-circle",theme:"outlined"};var GF=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:VF}))}; | |
| 136 | +/** */const YF=n.forwardRef(GF);const XF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"};var QF=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:XF}))}; | |
| 137 | +/** */const ZF=n.forwardRef(QF);const JF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"};var eW=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:JF}))}; | |
| 138 | +/** */const tW=n.forwardRef(eW);var nW=vR.Title,rW=vR.Text,oW=vR.Paragraph;const iW=function(){var e=new Date("2025-11-12T00:00:00").getTime(),t=new Date("2026-01-05T23:59:59").getTime(),n=Date.now(),r=n>=e&&n<=t;return(0,i.jsxs)("div",{className:"rtsb-upgrade-prompt",children:[(0,i.jsxs)(iq,{style:{textAlign:"center",borderRadius:12,marginBottom:24,padding:"15px 0"},children:[(0,i.jsx)("div",{style:{marginBottom:24},children:(0,i.jsx)("img",{src:rtsbParams.adminLogo,alt:"Upgrade Illustration",style:{maxWidth:200,margin:"0 auto"}})}),(0,i.jsx)(nW,{level:4,style:{marginBottom:16},children:"Upgrade to ShopBuilder Pro – More Power, More Control!"}),(0,i.jsx)(oW,{style:{fontSize:16,color:"#666",marginBottom:20},children:"Get premium addons, advanced customization, and powerful features to create a website that truly stands out."}),(0,i.jsx)(rO,{style:{margin:"20px 0"}}),(0,i.jsxs)(UF,{direction:"vertical",size:"middle",style:{width:"100%",textAlign:"left"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,i.jsx)(YF,{style:{fontSize:20,color:"#6c5ce7"}}),(0,i.jsx)(rW,{style:{fontSize:16},children:"30+ Modules"})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,i.jsx)(YF,{style:{fontSize:20,color:"#6c5ce7"}}),(0,i.jsx)(rW,{style:{fontSize:16},children:"40+ Pre-Build Template"})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,i.jsx)(YF,{style:{fontSize:20,color:"#6c5ce7"}}),(0,i.jsx)(rW,{style:{fontSize:16},children:"128+ Widgets"})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,i.jsx)(YF,{style:{fontSize:20,color:"#6c5ce7"}}),(0,i.jsx)(rW,{style:{fontSize:16},children:"8+ Pre-Build Theme"})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,i.jsx)(YF,{style:{fontSize:20,color:"#6c5ce7"}}),(0,i.jsx)(rW,{style:{fontSize:16},children:"Mobile App"})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,i.jsx)(YF,{style:{fontSize:20,color:"#6c5ce7"}}),(0,i.jsx)(rW,{style:{fontSize:16},children:"Advanced Design Controls"})]})]}),(0,i.jsx)(rO,{style:{margin:"20px 0"}}),r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("a",{href:"https://www.radiustheme.com/downloads/woocommerce-bundle/",target:"_blank",children:(0,i.jsx)("img",{src:rtsbParams.blackFriday,alt:"ShopBuilder",loading:"lazy",style:{maxWidth:"100%"}})}),(0,i.jsx)(rO,{style:{margin:"20px 0"}})]}):null,(0,i.jsx)(od,{className:"rtsb-button rtsb-upgrade-btn",href:"https://www.radiustheme.com/downloads/woocommerce-bundle/?utm_source=dashboard&utm_medium=side_banner&utm_campaign=free",target:"_blank",rel:"noopener noreferrer",children:"Upgrade Now"})]}),(0,i.jsx)(iq,{title:(0,i.jsx)(nW,{level:4,style:{margin:0},children:"Quick Access"}),style:{borderRadius:12},className:"rtsb-quick-access",children:(0,i.jsxs)(UF,{direction:"vertical",size:"middle",style:{width:"100%"},children:[(0,i.jsx)("a",{href:"https://www.radiustheme.com/contact/",target:"_blank",children:(0,i.jsxs)(UF,{children:[(0,i.jsx)(ig,{style:{fontSize:24}}),(0,i.jsx)(rW,{style:{fontSize:16},children:"Help Center"})]})}),(0,i.jsx)("a",{href:"https://wordpress.org/support/plugin/shopbuilder/reviews/",target:"_blank",children:(0,i.jsxs)(UF,{children:[(0,i.jsx)(ZF,{style:{fontSize:24}}),(0,i.jsx)(rW,{style:{fontSize:16},children:"Rate Us"})]})}),(0,i.jsx)("a",{href:"https://www.facebook.com/groups/shopbuilder",target:"_blank",children:(0,i.jsxs)(UF,{children:[(0,i.jsx)(tW,{style:{fontSize:24}}),(0,i.jsx)(rW,{style:{fontSize:16},children:"Join the Community"})]})})]})})]})};var aW={},lW="rc-table-internal-hook";function cW(e){var t=n.createContext(void 0);return{Context:t,Provider:function(e){var r=e.value,o=e.children,i=n.useRef(r);i.current=r;var a=_(n.useState(function(){return{getValue:function(){return i.current},listeners:new Set}}),1)[0];return Re(function(){(0,Dr.unstable_batchedUpdates)(function(){a.listeners.forEach(function(e){e(r)})})},[r]),n.createElement(t.Provider,{value:a},o)},defaultValue:e}}function sW(e,t){var r=fo("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),o=n.useContext(null==e?void 0:e.Context),i=o||{},a=i.listeners,l=i.getValue,c=n.useRef();c.current=r(o?l():null==e?void 0:e.defaultValue);var s=_(n.useState({}),2)[1];return Re(function(){if(o)return a.add(e),function(){a.delete(e)};function e(e){var t=r(e);re(c.current,t,!0)||s({})}},[o]),c.current}function uW(){var e=n.createContext(null);function t(){return n.useContext(e)}return{makeImmutable:function(r,o){var i=Qr(r),a=function(a,l){var c=i?{ref:l}:{},s=n.useRef(0),u=n.useRef(a);return null!==t()?n.createElement(r,Ve({},a,c)):(o&&!o(u.current,a)||(s.current+=1),u.current=a,n.createElement(e.Provider,{value:s.current},n.createElement(r,Ve({},a,c))))};return i?n.forwardRef(a):a},responseImmutable:function(e,r){var o=Qr(e),i=function(r,i){var a=o?{ref:i}:{};return t(),n.createElement(e,Ve({},r,a))};return o?n.memo(n.forwardRef(i),r):n.memo(i,r)},useImmutableMark:t}}var dW=uW(),fW=(dW.makeImmutable,dW.responseImmutable,dW.useImmutableMark,uW()),pW=fW.makeImmutable,hW=fW.responseImmutable,mW=fW.useImmutableMark;const vW=cW();const gW=n.createContext({renderWithProps:!1});function bW(e){var t=[],n={};return e.forEach(function(e){for(var r,o=e||{},i=o.key,a=o.dataIndex,l=i||(r=a,null==r?[]:Array.isArray(r)?r:[r]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function yW(e){return null!=e}function xW(e,t,r,o,i,a){var l=n.useContext(gW),c=Y(function(){if(yW(o))return[o];var a=null==t||""===t?[]:Array.isArray(t)?t:[t],c=nn(e,a),s=c,u=void 0;if(i){var d=i(c,e,r);!function(e){return e&&"object"===O(e)&&!Array.isArray(e)&&!n.isValidElement(e)}(d)?s=d:(s=d.children,u=d.props,l.renderWithProps=!0)}return[s,u]},[mW(),e,o,t,i,r],function(e,t){if(a){var n=_(e,2)[1],r=_(t,2)[1];return a(r,n)}return!!l.renderWithProps||!re(e,t,!0)});return c}function wW(e){var t,r,o,i,a,l,c,s;var u=e.component,d=e.children,f=e.ellipsis,p=e.scope,h=e.prefixCls,m=e.className,v=e.align,g=e.record,b=e.render,y=e.dataIndex,x=e.renderIndex,w=e.shouldCellUpdate,S=e.index,C=e.rowType,k=e.colSpan,j=e.rowSpan,$=e.fixLeft,P=e.fixRight,N=e.firstFixLeft,I=e.lastFixLeft,M=e.firstFixRight,T=e.lastFixRight,R=e.appendNode,D=e.additionalProps,L=void 0===D?{}:D,q=e.isSticky,z="".concat(h,"-cell"),B=sW(vW,["supportSticky","allColumnsFixedLeft","rowHoverable"]),H=B.supportSticky,F=B.allColumnsFixedLeft,W=B.rowHoverable,K=_(xW(g,y,x,d,b,w),2),U=K[0],V=K[1],G={},Y="number"==typeof $&&H,X="number"==typeof P&&H;Y&&(G.position="sticky",G.left=$),X&&(G.position="sticky",G.right=P);var Q=null!==(t=null!==(r=null!==(o=null==V?void 0:V.colSpan)&&void 0!==o?o:L.colSpan)&&void 0!==r?r:k)&&void 0!==t?t:1,Z=null!==(i=null!==(a=null!==(l=null==V?void 0:V.rowSpan)&&void 0!==l?l:L.rowSpan)&&void 0!==a?a:j)&&void 0!==i?i:1,J=function(e,t){return sW(vW,function(n){var r,o,i,a;return[(r=e,o=t||1,i=n.hoverStartRow,a=n.hoverEndRow,r<=a&&r+o-1>=i),n.onHover]})}(S,Z),ee=_(J,2),te=ee[0],ne=ee[1],re=fo(function(e){var t;g&&ne(S,S+Z-1),null==L||null===(t=L.onMouseEnter)||void 0===t||t.call(L,e)}),oe=fo(function(e){var t;g&&ne(-1,-1),null==L||null===(t=L.onMouseLeave)||void 0===t||t.call(L,e)});if(0===Q||0===Z)return null;var ie=null!==(c=L.title)&&void 0!==c?c:function(e){var t,r=e.ellipsis,o=e.rowType,i=e.children,a=!0===r?{showTitle:!0}:r;return a&&(a.showTitle||"header"===o)&&("string"==typeof i||"number"==typeof i?t=i.toString():n.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:C,ellipsis:f,children:U}),ae=Rr()(z,m,(E(E(E(E(E(E(E(E(E(E(s={},"".concat(z,"-fix-left"),Y&&H),"".concat(z,"-fix-left-first"),N&&H),"".concat(z,"-fix-left-last"),I&&H),"".concat(z,"-fix-left-all"),I&&F&&H),"".concat(z,"-fix-right"),X&&H),"".concat(z,"-fix-right-first"),M&&H),"".concat(z,"-fix-right-last"),T&&H),"".concat(z,"-ellipsis"),f),"".concat(z,"-with-append"),R),"".concat(z,"-fix-sticky"),(Y||X)&&q&&H),E(s,"".concat(z,"-row-hover"),!V&&te)),L.className,null==V?void 0:V.className),le={};v&&(le.textAlign=v);var ce=A(A(A(A({},null==V?void 0:V.style),G),le),L.style),se=U;return"object"!==O(se)||Array.isArray(se)||n.isValidElement(se)||(se=null),f&&(I||M)&&(se=n.createElement("span",{className:"".concat(z,"-content")},se)),n.createElement(u,Ve({},V,L,{className:ae,style:ce,title:ie,scope:p,onMouseEnter:W?re:void 0,onMouseLeave:W?oe:void 0,colSpan:1!==Q?Q:null,rowSpan:1!==Z?Z:null}),R,se)}const SW=n.memo(wW);function CW(e,t,n,r,o){var i,a,l=n[e]||{},c=n[t]||{};"left"===l.fixed?i=r.left["rtl"===o?t:e]:"right"===c.fixed&&(a=r.right["rtl"===o?e:t]);var s=!1,u=!1,d=!1,f=!1,p=n[t+1],h=n[e-1],m=p&&!p.fixed||h&&!h.fixed||n.every(function(e){return"left"===e.fixed});if("rtl"===o){if(void 0!==i)f=!(h&&"left"===h.fixed)&&m;else if(void 0!==a){d=!(p&&"right"===p.fixed)&&m}}else if(void 0!==i){s=!(p&&"left"===p.fixed)&&m}else if(void 0!==a){u=!(h&&"right"===h.fixed)&&m}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}const OW=n.createContext({});var kW=["children"];function EW(e){return e.children}EW.Row=function(e){var t=e.children,r=eo(e,kW);return n.createElement("tr",r,t)},EW.Cell=function(e){var t=e.className,r=e.index,o=e.children,i=e.colSpan,a=void 0===i?1:i,l=e.rowSpan,c=e.align,s=sW(vW,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,f=n.useContext(OW),p=f.scrollColumnIndex,h=f.stickyOffsets,m=r+a-1+1===p?a+1:a,v=CW(r,r+m-1,f.flattenColumns,h,d);return n.createElement(SW,Ve({className:t,index:r,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:m,rowSpan:l,render:function(){return o}},v))};const jW=EW;const $W=hW(function(e){var t=e.children,r=e.stickyOffsets,o=e.flattenColumns,i=sW(vW,"prefixCls"),a=o.length-1,l=o[a],c=n.useMemo(function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:null!=l&&l.scrollbar?a:null}},[l,o,a,r]);return n.createElement(OW.Provider,{value:c},n.createElement("tfoot",{className:"".concat(i,"-summary")},t))});var PW=jW;function NW(e,t,n,r,o,i,a){var l=i(t,a);e.push({record:t,indent:n,index:a,rowKey:l});var c=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var s=0;s<t[r].length;s+=1)NW(e,t[r][s],n+1,r,o,i,s)}function _W(e,t,r,o){var i=n.useMemo(function(){if(null!=r&&r.size){for(var n=[],i=0;i<(null==e?void 0:e.length);i+=1){NW(n,e[i],0,t,r,o,i)}return n}return null==e?void 0:e.map(function(e,t){return{record:e,indent:0,index:t,rowKey:o(e,t)}})},[e,t,r,o]);return i}function IW(e,t,n,r){var o,i=sW(vW,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=i.flattenColumns,l=i.expandableType,c=i.expandedKeys,s=i.childrenColumnName,u=i.onTriggerExpand,d=i.rowExpandable,f=i.onRow,p=i.expandRowByClick,h=i.rowClassName,m="nest"===l,v="row"===l&&(!d||d(e)),g=v||m,b=c&&c.has(t),y=s&&e&&e[s],x=fo(u),w=null==f?void 0:f(e,n),S=null==w?void 0:w.onClick;"string"==typeof h?o=h:"function"==typeof h&&(o=h(e,n,r));var C=bW(a);return A(A({},i),{},{columnsKey:C,nestExpandable:m,expanded:b,hasNestChildren:y,record:e,onTriggerExpand:x,rowSupportExpand:v,expandable:g,rowProps:A(A({},w),{},{className:Rr()(o,null==w?void 0:w.className),onClick:function(t){p&&g&&u(e,t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==S||S.apply(void 0,[t].concat(r))}})})}const MW=function(e){var t=e.prefixCls,r=e.children,o=e.component,i=e.cellComponent,a=e.className,l=e.expanded,c=e.colSpan,s=e.isEmpty,u=e.stickyOffset,d=void 0===u?0:u,f=sW(vW,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),p=f.scrollbarSize,h=f.fixHeader,m=f.fixColumn,v=f.componentWidth,g=f.horizonScroll,b=r;return(s?g&&v:m)&&(b=n.createElement("div",{style:{width:v-d-(h&&!s?p:0),position:"sticky",left:d,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),n.createElement(o,{className:a,style:{display:l?null:"none"}},n.createElement(SW,{component:i,prefixCls:t,colSpan:c},b))};function TW(e){var t=e.prefixCls,r=e.record,o=e.onExpand,i=e.expanded,a=e.expandable,l="".concat(t,"-row-expand-icon");if(!a)return n.createElement("span",{className:Rr()(l,"".concat(t,"-row-spaced"))});return n.createElement("span",{className:Rr()(l,E(E({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:function(e){o(r,e),e.stopPropagation()}})}function AW(e,t,n,r){return"string"==typeof e?e:"function"==typeof e?e(t,n,r):""}function RW(e,t,r,o,i){var a,l,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=e.record,d=e.prefixCls,f=e.columnsKey,p=e.fixedInfoList,h=e.expandIconColumnIndex,m=e.nestExpandable,v=e.indentSize,g=e.expandIcon,b=e.expanded,y=e.hasNestChildren,x=e.onTriggerExpand,w=e.expandable,S=e.expandedKeys,C=f[r],O=p[r];r===(h||0)&&m&&(l=n.createElement(n.Fragment,null,n.createElement("span",{style:{paddingLeft:"".concat(v*o,"px")},className:"".concat(d,"-row-indent indent-level-").concat(o)}),g({prefixCls:d,expanded:b,expandable:y,record:u,onExpand:x})));var k=(null===(a=t.onCell)||void 0===a?void 0:a.call(t,u,i))||{};if(s){var E=k.rowSpan,j=void 0===E?1:E;if(w&&j&&r<s){for(var $=j,P=i;P<i+j;P+=1){var N=c[P];S.has(N)&&($+=1)}k.rowSpan=$}}return{key:C,fixedInfo:O,appendCellNode:l,additionalCellProps:k}}const DW=hW(function(e){var t=e.className,r=e.style,o=e.record,i=e.index,a=e.renderIndex,l=e.rowKey,c=e.rowKeys,s=e.indent,u=void 0===s?0:s,d=e.rowComponent,f=e.cellComponent,p=e.scopeCellComponent,h=e.expandedRowInfo,m=IW(o,l,i,u),v=m.prefixCls,g=m.flattenColumns,b=m.expandedRowClassName,y=m.expandedRowRender,x=m.rowProps,w=m.expanded,S=m.rowSupportExpand,C=n.useRef(!1);C.current||(C.current=w);var O,k=AW(b,o,i,u),j=n.createElement(d,Ve({},x,{"data-row-key":l,className:Rr()(t,"".concat(v,"-row"),"".concat(v,"-row-level-").concat(u),null==x?void 0:x.className,E({},k,u>=1)),style:A(A({},r),null==x?void 0:x.style)}),g.map(function(e,t){var r=e.render,l=e.dataIndex,s=e.className,d=RW(m,e,t,u,i,c,null==h?void 0:h.offset),g=d.key,b=d.fixedInfo,y=d.appendCellNode,x=d.additionalCellProps;return n.createElement(SW,Ve({className:s,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:v,key:g,record:o,index:i,renderIndex:a,dataIndex:l,render:r,shouldCellUpdate:e.shouldCellUpdate},b,{appendNode:y,additionalProps:x}))}));if(S&&(C.current||w)){var $=y(o,i,u+1,w);O=n.createElement(MW,{expanded:w,className:Rr()("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(u+1),k),prefixCls:v,component:d,cellComponent:f,colSpan:h?h.colSpan:g.length,stickyOffset:null==h?void 0:h.sticky,isEmpty:!1},$)}return n.createElement(n.Fragment,null,j,O)});function LW(e){var t=e.columnKey,r=e.onColumnResize,o=n.useRef();return Re(function(){o.current&&r(t,o.current.offsetWidth)},[]),n.createElement(sf,{data:t},n.createElement("td",{ref:o,style:{padding:0,border:0,height:0}},n.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function qW(e){var t=e.prefixCls,r=e.columnsKey,o=e.onColumnResize,i=n.useRef(null);return n.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:i},n.createElement(sf.Collection,{onBatchResize:function(e){Cc(i.current)&&e.forEach(function(e){var t=e.data,n=e.size;o(t,n.offsetWidth)})}},r.map(function(e){return n.createElement(LW,{key:e,columnKey:e,onColumnResize:o})})))}const zW=hW(function(e){var t,r=e.data,o=e.measureColumnWidth,i=sW(vW,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=i.prefixCls,l=i.getComponent,c=i.onColumnResize,s=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,f=i.childrenColumnName,p=i.emptyNode,h=i.expandedRowOffset,m=void 0===h?0:h,v=i.colWidths,g=_W(r,f,d,u),b=n.useMemo(function(){return g.map(function(e){return e.rowKey})},[g]),y=n.useRef({renderWithProps:!1}),x=n.useMemo(function(){for(var e=s.length-m,t=0,n=0;n<m;n+=1)t+=v[n]||0;return{offset:m,colSpan:e,sticky:t}},[s.length,m,v]),w=l(["body","wrapper"],"tbody"),S=l(["body","row"],"tr"),C=l(["body","cell"],"td"),O=l(["body","cell"],"th");t=r.length?g.map(function(e,t){var r=e.record,o=e.indent,i=e.index,a=e.rowKey;return n.createElement(DW,{key:a,rowKey:a,rowKeys:b,record:r,index:t,renderIndex:i,rowComponent:S,cellComponent:C,scopeCellComponent:O,indent:o,expandedRowInfo:x})}):n.createElement(MW,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:S,cellComponent:C,colSpan:s.length,isEmpty:!0},p);var k=bW(s);return n.createElement(gW.Provider,{value:y.current},n.createElement(w,{className:"".concat(a,"-tbody")},o&&n.createElement(qW,{prefixCls:a,columnsKey:k,onColumnResize:c}),t))});var BW=["expandable"],HW="RC_TABLE_INTERNAL_COL_DEFINE";var FW=["columnType"];const WW=function(e){for(var t=e.colWidths,r=e.columns,o=e.columCount,i=sW(vW,["tableLayout"]).tableLayout,a=[],l=!1,c=(o||r.length)-1;c>=0;c-=1){var s=t[c],u=r&&r[c],d=void 0,f=void 0;if(u&&(d=u[HW],"auto"===i&&(f=u.minWidth)),s||f||d||l){var p=d||{},h=(p.columnType,eo(p,FW));a.unshift(n.createElement("col",Ve({key:c,style:{width:s,minWidth:f}},h))),l=!0}}return n.createElement("colgroup",null,a)};var KW=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var UW=n.forwardRef(function(e,t){var r=e.className,o=e.noData,i=e.columns,a=e.flattenColumns,l=e.colWidths,c=e.columCount,s=e.stickyOffsets,u=e.direction,d=e.fixHeader,f=e.stickyTopOffset,p=e.stickyBottomOffset,h=e.stickyClassName,m=e.onScroll,v=e.maxContentScroll,g=e.children,b=eo(e,KW),y=sW(vW,["prefixCls","scrollbarSize","isSticky","getComponent"]),x=y.prefixCls,w=y.scrollbarSize,S=y.isSticky,C=(0,y.getComponent)(["header","table"],"table"),O=S&&!d?0:w,k=n.useRef(null),j=n.useCallback(function(e){Gr(t,e),Gr(k,e)},[]);n.useEffect(function(){function e(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(m({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}var t=k.current;return null==t||t.addEventListener("wheel",e,{passive:!1}),function(){null==t||t.removeEventListener("wheel",e)}},[]);var $=n.useMemo(function(){return a.every(function(e){return e.width})},[a]),P=a[a.length-1],N={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(x,"-cell-scrollbar")}}},_=(0,n.useMemo)(function(){return O?[].concat(M(i),[N]):i},[O,i]),I=(0,n.useMemo)(function(){return O?[].concat(M(a),[N]):a},[O,a]),T=(0,n.useMemo)(function(){var e=s.right,t=s.left;return A(A({},s),{},{left:"rtl"===u?[].concat(M(t.map(function(e){return e+O})),[0]):t,right:"rtl"===u?e:[].concat(M(e.map(function(e){return e+O})),[0]),isSticky:S})},[O,s,S]),R=function(e,t){return(0,n.useMemo)(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(void 0===o)return null;n[r]=o}return n},[e.join("_"),t])}(l,c);return n.createElement("div",{style:A({overflow:"hidden"},S?{top:f,bottom:p}:{}),ref:j,className:Rr()(r,E({},h,!!h))},n.createElement(C,{style:{tableLayout:"fixed",visibility:o||R?null:"hidden"}},(!o||!v||$)&&n.createElement(WW,{colWidths:R?[].concat(M(R),[O]):[],columCount:c+1,columns:I}),g(A(A({},b),{},{stickyOffsets:T,columns:_,flattenColumns:I}))))});const VW=n.memo(UW);const GW=function(e){var t,r=e.cells,o=e.stickyOffsets,i=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,c=e.onHeaderRow,s=e.index,u=sW(vW,["prefixCls","direction"]),d=u.prefixCls,f=u.direction;c&&(t=c(r.map(function(e){return e.column}),s));var p=bW(r.map(function(e){return e.column}));return n.createElement(a,t,r.map(function(e,t){var r,a=e.column,c=CW(e.colStart,e.colEnd,i,o,f);return a&&a.onHeaderCell&&(r=e.column.onHeaderCell(a)),n.createElement(SW,Ve({},e,{scope:a.title?e.colSpan>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:l,prefixCls:d,key:p[t]},c,{additionalProps:r,rowType:"header"}))}))};const YW=hW(function(e){var t=e.stickyOffsets,r=e.columns,o=e.flattenColumns,i=e.onHeaderRow,a=sW(vW,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,s=n.useMemo(function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,o+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a});return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)})},o=0;o<n;o+=1)r(o);return t}(r)},[r]),u=c(["header","wrapper"],"thead"),d=c(["header","row"],"tr"),f=c(["header","cell"],"th");return n.createElement(u,{className:"".concat(l,"-thead")},s.map(function(e,r){return n.createElement(GW,{key:r,flattenColumns:o,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:f,onHeaderRow:i,index:r})}))});function XW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var QW=["children"],ZW=["fixed"];function JW(e){return Dc(e).filter(function(e){return n.isValidElement(e)}).map(function(e){var t=e.key,n=e.props,r=n.children,o=A({key:t},eo(n,QW));return r&&(o.children=JW(r)),o})}function eK(e){return e.filter(function(e){return e&&"object"===O(e)&&!e.hidden}).map(function(e){var t=e.children;return t&&t.length>0?A(A({},e),{},{children:eK(t)}):e})}function tK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter(function(e){return e&&"object"===O(e)}).reduce(function(e,n,r){var o=n.fixed,i=!0===o?"left":o,a="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat(M(e),M(tK(l,a).map(function(e){return A({fixed:i},e)}))):[].concat(M(e),[A(A({key:a},n),{},{fixed:i})])},[])}const nK=function(e,t){var r=e.prefixCls,o=e.columns,i=e.children,a=e.expandable,l=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,h=e.expandedRowOffset,m=void 0===h?0:h,v=e.direction,g=e.expandRowByClick,b=e.columnWidth,y=e.fixed,x=e.scrollWidth,w=e.clientWidth,S=n.useMemo(function(){return eK((o||JW(i)||[]).slice())},[o,i]),C=n.useMemo(function(){if(a){var e=S.slice();if(!e.includes(aW)){var t=p||0;t>=0&&(t||"left"===y||!y)&&e.splice(t,0,aW),"right"===y&&e.splice(S.length,0,aW)}0;var o=e.indexOf(aW);e=e.filter(function(e,t){return e!==aW||t===o});var i,h=S[o];i=y||(h?h.fixed:null);var v=E(E(E(E(E(E({},HW,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",c),"fixed",i),"className","".concat(r,"-row-expand-icon-cell")),"width",b),"render",function(e,t,o){var i=s(t,o),a=l.has(i),c=!f||f(t),p=d({prefixCls:r,expanded:a,expandable:c,record:t,onExpand:u});return g?n.createElement("span",{onClick:function(e){return e.stopPropagation()}},p):p});return e.map(function(e,t){var n=e===aW?v:e;return t<m?A(A({},n),{},{fixed:n.fixed||"left"}):n})}return S.filter(function(e){return e!==aW})},[a,S,s,l,d,v,m]),O=n.useMemo(function(){var e=C;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,C,v]),k=n.useMemo(function(){return"rtl"===v?function(e){return e.map(function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),A({fixed:n},eo(e,ZW))})}(tK(O)):tK(O)},[O,v,x]),j=n.useMemo(function(){for(var e=-1,t=k.length-1;t>=0;t-=1){var n=k[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=k[r].fixed;if("left"!==o&&!0!==o)return!0}var i=k.findIndex(function(e){return"right"===e.fixed});if(i>=0)for(var a=i;a<k.length;a+=1){if("right"!==k[a].fixed)return!0}return!1},[k]),$=function(e,t,r){return n.useMemo(function(){if(t&&t>0){var n=0,o=0;e.forEach(function(e){var r=XW(t,e.width);r?n+=r:o+=1});var i=Math.max(t,r),a=Math.max(i-n,o),l=o,c=a/o,s=0,u=e.map(function(e){var n=A({},e),r=XW(t,n.width);if(r)n.width=r;else{var o=Math.floor(c);n.width=1===l?a:o,a-=o,l-=1}return s+=n.width,n});if(s<i){var d=i/s;a=i,u.forEach(function(e,t){var n=Math.floor(e.width*d);e.width=t===u.length-1?a:n,a-=n})}return[u,Math.max(s,i)]}return[e,t]},[e,t,r])}(k,x,w),P=_($,2),N=P[0],I=P[1];return[O,N,I,j]};function rK(e,t,r){var o=function(e){var t,n=e.expandable,r=eo(e,BW);return!1===(t="expandable"in e?A(A({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),i=o.expandIcon,a=o.expandedRowKeys,l=o.defaultExpandedRowKeys,c=o.defaultExpandAllRows,s=o.expandedRowRender,u=o.onExpand,d=o.onExpandedRowsChange,f=i||TW,p=o.childrenColumnName||"children",h=n.useMemo(function(){return s?"row":!!(e.expandable&&e.internalHooks===lW&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(e){return e&&"object"===O(e)&&e[p]}))&&"nest"},[!!s,t]),m=n.useState(function(){return l||(c?function(e,t,n){var r=[];return function e(o){(o||[]).forEach(function(o,i){r.push(t(o,i)),e(o[n])})}(e),r}(t,r,p):[])}),v=_(m,2),g=v[0],b=v[1],y=n.useMemo(function(){return new Set(a||g||[])},[a,g]),x=n.useCallback(function(e){var n,o=r(e,t.indexOf(e)),i=y.has(o);i?(y.delete(o),n=M(y)):n=[].concat(M(y),[o]),b(n),u&&u(!i,e),d&&d(n)},[r,y,t,u,d]);return[o,h,y,f,p,x]}var oK=D()?window:null;const iK=function(e,t,r){var o=(0,n.useMemo)(function(){var n=t.length,o=function(n,r,o){for(var i=[],a=0,l=n;l!==r;l+=o)i.push(a),t[l].fixed&&(a+=e[l]||0);return i},i=o(0,n,1),a=o(n-1,-1,-1).reverse();return"rtl"===r?{left:a,right:i}:{left:i,right:a}},[e,t,r]);return o};const aK=function(e){var t=e.className,r=e.children;return n.createElement("div",{className:t},r)};function lK(e){var t=zr(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var cK=function(e,t){var r,o,i,a,l,c,s,u=e.scrollBodyRef,d=e.onScroll,f=e.offsetScroll,p=e.container,h=e.direction,m=sW(vW,"prefixCls"),v=(null===(r=u.current)||void 0===r?void 0:r.scrollWidth)||0,g=(null===(o=u.current)||void 0===o?void 0:o.clientWidth)||0,b=v&&g*(g/v),y=n.useRef(),x=(i={scrollLeft:0,isHiddenScrollBar:!0},a=(0,n.useRef)(i),l=_((0,n.useState)({}),2)[1],c=(0,n.useRef)(null),s=(0,n.useRef)([]),(0,n.useEffect)(function(){return function(){c.current=null}},[]),[a.current,function(e){s.current.push(e);var t=Promise.resolve();c.current=t,t.then(function(){if(c.current===t){var e=s.current,n=a.current;s.current=[],e.forEach(function(e){a.current=e(a.current)}),c.current=null,n!==a.current&&l({})}})}]),w=_(x,2),S=w[0],C=w[1],O=n.useRef({delta:0,x:0}),k=_(n.useState(!1),2),j=k[0],$=k[1],P=n.useRef(null);n.useEffect(function(){return function(){Ko.cancel(P.current)}},[]);var N=function(){$(!1)},I=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(j&&0!==n){var r=O.current.x+e.pageX-O.current.x-O.current.delta,o="rtl"===h;r=Math.max(o?b-g:0,Math.min(o?0:g-b,r)),(!o||Math.abs(r)+Math.abs(b)<g)&&(d({scrollLeft:r/g*(v+2)}),O.current.x=e.pageX)}else j&&$(!1)},M=function(){Ko.cancel(P.current),P.current=Ko(function(){if(u.current){var e=lK(u.current).top,t=e+u.current.offsetHeight,n=p===window?document.documentElement.scrollTop+window.innerHeight:lK(p).top+p.clientHeight;t-Cd()<=n||e>=n-f?C(function(e){return A(A({},e),{},{isHiddenScrollBar:!0})}):C(function(e){return A(A({},e),{},{isHiddenScrollBar:!1})})}})},T=function(e){C(function(t){return A(A({},t),{},{scrollLeft:e/v*g||0})})};return n.useImperativeHandle(t,function(){return{setScrollLeft:T,checkScrollBarVisible:M}}),n.useEffect(function(){var e=DM(document.body,"mouseup",N,!1),t=DM(document.body,"mousemove",I,!1);return M(),function(){e.remove(),t.remove()}},[b,j]),n.useEffect(function(){if(u.current){for(var e=[],t=zr(u.current);t;)e.push(t),t=t.parentElement;return e.forEach(function(e){return e.addEventListener("scroll",M,!1)}),window.addEventListener("resize",M,!1),window.addEventListener("scroll",M,!1),p.addEventListener("scroll",M,!1),function(){e.forEach(function(e){return e.removeEventListener("scroll",M)}),window.removeEventListener("resize",M),window.removeEventListener("scroll",M),p.removeEventListener("scroll",M)}}},[p]),n.useEffect(function(){S.isHiddenScrollBar||C(function(e){var t=u.current;return t?A(A({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[S.isHiddenScrollBar]),v<=g||!b||S.isHiddenScrollBar?null:n.createElement("div",{style:{height:Cd(),width:g,bottom:f},className:"".concat(m,"-sticky-scroll")},n.createElement("div",{onMouseDown:function(e){e.persist(),O.current.delta=e.pageX-S.scrollLeft,O.current.x=0,$(!0),e.preventDefault()},ref:y,className:Rr()("".concat(m,"-sticky-scroll-bar"),E({},"".concat(m,"-sticky-scroll-bar-active"),j)),style:{width:"".concat(b,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const sK=n.forwardRef(cK);const uK=function(e){return null};const dK=function(e){return null};var fK="rc-table",pK=[],hK={};function mK(){return"No Data"}function vK(e,t){var r=A({rowKey:"key",prefixCls:fK,emptyText:mK},e),o=r.prefixCls,i=r.className,a=r.rowClassName,l=r.style,c=r.data,s=r.rowKey,u=r.scroll,d=r.tableLayout,f=r.direction,p=r.title,h=r.footer,m=r.summary,v=r.caption,g=r.id,b=r.showHeader,y=r.components,x=r.emptyText,w=r.onRow,S=r.onHeaderRow,C=r.onScroll,k=r.internalHooks,j=r.transformColumns,$=r.internalRefs,P=r.tailor,N=r.getContainerWidth,I=r.sticky,M=r.rowHoverable,T=void 0===M||M,R=c||pK,D=!!R.length,L=k===lW;var q=n.useCallback(function(e,t){return nn(y,e)||t},[y]),z=n.useMemo(function(){return"function"==typeof s?s:function(e){return e&&e[s]}},[s]),B=q(["body"]),H=function(){var e=_(n.useState(-1),2),t=e[0],r=e[1],o=_(n.useState(-1),2),i=o[0],a=o[1];return[t,i,n.useCallback(function(e,t){r(e),a(t)},[])]}(),F=_(H,3),W=F[0],K=F[1],U=F[2],V=_(rK(r,R,z),6),G=V[0],X=V[1],Q=V[2],Z=V[3],J=V[4],ee=V[5],te=null==u?void 0:u.x,ne=_(n.useState(0),2),oe=ne[0],ie=ne[1],ae=_(nK(A(A(A({},r),G),{},{expandable:!!G.expandedRowRender,columnTitle:G.columnTitle,expandedKeys:Q,getRowKey:z,onTriggerExpand:ee,expandIcon:Z,expandIconColumnIndex:G.expandIconColumnIndex,direction:f,scrollWidth:L&&P&&"number"==typeof te?te:null,clientWidth:oe}),L?j:null),4),le=ae[0],ce=ae[1],se=ae[2],ue=ae[3],de=null!=se?se:te,fe=n.useMemo(function(){return{columns:le,flattenColumns:ce}},[le,ce]),pe=n.useRef(),he=n.useRef(),me=n.useRef(),ve=n.useRef();n.useImperativeHandle(t,function(){return{nativeElement:pe.current,scrollTo:function(e){var t;if(me.current instanceof HTMLElement){var n=e.index,r=e.top,o=e.key;if(function(e){return"number"==typeof e&&!Number.isNaN(e)}(r)){var i;null===(i=me.current)||void 0===i||i.scrollTo({top:r})}else{var a,l=null!=o?o:z(R[n]);null===(a=me.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}}else null!==(t=me.current)&&void 0!==t&&t.scrollTo&&me.current.scrollTo(e)}}});var ge,be,ye,xe=n.useRef(),we=_(n.useState(!1),2),Se=we[0],Ce=we[1],Oe=_(n.useState(!1),2),ke=Oe[0],Ee=Oe[1],je=_(n.useState(new Map),2),$e=je[0],Pe=je[1],Ne=bW(ce).map(function(e){return $e.get(e)}),_e=n.useMemo(function(){return Ne},[Ne.join("_")]),Ie=iK(_e,ce,f),Me=u&&yW(u.y),Te=u&&yW(de)||Boolean(G.fixed),Ae=Te&&ce.some(function(e){return e.fixed}),De=n.useRef(),Le=function(e,t){var r="object"===O(e)?e:{},o=r.offsetHeader,i=void 0===o?0:o,a=r.offsetSummary,l=void 0===a?0:a,c=r.offsetScroll,s=void 0===c?0:c,u=r.getContainer,d=(void 0===u?function(){return oK}:u)()||oK,f=!!e;return n.useMemo(function(){return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:s,container:d}},[f,s,i,l,t,d])}(I,o),qe=Le.isSticky,ze=Le.offsetHeader,Be=Le.offsetSummary,He=Le.offsetScroll,Fe=Le.stickyClassName,We=Le.container,Ke=n.useMemo(function(){return null==m?void 0:m(R)},[m,R]),Ue=(Me||qe)&&n.isValidElement(Ke)&&Ke.type===jW&&Ke.props.fixed;Me&&(be={overflowY:D?"scroll":"auto",maxHeight:u.y}),Te&&(ge={overflowX:"auto"},Me||(be={overflowY:"hidden"}),ye={width:!0===de?"auto":de,minWidth:"100%"});var Ge=n.useCallback(function(e,t){Pe(function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n})},[]),Ye=_(function(e){var t=(0,n.useRef)(e||null),r=(0,n.useRef)();function o(){window.clearTimeout(r.current)}return(0,n.useEffect)(function(){return o},[]),[function(e){t.current=e,o(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)},function(){return t.current}]}(null),2),Xe=Ye[0],Qe=Ye[1];function Ze(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(function(){t.scrollLeft=e},0)))}var Je=fo(function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===f,i="number"==typeof r?r:n.scrollLeft,a=n||hK;Qe()&&Qe()!==a||(Xe(a),Ze(i,he.current),Ze(i,me.current),Ze(i,xe.current),Ze(i,null===(t=De.current)||void 0===t?void 0:t.setScrollLeft));var l=n||he.current;if(l){var c=L&&P&&"number"==typeof de?de:l.scrollWidth,s=l.clientWidth;if(c===s)return Ce(!1),void Ee(!1);o?(Ce(-i<c-s),Ee(-i>0)):(Ce(i>0),Ee(i<c-s))}}),et=fo(function(e){Je(e),null==C||C(e)}),tt=function(){var e;Te&&me.current?Je({currentTarget:zr(me.current),scrollLeft:null===(e=me.current)||void 0===e?void 0:e.scrollLeft}):(Ce(!1),Ee(!1))},nt=n.useRef(!1);n.useEffect(function(){nt.current&&tt()},[Te,c,le.length]),n.useEffect(function(){nt.current=!0},[]);var rt=_(n.useState(0),2),ot=rt[0],it=rt[1],at=_(n.useState(!0),2),lt=at[0],ct=at[1];Re(function(){P&&L||(me.current instanceof Element?it(Od(me.current).width):it(Od(ve.current).width)),ct(bA("position","sticky"))},[]),n.useEffect(function(){L&&$&&($.body.current=me.current)});var st,ut=n.useCallback(function(e){return n.createElement(n.Fragment,null,n.createElement(YW,e),"top"===Ue&&n.createElement($W,e,Ke))},[Ue,Ke]),dt=n.useCallback(function(e){return n.createElement($W,e,Ke)},[Ke]),ft=q(["table"],"table"),pt=n.useMemo(function(){return d||(Ae?"max-content"===de?"auto":"fixed":Me||qe||ce.some(function(e){return e.ellipsis})?"fixed":"auto")},[Me,Ae,ce,d,qe]),ht={colWidths:_e,columCount:ce.length,stickyOffsets:Ie,onHeaderRow:S,fixHeader:Me,scroll:u},mt=n.useMemo(function(){return D?null:"function"==typeof x?x():x},[D,x]),vt=n.createElement(zW,{data:R,measureColumnWidth:Me||Te||qe}),gt=n.createElement(WW,{colWidths:ce.map(function(e){return e.width}),columns:ce}),bt=null!=v?n.createElement("caption",{className:"".concat(o,"-caption")},v):void 0,yt=Xa(r,{data:!0}),xt=Xa(r,{aria:!0});if(Me||qe){var wt;"function"==typeof B?(wt=B(R,{scrollbarSize:ot,ref:me,onScroll:Je}),ht.colWidths=ce.map(function(e,t){var n=e.width,r=t===ce.length-1?n-ot:n;return"number"!=typeof r||Number.isNaN(r)?0:r})):wt=n.createElement("div",{style:A(A({},ge),be),onScroll:et,ref:me,className:Rr()("".concat(o,"-body"))},n.createElement(ft,Ve({style:A(A({},ye),{},{tableLayout:pt})},xt),bt,gt,vt,!Ue&&Ke&&n.createElement($W,{stickyOffsets:Ie,flattenColumns:ce},Ke)));var St=A(A(A({noData:!R.length,maxContentScroll:Te&&"max-content"===de},ht),fe),{},{direction:f,stickyClassName:Fe,onScroll:Je});st=n.createElement(n.Fragment,null,!1!==b&&n.createElement(VW,Ve({},St,{stickyTopOffset:ze,className:"".concat(o,"-header"),ref:he}),ut),wt,Ue&&"top"!==Ue&&n.createElement(VW,Ve({},St,{stickyBottomOffset:Be,className:"".concat(o,"-summary"),ref:xe}),dt),qe&&me.current&&me.current instanceof Element&&n.createElement(sK,{ref:De,offsetScroll:He,scrollBodyRef:me,onScroll:Je,container:We,direction:f}))}else st=n.createElement("div",{style:A(A({},ge),be),className:Rr()("".concat(o,"-content")),onScroll:Je,ref:me},n.createElement(ft,Ve({style:A(A({},ye),{},{tableLayout:pt})},xt),bt,gt,!1!==b&&n.createElement(YW,Ve({},ht,fe)),vt,Ke&&n.createElement($W,{stickyOffsets:Ie,flattenColumns:ce},Ke)));var Ct=n.createElement("div",Ve({className:Rr()(o,i,E(E(E(E(E(E(E(E(E(E({},"".concat(o,"-rtl"),"rtl"===f),"".concat(o,"-ping-left"),Se),"".concat(o,"-ping-right"),ke),"".concat(o,"-layout-fixed"),"fixed"===d),"".concat(o,"-fixed-header"),Me),"".concat(o,"-fixed-column"),Ae),"".concat(o,"-fixed-column-gapped"),Ae&&ue),"".concat(o,"-scroll-horizontal"),Te),"".concat(o,"-has-fix-left"),ce[0]&&ce[0].fixed),"".concat(o,"-has-fix-right"),ce[ce.length-1]&&"right"===ce[ce.length-1].fixed)),style:l,id:g,ref:pe},yt),p&&n.createElement(aK,{className:"".concat(o,"-title")},p(R)),n.createElement("div",{ref:ve,className:"".concat(o,"-container")},st),h&&n.createElement(aK,{className:"".concat(o,"-footer")},h(R)));Te&&(Ct=n.createElement(sf,{onResize:function(e){var t,n=e.width;null===(t=De.current)||void 0===t||t.checkScrollBarVisible();var r=pe.current?pe.current.offsetWidth:n;L&&N&&pe.current&&(r=N(pe.current,r)||r),r!==oe&&(tt(),ie(r))}},Ct));var Ot=function(e,t,n){var r=e.map(function(r,o){return CW(o,o,e,t,n)});return Y(function(){return r},[r],function(e,t){return!re(e,t)})}(ce,Ie,f),kt=n.useMemo(function(){return{scrollX:de,prefixCls:o,getComponent:q,scrollbarSize:ot,direction:f,fixedInfoList:Ot,isSticky:qe,supportSticky:lt,componentWidth:oe,fixHeader:Me,fixColumn:Ae,horizonScroll:Te,tableLayout:pt,rowClassName:a,expandedRowClassName:G.expandedRowClassName,expandIcon:Z,expandableType:X,expandRowByClick:G.expandRowByClick,expandedRowRender:G.expandedRowRender,expandedRowOffset:G.expandedRowOffset,onTriggerExpand:ee,expandIconColumnIndex:G.expandIconColumnIndex,indentSize:G.indentSize,allColumnsFixedLeft:ce.every(function(e){return"left"===e.fixed}),emptyNode:mt,columns:le,flattenColumns:ce,onColumnResize:Ge,colWidths:_e,hoverStartRow:W,hoverEndRow:K,onHover:U,rowExpandable:G.rowExpandable,onRow:w,getRowKey:z,expandedKeys:Q,childrenColumnName:J,rowHoverable:T}},[de,o,q,ot,f,Ot,qe,lt,oe,Me,Ae,Te,pt,a,G.expandedRowClassName,Z,X,G.expandRowByClick,G.expandedRowRender,G.expandedRowOffset,ee,G.expandIconColumnIndex,G.indentSize,mt,le,ce,Ge,_e,W,K,U,G.rowExpandable,w,z,Q,J,T]);return n.createElement(vW.Provider,{value:kt},Ct)}var gK=n.forwardRef(vK);function bK(e){return pW(gK,e)}var yK=bK();yK.EXPAND_COLUMN=aW,yK.INTERNAL_HOOKS=lW,yK.Column=uK,yK.ColumnGroup=dK,yK.Summary=PW;const xK=yK;var wK=cW(null),SK=cW(null);const CK=function(e){var t=e.rowInfo,r=e.column,o=e.colIndex,i=e.indent,a=e.index,l=e.component,c=e.renderIndex,s=e.record,u=e.style,d=e.className,f=e.inverse,p=e.getHeight,h=r.render,m=r.dataIndex,v=r.className,g=r.width,b=sW(SK,["columnsOffset"]).columnsOffset,y=RW(t,r,o,i,a),x=y.key,w=y.fixedInfo,S=y.appendCellNode,C=y.additionalCellProps,O=C.style,k=C.colSpan,E=void 0===k?1:k,j=C.rowSpan,$=void 0===j?1:j,P=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(o-1,E,b),N=E>1?g-P:0,_=A(A(A({},O),u),{},{flex:"0 0 ".concat(P,"px"),width:"".concat(P,"px"),marginRight:N,pointerEvents:"auto"}),I=n.useMemo(function(){return f?$<=1:0===E||0===$||$>1},[$,E,f]);I?_.visibility="hidden":f&&(_.height=null==p?void 0:p($));var M=I?function(){return null}:h,T={};return 0!==$&&0!==E||(T.rowSpan=1,T.colSpan=1),n.createElement(SW,Ve({className:Rr()(v,d),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:l,prefixCls:t.prefixCls,key:x,record:s,index:a,renderIndex:c,dataIndex:m,render:M,shouldCellUpdate:r.shouldCellUpdate},w,{appendNode:S,additionalProps:A(A({},C),{},{style:_},T)}))};var OK=["data","index","className","rowKey","style","extra","getHeight"],kK=n.forwardRef(function(e,t){var r,o=e.data,i=e.index,a=e.className,l=e.rowKey,c=e.style,s=e.extra,u=e.getHeight,d=eo(e,OK),f=o.record,p=o.indent,h=o.index,m=sW(vW,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),v=m.scrollX,g=m.flattenColumns,b=m.prefixCls,y=m.fixColumn,x=m.componentWidth,w=sW(wK,["getComponent"]).getComponent,S=IW(f,l,i,p),C=w(["body","row"],"div"),O=w(["body","cell"],"div"),k=S.rowSupportExpand,j=S.expanded,$=S.rowProps,P=S.expandedRowRender,N=S.expandedRowClassName;if(k&&j){var _=P(f,i,p+1,j),I=AW(N,f,i,p),M={};y&&(M={style:E({},"--virtual-width","".concat(x,"px"))});var T="".concat(b,"-expanded-row-cell");r=n.createElement(C,{className:Rr()("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(p+1),I)},n.createElement(SW,{component:O,prefixCls:b,className:Rr()(T,E({},"".concat(T,"-fixed"),y)),additionalProps:M},_))}var R=A(A({},c),{},{width:v});s&&(R.position="absolute",R.pointerEvents="none");var D=n.createElement(C,Ve({},$,d,{"data-row-key":l,ref:k?null:t,className:Rr()(a,"".concat(b,"-row"),null==$?void 0:$.className,E({},"".concat(b,"-row-extra"),s)),style:A(A({},R),null==$?void 0:$.style)}),g.map(function(e,t){return n.createElement(CK,{key:t,component:O,rowInfo:S,column:e,colIndex:t,indent:p,index:i,renderIndex:h,record:f,inverse:s,getHeight:u})}));return k?n.createElement("div",{ref:t},D,r):D});const EK=hW(kK);var jK=n.forwardRef(function(e,t){var r=e.data,o=e.onScroll,i=sW(vW,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=i.flattenColumns,l=i.onColumnResize,c=i.getRowKey,s=i.expandedKeys,u=i.prefixCls,d=i.childrenColumnName,f=i.scrollX,p=i.direction,h=sW(wK),m=h.sticky,v=h.scrollY,g=h.listItemHeight,b=h.getComponent,y=h.onScroll,x=n.useRef(),w=_W(r,d,s,c),S=n.useMemo(function(){var e=0;return a.map(function(t){var n=t.width;return[t.key,n,e+=n]})},[a]),C=n.useMemo(function(){return S.map(function(e){return e[2]})},[S]);n.useEffect(function(){S.forEach(function(e){var t=_(e,2),n=t[0],r=t[1];l(n,r)})},[S]),n.useImperativeHandle(t,function(){var e,t={scrollTo:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=x.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=x.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo({left:e})}}),t});var k=function(e,t){var n,r=null===(n=w[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var i,a=o(r,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},E=n.useMemo(function(){return{columnsOffset:C}},[C]),j="".concat(u,"-tbody"),$=b(["body","wrapper"]),P={};return m&&(P.position="sticky",P.bottom=0,"object"===O(m)&&m.offsetScroll&&(P.bottom=m.offsetScroll)),n.createElement(SK.Provider,{value:E},n.createElement(fw,{fullHeight:!1,ref:x,prefixCls:"".concat(j,"-virtual"),styles:{horizontalScrollBar:P},className:j,height:v,itemHeight:g||24,data:w,itemKey:function(e){return c(e.record)},component:$,scrollWidth:f,direction:p,onVirtualScroll:function(e){var t,n=e.x;o({currentTarget:null===(t=x.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:y,extraRender:function(e){var t=e.start,r=e.end,o=e.getSize,i=e.offsetY;if(r<0)return null;for(var l=a.filter(function(e){return 0===k(e,t)}),s=t,u=function(e){if(l=l.filter(function(t){return 0===k(t,e)}),!l.length)return s=e,1},d=t;d>=0&&!u(d);d-=1);for(var f=a.filter(function(e){return 1!==k(e,r)}),p=r,h=function(e){if(f=f.filter(function(t){return 1!==k(t,e)}),!f.length)return p=Math.max(e-1,r),1},m=r;m<w.length&&!h(m);m+=1);for(var v=[],g=function(e){if(!w[e])return 1;a.some(function(t){return k(t,e)>1})&&v.push(e)},b=s;b<=p;b+=1)g(b);var y=v.map(function(e){var t=w[e],r=c(t.record,e),a=o(r);return n.createElement(EK,{key:e,data:t,rowKey:r,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var n=e+t-1,i=c(w[n].record,n),a=o(r,i);return a.bottom-a.top}})});return y}},function(e,t,r){var o=c(e.record,t);return n.createElement(EK,{data:e,rowKey:o,index:t,style:r.style})}))});const $K=hW(jK);var PK=function(e,t){var r=t.ref,o=t.onScroll;return n.createElement($K,{ref:r,data:e,onScroll:o})};function NK(e,t){var r=e.data,o=e.columns,i=e.scroll,a=e.sticky,l=e.prefixCls,c=void 0===l?fK:l,s=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,p=i||{},h=p.x,m=p.y;"number"!=typeof h&&(h=1),"number"!=typeof m&&(m=500);var v=fo(function(e,t){return nn(d,e)||t}),g=fo(f),b=n.useMemo(function(){return{sticky:a,scrollY:m,listItemHeight:u,getComponent:v,onScroll:g}},[a,m,u,v,g]);return n.createElement(wK.Provider,{value:b},n.createElement(xK,Ve({},e,{className:Rr()(s,"".concat(c,"-virtual")),scroll:A(A({},i),{},{x:h}),components:A(A({},d),{},{body:null!=r&&r.length?PK:void 0}),columns:o,internalHooks:lW,tailor:!0,ref:t})))}var _K=n.forwardRef(NK);function IK(e){return pW(_K,e)}IK();const MK=e=>null,TK=e=>null;var AK=n.createContext(null),RK=n.createContext({}),DK=function(e){for(var t=e.prefixCls,r=e.level,o=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),l=[],c=0;c<r;c+=1)l.push(n.createElement("span",{key:c,className:Rr()(a,E(E({},"".concat(a,"-start"),o[c]),"".concat(a,"-end"),i[c]))}));return n.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},l)};const LK=n.memo(DK);function qK(e,t){return e[t]}var zK=["children"];function BK(e,t){return"".concat(e,"-").concat(t)}function HK(e,t){return null!=e?e:t}function FK(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function WK(e){return function e(t){return Dc(t).map(function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return ne(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=A({key:n},eo(r,zK)),a=e(o);return a.length&&(i.children=a),i}).filter(function(e){return e})}(e)}function KK(e,t,n){var r=FK(n),o=r._title,i=r.key,a=r.children,l=new Set(!0===t?[]:t),c=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(function(s,u){for(var d,f=BK(r?r.pos:"0",u),p=HK(s[i],f),h=0;h<o.length;h+=1){var m=o[h];if(void 0!==s[m]){d=s[m];break}}var v=Object.assign(Sc(s,[].concat(M(o),[i,a])),{title:d,key:p,parent:r,pos:f,children:null,data:s,isStart:[].concat(M(r?r.isStart:[]),[0===u]),isEnd:[].concat(M(r?r.isEnd:[]),[u===n.length-1])});return c.push(v),!0===t||l.has(p)?v.children=e(s[a]||[],v):v.children=[],v})}(e),c}function UK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=i||(arguments.length>2?arguments[2]:void 0),s={},u={},d={posEntities:s,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var r,o=("object"===O(n)?n:{externalGetKey:n})||{},i=o.childrenPropName,a=o.externalGetKey,l=FK(o.fieldNames),c=l.key,s=l.children,u=i||s;a?"string"==typeof a?r=function(e){return e[a]}:"function"==typeof a&&(r=function(e){return a(e)}):r=function(e,t){return HK(e[c],t)},function n(o,i,a,l){var c=o?o[u]:e,s=o?BK(a.pos,i):"0",d=o?[].concat(M(l),[o]):[];if(o){var f=r(o,s),p={node:o,index:i,pos:s,key:f,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(p)}c&&c.forEach(function(e,t){n(e,t,{node:o,pos:s,level:a?a.level+1:-1},d)})}(null)}(e,function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:l},f=HK(i,o);s[o]=c,u[f]=c,c.parent=s[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,d)},{externalGetKey:c,childrenPropName:a,fieldNames:l}),o&&o(d),d}function VK(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=qK(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function GK(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,h=A(A({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return ne(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var YK=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],XK="open",QK="close",ZK=function(e){var t,r,o,i=e.eventKey,a=e.className,l=e.style,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.isLeaf,f=e.isStart,p=e.isEnd,h=e.expanded,m=e.selected,v=e.checked,g=e.halfChecked,b=e.loading,y=e.domRef,x=e.active,w=e.data,S=e.onMouseMove,C=e.selectable,O=eo(e,YK),k=n.useContext(AK),j=n.useContext(RK),$=n.useRef(null),P=_(n.useState(!1),2),N=P[0],I=P[1],M=!!(k.disabled||e.disabled||null!==(t=j.nodeDisabled)&&void 0!==t&&t.call(j,w)),T=n.useMemo(function(){return!(!k.checkable||!1===e.checkable)&&k.checkable},[k.checkable,e.checkable]),R=function(t){M||T&&!e.disableCheckbox&&k.onNodeCheck(t,GK(e),!v)},D=n.useMemo(function(){return"boolean"==typeof C?C:k.selectable},[C,k.selectable]),L=function(t){k.onNodeClick(t,GK(e)),D?function(t){M||k.onNodeSelect(t,GK(e))}(t):R(t)},q=function(t){k.onNodeDoubleClick(t,GK(e))},z=function(t){k.onNodeMouseEnter(t,GK(e))},B=function(t){k.onNodeMouseLeave(t,GK(e))},H=function(t){k.onNodeContextMenu(t,GK(e))},F=n.useMemo(function(){return!(!k.draggable||k.draggable.nodeDraggable&&!k.draggable.nodeDraggable(w))},[k.draggable,w]),W=function(t){b||k.onNodeExpand(t,GK(e))},K=n.useMemo(function(){var e=(qK(k.keyEntities,i)||{}).children;return Boolean((e||[]).length)},[k.keyEntities,i]),U=n.useMemo(function(){return!1!==d&&(d||!k.loadData&&!K||k.loadData&&e.loaded&&!K)},[d,k.loadData,K,e.loaded]);n.useEffect(function(){b||"function"!=typeof k.loadData||!h||U||e.loaded||k.onNodeLoad(GK(e))},[b,k.loadData,k.onNodeLoad,h,U,e]);var V=n.useMemo(function(){var e;return null!==(e=k.draggable)&&void 0!==e&&e.icon?n.createElement("span",{className:"".concat(k.prefixCls,"-draggable-icon")},k.draggable.icon):null},[k.draggable]),G=function(t){var n=e.switcherIcon||k.switcherIcon;return"function"==typeof n?n(A(A({},e),{},{isLeaf:t})):n},Y=n.useMemo(function(){if(!T)return null;var t="boolean"!=typeof T?T:null;return n.createElement("span",{className:Rr()("".concat(k.prefixCls,"-checkbox"),E(E(E({},"".concat(k.prefixCls,"-checkbox-checked"),v),"".concat(k.prefixCls,"-checkbox-indeterminate"),!v&&g),"".concat(k.prefixCls,"-checkbox-disabled"),M||e.disableCheckbox)),onClick:R,role:"checkbox","aria-checked":g?"mixed":v,"aria-disabled":M||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)},[T,v,g,M,e.disableCheckbox,e.title]),X=n.useMemo(function(){return U?null:h?XK:QK},[U,h]),Q=n.useMemo(function(){return n.createElement("span",{className:Rr()("".concat(k.prefixCls,"-iconEle"),"".concat(k.prefixCls,"-icon__").concat(X||"docu"),E({},"".concat(k.prefixCls,"-icon_loading"),b))})},[k.prefixCls,X,b]),Z=n.useMemo(function(){var t=Boolean(k.draggable);return!e.disabled&&t&&k.dragOverNodeKey===i?k.dropIndicatorRender({dropPosition:k.dropPosition,dropLevelOffset:k.dropLevelOffset,indent:k.indent,prefixCls:k.prefixCls,direction:k.direction}):null},[k.dropPosition,k.dropLevelOffset,k.indent,k.prefixCls,k.direction,k.draggable,k.dragOverNodeKey,k.dropIndicatorRender]),J=n.useMemo(function(){var t,r,o=e.title,i=void 0===o?"---":o,a="".concat(k.prefixCls,"-node-content-wrapper");if(k.showIcon){var l=e.icon||k.icon;t=l?n.createElement("span",{className:Rr()("".concat(k.prefixCls,"-iconEle"),"".concat(k.prefixCls,"-icon__customize"))},"function"==typeof l?l(e):l):Q}else k.loadData&&b&&(t=Q);return r="function"==typeof i?i(w):k.titleRender?k.titleRender(w):i,n.createElement("span",{ref:$,title:"string"==typeof i?i:"",className:Rr()(a,"".concat(a,"-").concat(X||"normal"),E({},"".concat(k.prefixCls,"-node-selected"),!M&&(m||N))),onMouseEnter:z,onMouseLeave:B,onContextMenu:H,onClick:L,onDoubleClick:q},t,n.createElement("span",{className:"".concat(k.prefixCls,"-title")},r),Z)},[k.prefixCls,k.showIcon,e,k.icon,Q,k.titleRender,w,X,z,B,H,L,q]),ee=Xa(O,{aria:!0,data:!0}),te=(qK(k.keyEntities,i)||{}).level,ne=p[p.length-1],re=!M&&F,oe=k.draggingNodeKey===i,ie=void 0!==C?{"aria-selected":!!C}:void 0;return n.createElement("div",Ve({ref:y,role:"treeitem","aria-expanded":d?void 0:h,className:Rr()(a,"".concat(k.prefixCls,"-treenode"),(o={},E(E(E(E(E(E(E(E(E(E(o,"".concat(k.prefixCls,"-treenode-disabled"),M),"".concat(k.prefixCls,"-treenode-switcher-").concat(h?"open":"close"),!d),"".concat(k.prefixCls,"-treenode-checkbox-checked"),v),"".concat(k.prefixCls,"-treenode-checkbox-indeterminate"),g),"".concat(k.prefixCls,"-treenode-selected"),m),"".concat(k.prefixCls,"-treenode-loading"),b),"".concat(k.prefixCls,"-treenode-active"),x),"".concat(k.prefixCls,"-treenode-leaf-last"),ne),"".concat(k.prefixCls,"-treenode-draggable"),F),"dragging",oe),E(E(E(E(E(E(E(o,"drop-target",k.dropTargetKey===i),"drop-container",k.dropContainerKey===i),"drag-over",!M&&c),"drag-over-gap-top",!M&&s),"drag-over-gap-bottom",!M&&u),"filter-node",null===(r=k.filterTreeNode)||void 0===r?void 0:r.call(k,GK(e))),"".concat(k.prefixCls,"-treenode-leaf"),U))),style:l,draggable:re,onDragStart:re?function(t){t.stopPropagation(),I(!0),k.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:F?function(t){t.preventDefault(),t.stopPropagation(),k.onNodeDragEnter(t,e)}:void 0,onDragOver:F?function(t){t.preventDefault(),t.stopPropagation(),k.onNodeDragOver(t,e)}:void 0,onDragLeave:F?function(t){t.stopPropagation(),k.onNodeDragLeave(t,e)}:void 0,onDrop:F?function(t){t.preventDefault(),t.stopPropagation(),I(!1),k.onNodeDrop(t,e)}:void 0,onDragEnd:F?function(t){t.stopPropagation(),I(!1),k.onNodeDragEnd(t,e)}:void 0,onMouseMove:S},ie,ee),n.createElement(LK,{prefixCls:k.prefixCls,level:te,isStart:f,isEnd:p}),V,function(){if(U){var e=G(!0);return!1!==e?n.createElement("span",{className:Rr()("".concat(k.prefixCls,"-switcher"),"".concat(k.prefixCls,"-switcher-noop"))},e):null}var t=G(!1);return!1!==t?n.createElement("span",{onClick:W,className:Rr()("".concat(k.prefixCls,"-switcher"),"".concat(k.prefixCls,"-switcher_").concat(h?XK:QK))},t):null}(),Y,J)};ZK.isTreeNode=1;const JK=ZK;function eU(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function tU(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function nU(e){return e.split("-")}function rU(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(t){var r=t.key,o=t.children;n.push(r),e(o)})}(qK(t,e).children),n}function oU(e){if(e.parent){var t=nU(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function iU(e,t,n,r,o,i,a,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,m=p.height,v=(("rtl"===s?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,g=c.filter(function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length}),b=qK(l,n.eventKey);if(f<h+m/2){var y=a.findIndex(function(e){return e.key===b.key}),x=a[y<=0?0:y-1].key;b=qK(l,x)}var w=b.key,S=b,C=b.key,O=0,k=0;if(!g.includes(w))for(var E=0;E<v&&oU(b);E+=1)b=b.parent,k+=1;var j,$=t.data,P=b.node,N=!0;return j=nU(b.pos),0===Number(j[j.length-1])&&0===b.level&&f<h+m/2&&i({dragNode:$,dropNode:P,dropPosition:-1})&&b.key===n.eventKey?O=-1:(S.children||[]).length&&g.includes(C)?i({dragNode:$,dropNode:P,dropPosition:0})?O=0:N=!1:0===k?v>-1.5?i({dragNode:$,dropNode:P,dropPosition:1})?O=1:N=!1:i({dragNode:$,dropNode:P,dropPosition:0})?O=0:i({dragNode:$,dropNode:P,dropPosition:1})?O=1:N=!1:i({dragNode:$,dropNode:P,dropPosition:1})?O=1:N=!1,{dropPosition:O,dropLevelOffset:k,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:C,dropContainerKey:0===O?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:N}}function aU(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function lU(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==O(e))return ne(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function cU(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=qK(t,e);if(o){n.add(e);var i=o.parent;o.node.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(e){r(e)}),M(n)}function sU(e,t){var n=new Set;return e.forEach(function(e){t.has(e)||n.add(e)}),n}function uU(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function dU(e,t,n,r){var o,i=[];o=r||uU;var a,l=new Set(e.filter(function(e){var t=!!qK(n,e);return t||i.push(e),t})),c=new Map,s=0;return Object.keys(n).forEach(function(e){var t=n[e],r=t.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(t),s=Math.max(s,r)}),ne(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),a=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach(function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter(function(e){return!r(e.node)}).forEach(function(e){o.add(e.key)})});for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)}),a&&o.add(t.key),c&&i.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(sU(i,o))}}(l,c,s,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach(function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||l.filter(function(e){return!o(e.node)}).forEach(function(e){i.delete(e.key)})});a=new Set;for(var c=new Set,s=r;s>=0;s-=1)(n.get(s)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),l||!n&&!a.has(t)||(l=!0)}),r||i.delete(t.key),l&&a.add(t.key),c.add(t.key)}});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(sU(a,i))}}(l,t.halfCheckedKeys,c,s,o),a}const fU=e=>"object"!=typeof e&&"function"!=typeof e||null===e;const pU={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var hU=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:pU}))}; | |
| 139 | +/** */const mU=n.forwardRef(hU),vU=(e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)},gU=(e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)},bU=n.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),yU=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:c,fontSize:s,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:a,color:l,lineHeight:$e(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:s,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},xU=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},wU=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],SU=ql("Layout",e=>[yU(e)],xU,{deprecatedTokens:wU}),CU=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:s,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:h,lightTriggerBg:m,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:$e(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:s,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${$e(f)} ${$e(f)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${$e(f)} 0 0 ${$e(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:h,background:m},[`${t}-zero-width-trigger`]:{color:h,background:m,border:`1px solid ${v}`,borderInlineStart:0}}}}},OU=ql(["Layout","Sider"],e=>[CU(e)],xU,{deprecatedTokens:wU});var kU=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const EU={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},jU=n.createContext({}),$U=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),PU=n.forwardRef((e,t)=>{const{prefixCls:r,className:o,trigger:i,children:a,defaultCollapsed:l=!1,theme:c="dark",style:s={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:v,onBreakpoint:g}=e,b=kU(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=(0,n.useContext)(bU),[w,S]=(0,n.useState)("collapsed"in e?e.collapsed:l),[C,O]=(0,n.useState)(!1);(0,n.useEffect)(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const k=(t,n)=>{"collapsed"in e||S(t),null==v||v(t,n)},{getPrefixCls:E,direction:j}=(0,n.useContext)(x),$=E("layout-sider",r),[P,N,_]=OU($),I=(0,n.useRef)(null);I.current=e=>{O(e.matches),null==g||g(e.matches),w!==e.matches&&k(e.matches,"responsive")},(0,n.useEffect)(()=>{function e(e){var t;return null===(t=I.current)||void 0===t?void 0:t.call(I,e)}let t;return void 0!==(null===window||void 0===window?void 0:window.matchMedia)&&m&&m in EU&&(t=window.matchMedia(`screen and (max-width: ${EU[m]})`),vU(t,e),e(t)),()=>{gU(t,e)}},[m]),(0,n.useEffect)(()=>{const e=$U("ant-sider-");return y.addSider(e),()=>y.removeSider(e)},[]);const M=()=>{k(!w,"clickTrigger")},T=Sc(b,["collapsed"]),A=w?p:f,R=(e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e))(A)?`${A}px`:String(A),D=0===parseFloat(String(p||0))?n.createElement("span",{onClick:M,className:Rr()(`${$}-zero-width-trigger`,`${$}-zero-width-trigger-${d?"right":"left"}`),style:h},i||n.createElement(mU,null)):null,L="rtl"===j==!d,q={expanded:L?n.createElement(Rs,null):n.createElement(lT,null),collapsed:L?n.createElement(lT,null):n.createElement(Rs,null)}[w?"collapsed":"expanded"],z=null!==i?D||n.createElement("div",{className:`${$}-trigger`,onClick:M,style:{width:R}},i||q):null,B=Object.assign(Object.assign({},s),{flex:`0 0 ${R}`,maxWidth:R,minWidth:R,width:R}),H=Rr()($,`${$}-${c}`,{[`${$}-collapsed`]:!!w,[`${$}-has-trigger`]:u&&null!==i&&!D,[`${$}-below`]:!!C,[`${$}-zero-width`]:0===parseFloat(R)},o,N,_),F=n.useMemo(()=>({siderCollapsed:w}),[w]);return P(n.createElement(jU.Provider,{value:F},n.createElement("aside",Object.assign({className:H},T,{style:B,ref:t}),n.createElement("div",{className:`${$}-children`},a),u||C&&D?z:null)))});const NU=PU,_U=(0,n.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var IU=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const MU=e=>{const{prefixCls:t,className:r,dashed:o}=e,i=IU(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=n.useContext(x),l=a("menu",t),c=Rr()({[`${l}-item-divider-dashed`]:!!o},r);return n.createElement(ZD,Object.assign({className:c},i))},TU=e=>{var t;const{className:r,children:o,icon:i,title:a,danger:l,extra:c}=e,{prefixCls:s,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=n.useContext(_U),{siderCollapsed:h}=n.useContext(jU);let m=a;void 0===a?m=u?o:"":!1===a&&(m="");const v={title:m};h||p||(v.title=null,v.open=!1);const g=Dc(o).length;let b=n.createElement(AD,Object.assign({},Sc(e,["title","icon","danger"]),{className:Rr()({[`${s}-item-danger`]:l,[`${s}-item-only-child`]:1===(i?g+1:g)},r),title:"string"==typeof a?a:void 0}),Ec(i,{className:Rr()(n.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=null==o?void 0:o[0],r=n.createElement("span",{className:Rr()(`${s}-title-content`,{[`${s}-title-content-with-extra`]:!!c||0===c})},o);return(!i||n.isValidElement(o)&&"span"===o.type)&&o&&e&&u&&"string"==typeof t?n.createElement("div",{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):r})(p));return f||(b=n.createElement(om,Object.assign({},v,{placement:"rtl"===d?"left":"right",classNames:{root:`${s}-inline-collapsed-tooltip`}}),b)),b};var AU=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const RU=n.createContext(null),DU=n.forwardRef((e,t)=>{const{children:r}=e,o=AU(e,["children"]),i=n.useContext(RU),a=n.useMemo(()=>Object.assign(Object.assign({},i),o),[i,o.prefixCls,o.mode,o.selectable,o.rootClassName]),l=function(e){return Zr(e)&&Qr(e)}(r),c=Xr(t,l?Jr(r):null);return n.createElement(RU.Provider,{value:a},n.createElement(kh,{space:!0},l?n.cloneElement(r,{ref:c}):r))}),LU=RU,qU=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${$e(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},zU=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${$e(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${$e(t)})`}}}}),BU=e=>Object.assign({},ki(e)),HU=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:c,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:h,motionEaseOut:m,itemPaddingInline:v,motionDurationMid:g,itemHoverColor:b,lineType:y,colorSplit:x,itemDisabledColor:w,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:O,dangerItemActiveBg:k,dangerItemSelectedBg:E,popupBg:j,itemHoverBg:$,itemActiveBg:P,menuSubMenuBg:N,horizontalItemSelectedColor:_,horizontalItemSelectedBg:I,horizontalItemBorderRadius:M,horizontalItemHoverBg:T}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},BU(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},BU(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:P}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:P}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:O},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:j},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:j},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${$e(u)} solid transparent`,transition:`border-color ${p} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:u,borderBottomColor:_}},"&-selected":{color:_,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:u,borderBottomColor:_}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${$e(f)} ${y} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${$e(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${m}`,`opacity ${g} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:O}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${h}`,`opacity ${g} ${h}`].join(",")}}}}}},FU=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:$e(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:$e(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},WU=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:s,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:v}=e,g={height:r,lineHeight:$e(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},FU(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},FU(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${$e(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:g}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${$e(e.calc(v).div(2).equal())} - ${$e(s)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:$e(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Ci),{paddingInline:p})}}]},KU=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},UU=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${$e(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${$e(a)})`}}}}},VU=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:m,lineType:v,groupTitleLineHeight:g,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${$e(l)} ${$e(c)}`,fontSize:b,lineHeight:g,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),KU(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${$e(e.calc(r).mul(2).equal())} ${$e(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},KU(e)),UU(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),UU(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${$e(m)})`},"&::after":{transform:`rotate(45deg) translateX(${$e(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${$e(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${$e(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${$e(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},GU=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:h,controlItemBgActive:m,colorBgTextHover:v,controlHeightLG:g,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:w,fontSize:S,controlHeightSM:C,fontSizeLG:O,colorTextLightSolid:k,colorErrorHover:E}=e,j=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,$=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,P=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,N=new Pn(k).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:f,itemActiveBg:m,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:j,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:$,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:g,groupTitleLineHeight:b,collapsedWidth:2*g,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*g+"px",iconSize:S,iconMarginInlineEnd:C-S,collapsedIconSize:O,groupTitleFontSize:S,darkItemDisabledColor:new Pn(k).setA(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:k,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:j?`calc(100% + ${$}px)`:`calc(100% - ${2*P}px)`}},YU=(e,t=e,n=!0)=>{const r=ql("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:h,darkDangerItemHoverColor:m,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:g,popupBg:b,darkPopupBg:y}=e,x=e.calc(r).div(7).mul(5).equal(),w=$l(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),S=$l(w,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:i,dangerItemHoverColor:m,dangerItemSelectedColor:v,dangerItemActiveBg:g,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[VU(w),qU(w),WU(w),HU(w,"light"),HU(S,"dark"),zU(w),tu(w),Qw(w,"slide-up"),Qw(w,"slide-down"),Kh(w,"zoom-big")]},GU,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}});return r(e,t)},XU=e=>{var t;const{popupClassName:r,icon:o,title:i,theme:a}=e,l=n.useContext(_U),{prefixCls:c,inlineCollapsed:s,theme:u}=l,d=JR();let f;if(o){const e=n.isValidElement(i)&&"span"===i.type;f=n.createElement(n.Fragment,null,Ec(o,{className:Rr()(n.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),e?i:n.createElement("span",{className:`${c}-title-content`},i))}else f=s&&!d.length&&i&&"string"==typeof i?n.createElement("div",{className:`${c}-inline-collapsed-noicon`},i.charAt(0)):n.createElement("span",{className:`${c}-title-content`},i);const p=n.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[h]=vl("Menu");return n.createElement(_U.Provider,{value:p},n.createElement(QD,Object.assign({},Sc(e,["icon"]),{title:f,popupClassName:Rr()(c,r,`${c}-${a||u}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var QU=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ZU(e){return null===e||!1===e}const JU={item:TU,submenu:XU,divider:MU},eV=(0,n.forwardRef)((e,t)=>{var r;const o=n.useContext(LU),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:s}=n.useContext(x),u=a(),{prefixCls:d,className:f,style:p,theme:h="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:g,siderCollapsed:b,rootClassName:y,mode:w,selectable:S,onClick:C,overflowedIndicatorPopupClassName:O}=e,k=Sc(QU(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(r=i.validator)||void 0===r||r.call(i,{mode:w});const E=fo((...e)=>{var t;null==C||C.apply(void 0,e),null===(t=i.onClick)||void 0===t||t.call(i)}),j=i.mode||w,$=null!=S?S:i.selectable,P=null!=g?g:b,N={horizontal:{motionName:`${u}-slide-up`},inline:Js(u),other:{motionName:`${u}-zoom-big`}},_=a("menu",d||i.prefixCls),I=ul(_),[M,T,A]=YU(_,I,!o),R=Rr()(`${_}-${h}`,null==s?void 0:s.className,f),D=n.useMemo(()=>{var e,t;if("function"==typeof m||ZU(m))return m||null;if("function"==typeof i.expandIcon||ZU(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||ZU(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const r=null!==(e=null!=m?m:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==s?void 0:s.expandIcon;return Ec(r,{className:Rr()(`${_}-submenu-expand-icon`,n.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:void 0)})},[m,null==i?void 0:i.expandIcon,null==s?void 0:s.expandIcon,_]),L=n.useMemo(()=>({prefixCls:_,inlineCollapsed:P||!1,direction:c,firstLevel:!0,theme:h,mode:j,disableMenuItemTitleTooltip:v}),[_,P,c,v,h]);return M(n.createElement(LU.Provider,{value:null},n.createElement(_U.Provider,{value:L},n.createElement(sL,Object.assign({getPopupContainer:l,overflowedIndicator:n.createElement(yR,null),overflowedIndicatorPopupClassName:Rr()(_,`${_}-${h}`,O),mode:j,selectable:$,onClick:E},k,{inlineCollapsed:P,style:Object.assign(Object.assign({},null==s?void 0:s.style),p),className:R,prefixCls:_,direction:c,defaultMotions:N,expandIcon:D,ref:t,rootClassName:Rr()(y,T,i.rootClassName,A,I),_internalComponents:JU})))))}),tV=eV,nV=(0,n.forwardRef)((e,t)=>{const r=(0,n.useRef)(null),o=n.useContext(jU);return(0,n.useImperativeHandle)(t,()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}})),n.createElement(tV,Object.assign({ref:r},e,o))});nV.Item=TU,nV.SubMenu=XU,nV.Divider=MU,nV.ItemGroup=tL;const rV=nV,oV=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},iV=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Hw},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Ww},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Fw},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Kw}}},Nh(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Oi(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ei(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${$e(s)} ${$e(h)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${$e(s)} ${$e(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ei(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${$e(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${$e(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Qw(e,"slide-up"),Qw(e,"slide-down"),iS(e,"move-up"),iS(e,"move-down"),Kh(e,"zoom-big")]]},aV=ql("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=$l(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[iV(i),oV(i)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},$h({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Eh(e)),{resetStyle:!1}),lV=e=>{var t;const{menu:r,arrow:o,prefixCls:i,children:a,trigger:l,disabled:c,dropdownRender:s,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:p,overlayStyle:h,open:m,onOpenChange:v,visible:g,onVisibleChange:b,mouseEnterDelay:y=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:S=!0,placement:C="",overlay:O,transitionName:k,destroyOnHidden:E,destroyPopupOnHide:j}=e,{getPopupContainer:$,getPrefixCls:P,direction:N,dropdown:_}=n.useContext(x),I=u||s;dn("Dropdown");const M=n.useMemo(()=>{const e=P();return void 0!==k?k:C.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[P,C,k]),T=n.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:"rtl"===N?"bottomRight":"bottomLeft",[C,N]),A=P("dropdown",i),R=ul(A),[D,L,q]=aV(A,R),[,z]=yi(),B=n.Children.only(fU(a)?n.createElement("span",null,a):a),H=Ec(B,{className:Rr()(`${A}-trigger`,{[`${A}-rtl`]:"rtl"===N},B.props.className),disabled:null!==(t=B.props.disabled)&&void 0!==t?t:c}),F=c?[]:l,W=!!(null==F?void 0:F.includes("contextMenu")),[K,U]=mo(!1,{value:null!=m?m:g}),V=fo(e=>{null==v||v(e,{source:"trigger"}),null==b||b(e),U(e)}),G=Rr()(f,p,L,q,R,null==_?void 0:_.className,{[`${A}-rtl`]:"rtl"===N}),Y=Th({arrowPointAtCenter:"object"==typeof o&&o.pointAtCenter,autoAdjustOverflow:S,offset:z.marginXXS,arrowWidth:o?z.sizePopupArrow:0,borderRadius:z.borderRadius}),X=n.useCallback(()=>{(null==r?void 0:r.selectable)&&(null==r?void 0:r.multiple)||(null==v||v(!1,{source:"menu"}),U(!1))},[null==r?void 0:r.selectable,null==r?void 0:r.multiple]),[Q,Z]=vl("Dropdown",null==h?void 0:h.zIndex);let J=n.createElement(HR,Object.assign({alignPoint:W},Sc(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:w,visible:K,builtinPlacements:Y,arrow:!!o,overlayClassName:G,prefixCls:A,getPopupContainer:d||$,transitionName:M,trigger:F,overlay:()=>{let e;return e=(null==r?void 0:r.items)?n.createElement(rV,Object.assign({},r)):"function"==typeof O?O():O,I&&(e=I(e)),e=n.Children.only("string"==typeof e?n.createElement("span",null,e):e),n.createElement(DU,{prefixCls:`${A}-menu`,rootClassName:Rr()(q,R),expandIcon:n.createElement("span",{className:`${A}-menu-submenu-arrow`},"rtl"===N?n.createElement(lT,{className:`${A}-menu-submenu-arrow-icon`}):n.createElement(Rs,{className:`${A}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:({mode:e})=>{}},e)},placement:T,onVisibleChange:V,overlayStyle:Object.assign(Object.assign(Object.assign({},null==_?void 0:_.style),h),{zIndex:Q}),autoDestroy:null!=E?E:j}),H);return Q&&(J=n.createElement(dl.Provider,{value:Z},J)),D(J)},cV=Kv(lV,"align",void 0,"dropdown",e=>e);lV._InternalPanelDoNotUseOrYouWillBeFired=e=>n.createElement(cV,Object.assign({},e),n.createElement("span",null));const sV=lV;var uV=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const dV=e=>{const{getPopupContainer:t,getPrefixCls:r,direction:o}=n.useContext(x),{prefixCls:i,type:a="default",danger:l,disabled:c,loading:s,onClick:u,htmlType:d,children:f,className:p,menu:h,arrow:m,autoFocus:v,overlay:g,trigger:b,align:y,open:w,onOpenChange:S,placement:C,getPopupContainer:O,href:k,icon:E=n.createElement(yR,null),title:j,buttonsRender:$=e=>e,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:_,overlayStyle:I,destroyOnHidden:M,destroyPopupOnHide:T,dropdownRender:A,popupRender:R}=e,D=uV(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),L=r("dropdown",i),q=`${L}-button`,z={menu:h,arrow:m,autoFocus:v,align:y,disabled:c,trigger:c?[]:b,onOpenChange:S,getPopupContainer:O||t,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:_,overlayStyle:I,destroyOnHidden:M,popupRender:R||A},{compactSize:B,compactItemClassnames:H}=Wc(L,o),F=Rr()(q,H,p);"destroyPopupOnHide"in e&&(z.destroyPopupOnHide=T),"overlay"in e&&(z.overlay=g),"open"in e&&(z.open=w),z.placement="placement"in e?C:"rtl"===o?"bottomLeft":"bottomRight";const W=n.createElement(od,{type:a,danger:l,disabled:c,loading:s,onClick:u,htmlType:d,href:k,title:j},f),K=n.createElement(od,{type:a,danger:l,icon:E}),[U,V]=$([W,K]);return n.createElement(UF.Compact,Object.assign({className:F,size:B,block:!0},D),U,n.createElement(sV,Object.assign({},z),V))};dV.__ANT_BUTTON=!0;const fV=dV,pV=sV;pV.Button=fV;const hV=pV,mV={},vV="SELECT_ALL",gV="SELECT_INVERT",bV="SELECT_NONE",yV=[],xV=(e,t)=>{let n=[];return(t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat(M(n),M(xV(e,t[e]))))}),n},wV=(e,t)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:o,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:l,onSelect:c,onSelectAll:s,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:h,selections:m,fixed:v,renderCell:g,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:x,data:w,pageData:S,getRecordByKey:C,getRowKey:O,expandType:k,childrenColumnName:E,locale:j,getPopupContainer:$}=e,P=dn("Table"),[N,_]=function(e){const[t,r]=(0,n.useState)(null),o=(0,n.useCallback)((n,o,i)=>{const a=null!=t?t:n,l=Math.min(a||0,n),c=Math.max(a||0,n),s=o.slice(l,c+1).map(t=>e(t)),u=s.some(e=>!i.has(e)),d=[];return s.forEach(e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))}),r(u?c:null),d},[t]);return[o,e=>{r(e)}]}(e=>e),[I,T]=mo(o||i||yV,{value:o}),A=n.useRef(new Map),R=(0,n.useCallback)(e=>{if(r){const t=new Map;e.forEach(e=>{let n=C(e);!n&&A.current.has(e)&&(n=A.current.get(e)),t.set(e,n)}),A.current=t}},[C,r]);n.useEffect(()=>{R(I)},[I]);const D=(0,n.useMemo)(()=>xV(E,S),[E,S]),{keyEntities:L}=(0,n.useMemo)(()=>{if(y)return{keyEntities:null};let e=w;if(r){const t=new Set(D.map((e,t)=>O(e,t))),n=Array.from(A.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(M(e),M(n))}return UK(e,{externalGetKey:O,childrenPropName:E})},[w,O,y,E,r,D]),q=(0,n.useMemo)(()=>{const e=new Map;return D.forEach((t,n)=>{const r=O(t,n),o=(a?a(t):null)||{};e.set(r,o)}),e},[D,O,a]),z=(0,n.useCallback)(e=>{const t=O(e);let n;return n=q.has(t)?q.get(O(e)):a?a(e):void 0,!!(null==n?void 0:n.disabled)},[q,O]),[B,H]=(0,n.useMemo)(()=>{if(y)return[I||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=dU(I,!0,L,z);return[e||[],t]},[I,y,L,z]),F=(0,n.useMemo)(()=>{const e="radio"===h?B.slice(0,1):B;return new Set(e)},[B,h]),W=(0,n.useMemo)(()=>"radio"===h?new Set:new Set(H),[H,h]);n.useEffect(()=>{t||T(yV)},[!!t]);const K=(0,n.useCallback)((e,t)=>{let n,o;R(e),r?(n=e,o=e.map(e=>A.current.get(e))):(n=[],o=[],e.forEach(e=>{const t=C(e);void 0!==t&&(n.push(e),o.push(t))})),T(n),null==l||l(n,o,{type:t})},[T,C,l,r]),U=(0,n.useCallback)((e,t,n,r)=>{if(c){const o=n.map(e=>C(e));c(C(e),t,o,r)}K(n,"single")},[c,C,K]),V=(0,n.useMemo)(()=>{if(!m||b)return null;return(!0===m?[vV,gV,bV]:m).map(e=>e===vV?{key:"all",text:j.selectionAll,onSelect(){K(w.map((e,t)=>O(e,t)).filter(e=>{const t=q.get(e);return!(null==t?void 0:t.disabled)||F.has(e)}),"all")}}:e===gV?{key:"invert",text:j.selectInvert,onSelect(){const e=new Set(F);S.forEach((t,n)=>{const r=O(t,n),o=q.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});const t=Array.from(e);u&&(P.deprecated(!1,"onSelectInvert","onChange"),u(t)),K(t,"invert")}}:e===bV?{key:"none",text:j.selectNone,onSelect(){null==d||d(),K(Array.from(F).filter(e=>{const t=q.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:(...t)=>{var n,r;null===(r=e.onSelect)||void 0===r||(n=r).call.apply(n,[e].concat(t)),_(null)}}))},[m,F,S,O,u,K]),G=(0,n.useCallback)(e=>{var r;if(!t)return e.filter(e=>e!==mV);let o=M(e);const i=new Set(F),a=D.map(O).filter(e=>!q.get(e).disabled),l=a.every(e=>i.has(e)),c=a.some(e=>i.has(e)),u=()=>{const e=[];l?a.forEach(t=>{i.delete(t),e.push(t)}):a.forEach(t=>{i.has(t)||(i.add(t),e.push(t))});const t=Array.from(i);null==s||s(!l,t.map(e=>C(e)),e.map(e=>C(e))),K(t,"all"),_(null)};let d,w,S;if("radio"!==h){let e;if(V){const t={getPopupContainer:$,items:V.map((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(a)},label:r}})};e=n.createElement("div",{className:`${x}-selection-extra`},n.createElement(hV,{menu:t,getPopupContainer:$},n.createElement("span",null,n.createElement(RS,null))))}const t=D.map((e,t)=>{const n=O(e,t),r=q.get(n)||{};return Object.assign({checked:i.has(n)},r)}).filter(({disabled:e})=>e),r=!!t.length&&t.length===D.length,o=r&&t.every(({checked:e})=>e),s=r&&t.some(({checked:e})=>e);w=n.createElement(sP,{checked:r?o:!!D.length&&l,indeterminate:r?!o&&s:!l&&c,onChange:u,disabled:0===D.length||r,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),d=!b&&n.createElement("div",{className:`${x}-selection`},w,e)}S="radio"===h?(e,t,r)=>{const o=O(t,r),a=i.has(o),l=q.get(o);return{node:n.createElement(AM,Object.assign({},l,{checked:a,onClick:e=>{var t;e.stopPropagation(),null===(t=null==l?void 0:l.onClick)||void 0===t||t.call(l,e)},onChange:e=>{var t;i.has(o)||U(o,!0,[o],e.nativeEvent),null===(t=null==l?void 0:l.onChange)||void 0===t||t.call(l,e)}})),checked:a}}:(e,t,r)=>{var o;const l=O(t,r),c=i.has(l),s=W.has(l),u=q.get(l);let d;return d="nest"===k?s:null!==(o=null==u?void 0:u.indeterminate)&&void 0!==o?o:s,{node:n.createElement(sP,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null==u?void 0:u.onClick)||void 0===t||t.call(u,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:r}=n,o=a.findIndex(e=>e===l),s=B.some(e=>a.includes(e));if(r&&y&&s){const e=N(o,a,i),t=Array.from(i);null==f||f(!c,t.map(e=>C(e)),e.map(e=>C(e))),K(t,"multiple")}else{const e=B;if(y){const t=c?eU(e,l):tU(e,l);U(l,!c,t,n)}else{const t=dU([].concat(M(e),[l]),!0,L,z),{checkedKeys:r,halfCheckedKeys:o}=t;let i=r;if(c){const e=new Set(r);e.delete(l),i=dU(Array.from(e),{checked:!1,halfCheckedKeys:o},L,z).checkedKeys}U(l,!c,i,n)}}_(c?null:o),null===(t=null==u?void 0:u.onChange)||void 0===t||t.call(u,e)}})),checked:c}};if(!o.includes(mV))if(0===o.findIndex(e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[HW])||void 0===t?void 0:t.columnType)})){const[e,...t]=o;o=[e,mV].concat(M(t))}else o=[mV].concat(M(o));const E=o.indexOf(mV);o=o.filter((e,t)=>e!==mV||t===E);const j=o[E-1],P=o[E+1];let I=v;void 0===I&&(void 0!==(null==P?void 0:P.fixed)?I=P.fixed:void 0!==(null==j?void 0:j.fixed)&&(I=j.fixed)),I&&j&&"EXPAND_COLUMN"===(null===(r=j[HW])||void 0===r?void 0:r.columnType)&&void 0===j.fixed&&(j.fixed=I);const T=Rr()(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:m&&"checkbox"===h}),A={fixed:I,width:p,className:`${x}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(w):t.columnTitle:d,render:(e,t,n)=>{const{node:r,checked:o}=S(e,t,n);return g?g(o,t,n,r):r},onCell:t.onCell,align:t.align,[HW]:{className:T}};return o.map(e=>e===mV?A:e)},[O,D,t,B,F,W,p,V,k,q,f,U,z]);return[G,F]};function SV(e,t){return(0,n.useImperativeHandle)(e,()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=n)._antProxy=r._antProxy||{},Object.keys(o).forEach(e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}}),r);var r,o})}function CV(e){return null!=e&&e===e.window}const OV=e=>{var t,n;if("undefined"==typeof window)return 0;let r=0;return CV(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!CV(e)&&"number"!=typeof r&&(r=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),r};function kV(){const[,e]=n.useReducer(e=>e+1,0);return e}const EV=["xxl","xl","lg","md","sm","xs"],jV=()=>{const[,e]=yi(),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(EV).reverse();return n.forEach((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}}),e})(e));return n.useMemo(()=>{const e=new Map;let n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{const n=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},r),{[e]:t}))},o=window.matchMedia(t);vU(o,n),this.matchHandlers[t]={mql:o,listener:n},n(o)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];gU(null==t?void 0:t.mql,null==t?void 0:t.listener)}),e.clear()}}},[e])};const $V=function(e=!0,t={}){const r=(0,n.useRef)(t),o=kV(),i=jV();return Re(()=>{const t=i.subscribe(t=>{r.current=t,e&&o()});return()=>i.unsubscribe(t)},[]),r.current};const PV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var NV=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:PV}))}; | |
| 140 | +/** */const _V=n.forwardRef(NV);const IV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var MV=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:IV}))}; | |
| 141 | +/** */const TV=n.forwardRef(MV);const AV={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:"页码"};var RV=[10,20,50,100];const DV=function(e){var t=e.pageSizeOptions,r=void 0===t?RV:t,o=e.locale,i=e.changeSize,a=e.pageSize,l=e.goButton,c=e.quickGo,s=e.rootPrefixCls,u=e.disabled,d=e.buildOptionText,f=e.showSizeChanger,p=e.sizeChangerRender,h=_(n.useState(""),2),m=h[0],v=h[1],g=function(){return!m||Number.isNaN(m)?void 0:Number(m)},b="function"==typeof d?d:function(e){return"".concat(e," ").concat(o.items_per_page)},y=function(e){""!==m&&(e.keyCode!==Va.ENTER&&"click"!==e.type||(v(""),null==c||c(g())))},x="".concat(s,"-options");if(!f&&!c)return null;var w=null,S=null,C=null;return f&&p&&(w=p({disabled:u,size:a,onSizeChange:function(e){null==i||i(Number(e))},"aria-label":o.page_size,className:"".concat(x,"-size-changer"),options:(r.some(function(e){return e.toString()===a.toString()})?r:r.concat([a]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})).map(function(e){return{label:b(e),value:e}})})),c&&(l&&(C="boolean"==typeof l?n.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:u,className:"".concat(x,"-quick-jumper-button")},o.jump_to_confirm):n.createElement("span",{onClick:y,onKeyUp:y},l)),S=n.createElement("div",{className:"".concat(x,"-quick-jumper")},o.jump_to,n.createElement("input",{disabled:u,type:"text",value:m,onChange:function(e){v(e.target.value)},onKeyUp:y,onBlur:function(e){l||""===m||(v(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(s,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(s,"-item"))>=0)||null==c||c(g()))},"aria-label":o.page}),o.page,C)),n.createElement("li",{className:x},w,S)};const LV=function(e){var t=e.rootPrefixCls,r=e.page,o=e.active,i=e.className,a=e.showTitle,l=e.onClick,c=e.onKeyPress,s=e.itemRender,u="".concat(t,"-item"),d=Rr()(u,"".concat(u,"-").concat(r),E(E({},"".concat(u,"-active"),o),"".concat(u,"-disabled"),!r),i),f=s(r,"page",n.createElement("a",{rel:"nofollow"},r));return f?n.createElement("li",{title:a?String(r):null,className:d,onClick:function(){l(r)},onKeyDown:function(e){c(e,l,r)},tabIndex:0},f):null};var qV=function(e,t,n){return n};function zV(){}function BV(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function HV(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}const FV=function(e){var t=e.prefixCls,r=void 0===t?"rc-pagination":t,o=e.selectPrefixCls,i=void 0===o?"rc-select":o,a=e.className,l=e.current,c=e.defaultCurrent,s=void 0===c?1:c,u=e.total,d=void 0===u?0:u,f=e.pageSize,p=e.defaultPageSize,h=void 0===p?10:p,m=e.onChange,v=void 0===m?zV:m,g=e.hideOnSinglePage,b=e.align,y=e.showPrevNextJumpers,x=void 0===y||y,w=e.showQuickJumper,S=e.showLessItems,C=e.showTitle,k=void 0===C||C,j=e.onShowSizeChange,$=void 0===j?zV:j,P=e.locale,N=void 0===P?AV:P,I=e.style,M=e.totalBoundaryShowSizeChanger,T=void 0===M?50:M,R=e.disabled,D=e.simple,L=e.showTotal,q=e.showSizeChanger,z=void 0===q?d>T:q,B=e.sizeChangerRender,H=e.pageSizeOptions,F=e.itemRender,W=void 0===F?qV:F,K=e.jumpPrevIcon,U=e.jumpNextIcon,V=e.prevIcon,G=e.nextIcon,Y=n.useRef(null),X=_(mo(10,{value:f,defaultValue:h}),2),Q=X[0],Z=X[1],J=_(mo(1,{value:l,defaultValue:s,postState:function(e){return Math.max(1,Math.min(e,HV(void 0,Q,d)))}}),2),ee=J[0],te=J[1],ne=_(n.useState(ee),2),re=ne[0],oe=ne[1];(0,n.useEffect)(function(){oe(ee)},[ee]);var ie=Math.max(1,ee-(S?3:5)),ae=Math.min(HV(void 0,Q,d),ee+(S?3:5));function le(t,o){var i=t||n.createElement("button",{type:"button","aria-label":o,className:"".concat(r,"-item-link")});return"function"==typeof t&&(i=n.createElement(t,A({},e))),i}function ce(e){var t=e.target.value,n=HV(void 0,Q,d);return""===t?t:Number.isNaN(Number(t))?re:t>=n?n:Number(t)}var se=d>Q&&w;function ue(e){var t=ce(e);switch(t!==re&&oe(t),e.keyCode){case Va.ENTER:de(t);break;case Va.UP:de(t-1);break;case Va.DOWN:de(t+1)}}function de(e){if(function(e){return BV(e)&&e!==ee&&BV(d)&&d>0}(e)&&!R){var t=HV(void 0,Q,d),n=e;return e>t?n=t:e<1&&(n=1),n!==re&&oe(n),te(n),null==v||v(n,Q),n}return ee}var fe=ee>1,pe=ee<HV(void 0,Q,d);function he(){fe&&de(ee-1)}function me(){pe&&de(ee+1)}function ve(){de(ie)}function ge(){de(ae)}function be(e,t){if("Enter"===e.key||e.charCode===Va.ENTER||e.keyCode===Va.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}}function ye(e){"click"!==e.type&&e.keyCode!==Va.ENTER||de(re)}var xe=null,we=Xa(e,{aria:!0,data:!0}),Se=L&&n.createElement("li",{className:"".concat(r,"-total-text")},L(d,[0===d?0:(ee-1)*Q+1,ee*Q>d?d:ee*Q])),Ce=null,Oe=HV(void 0,Q,d);if(g&&d<=Q)return null;var ke=[],Ee={rootPrefixCls:r,onClick:de,onKeyPress:be,showTitle:k,itemRender:W,page:-1},je=ee-1>0?ee-1:0,$e=ee+1<Oe?ee+1:Oe,Pe=w&&w.goButton,Ne="object"===O(D)?D.readOnly:!D,_e=Pe,Ie=null;D&&(Pe&&(_e="boolean"==typeof Pe?n.createElement("button",{type:"button",onClick:ye,onKeyUp:ye},N.jump_to_confirm):n.createElement("span",{onClick:ye,onKeyUp:ye},Pe),_e=n.createElement("li",{title:k?"".concat(N.jump_to).concat(ee,"/").concat(Oe):null,className:"".concat(r,"-simple-pager")},_e)),Ie=n.createElement("li",{title:k?"".concat(ee,"/").concat(Oe):null,className:"".concat(r,"-simple-pager")},Ne?re:n.createElement("input",{type:"text","aria-label":N.jump_to,value:re,disabled:R,onKeyDown:function(e){e.keyCode!==Va.UP&&e.keyCode!==Va.DOWN||e.preventDefault()},onKeyUp:ue,onChange:ue,onBlur:function(e){de(ce(e))},size:3}),n.createElement("span",{className:"".concat(r,"-slash")},"/"),Oe));var Me=S?1:2;if(Oe<=3+2*Me){Oe||ke.push(n.createElement(LV,Ve({},Ee,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Te=1;Te<=Oe;Te+=1)ke.push(n.createElement(LV,Ve({},Ee,{key:Te,page:Te,active:ee===Te})))}else{var Ae=S?N.prev_3:N.prev_5,Re=S?N.next_3:N.next_5,De=W(ie,"jump-prev",le(K,"prev page")),Le=W(ae,"jump-next",le(U,"next page"));x&&(xe=De?n.createElement("li",{title:k?Ae:null,key:"prev",onClick:ve,tabIndex:0,onKeyDown:function(e){be(e,ve)},className:Rr()("".concat(r,"-jump-prev"),E({},"".concat(r,"-jump-prev-custom-icon"),!!K))},De):null,Ce=Le?n.createElement("li",{title:k?Re:null,key:"next",onClick:ge,tabIndex:0,onKeyDown:function(e){be(e,ge)},className:Rr()("".concat(r,"-jump-next"),E({},"".concat(r,"-jump-next-custom-icon"),!!U))},Le):null);var qe=Math.max(1,ee-Me),ze=Math.min(ee+Me,Oe);ee-1<=Me&&(ze=1+2*Me),Oe-ee<=Me&&(qe=Oe-2*Me);for(var Be=qe;Be<=ze;Be+=1)ke.push(n.createElement(LV,Ve({},Ee,{key:Be,page:Be,active:ee===Be})));if(ee-1>=2*Me&&3!==ee&&(ke[0]=n.cloneElement(ke[0],{className:Rr()("".concat(r,"-item-after-jump-prev"),ke[0].props.className)}),ke.unshift(xe)),Oe-ee>=2*Me&&ee!==Oe-2){var He=ke[ke.length-1];ke[ke.length-1]=n.cloneElement(He,{className:Rr()("".concat(r,"-item-before-jump-next"),He.props.className)}),ke.push(Ce)}1!==qe&&ke.unshift(n.createElement(LV,Ve({},Ee,{key:1,page:1}))),ze!==Oe&&ke.push(n.createElement(LV,Ve({},Ee,{key:Oe,page:Oe})))}var Fe=function(e){var t=W(e,"prev",le(V,"prev page"));return n.isValidElement(t)?n.cloneElement(t,{disabled:!fe}):t}(je);if(Fe){var We=!fe||!Oe;Fe=n.createElement("li",{title:k?N.prev_page:null,onClick:he,tabIndex:We?null:0,onKeyDown:function(e){be(e,he)},className:Rr()("".concat(r,"-prev"),E({},"".concat(r,"-disabled"),We)),"aria-disabled":We},Fe)}var Ke,Ue,Ge=function(e){var t=W(e,"next",le(G,"next page"));return n.isValidElement(t)?n.cloneElement(t,{disabled:!pe}):t}($e);Ge&&(D?(Ke=!pe,Ue=fe?0:null):Ue=(Ke=!pe||!Oe)?null:0,Ge=n.createElement("li",{title:k?N.next_page:null,onClick:me,tabIndex:Ue,onKeyDown:function(e){be(e,me)},className:Rr()("".concat(r,"-next"),E({},"".concat(r,"-disabled"),Ke)),"aria-disabled":Ke},Ge));var Ye=Rr()(r,a,E(E(E(E(E({},"".concat(r,"-start"),"start"===b),"".concat(r,"-center"),"center"===b),"".concat(r,"-end"),"end"===b),"".concat(r,"-simple"),D),"".concat(r,"-disabled"),R));return n.createElement("ul",Ve({className:Ye,style:I,ref:Y},we),Se,Fe,D?Ie:ke,Ge,n.createElement(DV,{locale:N,rootPrefixCls:r,disabled:R,selectPrefixCls:i,changeSize:function(e){var t=HV(e,Q,d),n=ee>t&&0!==t?t:ee;Z(e),oe(n),null==$||$(ee,e),te(n),null==v||v(n,e)},pageSize:Q,pageSizeOptions:H,quickGo:se?de:null,goButton:_e,showSizeChanger:z,sizeChangerRender:B}))},WV=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},KV=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:$e(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:$e(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:$e(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:$e(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:$e(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:$e(e.itemSizeSM),input:Object.assign(Object.assign({},cb(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},UV=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:$e(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:$e(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${$e(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${$e(e.inputOutlineOffset)} 0 ${$e(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},VV=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:$e(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${$e(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:$e(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},sb(e)),Ug(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Kg(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},GV=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:$e(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${$e(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${$e(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},YV=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:$e(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),GV(e)),VV(e)),UV(e)),KV(e)),WV(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},XV=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ei(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ki(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},ki(e))}}}},QV=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Fg(e)),ZV=e=>$l(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Hg(e)),JV=ql("Pagination",e=>{const t=ZV(e);return[YV(t),XV(t)]},QV),eG=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},tG=Bl(["Pagination","bordered"],e=>{const t=ZV(e);return[eG(t)]},QV);function nG(e){return(0,n.useMemo)(()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0],[e])}var rG=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const oG=e=>{const{align:t,prefixCls:r,selectPrefixCls:o,className:i,rootClassName:a,style:l,size:c,locale:s,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:p}=e,h=rG(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=$V(u),[,v]=yi(),{getPrefixCls:g,direction:b,showSizeChanger:y,className:x,style:w}=C("pagination"),S=g("pagination",r),[O,k,E]=JV(S),j=Rc(c),$="small"===j||!(!m||j||!u),[P]=su("Pagination",pn),N=Object.assign(Object.assign({},P),s),[_,I]=nG(d),[M,T]=nG(y),A=null!=_?_:M,R=null!=I?I:T,D=f||FS,L=n.useMemo(()=>p?p.map(e=>Number(e)):void 0,[p]);const q=n.useMemo(()=>{const e=n.createElement("span",{className:`${S}-item-ellipsis`},"•••");return{prevIcon:n.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},"rtl"===b?n.createElement(Rs,null):n.createElement(lT,null)),nextIcon:n.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},"rtl"===b?n.createElement(lT,null):n.createElement(Rs,null)),jumpPrevIcon:n.createElement("a",{className:`${S}-item-link`},n.createElement("div",{className:`${S}-item-container`},"rtl"===b?n.createElement(TV,{className:`${S}-item-link-icon`}):n.createElement(_V,{className:`${S}-item-link-icon`}),e)),jumpNextIcon:n.createElement("a",{className:`${S}-item-link`},n.createElement("div",{className:`${S}-item-container`},"rtl"===b?n.createElement(_V,{className:`${S}-item-link-icon`}):n.createElement(TV,{className:`${S}-item-link-icon`}),e))}},[b,S]),z=g("select",o),B=Rr()({[`${S}-${t}`]:!!t,[`${S}-mini`]:$,[`${S}-rtl`]:"rtl"===b,[`${S}-bordered`]:v.wireframe},x,i,a,k,E),H=Object.assign(Object.assign({},w),l);return O(n.createElement(n.Fragment,null,v.wireframe&&n.createElement(tG,{prefixCls:S}),n.createElement(FV,Object.assign({},q,h,{style:H,prefixCls:S,selectPrefixCls:z,className:B,locale:N,pageSizeOptions:L,showSizeChanger:A,sizeChangerRender:e=>{var t;const{disabled:r,size:o,onSizeChange:i,"aria-label":a,className:l,options:c}=e,{className:s,onChange:u}=R||{},d=null===(t=c.find(e=>String(e.value)===String(o)))||void 0===t?void 0:t.value;return n.createElement(D,Object.assign({disabled:r,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":a,options:c},R,{value:d,onChange:(e,t)=>{null==i||i(e),null==u||u(e,t)},size:$?"small":"middle",className:Rr()(l,s)}))}}))))},iG=oG;const aG=function(e){return t=>{const{prefixCls:r,onExpand:o,record:i,expanded:a,expandable:l}=t,c=`${r}-row-expand-icon`;return n.createElement("button",{type:"button",onClick:e=>{o(i,e),e.stopPropagation()},className:Rr()(c,{[`${c}-spaced`]:!l,[`${c}-expanded`]:l&&a,[`${c}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}};const lG=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function cG(e,t){return t?`${t}-${e}`:`${e}`}const sG=(e,t)=>"function"==typeof e?e(t):e;const uG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var dG=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:uG}))}; | |
| 142 | +/** */const fG=n.forwardRef(dG);const pG=function(e){var t=e.dropPosition,r=e.dropLevelOffset,o=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-r*o;break;case 1:i.bottom=0,i.left=-r*o;break;case 0:i.bottom=0,i.left=o}return n.createElement("div",{style:i})};function hG(e){if(null==e)throw new TypeError("Cannot destructure "+e)}const mG=function(e,t){var r=_(n.useState(!1),2),o=r[0],i=r[1];Re(function(){if(o)return e(),function(){t()}},[o]),Re(function(){return i(!0),function(){i(!1)}},[])};var vG=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],gG=n.forwardRef(function(e,t){var r=e.className,o=e.style,i=e.motion,a=e.motionNodes,l=e.motionType,c=e.onMotionStart,s=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=eo(e,vG),p=_(n.useState(!0),2),h=p[0],m=p[1],v=n.useContext(AK).prefixCls,g=a&&"hide"!==l;Re(function(){a&&g!==h&&m(g)},[a]);var b=n.useRef(!1),y=function(){a&&!b.current&&(b.current=!0,s())};mG(function(){a&&c()},y);return a?n.createElement(si,Ve({ref:t,visible:h},i,{motionAppear:"show"===l,onVisibleChanged:function(e){g===e&&y()}}),function(e,t){var r=e.className,o=e.style;return n.createElement("div",{ref:t,className:Rr()("".concat(v,"-treenode-motion"),r),style:o},a.map(function(e){var t=Object.assign({},(hG(e.data),e.data)),r=e.title,o=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=VK(o,d);return n.createElement(JK,Ve({},t,l,{title:r,active:u,data:e.data,key:o,isStart:i,isEnd:a}))}))}):n.createElement(JK,Ve({domRef:t,className:r,style:o},f,{active:u}))});const bG=gG;function yG(e,t,n){var r=e.findIndex(function(e){return e.key===n}),o=e[r+1],i=t.findIndex(function(e){return e.key===n});if(o){var a=t.findIndex(function(e){return e.key===o.key});return t.slice(i+1,a)}return t.slice(i+1)}var xG=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],wG={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},SG=function(){},CG="RC_TREE_MOTION_".concat(Math.random()),OG={key:CG},kG={key:CG,level:0,index:0,pos:"0",node:OG,nodes:[OG]},EG={parent:null,children:[],pos:kG.pos,data:OG,title:null,key:CG,isStart:[],isEnd:[]};function jG(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function $G(e){return HK(e.key,e.pos)}var PG=n.forwardRef(function(e,t){var r=e.prefixCls,o=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,l=e.checkedKeys,c=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,m=e.dropPosition,v=e.motion,g=e.height,b=e.itemHeight,y=e.virtual,x=e.scrollWidth,w=e.focusable,S=e.activeItem,C=e.focused,O=e.tabIndex,k=e.onKeyDown,E=e.onFocus,j=e.onBlur,$=e.onActiveChange,P=e.onListChangeStart,N=e.onListChangeEnd,I=eo(e,xG),M=n.useRef(null),T=n.useRef(null);n.useImperativeHandle(t,function(){return{scrollTo:function(e){M.current.scrollTo(e)},getIndentWidth:function(){return T.current.offsetWidth}}});var A=_(n.useState(i),2),R=A[0],D=A[1],L=_(n.useState(o),2),q=L[0],z=L[1],B=_(n.useState(o),2),H=B[0],F=B[1],W=_(n.useState([]),2),K=W[0],U=W[1],V=_(n.useState(null),2),G=V[0],Y=V[1],X=n.useRef(o);function Q(){var e=X.current;z(e),F(e),U([]),Y(null),N()}X.current=o,Re(function(){D(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach(function(e){n.set(e,!0)});var r=t.filter(function(e){return!n.has(e)});return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(R,i);if(null!==e.key)if(e.add){var t=q.findIndex(function(t){return t.key===e.key}),n=jG(yG(q,o,e.key),y,g,b),r=q.slice();r.splice(t+1,0,EG),F(r),U(n),Y("show")}else{var a=o.findIndex(function(t){return t.key===e.key}),l=jG(yG(o,q,e.key),y,g,b),c=o.slice();c.splice(a+1,0,EG),F(c),U(l),Y("hide")}else q!==o&&(z(o),F(o))},[i,o]),n.useEffect(function(){p||Q()},[p]);var Z=v?H:o,J={expandedKeys:i,selectedKeys:a,loadedKeys:c,loadingKeys:s,checkedKeys:l,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:m,keyEntities:d};return n.createElement(n.Fragment,null,C&&S&&n.createElement("span",{style:wG,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(S)),n.createElement("div",null,n.createElement("input",{style:wG,disabled:!1===w||f,tabIndex:!1!==w?O:null,onKeyDown:k,onFocus:E,onBlur:j,value:"",onChange:SG,"aria-label":"for screen reader"})),n.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},n.createElement("div",{className:"".concat(r,"-indent")},n.createElement("div",{ref:T,className:"".concat(r,"-indent-unit")}))),n.createElement(fw,Ve({},I,{data:Z,itemKey:$G,height:g,fullHeight:!1,virtual:y,itemHeight:b,scrollWidth:x,prefixCls:"".concat(r,"-list"),ref:M,role:"tree",onVisibleChange:function(e){e.every(function(e){return $G(e)!==CG})&&Q()}}),function(e){var t=e.pos,r=Object.assign({},(hG(e.data),e.data)),o=e.title,i=e.key,a=e.isStart,l=e.isEnd,c=HK(i,t);delete r.key,delete r.children;var s=VK(c,J);return n.createElement(bG,Ve({},r,s,{title:o,active:!!S&&i===S.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:v,motionNodes:i===CG?K:null,motionType:G,onMotionStart:P,onMotionEnd:Q,treeNodeRequiredProps:J,onMouseMove:function(){$(null)}}))}))});const NG=PG;var _G=function(e){io(r,e);var t=so(r);function r(){var e;oe(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return E(co(e=t.call.apply(t,[this].concat(i))),"destroyed",!1),E(co(e),"delayedDragEnterLogic",void 0),E(co(e),"loadingRetryTimes",{}),E(co(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:FK()}),E(co(e),"dragStartMousePosition",null),E(co(e),"dragNodeProps",null),E(co(e),"currentMouseOverDroppableNodeKey",null),E(co(e),"listRef",n.createRef()),E(co(e),"onNodeDragStart",function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,l=n.eventKey;e.dragNodeProps=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var c=eU(o,l);e.setState({draggingNodeKey:l,dragChildrenKeys:rU(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(c),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:GK(n)})}),E(co(e),"onNodeDragEnter",function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,l=r.flattenNodes,c=r.indent,s=e.props,u=s.onDragEnter,d=s.onExpand,f=s.allowDrop,p=s.direction,h=n.pos,m=n.eventKey;if(e.currentMouseOverDroppableNodeKey!==m&&(e.currentMouseOverDroppableNodeKey=m),e.dragNodeProps){var v=iU(t,e.dragNodeProps,n,c,e.dragStartMousePosition,f,l,i,o,p),g=v.dropPosition,b=v.dropLevelOffset,y=v.dropTargetKey,x=v.dropContainerKey,w=v.dropTargetPos,S=v.dropAllowed,C=v.dragOverNodeKey;!a.includes(y)&&S?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(t){clearTimeout(e.delayedDragEnterLogic[t])}),e.dragNodeProps.eventKey!==n.eventKey&&(t.persist(),e.delayedDragEnterLogic[h]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var r=M(o),a=qK(i,n.eventKey);a&&(a.children||[]).length&&(r=tU(o,n.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(r),null==d||d(r,{node:GK(n),expanded:!0,nativeEvent:t.nativeEvent})}},800)),e.dragNodeProps.eventKey!==y||0!==b?(e.setState({dragOverNodeKey:C,dropPosition:g,dropLevelOffset:b,dropTargetKey:y,dropContainerKey:x,dropTargetPos:w,dropAllowed:S}),null==u||u({event:t,node:GK(n),expandedKeys:o})):e.resetDragState()):e.resetDragState()}else e.resetDragState()}),E(co(e),"onNodeDragOver",function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,l=r.expandedKeys,c=r.indent,s=e.props,u=s.onDragOver,d=s.allowDrop,f=s.direction;if(e.dragNodeProps){var p=iU(t,e.dragNodeProps,n,c,e.dragStartMousePosition,d,i,a,l,f),h=p.dropPosition,m=p.dropLevelOffset,v=p.dropTargetKey,g=p.dropContainerKey,b=p.dropTargetPos,y=p.dropAllowed,x=p.dragOverNodeKey;!o.includes(v)&&y&&(e.dragNodeProps.eventKey===v&&0===m?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():h===e.state.dropPosition&&m===e.state.dropLevelOffset&&v===e.state.dropTargetKey&&g===e.state.dropContainerKey&&b===e.state.dropTargetPos&&y===e.state.dropAllowed&&x===e.state.dragOverNodeKey||e.setState({dropPosition:h,dropLevelOffset:m,dropTargetKey:v,dropContainerKey:g,dropTargetPos:b,dropAllowed:y,dragOverNodeKey:x}),null==u||u({event:t,node:GK(n)}))}}),E(co(e),"onNodeDragLeave",function(t,n){e.currentMouseOverDroppableNodeKey!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null==r||r({event:t,node:GK(n)})}),E(co(e),"onWindowDragEnd",function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)}),E(co(e),"onNodeDragEnd",function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:t,node:GK(n)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)}),E(co(e),"onNodeDrop",function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var d=A(A({},VK(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:qK(e.state.keyEntities,c).node}),f=a.includes(c);ne(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=nU(s),h={event:t,node:GK(d),dragNode:e.dragNodeProps?GK(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};o||null==u||u(h),e.dragNodeProps=null}}}),E(co(e),"cleanDragState",function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null}),E(co(e),"triggerExpandActionExpand",function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter(function(e){return e.key===l})[0],s=GK(A(A({},VK(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(a?eU(o,l):tU(o,l)),e.onNodeExpand(t,s)}}),E(co(e),"onNodeClick",function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)}),E(co(e),"onNodeDoubleClick",function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)}),E(co(e),"onNodeSelect",function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(r=f?s?tU(r,d):[d]:eU(r,d)).map(function(e){var t=qK(i,e);return t?t.node:null}).filter(Boolean);e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})}),E(co(e),"onNodeCheck",function(t,n,r){var o,i=e.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var h=r?tU(l,f):eU(l,f);o={checked:h,halfChecked:eU(c,f)},p.checkedNodes=h.map(function(e){return qK(a,e)}).filter(Boolean).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:h})}else{var m=dU([].concat(M(l),[f]),!0,a),v=m.checkedKeys,g=m.halfCheckedKeys;if(!r){var b=new Set(v);b.delete(f);var y=dU(Array.from(b),{checked:!1,halfCheckedKeys:g},a);v=y.checkedKeys,g=y.halfCheckedKeys}o=v,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=g,v.forEach(function(e){var t=qK(a,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}}),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:g})}null==d||d(o,p)}),E(co(e),"onNodeLoad",function(t){var n,r=t.key,o=qK(e.state.keyEntities,r);if(null==o||null===(n=o.children)||void 0===n||!n.length){var i=new Promise(function(n,o){e.setState(function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return!d||l.includes(r)||s.includes(r)?null:(d(t).then(function(){var o=tU(e.state.loadedKeys,r);null==f||f(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState(function(e){return{loadingKeys:eU(e.loadingKeys,r)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:eU(e.loadingKeys,r)}}),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var i=e.state.loadedKeys;ne(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:tU(i,r)}),n()}o(t)}),{loadingKeys:tU(s,r)})})});return i.catch(function(){}),i}}),E(co(e),"onNodeMouseEnter",function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})}),E(co(e),"onNodeMouseLeave",function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})}),E(co(e),"onNodeContextMenu",function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))}),E(co(e),"onFocus",function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)}),E(co(e),"onBlur",function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)}),E(co(e),"getTreeNodeRequiredProps",function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}}),E(co(e),"setExpandedKeys",function(t){var n=e.state,r=KK(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)}),E(co(e),"onNodeExpand",function(t,n){var r=e.state.expandedKeys,o=e.state,i=o.listChanging,a=o.fieldNames,l=e.props,c=l.onExpand,s=l.loadData,u=n.expanded,d=n[a.key];if(!i){var f=r.includes(d),p=!u;if(ne(u&&f||!u&&!f,"Expand state not sync with index check"),r=p?tU(r,d):eU(r,d),e.setExpandedKeys(r),null==c||c(r,{node:n,expanded:p,nativeEvent:t.nativeEvent}),p&&s){var h=e.onNodeLoad(n);h&&h.then(function(){var t=KK(e.state.treeData,r,a);e.setUncontrolledState({flattenNodes:t})}).catch(function(){var t=eU(e.state.expandedKeys,d);e.setExpandedKeys(t)})}}}),E(co(e),"onListChangeStart",function(){e.setUncontrolledState({listChanging:!0})}),E(co(e),"onListChangeEnd",function(){setTimeout(function(){e.setUncontrolledState({listChanging:!1})})}),E(co(e),"onActiveChange",function(t){var n=e.state.activeKey,r=e.props,o=r.onActiveChange,i=r.itemScrollOffset,a=void 0===i?0:i;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null==o||o(t))}),E(co(e),"getActiveItem",function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find(function(e){return e.key===n})||null}),E(co(e),"offsetActiveKey",function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex(function(e){return e.key===o});-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)}),E(co(e),"onKeyDown",function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,c=l.onKeyDown,s=l.checkable,u=l.selectable;switch(t.which){case Va.UP:e.offsetActiveKey(-1),t.preventDefault();break;case Va.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var f=e.getTreeNodeRequiredProps(),p=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,h=GK(A(A({},VK(r,f)),{},{data:d.data,active:!0}));switch(t.which){case Va.LEFT:p&&o.includes(r)?e.onNodeExpand({},h):d.parent&&e.onActiveChange(d.parent.key),t.preventDefault();break;case Va.RIGHT:p&&!o.includes(r)?e.onNodeExpand({},h):d.children&&d.children.length&&e.onActiveChange(d.children[0].key),t.preventDefault();break;case Va.ENTER:case Va.SPACE:!s||h.disabled||!1===h.checkable||h.disableCheckbox?s||!u||h.disabled||!1===h.selectable||e.onNodeSelect({},h):e.onNodeCheck({},h,!i.includes(r))}}null==c||c(t)}),E(co(e),"setUncontrolledState",function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,a={};Object.keys(t).forEach(function(n){e.props.hasOwnProperty(n)?i=!1:(o=!0,a[n]=t[n])}),!o||n&&!i||e.setState(A(A({},a),r))}}),E(co(e),"scrollTo",function(t){e.listRef.current.scrollTo(t)}),e}return ae(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,r=t.focused,o=t.flattenNodes,i=t.keyEntities,a=t.draggingNodeKey,l=t.activeKey,c=t.dropLevelOffset,s=t.dropContainerKey,u=t.dropTargetKey,d=t.dropPosition,f=t.dragOverNodeKey,p=t.indent,h=this.props,m=h.prefixCls,v=h.className,g=h.style,b=h.showLine,y=h.focusable,x=h.tabIndex,w=void 0===x?0:x,S=h.selectable,C=h.showIcon,k=h.icon,j=h.switcherIcon,$=h.draggable,P=h.checkable,N=h.checkStrictly,_=h.disabled,I=h.motion,M=h.loadData,T=h.filterTreeNode,A=h.height,R=h.itemHeight,D=h.scrollWidth,L=h.virtual,q=h.titleRender,z=h.dropIndicatorRender,B=h.onContextMenu,H=h.onScroll,F=h.direction,W=h.rootClassName,K=h.rootStyle,U=Xa(this.props,{aria:!0,data:!0});$&&(e="object"===O($)?$:"function"==typeof $?{nodeDraggable:$}:{});var V={prefixCls:m,selectable:S,showIcon:C,icon:k,switcherIcon:j,draggable:e,draggingNodeKey:a,checkable:P,checkStrictly:N,disabled:_,keyEntities:i,dropLevelOffset:c,dropContainerKey:s,dropTargetKey:u,dropPosition:d,dragOverNodeKey:f,indent:p,direction:F,dropIndicatorRender:z,loadData:M,filterTreeNode:T,titleRender:q,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return n.createElement(AK.Provider,{value:V},n.createElement("div",{className:Rr()(m,v,W,E(E(E({},"".concat(m,"-show-line"),b),"".concat(m,"-focused"),r),"".concat(m,"-active-focused"),null!==l)),style:K},n.createElement(NG,Ve({ref:this.listRef,prefixCls:m,style:g,data:o,disabled:_,selectable:S,checkable:!!P,motion:I,dragging:null!==a,height:A,itemHeight:R,virtual:L,focusable:y,focused:r,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:H,scrollWidth:D},this.getTreeNodeRequiredProps(),U))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&e.hasOwnProperty(t)||r&&r[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=FK(e.fieldNames),o.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(ne(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=WK(e.children)),n){o.treeData=n;var l=UK(n,{fieldNames:a});o.keyEntities=A(E({},CG,kG),l.keyEntities)}var c,s=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?cU(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=A({},s);delete u[CG];var d=[];Object.keys(u).forEach(function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)}),o.expandedKeys=d}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?cU(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var f=KK(n||t.treeData,o.expandedKeys||t.expandedKeys,a);o.flattenNodes=f}if((e.selectable&&(i("selectedKeys")?o.selectedKeys=aU(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=aU(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?c=lU(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?c=lU(e.defaultCheckedKeys)||{}:n&&(c=lU(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var p=c,h=p.checkedKeys,m=void 0===h?[]:h,v=p.halfCheckedKeys,g=void 0===v?[]:v;if(!e.checkStrictly){var b=dU(m,!0,s);m=b.checkedKeys,g=b.halfCheckedKeys}o.checkedKeys=m,o.halfCheckedKeys=g}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),r}(n.Component);E(_G,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:pG,allowDrop:function(){return!0},expandAction:!1}),E(_G,"TreeNode",JK);const IG=_G;const MG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var TG=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:MG}))}; | |
| 143 | +/** */const AG=n.forwardRef(TG);const RG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var DG=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:RG}))}; | |
| 144 | +/** */const LG=n.forwardRef(DG);const qG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var zG=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:qG}))}; | |
| 145 | +/** */const BG=n.forwardRef(zG),HG=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:i,controlItemBgHover:a})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:i},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:n}}}}}),FG=new Zt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),WG=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),KG=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${$e(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),UG=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:s,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},Oi(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},ki(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:FG,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:$e(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:s},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},WG(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},KG(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${$e(t.calc(i).div(2).equal())} !important`}})}},VG=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=$l(t,{treeCls:r,treeNodeCls:o,treeNodePadding:i});return[UG(e,a),n&&HG(a)].filter(Boolean)},GG=ql("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:J$(`${t}-checkbox`,e)},VG(t,e),tu(e)],e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})});const YG=function(e){const{dropPosition:t,dropLevelOffset:r,prefixCls:o,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",c="ltr"===a?"right":"left",s={[l]:-r*i+4,[c]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[l]=i+4}return n.createElement("div",{style:s,className:`${o}-drop-indicator`})};const XG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var QG=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:XG}))}; | |
| 146 | +/** */const ZG=n.forwardRef(QG);const JG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var eY=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:JG}))}; | |
| 147 | +/** */const tY=n.forwardRef(eY);const nY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var rY=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:nY}))}; | |
| 148 | +/** */const oY=n.forwardRef(rY),iY=e=>{const{prefixCls:t,switcherIcon:r,treeNodeProps:o,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:l,expanded:c,loading:s}=o;if(s)return n.isValidElement(a)?a:n.createElement(Ka,{className:`${t}-switcher-loading-icon`});let u;if(i&&"object"==typeof i&&(u=i.showLeafIcon),l){if(!i)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(o):u,r=`${t}-switcher-line-custom-icon`;return n.isValidElement(e)?Ec(e,{className:Rr()(e.props.className||"",r)}):e}return u?n.createElement(AG,{className:`${t}-switcher-line-icon`}):n.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f="function"==typeof r?r(o):r;return n.isValidElement(f)?Ec(f,{className:Rr()(f.props.className||"",d)}):void 0!==f?f:i?c?n.createElement(tY,{className:`${t}-switcher-line-icon`}):n.createElement(oY,{className:`${t}-switcher-line-icon`}):n.createElement(ZG,{className:d})},aY=n.forwardRef((e,t)=>{var r;const{getPrefixCls:o,direction:i,virtual:a,tree:l}=n.useContext(x),{prefixCls:c,className:s,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:p,blockNode:h=!1,children:m,checkable:v=!1,selectable:g=!0,draggable:b,motion:y,style:w}=e,S=o("tree",c),C=o(),O=null!=y?y:Object.assign(Object.assign({},Js(C)),{motionAppear:!1}),k=Object.assign(Object.assign({},e),{checkable:v,selectable:g,showIcon:u,motion:O,blockNode:h,showLine:Boolean(d),dropIndicatorRender:YG}),[E,j,$]=GG(S),[,P]=yi(),N=P.paddingXS/2+((null===(r=P.Tree)||void 0===r?void 0:r.titleHeight)||P.controlHeightSM),_=n.useMemo(()=>{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||n.createElement(N$,null)),e},[b]);return E(n.createElement(IG,Object.assign({itemHeight:N,ref:t,virtual:a},k,{style:Object.assign(Object.assign({},null==l?void 0:l.style),w),prefixCls:S,className:Rr()({[`${S}-icon-hide`]:!u,[`${S}-block-node`]:h,[`${S}-unselectable`]:!g,[`${S}-rtl`]:"rtl"===i},null==l?void 0:l.className,s,j,$),direction:i,checkable:v?n.createElement("span",{className:`${S}-checkbox-inner`}):v,selectable:g,switcherIcon:e=>n.createElement(iY,{prefixCls:S,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:e,showLine:d}),draggable:_}),m))});const lY=aY;function cY(e,t,n){const{key:r,children:o}=n;e.forEach(function(e){const i=e[r],a=e[o];!1!==t(i,e)&&cY(a||[],t,n)})}function sY({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const i=[];let a=0;if(n&&n===r)return[n];if(!n||!r)return[];return cY(e,e=>{if(2===a)return!1;if(function(e){return e===n||e===r}(e)){if(i.push(e),0===a)a=1;else if(1===a)return a=2,!1}else 1===a&&i.push(e);return t.includes(e)},FK(o)),i}function uY(e,t,n){const r=M(t),o=[];return cY(e,(e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length},FK(n)),o}var dY=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function fY(e){const{isLeaf:t,expanded:r}=e;return t?n.createElement(AG,null):r?n.createElement(LG,null):n.createElement(BG,null)}function pY({treeData:e,children:t}){return e||WK(t)}const hY=(e,t)=>{var{defaultExpandAll:r,defaultExpandParent:o,defaultExpandedKeys:i}=e,a=dY(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=n.useRef(null),c=n.useRef(null),[s,u]=n.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=n.useState(()=>(()=>{const{keyEntities:e}=UK(pY(a));let t;return t=r?Object.keys(e):o?cU(a.expandedKeys||i||[],e):a.expandedKeys||i||[],t})());n.useEffect(()=>{"selectedKeys"in a&&u(a.selectedKeys)},[a.selectedKeys]),n.useEffect(()=>{"expandedKeys"in a&&f(a.expandedKeys)},[a.expandedKeys]);const{getPrefixCls:p,direction:h}=n.useContext(x),{prefixCls:m,className:v,showIcon:g=!0,expandAction:b="click"}=a,y=dY(a,["prefixCls","className","showIcon","expandAction"]),w=p("tree",m),S=Rr()(`${w}-directory`,{[`${w}-directory-rtl`]:"rtl"===h},v);return n.createElement(lY,Object.assign({icon:fY,ref:t,blockNode:!0},y,{showIcon:g,expandAction:b,prefixCls:w,className:S,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=a,{node:i,nativeEvent:s}=t,{key:f=""}=i,p=pY(a),h=Object.assign(Object.assign({},t),{selected:!0}),m=(null==s?void 0:s.ctrlKey)||(null==s?void 0:s.metaKey),v=null==s?void 0:s.shiftKey;let g;r&&m?(g=e,l.current=f,c.current=g,h.selectedNodes=uY(p,g,o)):r&&v?(g=Array.from(new Set([].concat(M(c.current||[]),M(sY({treeData:p,expandedKeys:d,startKey:f,endKey:l.current,fieldNames:o}))))),h.selectedNodes=uY(p,g,o)):(g=[f],l.current=f,c.current=g,h.selectedNodes=uY(p,g,o)),null===(n=a.onSelect)||void 0===n||n.call(a,g,h),"selectedKeys"in a||u(g)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||f(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))};const mY=n.forwardRef(hY),vY=lY;vY.DirectoryTree=mY,vY.TreeNode=JK;const gY=vY,bY=e=>{const{value:t,filterSearch:r,tablePrefixCls:o,locale:i,onChange:a}=e;return r?n.createElement("div",{className:`${o}-filter-dropdown-search`},n.createElement(Db,{prefix:n.createElement(ly,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null},yY=e=>{const{keyCode:t}=e;t===Va.ENTER&&e.stopPropagation()};const xY=n.forwardRef((e,t)=>n.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:yY,ref:t},e.children));function wY(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(M(t),M(wY(n))))}),t}function SY(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function CY({filters:e,prefixCls:t,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}){return e.map((e,l)=>{const c=String(e.value);if(e.children)return{key:c||l,label:e.text,popupClassName:`${t}-dropdown-submenu`,children:CY({filters:e.children,prefixCls:t,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const s=o?sP:AM,u={key:void 0!==e.value?c:l,label:n.createElement(n.Fragment,null,n.createElement(s,{checked:r.includes(c)}),n.createElement("span",null,e.text))};return i.trim()?"function"==typeof a?a(i,e)?u:null:SY(i,e.text)?u:null:u})}function OY(e){return e||[]}const kY=e=>{var t,r,o,i;const{tablePrefixCls:a,prefixCls:l,column:c,dropdownPrefixCls:s,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:p="menu",filterSearch:h=!1,filterState:m,triggerFilter:v,locale:g,children:b,getPopupContainer:y,rootClassName:w}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:C,filterDropdownProps:O={},filterDropdownOpen:k,filterDropdownVisible:E,onFilterDropdownVisibleChange:j,onFilterDropdownOpenChange:$}=c,[P,N]=n.useState(!1),_=!(!m||!(null===(t=m.filteredKeys)||void 0===t?void 0:t.length)&&!m.forceFiltered),I=e=>{var t;N(e),null===(t=O.onOpenChange)||void 0===t||t.call(O,e),null==$||$(e),null==j||j(e)};const M=null!==(i=null!==(o=null!==(r=O.open)&&void 0!==r?r:k)&&void 0!==o?o:E)&&void 0!==i?i:P,T=null==m?void 0:m.filteredKeys,[A,R]=function(e){const t=n.useRef(e),r=kV();return[()=>t.current,e=>{t.current=e,r()}]}(OY(T)),D=({selectedKeys:e})=>{R(e)},L=(e,{node:t,checked:n})=>{D(f?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};n.useEffect(()=>{P&&D({selectedKeys:OY(T)})},[T]);const[q,z]=n.useState([]),B=e=>{z(e)},[H,F]=n.useState(""),W=e=>{const{value:t}=e.target;F(t)};n.useEffect(()=>{P||F("")},[P]);const K=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||m&&m.filteredKeys?re(t,null==m?void 0:m.filteredKeys,!0)?null:void v({column:c,key:u,filteredKeys:t}):null},U=()=>{I(!1),K(A())},V=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&K([]),t&&I(!1),F(""),R(S?(C||[]).map(e=>String(e)):[])},G=({closeDropdown:e}={closeDropdown:!0})=>{e&&I(!1),K(A())},Y=Rr()({[`${s}-menu-without-submenu`]:(X=c.filters||[],!X.some(({children:e})=>e))});var X;const Q=e=>{if(e.target.checked){const e=wY(null==c?void 0:c.filters).map(e=>String(e));R(e)}else R([])},Z=({filters:e})=>(e||[]).map((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=Z({filters:e.children})),r}),J=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>J(e)))||[]})};let ee;const{direction:te,renderEmpty:ne}=n.useContext(x);if("function"==typeof c.filterDropdown)ee=c.filterDropdown({prefixCls:`${s}-custom`,setSelectedKeys:e=>D({selectedKeys:e}),selectedKeys:A(),confirm:G,clearFilters:V,filters:c.filters,visible:M,close:()=>{I(!1)}});else if(c.filterDropdown)ee=c.filterDropdown;else{const e=A()||[],t=()=>{var t,r;const o=null!==(t=null==ne?void 0:ne("Table.filter"))&&void 0!==t?t:n.createElement(qw,{image:qw.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(c.filters||[]).length)return o;if("tree"===p)return n.createElement(n.Fragment,null,n.createElement(bY,{filterSearch:h,value:H,onChange:W,tablePrefixCls:a,locale:g}),n.createElement("div",{className:`${a}-filter-dropdown-tree`},f?n.createElement(sP,{checked:e.length===wY(c.filters).length,indeterminate:e.length>0&&e.length<wY(c.filters).length,className:`${a}-filter-dropdown-checkall`,onChange:Q},null!==(r=null==g?void 0:g.filterCheckall)&&void 0!==r?r:null==g?void 0:g.filterCheckAll):null,n.createElement(gY,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${s}-menu`,onCheck:L,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:Z({filters:c.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:H.trim()?e=>"function"==typeof h?h(H,J(e)):SY(H,e.title):void 0})));const i=CY({filters:c.filters||[],filterSearch:h,prefixCls:l,filteredKeys:A(),filterMultiple:f,searchValue:H}),u=i.every(e=>null===e);return n.createElement(n.Fragment,null,n.createElement(bY,{filterSearch:h,value:H,onChange:W,tablePrefixCls:a,locale:g}),u?o:n.createElement(rV,{selectable:!0,multiple:f,prefixCls:`${s}-menu`,className:Y,onSelect:D,onDeselect:D,selectedKeys:e,getPopupContainer:y,openKeys:q,onOpenChange:B,items:i}))},r=()=>S?re((C||[]).map(e=>String(e)),e,!0):0===e.length;ee=n.createElement(n.Fragment,null,t(),n.createElement("div",{className:`${l}-dropdown-btns`},n.createElement(od,{type:"link",size:"small",disabled:r(),onClick:()=>V()},g.filterReset),n.createElement(od,{type:"primary",size:"small",onClick:U},g.filterConfirm)))}c.filterDropdown&&(ee=n.createElement(DU,{selectable:void 0},ee)),ee=n.createElement(xY,{className:`${l}-dropdown`},ee);const oe=km({trigger:["click"],placement:"rtl"===te?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"==typeof c.filterIcon?c.filterIcon(_):c.filterIcon?c.filterIcon:n.createElement(fG,null),n.createElement("span",{role:"button",tabIndex:-1,className:Rr()(`${l}-trigger`,{active:_}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:y},Object.assign(Object.assign({},O),{rootClassName:Rr()(w,O.rootClassName),open:M,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==T&&R(OY(T)),I(e),e||c.filterDropdown||!d||U())},popupRender:()=>"function"==typeof(null==O?void 0:O.dropdownRender)?O.dropdownRender(ee):ee}));return n.createElement("div",{className:`${l}-column`},n.createElement("span",{className:`${a}-column-title`},b),n.createElement(hV,Object.assign({},oe)))},EY=(e,t,n)=>{let r=[];return(e||[]).forEach((e,o)=>{var i;const a=cG(o,n),l=void 0!==e.filterDropdown;if(e.filters||l||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;l||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),r.push({column:e,key:lG(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:lG(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(M(r),M(EY(e.children,t,a))))}),r};function jY(e,t,r,o,i,a,l,c,s){return r.map((r,u)=>{const d=cG(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:h,filterSearch:m}=r;let v=r;if(v.filters||v.filterDropdown){const c=lG(v,d),u=o.find(({key:e})=>c===e);v=Object.assign(Object.assign({},v),{title:o=>n.createElement(kY,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:h,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:s},sG(r.title,o))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:jY(e,t,v.children,o,i,a,l,d,s)})),v})}const $Y=e=>{const t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{const o=e,{filters:i,filterDropdown:a}=r;if(a)t[o]=n||null;else if(Array.isArray(n)){const e=wY(i);t[o]=e.filter(e=>n.includes(String(e)))}else t[o]=null}),t},PY=(e,t,n)=>{const r=t.reduce((e,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?e.map(e=>Object.assign({},e)).filter(e=>a.some(r=>{const a=wY(i),l=a.findIndex(e=>String(e)===String(r)),c=-1!==l?a[l]:r;return e[n]&&(e[n]=PY(e[n],t,n)),o(c,e)})):e},e);return r},NY=e=>e.flatMap(e=>"children"in e?[e].concat(M(NY(e.children||[]))):[e]),_Y=e=>{const{prefixCls:t,dropdownPrefixCls:r,mergedColumns:o,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:c}=e,s=(dn("Table"),n.useMemo(()=>NY(o||[]),[o])),[u,d]=n.useState(()=>EY(s,!0)),f=n.useMemo(()=>{const e=EY(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach(({filteredKeys:e})=>{void 0!==e?t=!1:n=!1}),t){const e=(s||[]).map((e,t)=>lG(e,cG(t)));return u.filter(({key:t})=>e.includes(t)).map(t=>{const n=s[e.findIndex(e=>e===t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[s,u]),p=n.useMemo(()=>$Y(f),[f]),h=e=>{const t=f.filter(({key:t})=>t!==e.key);t.push(e),d(t),i($Y(t),t)};return[e=>jY(t,r,e,f,l,h,a,void 0,c),f,p]},IY=(e,t,r)=>{const o=n.useRef({});return[function(n){var i;if(!o.current||o.current.data!==e||o.current.childrenColumnName!==t||o.current.getRowKey!==r){const a=new Map;function l(e){e.forEach((e,n)=>{const o=r(e,n);a.set(o,e),e&&"object"==typeof e&&t in e&&l(e[t]||[])})}l(e),o.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:r}}return null===(i=o.current.kvMap)||void 0===i?void 0:i.get(n)}]};var MY=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const TY=10;const AY=function(e,t,r){const o=r&&"object"==typeof r?r:{},{total:i=0}=o,a=MY(o,["total"]),[l,c]=(0,n.useState)(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:TY})),s=km(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!=e?e:1,pageSize:t||s.pageSize})};return!1===r?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,n)=>{var o;r&&(null===(o=r.onChange)||void 0===o||o.call(r,e,n)),d(e,n),t(e,n||(null==s?void 0:s.pageSize))}}),d]};const RY={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var DY=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:RY}))}; | |
| 149 | +/** */const LY=n.forwardRef(DY),qY="ascend",zY="descend",BY=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,HY=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,FY=(e,t,n)=>{let r=[];const o=(e,t)=>{r.push({column:e,key:lG(e,t),multiplePriority:BY(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,i)=>{const a=cG(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(M(r),M(FY(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:lG(e,a),multiplePriority:BY(e),sortOrder:e.defaultSortOrder}))}),r},WY=(e,t,r,o,i,a,l,c)=>{const s=(t||[]).map((t,s)=>{const u=cG(s,c);let d=t;if(d.sorter){const c=d.sortDirections||i,s=void 0===d.showSorterTooltip?l:d.showSorterTooltip,f=lG(d,u),p=r.find(({key:e})=>e===f),h=p?p.sortOrder:null,m=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(c,h);let v;if(t.sortIcon)v=t.sortIcon({sortOrder:h});else{const t=c.includes(qY)&&n.createElement(LY,{className:Rr()(`${e}-column-sorter-up`,{active:h===qY})}),r=c.includes(zY)&&n.createElement(hq,{className:Rr()(`${e}-column-sorter-down`,{active:h===zY})});v=n.createElement("span",{className:Rr()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!r)})},n.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,r))}const{cancelSort:g,triggerAsc:b,triggerDesc:y}=a||{};let x=g;m===zY?x=y:m===qY&&(x=b);const w="object"==typeof s?Object.assign({title:x},s):{title:x};d=Object.assign(Object.assign({},d),{className:Rr()(d.className,{[`${e}-column-sort`]:h}),title:r=>{const o=`${e}-column-sorters`,i=n.createElement("span",{className:`${e}-column-title`},sG(t.title,r)),a=n.createElement("div",{className:o},i,v);return s?"boolean"!=typeof s&&"sorter-icon"===(null==s?void 0:s.target)?n.createElement("div",{className:`${o} ${e}-column-sorters-tooltip-target-sorter`},i,n.createElement(om,Object.assign({},w),v)):n.createElement(om,Object.assign({},w),a):a},onHeaderCell:n=>{var r;const i=(null===(r=t.onHeaderCell)||void 0===r?void 0:r.call(t,n))||{},a=i.onClick,l=i.onKeyDown;i.onClick=e=>{o({column:t,key:f,sortOrder:m,multiplePriority:BY(t)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===Va.ENTER&&(o({column:t,key:f,sortOrder:m,multiplePriority:BY(t)}),null==l||l(e))};const c=((e,t)=>{const n=sG(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),s=null==c?void 0:c.toString();return h&&(i["aria-sort"]="ascend"===h?"ascending":"descending"),i["aria-label"]=s||"",i.className=Rr()(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!=c?c:"").toString()),i}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:WY(e,d.children,r,o,i,a,l,u)})),d});return s},KY=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},UY=e=>{const t=e.filter(({sortOrder:e})=>e).map(KY);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},KY(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},VY=(e,t,n)=>{const r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),o=e.slice(),i=r.filter(({column:{sorter:e},sortOrder:t})=>HY(e)&&t);return i.length?o.sort((e,t)=>{for(let n=0;n<i.length;n+=1){const r=i[n],{column:{sorter:o},sortOrder:a}=r,l=HY(o);if(l&&a){const n=l(e,t,a);if(0!==n)return a===qY?n:-n}}return 0}).map(e=>{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:VY(r,t,n)}):e}):o},GY=e=>{const{prefixCls:t,mergedColumns:r,sortDirections:o,tableLocale:i,showSorterTooltip:a,onSorterChange:l}=e,[c,s]=n.useState(()=>FY(r,!0)),u=(e,t)=>{const n=[];return e.forEach((e,r)=>{const o=cG(r,t);if(n.push(lG(e,o)),Array.isArray(e.children)){const t=u(e.children,o);n.push.apply(n,M(t))}}),n},d=n.useMemo(()=>{let e=!0;const t=FY(r,!1);if(!t.length){const e=u(r);return c.filter(({key:t})=>e.includes(t))}const n=[];function o(t){e?n.push(t):n.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach(t=>{null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))}),n},[r,c]),f=n.useMemo(()=>{var e,t;const n=d.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}},[d]),p=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat(M(d.filter(({key:t})=>t!==e.key)),[e]):[e],s(t),l(UY(t),t)};return[e=>WY(t,e,d,p,o,i,a),d,f,()=>UY(d)]},YY=(e,t)=>{const n=e.map(e=>{const n=Object.assign({},e);return n.title=sG(e.title,t),"children"in n&&(n.children=YY(n.children,t)),n});return n},XY=e=>{const t=n.useCallback(t=>YY(t,e),[e]);return[t]},QY=bK((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),ZY=QY,JY=IK((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),eX=JY,tX=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,s=`${$e(n)} ${r} ${o}`,u=(e,r,o)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${$e(c(r).mul(-1).equal())}\n ${$e(c(c(o).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:s,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:s,borderTop:s,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${$e(c(a).mul(-1).equal())} ${$e(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:s,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${$e(n)} 0 ${$e(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}},nX=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Ci),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},rX=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},oX=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:h,expandIconMarginTop:m,expandIconSize:v,expandIconHalfInner:g,expandIconScale:b,calc:y}=e,x=`${$e(o)} ${a} ${l}`,w=y(h).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:s},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},$i(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:$e(v),background:c,border:x,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:g,insetInlineEnd:w,insetInlineStart:w,height:o},"&::after":{top:w,bottom:w,insetInlineStart:g,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:m,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${$e(y(d).mul(-1).equal())} ${$e(y(f).mul(-1).equal())}`,padding:`${$e(d)} ${$e(f)}`}}}},iX=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:h,borderRadius:m,motionDurationSlow:v,colorIcon:g,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:w,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:O,boxShadowSecondary:k,filterDropdownMenuBg:E,calc:j}=e,$=`${n}-dropdown`,P=`${t}-filter-dropdown`,N=`${n}-tree`,_=`${$e(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:j(a).mul(-1).equal(),marginInline:`${$e(a)} ${$e(j(h).div(2).mul(-1).equal())}`,padding:`0 ${$e(a)}`,color:f,fontSize:p,borderRadius:m,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:g,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[P]:Object.assign(Object.assign({},Oi(e)),{minWidth:o,backgroundColor:w,borderRadius:m,boxShadow:k,overflow:"hidden",[`${$}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${$e(l)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${$e(l)} 0`,paddingInline:l,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:C},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${P}-search`]:{padding:l,borderBottom:_,"&-input":{input:{minWidth:i},[r]:{color:x}}},[`${P}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${$e(j(l).sub(s).equal())} ${$e(l)}`,overflow:"hidden",borderTop:_}})}},{[`${n}-dropdown ${P}, ${P}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},aX=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,s=r;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},lX=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${$e(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},cX=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${$e(n)} ${$e(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${$e(n)} ${$e(n)}`}}}}},sX=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},uX=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:h(s).add(o).add(h(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(s).add(h(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(s).add(o).add(h(i).div(4)).add(h(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:$e(h(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},dX=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(e,o,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${$e(o)} ${$e(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:$e(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${$e(r(o).mul(-1).equal())} ${$e(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:$e(r(o).mul(-1).equal()),marginInline:`${$e(r(n).sub(i).equal())} ${$e(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:$e(r(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},fX=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},pX=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f=`${$e(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${$e(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},hX=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${$e(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${$e(o(n).mul(-1).equal())} 0 ${r}`}}}},mX=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${$e(r)} ${o} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${$e(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},vX=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:h,tableHeaderCellSplitColor:m,tableFooterTextColor:v,tableFooterBg:g,calc:b}=e,y=`${$e(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},Oi(e)),{fontSize:s,background:u,borderRadius:`${$e(d)} ${$e(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${$e(d)} ${$e(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${$e(r)} ${$e(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${$e(r)} ${$e(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:$e(b(r).mul(-1).equal()),marginInline:`${$e(b(i).sub(o).equal())}\n ${$e(b(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${$e(r)} ${$e(o)}`,color:v,background:g}})}},gX=ql("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:h,cellPaddingInline:m,cellPaddingBlockMD:v,cellPaddingInlineMD:g,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:w,footerColor:S,headerBorderRadius:C,cellFontSize:O,cellFontSizeMD:k,cellFontSizeSM:E,headerSplitColor:j,fixedHeaderSortActiveBg:$,headerFilterHoverBg:P,filterDropdownBg:N,expandIconBg:_,selectionColumnWidth:I,stickyScrollBarBg:M,calc:T}=e,A=$l(e,{tableFontSize:O,tableBg:r,tableRadius:C,tablePaddingVertical:h,tablePaddingHorizontal:m,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:g,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:S,tableFooterBg:w,tableHeaderCellSplitColor:j,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:$,tableHeaderFilterActiveBg:P,tableFilterDropdownBg:N,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:T(2).add(1).equal({unit:!1}),tableFontSizeMiddle:k,tableFontSizeSmall:E,tableSelectionColumnWidth:I,tableExpandIconBg:_,tableExpandColumnWidth:T(o).add(T(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:M,tableScrollThumbBgHover:t,tableScrollBg:n});return[vX(A),lX(A),hX(A),fX(A),iX(A),tX(A),cX(A),oX(A),hX(A),rX(A),uX(A),aX(A),pX(A),nX(A),dX(A),sX(A),mX(A)]},e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:h,fontSize:m,fontSizeSM:v,lineHeight:g,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:w,controlInteractiveSize:S}=e,C=new Pn(o).onBackground(n).toHexString(),O=new Pn(i).onBackground(n).toHexString(),k=new Pn(t).onBackground(n).toHexString(),E=new Pn(y),j=new Pn(x),$=S/2-b,P=2*$+3*b;return{headerBg:k,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:O,bodySortBg:k,rowHoverBg:k,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:k,footerColor:r,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*g-3*b)/2-Math.ceil((1.4*v-3*b)/2),headerIconColor:E.clone().setA(E.a*w).toRgbString(),headerIconHoverColor:j.clone().setA(j.a*w).toRgbString(),expandIconHalfInner:$,expandIconSize:P,expandIconScale:S/P}},{unitless:{expandIconScale:!0}}),bX=[],yX=(e,t)=>{var r,o;const{prefixCls:i,className:a,rootClassName:l,style:c,size:s,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:p,rowSelection:h,rowKey:m="key",rowClassName:v,columns:g,children:b,childrenColumnName:y,onChange:w,getPopupContainer:S,loading:C,expandIcon:O,expandable:k,expandedRowRender:E,expandIconColumnIndex:j,indentSize:$,scroll:P,sortDirections:N,locale:_,showSorterTooltip:I={target:"full-header"},virtual:M}=e;dn("Table");const T=n.useMemo(()=>g||JW(b),[g,b]),A=n.useMemo(()=>T.some(e=>e.responsive),[T]),R=$V(A),D=n.useMemo(()=>{const e=new Set(Object.keys(R).filter(e=>R[e]));return T.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[T,R]),L=Sc(e,["className","style","columns"]),{locale:q=bn,direction:z,table:B,renderEmpty:H,getPrefixCls:F,getPopupContainer:W}=n.useContext(x),K=Rc(s),U=Object.assign(Object.assign({},q.Table),_),V=f||bX,G=F("table",i),Y=F("dropdown",d),[,X]=yi(),Q=ul(G),[Z,J,ee]=gX(G,Q),te=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:j},k),{expandIcon:null!==(r=null==k?void 0:k.expandIcon)&&void 0!==r?r:null===(o=null==B?void 0:B.expandable)||void 0===o?void 0:o.expandIcon}),{childrenColumnName:ne="children"}=te,re=n.useMemo(()=>V.some(e=>null==e?void 0:e[ne])?"nest":E||(null==k?void 0:k.expandedRowRender)?"row":null,[V]),oe={body:n.useRef(null)},ie=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return o}}(G),ae=n.useRef(null),le=n.useRef(null);SV(t,()=>Object.assign(Object.assign({},le.current),{nativeElement:ae.current}));const ce=n.useMemo(()=>"function"==typeof m?m:e=>null==e?void 0:e[m],[m]),[se]=IY(V,ne,ce),ue={},de=(e,t,n=!1)=>{var r,o,i,a;const l=Object.assign(Object.assign({},ue),e);n&&(null===(r=ue.resetPagination)||void 0===r||r.call(ue),(null===(o=l.pagination)||void 0===o?void 0:o.current)&&(l.pagination.current=1),p&&(null===(i=p.onChange)||void 0===i||i.call(p,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),P&&!1!==P.scrollToFirstRowOnChange&&oe.body.current&&function(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=OV(i),l=Date.now(),c=()=>{const t=Date.now()-l,n=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(t>o?o:t,a,e,o);CV(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<o?Ko(c):"function"==typeof r&&r()};Ko(c)}(0,{getContainer:()=>oe.body.current}),null==w||w(l.pagination,l.filters,l.sorter,{currentDataSource:PY(VY(V,l.sorterStates,ne),l.filterStates,ne),action:t})},[fe,pe,he,me]=GY({prefixCls:G,mergedColumns:D,onSorterChange:(e,t)=>{de({sorter:e,sorterStates:t},"sort",!1)},sortDirections:N||["ascend","descend"],tableLocale:U,showSorterTooltip:I}),ve=n.useMemo(()=>VY(V,pe,ne),[V,pe]);ue.sorter=me(),ue.sorterStates=pe;const[ge,be,ye]=_Y({prefixCls:G,locale:U,dropdownPrefixCls:Y,mergedColumns:D,onFilterChange:(e,t)=>{de({filters:e,filterStates:t},"filter",!0)},getPopupContainer:S||W,rootClassName:Rr()(l,Q)}),xe=PY(ve,be,ne);ue.filters=ye,ue.filterStates=be;const we=n.useMemo(()=>{const e={};return Object.keys(ye).forEach(t=>{null!==ye[t]&&(e[t]=ye[t])}),Object.assign(Object.assign({},he),{filters:e})},[he,ye]),[Se]=XY(we),[Ce,Oe]=AY(xe.length,(e,t)=>{de({pagination:Object.assign(Object.assign({},ue.pagination),{current:e,pageSize:t})},"paginate")},p);ue.pagination=!1===p?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach(t=>{const r=e[t];"function"!=typeof r&&(n[t]=r)}),n}(Ce,p),ue.resetPagination=Oe;const ke=n.useMemo(()=>{if(!1===p||!Ce.pageSize)return xe;const{current:e=1,total:t,pageSize:n=TY}=Ce;return xe.length<t?xe.length>n?xe.slice((e-1)*n,e*n):xe:xe.slice((e-1)*n,e*n)},[!!p,xe,null==Ce?void 0:Ce.current,null==Ce?void 0:Ce.pageSize,null==Ce?void 0:Ce.total]),[Ee,je]=wV({prefixCls:G,data:xe,pageData:ke,getRowKey:ce,getRecordByKey:se,expandType:re,childrenColumnName:ne,locale:U,getPopupContainer:S||W},h);te.__PARENT_RENDER_ICON__=te.expandIcon,te.expandIcon=te.expandIcon||O||aG(U),"nest"===re&&void 0===te.expandIconColumnIndex?te.expandIconColumnIndex=h?1:0:te.expandIconColumnIndex>0&&h&&(te.expandIconColumnIndex-=1),"number"!=typeof te.indentSize&&(te.indentSize="number"==typeof $?$:15);const $e=n.useCallback(e=>Se(Ee(ge(fe(e)))),[fe,ge,Ee]);let Pe,Ne,_e;if(!1!==p&&(null==Ce?void 0:Ce.total)){let e;e=Ce.size?Ce.size:"small"===K||"middle"===K?"small":void 0;const t=t=>n.createElement(iG,Object.assign({},Ce,{className:Rr()(`${G}-pagination ${G}-pagination-${t}`,Ce.className),size:e})),r="rtl"===z?"left":"right",{position:o}=Ce;if(null!==o&&Array.isArray(o)){const e=o.find(e=>e.includes("top")),n=o.find(e=>e.includes("bottom")),i=o.every(e=>"none"==`${e}`);e||n||i||(Ne=t(r)),e&&(Pe=t(e.toLowerCase().replace("top",""))),n&&(Ne=t(n.toLowerCase().replace("bottom","")))}else Ne=t(r)}"boolean"==typeof C?_e={spinning:C}:"object"==typeof C&&(_e=Object.assign({spinning:!0},C));const Ie=Rr()(ee,Q,`${G}-wrapper`,null==B?void 0:B.className,{[`${G}-wrapper-rtl`]:"rtl"===z},a,l,J),Me=Object.assign(Object.assign({},null==B?void 0:B.style),c),Te=void 0!==(null==_?void 0:_.emptyText)?_.emptyText:(null==H?void 0:H("Table"))||n.createElement(zw,{componentName:"Table"}),Ae=M?eX:ZY,Re={},De=n.useMemo(()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:o,paddingSM:i}=X,a=Math.floor(e*t);switch(K){case"middle":return 2*i+a+n;case"small":return 2*o+a+n;default:return 2*r+a+n}},[X,K]);return M&&(Re.listItemHeight=De),Z(n.createElement("div",{ref:ae,className:Ie,style:Me},n.createElement(rM,Object.assign({spinning:!1},_e),Pe,n.createElement(Ae,Object.assign({},Re,L,{ref:le,columns:D,direction:z,expandable:te,prefixCls:G,className:Rr()({[`${G}-middle`]:"middle"===K,[`${G}-small`]:"small"===K,[`${G}-bordered`]:u,[`${G}-empty`]:0===V.length},ee,Q,J),data:ke,rowKey:ce,rowClassName:(e,t,n)=>{let r;return r="function"==typeof v?Rr()(v(e,t,n)):Rr()(v),Rr()({[`${G}-row-selected`]:je.has(ce(e,t))},r)},emptyText:Te,internalHooks:lW,internalRefs:oe,transformColumns:$e,getContainerWidth:ie})),Ne)))},xX=n.forwardRef(yX),wX=(e,t)=>{const r=n.useRef(0);return r.current+=1,n.createElement(xX,Object.assign({},e,{ref:t,_renderTimes:r.current}))},SX=n.forwardRef(wX);SX.SELECTION_COLUMN=mV,SX.EXPAND_COLUMN=aW,SX.SELECTION_ALL=vV,SX.SELECTION_INVERT=gV,SX.SELECTION_NONE=bV,SX.Column=MK,SX.ColumnGroup=TK,SX.Summary=PW;const CX=SX;const OX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};var kX=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:OX}))}; | |
| 150 | +/** */const EX=n.forwardRef(kX);function jX(e){return jX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jX(e)}function $X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$X(Object(n),!0).forEach(function(t){NX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NX(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=jX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jX(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _X=vR.Title,IX=vR.Text,MX=vR.Link;const TX=function(){var e=[{title:"Feature",dataIndex:"feature",key:"feature",width:"50%",render:function(e,t){return t.isCategory?(0,i.jsx)(IX,{strong:!0,style:{fontSize:16,color:"#1f1f1f"},children:e}):(0,i.jsx)(IX,{style:{color:"#5a5a5a"},children:e})}},{title:"Free",dataIndex:"free",key:"free",align:"center",width:"25%",render:function(e,t){return!0===e?(0,i.jsx)(MS,{style:{color:"#52c41a",fontSize:20}}):!1===e?(0,i.jsx)(Ra,{style:{color:"#ff4d4f",fontSize:18}}):(0,i.jsx)(IX,{style:{fontSize:14},children:e})}},{title:"Pro",dataIndex:"pro",key:"pro",align:"center",width:"25%",render:function(e,t){return!0===e?(0,i.jsx)(MS,{style:{color:"#52c41a",fontSize:20}}):!1===e?(0,i.jsx)(Ra,{style:{color:"#ff4d4f",fontSize:18}}):(0,i.jsx)(IX,{style:{fontSize:14},children:e})}}],t=[{feature:"Page Template Builder",free:" ",pro:" ",isCategory:!0},{feature:"Shop Page",free:!0,pro:!0},{feature:"Category Archive",free:!0,pro:!0},{feature:"Product",free:!0,pro:!0},{feature:"Cart",free:!0,pro:!0},{feature:"Checkout",free:!0,pro:!0},{feature:"My Account and Inner Pages",free:!1,pro:!0},{feature:"Thank You / Order Received",free:!1,pro:!0},{feature:"Login / Register",free:!1,pro:!0},{feature:"Lost Password",free:!1,pro:!0},{feature:"Quick View Modal",free:!1,pro:!0},{feature:"Modules",free:" ",pro:" ",isCategory:!0},{feature:"Quick View",free:!0,pro:!0},{feature:"Compare",free:!0,pro:!0},{feature:"Wishlist",free:!0,pro:!0},{feature:"Partial Payment",free:!1,pro:!0},{feature:"Gift Card",free:!1,pro:!0},{feature:"Product Addon",free:!1,pro:!0},{feature:"Buy X Get Y | BOGO",free:!1,pro:!0},{feature:"Checkout Fields Editor",free:"Limited Features",pro:"Full Features"},{feature:"Shopify Style Checkout",free:"Limited Features",pro:"Full Features"},{feature:"Variation Swatches",free:"Limited Features",pro:"Full Features"},{feature:"Variation Gallery",free:"Limited Features",pro:"Full Features"},{feature:"Bulk Discounts",free:!1,pro:!0},{feature:"Smart Coupon",free:!1,pro:!0},{feature:"Sales Notification",free:!1,pro:!0},{feature:"Sticky Add to Cart",free:!1,pro:!0},{feature:"Flash Sale Countdown",free:!1,pro:!0},{feature:"Mini Cart",free:!1,pro:!0},{feature:"Quick Checkout",free:!1,pro:!0},{feature:"Multi-Step Checkout",free:!1,pro:!0},{feature:"Product Size Chart",free:!1,pro:!0},{feature:"Product Badges",free:"Limited Features",pro:"Full Features"},{feature:"Customize My Account",free:!1,pro:!0},{feature:"Pre-Order",free:!1,pro:!0},{feature:"Currency Switcher",free:!1,pro:!0},{feature:"Back Order",free:!1,pro:!0},{feature:"PDF Invoice",free:!1,pro:!0},{feature:"Abandonment Cart Recovery",free:"Limited Features",pro:"Full Features"},{feature:"Extended Cross Sell",free:!1,pro:!0}].map(function(e,t){return PX(PX({},e),{},{key:t+1})});return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:32,flexWrap:"wrap",gap:20},children:(0,i.jsxs)("div",{children:[(0,i.jsx)(_X,{level:2,style:{fontSize:"22px",lineHeight:1.2,color:"#242424",fontWeight:600,marginTop:0,marginBottom:5},children:"ShopBuilder Free VS Pro"}),(0,i.jsx)(IX,{type:"secondary",style:{fontSize:16},children:"Compare the features to find the best option for your website."})]})}),(0,i.jsx)(CX,{columns:e,dataSource:t,pagination:!1,bordered:!1,className:"free-vs-pro-table",rowClassName:function(e){return e.isCategory?"category-row":"feature-row"},style:{backgroundColor:"#fff",overflow:"hidden",boxShadow:"0 2px 8px rgba(0,0,0,0.08)"}}),(0,i.jsx)(rO,{style:{margin:0}}),(0,i.jsx)("div",{style:{textAlign:"center",padding:"24px 0",backgroundColor:"#fff",boxShadow:"0 2px 8px rgba(0,0,0,0.08)"},children:(0,i.jsxs)(MX,{href:"https://www.radiustheme.com/downloads/woocommerce-bundle/?utm_source=dashboard&utm_medium=side_banner&utm_campaign=free",target:"_blank",rel:"noopener noreferrer",style:{fontSize:16,fontWeight:500,color:"#6c5ce7",display:"inline-flex",alignItems:"center",gap:8},children:["See all ShopBuilder Pro Features",(0,i.jsx)(EX,{style:{fontSize:14}})]})}),(0,i.jsx)("style",{children:"\n .free-vs-pro-table .ant-table {\n font-size: 15px;\n }\n\n .free-vs-pro-table .ant-table-thead > tr > th {\n background-color: #fafafa;\n font-weight: 600;\n font-size: 16px;\n padding: 16px 20px;\n border-bottom: 2px solid #f0f0f0;\n }\n\n .free-vs-pro-table .category-row {\n background-color: #fafafa !important;\n }\n\n .free-vs-pro-table .category-row td {\n font-weight: 600;\n }\n\n .free-vs-pro-table .feature-row td {\n padding: 16px 20px;\n border-bottom: 1px solid #f5f5f5;\n }\n\n .free-vs-pro-table .feature-row:hover {\n background-color: #fafafa;\n }\n\n .free-vs-pro-table .ant-table-tbody > tr:last-child > td {\n border-bottom: none;\n }\n "})]})};function AX(e){return AX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AX(e)}function RX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RX(Object(n),!0).forEach(function(t){LX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LX(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=AX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=AX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==AX(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qX(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zX(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zX(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const BX=function(){var e,t,r,o,a,l=qX(c(),2),d=l[0],h=l[1],m=function(e,t){h({type:u,value:{saving:!0}});for(var n=!1,r=e||d.data,o=new FormData,i=function(){var e=qX(l[a],2),t=e[0],r=e[1];if("email_template"===t)return r.length>0&&function(e){return fH.apply(this,arguments)}(r).then(function(e){null!=e&&e.message&&wc.success({message:e.message,placement:"bottomRight"}),console.log("emailSave.message ",e.message),localStorage.setItem("saved_email_template",!0)}).catch(function(e){console.error("Error:",e)}),1;if(console.log("Change Found - _key",t),n=!0,Array.isArray(r))r.length?r.map(function(e){var n=e;"object"===AX(e)&&null!==e&&(n=JSON.stringify(e)),o.append("options["+t+"][]",n)}):o.append("options["+t+"]",[]);else if("object"===AX(r)&&null!==r){var i=JSON.stringify(r);o.append("options["+t+"]",i)}else o.append("options["+t+"]",r)},a=0,l=Object.entries(r.options);a<l.length;a++)i();o.append("section_id",r.section_id),o.append("block_id",r.block_id),o.append("action","rtsb_save_settings_data"),o.append("__rtsb_wpnonce",rtsbParams.nonce),n?jQuery.ajax({cache:!1,processData:!1,contentType:!1,dataType:"json",url:rtsbParams.ajaxurl,data:o,method:"POST",success:function(e){e.success?(wc.success({message:e.data.message,placement:"bottomRight"}),h({type:u,value:{saving:!1,callSave:!1,dirty:!1,placement:"bottomRight"}}),h({type:u,value:{modalVisible:!1}})):(wc.error({message:e.data.message,placement:"bottomRight"}),h({type:u,value:{saving:!1,callSave:!1}})),t&&t()},error:function(e){console.log(e),wc.error({message:e.message,placement:"bottomRight"}),h({type:u,value:{saving:!1,callSave:!1}}),t&&t()}}):h({type:u,value:{saving:!1,callSave:!1,dirty:!1,placement:"bottomRight"}})};return(0,n.useEffect)(function(){d.callSave&&!d.saving&&m()},[d.callSave]),(0,i.jsxs)("div",{className:"rtsb-settings-page-wrapper",children:[(0,i.jsxs)("div",{className:"rtsb-header-area",children:[(0,i.jsx)("div",{className:"rtsb-header-logo-wrap",children:(0,i.jsx)("img",{src:rtsbParams.adminLogo,alt:"ShopBuilder",loading:"lazy"})}),(0,i.jsx)("div",{className:"rtsb-header-title-wrap",children:(0,i.jsx)("h1",{className:"rtsb-title",children:"ShopBuilder Settings"})})]}),(0,i.jsxs)(xg,{gap:"middle",align:"start",wrap:!0,children:[(0,i.jsxs)("div",{className:"rtsb-settings-tabs-wrap",children:[rtsbParams.isOptimizationEnabled&&(0,i.jsxs)("div",{className:"rtsb-optimization-notice",children:[(0,i.jsxs)("p",{style:{marginBottom:"10px"},children:["⚠️ ",(0,i.jsx)("strong",{children:"Important:"})," Asset Optimization dynamically bundles resources based on your ",(0,i.jsx)("strong",{children:"active modules and Elementor widgets "}),". Unused assets are excluded to improve performance."]}),(0,i.jsx)("p",{style:{marginTop:0,marginBottom:0},children:"*️⃣ Action Required"}),(0,i.jsx)("span",{style:{display:"block",marginLeft:"25px",fontSize:"14px"},children:"If you enable or disable any module/widget, you must refresh the environment to apply changes "}),(0,i.jsxs)("ul",{style:{marginTop:"10px"},children:[(0,i.jsxs)("li",{children:["➞ ",(0,i.jsx)("b",{children:"Purge ShopBuilder Cache"})," via the Admin Bar menu."]}),(0,i.jsxs)("li",{children:["➞ ",(0,i.jsx)("b",{children:"Clear Third-Party Caches"})," ( e.g., WP Rocket, LiteSpeed Cache, Cloudflare, etc. )"]}),(0,i.jsxs)("li",{children:["➞ ",(0,i.jsx)("b",{children:"Clear Browser Cache"})," or view the site in Incognito mode to verify the update."]})]})]}),(0,i.jsx)("div",{className:"rtsb-tabs-nav-wrap",children:(0,i.jsxs)("ul",{className:"rtsb-tab-list",children:[Object.keys(d.sections).map(function(e){return(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:"#",onClick:function(t){t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),localStorage.setItem("rtsb_selected_section_nav",e),h({type:p,id:f,value:e})},className:"rtsb-button".concat(e===d.data.section_id?" active":""),children:(0,i.jsx)("span",{children:d.sections[e].title})})},e)}),(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:"#",onClick:function(e){e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),localStorage.setItem("rtsb_selected_section_nav","free_vs_pro"),h({type:p,id:f,value:"free_vs_pro"})},className:"rtsb-button".concat("free_vs_pro"===(null===(e=d.data)||void 0===e?void 0:e.section_id)?" active":""),children:(0,i.jsx)("span",{children:" Free vs Pro "})})},"free_vs_pro")]})}),(0,i.jsxs)("div",{className:"rtsb-tabs-content-wrap",children:[(0,i.jsx)("div",{className:"rtsb-settings-tab-content rtsb-settings-".concat(d.data.section_id," ").concat("elements"!==localStorage.getItem("rtsb_selected_section_nav")||rtsbParams.hasElementor&&rtsbParams.loadElementor?"elementor-activated":"elementor-not-activated"),children:"free_vs_pro"===(null===(t=d.data)||void 0===t?void 0:t.section_id)?(0,i.jsx)(TX,{}):(0,i.jsx)(DF,{id:d.data.section_id,saveData:m})}),"elements"===localStorage.getItem("rtsb_selected_section_nav")&&(rtsbParams.hasElementor?rtsbParams.loadElementor?null:(0,i.jsx)(iq,{size:"small",className:"rtsb-no-elementor-notice",style:{width:500},children:(0,i.jsxs)("div",{className:"rtsb-settings-card-content-wrapper",children:["Elementor is installed, but script loading is disabled.",(0,i.jsx)("br",{}),"Enable it in"," ",(0,i.jsx)("strong",{children:"Advanced Optimization Settings"})," ","to use Elementor Widgets."]})}):(0,i.jsx)(iq,{size:"small",className:"rtsb-no-elementor-notice",style:{width:500},children:(0,i.jsxs)("div",{className:"rtsb-settings-card-content-wrapper",children:["To use Elementor Widgets, please install and activate the"," ",(0,i.jsx)("strong",{children:"Elementor Website Builder"})," ","plugin."]})}))]})]}),"yes"!==(null===(r=rtsbParams)||void 0===r?void 0:r.validLicence)&&(0,i.jsx)(iW,{})]}),"yes"!==rtsbParams.hasPro&&(0,i.jsx)(LF,{visible:null==d||null===(o=d.general)||void 0===o?void 0:o.proInfoVisible,setVisible:function(e){h({type:s,general:DX(DX({},d.general),{},{proInfoVisible:e})})}}),"yes"===rtsbParams.hasPro&&(0,i.jsx)(qF,{visible:null==d||null===(a=d.general)||void 0===a?void 0:a.proFailVisible,setVisible:function(e){h({type:s,general:DX(DX({},d.general),{},{proFailVisible:e})})}})]})}; | |
| 151 | +/** | |
| 152 | + * @remix-run/router v1.23.0 | |
| 153 | + * | |
| 154 | + * Copyright (c) Remix Software Inc. | |
| 155 | + * | |
| 156 | + * This source code is licensed under the MIT license found in the | |
| 157 | + * LICENSE.md file in the root directory of this source tree. | |
| 158 | + * | |
| 159 | + * @license MIT | |
| 160 | + */ | |
| 161 | +function HX(){return HX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HX.apply(this,arguments)}var FX;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(FX||(FX={}));const WX="popstate";function KX(e,t){if(!1===e||null==e)throw new Error(t)}function UX(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function VX(e,t){return{usr:e.state,key:e.key,idx:t}}function GX(e,t,n,r){return void 0===n&&(n=null),HX({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?XX(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function YX(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function XX(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function QX(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=FX.Pop,c=null,s=u();function u(){return(a.state||{idx:null}).idx}function d(){l=FX.Pop;let e=u(),t=null==e?null:e-s;s=e,c&&c({action:l,location:p.location,delta:t})}function f(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:YX(e);return n=n.replace(/ $/,"%20"),KX(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==s&&(s=0,a.replaceState(HX({},a.state,{idx:s}),""));let p={get action(){return l},get location(){return e(o,a)},listen(e){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(WX,d),c=e,()=>{o.removeEventListener(WX,d),c=null}},createHref:e=>t(o,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=FX.Push;let r=GX(p.location,e,t);n&&n(r,e),s=u()+1;let d=VX(r,s),f=p.createHref(r);try{a.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}i&&c&&c({action:l,location:p.location,delta:1})},replace:function(e,t){l=FX.Replace;let r=GX(p.location,e,t);n&&n(r,e),s=u();let o=VX(r,s),d=p.createHref(r);a.replaceState(o,"",d),i&&c&&c({action:l,location:p.location,delta:0})},go:e=>a.go(e)};return p}var ZX;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ZX||(ZX={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function JX(e,t,n){return void 0===n&&(n="/"),eQ(e,t,n,!1)}function eQ(e,t,n,r){let o=hQ(("string"==typeof t?XX(t):t).pathname||"/",n);if(null==o)return null;let i=tQ(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=pQ(o);a=dQ(i[e],t,r)}return a}function tQ(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(KX(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let l=yQ([r,a.relativePath]),c=n.concat(a);e.children&&e.children.length>0&&(KX(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),tQ(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:uQ(l,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of nQ(e.path))o(e,t,n);else o(e,t)}),t}function nQ(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=nQ(r.join("/")),l=[];return l.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&l.push(...a),l.map(t=>e.startsWith("/")&&""===t?"/":t)}const rQ=/^:[\w-]+$/,oQ=3,iQ=2,aQ=1,lQ=10,cQ=-2,sQ=e=>"*"===e;function uQ(e,t){let n=e.split("/"),r=n.length;return n.some(sQ)&&(r+=cQ),t&&(r+=iQ),n.filter(e=>!sQ(e)).reduce((e,t)=>e+(rQ.test(t)?oQ:""===t?aQ:lQ),r)}function dQ(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let l=r[e],c=e===r.length-1,s="/"===i?t:t.slice(i.length)||"/",u=fQ({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},s),d=l.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=fQ({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},s)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:yQ([i,u.pathname]),pathnameBase:xQ(yQ([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=yQ([i,u.pathnameBase]))}return a}function fQ(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);UX("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1),c=r.reduce((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=l[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const c=l[n];return e[r]=o&&!c?void 0:(c||"").replace(/%2F/g,"/"),e},{});return{params:c,pathname:i,pathnameBase:a,pattern:e}}function pQ(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return UX(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function hQ(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function mQ(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function vQ(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function gQ(e,t){let n=vQ(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function bQ(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=XX(e):(o=HX({},e),KX(!o.pathname||!o.pathname.includes("?"),mQ("?","pathname","search",o)),KX(!o.pathname||!o.pathname.includes("#"),mQ("#","pathname","hash",o)),KX(!o.search||!o.search.includes("#"),mQ("#","search","hash",o)));let i,a=""===e||""===o.pathname,l=a?"/":o.pathname;if(null==l)i=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?XX(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:wQ(r),hash:SQ(o)}}(o,i),s=l&&"/"!==l&&l.endsWith("/"),u=(a||"."===l)&&n.endsWith("/");return c.pathname.endsWith("/")||!s&&!u||(c.pathname+="/"),c}const yQ=e=>e.join("/").replace(/\/\/+/g,"/"),xQ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wQ=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",SQ=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function CQ(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const OQ=["post","put","patch","delete"],kQ=(new Set(OQ),["get",...OQ]);new Set(kQ),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred"); | |
| 162 | +/** | |
| 163 | + * React Router v6.30.1 | |
| 164 | + * | |
| 165 | + * Copyright (c) Remix Software Inc. | |
| 166 | + * | |
| 167 | + * This source code is licensed under the MIT license found in the | |
| 168 | + * LICENSE.md file in the root directory of this source tree. | |
| 169 | + * | |
| 170 | + * @license MIT | |
| 171 | + */ | |
| 172 | +function EQ(){return EQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EQ.apply(this,arguments)}const jQ=n.createContext(null);const $Q=n.createContext(null);const PQ=n.createContext(null);const NQ=n.createContext(null);const _Q=n.createContext({outlet:null,matches:[],isDataRoute:!1});const IQ=n.createContext(null);function MQ(){return null!=n.useContext(NQ)}function TQ(){return MQ()||KX(!1),n.useContext(NQ).location}function AQ(e){n.useContext(PQ).static||n.useLayoutEffect(e)}function RQ(){let{isDataRoute:e}=n.useContext(_Q);return e?function(){let{router:e}=VQ(KQ.UseNavigateStable),t=YQ(UQ.UseNavigateStable),r=n.useRef(!1);AQ(()=>{r.current=!0});let o=n.useCallback(function(n,o){void 0===o&&(o={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,EQ({fromRouteId:t},o)))},[e,t]);return o}():function(){MQ()||KX(!1);let e=n.useContext(jQ),{basename:t,future:r,navigator:o}=n.useContext(PQ),{matches:i}=n.useContext(_Q),{pathname:a}=TQ(),l=JSON.stringify(gQ(i,r.v7_relativeSplatPath)),c=n.useRef(!1);AQ(()=>{c.current=!0});let s=n.useCallback(function(n,r){if(void 0===r&&(r={}),!c.current)return;if("number"==typeof n)return void o.go(n);let i=bQ(n,JSON.parse(l),a,"path"===r.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:yQ([t,i.pathname])),(r.replace?o.replace:o.push)(i,r.state,r)},[t,o,l,a,e]);return s}()}function DQ(){let{matches:e}=n.useContext(_Q),t=e[e.length-1];return t?t.params:{}}function LQ(e,t){let{relative:r}=void 0===t?{}:t,{future:o}=n.useContext(PQ),{matches:i}=n.useContext(_Q),{pathname:a}=TQ(),l=JSON.stringify(gQ(i,o.v7_relativeSplatPath));return n.useMemo(()=>bQ(e,JSON.parse(l),a,"path"===r),[e,l,a,r])}function qQ(e,t,r,o){MQ()||KX(!1);let{navigator:i}=n.useContext(PQ),{matches:a}=n.useContext(_Q),l=a[a.length-1],c=l?l.params:{},s=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let u,d=TQ();if(t){var f;let e="string"==typeof t?XX(t):t;"/"===s||(null==(f=e.pathname)?void 0:f.startsWith(s))||KX(!1),u=e}else u=d;let p=u.pathname||"/",h=p;if("/"!==s){let e=s.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let m=JX(e,{pathname:h});let v=WQ(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:yQ([s,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?s:yQ([s,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,r,o);return t&&v?n.createElement(NQ.Provider,{value:{location:EQ({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:FX.Pop}},v):v}function zQ(){let e=function(){var e;let t=n.useContext(IQ),r=GQ(UQ.UseRouteError),o=YQ(UQ.UseRouteError);if(void 0!==t)return t;return null==(e=r.errors)?void 0:e[o]}(),t=CQ(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:i},r):null,null)}const BQ=n.createElement(zQ,null);class HQ extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(_Q.Provider,{value:this.props.routeContext},n.createElement(IQ.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function FQ(e){let{routeContext:t,match:r,children:o}=e,i=n.useContext(jQ);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement(_Q.Provider,{value:t},o)}function WQ(e,t,r,o){var i;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===o&&(o=null),null==e){var a;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(a=o)&&a.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let l=e,c=null==(i=r)?void 0:i.errors;if(null!=c){let e=l.findIndex(e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id]));e>=0||KX(!1),l=l.slice(0,Math.min(l.length,e+1))}let s=!1,u=-1;if(r&&o&&o.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){s=!0,l=u>=0?l.slice(0,u+1):[l[0]];break}}}return l.reduceRight((e,o,i)=>{let a,d=!1,f=null,p=null;r&&(a=c&&o.route.id?c[o.route.id]:void 0,f=o.route.errorElement||BQ,s&&(u<0&&0===i?(!function(e,t){t||XQ[e]||(XQ[e]=!0)}("route-fallback",!1),d=!0,p=null):u===i&&(d=!0,p=o.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,i+1)),m=()=>{let t;return t=a?f:d?p:o.route.Component?n.createElement(o.route.Component,null):o.route.element?o.route.element:e,n.createElement(FQ,{match:o,routeContext:{outlet:e,matches:h,isDataRoute:null!=r},children:t})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?n.createElement(HQ,{location:r.location,revalidation:r.revalidation,component:f,error:a,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var KQ=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(KQ||{}),UQ=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(UQ||{});function VQ(e){let t=n.useContext(jQ);return t||KX(!1),t}function GQ(e){let t=n.useContext($Q);return t||KX(!1),t}function YQ(e){let t=function(){let e=n.useContext(_Q);return e||KX(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||KX(!1),r.route.id}const XQ={};function QQ(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}r.startTransition;function ZQ(e){let{to:t,replace:r,state:o,relative:i}=e;MQ()||KX(!1);let{future:a,static:l}=n.useContext(PQ),{matches:c}=n.useContext(_Q),{pathname:s}=TQ(),u=RQ(),d=bQ(t,gQ(c,a.v7_relativeSplatPath),s,"path"===i),f=JSON.stringify(d);return n.useEffect(()=>u(JSON.parse(f),{replace:r,state:o,relative:i}),[u,f,i,r,o]),null}function JQ(e){KX(!1)}function eZ(e){let{basename:t="/",children:r=null,location:o,navigationType:i=FX.Pop,navigator:a,static:l=!1,future:c}=e;MQ()&&KX(!1);let s=t.replace(/^\/*/,"/"),u=n.useMemo(()=>({basename:s,navigator:a,static:l,future:EQ({v7_relativeSplatPath:!1},c)}),[s,c,a,l]);"string"==typeof o&&(o=XX(o));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:m="default"}=o,v=n.useMemo(()=>{let e=hQ(d,s);return null==e?null:{location:{pathname:e,search:f,hash:p,state:h,key:m},navigationType:i}},[s,d,f,p,h,m,i]);return null==v?null:n.createElement(PQ.Provider,{value:u},n.createElement(NQ.Provider,{children:r,value:v}))}function tZ(e){let{children:t,location:n}=e;return qQ(nZ(t),n)}new Promise(()=>{});n.Component;function nZ(e,t){void 0===t&&(t=[]);let r=[];return n.Children.forEach(e,(e,o)=>{if(!n.isValidElement(e))return;let i=[...t,o];if(e.type===n.Fragment)return void r.push.apply(r,nZ(e.props.children,i));e.type!==JQ&&KX(!1),e.props.index&&e.props.children&&KX(!1);let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=nZ(e.props.children,i)),r.push(a)}),r} | |
| 173 | +/** | |
| 174 | + * React Router DOM v6.30.1 | |
| 175 | + * | |
| 176 | + * Copyright (c) Remix Software Inc. | |
| 177 | + * | |
| 178 | + * This source code is licensed under the MIT license found in the | |
| 179 | + * LICENSE.md file in the root directory of this source tree. | |
| 180 | + * | |
| 181 | + * @license MIT | |
| 182 | + */ | |
| 183 | +function rZ(){return rZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rZ.apply(this,arguments)}function oZ(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const iZ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}new Map;const aZ=r.startTransition;Lr.flushSync,r.useId;function lZ(e){let{basename:t,children:r,future:o,window:i}=e,a=n.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),QX(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=XX(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),GX("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:YX(t))},function(e,t){UX("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}({window:i,v5Compat:!0}));let l=a.current,[c,s]=n.useState({action:l.action,location:l.location}),{v7_startTransition:u}=o||{},d=n.useCallback(e=>{u&&aZ?aZ(()=>s(e)):s(e)},[s,u]);return n.useLayoutEffect(()=>l.listen(d),[l,d]),n.useEffect(()=>QQ(o),[o]),n.createElement(eZ,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:l,future:o})}const cZ="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,sZ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uZ=n.forwardRef(function(e,t){let r,{onClick:o,relative:i,reloadDocument:a,replace:l,state:c,target:s,to:u,preventScrollReset:d,viewTransition:f}=e,p=oZ(e,iZ),{basename:h}=n.useContext(PQ),m=!1;if("string"==typeof u&&sZ.test(u)&&(r=u,cZ))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=hQ(t.pathname,h);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:m=!0}catch(e){}let v=function(e,t){let{relative:r}=void 0===t?{}:t;MQ()||KX(!1);let{basename:o,navigator:i}=n.useContext(PQ),{hash:a,pathname:l,search:c}=LQ(e,{relative:r}),s=l;return"/"!==o&&(s="/"===l?o:yQ([o,l])),i.createHref({pathname:s,search:c,hash:a})}(u,{relative:i}),g=function(e,t){let{target:r,replace:o,state:i,preventScrollReset:a,relative:l,viewTransition:c}=void 0===t?{}:t,s=RQ(),u=TQ(),d=LQ(e,{relative:l});return n.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let n=void 0!==o?o:YX(u)===YX(d);s(e,{replace:n,state:i,preventScrollReset:a,relative:l,viewTransition:c})}},[u,s,d,o,i,r,e,a,l,c])}(u,{replace:l,state:c,target:s,preventScrollReset:d,relative:i,viewTransition:f});return n.createElement("a",rZ({},p,{href:r||v,onClick:m||a?o:function(e){o&&o(e),e.defaultPrevented||g(e)},ref:t,target:s}))});var dZ,fZ;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(dZ||(dZ={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(fZ||(fZ={}));var pZ=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function hZ({suffixCls:e,tagName:t,displayName:r}){return r=>n.forwardRef((o,i)=>n.createElement(r,Object.assign({ref:i,suffixCls:e,tagName:t},o)))}const mZ=n.forwardRef((e,t)=>{const{prefixCls:r,suffixCls:o,className:i,tagName:a}=e,l=pZ(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=n.useContext(x),s=c("layout",r),[u,d,f]=SU(s),p=o?`${s}-${o}`:s;return u(n.createElement(a,Object.assign({className:Rr()(r||p,i,d,f),ref:t},l)))}),vZ=n.forwardRef((e,t)=>{const{direction:r}=n.useContext(x),[o,i]=n.useState([]),{prefixCls:a,className:l,rootClassName:c,children:s,hasSider:u,tagName:d,style:f}=e,p=Sc(pZ(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:h,className:m,style:v}=C("layout"),g=h("layout",a),b=function(e,t,n){return"boolean"==typeof n?n:!!e.length||Dc(t).some(e=>e.type===NU)}(o,s,u),[y,w,S]=SU(g),O=Rr()(g,{[`${g}-has-sider`]:b,[`${g}-rtl`]:"rtl"===r},m,l,c,w,S),k=n.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(M(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return y(n.createElement(bU.Provider,{value:k},n.createElement(d,Object.assign({ref:t,className:O,style:Object.assign(Object.assign({},v),f)},p),s)))}),gZ=hZ({tagName:"div",displayName:"Layout"})(vZ),bZ=hZ({suffixCls:"header",tagName:"header",displayName:"Header"})(mZ),yZ=hZ({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(mZ),xZ=hZ({suffixCls:"content",tagName:"main",displayName:"Content"})(mZ),wZ=gZ;wZ.Header=bZ,wZ.Footer=yZ,wZ.Content=xZ,wZ.Sider=NU,wZ._InternalSiderContext=jU;const SZ=wZ,CZ=new Zt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),OZ=new Zt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),kZ=new Zt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),EZ=new Zt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),jZ=new Zt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),$Z=new Zt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),PZ=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e;return $l(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorTextLightSolid,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},NZ=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},_Z=ql("Badge",e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:c,textFontWeight:s,indicatorHeight:u,indicatorHeightSM:d,marginXS:f,calc:p}=e,h=`${r}-scroll-number`,m=Uh(e,(e,{darkColor:n})=>({[`&${t} ${t}-color-${e}`]:{background:n,[`&:not(${t}-count)`]:{color:n},"a:hover &":{background:n}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:s,fontSize:i,lineHeight:$e(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${$e(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:$e(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${$e(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${$e(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:$Z,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:CZ,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:f,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:OZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:kZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:EZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:jZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(PZ(e)),NZ),IZ=ql(["Badge","Ribbon"],e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=Uh(e,(e,{darkColor:t})=>({[`&${a}-color-${e}`]:{background:t,color:t}}));return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e)),{position:"absolute",top:r,padding:`0 ${$e(e.paddingXS)}`,color:e.colorPrimary,lineHeight:$e(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${$e(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(PZ(e)),NZ);const MZ=e=>{const{className:t,prefixCls:r,style:o,color:i,children:a,text:l,placement:c="end",rootClassName:s}=e,{getPrefixCls:u,direction:d}=n.useContext(x),f=u("ribbon",r),p=`${f}-wrapper`,[h,m,v]=IZ(f,p),g=Zh(i,!1),b=Rr()(f,`${f}-placement-${c}`,{[`${f}-rtl`]:"rtl"===d,[`${f}-color-${i}`]:g},t),y={},w={};return i&&!g&&(y.background=i,w.color=i),h(n.createElement("div",{className:Rr()(p,s,m,v)},a,n.createElement("div",{className:Rr()(b,m),style:Object.assign(Object.assign({},y),o)},n.createElement("span",{className:`${f}-text`},l),n.createElement("div",{className:`${f}-corner`,style:w}))))},TZ=e=>{const{prefixCls:t,value:r,current:o,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),n.createElement("span",{style:a,className:Rr()(`${t}-only-unit`,{current:o})},r)};function AZ(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const RZ=e=>{const{prefixCls:t,count:r,value:o}=e,i=Number(o),a=Math.abs(r),[l,c]=n.useState(i),[s,u]=n.useState(a),d=()=>{c(i),u(a)};let f,p;if(n.useEffect(()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)},[i]),l===i||Number.isNaN(i)||Number.isNaN(l))f=[n.createElement(TZ,Object.assign({},e,{key:i,current:!0}))],p={transition:"none"};else{f=[];const t=i+10,r=[];for(let e=i;e<=t;e+=1)r.push(e);const o=s<a?1:-1,c=r.findIndex(e=>e%10===l);f=(o<0?r.slice(0,c+1):r.slice(c)).map((t,r)=>{const i=t%10;return n.createElement(TZ,Object.assign({},e,{key:t,value:i,offset:o<0?r-c:r,current:r===c}))}),p={transform:`translateY(${-AZ(l,i,o)}00%)`}}return n.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:d},f)};var DZ=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const LZ=n.forwardRef((e,t)=>{const{prefixCls:r,count:o,className:i,motionClassName:a,style:l,title:c,show:s,component:u="sup",children:d}=e,f=DZ(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=n.useContext(x),h=p("scroll-number",r),m=Object.assign(Object.assign({},f),{"data-show":s,style:l,className:Rr()(h,i,a),title:c});let v=o;if(o&&Number(o)%1==0){const e=String(o).split("");v=n.createElement("bdi",null,e.map((t,r)=>n.createElement(RZ,{prefixCls:h,count:Number(o),value:t,key:e.length-r})))}return(null==l?void 0:l.borderColor)&&(m.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),d?Ec(d,e=>({className:Rr()(`${h}-custom-component`,null==e?void 0:e.className,a)})):n.createElement(u,Object.assign({},m,{ref:t}),v)}),qZ=LZ;var zZ=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const BZ=n.forwardRef((e,t)=>{var r,o,i,a,l;const{prefixCls:c,scrollNumberPrefixCls:s,children:u,status:d,text:f,color:p,count:h=null,overflowCount:m=99,dot:v=!1,size:g="default",title:b,offset:y,style:w,className:S,rootClassName:C,classNames:O,styles:k,showZero:E=!1}=e,j=zZ(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:$,direction:P,badge:N}=n.useContext(x),_=$("badge",c),[I,M,T]=_Z(_),A=h>m?`${m}+`:h,R="0"===A||0===A,D=(null!=d||null!=p)&&(null===h||R&&!E),L=v&&!R,q=L?"":A,z=(0,n.useMemo)(()=>(null==q||""===q||R&&!E)&&!L,[q,R,E,L]),B=(0,n.useRef)(h);z||(B.current=h);const H=B.current,F=(0,n.useRef)(q);z||(F.current=q);const W=F.current,K=(0,n.useRef)(L);z||(K.current=L);const U=(0,n.useMemo)(()=>{if(!y)return Object.assign(Object.assign({},null==N?void 0:N.style),w);const e={marginTop:y[1]};return"rtl"===P?e.left=parseInt(y[0],10):e.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},e),null==N?void 0:N.style),w)},[P,y,w,null==N?void 0:N.style]),V=null!=b?b:"string"==typeof H||"number"==typeof H?H:void 0,G=z||!f?null:n.createElement("span",{className:`${_}-status-text`},f),Y=H&&"object"==typeof H?Ec(H,e=>({style:Object.assign(Object.assign({},U),e.style)})):void 0,X=Zh(p,!1),Q=Rr()(null==O?void 0:O.indicator,null===(r=null==N?void 0:N.classNames)||void 0===r?void 0:r.indicator,{[`${_}-status-dot`]:D,[`${_}-status-${d}`]:!!d,[`${_}-color-${p}`]:X}),Z={};p&&!X&&(Z.color=p,Z.background=p);const J=Rr()(_,{[`${_}-status`]:D,[`${_}-not-a-wrapper`]:!u,[`${_}-rtl`]:"rtl"===P},S,C,null==N?void 0:N.className,null===(o=null==N?void 0:N.classNames)||void 0===o?void 0:o.root,null==O?void 0:O.root,M,T);if(!u&&D){const e=U.color;return I(n.createElement("span",Object.assign({},j,{className:J,style:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.root),null===(i=null==N?void 0:N.styles)||void 0===i?void 0:i.root),U)}),n.createElement("span",{className:Q,style:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.indicator),null===(a=null==N?void 0:N.styles)||void 0===a?void 0:a.indicator),Z)}),f&&n.createElement("span",{style:{color:e},className:`${_}-status-text`},f)))}return I(n.createElement("span",Object.assign({ref:t},j,{className:J,style:Object.assign(Object.assign({},null===(l=null==N?void 0:N.styles)||void 0===l?void 0:l.root),null==k?void 0:k.root)}),u,n.createElement(si,{visible:!z,motionName:`${_}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:e})=>{var t,r;const o=$("scroll-number",s),i=K.current,a=Rr()(null==O?void 0:O.indicator,null===(t=null==N?void 0:N.classNames)||void 0===t?void 0:t.indicator,{[`${_}-dot`]:i,[`${_}-count`]:!i,[`${_}-count-sm`]:"small"===g,[`${_}-multiple-words`]:!i&&W&&W.toString().length>1,[`${_}-status-${d}`]:!!d,[`${_}-color-${p}`]:X});let l=Object.assign(Object.assign(Object.assign({},null==k?void 0:k.indicator),null===(r=null==N?void 0:N.styles)||void 0===r?void 0:r.indicator),U);return p&&!X&&(l=l||{},l.background=p),n.createElement(qZ,{prefixCls:o,show:!z,motionClassName:e,className:a,count:W,title:V,style:l,key:"scrollNumber"},Y)}),G))}),HZ=BZ;HZ.Ribbon=MZ;const FZ=HZ;const WZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"};var KZ=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:WZ}))}; | |
| 184 | +/** */const UZ=n.forwardRef(KZ);function VZ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return GZ(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GZ(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var YZ=SZ.Header;const XZ=function(){var e=TQ().pathname,t=VZ(c(),2),n=(t[0],t[1],{borderRadius:0,paddingInline:"25px",display:"inline-flex",alignItems:"center",fontSize:"15px"}),r={fontSize:"18px"},o=["/export","/import"].includes(String(e))?"/exportImport":e,a=[{key:"/",label:(0,i.jsx)(uZ,{to:"/",children:" Overview "}),icon:(0,i.jsx)(UZ,{style:r}),style:n},{key:"/emailTemplates",label:(0,i.jsx)(uZ,{to:"/emailTemplates",children:" Email Templates "}),icon:(0,i.jsx)(UZ,{style:r}),style:n},{key:"/followUp",label:(0,i.jsx)(uZ,{to:"/followUp",children:" Follow Up "}),icon:(0,i.jsx)(Jb,{style:r}),style:n}];return(0,i.jsx)(YZ,{className:"header",style:{paddingInline:0},children:(0,i.jsx)(rV,{mode:"horizontal",defaultSelectedKeys:[o],items:a})})};function QZ(e){return QZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QZ(e)}function ZZ(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return JZ(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(JZ(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,JZ(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,JZ(d,"constructor",s),JZ(s,"constructor",c),c.displayName="GeneratorFunction",JZ(s,o,"GeneratorFunction"),JZ(d),JZ(d,o,"Generator"),JZ(d,r,function(){return this}),JZ(d,"toString",function(){return"[object Generator]"}),(ZZ=function(){return{w:i,m:f}})()}function JZ(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}JZ=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){JZ(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},JZ(e,t,n,r)}function eJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eJ(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nJ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=QZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=QZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==QZ(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rJ(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function oJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return iJ(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iJ(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var aJ=vR.Title,lJ=[{title:"Template Name",dataIndex:"TemplateName"},{title:"Trigger After",dataIndex:"TriggerAfter"},{title:"Sent",dataIndex:"Sent",render:function(e,t){return"yes"===rtsbParams.hasPro?e:(0,i.jsx)(od,{size:"small",color:"danger",variant:"outlined",children:" PRO "})}},{title:"Open Rate",dataIndex:"OpenRate",render:function(e,t){return"yes"===rtsbParams.hasPro?e:(0,i.jsx)(od,{size:"small",color:"danger",variant:"outlined",children:" PRO "})}},{title:"ClickRate",dataIndex:"ClickRate",render:function(e,t){return"yes"===rtsbParams.hasPro?e:(0,i.jsx)(od,{size:"small",color:"danger",variant:"outlined",children:" PRO "})}},{title:"Unsubscribed",dataIndex:"Unsubscribed",render:function(e,t){return"yes"===rtsbParams.hasPro?e:(0,i.jsx)(od,{size:"small",color:"danger",variant:"outlined",children:" PRO "})}},{title:"Status",dataIndex:"status",render:function(e,t){return"on"===t.status?(0,i.jsx)(FZ,{status:"success",text:"Active"}):(0,i.jsx)(FZ,{status:"warning",text:"Paused"})}}];const cJ=function(){var e=oJ(c(),2),t=e[0],r=e[1],o=oJ((0,n.useState)([]),2),a=o[0],l=o[1],u=oJ((0,n.useState)(!1),2),d=u[0],f=u[1],p=function(e,t){if(t<=0)return 0;var n=e/t*100;return n>0?n.toFixed(0):0},h=function(){var e,n=(e=ZZ().m(function e(){var n,o,i,a,c;return ZZ().w(function(e){for(;;)switch(e.n){case 0:if(!(null!==(n=t.general)&&void 0!==n&&n.emailTemplates&&(null===(o=t.general)||void 0===o?void 0:o.emailTemplates.length)>0)){e.n=1;break}return l(t.general.emailTemplates),e.a(2);case 1:return f(!0),e.n=2,pH();case 2:i=e.v,a=i.length>0?i:lH,c=a.map(function(e,t){var n,r,o,i,a=e.frequency_unit.toLowerCase(),l={day:"Days",hour:"Hours",minute:"Minutes"},c=e.frequency>1&&l[a]?l[a]:a,s=e.meta,u=parseInt(null!==(n=null==s?void 0:s.email_send_total)&&void 0!==n?n:0,10),d=parseInt(null!==(r=null==s?void 0:s.unsubscribed_count)&&void 0!==r?r:0,10),f=parseInt(null!==(o=null==s?void 0:s.email_opened_count)&&void 0!==o?o:0,10),h=parseInt(null!==(i=null==s?void 0:s.email_click_count)&&void 0!==i?i:0,10),m=p(d,u),v=p(f,u),g=p(h,u);return{key:e.id||t,TemplateName:e.title,TriggerAfter:"".concat(e.frequency," ").concat(c),Sent:u||0,OpenRate:v?"".concat(v,"%"):"0",ClickRate:g?"".concat(g,"%"):"0",Unsubscribed:m?"".concat(m,"%"):"0",status:e.is_activated}}),l(c),r({type:s,general:tJ(tJ({},t.general),{},{emailTemplates:c})}),setTimeout(function(){f(!1)},500);case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){rJ(i,r,o,a,l,"next",e)}function l(e){rJ(i,r,o,a,l,"throw",e)}a(void 0)})});return function(){return n.apply(this,arguments)}}();return(0,n.useEffect)(function(){h()},[]),(0,i.jsxs)("div",{className:"rtsb-cart-tracking-page-wrapper",children:[(0,i.jsx)(XZ,{}),(0,i.jsx)(SZ,{className:"tttme-App",style:{padding:"0",background:"#fff",borderRadius:"5px",boxShadow:"0 4px 40px rgb(0 0 0 / 5%)",minHeight:"100vh"},children:(0,i.jsxs)(iq,{bordered:!1,style:{borderRadius:"8px",boxShadow:"0 1px 2px rgba(0,0,0,0.03)",padding:0},children:[(0,i.jsx)(aJ,{className:"rtsb-cart-tracking-page-title",level:5,children:"Follow Up Email Templates"}),(0,i.jsx)(rO,{}),(0,i.jsx)(CX,{loading:d,columns:lJ,dataSource:a})]})})]})},sJ=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:m,contentPadding:v,contentBg:g}=e,b=`${t}-notice`,y=new Zt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),x=new Zt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:s},[`${b}-content`]:{display:"inline-block",padding:v,background:g,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Oi(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\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:x,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},uJ=ql("Message",e=>{const t=$l(e,{height:150});return[sJ(t)]},e=>({zIndexPopup:e.zIndexPopupBase+pl+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var dJ=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fJ={info:n.createElement(Ha,null),success:n.createElement(Na,null),error:n.createElement(Ma,null),warning:n.createElement(qa,null),loading:n.createElement(Ka,null)},pJ=({prefixCls:e,type:t,icon:r,children:o})=>n.createElement("div",{className:Rr()(`${e}-custom-content`,`${e}-${t}`)},r||fJ[t],n.createElement("span",null,o)),hJ=e=>{const{prefixCls:t,className:r,type:o,icon:i,content:a}=e,l=dJ(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=n.useContext(x),s=t||c("message"),u=ul(s),[d,f,p]=uJ(s,u);return d(n.createElement(Za,Object.assign({},l,{prefixCls:s,className:Rr()(r,f,`${s}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:n.createElement(pJ,{prefixCls:s,type:o,icon:i},a)})))};function mJ(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}var vJ=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gJ=3,bJ=({children:e,prefixCls:t})=>{const r=ul(t),[o,i,a]=uJ(t,r);return o(n.createElement(el,{classNames:{list:Rr()(i,a,r)}},e))},yJ=(e,{prefixCls:t,key:r})=>n.createElement(bJ,{prefixCls:t,key:r},e),xJ=n.forwardRef((e,t)=>{const{top:r,prefixCls:o,getContainer:i,maxCount:a,duration:l=gJ,rtl:c,transitionName:s,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:h}=n.useContext(x),m=o||d("message"),v=n.createElement("span",{className:`${m}-close-x`},n.createElement(Ra,{className:`${m}-close-icon`})),[g,b]=sl({prefixCls:m,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=r?r:8}),className:()=>Rr()({[`${m}-rtl`]:null!=c?c:"rtl"===h}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(m,s),closable:!1,closeIcon:v,duration:l,getContainer:()=>(null==i?void 0:i())||(null==f?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:yJ});return n.useImperativeHandle(t,()=>Object.assign(Object.assign({},g),{prefixCls:m,message:p})),b});let wJ=0;function SJ(e){const t=n.useRef(null),r=(dn("Message"),n.useMemo(()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},r=r=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:a}=t.current,l=`${i}-notice`,{content:c,icon:s,type:u,key:d,className:f,style:p,onClose:h}=r,m=vJ(r,["content","icon","type","key","className","style","onClose"]);let v=d;return null==v&&(wJ+=1,v=`antd-message-${wJ}`),mJ(t=>(o(Object.assign(Object.assign({},m),{key:v,content:n.createElement(pJ,{prefixCls:i,type:u,icon:s},c),placement:"top",className:Rr()(u&&`${l}-${u}`,f,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),p),onClose:()=>{null==h||h(),t()}})),()=>{e(v)}))},o={open:r,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,n,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?l=n:(a=n,l=o);const c=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return r(c)}}),o},[]));return[r,n.createElement(xJ,Object.assign({key:"message-holder"},e,{ref:t}))]}let CJ=null,OJ=e=>e(),kJ=[],EJ={};function jJ(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=EJ,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const $J=n.forwardRef((e,t)=>{const{messageConfig:r,sync:o}=e,{getPrefixCls:i}=(0,n.useContext)(x),a=EJ.prefixCls||i("message"),l=(0,n.useContext)(v),[c,s]=SJ(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),l.message));return n.useImperativeHandle(t,()=>{const e=Object.assign({},c);return Object.keys(e).forEach(t=>{e[t]=(...e)=>(o(),c[t].apply(c,e))}),{instance:e,sync:o}}),s}),PJ=n.forwardRef((e,t)=>{const[r,o]=n.useState(jJ),i=()=>{o(jJ)};n.useEffect(i,[]);const a=Li(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=n.createElement($J,{ref:t,sync:i,messageConfig:r});return n.createElement(Bi,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)});function NJ(){if(!CJ){const e=document.createDocumentFragment(),t={fragment:e};return CJ=t,void OJ(()=>{fa()(n.createElement(PJ,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,NJ())})}}),e)})}CJ.instance&&(kJ.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":OJ(()=>{const t=CJ.instance.open(Object.assign(Object.assign({},EJ),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":OJ(()=>{null==CJ||CJ.instance.destroy(e.key)});break;default:OJ(()=>{var n;const r=(n=CJ.instance)[t].apply(n,M(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)})}}),kJ=[])}const _J={open:function(e){const t=mJ(t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return kJ.push(r),()=>{n?OJ(()=>{n()}):r.skipped=!0}});return NJ(),t},destroy:e=>{kJ.push({type:"destroy",key:e}),NJ()},config:function(e){EJ=Object.assign(Object.assign({},EJ),e),OJ(()=>{var e;null===(e=null==CJ?void 0:CJ.sync)||void 0===e||e.call(CJ)})},useMessage:function(e){return SJ(e)},_InternalPanelDoNotUseOrYouWillBeFired:hJ},IJ=_J;["success","info","warning","error","loading"].forEach(e=>{IJ[e]=(...t)=>function(e,t){Li();const n=mJ(n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return kJ.push(o),()=>{r?OJ(()=>{r()}):o.skipped=!0}});return NJ(),n}(e,t)});const MJ=IJ;const TJ={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-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};var AJ=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:TJ}))}; | |
| 185 | +/** */const RJ=n.forwardRef(AJ);var DJ,LJ,qJ,zJ,BJ,HJ,FJ=[{title:(null===(DJ=rtsbCaAbandonment)||void 0===DJ||null===(DJ=DJ.followUpColumnTitle)||void 0===DJ?void 0:DJ.UserName)||"Name",dataIndex:"UserName"},{title:(null===(LJ=rtsbCaAbandonment)||void 0===LJ||null===(LJ=LJ.followUpColumnTitle)||void 0===LJ?void 0:LJ.EmailTo)||"Email To",dataIndex:"EmailTo"},{title:(null===(qJ=rtsbCaAbandonment)||void 0===qJ||null===(qJ=qJ.followUpColumnTitle)||void 0===qJ?void 0:qJ.CartTotal)||"Cart Total",dataIndex:"CartTotal"},{title:(null===(zJ=rtsbCaAbandonment)||void 0===zJ||null===(zJ=zJ.followUpColumnTitle)||void 0===zJ?void 0:zJ.OrderStatus)||"Order Status",dataIndex:"OrderStatus",render:function(e){return(0,i.jsx)("span",{className:"rtsb-order-status rtsb-order-status-".concat(e),style:{textTransform:"capitalize"},children:"completed"===e?"Success":e})}},{title:(null===(BJ=rtsbCaAbandonment)||void 0===BJ||null===(BJ=BJ.followUpColumnTitle)||void 0===BJ?void 0:BJ.DateTime)||"Date & Time",dataIndex:"DateTime"},{title:(null===(HJ=rtsbCaAbandonment)||void 0===HJ||null===(HJ=HJ.followUpColumnTitle)||void 0===HJ?void 0:HJ.Action)||"Action",dataIndex:"Action"}],WJ=[{title:"Scheduled Templates",dataIndex:"template",key:"template"},{title:"Email Subject",dataIndex:"subject",key:"subject"},{title:"Coupon",dataIndex:"coupon",key:"coupon",render:function(e){return e||"-"}},{title:"Status",dataIndex:"status",key:"status",render:function(e){return(0,i.jsx)(Mg,{color:"Sent"===e?"green":"red",children:e})}},{title:"Scheduled At",dataIndex:"scheduledAt",key:"scheduledAt"},{title:"Open Time",dataIndex:"openTime",key:"openTime"},{title:"Action",dataIndex:"scheduledAction",key:"scheduledaction"}],KJ=[{title:"Items",dataIndex:"item",key:"item",width:"50%",render:function(e,t){return(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[(0,i.jsx)(AT,{src:t.image,alt:t.name,width:60,height:60,style:{objectFit:"cover",borderRadius:"4px"},fallback:"https://via.placeholder.com/60?text=No+Image",preview:!0}),(0,i.jsx)("span",{style:{fontWeight:"500"},children:t.name})]})}},{title:"Quantity",dataIndex:"quantity",key:"quantity",align:"center"},{title:"Price",dataIndex:"price",key:"price",align:"right"},{title:"Subtotal",dataIndex:"subtotal",key:"subtotal",align:"right"}];function UJ(e){return UJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},UJ(e)}function VJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VJ(Object(n),!0).forEach(function(t){YJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YJ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=UJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=UJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==UJ(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XJ(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return QJ(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(QJ(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,QJ(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,QJ(d,"constructor",s),QJ(s,"constructor",c),c.displayName="GeneratorFunction",QJ(s,o,"GeneratorFunction"),QJ(d),QJ(d,o,"Generator"),QJ(d,r,function(){return this}),QJ(d,"toString",function(){return"[object Generator]"}),(XJ=function(){return{w:i,m:f}})()}function QJ(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}QJ=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){QJ(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},QJ(e,t,n,r)}function ZJ(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function JJ(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ZJ(i,r,o,a,l,"next",e)}function l(e){ZJ(i,r,o,a,l,"throw",e)}a(void 0)})}}function e0(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return t0(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t0(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var n0=vR.Title;MJ.config({top:50});const r0=function(){var e=e0(c(),2),t=e[0],r=e[1],o=DQ().page,a=RQ(),l=e0((0,n.useState)([]),2),u=l[0],d=l[1],f=parseInt(o)||1,p=e0((0,n.useState)(0),2),h=p[0],m=p[1],v=e0((0,n.useState)(!1),2),g=v[0],b=v[1],y=e0((0,n.useState)(!1),2),x=y[0],w=y[1],S=ng.confirm,C=function(){var e=JJ(XJ().m(function e(){var n,o,a,l,c,u,p,h,v,y,x,C;return XJ().w(function(e){for(;;)switch(e.n){case 0:if(c=(null===(n=t.general)||void 0===n?void 0:n.emailFollowUp)&&(null===(o=t.general)||void 0===o?void 0:o.params)&&(null===(a=t.general)||void 0===a?void 0:a.totalAbandonment)&&f===(null===(l=t.general)||void 0===l||null===(l=l.params)||void 0===l?void 0:l.paged),!(!g&&c&&t.general.emailFollowUp.length>0)){e.n=1;break}return d(null===(u=t.general)||void 0===u?void 0:u.emailFollowUp),m(null===(p=t.general)||void 0===p?void 0:p.totalAbandonment),e.a(2);case 1:return w(!0),b(!1),h={paged:f,per_page:10},e.n=2,vH(h);case 2:v=e.v,y=null!=v&&v.abandonment?v.abandonment:[],x=(null==v?void 0:v.total)>0?v.total:0,C=y.map(function(e,t){var n=(null==e?void 0:e.other_fields)||{},r=[null==n?void 0:n.first_name,null==n?void 0:n.last_name].filter(Boolean).join(" ")||"Guest";return console.log("item?.unsubscribed",null==e?void 0:e.unsubscribed),{key:e.id||0,UserName:r,EmailTo:e.email||"N/A",CartTotal:(null==e?void 0:e.cart_total)||"0",OrderStatus:e.order_status||"Pending",DateTime:e.time?mP()(e.time).format("MMMM D, YYYY h:mm a"):"N/A",Action:(0,i.jsx)("div",{style:{display:"flex"},children:(0,i.jsxs)(UF,{children:[(0,i.jsx)(om,{title:"View",children:(0,i.jsxs)(uZ,{to:"/followUp/abandonment/".concat(e.id),children:[" ",(0,i.jsx)(od,{type:"primary",icon:(0,i.jsx)(Jb,{})})," "]})}),"0"===(null==e?void 0:e.unsubscribed)&&(0,i.jsx)(om,{title:"Unsubscribe",children:(0,i.jsx)(od,{onClick:function(){return t=e.id,void S({title:"Are you sure you want to unsubscribe this user?",content:"The user will stop receiving further abandonment emails.",okText:"Yes, Unsubscribe",okType:"primary",cancelText:"Cancel",onOk:function(){return JJ(XJ().m(function e(){var n;return XJ().w(function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,SH(t);case 1:e.v&&(MJ.success("User ".concat(t," has been unsubscribed successfully.")),b(!0)),e.n=3;break;case 2:e.p=2,n=e.v,console.error("Unsubscribed error:",n),MJ.error("Something went wrong.");case 3:return e.a(2)}},e,null,[[0,2]])}))()}});var t},type:"primary",icon:(0,i.jsx)(RJ,{})})}),(0,i.jsx)(om,{title:"Delete",children:(0,i.jsx)(od,{onClick:function(){return t=e.id,void S({title:"Are you sure you want to delete this item?",content:"This action cannot be undone.",okText:"Yes, Delete",okType:"danger",cancelText:"Cancel",onOk:function(){return JJ(XJ().m(function e(){var n,r;return XJ().w(function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,xH(t);case 1:null!=(n=e.v)&&n.deleted?(MJ.success("Item deleted successfully."),b(!0)):MJ.error("Failed to delete item."),e.n=3;break;case 2:e.p=2,r=e.v,console.error("Delete error:",r),MJ.error("Something went wrong.");case 3:return e.a(2)}},e,null,[[0,2]])}))()}});var t},type:"primary",danger:!0,icon:(0,i.jsx)(LI,{})})})]})})}}),d(C),m(x),r({type:s,general:GJ(GJ({},t.general),{},{emailFollowUp:C,totalAbandonment:x,params:h})}),setTimeout(function(){w(!1)},500);case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,n.useEffect)(function(){C()},[f,g]),(0,i.jsxs)("div",{className:"rtsb-cart-tracking-page-wrapper",children:[(0,i.jsx)(XZ,{}),(0,i.jsx)(SZ,{className:"tttme-App",style:{padding:"0",background:"#fff",borderRadius:"5px",boxShadow:"0 4px 40px rgb(0 0 0 / 5%)",minHeight:"100vh"},children:(0,i.jsxs)(iq,{bordered:!1,style:{borderRadius:"8px",boxShadow:"0 1px 2px rgba(0,0,0,0.03)",padding:0},children:[(0,i.jsx)(n0,{className:"rtsb-cart-tracking-page-title",level:5,children:"Follow Up Reports"}),(0,i.jsx)(rO,{}),(0,i.jsx)(CX,{loading:x,columns:FJ,dataSource:u,pagination:!1}),(0,i.jsx)("br",{}),h?(0,i.jsxs)(UF,{children:["Paged:",(0,i.jsx)(iG,{current:f,pageSize:10,total:h,onChange:function(e){a("/followUp/pages/".concat(e))}})]}):""]})})]})};const o0=(0,n.createContext)({});var i0=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function a0(e,t){const[r,o]=n.useState("string"==typeof e?e:"");return n.useEffect(()=>{(()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let n=0;n<EV.length;n++){const r=EV[n];if(!t||!t[r])continue;const i=e[r];if(void 0!==i)return void o(i)}})()},[JSON.stringify(e),t]),r}const l0=n.forwardRef((e,t)=>{const{prefixCls:r,justify:o,align:i,className:a,style:l,children:c,gutter:s=0,wrap:u}=e,d=i0(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=n.useContext(x),h=$V(!0,null),m=a0(i,h),v=a0(o,h),g=f("row",r),[b,y,w]=uv(g),S=function(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((e,t)=>{if("object"==typeof e&&null!==e)for(let r=0;r<EV.length;r++){const i=EV[r];if(o[i]&&void 0!==e[i]){n[t]=e[i];break}}else n[t]=e}),n}(s,h),C=Rr()(g,{[`${g}-no-wrap`]:!1===u,[`${g}-${v}`]:v,[`${g}-${m}`]:m,[`${g}-rtl`]:"rtl"===p},a,y,w),O={},k=null!=S[0]&&S[0]>0?S[0]/-2:void 0;k&&(O.marginLeft=k,O.marginRight=k);const[E,j]=S;O.rowGap=j;const $=n.useMemo(()=>({gutter:[E,j],wrap:u}),[E,j,u]);return b(n.createElement(o0.Provider,{value:$},n.createElement("div",Object.assign({},d,{className:C,style:Object.assign(Object.assign({},O),l),ref:t}),c)))});const c0=l0;var s0=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function u0(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const d0=["xs","sm","md","lg","xl","xxl"],f0=n.forwardRef((e,t)=>{const{getPrefixCls:r,direction:o}=n.useContext(x),{gutter:i,wrap:a}=n.useContext(o0),{prefixCls:l,span:c,order:s,offset:u,push:d,pull:f,className:p,children:h,flex:m,style:v}=e,g=s0(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=r("col",l),[y,w,S]=fv(b),C={};let O={};d0.forEach(t=>{let n={};const r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete g[t],O=Object.assign(Object.assign({},O),{[`${b}-${t}-${n.span}`]:void 0!==n.span,[`${b}-${t}-order-${n.order}`]:n.order||0===n.order,[`${b}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${t}-push-${n.push}`]:n.push||0===n.push,[`${b}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-rtl`]:"rtl"===o}),n.flex&&(O[`${b}-${t}-flex`]=!0,C[`--${b}-${t}-flex`]=u0(n.flex))});const k=Rr()(b,{[`${b}-${c}`]:void 0!==c,[`${b}-order-${s}`]:s,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${f}`]:f},p,O,w,S),E={};if(i&&i[0]>0){const e=i[0]/2;E.paddingLeft=e,E.paddingRight=e}return m&&(E.flex=u0(m),!1!==a||E.minWidth||(E.minWidth=0)),y(n.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},E),v),C),className:k,ref:t}),h))});const p0=f0;function h0(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=h0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function m0(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=h0(e))&&(r&&(r+=" "),r+=t);return r}var v0=o(4297),g0=o.n(v0),b0=o(2686),y0=o.n(b0),x0=e=>0===e?0:e>0?1:-1,w0=e=>"number"==typeof e&&e!=+e,S0=e=>"string"==typeof e&&e.indexOf("%")===e.length-1,C0=e=>("number"==typeof e||e instanceof Number)&&!w0(e),O0=e=>C0(e)||"string"==typeof e,k0=0,E0=e=>{var t=++k0;return"".concat(e||"").concat(t)},j0=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!C0(e)&&"string"!=typeof e)return r;if(S0(e)){if(null==t)return r;var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return w0(n)&&(n=r),o&&null!=t&&n>t&&(n=t),n},$0=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1};function P0(e,t,n){return C0(e)&&C0(t)?e+n*(t-e):t}function N0(e,t,n){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):y0()(e,t))===n)}var _0=e=>null==e,I0=e=>_0(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),M0=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]};function T0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T0(Object(n),!0).forEach(function(t){R0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function R0(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D0=(0,n.forwardRef)((e,t)=>{var{aspect:r,initialDimension:o={width:-1,height:-1},width:i="100%",height:a="100%",minWidth:l=0,minHeight:c,maxHeight:s,children:u,debounce:d=0,id:f,className:p,onResize:h,style:m={}}=e,v=(0,n.useRef)(null),g=(0,n.useRef)();g.current=h,(0,n.useImperativeHandle)(t,()=>v.current);var[b,y]=(0,n.useState)({containerWidth:o.width,containerHeight:o.height}),x=(0,n.useCallback)((e,t)=>{y(n=>{var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}})},[]);(0,n.useEffect)(()=>{var e=e=>{var t,{width:n,height:r}=e[0].contentRect;x(n,r),null===(t=g.current)||void 0===t||t.call(g,n,r)};d>0&&(e=g0()(e,d,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:n,height:r}=v.current.getBoundingClientRect();return x(n,r),t.observe(v.current),()=>{t.disconnect()}},[x,d]);var w=(0,n.useMemo)(()=>{var{containerWidth:e,containerHeight:t}=b;if(e<0||t<0)return null;M0(S0(i)||S0(a),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",i,a),M0(!r||r>0,"The aspect(%s) must be greater than zero.",r);var o=S0(i)?e:i,d=S0(a)?t:a;return r&&r>0&&(o?d=o/r:d&&(o=d*r),s&&d>s&&(d=s)),M0(o>0||d>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",o,d,i,a,l,c,r),n.Children.map(u,e=>(0,n.cloneElement)(e,{width:o,height:d,style:A0({width:o,height:d},e.props.style)}))},[r,u,a,s,c,l,b,i]);return n.createElement("div",{id:f?"".concat(f):void 0,className:m0("recharts-responsive-container",p),style:A0(A0({},m),{},{width:i,height:a,minWidth:l,minHeight:c,maxHeight:s}),ref:v},n.createElement("div",{style:{width:0,height:0,overflow:"visible"}},w))});function L0(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var q0=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),z0=()=>Math.random().toString(36).substring(7).split("").join("."),B0={INIT:`@@redux/INIT${z0()}`,REPLACE:`@@redux/REPLACE${z0()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${z0()}`};function H0(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function F0(e,t,n){if("function"!=typeof e)throw new Error(L0(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(L0(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(L0(1));return n(F0)(e,t)}let r=e,o=t,i=new Map,a=i,l=0,c=!1;function s(){a===i&&(a=new Map,i.forEach((e,t)=>{a.set(t,e)}))}function u(){if(c)throw new Error(L0(3));return o}function d(e){if("function"!=typeof e)throw new Error(L0(4));if(c)throw new Error(L0(5));let t=!0;s();const n=l++;return a.set(n,e),function(){if(t){if(c)throw new Error(L0(6));t=!1,s(),a.delete(n),i=null}}}function f(e){if(!H0(e))throw new Error(L0(7));if(void 0===e.type)throw new Error(L0(8));if("string"!=typeof e.type)throw new Error(L0(17));if(c)throw new Error(L0(9));try{c=!0,o=r(o,e)}finally{c=!1}return(i=a).forEach(e=>{e()}),e}f({type:B0.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(L0(10));r=e,f({type:B0.REPLACE})},[q0]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(L0(11));function n(){const e=t;e.next&&e.next(u())}n();return{unsubscribe:e(n)}},[q0](){return this}}}}}function W0(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:B0.INIT}))throw new Error(L0(12));if(void 0===n(void 0,{type:B0.PROBE_UNKNOWN_ACTION()}))throw new Error(L0(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const l=r[o],c=n[l],s=e[l],u=c(s,t);if(void 0===u){t&&t.type;throw new Error(L0(14))}a[l]=u,i=i||u!==s}return i=i||r.length!==Object.keys(e).length,i?a:e}}function K0(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function U0(e){return H0(e)&&"type"in e&&"string"==typeof e.type}function V0(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var G0=V0(),Y0=V0,X0=Symbol.for("immer-nothing"),Q0=Symbol.for("immer-draftable"),Z0=Symbol.for("immer-state");function J0(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var e1=Object.getPrototypeOf;function t1(e){return!!e&&!!e[Z0]}function n1(e){return!!e&&(o1(e)||Array.isArray(e)||!!e[Q0]||!!e.constructor?.[Q0]||s1(e)||u1(e))}var r1=Object.prototype.constructor.toString();function o1(e){if(!e||"object"!=typeof e)return!1;const t=e1(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===r1}function i1(e,t){0===a1(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function a1(e){const t=e[Z0];return t?t.type_:Array.isArray(e)?1:s1(e)?2:u1(e)?3:0}function l1(e,t){return 2===a1(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c1(e,t,n){const r=a1(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function s1(e){return e instanceof Map}function u1(e){return e instanceof Set}function d1(e){return e.copy_||e.base_}function f1(e,t){if(s1(e))return new Map(e);if(u1(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=o1(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[Z0];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(e1(e),t)}{const t=e1(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function p1(e,t=!1){return m1(e)||t1(e)||!n1(e)||(a1(e)>1&&Object.defineProperties(e,{set:{value:h1},add:{value:h1},clear:{value:h1},delete:{value:h1}}),Object.freeze(e),t&&Object.values(e).forEach(e=>p1(e,!0))),e}function h1(){J0(2)}function m1(e){return Object.isFrozen(e)}var v1,g1={};function b1(e){const t=g1[e];return t||J0(0),t}function y1(){return v1}function x1(e,t){t&&(b1("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function w1(e){S1(e),e.drafts_.forEach(O1),e.drafts_=null}function S1(e){e===v1&&(v1=e.parent_)}function C1(e){return v1={drafts_:[],parent_:v1,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function O1(e){const t=e[Z0];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function k1(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Z0].modified_&&(w1(t),J0(4)),n1(e)&&(e=E1(t,e),t.parent_||$1(t,e)),t.patches_&&b1("Patches").generateReplacementPatches_(n[Z0].base_,e,t.patches_,t.inversePatches_)):e=E1(t,n,[]),w1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==X0?e:void 0}function E1(e,t,n){if(m1(t))return t;const r=t[Z0];if(!r)return i1(t,(o,i)=>j1(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return $1(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),i1(o,(o,a)=>j1(e,r,t,o,a,n,i)),$1(e,t,!1),n&&e.patches_&&b1("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function j1(e,t,n,r,o,i,a){if(t1(o)){const a=E1(e,o,i&&t&&3!==t.type_&&!l1(t.assigned_,r)?i.concat(r):void 0);if(c1(n,r,a),!t1(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(n1(o)&&!m1(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;E1(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!(s1(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))||$1(e,o)}}function $1(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&p1(t,n)}var P1={get(e,t){if(t===Z0)return e;const n=d1(e);if(!l1(n,t))return function(e,t,n){const r=I1(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!n1(r)?r:r===_1(e.base_,t)?(T1(e),e.copy_[t]=A1(r,e)):r},has:(e,t)=>t in d1(e),ownKeys:e=>Reflect.ownKeys(d1(e)),set(e,t,n){const r=I1(d1(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=_1(d1(e),t),a=r?.[Z0];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(i=r)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==n||l1(e.base_,t)))return!0;T1(e),M1(e)}var o,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==_1(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,T1(e),M1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=d1(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){J0(11)},getPrototypeOf:e=>e1(e.base_),setPrototypeOf(){J0(12)}},N1={};function _1(e,t){const n=e[Z0];return(n?d1(n):e)[t]}function I1(e,t){if(!(t in e))return;let n=e1(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=e1(n)}}function M1(e){e.modified_||(e.modified_=!0,e.parent_&&M1(e.parent_))}function T1(e){e.copy_||(e.copy_=f1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}i1(P1,(e,t)=>{N1[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),N1.deleteProperty=function(e,t){return N1.set.call(this,e,t,void 0)},N1.set=function(e,t,n){return P1.set.call(this,e[0],t,n,e[0])};function A1(e,t){const n=s1(e)?b1("MapSet").proxyMap_(e,t):u1(e)?b1("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:y1(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=P1;n&&(o=[r],i=N1);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}(e,t);return(t?t.scope_:y1()).drafts_.push(n),n}function R1(e){return t1(e)||J0(10),D1(e)}function D1(e){if(!n1(e)||m1(e))return e;const t=e[Z0];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=f1(e,t.scope_.immer_.useStrictShallowCopy_)}else n=f1(e,!0);return i1(n,(e,t)=>{c1(n,e,D1(t))}),t&&(t.finalized_=!1),n}var L1=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let r;if("function"!=typeof t&&J0(6),void 0!==n&&"function"!=typeof n&&J0(7),n1(e)){const o=C1(this),i=A1(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?w1(o):S1(o)}return x1(o,n),k1(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===X0&&(r=void 0),this.autoFreeze_&&p1(r,!0),n){const t=[],o=[];b1("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}J0(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;const o=this.produce(e,t,(e,t)=>{n=e,r=t});return[o,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){n1(e)||J0(8),t1(e)&&(e=R1(e));const t=C1(this),n=A1(e,void 0);return n[Z0].isManual_=!0,S1(t),n}finishDraft(e,t){const n=e&&e[Z0];n&&n.isManual_||J0(9);const{scope_:r}=n;return x1(r,t),k1(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=b1("Patches").applyPatches_;return t1(e)?r(e,t):this.produce(e,e=>r(e,t))}},q1=L1.produce;o(5606);var z1="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?K0:K0.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function B1(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(A2(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>U0(t)&&t.type===e,n}var H1=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function F1(e){return n1(e)?q1(e,()=>{}):e}function W1(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var K1="RTK_autoBatch",U1=e=>t=>{setTimeout(t,e)},V1=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new H1(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const l=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:U1(10):"callback"===e.type?e.queueNotification:U1(e.timeout),s=()=>{a=!1,i&&(i=!1,l.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return o=!e?.meta?.[K1],i=!o,i&&(a||(a=!0,c(s))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function G1(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new H1;return t&&("boolean"==typeof t?i.push(G0):i.push(Y0(t.extraArgument))),i},{reducer:n,middleware:r,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a,enhancers:l}=e||{};let c,s;if("function"==typeof n)c=n;else{if(!H0(n))throw new Error(A2(1));c=W0(n)}s="function"==typeof r?r(t):t();let u=K0;o&&(u=z1({trace:!1,..."object"==typeof o&&o}));const d=function(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(L0(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},l=e.map(e=>e(a));return i=K0(...l)(o.dispatch),{...o,dispatch:i}}}(...s),f=V1(d);return F0(c,a,u(..."function"==typeof l?l(f):f()))}function Y1(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(A2(28));if(r in t)throw new Error(A2(29));return t[r]=n,o},addAsyncThunk:(e,r)=>(r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),o),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var X1=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t};var Q1=Symbol.for("rtk-slice-createasyncthunk");function Z1(e,t){return`${e}/${t}`}function J1({creators:e}={}){const t=e?.asyncThunk?.[Q1];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(A2(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(A2(12));if(n in a.sliceCaseReducersByType)throw new Error(A2(13));return a.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(a.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?Y1(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,o,i]=Y1(t);if("function"==typeof e)n=()=>F1(e());else{const t=F1(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===a.filter(e=>!!e).length&&(a=[i]),a.reduce((e,n)=>{if(n){if(t1(e)){const r=n(e,t);return void 0===r?e:r}if(n1(e))return q1(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return a.getInitialState=n,a}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}i.forEach(r=>{const i=o[r],a={reducerName:r,type:Z1(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(A2(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?B1(e,a):B1(e))}(a,i,l):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(A2(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:c,settled:s,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);l&&r.addCase(d.pending,l);c&&r.addCase(d.rejected,c);s&&r.addMatcher(d.settled,s);r.exposeCaseReducer(t,{fulfilled:a||n2,pending:l||n2,rejected:c||n2,settled:s||n2})}(a,i,l,t)});const s=e=>e,u=new Map,d=new WeakMap;let f;function p(e,t){return f||(f=c()),f(e,t)}function h(){return f||(f=c()),f.getInitialState()}function m(t,n=!1){function r(e){let o=e[t];return void 0===o&&n&&(o=W1(d,r,h)),o}function o(t=s){const r=W1(u,n,()=>new WeakMap);return W1(r,t,()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=e2(i,t,()=>W1(d,t,h),n);return r})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const v={name:n,reducer:p,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:h,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:p},n),{...v,...m(o,!0)}}};return v}}function e2(e,t,n,r){function o(o,...i){let a=t(o);return void 0===a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var t2=J1();function n2(){}var r2="listener",o2="completed",i2="cancelled",a2=`task-${i2}`,l2=`task-${o2}`,c2=`${r2}-${i2}`,s2=`${r2}-${o2}`,u2=class{constructor(e){this.code=e,this.message=`task ${i2} (reason: ${e})`}name="TaskAbortError";message},d2=(e,t)=>{if("function"!=typeof e)throw new TypeError(A2(32))},f2=()=>{},p2=(e,t=f2)=>(e.catch(t),e),h2=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),m2=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},v2=e=>{if(e.aborted){const{reason:t}=e;throw new u2(t)}};function g2(e,t){let n=f2;return new Promise((r,o)=>{const i=()=>o(new u2(e.reason));e.aborted?i():(n=h2(e,i),t.finally(()=>n()).then(r,o))}).finally(()=>{n=f2})}var b2=e=>t=>p2(g2(e,t).then(t=>(v2(e),t))),y2=e=>{const t=b2(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:x2}=Object,w2={},S2="listenerMiddleware",C2=(e,t)=>(n,r)=>{d2(n);const o=new AbortController;var i;i=o,h2(e,()=>m2(i,e.reason));const a=(async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(e){return{status:e instanceof u2?"cancelled":"rejected",error:e}}finally{t?.()}})(async()=>{v2(e),v2(o.signal);const t=await n({pause:b2(o.signal),delay:y2(o.signal),signal:o.signal});return v2(o.signal),t},()=>m2(o,l2));return r?.autoJoin&&t.push(a.catch(f2)),{result:b2(e)(a),cancel(){m2(o,a2)}}},O2=(e,t)=>(n,r)=>p2((async(n,r)=>{v2(t);let o=()=>{};const i=[new Promise((t,r)=>{let i=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});o=()=>{i(),r()}})];null!=r&&i.push(new Promise(e=>setTimeout(e,r,null)));try{const e=await g2(t,Promise.race(i));return v2(t),e}finally{o()}})(n,r)),k2=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=B1(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(A2(21));return d2(i),{predicate:o,type:t,effect:i}},E2=x2(e=>{const{type:t,predicate:n,effect:r}=k2(e);return{id:X1(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(A2(22))}}},{withTypes:()=>E2}),j2=(e,t)=>{const{type:n,effect:r,predicate:o}=k2(t);return Array.from(e.values()).find(e=>("string"==typeof n?e.type===n:e.predicate===o)&&e.effect===r)},$2=e=>{e.pending.forEach(e=>{m2(e,c2)})},P2=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},N2=x2(B1(`${S2}/add`),{withTypes:()=>N2}),_2=B1(`${S2}/removeAll`),I2=x2(B1(`${S2}/remove`),{withTypes:()=>I2}),M2=(...e)=>{console.error(`${S2}/error`,...e)},T2=(e={})=>{const t=new Map,{extra:n,onError:r=M2}=e;d2(r);const o=e=>(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&$2(e)}))(j2(t,e)??E2(e));x2(o,{withTypes:()=>o});const i=e=>{const n=j2(t,e);return n&&(n.unsubscribe(),e.cancelActive&&$2(n)),!!n};x2(i,{withTypes:()=>i});const a=async(e,i,a,l)=>{const c=new AbortController,s=O2(o,c.signal),u=[];try{e.pending.add(c),await Promise.resolve(e.effect(i,x2({},a,{getOriginalState:l,condition:(e,t)=>s(e,t).then(Boolean),take:s,delay:y2(c.signal),pause:b2(c.signal),extra:n,signal:c.signal,fork:C2(c.signal,u),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==c&&(m2(e,c2),n.delete(e))})},cancel:()=>{m2(c,c2),e.pending.delete(c)},throwIfCancelled:()=>{v2(c.signal)}})))}catch(e){e instanceof u2||P2(r,e,{raisedBy:"effect"})}finally{await Promise.all(u),m2(c,s2),e.pending.delete(c)}},l=(e=>()=>{e.forEach($2),e.clear()})(t);return{middleware:e=>n=>c=>{if(!U0(c))return n(c);if(N2.match(c))return o(c.payload);if(_2.match(c))return void l();if(I2.match(c))return i(c.payload);let s=e.getState();const u=()=>{if(s===w2)throw new Error(A2(23));return s};let d;try{if(d=n(c),t.size>0){const n=e.getState(),o=Array.from(t.values());for(const t of o){let o=!1;try{o=t.predicate(c,n,s)}catch(e){o=!1,P2(r,e,{raisedBy:"predicate"})}o&&a(t,c,e,u)}}}finally{s=w2}return d},startListening:o,stopListening:i,clearListeners:l}};Symbol.for("rtk-state-proxy-original");function A2(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function R2(e,t){if(t){var n=Number.parseInt(t,10);if(!w0(n))return null==e?void 0:e[n]}}var D2=t2({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),L2=D2.reducer,{createEventEmitter:q2}=D2.actions;o(8418);function z2(e){e()}var B2={notify(){},get:()=>[]};function H2(e,t){let n,r=B2,o=0,i=!1;function a(){s.onStateChange&&s.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){z2(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=B2)}const s={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return s}var F2=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),W2=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),K2=(()=>F2||W2?n.useLayoutEffect:n.useEffect)();Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var U2=Symbol.for("react-redux-context"),V2="undefined"!=typeof globalThis?globalThis:{};function G2(){if(!n.createContext)return{};const e=V2[U2]??=new Map;let t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}var Y2=G2();var X2=function(e){const{children:t,context:r,serverState:o,store:i}=e,a=n.useMemo(()=>{const e=H2(i);return{store:i,subscription:e,getServerState:o?()=>o:void 0}},[i,o]),l=n.useMemo(()=>i.getState(),[i]);K2(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,l]);const c=r||Y2;return n.createElement(c.Provider,{value:a},t)};var Q2={active:!1,index:null,dataKey:void 0,coordinate:void 0},Z2=t2({name:"tooltip",initialState:{itemInteraction:{click:Q2,hover:Q2},axisInteraction:{click:Q2,hover:Q2},keyboardInteraction:Q2,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var n=R1(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:J2,removeTooltipEntrySettings:e3,setTooltipSettingsState:t3,setActiveMouseOverItemIndex:n3,mouseLeaveItem:r3,mouseLeaveChart:o3,setActiveClickItemIndex:i3,setMouseOverAxisIndex:a3,setMouseClickAxisIndex:l3,setSyncInteraction:c3,setKeyboardInteraction:s3}=Z2.actions,u3=Z2.reducer,d3=t2({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=t.payload,null==t.payload)return e.dataStartIndex=0,void(e.dataEndIndex=0);t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;null!=n&&(e.dataStartIndex=n),null!=r&&(e.dataEndIndex=r)}}}),{setChartData:f3,setDataStartEndIndexes:p3,setComputedData:h3}=d3.actions,m3=d3.reducer,v3=t2({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,o,i;e.margin.top=null!==(n=t.payload.top)&&void 0!==n?n:0,e.margin.right=null!==(r=t.payload.right)&&void 0!==r?r:0,e.margin.bottom=null!==(o=t.payload.bottom)&&void 0!==o?o:0,e.margin.left=null!==(i=t.payload.left)&&void 0!==i?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:g3,setLayout:b3,setChartSize:y3,setScale:x3}=v3.actions,w3=v3.reducer;function S3(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var C3=e=>Array.isArray(e)?e:[e];function O3(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var k3="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function E3(){return{s:0,v:void 0,o:null,p:null}}function j3(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=E3(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=E3(),e.set(n,t)):t=r}}const l=t;let c;if(1===t.s)c=t.v;else if(c=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,c)&&(c=e,0!==i&&i--);o="object"==typeof c&&null!==c||"function"==typeof c?new k3(c):c}return l.s=1,l.v=c,c}return a.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function $3(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),S3(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const l={...n,...i},{memoize:c,memoizeOptions:s=[],argsMemoize:u=j3,argsMemoizeOptions:d=[],devModeChecks:f={}}=l,p=C3(s),h=C3(d),m=O3(e),v=c(function(){return r++,a.apply(null,arguments)},...p);const g=u(function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(m,arguments);return t=v.apply(null,e),t},...h);return Object.assign(g,{resultFunc:a,memoizedResultFunc:v,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var P3=$3(j3),N3=Object.assign((e,t=P3)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e),r=n.map(t=>e[t]),o=t(r,(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}));return o},{withTypes:()=>N3}),_3=o(9242),I3=(0,n.createContext)(null),M3=e=>e,T3=()=>{var e=(0,n.useContext)(I3);return e?e.store.dispatch:M3},A3=()=>{},R3=()=>A3,D3=(e,t)=>e===t;function L3(e){var t=(0,n.useContext)(I3);return(0,_3.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:R3,t?t.store.getState:A3,t?t.store.getState:A3,t?e:A3,D3)}var q3=o(184),z3=o.n(q3),B3=e=>e.legend.settings;P3([e=>e.legend.payload,B3],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?z3()(r,n):r});function H3(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}Array.prototype.slice;function F3(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function W3(e){return function(){return e}}function K3(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function U3(e,t){return e[t]}function V3(e){const t=[];return t.key=e,t}function G3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G3(Object(n),!0).forEach(function(t){X3(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X3(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q3=Math.PI/180,Z3=e=>180*e/Math.PI,J3=(e,t,n,r)=>({x:e+Math.cos(-Q3*r)*n,y:t+Math.sin(-Q3*r)*n}),e4=(e,t)=>{var{x:n,y:r}=e,{cx:o,cy:i}=t,a=((e,t)=>{var{x:n,y:r}=e,{x:o,y:i}=t;return Math.sqrt((n-o)**2+(r-i)**2)})({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a,angle:0};var l=(n-o)/a,c=Math.acos(l);return r>i&&(c=2*Math.PI-c),{radius:a,angle:Z3(c),angleInRadian:c}},t4=(e,t)=>{var{startAngle:n,endAngle:r}=t,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},n4=(e,t)=>{var{x:n,y:r}=e,{radius:o,angle:i}=e4({x:n,y:r},t),{innerRadius:a,outerRadius:l}=t;if(o<a||o>l)return null;if(0===o)return null;var c,{startAngle:s,endAngle:u}=(e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}})(t),d=i;if(s<=u){for(;d>u;)d-=360;for(;d<s;)d+=360;c=d>=s&&d<=u}else{for(;d>s;)d-=360;for(;d<u;)d+=360;c=d>=u&&d<=s}return c?Y3(Y3({},t),{},{radius:o,angle:t4(d,t)}):null};function r4(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function o4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o4(Object(n),!0).forEach(function(t){a4(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a4(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l4(e,t,n){return _0(e)||_0(t)?n:O0(t)?y0()(e,t,n):"function"==typeof t?t(e):n}var c4=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,s4=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var o,i,a=e.map(e=>(e.coordinate===t&&(o=!0),e.coordinate===n&&(i=!0),e.coordinate));return o||a.push(t),i||a.push(n),a},u4=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:o,range:i,scale:a,realScaleType:l,isCategorical:c,categoricalDomain:s,tickCount:u,ticks:d,niceTicks:f,axisType:p}=e;if(!a)return null;var h="scaleBand"===l&&a.bandwidth?a.bandwidth()/2:2,m=(t||n)&&"category"===o&&a.bandwidth?a.bandwidth()/h:0;if(m="angleAxis"===p&&i&&i.length>=2?2*x0(i[0]-i[1])*m:m,t&&(d||f)){var v=(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e;return{coordinate:a(n)+m,value:e,offset:m,index:t}});return v.filter(e=>!w0(e.coordinate))}return c&&s?s.map((e,t)=>({coordinate:a(e)+m,value:e,index:t,offset:m})):a.ticks&&!n&&null!=u?a.ticks(u).map((e,t)=>({coordinate:a(e)+m,value:e,offset:m,index:t})):a.domain().map((e,t)=>({coordinate:a(e)+m,value:r?r[e]:e,index:t,offset:m}))},d4=1e-4,f4={sign:e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var l=w0(e[a][n][1])?e[a][n][0]:e[a][n][1];l>=0?(e[a][n][0]=o,e[a][n][1]=o+l,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+l,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}H3(e,t)}},none:H3,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,l=0;a<n;++a)l+=e[a][r][1]||0;o[r][1]+=o[r][0]=-l/2}H3(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var l=0,c=0,s=0;l<o;++l){for(var u=e[t[l]],d=u[a][1]||0,f=(d-(u[a-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];f+=(h[a][1]||0)-(h[a-1][1]||0)}c+=d,s+=f*d}n[a-1][1]+=n[a-1][0]=i,c&&(i-=s/c)}n[a-1][1]+=n[a-1][0]=i,H3(e,t)}},positive:e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=w0(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},p4=(e,t,n)=>{var r=f4[n],o=function(){var e=W3([]),t=K3,n=H3,r=U3;function o(o){var i,a,l=Array.from(e.apply(this,arguments),V3),c=l.length,s=-1;for(const e of o)for(i=0,++s;i<c;++i)(l[i][s]=[0,+r(e,l[i].key,s,o)]).data=e;for(i=0,a=F3(t(l));i<c;++i)l[a[i]].index=i;return n(l,a),l}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:W3(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:W3(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?K3:"function"==typeof e?e:W3(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?H3:e,o):n},o}().keys(t).value((e,t)=>+l4(e,t,0)).order(K3).offset(r);return o(e)};function h4(e){var{axis:t,ticks:n,bandSize:r,entry:o,index:i,dataKey:a}=e;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!_0(o[t.dataKey])){var l=N0(n,"value",o[t.dataKey]);if(l)return l.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=l4(o,_0(a)?t.dataKey:a);return _0(c)?null:t.scale(c)}var m4=(e,t,n)=>{var r;if(null!=e)return r=Object.keys(e).reduce((r,o)=>{var i=e[o],{stackedData:a}=i,l=a.reduce((e,r)=>{var o=(e=>{var t=e.flat(2).filter(C0);return[Math.min(...t),Math.max(...t)]})(r4(r,t,n));return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(l[0],r[0]),Math.max(l[1],r[1])]},[1/0,-1/0]),[r[0]===1/0?0:r[0],r[1]===-1/0?0:r[1]]},v4=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,g4=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,b4=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=z3()(t,e=>e.coordinate),i=1/0,a=1,l=o.length;a<l;a++){var c=o[a],s=o[a-1];i=Math.min((c.coordinate||0)-(s.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0};function y4(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:o,name:i}=e;return i4(i4({},t),{},{dataKey:n,payload:r,value:o,name:i})}function x4(e,t){return e?String(e):"string"==typeof t?t:void 0}var w4=e=>e.layout.width,S4=e=>e.layout.height,C4=e=>e.layout.scale,O4=e=>e.layout.margin,k4=P3(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),E4=P3(e=>e.cartesianAxis.yAxis,e=>Object.values(e));function j4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j4(Object(n),!0).forEach(function(t){P4(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P4(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N4=P3([w4,S4,O4,e=>e.brush.height,function(e){return E4(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return E4(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return k4(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return k4(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},B3,e=>e.legend.size],(e,t,n,r,o,i,a,l,c,s)=>{var u={left:(n.left||0)+o,right:(n.right||0)+i},d=$4($4({},{top:(n.top||0)+a,bottom:(n.bottom||0)+l}),u),f=d.bottom;d.bottom+=r,d=((e,t,n)=>{if(t&&n){var{width:r,height:o}=n,{align:i,verticalAlign:a,layout:l}=t;if(("vertical"===l||"horizontal"===l&&"middle"===a)&&"center"!==i&&C0(e[i]))return i4(i4({},e),{},{[i]:e[i]+(r||0)});if(("horizontal"===l||"vertical"===l&&"center"===i)&&"middle"!==a&&C0(e[a]))return i4(i4({},e),{},{[a]:e[a]+(o||0)})}return e})(d,c,s);var p=e-d.left-d.right,h=t-d.top-d.bottom;return $4($4({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(h,0)})}),_4=P3(N4,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),I4=P3(w4,S4,(e,t)=>({x:0,y:0,width:e,height:t})),M4=(0,n.createContext)(null),T4=()=>null!=(0,n.useContext)(M4),A4=e=>e.brush,R4=P3([A4,N4,O4],(e,t,n)=>({height:e.height,x:C0(e.x)?e.x:t.left,y:C0(e.y)?e.y:t.top+t.height+t.brushBottom-((null==n?void 0:n.bottom)||0),width:C0(e.width)?e.width:t.width})),D4=()=>{var e,t=T4(),n=L3(_4),r=L3(R4),o=null===(e=L3(A4))||void 0===e?void 0:e.padding;return t&&r&&o?{width:r.width-o.left-o.right,height:r.height-o.top-o.bottom,x:o.left,y:o.top}:n},L4={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},q4=()=>{var e;return null!==(e=L3(N4))&&void 0!==e?e:L4},z4=()=>L3(w4),B4=()=>L3(S4),H4=e=>e.layout.layoutType,F4=()=>L3(H4),W4=o(3412),K4=o.n(W4);function U4(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function V4(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class G4 extends Map{constructor(e,t=Z4){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(Y4(this,e))}has(e){return super.has(Y4(this,e))}set(e,t){return super.set(X4(this,e),t)}delete(e){return super.delete(Q4(this,e))}}Set;function Y4({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function X4({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Q4({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Z4(e){return null!==e&&"object"==typeof e?e.valueOf():e}const J4=Symbol("implicit");function e5(){var e=new G4,t=[],n=[],r=J4;function o(o){let i=e.get(o);if(void 0===i){if(r!==J4)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new G4;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return e5(t,n).unknown(r)},U4.apply(o,arguments),o}function t5(){var e,t,n=e5().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,l=!1,c=0,s=0,u=.5;function d(){var n=r().length,d=a<i,f=d?a:i,p=d?i:a;e=(p-f)/Math.max(1,n-c+2*s),l&&(e=Math.floor(e)),f+=(p-f-e*(n-c))*u,t=e*(1-c),l&&(f=Math.round(f),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map(function(t){return f+e*t});return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,d()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,l=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,d()):l},n.padding=function(e){return arguments.length?(c=Math.min(1,s=+e),d()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},n.paddingOuter=function(e){return arguments.length?(s=+e,d()):s},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return t5(r(),[i,a]).round(l).paddingInner(c).paddingOuter(s).align(u)},U4.apply(d(),arguments)}function n5(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return n5(t())},e}function r5(){return n5(t5.apply(null,arguments).paddingInner(1))}const o5=Math.sqrt(50),i5=Math.sqrt(10),a5=Math.sqrt(2);function l5(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=o5?10:i>=i5?5:i>=a5?2:1;let l,c,s;return o<0?(s=Math.pow(10,-o)/a,l=Math.round(e*s),c=Math.round(t*s),l/s<e&&++l,c/s>t&&--c,s=-s):(s=Math.pow(10,o)*a,l=Math.round(e/s),c=Math.round(t/s),l*s<e&&++l,c*s>t&&--c),c<l&&.5<=n&&n<2?l5(e,t,2*n):[l,c,s]}function c5(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?l5(t,e,n):l5(e,t,n);if(!(i>=o))return[];const l=i-o+1,c=new Array(l);if(r)if(a<0)for(let e=0;e<l;++e)c[e]=(i-e)/-a;else for(let e=0;e<l;++e)c[e]=(i-e)*a;else if(a<0)for(let e=0;e<l;++e)c[e]=(o+e)/-a;else for(let e=0;e<l;++e)c[e]=(o+e)*a;return c}function s5(e,t,n){return l5(e=+e,t=+t,n=+n)[2]}function u5(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?s5(t,e,n):s5(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function d5(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function f5(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function p5(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=d5,n=(t,n)=>d5(e(t),n),r=(t,n)=>e(t)-n):(t=e===d5||e===f5?e:h5,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function h5(){return 0}function m5(e){return null===e?NaN:+e}const v5=p5(d5),g5=v5.right,b5=(v5.left,p5(m5).center,g5);function y5(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function x5(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function w5(){}var S5=.7,C5=1/S5,O5="\\s*([+-]?\\d+)\\s*",k5="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",E5="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",j5=/^#([0-9a-f]{3,8})$/,$5=new RegExp(`^rgb\\(${O5},${O5},${O5}\\)$`),P5=new RegExp(`^rgb\\(${E5},${E5},${E5}\\)$`),N5=new RegExp(`^rgba\\(${O5},${O5},${O5},${k5}\\)$`),_5=new RegExp(`^rgba\\(${E5},${E5},${E5},${k5}\\)$`),I5=new RegExp(`^hsl\\(${k5},${E5},${E5}\\)$`),M5=new RegExp(`^hsla\\(${k5},${E5},${E5},${k5}\\)$`),T5={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function A5(){return this.rgb().formatHex()}function R5(){return this.rgb().formatRgb()}function D5(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=j5.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?L5(t):3===n?new B5(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?q5(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?q5(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=$5.exec(e))?new B5(t[1],t[2],t[3],1):(t=P5.exec(e))?new B5(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=N5.exec(e))?q5(t[1],t[2],t[3],t[4]):(t=_5.exec(e))?q5(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=I5.exec(e))?V5(t[1],t[2]/100,t[3]/100,1):(t=M5.exec(e))?V5(t[1],t[2]/100,t[3]/100,t[4]):T5.hasOwnProperty(e)?L5(T5[e]):"transparent"===e?new B5(NaN,NaN,NaN,0):null}function L5(e){return new B5(e>>16&255,e>>8&255,255&e,1)}function q5(e,t,n,r){return r<=0&&(e=t=n=NaN),new B5(e,t,n,r)}function z5(e,t,n,r){return 1===arguments.length?((o=e)instanceof w5||(o=D5(o)),o?new B5((o=o.rgb()).r,o.g,o.b,o.opacity):new B5):new B5(e,t,n,null==r?1:r);var o}function B5(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function H5(){return`#${U5(this.r)}${U5(this.g)}${U5(this.b)}`}function F5(){const e=W5(this.opacity);return`${1===e?"rgb(":"rgba("}${K5(this.r)}, ${K5(this.g)}, ${K5(this.b)}${1===e?")":`, ${e})`}`}function W5(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function K5(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function U5(e){return((e=K5(e))<16?"0":"")+e.toString(16)}function V5(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Y5(e,t,n,r)}function G5(e){if(e instanceof Y5)return new Y5(e.h,e.s,e.l,e.opacity);if(e instanceof w5||(e=D5(e)),!e)return new Y5;if(e instanceof Y5)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,c=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=c<.5?i+o:2-i-o,a*=60):l=c>0&&c<1?0:a,new Y5(a,l,c,e.opacity)}function Y5(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function X5(e){return(e=(e||0)%360)<0?e+360:e}function Q5(e){return Math.max(0,Math.min(1,e||0))}function Z5(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function J5(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}y5(w5,D5,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:A5,formatHex:A5,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return G5(this).formatHsl()},formatRgb:R5,toString:R5}),y5(B5,z5,x5(w5,{brighter(e){return e=null==e?C5:Math.pow(C5,e),new B5(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?S5:Math.pow(S5,e),new B5(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new B5(K5(this.r),K5(this.g),K5(this.b),W5(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:H5,formatHex:H5,formatHex8:function(){return`#${U5(this.r)}${U5(this.g)}${U5(this.b)}${U5(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:F5,toString:F5})),y5(Y5,function(e,t,n,r){return 1===arguments.length?G5(e):new Y5(e,t,n,null==r?1:r)},x5(w5,{brighter(e){return e=null==e?C5:Math.pow(C5,e),new Y5(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?S5:Math.pow(S5,e),new Y5(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new B5(Z5(e>=240?e-240:e+120,o,r),Z5(e,o,r),Z5(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Y5(X5(this.h),Q5(this.s),Q5(this.l),W5(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=W5(this.opacity);return`${1===e?"hsl(":"hsla("}${X5(this.h)}, ${100*Q5(this.s)}%, ${100*Q5(this.l)}%${1===e?")":`, ${e})`}`}}));const e6=e=>()=>e;function t6(e,t){return function(n){return e+n*t}}function n6(e){return 1===(e=+e)?r6:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):e6(isNaN(t)?n:t)}}function r6(e,t){var n=t-e;return n?t6(e,n):e6(isNaN(e)?t:e)}const o6=function e(t){var n=n6(t);function r(e,t){var r=n((e=z5(e)).r,(t=z5(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=r6(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function i6(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),l=new Array(o);for(n=0;n<o;++n)r=z5(t[n]),i[n]=r.r||0,a[n]=r.g||0,l[n]=r.b||0;return i=e(i),a=e(a),l=e(l),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=l(e),r+""}}}i6(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,l=r<t-1?e[r+2]:2*i-o;return J5((n-r/t)*t,a,o,i,l)}}),i6(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],l=e[(r+2)%t];return J5((n-r/t)*t,o,i,a,l)}});function a6(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=h6(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function l6(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function c6(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function s6(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=h6(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var u6=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,d6=new RegExp(u6.source,"g");function f6(e,t){var n,r,o,i=u6.lastIndex=d6.lastIndex=0,a=-1,l=[],c=[];for(e+="",t+="";(n=u6.exec(e))&&(r=d6.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(n=n[0])===(r=r[0])?l[a]?l[a]+=r:l[++a]=r:(l[++a]=null,c.push({i:a,x:c6(n,r)})),i=d6.lastIndex;return i<t.length&&(o=t.slice(i),l[a]?l[a]+=o:l[++a]=o),l.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)l[(n=c[r]).i]=n.x(e);return l.join("")})}function p6(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function h6(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?e6(t):("number"===o?c6:"string"===o?(n=D5(t))?(t=n,o6):f6:t instanceof D5?o6:t instanceof Date?l6:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?a6:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?s6:c6:p6))(e,t)}function m6(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function v6(e){return+e}var g6=[0,1];function b6(e){return e}function y6(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function x6(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=y6(o,r),i=n(a,i)):(r=y6(r,o),i=n(i,a)),function(e){return i(r(e))}}function w6(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=y6(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=b5(e,t,1,r)-1;return i[n](o[n](t))}}function S6(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function C6(){var e,t,n,r,o,i,a=g6,l=g6,c=h6,s=b6;function u(){var e=Math.min(a.length,l.length);return s!==b6&&(s=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?w6:x6,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),l,c)))(e(s(t)))}return d.invert=function(n){return s(t((i||(i=r(l,a.map(e),c6)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,v6),u()):a.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),c=m6,u()},d.clamp=function(e){return arguments.length?(s=!!e||b6,u()):s!==b6},d.interpolate=function(e){return arguments.length?(c=e,u()):c},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function O6(){return C6()(b6,b6)}var k6,E6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function j6(e){if(!(t=E6.exec(e)))throw new Error("invalid format: "+e);var t;return new $6({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function $6(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function P6(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function N6(e){return(e=P6(Math.abs(e)))?e[1]:NaN}function _6(e,t){var n=P6(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}j6.prototype=$6.prototype,$6.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const I6={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>_6(100*e,t),r:_6,s:function(e,t){var n=P6(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(k6=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+P6(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function M6(e){return e}var T6,A6,R6,D6=Array.prototype.map,L6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function q6(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?M6:(t=D6.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,l=t[0],c=0;o>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),i.push(e.substring(o-=l,o+l)),!((c+=l+1)>r));)l=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?M6:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(D6.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=j6(e)).fill,n=e.align,d=e.sign,f=e.symbol,p=e.zero,h=e.width,m=e.comma,v=e.precision,g=e.trim,b=e.type;"n"===b?(m=!0,b="g"):I6[b]||(void 0===v&&(v=12),g=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===f?o:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===f?i:/[%p]/.test(b)?c:"",w=I6[b],S=/[defgprs%]/.test(b);function C(e){var o,i,c,f=y,C=x;if("c"===b)C=w(e)+C,e="";else{var O=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),v),g&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),O&&0===+e&&"+"!==d&&(O=!1),f=(O?"("===d?d:s:"-"===d||"("===d?"":d)+f,C=("s"===b?L6[8+k6/3]:"")+C+(O&&"("===d?")":""),S)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){C=(46===c?a+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);break}}m&&!p&&(e=r(e,1/0));var k=f.length+e.length+C.length,E=k<h?new Array(h-k+1).join(t):"";switch(m&&p&&(e=r(E+e,E.length?h-C.length:1/0),E=""),n){case"<":e=f+e+C+E;break;case"=":e=f+E+e+C;break;case"^":e=E.slice(0,k=E.length>>1)+f+e+C+E.slice(k);break;default:e=E+f+e+C}return l(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),C.toString=function(){return e+""},C}return{format:d,formatPrefix:function(e,t){var n=d(((e=j6(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(N6(t)/3))),o=Math.pow(10,-r),i=L6[8+r/3];return function(e){return n(o*e)+i}}}}function z6(e,t,n,r){var o,i=u5(e,t,n);switch((r=j6(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(N6(t)/3)))-N6(Math.abs(e)))}(i,a))||(r.precision=o),R6(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,N6(t)-N6(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-N6(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return A6(r)}function B6(e){var t=e.domain;return e.ticks=function(e){var n=t();return c5(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return z6(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,l=i.length-1,c=i[a],s=i[l],u=10;for(s<c&&(o=c,c=s,s=o,o=a,a=l,l=o);u-- >0;){if((o=s5(c,s,n))===r)return i[a]=c,i[l]=s,t(i);if(o>0)c=Math.floor(c/o)*o,s=Math.ceil(s/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,s=Math.floor(s*o)/o}r=o}return e},e}function H6(){var e=O6();return e.copy=function(){return S6(e,H6())},U4.apply(e,arguments),B6(e)}function F6(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,v6),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return F6(e).unknown(t)},e=arguments.length?Array.from(e,v6):[0,1],B6(n)}function W6(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function K6(e){return Math.log(e)}function U6(e){return Math.exp(e)}function V6(e){return-Math.log(-e)}function G6(e){return-Math.exp(-e)}function Y6(e){return isFinite(e)?+("1e"+e):e<0?0:e}function X6(e){return(t,n)=>-e(-t,n)}function Q6(e){const t=e(K6,U6),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?Y6:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=X6(r),o=X6(o),e(V6,G6)):e(K6,U6),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],l=t[t.length-1];const c=l<a;c&&([a,l]=[l,a]);let s,u,d=r(a),f=r(l);const p=null==e?10:+e;let h=[];if(!(i%1)&&f-d<p){if(d=Math.floor(d),f=Math.ceil(f),a>0){for(;d<=f;++d)for(s=1;s<i;++s)if(u=d<0?s/o(-d):s*o(d),!(u<a)){if(u>l)break;h.push(u)}}else for(;d<=f;++d)for(s=i-1;s>=1;--s)if(u=d>0?s/o(-d):s*o(d),!(u<a)){if(u>l)break;h.push(u)}2*h.length<p&&(h=c5(a,l,p))}else h=c5(d,f,Math.min(f-d,p)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=j6(n)).precision||(n.trim=!0),n=A6(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(W6(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function Z6(){const e=Q6(C6()).domain([1,10]);return e.copy=()=>S6(e,Z6()).base(e.base()),U4.apply(e,arguments),e}function J6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function e8(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function t8(e){var t=1,n=e(J6(t),e8(t));return n.constant=function(n){return arguments.length?e(J6(t=+n),e8(t)):t},B6(n)}function n8(){var e=t8(C6());return e.copy=function(){return S6(e,n8()).constant(e.constant())},U4.apply(e,arguments)}function r8(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function o8(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function i8(e){return e<0?-e*e:e*e}function a8(e){var t=e(b6,b6),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(b6,b6):.5===n?e(o8,i8):e(r8(n),r8(1/n)):n},B6(t)}function l8(){var e=a8(C6());return e.copy=function(){return S6(e,l8()).exponent(e.exponent())},U4.apply(e,arguments),e}function c8(){return l8.apply(null,arguments).exponent(.5)}function s8(e){return Math.sign(e)*e*e}function u8(){var e,t=O6(),n=[0,1],r=!1;function o(n){var o=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(o)?e:r?Math.round(o):o}return o.invert=function(e){return t.invert(s8(e))},o.domain=function(e){return arguments.length?(t.domain(e),o):t.domain()},o.range=function(e){return arguments.length?(t.range((n=Array.from(e,v6)).map(s8)),o):n.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(r=!!e,o):r},o.clamp=function(e){return arguments.length?(t.clamp(e),o):t.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return u8(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},U4.apply(o,arguments),B6(o)}function d8(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function f8(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function p8(e=d5){if(e===d5)return h8;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}function h8(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function m8(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?h8:p8(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,l=Math.log(i),c=.5*Math.exp(2*l/3),s=.5*Math.sqrt(l*c*(i-c)/i)*(a-i/2<0?-1:1);m8(e,t,Math.max(n,Math.floor(t-a*c/i+s)),Math.min(r,Math.floor(t+(i-a)*c/i+s)),o)}const i=e[t];let a=n,l=r;for(v8(e,n,t),o(e[r],i)>0&&v8(e,n,r);a<l;){for(v8(e,a,l),++a,--l;o(e[a],i)<0;)++a;for(;o(e[l],i)>0;)--l}0===o(e[n],i)?v8(e,n,l):(++l,v8(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function v8(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function g8(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return f8(e);if(t>=1)return d8(e);var r,o=(r-1)*t,i=Math.floor(o),a=d8(m8(e,i).subarray(0,i+1));return a+(f8(e.subarray(i+1))-a)*(o-i)}}function b8(e,t,n=m5){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function y8(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e<o;)r[e-1]=b8(t,e/o);return i}function i(t){return null==t||isNaN(t=+t)?e:n[b5(r,t)]}return i.invertExtent=function(e){var o=n.indexOf(e);return o<0?[NaN,NaN]:[o>0?r[o-1]:t[0],o<r.length?r[o]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(d5),o()},i.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.quantiles=function(){return r.slice()},i.copy=function(){return y8().domain(t).range(n).unknown(e)},U4.apply(i,arguments)}function x8(){var e,t=0,n=1,r=1,o=[.5],i=[0,1];function a(t){return null!=t&&t<=t?i[b5(o,t,0,r)]:e}function l(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,l()):[t,n]},a.range=function(e){return arguments.length?(r=(i=Array.from(e)).length-1,l()):i.slice()},a.invertExtent=function(e){var a=i.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return x8().domain([t,n]).range(i).unknown(e)},U4.apply(B6(a),arguments)}function w8(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[b5(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return w8().domain(t).range(n).unknown(e)},U4.apply(o,arguments)}T6=q6({thousands:",",grouping:[3],currency:["$",""]}),A6=T6.format,R6=T6.formatPrefix;const S8=1e3,C8=6e4,O8=36e5,k8=864e5,E8=6048e5,j8=2592e6,$8=31536e6,P8=new Date,N8=new Date;function _8(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let l;do{a.push(l=new Date(+n)),t(n,i),e(n)}while(l<n&&n<r);return a},o.filter=n=>_8(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(o.count=(t,r)=>(P8.setTime(+t),N8.setTime(+r),e(P8),e(N8),Math.floor(n(P8,N8))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e===0:t=>o.count(0,t)%e===0):o:null)),o}const I8=_8(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);I8.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?_8(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):I8:null);I8.range;const M8=_8(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*S8)},(e,t)=>(t-e)/S8,e=>e.getUTCSeconds()),T8=(M8.range,_8(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*S8)},(e,t)=>{e.setTime(+e+t*C8)},(e,t)=>(t-e)/C8,e=>e.getMinutes())),A8=(T8.range,_8(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*C8)},(e,t)=>(t-e)/C8,e=>e.getUTCMinutes())),R8=(A8.range,_8(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*S8-e.getMinutes()*C8)},(e,t)=>{e.setTime(+e+t*O8)},(e,t)=>(t-e)/O8,e=>e.getHours())),D8=(R8.range,_8(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*O8)},(e,t)=>(t-e)/O8,e=>e.getUTCHours())),L8=(D8.range,_8(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*C8)/k8,e=>e.getDate()-1)),q8=(L8.range,_8(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/k8,e=>e.getUTCDate()-1)),z8=(q8.range,_8(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/k8,e=>Math.floor(e/k8)));z8.range;function B8(e){return _8(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*C8)/E8)}const H8=B8(0),F8=B8(1),W8=B8(2),K8=B8(3),U8=B8(4),V8=B8(5),G8=B8(6);H8.range,F8.range,W8.range,K8.range,U8.range,V8.range,G8.range;function Y8(e){return _8(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/E8)}const X8=Y8(0),Q8=Y8(1),Z8=Y8(2),J8=Y8(3),e7=Y8(4),t7=Y8(5),n7=Y8(6),r7=(X8.range,Q8.range,Z8.range,J8.range,e7.range,t7.range,n7.range,_8(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth())),o7=(r7.range,_8(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth())),i7=(o7.range,_8(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()));i7.every=e=>isFinite(e=Math.floor(e))&&e>0?_8(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null;i7.range;const a7=_8(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());a7.every=e=>isFinite(e=Math.floor(e))&&e>0?_8(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null;a7.range;function l7(e,t,n,r,o,i){const a=[[M8,1,S8],[M8,5,5e3],[M8,15,15e3],[M8,30,3e4],[i,1,C8],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,O8],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,k8],[r,2,1728e5],[n,1,E8],[t,1,j8],[t,3,7776e6],[e,1,$8]];function l(t,n,r){const o=Math.abs(n-t)/r,i=p5(([,,e])=>e).right(a,o);if(i===a.length)return e.every(u5(t/$8,n/$8,r));if(0===i)return I8.every(Math.max(u5(t,n,r),1));const[l,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return l.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:l(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},l]}const[c7,s7]=l7(a7,o7,X8,z8,D8,A8),[u7,d7]=l7(i7,r7,H8,L8,R8,T8);function f7(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function p7(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function h7(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var m7,v7,g7,b7={"-":"",_:" ",0:"0"},y7=/^\s*\d+/,x7=/^%/,w7=/[\\^$*+?|[\]().{}]/g;function S7(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function C7(e){return e.replace(w7,"\\$&")}function O7(e){return new RegExp("^(?:"+e.map(C7).join("|")+")","i")}function k7(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function E7(e,t,n){var r=y7.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function j7(e,t,n){var r=y7.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function $7(e,t,n){var r=y7.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function P7(e,t,n){var r=y7.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function N7(e,t,n){var r=y7.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function _7(e,t,n){var r=y7.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function I7(e,t,n){var r=y7.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function M7(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function T7(e,t,n){var r=y7.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function A7(e,t,n){var r=y7.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function R7(e,t,n){var r=y7.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function D7(e,t,n){var r=y7.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function L7(e,t,n){var r=y7.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function q7(e,t,n){var r=y7.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function z7(e,t,n){var r=y7.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function B7(e,t,n){var r=y7.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function H7(e,t,n){var r=y7.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function F7(e,t,n){var r=x7.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function W7(e,t,n){var r=y7.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function K7(e,t,n){var r=y7.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function U7(e,t){return S7(e.getDate(),t,2)}function V7(e,t){return S7(e.getHours(),t,2)}function G7(e,t){return S7(e.getHours()%12||12,t,2)}function Y7(e,t){return S7(1+L8.count(i7(e),e),t,3)}function X7(e,t){return S7(e.getMilliseconds(),t,3)}function Q7(e,t){return X7(e,t)+"000"}function Z7(e,t){return S7(e.getMonth()+1,t,2)}function J7(e,t){return S7(e.getMinutes(),t,2)}function e9(e,t){return S7(e.getSeconds(),t,2)}function t9(e){var t=e.getDay();return 0===t?7:t}function n9(e,t){return S7(H8.count(i7(e)-1,e),t,2)}function r9(e){var t=e.getDay();return t>=4||0===t?U8(e):U8.ceil(e)}function o9(e,t){return e=r9(e),S7(U8.count(i7(e),e)+(4===i7(e).getDay()),t,2)}function i9(e){return e.getDay()}function a9(e,t){return S7(F8.count(i7(e)-1,e),t,2)}function l9(e,t){return S7(e.getFullYear()%100,t,2)}function c9(e,t){return S7((e=r9(e)).getFullYear()%100,t,2)}function s9(e,t){return S7(e.getFullYear()%1e4,t,4)}function u9(e,t){var n=e.getDay();return S7((e=n>=4||0===n?U8(e):U8.ceil(e)).getFullYear()%1e4,t,4)}function d9(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+S7(t/60|0,"0",2)+S7(t%60,"0",2)}function f9(e,t){return S7(e.getUTCDate(),t,2)}function p9(e,t){return S7(e.getUTCHours(),t,2)}function h9(e,t){return S7(e.getUTCHours()%12||12,t,2)}function m9(e,t){return S7(1+q8.count(a7(e),e),t,3)}function v9(e,t){return S7(e.getUTCMilliseconds(),t,3)}function g9(e,t){return v9(e,t)+"000"}function b9(e,t){return S7(e.getUTCMonth()+1,t,2)}function y9(e,t){return S7(e.getUTCMinutes(),t,2)}function x9(e,t){return S7(e.getUTCSeconds(),t,2)}function w9(e){var t=e.getUTCDay();return 0===t?7:t}function S9(e,t){return S7(X8.count(a7(e)-1,e),t,2)}function C9(e){var t=e.getUTCDay();return t>=4||0===t?e7(e):e7.ceil(e)}function O9(e,t){return e=C9(e),S7(e7.count(a7(e),e)+(4===a7(e).getUTCDay()),t,2)}function k9(e){return e.getUTCDay()}function E9(e,t){return S7(Q8.count(a7(e)-1,e),t,2)}function j9(e,t){return S7(e.getUTCFullYear()%100,t,2)}function $9(e,t){return S7((e=C9(e)).getUTCFullYear()%100,t,2)}function P9(e,t){return S7(e.getUTCFullYear()%1e4,t,4)}function N9(e,t){var n=e.getUTCDay();return S7((e=n>=4||0===n?e7(e):e7.ceil(e)).getUTCFullYear()%1e4,t,4)}function _9(){return"+0000"}function I9(){return"%"}function M9(e){return+e}function T9(e){return Math.floor(+e/1e3)}function A9(e){return new Date(e)}function R9(e){return e instanceof Date?+e:+new Date(+e)}function D9(e,t,n,r,o,i,a,l,c,s){var u=O6(),d=u.invert,f=u.domain,p=s(".%L"),h=s(":%S"),m=s("%I:%M"),v=s("%I %p"),g=s("%a %d"),b=s("%b %d"),y=s("%B"),x=s("%Y");function w(e){return(c(e)<e?p:l(e)<e?h:a(e)<e?m:i(e)<e?v:r(e)<e?o(e)<e?g:b:n(e)<e?y:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,R9)):f().map(A9)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:s(t)},u.nice=function(e){var n=f();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?f(W6(n,e)):u},u.copy=function(){return S6(u,D9(e,t,n,r,o,i,a,l,c,s))},u}function L9(){return U4.apply(D9(u7,d7,i7,r7,H8,L8,R8,T8,M8,v7).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function q9(){return U4.apply(D9(c7,s7,a7,o7,X8,q8,D8,A8,M8,g7).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function z9(){var e,t,n,r,o,i=0,a=1,l=b6,c=!1;function s(t){return null==t||isNaN(t=+t)?o:l(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,l=e(n,r),s):[l(0),l(1)]}}return s.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),s):[i,a]},s.clamp=function(e){return arguments.length?(c=!!e,s):c},s.interpolator=function(e){return arguments.length?(l=e,s):l},s.range=u(h6),s.rangeRound=u(m6),s.unknown=function(e){return arguments.length?(o=e,s):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),s}}function B9(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function H9(){var e=B6(z9()(b6));return e.copy=function(){return B9(e,H9())},V4.apply(e,arguments)}function F9(){var e=Q6(z9()).domain([1,10]);return e.copy=function(){return B9(e,F9()).base(e.base())},V4.apply(e,arguments)}function W9(){var e=t8(z9());return e.copy=function(){return B9(e,W9()).constant(e.constant())},V4.apply(e,arguments)}function K9(){var e=a8(z9());return e.copy=function(){return B9(e,K9()).exponent(e.exponent())},V4.apply(e,arguments)}function U9(){return K9.apply(null,arguments).exponent(.5)}function V9(){var e=[],t=b6;function n(n){if(null!=n&&!isNaN(n=+n))return t((b5(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(d5),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>g8(e,r/t))},n.copy=function(){return V9(t).domain(e)},V4.apply(n,arguments)}function G9(){var e,t,n,r,o,i,a,l=0,c=.5,s=1,u=1,d=b6,f=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(u*e<u*t?r:o),d(f?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,d=function(e,t){void 0===t&&(t=e,e=h6);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}(e,[n,r,o]),p):[d(0),d(.5),d(1)]}}return p.domain=function(a){return arguments.length?([l,c,s]=a,e=i(l=+l),t=i(c=+c),n=i(s=+s),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[l,c,s]},p.clamp=function(e){return arguments.length?(f=!!e,p):f},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=h(h6),p.rangeRound=h(m6),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(l),t=a(c),n=a(s),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function Y9(){var e=B6(G9()(b6));return e.copy=function(){return B9(e,Y9())},V4.apply(e,arguments)}function X9(){var e=Q6(G9()).domain([.1,1,10]);return e.copy=function(){return B9(e,X9()).base(e.base())},V4.apply(e,arguments)}function Q9(){var e=t8(G9());return e.copy=function(){return B9(e,Q9()).constant(e.constant())},V4.apply(e,arguments)}function Z9(){var e=a8(G9());return e.copy=function(){return B9(e,Z9()).exponent(e.exponent())},V4.apply(e,arguments)}function J9(){return Z9.apply(null,arguments).exponent(.5)}!function(e){m7=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,c=e.shortMonths,s=O7(o),u=k7(o),d=O7(i),f=k7(i),p=O7(a),h=k7(a),m=O7(l),v=k7(l),g=O7(c),b=k7(c),y={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:U7,e:U7,f:Q7,g:c9,G:u9,H:V7,I:G7,j:Y7,L:X7,m:Z7,M:J7,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:M9,s:T9,S:e9,u:t9,U:n9,V:o9,w:i9,W:a9,x:null,X:null,y:l9,Y:s9,Z:d9,"%":I9},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:f9,e:f9,f:g9,g:$9,G:N9,H:p9,I:h9,j:m9,L:v9,m:b9,M:y9,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:M9,s:T9,S:x9,u:w9,U:S9,V:O9,w:k9,W:E9,x:null,X:null,y:j9,Y:P9,Z:_9,"%":I9},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:R7,e:R7,f:H7,g:I7,G:_7,H:L7,I:L7,j:D7,L:B7,m:A7,M:q7,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:T7,Q:W7,s:K7,S:z7,u:j7,U:$7,V:P7,w:E7,W:N7,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:I7,Y:_7,Z:M7,"%":F7};function S(e,t){return function(n){var r,o,i,a=[],l=-1,c=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++l<s;)37===e.charCodeAt(l)&&(a.push(e.slice(c,l)),null!=(o=b7[r=e.charAt(++l)])?r=e.charAt(++l):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=l+1);return a.push(e.slice(c,l)),a.join("")}}function C(e,t){return function(n){var r,o,i=h7(1900,void 0,1);if(O(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=p7(h7(i.y,0,1))).getUTCDay(),r=o>4||0===o?Q8.ceil(r):Q8(r),r=q8.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=f7(h7(i.y,0,1))).getDay(),r=o>4||0===o?F8.ceil(r):F8(r),r=L8.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?p7(h7(i.y,0,1)).getUTCDay():f7(h7(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,p7(i)):f7(i)}}function O(e,t,n,r){for(var o,i,a=0,l=t.length,c=n.length;a<l;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in b7?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),{format:function(e){var t=S(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),v7=m7.format,m7.parse,g7=m7.utcFormat,m7.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var eee=e=>e.chartData,tee=P3([eee],e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),nee=(e,t,n,r)=>r?tee(e):eee(e);function ree(e){return Number.isFinite(e)}function oee(e){return"number"==typeof e&&e>0&&Number.isFinite(e)}function iee(e){if(Array.isArray(e)&&2===e.length){var[t,n]=e;if(ree(t)&&ree(n))return!0}return!1}function aee(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}var lee=o(8351),cee=o.n(lee),see=e=>e,uee={"@@functional/placeholder":!0},dee=e=>e===uee,fee=e=>function t(){return 0===arguments.length||1===arguments.length&&dee(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},pee=(e,t)=>1===e?t:fee(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.filter(e=>e!==uee).length;return i>=e?t(...r):pee(e-i,fee(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var i=r.map(e=>dee(e)?n.shift():e);return t(...i,...n)}))}),hee=e=>pee(e.length,e),mee=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},vee=hee((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(e=>t[e]).map(e)),gee=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),bee=e=>{var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((e,n)=>{var r;return e===(null===(r=t)||void 0===r?void 0:r[n])})?n:(t=o,n=e(...o))}};function yee(e){return 0===e?1:Math.floor(new(cee())(e).abs().log(10).toNumber())+1}function xee(e,t,n){for(var r=new(cee())(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i}hee((e,t,n)=>{var r=+e;return r+n*(+t-r)}),hee((e,t,n)=>{var r=t-+e;return(n-e)/(r=r||1/0)}),hee((e,t,n)=>{var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});var wee=e=>{var[t,n]=e,[r,o]=[t,n];return t>n&&([r,o]=[n,t]),[r,o]},See=(e,t,n)=>{if(e.lte(0))return new(cee())(0);var r=yee(e.toNumber()),o=new(cee())(10).pow(r),i=e.div(o),a=1!==r?.05:.1,l=new(cee())(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?new(cee())(l.toNumber()):new(cee())(Math.ceil(l.toNumber()))},Cee=(e,t,n)=>{var r=new(cee())(1),o=new(cee())(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new(cee())(10).pow(yee(e)-1),o=new(cee())(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new(cee())(Math.floor(e)))}else 0===e?o=new(cee())(Math.floor((t-1)/2)):n||(o=new(cee())(Math.floor(e)));var a=Math.floor((t-1)/2);return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return see;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((e,t)=>t(e),o(...arguments))}}(vee(e=>o.add(new(cee())(e-a).mul(r)).toNumber()),mee)(0,t)},Oee=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(cee())(0),tickMin:new(cee())(0),tickMax:new(cee())(0)};var i,a=See(new(cee())(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new(cee())(0):(i=new(cee())(e).add(t).div(2)).sub(new(cee())(i).mod(a));var l=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new(cee())(t).sub(i).div(a).toNumber()),s=l+c+1;return s>n?Oee(e,t,n,r,o+1):(s<n&&(c=t>0?c+(n-s):c,l=t>0?l:l+(n-s)),{step:a,tickMin:i.sub(new(cee())(l).mul(a)),tickMax:i.add(new(cee())(c).mul(a))})};var kee=bee(function(e){var[t,n]=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Math.max(r,2),[a,l]=wee([t,n]);if(a===-1/0||l===1/0){var c=l===1/0?[a,...mee(0,r-1).map(()=>1/0)]:[...mee(0,r-1).map(()=>-1/0),l];return t>n?gee(c):c}if(a===l)return Cee(a,r,o);var{step:s,tickMin:u,tickMax:d}=Oee(a,l,i,o,0),f=xee(u,d.add(new(cee())(.1).mul(s)),s);return t>n?gee(f):f}),Eee=bee(function(e,t){var[n,r]=e,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],[i,a]=wee([n,r]);if(i===-1/0||a===1/0)return[n,r];if(i===a)return[i];var l=Math.max(t,2),c=See(new(cee())(a).sub(i).div(l-1),o,0),s=[...xee(new(cee())(i),new(cee())(a),c),a];return!1===o&&(s=s.map(e=>Math.round(e))),n>r?gee(s):s}),jee=e=>e.rootProps.stackOffset,$ee=e=>e.options.chartName,Pee=e=>e.rootProps.syncId,Nee=e=>e.rootProps.syncMethod,_ee=e=>e.options.eventEmitter,Iee=0,Mee="auto",Tee=!0,Aee=!1,Ree=!0,Dee=0,Lee="auto",qee=!0,zee=5,Bee=(e,t)=>{if(e&&t)return null!=e&&e.reversed?[t[1],t[0]]:t},Hee={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Iee,includeHidden:!1,name:void 0,reversed:!1,scale:Mee,tick:Tee,tickCount:void 0,ticks:void 0,type:"category",unit:void 0},Fee={allowDataOverflow:Aee,allowDecimals:!1,allowDuplicatedCategory:Ree,dataKey:void 0,domain:void 0,id:Dee,includeHidden:!1,name:void 0,reversed:!1,scale:Lee,tick:qee,tickCount:zee,ticks:void 0,type:"number",unit:void 0},Wee={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,dataKey:void 0,domain:void 0,id:Iee,includeHidden:!1,name:void 0,reversed:!1,scale:Mee,tick:Tee,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Kee={allowDataOverflow:Aee,allowDecimals:!1,allowDuplicatedCategory:Ree,dataKey:void 0,domain:void 0,id:Dee,includeHidden:!1,name:void 0,reversed:!1,scale:Lee,tick:qee,tickCount:zee,ticks:void 0,type:"category",unit:void 0},Uee=(e,t)=>null!=e.polarAxis.angleAxis[t]?e.polarAxis.angleAxis[t]:"radial"===e.layout.layoutType?Wee:Hee,Vee=(e,t)=>null!=e.polarAxis.radiusAxis[t]?e.polarAxis.radiusAxis[t]:"radial"===e.layout.layoutType?Kee:Fee,Gee=e=>e.polarOptions,Yee=P3([w4,S4,N4],function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2}),Xee=P3([Gee,Yee],(e,t)=>{if(null!=e)return j0(e.innerRadius,t,0)}),Qee=P3([Gee,Yee],(e,t)=>{if(null!=e)return j0(e.outerRadius,t,.8*t)}),Zee=P3([Gee],e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]}),Jee=(P3([Uee,Zee],Bee),P3([Yee,Xee,Qee],(e,t,n)=>{if(null!=e&&null!=t&&null!=n)return[t,n]})),ete=(P3([Vee,Jee],Bee),P3([H4,Gee,Xee,Qee,w4,S4],(e,t,n,r,o,i)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=n&&null!=r){var{cx:a,cy:l,startAngle:c,endAngle:s}=t;return{cx:j0(a,o,o/2),cy:j0(l,i,i/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:s,clockWise:!1}}})),tte=(e,t)=>t,nte=(e,t,n)=>n;function rte(e){return null==e?void 0:e.id}var ote=e=>{var t=H4(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},ite=e=>e.tooltip.settings.axisId,ate=e=>{var t=ote(e),n=ite(e);return Cte(e,t,n)},lte=P3([ate],e=>null==e?void 0:e.dataKey);function cte(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:o,dataKey:i}=n,a=new Map;return e.forEach(e=>{var t,n=null!==(t=e.data)&&void 0!==t?t:r;if(null!=n&&0!==n.length){var l=rte(e);n.forEach((t,n)=>{var r,c=null==i||o?n:String(l4(t,i,null)),s=l4(t,e.dataKey,0);r=a.has(c)?a.get(c):{},Object.assign(r,{[l]:s}),a.set(c,r)})}}),Array.from(a.values())}function ste(e){return null!=e.stackId&&null!=e.dataKey}function ute(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dte(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ute(Object(n),!0).forEach(function(t){fte(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ute(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fte(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pte=[0,"auto"],hte={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},mte=(e,t)=>e.cartesianAxis.xAxis[t],vte=(e,t)=>{var n=mte(e,t);return null==n?hte:n},gte={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:pte,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:60},bte=(e,t)=>e.cartesianAxis.yAxis[t],yte=(e,t)=>{var n=bte(e,t);return null==n?gte:n},xte={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},wte=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return null==n?xte:n},Ste=(e,t,n)=>{switch(t){case"xAxis":return vte(e,n);case"yAxis":return yte(e,n);case"zAxis":return wte(e,n);case"angleAxis":return Uee(e,n);case"radiusAxis":return Vee(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Cte=(e,t,n)=>{switch(t){case"xAxis":return vte(e,n);case"yAxis":return yte(e,n);case"angleAxis":return Uee(e,n);case"radiusAxis":return Vee(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Ote=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function kte(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Ete=e=>e.graphicalItems.cartesianItems,jte=P3([tte,nte],kte),$te=(e,t,n)=>e.filter(n).filter(e=>!0===(null==t?void 0:t.includeHidden)||!e.hide),Pte=P3([Ete,Ste,jte],$te),Nte=P3([Pte],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(ste)),_te=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),Ite=P3([Pte],_te),Mte=e=>e.map(e=>e.data).filter(Boolean).flat(1),Tte=P3([Pte],Mte),Ate=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:o}=t;return e.length>0?e:n.slice(r,o+1)},Rte=P3([Tte,nee],Ate),Dte=(e,t,n)=>null!=(null==t?void 0:t.dataKey)?e.map(e=>({value:l4(e,t.dataKey)})):n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:l4(e,t)}))):e.map(e=>({value:e})),Lte=P3([Rte,Ste,Pte],Dte);function qte(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}function zte(e){return e.filter(e=>O0(e)||e instanceof Date).map(Number).filter(e=>!1===w0(e))}function Bte(e,t,n){return!n||"number"!=typeof t||w0(t)?[]:n.length?zte(n.flatMap(n=>{var r,o,i=l4(e,n.dataKey);if(Array.isArray(i)?[r,o]=i:r=o=i,ree(r)&&ree(o))return[t-r,t+o]})):[]}var Hte=P3([Nte,nee,ate],cte),Fte=(e,t,n)=>{var r=t.reduce((e,t)=>(null==t.stackId||(null==e[t.stackId]&&(e[t.stackId]=[]),e[t.stackId].push(t)),e),{});return Object.fromEntries(Object.entries(r).map(t=>{var[r,o]=t,i=o.map(rte);return[r,{stackedData:p4(e,i,n),graphicalItems:o}]}))},Wte=P3([Hte,Nte,jee],Fte),Kte=(e,t,n)=>{var{dataStartIndex:r,dataEndIndex:o}=t;if("zAxis"!==n){var i=m4(e,r,o);if(null==i||0!==i[0]||0!==i[1])return i}},Ute=P3([Wte,eee,tte],Kte),Vte=(e,t,n,r,o)=>n.length>0?e.flatMap(e=>n.flatMap(n=>{var i,a,l=null===(i=r[n.id])||void 0===i?void 0:i.filter(e=>qte(o,e)),c=l4(e,null!==(a=t.dataKey)&&void 0!==a?a:n.dataKey);return{value:c,errorDomain:Bte(e,c,l)}})).filter(Boolean):null!=(null==t?void 0:t.dataKey)?e.map(e=>({value:l4(e,t.dataKey),errorDomain:[]})):e.map(e=>({value:e,errorDomain:[]})),Gte=e=>e.errorBars,Yte=(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>qte(n,e)),Xte=(P3([Ite,Gte,tte],Yte),P3([Rte,Ste,Ite,Gte,tte],Vte));function Qte(e){var{value:t}=e;if(O0(t)||t instanceof Date)return t}var Zte=e=>{var t=zte(e.flatMap(e=>[e.value,e.errorDomain]).flat(1));if(0!==t.length)return[Math.min(...t),Math.max(...t)]},Jte=e=>{var t;if(null==e||!("domain"in e))return pte;if(null!=e.domain)return e.domain;if(null!=e.ticks){if("number"===e.type){var n=zte(e.ticks);return[Math.min(...n),Math.max(...n)]}if("category"===e.type)return e.ticks.map(String)}return null!==(t=null==e?void 0:e.domain)&&void 0!==t?t:pte},ene=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);if(0!==r.length){var o=r.flat();return[Math.min(...o),Math.max(...o)]}},tne=e=>e.referenceElements.dots,nne=(e,t,n)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===n:e.yAxisId===n),rne=P3([tne,tte,nte],nne),one=e=>e.referenceElements.areas,ine=P3([one,tte,nte],nne),ane=e=>e.referenceElements.lines,lne=P3([ane,tte,nte],nne),cne=(e,t)=>{var n=zte(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==n.length)return[Math.min(...n),Math.max(...n)]},sne=P3(rne,tte,cne),une=(e,t)=>{var n=zte(e.flatMap(e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2]));if(0!==n.length)return[Math.min(...n),Math.max(...n)]},dne=P3([ine,tte],une),fne=(e,t)=>{var n=zte(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==n.length)return[Math.min(...n),Math.max(...n)]},pne=P3(lne,tte,fne),hne=P3(sne,pne,dne,(e,t,n)=>ene(e,n,t)),mne=P3([Ste],Jte),vne=(e,t,n,r,o,i,a)=>{var l=function(e,t){if(t&&"function"!=typeof e&&Array.isArray(e)&&2===e.length){var n,r,[o,i]=e;if(ree(o))n=o;else if("function"==typeof o)return;if(ree(i))r=i;else if("function"==typeof i)return;var a=[n,r];if(iee(a))return a}}(t,e.allowDataOverflow);return null!=l?l:function(e,t,n){if(n||null!=t){if("function"==typeof e&&null!=t)try{var r=e(t,n);if(iee(r))return aee(r,t,n)}catch(e){}if(Array.isArray(e)&&2===e.length){var o,i,[a,l]=e;if("auto"===a)null!=t&&(o=Math.min(...t));else if(C0(a))o=a;else if("function"==typeof a)try{null!=t&&(o=a(null==t?void 0:t[0]))}catch(e){}else if("string"==typeof a&&v4.test(a)){var c=v4.exec(a);if(null==c||null==t)o=void 0;else{var s=+c[1];o=t[0]-s}}else o=null==t?void 0:t[0];if("auto"===l)null!=t&&(i=Math.max(...t));else if(C0(l))i=l;else if("function"==typeof l)try{null!=t&&(i=l(null==t?void 0:t[1]))}catch(e){}else if("string"==typeof l&&g4.test(l)){var u=g4.exec(l);if(null==u||null==t)i=void 0;else{var d=+u[1];i=t[1]+d}}else i=null==t?void 0:t[1];var f=[o,i];if(iee(f))return null==t?f:aee(f,t,n)}}}(t,"vertical"===i&&"xAxis"===a||"horizontal"===i&&"yAxis"===a?ene(n,o,Zte(r)):ene(o,Zte(r)),e.allowDataOverflow)},gne=P3([Ste,mne,Ute,Xte,hne,H4,tte],vne),bne=[0,1],yne=(e,t,n,r,o,i,a)=>{if(null!=e&&null!=n&&0!==n.length||void 0!==a){var{dataKey:l,type:c}=e,s=c4(t,i);return s&&null==l?K4()(0,n.length):"category"===c?((e,t,n)=>{var r=e.map(Qte).filter(e=>null!=e);return n&&(null==t.dataKey||t.allowDuplicatedCategory&&$0(r))?K4()(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))})(r,e,s):"expand"===o?bne:a}},xne=P3([Ste,H4,Rte,Lte,jee,tte,gne],yne),wne=(t,n,r,o,i)=>{if(null!=t){var{scale:a,type:l}=t;if("auto"===a)return"radial"===n&&"radiusAxis"===i?"band":"radial"===n&&"angleAxis"===i?"linear":"category"===l&&o&&(o.indexOf("LineChart")>=0||o.indexOf("AreaChart")>=0||o.indexOf("ComposedChart")>=0&&!r)?"point":"category"===l?"band":"linear";if("string"==typeof a){var c="scale".concat(I0(a));return c in e?c:"point"}}},Sne=P3([Ste,H4,Ote,$ee,tte],wne);function Cne(t,n,r,o){if(null!=r&&null!=o){if("function"==typeof t.scale)return t.scale.copy().domain(r).range(o);var i=function(t){if(null!=t){if(t in e)return e[t]();var n="scale".concat(I0(t));return n in e?e[n]():void 0}}(n);if(null!=i){var a=i.domain(r).range(o);return(e=>{var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-d4,i=Math.max(r[0],r[1])+d4,a=e(t[0]),l=e(t[n-1]);(a<o||a>i||l<o||l>i)&&e.domain([t[0],t[n-1]])}})(a),a}}}var One=(e,t,n)=>{var r=Jte(t);if("auto"===n||"linear"===n)return null!=t&&t.tickCount&&Array.isArray(r)&&("auto"===r[0]||"auto"===r[1])&&iee(e)?kee(e,t.tickCount,t.allowDecimals):null!=t&&t.tickCount&&"number"===t.type&&iee(e)?Eee(e,t.tickCount,t.allowDecimals):void 0},kne=P3([xne,Cte,Sne],One),Ene=(e,t,n,r)=>{if("angleAxis"!==r&&"number"===(null==e?void 0:e.type)&&iee(t)&&Array.isArray(n)&&n.length>0){var o=t[0],i=n[0],a=t[1],l=n[n.length-1];return[Math.min(o,i),Math.max(a,l)]}return t},jne=P3([Ste,xne,kne,tte],Ene),$ne=P3(Lte,Ste,(e,t)=>{if(t&&"number"===t.type){var n=1/0,r=Array.from(zte(e.map(e=>e.value))).sort((e,t)=>e-t);if(r.length<2)return 1/0;var o=r[r.length-1]-r[0];if(0===o)return 1/0;for(var i=0;i<r.length-1;i++){var a=r[i+1]-r[i];n=Math.min(n,a)}return n/o}}),Pne=P3($ne,H4,e=>e.rootProps.barCategoryGap,N4,(e,t,n,r)=>r,(e,t,n,r,o)=>{if(!ree(e))return 0;var i="vertical"===t?r.height:r.width;if("gap"===o)return e*i/2;if("no-gap"===o){var a=j0(n,e*i),l=e*i/2;return l-a-(l-a)/i*a}return 0}),Nne=P3(vte,(e,t)=>{var n=vte(e,t);return null==n||"string"!=typeof n.padding?0:Pne(e,"xAxis",t,n.padding)},(e,t)=>{var n,r;if(null==e)return{left:0,right:0};var{padding:o}=e;return"string"==typeof o?{left:t,right:t}:{left:(null!==(n=o.left)&&void 0!==n?n:0)+t,right:(null!==(r=o.right)&&void 0!==r?r:0)+t}}),_ne=P3(yte,(e,t)=>{var n=yte(e,t);return null==n||"string"!=typeof n.padding?0:Pne(e,"yAxis",t,n.padding)},(e,t)=>{var n,r;if(null==e)return{top:0,bottom:0};var{padding:o}=e;return"string"==typeof o?{top:t,bottom:t}:{top:(null!==(n=o.top)&&void 0!==n?n:0)+t,bottom:(null!==(r=o.bottom)&&void 0!==r?r:0)+t}}),Ine=P3([N4,Nne,R4,A4,(e,t,n)=>n],(e,t,n,r,o)=>{var{padding:i}=r;return o?[i.left,n.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),Mne=P3([N4,H4,_ne,R4,A4,(e,t,n)=>n],(e,t,n,r,o,i)=>{var{padding:a}=o;return i?[r.height-a.bottom,a.top]:"horizontal"===t?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Tne=(e,t,n,r)=>{var o;switch(t){case"xAxis":return Ine(e,n,r);case"yAxis":return Mne(e,n,r);case"zAxis":return null===(o=wte(e,n))||void 0===o?void 0:o.range;case"angleAxis":return Zee(e);case"radiusAxis":return Jee(e,n);default:return}},Ane=P3([Ste,Tne],Bee),Rne=P3([Ste,Sne,jne,Ane],Cne);P3([Pte,Gte,tte],Yte);function Dne(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Lne=(e,t)=>t,qne=(e,t,n)=>n,zne=P3(k4,Lne,qne,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(Dne)),Bne=P3(E4,Lne,qne,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(Dne)),Hne=(e,t)=>({width:e.width,height:t.height}),Fne=P3(N4,vte,Hne),Wne=P3(S4,N4,zne,Lne,qne,(e,t,n,r,o)=>{var i,a={};return n.forEach(n=>{var l=Hne(t,n);null==i&&(i=((e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}})(t,r,e));var c="top"===r&&!o||"bottom"===r&&o;a[n.id]=i-Number(c)*l.height,i+=(c?-1:1)*l.height}),a}),Kne=P3(w4,N4,Bne,Lne,qne,(e,t,n,r,o)=>{var i,a={};return n.forEach(n=>{var l=((e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height}))(t,n);null==i&&(i=((e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}})(t,r,e));var c="left"===r&&!o||"right"===r&&o;a[n.id]=i-Number(c)*l.width,i+=(c?-1:1)*l.width}),a}),Une=P3([N4,vte,(e,t)=>{var n=vte(e,t);if(null!=n)return Wne(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(null!=t){var o=null==n?void 0:n[r];return null==o?{x:e.left,y:0}:{x:e.left,y:o}}}),Vne=P3([N4,yte,(e,t)=>{var n=yte(e,t);if(null!=n)return Kne(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(null!=t){var o=null==n?void 0:n[r];return null==o?{x:0,y:e.top}:{x:o,y:e.top}}}),Gne=P3(N4,yte,(e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height})),Yne=(e,t,n,r)=>{if(null!=n){var{allowDuplicatedCategory:o,type:i,dataKey:a}=n,l=c4(e,r),c=t.map(e=>e.value);return a&&l&&"category"===i&&o&&$0(c)?c:void 0}},Xne=P3([H4,Lte,Ste,tte],Yne),Qne=(e,t,n,r)=>{if(null!=n&&null!=n.dataKey){var{type:o,scale:i}=n;return!c4(e,r)||"number"!==o&&"auto"===i?void 0:t.map(e=>e.value)}},Zne=P3([H4,Lte,Cte,tte],Qne),Jne=P3([H4,(e,t,n)=>{switch(t){case"xAxis":return vte(e,n);case"yAxis":return yte(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Sne,Rne,Xne,Zne,Tne,kne,tte],(e,t,n,r,o,i,a,l,c)=>{if(null==t)return null;var s=c4(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:i,duplicateDomain:o,isCategorical:s,niceTicks:l,range:a,realScaleType:n,scale:r}}),ere=P3([H4,Cte,Sne,Rne,kne,Tne,Xne,Zne,tte],(e,t,n,r,o,i,a,l,c)=>{if(null!=t&&null!=r){var s=c4(e,c),{type:u,ticks:d,tickCount:f}=t,p="scaleBand"===n&&"function"==typeof r.bandwidth?r.bandwidth()/2:2,h="category"===u&&r.bandwidth?r.bandwidth()/p:0;h="angleAxis"===c&&null!=i&&i.length>=2?2*x0(i[0]-i[1])*h:h;var m=d||o;if(m){var v=m.map((e,t)=>{var n=a?a.indexOf(e):e;return{index:t,coordinate:r(n)+h,value:e,offset:h}});return v.filter(e=>!w0(e.coordinate))}return s&&l?l.map((e,t)=>({coordinate:r(e)+h,value:e,index:t,offset:h})):r.ticks?r.ticks(f).map(e=>({coordinate:r(e)+h,value:e,offset:h})):r.domain().map((e,t)=>({coordinate:r(e)+h,value:a?a[e]:e,index:t,offset:h}))}}),tre=P3([H4,Cte,Rne,Tne,Xne,Zne,tte],(e,t,n,r,o,i,a)=>{if(null!=t&&null!=n&&null!=r&&r[0]!==r[1]){var l=c4(e,a),{tickCount:c}=t,s=0;return s="angleAxis"===a&&(null==r?void 0:r.length)>=2?2*x0(r[0]-r[1])*s:s,l&&i?i.map((e,t)=>({coordinate:n(e)+s,value:e,index:t,offset:s})):n.ticks?n.ticks(c).map(e=>({coordinate:n(e)+s,value:e,offset:s})):n.domain().map((e,t)=>({coordinate:n(e)+s,value:o?o[e]:e,index:t,offset:s}))}}),nre=P3(Ste,Rne,(e,t)=>{if(null!=e&&null!=t)return dte(dte({},e),{},{scale:t})}),rre=P3([Ste,Sne,xne,Ane],Cne),ore=(P3((e,t,n)=>wte(e,n),rre,(e,t)=>{if(null!=e&&null!=t)return dte(dte({},e),{},{scale:t})}),P3([H4,k4,E4],(e,t,n)=>{switch(e){case"horizontal":return t.some(e=>e.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(e=>e.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}})),ire=e=>e.options.defaultTooltipEventType,are=e=>e.options.validateTooltipEventTypes;function lre(e,t,n){if(null==e)return t;var r=e?"axis":"item";return null==n?t:n.includes(r)?r:t}function cre(e,t){return lre(t,ire(e),are(e))}var sre=(e,t)=>{var n,r=Number(t);if(!w0(r)&&null!=t)return r>=0?null==e||null===(n=e[r])||void 0===n?void 0:n.value:void 0};function ure(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dre(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ure(Object(n),!0).forEach(function(t){fre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ure(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fre(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pre=(e,t,n,r)=>{if(null==t)return Q2;var o=function(e,t,n){return"axis"===t?"click"===n?e.axisInteraction.click:e.axisInteraction.hover:"click"===n?e.itemInteraction.click:e.itemInteraction.hover}(e,t,n);if(null==o)return Q2;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;var i=!0===e.settings.active;if(null!=o.index){if(i)return dre(dre({},o),{},{active:!0})}else if(null!=r)return{active:!0,coordinate:void 0,dataKey:void 0,index:r};return dre(dre({},Q2),{},{coordinate:o.coordinate})},hre=(e,t)=>{var n=null==e?void 0:e.index;if(null==n)return null;var r=Number(n);if(!ree(r))return n;var o=1/0;return t.length>0&&(o=t.length-1),String(Math.max(0,Math.min(r,o)))},mre=(e,t,n,r,o,i,a,l)=>{if(null!=i&&null!=l){var c=a[0],s=null==c?void 0:l(c.positions,i);if(null!=s)return s;var u=null==o?void 0:o[Number(i)];if(u)return"horizontal"===n?{x:u.coordinate,y:(r.top+t)/2}:{x:(r.left+e)/2,y:u.coordinate}}},vre=(e,t,n,r)=>{return"axis"===t?e.tooltipItemPayloads:0===e.tooltipItemPayloads.length?[]:null==(o="hover"===n?e.itemInteraction.hover.dataKey:e.itemInteraction.click.dataKey)&&null!=r?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(e=>{var t;return(null===(t=e.settings)||void 0===t?void 0:t.dataKey)===o});var o},gre=e=>e.options.tooltipPayloadSearcher,bre=e=>e.tooltip;function yre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xre(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yre(Object(n),!0).forEach(function(t){wre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yre(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wre(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sre=(e,t,n,r,o,i,a)=>{if(null!=t&&null!=i){var{chartData:l,computedData:c,dataStartIndex:s,dataEndIndex:u}=n;return e.reduce((e,n)=>{var d,f,p,{dataDefinedOnItem:h,settings:m}=n,v=function(e,t){return null!=e?e:t}(h,l),g=Array.isArray(v)?r4(v,s,u):v,b=null!==(d=null==m?void 0:m.dataKey)&&void 0!==d?d:r,y=null==m?void 0:m.nameKey;(f=r&&Array.isArray(g)&&!Array.isArray(g[0])&&"axis"===a?N0(g,r,o):i(g,t,c,y),Array.isArray(f))?f.forEach(t=>{var n=xre(xre({},m),{},{name:t.name,unit:t.unit,color:void 0,fill:void 0});e.push(y4({tooltipEntrySettings:n,dataKey:t.dataKey,payload:t.payload,value:l4(t.payload,t.dataKey),name:t.name}))}):e.push(y4({tooltipEntrySettings:m,dataKey:b,payload:f,value:l4(f,b),name:null!==(p=l4(f,y))&&void 0!==p?p:null==m?void 0:m.name}));return e},[])}},Cre=P3([ate,H4,Ote,$ee,ote],wne),Ore=P3([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),kre=P3([ote,ite],kte),Ere=P3([Ore,ate,kre],$te),jre=P3([Ere],e=>e.filter(ste)),$re=P3([Ere],Mte),Pre=P3([$re,eee],Ate),Nre=P3([jre,eee,ate],cte),_re=P3([Pre,ate,Ere],Dte),Ire=P3([ate],Jte),Mre=P3([Ere],e=>e.filter(ste)),Tre=P3([Nre,Mre,jee],Fte),Are=P3([Tre,eee,ote],Kte),Rre=P3([Ere],_te),Dre=P3([Pre,ate,Rre,Gte,ote],Vte),Lre=P3([tne,ote,ite],nne),qre=P3([Lre,ote],cne),zre=P3([one,ote,ite],nne),Bre=P3([zre,ote],une),Hre=P3([ane,ote,ite],nne),Fre=P3([Hre,ote],fne),Wre=P3([qre,Fre,Bre],ene),Kre=P3([ate,Ire,Are,Dre,Wre,H4,ote],vne),Ure=P3([ate,H4,Pre,_re,jee,ote,Kre],yne),Vre=P3([Ure,ate,Cre],One),Gre=P3([ate,Ure,Vre,ote],Ene),Yre=e=>{var t=ote(e),n=ite(e);return Tne(e,t,n,!1)},Xre=P3([ate,Yre],Bee),Qre=P3([ate,Cre,Gre,Xre],Cne),Zre=P3([H4,_re,ate,ote],Yne),Jre=P3([H4,_re,ate,ote],Qne),eoe=P3([H4,ate,Cre,Qre,Yre,Zre,Jre,ote],(e,t,n,r,o,i,a,l)=>{if(t){var{type:c}=t,s=c4(e,l);if(r){var u="scaleBand"===n&&r.bandwidth?r.bandwidth()/2:2,d="category"===c&&r.bandwidth?r.bandwidth()/u:0;return d="angleAxis"===l&&null!=o&&(null==o?void 0:o.length)>=2?2*x0(o[0]-o[1])*d:d,s&&a?a.map((e,t)=>({coordinate:r(e)+d,value:e,index:t,offset:d})):r.domain().map((e,t)=>({coordinate:r(e)+d,value:i?i[e]:e,index:t,offset:d}))}}}),toe=P3([ire,are,e=>e.tooltip.settings],(e,t,n)=>lre(n.shared,e,t)),noe=e=>e.tooltip.settings.trigger,roe=e=>e.tooltip.settings.defaultIndex,ooe=P3([bre,toe,noe,roe],pre),ioe=P3([ooe,Pre],hre),aoe=P3([eoe,ioe],sre),loe=P3([ooe],e=>{if(e)return e.dataKey}),coe=P3([bre,toe,noe,roe],vre),soe=P3([w4,S4,H4,N4,eoe,roe,coe,gre],mre),uoe=P3([ooe,soe],(e,t)=>null!=e&&e.coordinate?e.coordinate:t),doe=P3([ooe],e=>e.active),foe=P3([coe,ioe,eee,lte,aoe,gre,toe],Sre),poe=P3([foe],e=>{if(null!=e){var t=e.map(e=>e.payload).filter(e=>null!=e);return Array.from(new Set(t))}}),hoe=(e,t)=>t,moe=(e,t,n)=>n,voe=(e,t,n,r)=>r,goe=P3(eoe,e=>z3()(e,e=>e.coordinate)),boe=P3([bre,hoe,moe,voe],pre),yoe=P3([boe,Pre],hre),xoe=P3([bre,hoe,moe,voe],vre),woe=P3([w4,S4,H4,N4,eoe,voe,xoe,gre],mre),Soe=P3([boe,woe],(e,t)=>{var n;return null!==(n=e.coordinate)&&void 0!==n?n:t}),Coe=P3(eoe,yoe,sre),Ooe=P3([xoe,yoe,eee,lte,Coe,gre,hoe],Sre),koe=P3([boe],e=>({isActive:e.active,activeIndex:e.index})),Eoe=P3([(e,t)=>t,H4,ete,ote,Xre,eoe,goe,N4],(e,t,n,r,o,i,a,l)=>{if(e&&t&&r&&o&&i){var c=function(e,t,n,r,o){return"horizontal"===n||"vertical"===n?e>=o.left&&e<=o.left+o.width&&t>=o.top&&t<=o.top+o.height?{x:e,y:t}:null:r?n4({x:e,y:t},r):null}(e.chartX,e.chartY,t,n,l);if(c){var s=((e,t)=>"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius)(c,t),u=((e,t,n,r,o)=>{var i,a=-1,l=null!==(i=null==t?void 0:t.length)&&void 0!==i?i:0;if(l<=1||null==e)return 0;if("angleAxis"===r&&null!=o&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var c=0;c<l;c++){var s=c>0?n[c-1].coordinate:n[l-1].coordinate,u=n[c].coordinate,d=c>=l-1?n[0].coordinate:n[c+1].coordinate,f=void 0;if(x0(u-s)!==x0(d-u)){var p=[];if(x0(d-u)===x0(o[1]-o[0])){f=d;var h=u+o[1]-o[0];p[0]=Math.min(h,(h+s)/2),p[1]=Math.max(h,(h+s)/2)}else{f=s;var m=d+o[1]-o[0];p[0]=Math.min(u,(m+u)/2),p[1]=Math.max(u,(m+u)/2)}var v=[Math.min(u,(f+u)/2),Math.max(u,(f+u)/2)];if(e>v[0]&&e<=v[1]||e>=p[0]&&e<=p[1]){({index:a}=n[c]);break}}else{var g=Math.min(s,d),b=Math.max(s,d);if(e>(g+u)/2&&e<=(b+u)/2){({index:a}=n[c]);break}}}else if(t)for(var y=0;y<l;y++)if(0===y&&e<=(t[y].coordinate+t[y+1].coordinate)/2||y>0&&y<l-1&&e>(t[y].coordinate+t[y-1].coordinate)/2&&e<=(t[y].coordinate+t[y+1].coordinate)/2||y===l-1&&e>(t[y].coordinate+t[y-1].coordinate)/2){({index:a}=t[y]);break}return a})(s,a,i,r,o),d=((e,t,n,r)=>{var o=t.find(e=>e&&e.index===n);if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,{radius:a}=r;return i4(i4(i4({},r),J3(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var l=o.coordinate,{angle:c}=r;return i4(i4(i4({},r),J3(r.cx,r.cy,l,c)),{},{angle:c,radius:l})}return{x:0,y:0}})(t,i,u,c);return{activeIndex:String(u),activeCoordinate:d}}}}),joe=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},$oe=B1("mouseClick"),Poe=T2();Poe.startListening({actionCreator:$oe,effect:(e,t)=>{var n=e.payload,r=Eoe(t.getState(),joe(n));null!=(null==r?void 0:r.activeIndex)&&t.dispatch(l3({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var Noe=B1("mouseMove"),_oe=T2();function Ioe(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":t}function Moe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Toe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Moe(Object(n),!0).forEach(function(t){Aoe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Moe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Aoe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}_oe.startListening({actionCreator:Noe,effect:(e,t)=>{var n=e.payload,r=t.getState(),o=cre(r,r.tooltip.settings.shared),i=Eoe(r,joe(n));"axis"===o&&(null!=(null==i?void 0:i.activeIndex)?t.dispatch(a3({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate})):t.dispatch(o3()))}});var Roe=t2({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload;e.yAxis[n]&&(e.yAxis[n]=Toe(Toe({},e.yAxis[n]),{},{width:r}))}}}),{addXAxis:Doe,removeXAxis:Loe,addYAxis:qoe,removeYAxis:zoe,addZAxis:Boe,removeZAxis:Hoe,updateYAxisWidth:Foe}=Roe.actions,Woe=Roe.reducer,Koe=t2({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:n,next:r}=t.payload,o=R1(e).cartesianItems.indexOf(n);o>-1&&(e.cartesianItems[o]=r)},removeCartesianGraphicalItem(e,t){var n=R1(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var n=R1(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)}}}),{addCartesianGraphicalItem:Uoe,replaceCartesianGraphicalItem:Voe,removeCartesianGraphicalItem:Goe,addPolarGraphicalItem:Yoe,removePolarGraphicalItem:Xoe}=Koe.actions,Qoe=Koe.reducer,Zoe=t2({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=R1(e).dots.findIndex(e=>e===t.payload);-1!==n&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=R1(e).areas.findIndex(e=>e===t.payload);-1!==n&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=R1(e).lines.findIndex(e=>e===t.payload);-1!==n&&e.lines.splice(n,1)}}}),{addDot:Joe,removeDot:eie,addArea:tie,removeArea:nie,addLine:rie,removeLine:oie}=Zoe.actions,iie=Zoe.reducer,aie={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},lie=t2({name:"brush",initialState:aie,reducers:{setBrushSettings:(e,t)=>null==t.payload?aie:t.payload}}),{setBrushSettings:cie}=lie.actions,sie=lie.reducer,uie=t2({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var n=R1(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)}}}),{setLegendSize:die,setLegendSettings:fie,addLegendPayload:pie,removeLegendPayload:hie}=uie.actions,mie=uie.reducer,vie={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},gie=t2({name:"rootProps",initialState:vie,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!==(n=t.payload.barGap)&&void 0!==n?n:vie.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),bie=gie.reducer,{updateOptions:yie}=gie.actions,xie=t2({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:wie,removeRadiusAxis:Sie,addAngleAxis:Cie,removeAngleAxis:Oie}=xie.actions,kie=xie.reducer,Eie=t2({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:jie}=Eie.actions,$ie=Eie.reducer,Pie=B1("keyDown"),Nie=B1("focus"),_ie=T2();_ie.startListening({actionCreator:Pie,effect:(e,t)=>{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var{keyboardInteraction:r}=n.tooltip,o=e.payload;if("ArrowRight"===o||"ArrowLeft"===o||"Enter"===o){var i=Number(hre(r,Pre(n))),a=eoe(n);if("Enter"!==o){var l=i+("ArrowRight"===o?1:-1)*("left-to-right"===ore(n)?1:-1);if(!(null==a||l>=a.length||l<0)){var c=woe(n,"axis","hover",String(l));t.dispatch(s3({active:!0,activeIndex:l.toString(),activeDataKey:void 0,activeCoordinate:c}))}}else{var s=woe(n,"axis","hover",String(r.index));t.dispatch(s3({active:!r.active,activeIndex:r.index,activeDataKey:r.dataKey,activeCoordinate:s}))}}}}}),_ie.startListening({actionCreator:Nie,effect:(e,t)=>{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var{keyboardInteraction:r}=n.tooltip;if(!r.active&&null==r.index){var o=woe(n,"axis","hover",String("0"));t.dispatch(s3({activeDataKey:void 0,active:!0,activeIndex:"0",activeCoordinate:o}))}}}});var Iie=B1("externalEvent"),Mie=T2();Mie.startListening({actionCreator:Iie,effect:(e,t)=>{if(null!=e.payload.handler){var n=t.getState(),r={activeCoordinate:uoe(n),activeDataKey:loe(n),activeIndex:ioe(n),activeLabel:aoe(n),activeTooltipIndex:ioe(n),isTooltipActive:doe(n)};e.payload.handler(r,e.payload.reactEvent)}}});var Tie=P3([bre],e=>e.tooltipItemPayloads),Aie=P3([Tie,gre,(e,t,n)=>t,(e,t,n)=>n],(e,t,n,r)=>{var o=e.find(e=>e.settings.dataKey===r);if(null!=o){var{positions:i}=o;if(null!=i)return t(i,n)}}),Rie=B1("touchMove"),Die=T2();Die.startListening({actionCreator:Rie,effect:(e,t)=>{var n=e.payload,r=t.getState(),o=cre(r,r.tooltip.settings.shared);if("axis"===o){var i=Eoe(r,joe({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY,currentTarget:n.currentTarget}));null!=(null==i?void 0:i.activeIndex)&&t.dispatch(a3({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if("item"===o){var a,l=n.touches[0],c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var s=c.getAttribute("data-recharts-item-index"),u=null!==(a=c.getAttribute("data-recharts-item-data-key"))&&void 0!==a?a:void 0,d=Aie(t.getState(),s,u);t.dispatch(n3({activeDataKey:u,activeIndex:s,activeCoordinate:d}))}}});var Lie=t2({name:"errorBars",initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:o}=t.payload;e[n]&&(e[n]=e[n].map(e=>e.dataKey===r.dataKey&&e.direction===r.direction?o:e))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(e=>e.dataKey!==r.dataKey||e.direction!==r.direction))}}}),{addErrorBar:qie,replaceErrorBar:zie,removeErrorBar:Bie}=Lie.actions,Hie=Lie.reducer,Fie=!1,Wie=!("undefined"!=typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout),Kie=W0({brush:sie,cartesianAxis:Woe,chartData:m3,errorBars:Hie,graphicalItems:Qoe,layout:w3,legend:mie,options:L2,polarAxis:kie,polarOptions:$ie,referenceElements:iie,rootProps:bie,tooltip:u3});function Uie(e){var{preloadedState:t,children:r,reduxStoreName:o}=e,i=T4(),a=(0,n.useRef)(null);if(i)return r;null==a.current&&(a.current=function(e){return G1({reducer:Kie,preloadedState:e,middleware:e=>e({serializableCheck:!1}).concat([Poe.middleware,_oe.middleware,_ie.middleware,Mie.middleware,Die.middleware]),devTools:Fie&&{serialize:{replacer:Ioe},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(t,o));var l=I3;return n.createElement(X2,{context:l,store:a.current},r)}var Vie=e=>{var{chartData:t}=e,r=T3(),o=T4();return(0,n.useEffect)(()=>o?()=>{}:(r(f3(t)),()=>{r(f3(void 0))}),[t,r,o]),null};function Gie(e){var{layout:t,width:r,height:o,margin:i}=e,a=T3(),l=T4();return(0,n.useEffect)(()=>{l||(a(b3(t)),a(y3({width:r,height:o})),a(g3(i)))},[a,l,t,r,o,i]),null}function Yie(e){var t=T3();return(0,n.useEffect)(()=>{t(yie(e))},[t,e]),null}var Xie=()=>L3(e=>e.rootProps.accessibilityLayer),Qie=(o(4363),["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"]);function Zie(e){return"string"==typeof e&&Qie.includes(e)}var Jie=["points","pathLength"],eae={svg:["viewBox","children"],polygon:Jie,polyline:Jie},tae=(e,t)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,n.isValidElement)(e)&&(r=e.props),"object"!=typeof r&&"function"!=typeof r)return null;var o={};return Object.keys(r).forEach(e=>{Zie(e)&&(o[e]=t||(t=>r[e](r,t)))}),o},nae=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function rae(e){return"string"==typeof e&&nae.includes(e)}function oae(e){var t=Object.entries(e).filter(e=>{var[t]=e;return rae(t)});return Object.fromEntries(t)}var iae=e=>!e||"object"!=typeof e||!("clipDot"in e)||Boolean(e.clipDot),aae=(e,t,r)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var o=e;if((0,n.isValidElement)(e)&&(o=e.props),"object"!=typeof o&&"function"!=typeof o)return null;var i={};return Object.keys(o).forEach(e=>{var n;((e,t,n,r)=>{var o;if("symbol"==typeof t||"number"==typeof t)return!0;var i=null!==(o=r&&(null==eae?void 0:eae[r]))&&void 0!==o?o:[],a=t.startsWith("data-"),l="function"!=typeof e&&(Boolean(r)&&i.includes(t)||rae(t)),c=Boolean(n)&&Zie(t);return a||l||c})(null===(n=o)||void 0===n?void 0:n[e],e,t,r)&&(i[e]=o[e])}),i},lae=["children","width","height","viewBox","className","style","title","desc"];function cae(){return cae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cae.apply(null,arguments)}var sae=(0,n.forwardRef)((e,t)=>{var{children:r,width:o,height:i,viewBox:a,className:l,style:c,title:s,desc:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,lae),f=a||{width:o,height:i,x:0,y:0},p=m0("recharts-surface",l);return n.createElement("svg",cae({},aae(d,!0,"svg"),{className:p,width:o,height:i,style:c,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),n.createElement("title",null,s),n.createElement("desc",null,u),r)}),uae=["children"];function dae(){return dae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dae.apply(null,arguments)}var fae={width:"100%",height:"100%"},pae=(0,n.forwardRef)((e,t)=>{var r=z4(),o=B4(),i=Xie();if(!oee(r)||!oee(o))return null;var a,l,{children:c,otherAttributes:s,title:u,desc:d}=e;return a="number"==typeof s.tabIndex?s.tabIndex:i?0:void 0,l="string"==typeof s.role?s.role:i?"application":void 0,n.createElement(sae,dae({},s,{title:u,desc:d,role:l,tabIndex:a,width:r,height:o,style:fae,ref:t}),c)}),hae=e=>{var{children:t}=e,r=L3(R4);if(!r)return null;var{width:o,height:i,y:a,x:l}=r;return n.createElement(sae,{width:o,height:i,x:l,y:a},t)},mae=(0,n.forwardRef)((e,t)=>{var{children:r}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,uae);return T4()?n.createElement(hae,null,r):n.createElement(pae,dae({ref:t},o),r)});var vae=new(o(4128)),gae="recharts.syncEvent.tooltip",bae="recharts.syncEvent.brush";function yae(e){return e.tooltip.syncInteraction}var xae=["x","y"];function wae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wae(Object(n),!0).forEach(function(t){Cae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oae=()=>{};function kae(){var e=L3(Pee),t=L3(_ee),r=T3(),o=L3(Nee),i=L3(eoe),a=F4(),l=D4(),c=L3(e=>e.rootProps.className);(0,n.useEffect)(()=>{if(null==e)return Oae;var n=(n,c,s)=>{var u;if(t!==s&&e===n)if("index"!==o){if(null!=i){var d;if("function"==typeof o){var f={activeTooltipIndex:null==c.payload.index?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:null==c.payload.index?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},p=o(i,f);d=i[p]}else"value"===o&&(d=i.find(e=>String(e.value)===c.payload.label));var{coordinate:h}=c.payload;if(null!=d&&!1!==c.payload.active&&null!=h&&null!=l){var{x:m,y:v}=h,g=Math.min(m,l.x+l.width),b=Math.min(v,l.y+l.height),y={x:"horizontal"===a?d.coordinate:g,y:"horizontal"===a?b:d.coordinate},x=c3({active:c.payload.active,coordinate:y,dataKey:c.payload.dataKey,index:String(d.index),label:c.payload.label});r(x)}else r(c3({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}))}}else if(l&&null!=c&&null!==(u=c.payload)&&void 0!==u&&u.coordinate){var w=c.payload.coordinate,{x:S,y:C}=w,O=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(w,xae),k=Sae(Sae(Sae({},O),"number"==typeof S&&{x:Math.max(l.x,Math.min(S,l.x+l.width))}),"number"==typeof C&&{y:Math.max(l.y,Math.min(C,l.y+l.height))}),E=Sae(Sae({},c),{},{payload:Sae(Sae({},c.payload),{},{coordinate:k})});r(E)}else r(c)};return vae.on(gae,n),()=>{vae.off(gae,n)}},[c,r,t,e,o,i,a,l])}function Eae(){var e=T3();(0,n.useEffect)(()=>{e(q2())},[e]),kae(),function(){var e=L3(Pee),t=L3(_ee),r=T3();(0,n.useEffect)(()=>{if(null==e)return Oae;var n=(n,o,i)=>{t!==i&&e===n&&r(p3(o))};return vae.on(bae,n),()=>{vae.off(bae,n)}},[r,t,e])}()}function jae(e,t,r,o,i,a){var l=L3(n=>((e,t,n)=>{if(null!=t){var r=bre(e);return"axis"===t?"hover"===n?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:"hover"===n?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}})(n,e,t)),c=L3(_ee),s=L3(Pee),u=L3(Nee),d=L3(yae),f=null==d?void 0:d.active;(0,n.useEffect)(()=>{if(!f&&null!=s&&null!=c){var e=c3({active:a,coordinate:r,dataKey:l,index:i,label:"number"==typeof o?String(o):o});vae.emit(gae,s,e,c)}},[f,r,l,i,o,c,s,u,a])}var $ae=(0,n.createContext)(null),Pae=(0,n.createContext)(null);function Nae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nae(Object(n),!0).forEach(function(t){Iae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Iae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mae=(0,n.forwardRef)((e,t)=>{var{children:r,className:o,height:i,onClick:a,onContextMenu:l,onDoubleClick:c,onMouseDown:s,onMouseEnter:u,onMouseLeave:d,onMouseMove:f,onMouseUp:p,onTouchEnd:h,onTouchMove:m,onTouchStart:v,style:g,width:b}=e,y=T3(),[x,w]=(0,n.useState)(null),[S,C]=(0,n.useState)(null);Eae();var O=function(){var e=T3(),[t,r]=(0,n.useState)(null),o=L3(C4);return(0,n.useEffect)(()=>{if(null!=t){var n=t.getBoundingClientRect().width/t.offsetWidth;ree(n)&&n!==o&&e(x3(n))}},[t,e,o]),r}(),k=(0,n.useCallback)(e=>{O(e),"function"==typeof t&&t(e),w(e),C(e)},[O,t,w,C]),E=(0,n.useCallback)(e=>{y($oe(e)),y(Iie({handler:a,reactEvent:e}))},[y,a]),j=(0,n.useCallback)(e=>{y(Noe(e)),y(Iie({handler:u,reactEvent:e}))},[y,u]),$=(0,n.useCallback)(e=>{y(o3()),y(Iie({handler:d,reactEvent:e}))},[y,d]),P=(0,n.useCallback)(e=>{y(Noe(e)),y(Iie({handler:f,reactEvent:e}))},[y,f]),N=(0,n.useCallback)(()=>{y(Nie())},[y]),_=(0,n.useCallback)(e=>{y(Pie(e.key))},[y]),I=(0,n.useCallback)(e=>{y(Iie({handler:l,reactEvent:e}))},[y,l]),M=(0,n.useCallback)(e=>{y(Iie({handler:c,reactEvent:e}))},[y,c]),T=(0,n.useCallback)(e=>{y(Iie({handler:s,reactEvent:e}))},[y,s]),A=(0,n.useCallback)(e=>{y(Iie({handler:p,reactEvent:e}))},[y,p]),R=(0,n.useCallback)(e=>{y(Iie({handler:v,reactEvent:e}))},[y,v]),D=(0,n.useCallback)(e=>{y(Rie(e)),y(Iie({handler:m,reactEvent:e}))},[y,m]),L=(0,n.useCallback)(e=>{y(Iie({handler:h,reactEvent:e}))},[y,h]);return n.createElement($ae.Provider,{value:x},n.createElement(Pae.Provider,{value:S},n.createElement("div",{className:m0("recharts-wrapper",o),style:_ae({position:"relative",cursor:"default",width:b,height:i},g),onClick:E,onContextMenu:I,onDoubleClick:M,onFocus:N,onKeyDown:_,onMouseDown:T,onMouseEnter:j,onMouseLeave:$,onMouseMove:P,onMouseUp:A,onTouchEnd:L,onTouchMove:D,onTouchStart:R,ref:k},r)))}),Tae=P3([N4],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),Aae=P3([Tae,w4,S4],(e,t,n)=>{if(e&&null!=t&&null!=n)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),Rae=()=>L3(Aae),Dae=(0,n.createContext)(void 0),Lae=e=>{var{children:t}=e,[r]=(0,n.useState)("".concat(E0("recharts"),"-clip")),o=Rae();if(null==o)return null;var{x:i,y:a,width:l,height:c}=o;return n.createElement(Dae.Provider,{value:r},n.createElement("defs",null,n.createElement("clipPath",{id:r},n.createElement("rect",{x:i,y:a,height:c,width:l}))),t)},qae=["children","className","width","height","style","compact","title","desc"];var zae=(0,n.forwardRef)((e,t)=>{var{children:r,className:o,width:i,height:a,style:l,compact:c,title:s,desc:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,qae),f=oae(d);return c?n.createElement(mae,{otherAttributes:f,title:s,desc:u},r):n.createElement(Mae,{className:o,style:l,width:i,height:a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},n.createElement(mae,{otherAttributes:f,title:s,desc:u,ref:t},n.createElement(Lae,null,r)))});function Bae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fae(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bae(Object(n),!0).forEach(function(t){Hae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),r=t,o=Object.keys(t).reduce((e,t)=>(void 0===e[t]&&void 0!==r[t]&&(e[t]=r[t]),e),n);return o}var Wae=["width","height"];function Kae(){return Kae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kae.apply(null,arguments)}var Uae={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},Vae=(0,n.forwardRef)(function(e,t){var r,o=Fae(e.categoricalChartProps,Uae),{width:i,height:a}=o,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(o,Wae);if(!oee(i)||!oee(a))return null;var{chartName:c,defaultTooltipEventType:s,validateTooltipEventTypes:u,tooltipPayloadSearcher:d,categoricalChartProps:f}=e,p={chartName:c,defaultTooltipEventType:s,validateTooltipEventTypes:u,tooltipPayloadSearcher:d,eventEmitter:void 0};return n.createElement(Uie,{preloadedState:{options:p},reduxStoreName:null!==(r=f.id)&&void 0!==r?r:c},n.createElement(Vie,{chartData:f.data}),n.createElement(Gie,{width:i,height:a,layout:o.layout,margin:o.margin}),n.createElement(Yie,{accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className}),n.createElement(zae,Kae({},l,{width:i,height:a,ref:t})))}),Gae=["axis"],Yae=(0,n.forwardRef)((e,t)=>n.createElement(Vae,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Gae,tooltipPayloadSearcher:R2,categoricalChartProps:e,ref:t}));function Xae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qae(Object(n),!0).forEach(function(t){Jae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ele=Zae({},{cacheSize:2e3,enableCache:!0}),tle=new class{constructor(e){Xae(this,"cache",new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}(ele.cacheSize),nle={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},rle="recharts_measurement_span";var ole=(e,t)=>{try{var n=document.getElementById(rle);n||((n=document.createElement("span")).setAttribute("id",rle),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,nle,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch(e){return{width:0,height:0}}},ile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Wie)return{width:0,height:0};if(!ele.enableCache)return ole(e,t);var n=function(e,t){var n=t.fontSize||"",r=t.fontFamily||"",o=t.fontWeight||"",i=t.fontStyle||"",a=t.letterSpacing||"",l=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(o,"|").concat(i,"|").concat(a,"|").concat(l)}(e,t),r=tle.get(n);if(r)return r;var o=ole(e,t);return tle.set(n,o),o};function ale(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class lle{static create(e){return new lle(e)}constructor(e){this.scale=e}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(e){var{bandAware:t,position:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==e){if(n)switch(n){case"start":default:return this.scale(e);case"middle":var r=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+r;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o}if(t){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}isInRange(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}ale(lle,"EPS",1e-4);function cle(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function sle(e,t,n){return function(e){var{width:t,height:n}=e,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,i=Math.atan(n/t),a=o>i&&o<Math.PI-i?n/Math.sin(o):t/Math.cos(o);return Math.abs(a)}({width:e.width+t.width,height:e.height+t.height},n)}function ule(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function dle(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fle(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dle(Object(n),!0).forEach(function(t){ple(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dle(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ple(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hle(e,t,n){var r,{tick:o,ticks:i,viewBox:a,minTickGap:l,orientation:c,interval:s,tickFormatter:u,unit:d,angle:f}=e;if(!i||!i.length||!o)return[];if(C0(s)||Wie)return null!==(r=function(e,t){return cle(e,t+1)}(i,C0(s)?s:0))&&void 0!==r?r:[];var p=[],h="top"===c||"bottom"===c?"width":"height",m=d&&"width"===h?ile(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=(e,r)=>{var o="function"==typeof u?u(e.value,r):e.value;return"width"===h?sle(ile(o,{fontSize:t,letterSpacing:n}),m,f):ile(o,{fontSize:t,letterSpacing:n})[h]},g=i.length>=2?x0(i[1].coordinate-i[0].coordinate):1,b=function(e,t,n){var r="width"===n,{x:o,y:i,width:a,height:l}=e;return 1===t?{start:r?o:i,end:r?o+a:i+l}:{start:r?o+a:i+l,end:r?o:i}}(a,g,h);return"equidistantPreserveStart"===s?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),{start:l,end:c}=t,s=0,u=1,d=l,f=function(){var t=null==r?void 0:r[s];if(void 0===t)return{v:cle(r,u)};var i,a=s,f=()=>(void 0===i&&(i=n(t,a)),i),p=t.coordinate,h=0===s||ule(e,p,f,d,c);h||(s=0,d=l,u+=1),h&&(d=p+e*(f()/2+o),s+=u)};u<=a.length;)if(i=f())return i.v;return[]}(g,b,v,i,l):(p="preserveStart"===s||"preserveStartEnd"===s?function(e,t,n,r,o,i){var a=(r||[]).slice(),l=a.length,{start:c,end:s}=t;if(i){var u=r[l-1],d=n(u,l-1),f=e*(u.coordinate+e*d/2-s);a[l-1]=u=fle(fle({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),ule(e,u.tickCoord,()=>d,c,s)&&(s=u.tickCoord-e*(d/2+o),a[l-1]=fle(fle({},u),{},{isShow:!0}))}for(var p=i?l-1:l,h=function(t){var r,i=a[t],l=()=>(void 0===r&&(r=n(i,t)),r);if(0===t){var u=e*(i.coordinate-e*l()/2-c);a[t]=i=fle(fle({},i),{},{tickCoord:u<0?i.coordinate-u*e:i.coordinate})}else a[t]=i=fle(fle({},i),{},{tickCoord:i.coordinate});ule(e,i.tickCoord,l,c,s)&&(c=i.tickCoord+e*(l()/2+o),a[t]=fle(fle({},i),{},{isShow:!0}))},m=0;m<p;m++)h(m);return a}(g,b,v,i,l,"preserveStartEnd"===s):function(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,{start:l}=t,{end:c}=t,s=function(t){var r,s=i[t],u=()=>(void 0===r&&(r=n(s,t)),r);if(t===a-1){var d=e*(s.coordinate+e*u()/2-c);i[t]=s=fle(fle({},s),{},{tickCoord:d>0?s.coordinate-d*e:s.coordinate})}else i[t]=s=fle(fle({},s),{},{tickCoord:s.coordinate});ule(e,s.tickCoord,u,l,c)&&(c=s.tickCoord-e*(u()/2+o),i[t]=fle(fle({},s),{},{isShow:!0}))},u=a-1;u>=0;u--)s(u);return i}(g,b,v,i,l),p.filter(e=>e.isShow))}function mle(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}var vle=["children","className"];function gle(){return gle=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gle.apply(null,arguments)}var ble=n.forwardRef((e,t)=>{var{children:r,className:o}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,vle),a=m0("recharts-layer",o);return n.createElement("g",gle({className:a},aae(i,!0),{ref:t}),r)}),yle=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,xle=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,wle=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Sle=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Cle={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Ole=Object.keys(Cle),kle="NaN";class Ele{static parse(e){var t,[,n,r]=null!==(t=Sle.exec(e))&&void 0!==t?t:[];return new Ele(parseFloat(n),null!=r?r:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,w0(e)&&(this.unit=""),""===t||wle.test(t)||(this.num=NaN,this.unit=""),Ole.includes(t)&&(this.num=function(e,t){return e*Cle[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new Ele(NaN,""):new Ele(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new Ele(NaN,""):new Ele(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new Ele(NaN,""):new Ele(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new Ele(NaN,""):new Ele(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return w0(this.num)}}function jle(e){if(e.includes(kle))return kle;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,o,i]=null!==(n=yle.exec(t))&&void 0!==n?n:[],a=Ele.parse(null!=r?r:""),l=Ele.parse(null!=i?i:""),c="*"===o?a.multiply(l):a.divide(l);if(c.isNaN())return kle;t=t.replace(yle,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,[,u,d,f]=null!==(s=xle.exec(t))&&void 0!==s?s:[],p=Ele.parse(null!=u?u:""),h=Ele.parse(null!=f?f:""),m="+"===d?p.add(h):p.subtract(h);if(m.isNaN())return kle;t=t.replace(xle,m.toString())}return t}var $le=/\(([^()]*)\)/;function Ple(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,n=e;null!=(t=$le.exec(n));){var[,r]=t;n=n.replace($le,jle(r))}return n}(t),t=jle(t)}function Nle(e){var t=function(e){try{return Ple(e)}catch(e){return kle}}(e.slice(5,-1));return t===kle?"":t}var _le=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Ile=["dx","dy","angle","className","breakAll"];function Mle(){return Mle=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mle.apply(null,arguments)}function Tle(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ale=/[ \f\n\r\t\v\u2028\u2029]+/,Rle=e=>{var{children:t,breakAll:n,style:r}=e;try{var o=[];return _0(t)||(o=n?t.toString().split(""):t.toString().split(Ale)),{wordsWithComputedWidth:o.map(e=>({word:e,width:ile(e,r).width})),spaceWidth:n?0:ile(" ",r).width}}catch(e){return null}},Dle=e=>[{words:_0(e)?[]:e.toString().split(Ale)}],Lle=e=>{var{width:t,scaleToFit:n,children:r,style:o,breakAll:i,maxLines:a}=e;if((t||n)&&!Wie){var l=Rle({breakAll:i,children:r,style:o});if(!l)return Dle(r);var{wordsWithComputedWidth:c,spaceWidth:s}=l;return((e,t,n,r,o)=>{var{maxLines:i,children:a,style:l,breakAll:c}=e,s=C0(i),u=a,d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((e,t)=>{var{word:i,width:a}=t,l=e[e.length-1];if(l&&(null==r||o||l.width+a+n<Number(r)))l.words.push(i),l.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e},[])},f=d(t),p=e=>e.reduce((e,t)=>e.width>t.width?e:t);if(!s||o)return f;if(!(f.length>i||p(f).width>Number(r)))return f;for(var h,m=e=>{var t=u.slice(0,e),n=Rle({breakAll:c,style:l,children:t+"…"}).wordsWithComputedWidth,o=d(n);return[o.length>i||p(o).width>Number(r),o]},v=0,g=u.length-1,b=0;v<=g&&b<=u.length-1;){var y=Math.floor((v+g)/2),x=y-1,[w,S]=m(x),[C]=m(y);if(w||C||(v=y+1),w&&C&&(g=y-1),!w&&C){h=S;break}b++}return h||f})({breakAll:i,children:r,maxLines:a,style:o},c,s,t,n)}return Dle(r)},qle="#808080",zle=(0,n.forwardRef)((e,t)=>{var{x:r=0,y:o=0,lineHeight:i="1em",capHeight:a="0.71em",scaleToFit:l=!1,textAnchor:c="start",verticalAnchor:s="end",fill:u=qle}=e,d=Tle(e,_le),f=(0,n.useMemo)(()=>Lle({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:l,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,l,d.style,d.width]),{dx:p,dy:h,angle:m,className:v,breakAll:g}=d,b=Tle(d,Ile);if(!O0(r)||!O0(o)||0===f.length)return null;var y,x=r+(C0(p)?p:0),w=o+(C0(h)?h:0);switch(s){case"start":y=Nle("calc(".concat(a,")"));break;case"middle":y=Nle("calc(".concat((f.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:y=Nle("calc(".concat(f.length-1," * -").concat(i,")"))}var S=[];if(l){var C=f[0].width,{width:O}=d;S.push("scale(".concat(C0(O)?O/C:1,")"))}return m&&S.push("rotate(".concat(m,", ").concat(x,", ").concat(w,")")),S.length&&(b.transform=S.join(" ")),n.createElement("text",Mle({},aae(b,!0),{ref:t,x,y:w,className:m0("recharts-text",v),textAnchor:c,fill:u.includes("url")?qle:u}),f.map((e,t)=>{var r=e.words.join(g?"":" ");return n.createElement("tspan",{x,dy:0===t?y:i,key:"".concat(r,"-").concat(t)},r)}))});zle.displayName="Text";var Ble=["labelRef"];function Hle(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fle(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hle(Object(n),!0).forEach(function(t){Wle(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hle(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wle(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kle(){return Kle=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kle.apply(null,arguments)}var Ule=(0,n.createContext)(null),Vle=e=>{var{x:t,y:r,width:o,height:i,children:a}=e,l=(0,n.useMemo)(()=>({x:t,y:r,width:o,height:i}),[t,r,o,i]);return n.createElement(Ule.Provider,{value:l},a)},Gle=()=>{var e=(0,n.useContext)(Ule),t=D4();return e||t},Yle=(0,n.createContext)(null),Xle=()=>{var e=(0,n.useContext)(Yle),t=L3(ete);return e||t},Qle=e=>null!=e&&"function"==typeof e,Zle=(e,t,r,o,i)=>{var a,l,{offset:c,className:s}=e,{cx:u,cy:d,innerRadius:f,outerRadius:p,startAngle:h,endAngle:m,clockWise:v}=i,g=(f+p)/2,b=((e,t)=>x0(t-e)*Math.min(Math.abs(t-e),360))(h,m),y=b>=0?1:-1;switch(t){case"insideStart":a=h+y*c,l=v;break;case"insideEnd":a=m-y*c,l=!v;break;case"end":a=m+y*c,l=v;break;default:throw new Error("Unsupported position ".concat(t))}l=b<=0?l:!l;var x=J3(u,d,g,a),w=J3(u,d,g,a+359*(l?1:-1)),S="M".concat(x.x,",").concat(x.y,"\n A").concat(g,",").concat(g,",0,1,").concat(l?0:1,",\n ").concat(w.x,",").concat(w.y),C=_0(e.id)?E0("recharts-radial-line-"):e.id;return n.createElement("text",Kle({},o,{dominantBaseline:"central",className:m0("recharts-radial-bar-label",s)}),n.createElement("defs",null,n.createElement("path",{id:C,d:S})),n.createElement("textPath",{xlinkHref:"#".concat(C)},r))},Jle=e=>"cx"in e&&C0(e.cx),ece={offset:5};function tce(e){var t=Fae(e,ece),{viewBox:r,position:o,value:i,children:a,content:l,className:c="",textBreakAll:s,labelRef:u}=t,d=Xle(),f=Gle(),p=r||("center"===o?f:null!=d?d:f);if(!p||_0(i)&&_0(a)&&!(0,n.isValidElement)(l)&&"function"!=typeof l)return null;var h,m=Fle(Fle({},t),{},{viewBox:p});if((0,n.isValidElement)(l)){var{labelRef:v}=m,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(m,Ble);return(0,n.cloneElement)(l,g)}if("function"==typeof l){if(h=(0,n.createElement)(l,m),(0,n.isValidElement)(h))return h}else h=(e=>{var{value:t,formatter:n}=e,r=_0(e.children)?t:e.children;return"function"==typeof n?n(r):r})(t);var b=Jle(p),y=aae(t,!0);if(b&&("insideStart"===o||"insideEnd"===o||"end"===o))return Zle(t,o,h,y,p);var x=b?((e,t,n)=>{var{cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:l,endAngle:c}=e,s=(l+c)/2;if("outside"===n){var{x:u,y:d}=J3(r,o,a+t,s);return{x:u,y:d,textAnchor:u>=r?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:r,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:r,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:r,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=(i+a)/2,{x:p,y:h}=J3(r,o,f,s);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}})(p,t.offset,t.position):((e,t)=>{var n,{parentViewBox:r,offset:o,position:i}=e;null==r||Jle(r)||(n=r);var{x:a,y:l,width:c,height:s}=t,u=s>=0?1:-1,d=u*o,f=u>0?"end":"start",p=u>0?"start":"end",h=c>=0?1:-1,m=h*o,v=h>0?"end":"start",g=h>0?"start":"end";if("top"===i)return Fle(Fle({},{x:a+c/2,y:l-u*o,textAnchor:"middle",verticalAnchor:f}),n?{height:Math.max(l-n.y,0),width:c}:{});if("bottom"===i)return Fle(Fle({},{x:a+c/2,y:l+s+d,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(l+s),0),width:c}:{});if("left"===i){var b={x:a-m,y:l+s/2,textAnchor:v,verticalAnchor:"middle"};return Fle(Fle({},b),n?{width:Math.max(b.x-n.x,0),height:s}:{})}if("right"===i){var y={x:a+c+m,y:l+s/2,textAnchor:g,verticalAnchor:"middle"};return Fle(Fle({},y),n?{width:Math.max(n.x+n.width-y.x,0),height:s}:{})}var x=n?{width:c,height:s}:{};return"insideLeft"===i?Fle({x:a+m,y:l+s/2,textAnchor:g,verticalAnchor:"middle"},x):"insideRight"===i?Fle({x:a+c-m,y:l+s/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===i?Fle({x:a+c/2,y:l+d,textAnchor:"middle",verticalAnchor:p},x):"insideBottom"===i?Fle({x:a+c/2,y:l+s-d,textAnchor:"middle",verticalAnchor:f},x):"insideTopLeft"===i?Fle({x:a+m,y:l+d,textAnchor:g,verticalAnchor:p},x):"insideTopRight"===i?Fle({x:a+c-m,y:l+d,textAnchor:v,verticalAnchor:p},x):"insideBottomLeft"===i?Fle({x:a+m,y:l+s-d,textAnchor:g,verticalAnchor:f},x):"insideBottomRight"===i?Fle({x:a+c-m,y:l+s-d,textAnchor:v,verticalAnchor:f},x):i&&"object"==typeof i&&(C0(i.x)||S0(i.x))&&(C0(i.y)||S0(i.y))?Fle({x:a+j0(i.x,c),y:l+j0(i.y,s),textAnchor:"end",verticalAnchor:"end"},x):Fle({x:a+c/2,y:l+s/2,textAnchor:"middle",verticalAnchor:"middle"},x)})(t,p);return n.createElement(zle,Kle({ref:u,className:m0("recharts-label",c)},y,x,{breakAll:s}),h)}tce.displayName="Label";var nce=(e,t,r)=>{if(!e)return null;var o={viewBox:t,labelRef:r};return!0===e?n.createElement(tce,Kle({key:"label-implicit"},o)):O0(e)?n.createElement(tce,Kle({key:"label-implicit",value:e},o)):(0,n.isValidElement)(e)?e.type===tce?(0,n.cloneElement)(e,Fle({key:"label-implicit"},o)):n.createElement(tce,Kle({key:"label-implicit",content:e},o)):Qle(e)?n.createElement(tce,Kle({key:"label-implicit",content:e},o)):e&&"object"==typeof e?n.createElement(tce,Kle({},e,{key:"label-implicit"},o)):null};function rce(e){var{label:t}=e,n=Gle();return nce(t,n)||null}var oce=["axisLine","width","height","className","hide","ticks"],ice=["viewBox"],ace=["viewBox"];function lce(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cce(){return cce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cce.apply(null,arguments)}function sce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sce(Object(n),!0).forEach(function(t){dce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dce(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fce={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};function pce(e){var{x:t,y:r,width:o,height:i,orientation:a,mirror:l,axisLine:c,otherSvgProps:s}=e;if(!c)return null;var u=uce(uce(uce({},s),aae(c,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var d=+("top"===a&&!l||"bottom"===a&&l);u=uce(uce({},u),{},{x1:t,y1:r+d*i,x2:t+o,y2:r+d*i})}else{var f=+("left"===a&&!l||"right"===a&&l);u=uce(uce({},u),{},{x1:t+f*o,y1:r,x2:t+f*o,y2:r+i})}return n.createElement("line",cce({},u,{className:m0("recharts-cartesian-axis-line",y0()(c,"className"))}))}function hce(e){var t,{option:r,tickProps:o,value:i}=e,a=m0(o.className,"recharts-cartesian-axis-tick-value");if(n.isValidElement(r))t=n.cloneElement(r,uce(uce({},o),{},{className:a}));else if("function"==typeof r)t=r(uce(uce({},o),{},{className:a}));else{var l="recharts-cartesian-axis-tick-value";"boolean"!=typeof r&&(l=m0(l,null==r?void 0:r.className)),t=n.createElement(zle,cce({},o,{className:l}),i)}return t}function mce(e){var{ticks:t=[],tick:r,tickLine:o,stroke:i,tickFormatter:a,unit:l,padding:c,tickTextProps:s,orientation:u,mirror:d,x:f,y:p,width:h,height:m,tickSize:v,tickMargin:g,fontSize:b,letterSpacing:y,getTicksConfig:x,events:w}=e,S=hle(uce(uce({},x),{},{ticks:t}),b,y),C=function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(u,d),O=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(u,d),k=oae(x),E=aae(r,!1),j=uce(uce({},k),{},{fill:"none"},aae(o,!1)),$=S.map((e,t)=>{var{line:b,tick:y}=function(e,t,n,r,o,i,a,l,c){var s,u,d,f,p,h,m=l?-1:1,v=e.tickSize||a,g=C0(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":s=u=e.coordinate,h=(d=(f=n+ +!l*o)-m*v)-m*c,p=g;break;case"left":d=f=e.coordinate,p=(s=(u=t+ +!l*r)-m*v)-m*c,h=g;break;case"right":d=f=e.coordinate,p=(s=(u=t+ +l*r)+m*v)+m*c,h=g;break;default:s=u=e.coordinate,h=(d=(f=n+ +l*o)+m*v)+m*c,p=g}return{line:{x1:s,y1:d,x2:u,y2:f},tick:{x:p,y:h}}}(e,f,p,h,m,u,v,d,g),x=uce(uce(uce(uce({textAnchor:C,verticalAnchor:O},k),{},{stroke:"none",fill:i},E),y),{},{index:t,payload:e,visibleTicksCount:S.length,tickFormatter:a,padding:c},s);return n.createElement(ble,cce({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},((e,t,n)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return null;var r=null;return Object.keys(e).forEach(o=>{var i=e[o];Zie(o)&&"function"==typeof i&&(r||(r={}),r[o]=((e,t,n)=>r=>(e(t,n,r),null))(i,t,n))}),r})(w,e,t)),o&&n.createElement("line",cce({},j,b,{className:m0("recharts-cartesian-axis-tick-line",y0()(o,"className"))})),r&&n.createElement(hce,{option:r,tickProps:x,value:"".concat("function"==typeof a?a(e.value,t):e.value).concat(l||"")}))});return $.length>0?n.createElement("g",{className:"recharts-cartesian-axis-ticks"},$):null}var vce=(0,n.forwardRef)((e,t)=>{var{axisLine:r,width:o,height:i,className:a,hide:l,ticks:c}=e,s=lce(e,oce),[u,d]=(0,n.useState)(""),[f,p]=(0,n.useState)(""),h=(0,n.useRef)([]);(0,n.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>{var t;return(e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:o=0,tickMargin:i=0}=e,a=0;if(t){t.forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>a&&(a=t.width)}});var l=n?n.getBoundingClientRect().width:0,c=a+(o+i)+l+(n?r:0);return Math.round(c)}return 0})({ticks:h.current,label:null===(t=e.labelRef)||void 0===t?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=(0,n.useCallback)(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");h.current=Array.from(t);var n=t[0];if(n){var r=window.getComputedStyle(n),o=r.fontSize,i=r.letterSpacing;o===u&&i===f||(d(o),p(i))}}},[u,f]);return l||null!=o&&o<=0||null!=i&&i<=0?null:n.createElement(ble,{className:m0("recharts-cartesian-axis",a),ref:m},n.createElement(pce,{x:e.x,y:e.y,width:o,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:oae(e)}),n.createElement(mce,{ticks:c,tick:e.tick,tickLine:e.tickLine,stroke:e.stroke,tickFormatter:e.tickFormatter,unit:e.unit,padding:e.padding,tickTextProps:e.tickTextProps,orientation:e.orientation,mirror:e.mirror,x:e.x,y:e.y,width:e.width,height:e.height,tickSize:e.tickSize,tickMargin:e.tickMargin,fontSize:u,letterSpacing:f,getTicksConfig:e,events:s}),n.createElement(Vle,{x:e.x,y:e.y,width:e.width,height:e.height},n.createElement(rce,{label:e.label}),e.children))}),gce=n.memo(vce,(e,t)=>{var{viewBox:n}=e,r=lce(e,ice),{viewBox:o}=t,i=lce(t,ace);return mle(n,o)&&mle(r,i)}),bce=n.forwardRef((e,t)=>{var r=Fae(e,fce);return n.createElement(gce,cce({},r,{ref:t}))});bce.displayName="CartesianAxis";var yce=["x1","y1","x2","y2","key"],xce=["offset"],wce=["xAxisId","yAxisId"],Sce=["xAxisId","yAxisId"];function Cce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Oce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cce(Object(n),!0).forEach(function(t){kce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kce(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ece(){return Ece=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ece.apply(null,arguments)}function jce(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var $ce=e=>{var{fill:t}=e;if(!t||"none"===t)return null;var{fillOpacity:r,x:o,y:i,width:a,height:l,ry:c}=e;return n.createElement("rect",{x:o,y:i,ry:c,width:a,height:l,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Pce(e,t){var r;if(n.isValidElement(e))r=n.cloneElement(e,t);else if("function"==typeof e)r=e(t);else{var{x1:o,y1:i,x2:a,y2:l,key:c}=t,s=oae(jce(t,yce)),{offset:u}=s,d=jce(s,xce);r=n.createElement("line",Ece({},d,{x1:o,y1:i,x2:a,y2:l,fill:"none",key:c}))}return r}function Nce(e){var{x:t,width:r,horizontal:o=!0,horizontalPoints:i}=e;if(!o||!i||!i.length)return null;var{xAxisId:a,yAxisId:l}=e,c=jce(e,wce),s=i.map((e,n)=>{var i=Oce(Oce({},c),{},{x1:t,y1:e,x2:t+r,y2:e,key:"line-".concat(n),index:n});return Pce(o,i)});return n.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function _ce(e){var{y:t,height:r,vertical:o=!0,verticalPoints:i}=e;if(!o||!i||!i.length)return null;var{xAxisId:a,yAxisId:l}=e,c=jce(e,Sce),s=i.map((e,n)=>{var i=Oce(Oce({},c),{},{x1:e,y1:t,x2:e,y2:t+r,key:"line-".concat(n),index:n});return Pce(o,i)});return n.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Ice(e){var{horizontalFill:t,fillOpacity:r,x:o,y:i,width:a,height:l,horizontalPoints:c,horizontal:s=!0}=e;if(!s||!t||!t.length)return null;var u=c.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==u[0]&&u.unshift(0);var d=u.map((e,c)=>{var s=!u[c+1]?i+l-e:u[c+1]-e;if(s<=0)return null;var d=c%t.length;return n.createElement("rect",{key:"react-".concat(c),y:e,x:o,height:s,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function Mce(e){var{vertical:t=!0,verticalFill:r,fillOpacity:o,x:i,y:a,width:l,height:c,verticalPoints:s}=e;if(!t||!r||!r.length)return null;var u=s.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==u[0]&&u.unshift(0);var d=u.map((e,t)=>{var s=!u[t+1]?i+l-e:u[t+1]-e;if(s<=0)return null;var d=t%r.length;return n.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:s,height:c,stroke:"none",fill:r[d],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var Tce=(e,t)=>{var{xAxis:n,width:r,height:o,offset:i}=e;return s4(hle(Oce(Oce(Oce({},fce),n),{},{ticks:u4(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},Ace=(e,t)=>{var{yAxis:n,width:r,height:o,offset:i}=e;return s4(hle(Oce(Oce(Oce({},fce),n),{},{ticks:u4(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},Rce={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function Dce(e){var t=z4(),r=B4(),o=q4(),i=Oce(Oce({},Fae(e,Rce)),{},{x:C0(e.x)?e.x:o.left,y:C0(e.y)?e.y:o.top,width:C0(e.width)?e.width:o.width,height:C0(e.height)?e.height:o.height}),{xAxisId:a,yAxisId:l,x:c,y:s,width:u,height:d,syncWithTicks:f,horizontalValues:p,verticalValues:h}=i,m=T4(),v=L3(e=>Jne(e,"xAxis",a,m)),g=L3(e=>Jne(e,"yAxis",l,m));if(!C0(u)||u<=0||!C0(d)||d<=0||!C0(c)||c!==+c||!C0(s)||s!==+s)return null;var b=i.verticalCoordinatesGenerator||Tce,y=i.horizontalCoordinatesGenerator||Ace,{horizontalPoints:x,verticalPoints:w}=i;if(!(x&&x.length||"function"!=typeof y)){var S=p&&p.length,C=y({yAxis:g?Oce(Oce({},g),{},{ticks:S?p:g.ticks}):void 0,width:t,height:r,offset:o},!!S||f);M0(Array.isArray(C),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(x=C)}if(!(w&&w.length||"function"!=typeof b)){var O=h&&h.length,k=b({xAxis:v?Oce(Oce({},v),{},{ticks:O?h:v.ticks}):void 0,width:t,height:r,offset:o},!!O||f);M0(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(w=k)}return n.createElement("g",{className:"recharts-cartesian-grid"},n.createElement($ce,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),n.createElement(Ice,Ece({},i,{horizontalPoints:x})),n.createElement(Mce,Ece({},i,{verticalPoints:w})),n.createElement(Nce,Ece({},i,{offset:o,horizontalPoints:x,xAxis:v,yAxis:g})),n.createElement(_ce,Ece({},i,{offset:o,verticalPoints:w,xAxis:v,yAxis:g})))}Dce.displayName="CartesianGrid";var Lce=["dangerouslySetInnerHTML","ticks"],qce=["id"],zce=["domain"],Bce=["domain"];function Hce(){return Hce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hce.apply(null,arguments)}function Fce(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Wce(e){var t=T3();return(0,n.useEffect)(()=>(t(Doe(e)),()=>{t(Loe(e))}),[e,t]),null}var Kce=e=>{var{xAxisId:t,className:r}=e,o=L3(I4),i=T4(),a="xAxis",l=L3(e=>Rne(e,a,t,i)),c=L3(e=>ere(e,a,t,i)),s=L3(e=>Fne(e,t)),u=L3(e=>Une(e,t)),d=L3(e=>mte(e,t));if(null==s||null==u||null==d)return null;var{dangerouslySetInnerHTML:f,ticks:p}=e,h=Fce(e,Lce),{id:m}=d,v=Fce(d,qce);return n.createElement(bce,Hce({},h,v,{scale:l,x:u.x,y:u.y,width:s.width,height:s.height,className:m0("recharts-".concat(a," ").concat(a),r),viewBox:o,ticks:c}))},Uce={allowDataOverflow:hte.allowDataOverflow,allowDecimals:hte.allowDecimals,allowDuplicatedCategory:hte.allowDuplicatedCategory,height:hte.height,hide:!1,mirror:hte.mirror,orientation:hte.orientation,padding:hte.padding,reversed:hte.reversed,scale:hte.scale,tickCount:hte.tickCount,type:hte.type,xAxisId:0},Vce=e=>{var t,r,o,i,a,l=Fae(e,Uce);return n.createElement(n.Fragment,null,n.createElement(Wce,{interval:null!==(t=l.interval)&&void 0!==t?t:"preserveEnd",id:l.xAxisId,scale:l.scale,type:l.type,padding:l.padding,allowDataOverflow:l.allowDataOverflow,domain:l.domain,dataKey:l.dataKey,allowDuplicatedCategory:l.allowDuplicatedCategory,allowDecimals:l.allowDecimals,tickCount:l.tickCount,includeHidden:null!==(r=l.includeHidden)&&void 0!==r&&r,reversed:l.reversed,ticks:l.ticks,height:l.height,orientation:l.orientation,mirror:l.mirror,hide:l.hide,unit:l.unit,name:l.name,angle:null!==(o=l.angle)&&void 0!==o?o:0,minTickGap:null!==(i=l.minTickGap)&&void 0!==i?i:5,tick:null===(a=l.tick)||void 0===a||a,tickFormatter:l.tickFormatter}),n.createElement(Kce,l))},Gce=(e,t)=>{var{domain:n}=e,r=Fce(e,zce),{domain:o}=t;return!!mle(r,Fce(t,Bce))&&(Array.isArray(n)&&2===n.length&&Array.isArray(o)&&2===o.length?n[0]===o[0]&&n[1]===o[1]:mle({domain:n},{domain:o}))},Yce=n.memo(Vce,Gce);Yce.displayName="XAxis";var Xce=["dangerouslySetInnerHTML","ticks"],Qce=["id"],Zce=["domain"],Jce=["domain"];function ese(){return ese=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ese.apply(null,arguments)}function tse(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function nse(e){var t=T3();return(0,n.useEffect)(()=>(t(qoe(e)),()=>{t(zoe(e))}),[e,t]),null}var rse=e=>{var{yAxisId:t,className:r,width:o,label:i}=e,a=(0,n.useRef)(null),l=(0,n.useRef)(null),c=L3(I4),s=T4(),u=T3(),d="yAxis",f=L3(e=>Rne(e,d,t,s)),p=L3(e=>Gne(e,t)),h=L3(e=>Vne(e,t)),m=L3(e=>ere(e,d,t,s)),v=L3(e=>bte(e,t));if((0,n.useLayoutEffect)(()=>{if("auto"===o&&p&&!Qle(i)&&!(0,n.isValidElement)(i)&&null!=v){var e=a.current;if(e){var r=e.getCalculatedWidth();Math.round(p.width)!==Math.round(r)&&u(Foe({id:t,width:r}))}}},[m,p,u,i,t,o,v]),null==p||null==h||null==v)return null;var{dangerouslySetInnerHTML:g,ticks:b}=e,y=tse(e,Xce),{id:x}=v,w=tse(v,Qce);return n.createElement(bce,ese({},y,w,{ref:a,labelRef:l,scale:f,x:h.x,y:h.y,tickTextProps:"auto"===o?{width:void 0}:{width:o},width:p.width,height:p.height,className:m0("recharts-".concat(d," ").concat(d),r),viewBox:c,ticks:m}))},ose={allowDataOverflow:gte.allowDataOverflow,allowDecimals:gte.allowDecimals,allowDuplicatedCategory:gte.allowDuplicatedCategory,hide:!1,mirror:gte.mirror,orientation:gte.orientation,padding:gte.padding,reversed:gte.reversed,scale:gte.scale,tickCount:gte.tickCount,type:gte.type,width:gte.width,yAxisId:0},ise=e=>{var t,r,o,i,a,l=Fae(e,ose);return n.createElement(n.Fragment,null,n.createElement(nse,{interval:null!==(t=l.interval)&&void 0!==t?t:"preserveEnd",id:l.yAxisId,scale:l.scale,type:l.type,domain:l.domain,allowDataOverflow:l.allowDataOverflow,dataKey:l.dataKey,allowDuplicatedCategory:l.allowDuplicatedCategory,allowDecimals:l.allowDecimals,tickCount:l.tickCount,padding:l.padding,includeHidden:null!==(r=l.includeHidden)&&void 0!==r&&r,reversed:l.reversed,ticks:l.ticks,width:l.width,orientation:l.orientation,mirror:l.mirror,hide:l.hide,unit:l.unit,name:l.name,angle:null!==(o=l.angle)&&void 0!==o?o:0,minTickGap:null!==(i=l.minTickGap)&&void 0!==i?i:5,tick:null===(a=l.tick)||void 0===a||a,tickFormatter:l.tickFormatter}),n.createElement(rse,l))},ase=(e,t)=>{var{domain:n}=e,r=tse(e,Zce),{domain:o}=t;return!!mle(r,tse(t,Jce))&&(Array.isArray(n)&&2===n.length&&Array.isArray(o)&&2===o.length?n[0]===o[0]&&n[1]===o[1]:mle({domain:n},{domain:o}))},lse=n.memo(ise,ase);function cse(){return cse=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cse.apply(null,arguments)}function sse(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function use(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sse(Object(n),!0).forEach(function(t){dse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sse(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dse(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fse(e){return Array.isArray(e)&&O0(e[0])&&O0(e[1])?e.join(" ~ "):e}lse.displayName="YAxis";var pse=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:o={},labelStyle:i={},payload:a,formatter:l,itemSorter:c,wrapperClassName:s,labelClassName:u,label:d,labelFormatter:f,accessibilityLayer:p=!1}=e,h=use({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),m=use({margin:0},i),v=!_0(d),g=v?d:"",b=m0("recharts-default-tooltip",s),y=m0("recharts-tooltip-label",u);v&&f&&null!=a&&(g=f(d,a));var x=p?{role:"status","aria-live":"assertive"}:{};return n.createElement("div",cse({className:b,style:h},x),n.createElement("p",{className:y,style:m},n.isValidElement(g)?g:"".concat(g)),(()=>{if(a&&a.length){var e=(c?z3()(a,c):a).map((e,r)=>{if("none"===e.type)return null;var i=e.formatter||l||fse,{value:c,name:s}=e,u=c,d=s;if(i){var f=i(c,s,e,r,a);if(Array.isArray(f))[u,d]=f;else{if(null==f)return null;u=f}}var p=use({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},o);return n.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:p},O0(d)?n.createElement("span",{className:"recharts-tooltip-item-name"},d):null,O0(d)?n.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,n.createElement("span",{className:"recharts-tooltip-item-value"},u),n.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return n.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null})())},hse="recharts-tooltip-wrapper",mse={visibility:"hidden"};function vse(e){var{coordinate:t,translateX:n,translateY:r}=e;return m0(hse,{["".concat(hse,"-right")]:C0(n)&&t&&C0(t.x)&&n>=t.x,["".concat(hse,"-left")]:C0(n)&&t&&C0(t.x)&&n<t.x,["".concat(hse,"-bottom")]:C0(r)&&t&&C0(t.y)&&r>=t.y,["".concat(hse,"-top")]:C0(r)&&t&&C0(t.y)&&r<t.y})}function gse(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:o,position:i,reverseDirection:a,tooltipDimension:l,viewBox:c,viewBoxDimension:s}=e;if(i&&C0(i[r]))return i[r];var u=n[r]-l-(o>0?o:0),d=n[r]+o;if(t[r])return a[r]?u:d;var f=c[r];return null==f?0:a[r]?u<f?Math.max(d,f):Math.max(u,f):null==s?0:d+l>f+s?Math.max(u,f):Math.max(d,f)}function bse(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yse(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bse(Object(n),!0).forEach(function(t){xse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bse(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xse(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class wse extends n.PureComponent{constructor(){super(...arguments),xse(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),xse(this,"handleKeyDown",e=>{var t,n,r,o;"Escape"===e.key&&this.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(t=null===(n=this.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==t?t:0,y:null!==(r=null===(o=this.props.coordinate)||void 0===o?void 0:o.y)&&void 0!==r?r:0}})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var e,t;this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}render(){var{active:e,allowEscapeViewBox:t,animationDuration:r,animationEasing:o,children:i,coordinate:a,hasPayload:l,isAnimationActive:c,offset:s,position:u,reverseDirection:d,useTranslate3d:f,viewBox:p,wrapperStyle:h,lastBoundingBox:m,innerRef:v,hasPortalFromProps:g}=this.props,{cssClasses:b,cssProperties:y}=function(e){var t,n,r,{allowEscapeViewBox:o,coordinate:i,offsetTopLeft:a,position:l,reverseDirection:c,tooltipBox:s,useTranslate3d:u,viewBox:d}=e;return t=s.height>0&&s.width>0&&i?function(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:n=gse({allowEscapeViewBox:o,coordinate:i,key:"x",offsetTopLeft:a,position:l,reverseDirection:c,tooltipDimension:s.width,viewBox:d,viewBoxDimension:d.width}),translateY:r=gse({allowEscapeViewBox:o,coordinate:i,key:"y",offsetTopLeft:a,position:l,reverseDirection:c,tooltipDimension:s.height,viewBox:d,viewBoxDimension:d.height}),useTranslate3d:u}):mse,{cssProperties:t,cssClasses:vse({translateX:n,translateY:r,coordinate:i})}}({allowEscapeViewBox:t,coordinate:a,offsetTopLeft:s,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:f,viewBox:p}),x=g?{}:yse(yse({transition:c&&e?"transform ".concat(r,"ms ").concat(o):void 0},y),{},{pointerEvents:"none",visibility:!this.state.dismissed&&e&&l?"visible":"hidden",position:"absolute",top:0,left:0}),w=yse(yse({},x),{},{visibility:!this.state.dismissed&&e&&l?"visible":"hidden"},h);return n.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:b,style:w,ref:v},i)}}var Sse=o(1081),Cse=o.n(Sse);function Ose(){}function kse(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Ese(e){this._context=e}function jse(e){this._context=e}function $se(e){this._context=e}Ese.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:kse(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:kse(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},jse.prototype={areaStart:Ose,areaEnd:Ose,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:kse(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},$se.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:kse(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class Pse{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Nse(e){this._context=e}function _se(e){this._context=e}function Ise(e){return new _se(e)}function Mse(e){return e<0?-1:1}function Tse(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),l=(i*o+a*r)/(r+o);return(Mse(i)+Mse(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function Ase(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Rse(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function Dse(e){this._context=e}function Lse(e){this._context=new qse(e)}function qse(e){this._context=e}function zse(e){this._context=e}function Bse(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function Hse(e,t){this._context=e,this._t=t}Nse.prototype={areaStart:Ose,areaEnd:Ose,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},_se.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Dse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Rse(this,this._t0,Ase(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Rse(this,Ase(this,n=Tse(this,e,t)),n);break;default:Rse(this,this._t0,n=Tse(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Lse.prototype=Object.create(Dse.prototype)).point=function(e,t){Dse.prototype.point.call(this,t,e)},qse.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},zse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Bse(e),o=Bse(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Hse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};const Fse=Math.PI,Wse=2*Fse,Kse=1e-6,Use=Wse-Kse;function Vse(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class Gse{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Vse:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Vse;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,l=n-e,c=r-t,s=i-e,u=a-t,d=s*s+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Kse)if(Math.abs(u*l-c*s)>Kse&&o){let f=n-i,p=r-a,h=l*l+c*c,m=f*f+p*p,v=Math.sqrt(h),g=Math.sqrt(d),b=o*Math.tan((Fse-Math.acos((h+d-m)/(2*v*g)))/2),y=b/g,x=b/v;Math.abs(y-1)>Kse&&this._append`L${e+y*s},${t+y*u}`,this._append`A${o},${o},0,0,${+(u*f>s*p)},${this._x1=e+x*l},${this._y1=t+x*c}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),l=n*Math.sin(r),c=e+a,s=t+l,u=1^i,d=i?r-o:o-r;null===this._x1?this._append`M${c},${s}`:(Math.abs(this._x1-c)>Kse||Math.abs(this._y1-s)>Kse)&&this._append`L${c},${s}`,n&&(d<0&&(d=d%Wse+Wse),d>Use?this._append`A${n},${n},0,1,${u},${e-a},${t-l}A${n},${n},0,1,${u},${this._x1=c},${this._y1=s}`:d>Kse&&this._append`A${n},${n},0,${+(d>=Fse)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Yse(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Gse(t)}function Xse(e){return e[0]}function Qse(e){return e[1]}function Zse(e,t){var n=W3(!0),r=null,o=Ise,i=null,a=Yse(l);function l(l){var c,s,u,d=(l=F3(l)).length,f=!1;for(null==r&&(i=o(u=a())),c=0;c<=d;++c)!(c<d&&n(s=l[c],c,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(s,c,l),+t(s,c,l));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?Xse:W3(e),t="function"==typeof t?t:void 0===t?Qse:W3(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:W3(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:W3(+e),l):t},l.defined=function(e){return arguments.length?(n="function"==typeof e?e:W3(!!e),l):n},l.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),l):o},l.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),l):r},l}function Jse(e,t,n){var r=null,o=W3(!0),i=null,a=Ise,l=null,c=Yse(s);function s(s){var u,d,f,p,h,m=(s=F3(s)).length,v=!1,g=new Array(m),b=new Array(m);for(null==i&&(l=a(h=c())),u=0;u<=m;++u){if(!(u<m&&o(p=s[u],u,s))===v)if(v=!v)d=u,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=u-1;f>=d;--f)l.point(g[f],b[f]);l.lineEnd(),l.areaEnd()}v&&(g[u]=+e(p,u,s),b[u]=+t(p,u,s),l.point(r?+r(p,u,s):g[u],n?+n(p,u,s):b[u]))}if(h)return l=null,h+""||null}function u(){return Zse().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?Xse:W3(+e),t="function"==typeof t?t:W3(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Qse:W3(+n),s.x=function(t){return arguments.length?(e="function"==typeof t?t:W3(+t),r=null,s):e},s.x0=function(t){return arguments.length?(e="function"==typeof t?t:W3(+t),s):e},s.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:W3(+e),s):r},s.y=function(e){return arguments.length?(t="function"==typeof e?e:W3(+e),n=null,s):t},s.y0=function(e){return arguments.length?(t="function"==typeof e?e:W3(+e),s):t},s.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:W3(+e),s):n},s.lineX0=s.lineY0=function(){return u().x(e).y(t)},s.lineY1=function(){return u().x(e).y(n)},s.lineX1=function(){return u().x(r).y(t)},s.defined=function(e){return arguments.length?(o="function"==typeof e?e:W3(!!e),s):o},s.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),s):a},s.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),s):i},s}function eue(){return eue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eue.apply(null,arguments)}function tue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tue(Object(n),!0).forEach(function(t){rue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tue(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oue={curveBasisClosed:function(e){return new jse(e)},curveBasisOpen:function(e){return new $se(e)},curveBasis:function(e){return new Ese(e)},curveBumpX:function(e){return new Pse(e,!0)},curveBumpY:function(e){return new Pse(e,!1)},curveLinearClosed:function(e){return new Nse(e)},curveLinear:Ise,curveMonotoneX:function(e){return new Dse(e)},curveMonotoneY:function(e){return new Lse(e)},curveNatural:function(e){return new zse(e)},curveStep:function(e){return new Hse(e,.5)},curveStepAfter:function(e){return new Hse(e,1)},curveStepBefore:function(e){return new Hse(e,0)}},iue=e=>ree(e.x)&&ree(e.y),aue=e=>e.x,lue=e=>e.y,cue=e=>{var t,{type:n="linear",points:r=[],baseLine:o,layout:i,connectNulls:a=!1}=e,l=((e,t)=>{if("function"==typeof e)return e;var n="curve".concat(I0(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?oue[n]||Ise:oue["".concat(n).concat("vertical"===t?"Y":"X")]})(n,i),c=a?r.filter(iue):r;if(Array.isArray(o)){var s=a?o.filter(e=>iue(e)):o,u=c.map((e,t)=>nue(nue({},e),{},{base:s[t]}));return(t="vertical"===i?Jse().y(lue).x1(aue).x0(e=>e.base.x):Jse().x(aue).y1(lue).y0(e=>e.base.y)).defined(iue).curve(l),t(u)}return(t="vertical"===i&&C0(o)?Jse().y(lue).x1(aue).x0(o):C0(o)?Jse().x(aue).y1(lue).y0(o):Zse().x(aue).y(lue)).defined(iue).curve(l),t(c)},sue=e=>{var{className:t,points:r,path:o,pathRef:i}=e;if(!(r&&r.length||o))return null;var a=r&&r.length?cue(e):o;return n.createElement("path",eue({},oae(e),tae(e),{className:m0("recharts-curve",t),d:null===a?void 0:a,ref:i}))},uue=["x","y","top","left","width","height","className"];function due(){return due=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},due.apply(null,arguments)}function fue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hue=(e,t,n,r,o,i)=>"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n),mue=e=>{var{x:t=0,y:r=0,top:o=0,left:i=0,width:a=0,height:l=0,className:c}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,uue),u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fue(Object(n),!0).forEach(function(t){pue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fue(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:t,y:r,top:o,left:i,width:a,height:l},s);return C0(t)&&C0(r)&&C0(a)&&C0(l)&&C0(o)&&C0(i)?n.createElement("path",due({},aae(u,!0),{className:m0("recharts-cross",c),d:hue(t,r,a,l,o,i)})):null};function vue(){}function gue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gue(Object(n),!0).forEach(function(t){yue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gue(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xue=(e,t)=>Object.keys(t).reduce((n,r)=>bue(bue({},n),{},{[r]:e(r,t[r])}),{});function wue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wue(Object(n),!0).forEach(function(t){Cue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wue(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oue=(e,t,n)=>e+(t-e)*n,kue=e=>{var{from:t,to:n}=e;return t!==n},Eue=(e,t,n)=>{var r=xue((t,n)=>{if(kue(n)){var[r,o]=e(n.from,n.to,n.velocity);return Sue(Sue({},n),{},{from:r,velocity:o})}return n},t);return n<1?xue((e,t)=>kue(t)?Sue(Sue({},t),{},{velocity:Oue(t.velocity,r[e].velocity,n),from:Oue(t.from,r[e].from,n)}):t,t):Eue(e,r,n-1)};function jue(e,t,n,r,o,i){var a,l=r.reduce((n,r)=>Sue(Sue({},n),{},{[r]:{from:e[r],velocity:0,to:t[r]}}),{}),c=null,s=r=>{a||(a=r);var u=(r-a)/n.dt;l=Eue(n,l,u),o(Sue(Sue(Sue({},e),t),xue((e,t)=>t.from,l))),a=r,Object.values(l).filter(kue).length&&(c=i.setTimeout(s))};return()=>(c=i.setTimeout(s),()=>{c()})}const $ue=(e,t,n,r,o,i)=>{var a,l,c=(a=e,l=t,[Object.keys(a),Object.keys(l)].reduce((e,t)=>e.filter(e=>t.includes(e))));return!0===n.isStepper?jue(e,t,n,c,o,i):function(e,t,n,r,o,i,a){var l,c=null,s=o.reduce((n,r)=>Sue(Sue({},n),{},{[r]:[e[r],t[r]]}),{}),u=o=>{l||(l=o);var d=(o-l)/r,f=xue((e,t)=>Oue(...t,n(d)),s);if(i(Sue(Sue(Sue({},e),t),f)),d<1)c=a.setTimeout(u);else{var p=xue((e,t)=>Oue(...t,n(1)),s);i(Sue(Sue(Sue({},e),t),p))}};return()=>(c=a.setTimeout(u),()=>{c()})}(e,t,n,r,c,o,i)};var Pue=1e-4,Nue=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],_ue=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),Iue=(e,t)=>n=>{var r=Nue(e,t);return _ue(r,n)},Mue=function(){for(var e,t,n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];if(1===i.length)switch(i[0]){case"linear":[e,n,t,r]=[0,0,1,1];break;case"ease":[e,n,t,r]=[.25,.1,.25,1];break;case"ease-in":[e,n,t,r]=[.42,0,1,1];break;case"ease-out":[e,n,t,r]=[.42,0,.58,1];break;case"ease-in-out":[e,n,t,r]=[0,0,.58,1];break;default:var l=i[0].split("(");"cubic-bezier"===l[0]&&4===l[1].split(")")[0].split(",").length&&([e,n,t,r]=l[1].split(")")[0].split(",").map(e=>parseFloat(e)))}else 4===i.length&&([e,n,t,r]=i);var c,s,u=Iue(e,t),d=Iue(n,r),f=(c=e,s=t,e=>{var t=[...Nue(c,s).map((e,t)=>e*t).slice(1),0];return _ue(t,e)}),p=e=>e>1?1:e<0?0:e,h=e=>{for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=u(n)-t,i=f(n);if(Math.abs(o-t)<Pue||i<Pue)return d(n);n=p(n-o/i)}return d(n)};return h.isStepper=!1,h},Tue=e=>{if("string"==typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Mue(e);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stiff:t=100,damping:n=8,dt:r=17}=e,o=(e,o,i)=>{var a=i+(-(e-o)*t-i*n)*r/1e3,l=i*r/1e3+e;return Math.abs(l-o)<Pue&&Math.abs(a)<Pue?[o,0]:[l,a]};return o.isStepper=!0,o.dt=r,o}();default:if("cubic-bezier"===e.split("(")[0])return Mue(e)}return"function"==typeof e?e:null};class Aue{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=performance.now(),r=null,o=i=>{i-n>=t?e(i):"function"==typeof requestAnimationFrame&&(r=requestAnimationFrame(o))};return r=requestAnimationFrame(o),()=>{cancelAnimationFrame(r)}}}function Rue(){return e=new Aue,t=()=>null,n=!1,r=null,o=i=>{if(!n){if(Array.isArray(i)){if(!i.length)return;var a=i,[l,...c]=a;return"number"==typeof l?void(r=e.setTimeout(o.bind(null,c),l)):(o(l),void(r=e.setTimeout(o.bind(null,c))))}"string"==typeof i&&t(i),"object"==typeof i&&t(i),"function"==typeof i&&i()}},{stop:()=>{n=!0},start:e=>{n=!1,r&&(r(),r=null),o(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e};var e,t,n,r,o}var Due=(0,n.createContext)(Rue);var Lue={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},que={t:0},zue={t:1};function Bue(e){var t,r,o,i=Fae(e,Lue),{isActive:a,canBegin:l,duration:c,easing:s,begin:u,onAnimationEnd:d,onAnimationStart:f,children:p}=i,h=(t=i.animationId,r=i.animationManager,o=(0,n.useContext)(Due),(0,n.useMemo)(()=>null!=r?r:o(t),[t,r,o])),[m,v]=(0,n.useState)(a?que:zue),g=(0,n.useRef)(null);return(0,n.useEffect)(()=>{a||v(zue)},[a]),(0,n.useEffect)(()=>{if(!a||!l)return vue;var e=$ue(que,zue,Tue(s),c,v,h.getTimeoutController());return h.start([f,u,()=>{g.current=e()},c,d]),()=>{h.stop(),g.current&&g.current(),d()}},[a,l,c,s,u,f,d,h]),p(m.t)}function Hue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",r=(0,n.useRef)(E0(t)),o=(0,n.useRef)(e);return o.current!==e&&(r.current=E0(t),o.current=e),r.current}function Fue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fue(Object(n),!0).forEach(function(t){Kue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fue(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uue(){return Uue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uue.apply(null,arguments)}var Vue=(e,t,n,r,o)=>{var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),l=r>=0?1:-1,c=n>=0?1:-1,s=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>a?a:o[d];i="M".concat(e,",").concat(t+l*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(s,",").concat(e+c*u[0],",").concat(t)),i+="L ".concat(e+n-c*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(s,",\n ").concat(e+n,",").concat(t+l*u[1])),i+="L ".concat(e+n,",").concat(t+r-l*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(s,",\n ").concat(e+n-c*u[2],",").concat(t+r)),i+="L ".concat(e+c*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(s,",\n ").concat(e,",").concat(t+r-l*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var f=Math.min(a,o);i="M ".concat(e,",").concat(t+l*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(s,",").concat(e+c*f,",").concat(t,"\n L ").concat(e+n-c*f,",").concat(t,"\n A ").concat(f,",").concat(f,",0,0,").concat(s,",").concat(e+n,",").concat(t+l*f,"\n L ").concat(e+n,",").concat(t+r-l*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(s,",").concat(e+n-c*f,",").concat(t+r,"\n L ").concat(e+c*f,",").concat(t+r,"\n A ").concat(f,",").concat(f,",0,0,").concat(s,",").concat(e,",").concat(t+r-l*f," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},Gue={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Yue=e=>{var t=Fae(e,Gue),r=(0,n.useRef)(null),[o,i]=(0,n.useState)(-1);(0,n.useEffect)(()=>{if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}},[]);var{x:a,y:l,width:c,height:s,radius:u,className:d}=t,{animationEasing:f,animationDuration:p,animationBegin:h,isAnimationActive:m,isUpdateAnimationActive:v}=t,g=(0,n.useRef)(c),b=(0,n.useRef)(s),y=(0,n.useRef)(a),x=(0,n.useRef)(l),w=Hue((0,n.useMemo)(()=>({x:a,y:l,width:c,height:s,radius:u}),[a,l,c,s,u]),"rectangle-");if(a!==+a||l!==+l||c!==+c||s!==+s||0===c||0===s)return null;var S=m0("recharts-rectangle",d);if(!v)return n.createElement("path",Uue({},aae(t,!0),{className:S,d:Vue(a,l,c,s,u)}));var C=g.current,O=b.current,k=y.current,E=x.current,j="0px ".concat(-1===o?1:o,"px"),$="".concat(o,"px 0px"),P=((e,t,n)=>e.map(e=>{return"".concat((r=e,r.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())))," ").concat(t,"ms ").concat(n);var r}).join(","))(["strokeDasharray"],p,"string"==typeof f?f:void 0);return n.createElement(Bue,{animationId:w,key:w,canBegin:o>0,duration:p,easing:f,isActive:v,begin:h},e=>{var o,i=P0(C,c,e),d=P0(O,s,e),f=P0(k,a,e),p=P0(E,l,e);return r.current&&(g.current=i,b.current=d,y.current=f,x.current=p),o=m?e>0?{transition:P,strokeDasharray:$}:{strokeDasharray:j}:{strokeDasharray:$},n.createElement("path",Uue({},aae(t,!0),{className:S,d:Vue(f,p,i,d,u),ref:r,style:Wue(Wue({},o),t.style)}))})};function Xue(e){var{cx:t,cy:n,radius:r,startAngle:o,endAngle:i}=e;return{points:[J3(t,n,r,o),J3(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function Que(){return Que=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Que.apply(null,arguments)}var Zue=e=>{var{cx:t,cy:n,radius:r,angle:o,sign:i,isExternal:a,cornerRadius:l,cornerIsExternal:c}=e,s=l*(a?1:-1)+r,u=Math.asin(l/s)/Q3,d=c?o:o+i*u,f=c?o-i*u:o;return{center:J3(t,n,s,d),circleTangency:J3(t,n,r,d),lineTangency:J3(t,n,s*Math.cos(u*Q3),f),theta:u}},Jue=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:i,endAngle:a}=e,l=((e,t)=>x0(t-e)*Math.min(Math.abs(t-e),359.999))(i,a),c=i+l,s=J3(t,n,o,i),u=J3(t,n,o,c),d="M ".concat(s.x,",").concat(s.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(i>c),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var f=J3(t,n,r,i),p=J3(t,n,r,c);d+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},ede={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},tde=e=>{var t=Fae(e,ede),{cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:l,forceCornerRadius:c,cornerIsExternal:s,startAngle:u,endAngle:d,className:f}=t;if(a<i||u===d)return null;var p,h=m0("recharts-sector",f),m=a-i,v=j0(l,m,0,!0);return p=v>0&&Math.abs(u-d)<360?(e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:l,startAngle:c,endAngle:s}=e,u=x0(s-c),{circleTangency:d,lineTangency:f,theta:p}=Zue({cx:t,cy:n,radius:o,angle:c,sign:u,cornerRadius:i,cornerIsExternal:l}),{circleTangency:h,lineTangency:m,theta:v}=Zue({cx:t,cy:n,radius:o,angle:s,sign:-u,cornerRadius:i,cornerIsExternal:l}),g=l?Math.abs(c-s):Math.abs(c-s)-p-v;if(g<0)return a?"M ".concat(f.x,",").concat(f.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):Jue({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:s});var b="M ".concat(f.x,",").concat(f.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(u<0),",").concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(m.x,",").concat(m.y,"\n ");if(r>0){var{circleTangency:y,lineTangency:x,theta:w}=Zue({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),{circleTangency:S,lineTangency:C,theta:O}=Zue({cx:t,cy:n,radius:r,angle:s,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),k=l?Math.abs(c-s):Math.abs(c-s)-w-O;if(k<0&&0===i)return"".concat(b,"L").concat(t,",").concat(n,"Z");b+="L".concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,"\n A").concat(r,",").concat(r,",0,").concat(+(k>180),",").concat(+(u>0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(x.x,",").concat(x.y,"Z")}else b+="L".concat(t,",").concat(n,"Z");return b})({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,m/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:u,endAngle:d}):Jue({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:u,endAngle:d}),n.createElement("path",Que({},aae(t,!0),{className:h,d:p}))};function nde(e,t,n){var r,o,i,a;if("horizontal"===e)i=r=t.x,o=n.top,a=n.top+n.height;else if("vertical"===e)a=o=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return Xue(t);var{cx:l,cy:c,innerRadius:s,outerRadius:u,angle:d}=t,f=J3(l,c,s,d),p=J3(l,c,u,d);r=f.x,o=f.y,i=p.x,a=p.y}return[{x:r,y:o},{x:i,y:a}]}function rde(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ode(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rde(Object(n),!0).forEach(function(t){ide(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rde(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ide(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ade=()=>{var e=L3(ate),t=L3(eoe),n=L3(Qre);return b4(ode(ode({},e),{},{scale:n}),t)};function lde(){return lde=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lde.apply(null,arguments)}function cde(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sde(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cde(Object(n),!0).forEach(function(t){ude(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cde(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ude(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dde(e){var t,r,{coordinate:o,payload:i,index:a,offset:l,tooltipAxisBandSize:c,layout:s,cursor:u,tooltipEventType:d,chartName:f}=e,p=o,h=i,m=a;if(!u||!p||"ScatterChart"!==f&&"axis"!==d)return null;if("ScatterChart"===f)t=p,r=mue;else if("BarChart"===f)t=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(s,p,l,c),r=Yue;else if("radial"===s){var{cx:v,cy:g,radius:b,startAngle:y,endAngle:x}=Xue(p);t={cx:v,cy:g,startAngle:y,endAngle:x,innerRadius:b,outerRadius:b},r=tde}else t={points:nde(s,p,l)},r=sue;var w="object"==typeof u&&"className"in u?u.className:void 0,S=sde(sde(sde(sde({stroke:"#ccc",pointerEvents:"none"},l),t),aae(u,!1)),{},{payload:h,payloadIndex:m,className:m0("recharts-tooltip-cursor",w)});return(0,n.isValidElement)(u)?(0,n.cloneElement)(u,S):(0,n.createElement)(r,S)}function fde(e){var t=ade(),r=q4(),o=F4(),i=L3($ee);return n.createElement(dde,lde({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:r,layout:o,tooltipAxisBandSize:t,chartName:i}))}function pde(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hde(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pde(Object(n),!0).forEach(function(t){mde(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pde(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mde(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vde(e){return e.dataKey}var gde=[],bde={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Wie,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function yde(e){var t=Fae(e,bde),{active:r,allowEscapeViewBox:o,animationDuration:i,animationEasing:a,content:l,filterNull:c,isAnimationActive:s,offset:u,payloadUniqBy:d,position:f,reverseDirection:p,useTranslate3d:h,wrapperStyle:m,cursor:v,shared:g,trigger:b,defaultIndex:y,portal:x,axisId:w}=t,S=T3(),C="number"==typeof y?String(y):y;(0,n.useEffect)(()=>{S(t3({shared:g,trigger:b,axisId:w,active:r,defaultIndex:C}))},[S,g,b,w,r,C]);var O=D4(),k=Xie(),E=function(e){return L3(t=>cre(t,e))}(g),{activeIndex:j,isActive:$}=L3(e=>koe(e,E,b,C)),P=L3(e=>Ooe(e,E,b,C)),N=L3(e=>Coe(e,E,b,C)),_=L3(e=>Soe(e,E,b,C)),I=P,M=(0,n.useContext)($ae),T=null!=r?r:$,[A,R]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=(0,n.useState)({height:0,left:0,top:0,width:0}),o=(0,n.useCallback)(e=>{if(null!=e){var n=e.getBoundingClientRect(),o={height:n.height,left:n.left,top:n.top,width:n.width};(Math.abs(o.height-t.height)>1||Math.abs(o.left-t.left)>1||Math.abs(o.top-t.top)>1||Math.abs(o.width-t.width)>1)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,o]}([I,T]),D="axis"===E?N:void 0;jae(E,b,_,D,j,T);var L=null!=x?x:M;if(null==L)return null;var q=null!=I?I:gde;T||(q=gde),c&&q.length&&(q=function(e,t,n){return!0===t?Cse()(e,n):"function"==typeof t?Cse()(e,t):e}(I.filter(e=>null!=e.value&&(!0!==e.hide||t.includeHidden)),d,vde));var z=q.length>0,B=n.createElement(wse,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:s,active:T,coordinate:_,hasPayload:z,offset:u,position:f,reverseDirection:p,useTranslate3d:h,viewBox:O,wrapperStyle:m,lastBoundingBox:A,innerRef:R,hasPortalFromProps:Boolean(x)},function(e,t){return n.isValidElement(e)?n.cloneElement(e,t):"function"==typeof e?n.createElement(e,t):n.createElement(pse,t)}(l,hde(hde({},t),{},{payload:q,label:D,active:T,coordinate:_,accessibilityLayer:k})));return n.createElement(n.Fragment,null,(0,Dr.createPortal)(B,L),T&&n.createElement(fde,{cursor:v,tooltipEventType:E,coordinate:_,payload:I,index:j}))}function xde(){return xde=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xde.apply(null,arguments)}var wde=e=>{var{cx:t,cy:r,r:o,className:i}=e,a=m0("recharts-dot",i);return t===+t&&r===+r&&o===+o?n.createElement("circle",xde({},oae(e),tae(e),{className:a,cx:t,cy:r,r:o})):null},Sde=o(25),Cde=o.n(Sde),Ode=["valueAccessor"],kde=["dataKey","clockWise","id","textBreakAll"];function Ede(){return Ede=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ede.apply(null,arguments)}function jde(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var $de=e=>Array.isArray(e.value)?Cde()(e.value):e.value,Pde=(0,n.createContext)(void 0),Nde=Pde.Provider,_de=(0,n.createContext)(void 0);_de.Provider;function Ide(e){var{valueAccessor:t=$de}=e,r=jde(e,Ode),{dataKey:o,clockWise:i,id:a,textBreakAll:l}=r,c=jde(r,kde),s=(0,n.useContext)(Pde),u=(0,n.useContext)(_de),d=s||u;return d&&d.length?n.createElement(ble,{className:"recharts-label-list"},d.map((e,i)=>{var s,u=_0(o)?t(e,i):l4(e&&e.payload,o),d=_0(a)?{}:{id:"".concat(a,"-").concat(i)};return n.createElement(tce,Ede({},aae(e,!0),c,d,{fill:null!==(s=r.fill)&&void 0!==s?s:e.fill,parentViewBox:e.parentViewBox,value:u,textBreakAll:l,viewBox:e.viewBox,key:"label-".concat(i),index:i}))})):null}function Mde(e){var{label:t}=e;return t?!0===t?n.createElement(Ide,{key:"labelList-implicit"}):n.isValidElement(t)||Qle(t)?n.createElement(Ide,{key:"labelList-implicit",content:t}):"object"==typeof t?n.createElement(Ide,Ede({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function Tde(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ade(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tde(Object(n),!0).forEach(function(t){Rde(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tde(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rde(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ide.displayName="LabelList";function Dde(e){var{points:t,mainColor:r,activeDot:o,itemDataKey:i}=e,a=L3(ioe),l=L3(poe);if(null==t||null==l)return null;var c=t.find(e=>l.includes(e.payload));return _0(c)?null:(e=>{var{point:t,childIndex:r,mainColor:o,activeDot:i,dataKey:a}=e;if(!1===i||null==t.x||null==t.y)return null;var l,c=Ade(Ade({index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:null!=o?o:"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},aae(i,!1)),tae(i));return l=(0,n.isValidElement)(i)?(0,n.cloneElement)(i,c):"function"==typeof i?i(c):n.createElement(wde,c),n.createElement(ble,{className:"recharts-active-dot"},l)})({point:c,childIndex:Number(a),mainColor:r,dataKey:i,activeDot:o})}function Lde(e){var{fn:t,args:r}=e,o=T3(),i=T4();return(0,n.useEffect)(()=>{if(!i){var e=t(r);return o(J2(e)),()=>{o(e3(e))}}},[t,r,o,i]),null}var qde=["children"];var zde={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Bde=(0,n.createContext)(zde);function Hde(e){var{children:t}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,qde);return n.createElement(Bde.Provider,{value:r},t)}function Fde(e,t){var n,r,o=L3(t=>vte(t,e)),i=L3(e=>yte(e,t)),a=null!==(n=null==o?void 0:o.allowDataOverflow)&&void 0!==n?n:hte.allowDataOverflow,l=null!==(r=null==i?void 0:i.allowDataOverflow)&&void 0!==r?r:gte.allowDataOverflow;return{needClip:a||l,needClipX:a,needClipY:l}}function Wde(e){var{xAxisId:t,yAxisId:r,clipPathId:o}=e,i=Rae(),{needClipX:a,needClipY:l,needClip:c}=Fde(t,r);if(!c)return null;var{x:s,y:u,width:d,height:f}=i;return n.createElement("clipPath",{id:"clipPath-".concat(o)},n.createElement("rect",{x:a?s:s-d/2,y:l?u:u-f/2,width:a?d:2*d,height:l?f:2*f}))}var Kde=(e,t,n,r)=>nre(e,"xAxis",t,r),Ude=(e,t,n,r)=>tre(e,"xAxis",t,r),Vde=(e,t,n,r)=>nre(e,"yAxis",n,r),Gde=(e,t,n,r)=>tre(e,"yAxis",n,r),Yde=P3([H4,Kde,Vde,Ude,Gde],(e,t,n,r,o)=>c4(e,"xAxis")?b4(t,r,!1):b4(n,o,!1));function Xde(e){return"line"===e.type}var Qde,Zde=P3([Ete,(e,t,n,r,o)=>o],(e,t)=>e.filter(Xde).find(e=>e.id===t)),Jde=P3([H4,Kde,Vde,Ude,Gde,Zde,Yde,nee],(e,t,n,r,o,i,a,l)=>{var{chartData:c,dataStartIndex:s,dataEndIndex:u}=l;if(null!=i&&null!=t&&null!=n&&null!=r&&null!=o&&0!==r.length&&0!==o.length&&null!=a){var d,{dataKey:f,data:p}=i;if(null!=(d=null!=p&&p.length>0?p:null==c?void 0:c.slice(s,u+1)))return function(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:o,yAxisTicks:i,dataKey:a,bandSize:l,displayedData:c}=e;return c.map((e,c)=>{var s=l4(e,a);if("horizontal"===t)return{x:h4({axis:n,ticks:o,bandSize:l,entry:e,index:c}),y:_0(s)?null:r.scale(s),value:s,payload:e};var u=_0(s)?null:n.scale(s),d=h4({axis:r,ticks:i,bandSize:l,entry:e,index:c});return null==u||null==d?null:{x:u,y:d,value:s,payload:e}}).filter(Boolean)}({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:o,dataKey:f,bandSize:a,displayedData:d})}}),efe=()=>{};function tfe(e){var{legendPayload:t}=e,r=T3(),o=T4();return(0,n.useEffect)(()=>o?efe:(r(pie(t)),()=>{r(hie(t))}),[r,o,t]),null}var nfe=null!==(Qde=r["useId".toString()])&&void 0!==Qde?Qde:()=>{var[e]=n.useState(()=>E0("uid-"));return e};var rfe=(0,n.createContext)(void 0),ofe=e=>{var t,r,o,{id:i,type:a,children:l}=e,c=(t="recharts-".concat(a),r=i,o=nfe(),r||(t?"".concat(t,"-").concat(o):o));return n.createElement(rfe.Provider,{value:c},l(c))};function ife(e){var t=T3(),r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{null===r.current?t(Uoe(e)):r.current!==e&&t(Voe({prev:r.current,next:e})),r.current=e},[t,e]),(0,n.useEffect)(()=>()=>{r.current&&(t(Goe(r.current)),r.current=null)},[t]),null}var afe=["id"],lfe=["type","layout","connectNulls","needClip"],cfe=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function sfe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ufe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sfe(Object(n),!0).forEach(function(t){dfe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sfe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dfe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ffe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pfe(){return pfe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pfe.apply(null,arguments)}var hfe=e=>{var{dataKey:t,name:n,stroke:r,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:r,value:x4(n,t),payload:e}]};function mfe(e){var{dataKey:t,data:n,stroke:r,strokeWidth:o,fill:i,name:a,hide:l,unit:c}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:o,fill:i,dataKey:t,nameKey:void 0,name:x4(a,t),hide:l,type:e.tooltipType,color:e.stroke,unit:c}}}var vfe=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function gfe(e,t){for(var n=e.length%2!=0?[...e,0]:e,r=[],o=0;o<t;++o)r=[...r,...n];return r}function bfe(e){var{clipPathId:t,points:r,props:o}=e,{dot:i,dataKey:a,needClip:l}=o;if(!function(e,t){return null!=e&&(!!t||1===e.length)}(r,i))return null;var{id:c}=o,s=ffe(o,afe),u=iae(i),d=oae(s),f=aae(i,!0),p=r.map((e,t)=>{var o=ufe(ufe(ufe({key:"dot-".concat(t),r:3},d),f),{},{index:t,cx:e.x,cy:e.y,dataKey:a,value:e.value,payload:e.payload,points:r});return function(e,t){var r;if(n.isValidElement(e))r=n.cloneElement(e,t);else if("function"==typeof e)r=e(t);else{var o=m0("recharts-line-dot","boolean"!=typeof e?e.className:"");r=n.createElement(wde,pfe({},t,{className:o}))}return r}(i,o)}),h={clipPath:l?"url(#clipPath-".concat(u?"":"dots-").concat(t,")"):void 0};return n.createElement(ble,pfe({className:"recharts-line-dots",key:"dots"},h),p)}function yfe(e){var{showLabels:t,children:r,points:o}=e,i=(0,n.useMemo)(()=>null==o?void 0:o.map(e=>{var t={x:e.x,y:e.y,width:0,height:0};return ufe(ufe({},t),{},{value:e.value,payload:e.payload,viewBox:t,parentViewBox:void 0,fill:void 0})}),[o]);return n.createElement(Nde,{value:t?i:null},r)}function xfe(e){var{clipPathId:t,pathRef:r,points:o,strokeDasharray:i,props:a}=e,{type:l,layout:c,connectNulls:s,needClip:u}=a,d=ffe(a,lfe),f=ufe(ufe({},aae(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(t,")"):void 0,points:o,type:l,layout:c,connectNulls:s,strokeDasharray:null!=i?i:a.strokeDasharray});return n.createElement(n.Fragment,null,(null==o?void 0:o.length)>1&&n.createElement(sue,pfe({},f,{pathRef:r})),n.createElement(bfe,{points:o,clipPathId:t,props:a}))}function wfe(e){var{clipPathId:t,props:r,pathRef:o,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:l,strokeDasharray:c,isAnimationActive:s,animationBegin:u,animationDuration:d,animationEasing:f,animateNewValues:p,width:h,height:m,onAnimationEnd:v,onAnimationStart:g}=r,b=i.current,y=Hue(r,"recharts-line-"),[x,w]=(0,n.useState)(!1),S=!x,C=(0,n.useCallback)(()=>{"function"==typeof v&&v(),w(!1)},[v]),O=(0,n.useCallback)(()=>{"function"==typeof g&&g(),w(!0)},[g]),k=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(o.current),E=a.current;return n.createElement(yfe,{points:l,showLabels:S},r.children,n.createElement(Bue,{animationId:y,begin:u,duration:d,isActive:s,easing:f,onAnimationEnd:C,onAnimationStart:O,key:y},e=>{var u,d=P0(E,k+E,e),f=Math.min(d,k);if(s)if(c){var v="".concat(c).split(/[,\s]+/gim).map(e=>parseFloat(e));u=((e,t,n)=>{var r=n.reduce((e,t)=>e+t);if(!r)return vfe(t,e);for(var o=Math.floor(e/r),i=e%r,a=t-e,l=[],c=0,s=0;c<n.length;s+=n[c],++c)if(s+n[c]>i){l=[...n.slice(0,c),i-s];break}var u=l.length%2==0?[0,a]:[a];return[...gfe(n,o),...l,...u].map(e=>"".concat(e,"px")).join(", ")})(f,k,v)}else u=vfe(k,f);else u=null==c?void 0:String(c);if(b){var g=b.length/l.length,y=1===e?l:l.map((t,n)=>{var r=Math.floor(n*g);if(b[r]){var o=b[r];return ufe(ufe({},t),{},{x:P0(o.x,t.x,e),y:P0(o.y,t.y,e)})}return ufe(ufe({},t),{},p?{x:P0(2*h,t.x,e),y:P0(m/2,t.y,e)}:{x:t.x,y:t.y})});return i.current=y,n.createElement(xfe,{props:r,points:y,clipPathId:t,pathRef:o,strokeDasharray:u})}return e>0&&k>0&&(i.current=l,a.current=f),n.createElement(xfe,{props:r,points:l,clipPathId:t,pathRef:o,strokeDasharray:u})}),n.createElement(Mde,{label:r.label}))}function Sfe(e){var{clipPathId:t,props:r}=e,o=(0,n.useRef)(null),i=(0,n.useRef)(0),a=(0,n.useRef)(null);return n.createElement(wfe,{props:r,clipPathId:t,previousPointsRef:o,longestAnimatedLengthRef:i,pathRef:a})}var Cfe=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:l4(e.payload,t)});class Ofe extends n.Component{render(){var e,{hide:t,dot:r,points:o,className:i,xAxisId:a,yAxisId:l,top:c,left:s,width:u,height:d,id:f,needClip:p}=this.props;if(t)return null;var h=m0("recharts-line",i),m=f,{r:v=3,strokeWidth:g=2}=null!==(e=aae(r,!1))&&void 0!==e?e:{r:3,strokeWidth:2},b=iae(r),y=2*v+g;return n.createElement(n.Fragment,null,n.createElement(ble,{className:h},p&&n.createElement("defs",null,n.createElement(Wde,{clipPathId:m,xAxisId:a,yAxisId:l}),!b&&n.createElement("clipPath",{id:"clipPath-dots-".concat(m)},n.createElement("rect",{x:s-y/2,y:c-y/2,width:u+y,height:d+y}))),n.createElement(Hde,{xAxisId:a,yAxisId:l,data:o,dataPointFormatter:Cfe,errorBarOffset:0},n.createElement(Sfe,{props:this.props,clipPathId:m}))),n.createElement(Dde,{activeDot:this.props.activeDot,points:o,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var kfe={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!Wie,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function Efe(e){var t=Fae(e,kfe),{activeDot:r,animateNewValues:o,animationBegin:i,animationDuration:a,animationEasing:l,connectNulls:c,dot:s,hide:u,isAnimationActive:d,label:f,legendType:p,xAxisId:h,yAxisId:m,id:v}=t,g=ffe(t,cfe),{needClip:b}=Fde(h,m),y=Rae(),x=F4(),w=T4(),S=L3(e=>Jde(e,h,m,w,v));if("horizontal"!==x&&"vertical"!==x||null==S||null==y)return null;var{height:C,width:O,x:k,y:E}=y;return n.createElement(Ofe,pfe({},g,{id:v,connectNulls:c,dot:s,activeDot:r,animateNewValues:o,animationBegin:i,animationDuration:a,animationEasing:l,isAnimationActive:d,hide:u,label:f,legendType:p,xAxisId:h,yAxisId:m,points:S,layout:x,height:C,width:O,left:k,top:E,needClip:b}))}function jfe(e){var t=Fae(e,kfe),r=T4();return n.createElement(ofe,{id:t.id,type:"line"},e=>n.createElement(n.Fragment,null,n.createElement(tfe,{legendPayload:hfe(t)}),n.createElement(Lde,{fn:mfe,args:t}),n.createElement(ife,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),n.createElement(Efe,pfe({},t,{id:e}))))}var $fe=n.memo(jfe);function Pfe(e){return function(e){if(Array.isArray(e))return Afe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tfe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nfe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return _fe(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(_fe(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,_fe(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,_fe(d,"constructor",s),_fe(s,"constructor",c),c.displayName="GeneratorFunction",_fe(s,o,"GeneratorFunction"),_fe(d),_fe(d,o,"Generator"),_fe(d,r,function(){return this}),_fe(d,"toString",function(){return"[object Generator]"}),(Nfe=function(){return{w:i,m:f}})()}function _fe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_fe=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){_fe(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},_fe(e,t,n,r)}function Ife(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Mfe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||Tfe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tfe(e,t){if(e){if("string"==typeof e)return Afe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Afe(e,t):void 0}}function Afe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}$fe.displayName="Line";var Rfe=vR.Title,Dfe=vR.Text,Lfe=OI.RangePicker;const qfe=function(){var e=mP()().startOf("month"),t=mP()(),r=Mfe((0,n.useState)(!0),2),o=r[0],a=r[1],l=Mfe((0,n.useState)([e,t]),2),c=l[0],s=l[1],u=Mfe((0,n.useState)({recovered:0,recoverable:0,lost:0,recoveredRevenue:0,recoverableRevenue:0,recoveryRate:0,chartData:[]}),2),d=u[0],f=u[1],p=function(){var e,t=(e=Nfe().m(function e(){var t,n,r;return Nfe().w(function(e){for(;;)switch(e.n){case 0:return a(!0),t=c[0].format("YYYY-MM-DD")+" 00:00:00",n=c[1].format("YYYY-MM-DD")+" 23:59:59",e.n=1,bH({start:t,end:n});case 1:return r=e.v,e.n=2,f({recovered:(null==r?void 0:r.recoveredOrderCount)||0,recoverable:(null==r?void 0:r.recoverableOrderCount)||0,lost:(null==r?void 0:r.lostOrderCount)||0,recoveredRevenue:(null==r?void 0:r.recoveredRevenue)||0,recoverableRevenue:(null==r?void 0:r.recoverableRevenue)||0,recoveryRate:(null==r?void 0:r.recoveryRate)||0,chartData:null==r?void 0:r.chartData});case 2:a(!1);case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Ife(i,r,o,a,l,"next",e)}function l(e){Ife(i,r,o,a,l,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}(),h=(null==d?void 0:d.chartData.length)>0?Math.max.apply(Math,Pfe(null==d?void 0:d.chartData.map(function(e){return e.recoverable}))):0,m=(null==d?void 0:d.chartData.length)>0?Math.max.apply(Math,Pfe(null==d?void 0:d.chartData.map(function(e){return e.recovered}))):0,v=Math.max(h,m),g=v>8?v:8,b=function(e){for(var t=[],n=0;n<=e;n++)t.push(n);return t}(g);(0,n.useEffect)(function(){p()},[c]);var y=function(e){var t=e.title,n=e.value,r=e.tooltip;return(0,i.jsx)(iq,{bordered:!1,style:{height:"100%",boxShadow:"0 1px 2px rgba(0,0,0,0.03)"},children:(0,i.jsx)(tv,{loading:o,active:!0,children:(0,i.jsxs)(UF,{direction:"vertical",size:8,style:{width:"100%"},children:[(0,i.jsxs)(UF,{children:[(0,i.jsx)(Dfe,{type:"secondary",style:{fontSize:"13px"},children:t}),(0,i.jsx)(om,{title:r,children:(0,i.jsx)(ig,{style:{fontSize:"12px",color:"#bfbfbf"}})})]}),(0,i.jsx)(Rfe,{level:3,style:{margin:0,fontWeight:600},children:n})]})})})};return(0,i.jsxs)(iq,{bordered:!1,style:{borderRadius:"8px",boxShadow:"0 1px 2px rgba(0,0,0,0.03)"},children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"24px"},children:[(0,i.jsx)(Rfe,{className:"rtsb-cart-tracking-page-title",level:5,children:"Overview"}),(0,i.jsxs)(UF,{children:[(0,i.jsx)(od,{type:"text",icon:(0,i.jsx)(Ra,{}),size:"small",style:{color:"#ff4d4f"},onClick:function(){s([e,t])},children:"Clear Filter"}),(0,i.jsx)(Lfe,{value:c,format:"MM/DD/YYYY",maxDate:t,onChange:function(e){console.log("dates",e),s(e)}})]})]}),(0,i.jsx)(rO,{}),(0,i.jsxs)(c0,{gutter:[16,16],style:{marginBottom:"24px"},children:[(0,i.jsx)(p0,{xs:24,sm:12,lg:4,children:(0,i.jsx)(y,{title:"Recoverable Orders",value:null==d?void 0:d.recoverable,tooltip:"Orders that can be recovered"})}),(0,i.jsx)(p0,{xs:24,sm:12,lg:4,children:(0,i.jsx)(y,{title:"Recovered Orders",value:null==d?void 0:d.recovered,tooltip:"Orders that have been recovered"})}),(0,i.jsx)(p0,{xs:24,sm:12,lg:4,children:(0,i.jsx)(y,{title:"Lost Orders",value:null==d?void 0:d.lost,tooltip:"Orders that were lost"})}),(0,i.jsx)(p0,{xs:24,sm:12,lg:4,children:(0,i.jsx)(y,{title:"Recoverable Revenue",value:null==d?void 0:d.recoverableRevenue,tooltip:"Revenue that can be recovered"})}),(0,i.jsx)(p0,{xs:24,sm:12,lg:4,children:(0,i.jsx)(y,{title:"Recovered Revenue",value:null==d?void 0:d.recoveredRevenue,tooltip:"Revenue that has been recovered"})}),(0,i.jsx)(p0,{xs:24,sm:12,lg:4,children:(0,i.jsx)(y,{title:"Recovery Rate",value:"".concat(null==d?void 0:d.recoveryRate,"%"),tooltip:"Percentage of recovery"})})]}),(0,i.jsxs)(iq,{bordered:!1,style:{background:"#fafafa"},children:[(0,i.jsx)("div",{style:{marginBottom:"25px"},children:(0,i.jsxs)(UF,{children:[(0,i.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[(0,i.jsx)("span",{style:{width:"12px",height:"12px",background:"#ff4d4f",marginRight:"8px",borderRadius:"2px"}}),(0,i.jsx)(Dfe,{style:{fontSize:"13px"},children:"Recoverable Revenue"})]}),(0,i.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",marginLeft:"16px"},children:[(0,i.jsx)("span",{style:{width:"12px",height:"12px",background:"#faad14",marginRight:"8px",borderRadius:"2px"}}),(0,i.jsx)(Dfe,{style:{fontSize:"13px"},children:"Recovered Revenue"})]})]})}),(0,i.jsx)(tv,{loading:o,active:!0,children:(0,i.jsx)(D0,{width:"100%",height:400,children:(0,i.jsxs)(Yae,{data:null==d?void 0:d.chartData,children:[(0,i.jsx)(Dce,{strokeDasharray:"3 3",stroke:"#c2bebe"}),(0,i.jsx)(Yce,{dataKey:"date",tick:{fontSize:12},stroke:"#c2bebe"}),(0,i.jsx)(lse,{tick:{fontSize:12},stroke:"#c2bebe",domain:[0,g],ticks:b}),(0,i.jsx)(yde,{}),(0,i.jsx)($fe,{type:"monotone",dataKey:"recoverable",stroke:"#ff4d4f",strokeWidth:2,dot:!1}),(0,i.jsx)($fe,{type:"monotone",dataKey:"recovered",stroke:"#faad14",strokeWidth:2,dot:!1})]})})})]})]})};const zfe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};var Bfe=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:zfe}))}; | |
| 186 | +/** */const Hfe=n.forwardRef(Bfe);function Ffe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return Wfe(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Wfe(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Wfe(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,Wfe(d,"constructor",s),Wfe(s,"constructor",c),c.displayName="GeneratorFunction",Wfe(s,o,"GeneratorFunction"),Wfe(d),Wfe(d,o,"Generator"),Wfe(d,r,function(){return this}),Wfe(d,"toString",function(){return"[object Generator]"}),(Ffe=function(){return{w:i,m:f}})()}function Wfe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wfe=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){Wfe(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},Wfe(e,t,n,r)}function Kfe(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Ufe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vfe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vfe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vfe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Gfe=vR.Title,Yfe=FJ.filter(function(e){return"Action"!==e.dataIndex});const Xfe=function(){var e=Ufe(c(),2),t=(e[0],e[1],Ufe((0,n.useState)([]),2)),r=t[0],o=t[1],a=Ufe((0,n.useState)(!1),2),l=a[0],s=a[1],u=function(){var e,t=(e=Ffe().m(function e(){var t,n,r,i;return Ffe().w(function(e){for(;;)switch(e.n){case 0:return t={paged:1,per_page:10},s(!0),e.n=1,vH(t);case 1:n=e.v,r=null!=n&&n.abandonment?n.abandonment:[],i=r.map(function(e,t){var n=(null==e?void 0:e.other_fields)||{},r=[null==n?void 0:n.first_name,null==n?void 0:n.last_name].filter(Boolean).join(" ")||"Guest";return{key:e.id||0,UserName:r,EmailTo:e.email||"N/A",CartTotal:(null==e?void 0:e.cart_total)||"0",OrderStatus:e.order_status||"Pending",DateTime:e.time?mP()(e.time).format("MMMM D, YYYY h:mm a"):"N/A"}}),o(i),setTimeout(function(){s(!1)},500);case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Kfe(i,r,o,a,l,"next",e)}function l(e){Kfe(i,r,o,a,l,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();return(0,n.useEffect)(function(){u()},[]),(0,i.jsxs)(iq,{bordered:!1,style:{borderRadius:"12px",boxShadow:"0 1px 2px rgba(0,0,0,0.03)",background:"#ffffff",padding:0},children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"24px"},children:[(0,i.jsx)(Gfe,{level:4,style:{margin:0,fontWeight:600},children:"Recent Follow Up Reports"}),(0,i.jsxs)(uZ,{to:"/followUp",children:["View All",(0,i.jsx)(Hfe,{rotate:45})]})]}),(0,i.jsx)(CX,{loading:l,columns:Yfe,dataSource:r,pagination:!1,style:{background:"#fafafa"},rowClassName:function(){return"custom-row"}})]})};const Qfe=function(){return(0,i.jsxs)("div",{style:{background:"#f5f5f5",minHeight:"100vh"},children:[(0,i.jsx)(XZ,{}),(0,i.jsxs)(SZ,{className:"tttme-App",style:{padding:"0",background:"#fff",borderRadius:"5px",boxShadow:"0 4px 40px rgb(0 0 0 / 5%)",minHeight:"100vh"},children:[(0,i.jsx)(qfe,{}),(0,i.jsx)(Xfe,{})]})]})};const Zfe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};var Jfe=function(e,t){return n.createElement($a,Ve({},e,{ref:t,icon:Zfe}))}; | |
| 187 | +/** */const epe=n.forwardRef(Jfe);function tpe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return npe(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(npe(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,npe(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,npe(d,"constructor",s),npe(s,"constructor",c),c.displayName="GeneratorFunction",npe(s,o,"GeneratorFunction"),npe(d),npe(d,o,"Generator"),npe(d,r,function(){return this}),npe(d,"toString",function(){return"[object Generator]"}),(tpe=function(){return{w:i,m:f}})()}function npe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}npe=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){npe(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},npe(e,t,n,r)}function rpe(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function ope(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){rpe(i,r,o,a,l,"next",e)}function l(e){rpe(i,r,o,a,l,"throw",e)}a(void 0)})}}function ipe(e){return ipe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ipe(e)}function ape(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return lpe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lpe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lpe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var cpe=SZ.Content,spe=vR.Title,upe=vR.Text,dpe=ng.confirm;const fpe=function(){var e,t,r,o=DQ().id,a=RQ(),l=ape((0,n.useState)(!1),2),c=l[0],s=l[1],u=ape((0,n.useState)([]),2),d=u[0],f=u[1],p=ape((0,n.useState)({}),2),h=p[0],m=p[1],v=ape((0,n.useState)([]),2),g=v[0],b=v[1],y=ape((0,n.useState)("$"),2),x=y[0],w=y[1],S=ape((0,n.useState)({discount:0,shipping:0,others:0,cartTotal:0}),2),C=S[0],O=S[1],k=function(e){var t;if(e.cart_contents){var n=function(e){if(!e)return"$";var t=e.match(/[^\d.,\s]+/);return t?t[0]:"$"}(e.cart_total);w(n);var r,o="object"===ipe(r=e.cart_contents)&&null!==r?r:(console.warn("Cart contents needs to be parsed on backend"),{}),i=Object.entries(o).map(function(e,t){var n=ape(e,2),r=(n[0],n[1]),o=r.line_total/r.quantity,i=parseFloat(r.line_total);return{key:t,name:r.name||r.product_name||"Product #".concat(r.product_id),image:r.image_url||r.image||"https://via.placeholder.com/60",quantity:r.quantity,price:"".concat(o.toFixed(2)).concat(x),subtotal:"".concat(i).concat(x)}});b(i);var a=i.reduce(function(e,t){return e+parseFloat(t.subtotal.replace("$",""))},0),l=parseFloat((null===(t=e.cart_total)||void 0===t?void 0:t.replace("$",""))||0),c=parseFloat(e.discount||0),s=parseFloat(e.shipping||0),u=l-a-s+c;O({discount:c.toFixed(2),shipping:s.toFixed(2),others:u.toFixed(2),cartTotal:e.cart_total||"".concat(l.toFixed(2),"$")})}},E=function(){var e=ope(tpe().m(function e(){var t,n,r,a;return tpe().w(function(e){for(;;)switch(e.n){case 0:return s(!0),e.n=1,$H({id:o});case 1:t=e.v,n=(null==t?void 0:t.email)||[],r=(null==t?void 0:t.abandonment)||{},a=[],n&&n.length>0&&(a=n.map(function(e){return{key:e.id,template:e.title,subject:e.email_subject,coupon:e.coupon_code||null,status:"1"===e.email_sent?"Sent":"Not Sent",scheduledAt:e.scheduled_time,openTime:"yes"===rtsbParams.hasPro?(0,i.jsxs)(i.Fragment,{children:[" ",(null==e?void 0:e.open_time)||"--"," "]}):(0,i.jsx)(od,{size:"small",color:"danger",variant:"outlined",children:" PRO "}),scheduledAction:"yes"===rtsbParams.hasPro?(0,i.jsx)(i.Fragment,{children:"1"===e.email_sent?null!=e&&e.action&&"NULL"!==(null==e?void 0:e.action)?null==e?void 0:e.action:"--":(0,i.jsx)(od,{onClick:function(){return P(e.id)},type:"primary",danger:!0,icon:(0,i.jsx)(LI,{}),children:"Delete"})}):(0,i.jsx)(od,{size:"small",color:"danger",variant:"outlined",children:" PRO "})}})),f(a),r&&(m(r),k(r)),s(!1);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),j=function(e){return{completed:{label:"Successful",color:"green"},abandoned:{label:"Abandoned",color:"orange"},lost:{label:"Lost",color:"red"},normal:{label:"Normal",color:"blue"}}[null==e?void 0:e.toLowerCase()]||{label:"Unknown",color:"default"}},$=function(){var e=ope(tpe().m(function e(){var t;return tpe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,OH(o);case 1:if(null==(t=e.v)||!t.reschedule){e.n=2;break}return e.n=2,E();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),P=function(e){dpe({title:"Are you sure you want to delete this item?",content:"This action cannot be undone.",okText:"Yes, Delete",okType:"danger",cancelText:"Cancel",onOk:function(){return ope(tpe().m(function t(){var n,r;return tpe().w(function(t){for(;;)switch(t.n){case 0:return t.p=0,t.n=1,EH(e);case 1:if(null==(n=t.v)||!n.deleted){t.n=2;break}return t.n=2,E();case 2:t.n=4;break;case 3:t.p=3,r=t.v,console.error("Delete error:",r),MJ.error("Something went wrong.");case 4:return t.a(2)}},t,null,[[0,3]])}))()}})};(0,n.useEffect)(function(){E()},[]);var N=function(e){var t=e.data,n=e.type,r=e.email,o=[{label:"Full Name",value:"billing"===n?(null==t?void 0:t.full_name)||"".concat((null==t?void 0:t.billing_first_name)||""," ").concat((null==t?void 0:t.billing_last_name)||"").trim():"".concat((null==t?void 0:t.shipping_first_name)||""," ").concat((null==t?void 0:t.shipping_last_name)||"").trim()},{label:"Contact Email",value:"billing"===n?r||(null==t?void 0:t.billing_email):null},{label:"Contact Number",value:"billing"===n?null==t?void 0:t.billing_phone:null},{label:"Company",value:null==t?void 0:t["".concat(n,"_company")]},{label:"Street Address 1",value:null==t?void 0:t["".concat(n,"_address_1")]},{label:"Street Address 2",value:null==t?void 0:t["".concat(n,"_address_2")]},{label:"Country, City",value:[null==t?void 0:t["".concat(n,"_country")],null==t?void 0:t["".concat(n,"_city")]].filter(Boolean).join(", ")},{label:"State",value:null==t?void 0:t["".concat(n,"_state")]},{label:"Zip Code",value:null==t?void 0:t["".concat(n,"_postcode")]}];return(0,i.jsx)(i.Fragment,{children:o.map(function(e,t){return e.value?(0,i.jsxs)("div",{style:{marginTop:0===t?"12px":"8px"},children:[(0,i.jsxs)(upe,{strong:!0,children:[e.label,": "]}),(0,i.jsx)(upe,{children:e.value})]},t):null})})};return(0,i.jsx)(SZ,{style:{background:"#f5f5f5",minHeight:"100vh"},children:(0,i.jsxs)(cpe,{style:{padding:"24px"},children:[(0,i.jsx)(od,{type:"primary",icon:(0,i.jsx)(epe,{}),onClick:function(){return a(-1)},style:{marginBottom:"24px"},children:"Back to Reports"}),(0,i.jsx)(iq,{title:"Email Details",extra:(0,i.jsx)(od,{onClick:$,type:"primary",danger:!0,children:"Reschedule Emails"}),style:{marginBottom:"24px"},children:(0,i.jsx)(CX,{columns:WJ,dataSource:d,pagination:!1,loading:c,bordered:!0})}),(0,i.jsx)(iq,{title:"User Address Details",extra:(0,i.jsx)(Mg,{color:j(null==h?void 0:h.order_status).color,children:j(null==h?void 0:h.order_status).label}),style:{marginBottom:"24px"},loading:c,children:(0,i.jsxs)(c0,{gutter:[48,16],children:[(0,i.jsxs)(p0,{xs:24,md:12,children:[(0,i.jsx)(spe,{style:{marginTop:0},level:5,children:"Billing Address:"}),(0,i.jsx)(N,{data:h.other_fields,type:"billing",email:h.email})]}),(0,i.jsx)(p0,{xs:24,md:12,children:null!==(e=h.other_fields)&&void 0!==e&&e.shipping_first_name||null!==(t=h.other_fields)&&void 0!==t&&t.shipping_address_1||null!==(r=h.other_fields)&&void 0!==r&&r.shipping_city?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(spe,{style:{marginTop:0},level:5,children:"Shipping Address:"}),(0,i.jsx)(N,{data:h.other_fields,type:"shipping"})]}):null})]})}),(0,i.jsx)(iq,{title:"User Order Details",style:{marginBottom:"24px"},children:(0,i.jsx)(CX,{columns:KJ,dataSource:g,pagination:!1,loading:c,bordered:!0,summary:function(){return(0,i.jsxs)(CX.Summary,{fixed:!0,children:[(0,i.jsxs)(CX.Summary.Row,{children:[(0,i.jsx)(CX.Summary.Cell,{index:0,colSpan:3,children:(0,i.jsx)(upe,{strong:!0,children:"Discount:"})}),(0,i.jsx)(CX.Summary.Cell,{index:1,align:"right",children:(0,i.jsxs)(upe,{children:[C.discount,"$"]})})]}),(0,i.jsxs)(CX.Summary.Row,{children:[(0,i.jsx)(CX.Summary.Cell,{index:0,colSpan:3,children:(0,i.jsx)(upe,{strong:!0,children:"Others:"})}),(0,i.jsx)(CX.Summary.Cell,{index:1,align:"right",children:(0,i.jsxs)(upe,{children:[C.others,"$"]})})]}),(0,i.jsxs)(CX.Summary.Row,{children:[(0,i.jsx)(CX.Summary.Cell,{index:0,colSpan:3,children:(0,i.jsx)(upe,{strong:!0,children:"Shipping:"})}),(0,i.jsx)(CX.Summary.Cell,{index:1,align:"right",children:(0,i.jsxs)(upe,{children:[C.shipping,"$"]})})]}),(0,i.jsxs)(CX.Summary.Row,{children:[(0,i.jsx)(CX.Summary.Cell,{index:0,colSpan:3,children:(0,i.jsx)(upe,{strong:!0,children:"Cart Total:"})}),(0,i.jsx)(CX.Summary.Cell,{index:1,align:"right",children:(0,i.jsx)(upe,{strong:!0,style:{fontSize:"16px"},children:C.cartTotal})})]})]})}})})]})})};function ppe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hpe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hpe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hpe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var mpe=vR.Title;const vpe=function(){var e=ppe(c(),2);e[0],e[1];return(0,i.jsx)("div",{className:"rtsb-cart-tracking-page-wrapper",children:(0,i.jsxs)(SZ,{className:"tttme-App",style:{background:"#fff",borderRadius:"5px",boxShadow:"0 4px 40px rgb(0 0 0 / 5%)",minHeight:"100vh"},children:[(0,i.jsx)(mpe,{style:{padding:"10px 15px",margin:"10px 0"},className:"rtsb-wrapper-title",level:5,children:rtsbCaAbandonment.mainTitle||"Abandoned Carts Follow Up"}),(0,i.jsx)(rO,{style:{margin:0}}),(0,i.jsx)(lZ,{children:(0,i.jsxs)(tZ,{children:[(0,i.jsx)(JQ,{path:"/",element:(0,i.jsx)(Qfe,{})}),(0,i.jsx)(JQ,{path:"/emailTemplates",element:(0,i.jsx)(cJ,{})}),(0,i.jsx)(JQ,{path:"/followUp",element:(0,i.jsx)(r0,{})}),(0,i.jsx)(JQ,{path:"/followUp/pages/:page",element:(0,i.jsx)(r0,{})}),(0,i.jsx)(JQ,{path:"/followUp/abandonment/:id",element:(0,i.jsx)(fpe,{})})," ",(0,i.jsx)(JQ,{path:"*",element:(0,i.jsx)(ZQ,{to:"/",replace:!0})})]})})]})})};var gpe=document.getElementById("rtsb-admin-app");gpe&&t.createRoot(gpe).render((0,i.jsx)(l,{reducer:CF,initialState:SF,children:(0,i.jsx)(BX,{})}));var bpe=document.getElementById("rtsb-abandoned-cart-tracking");bpe&&t.createRoot(bpe).render((0,i.jsx)(l,{reducer:CF,initialState:SF,children:(0,i.jsx)(vpe,{})}))})()})(); | |