(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7707],{46970:(e,t,r)=>{var n=r(36950)(r(44555),"DataView");e.exports=n},97207:(e,t,r)=>{var n=r(33556),o=r(43324),a=r(94757),i=r(94377),l=r(31177);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(38708),o=r(36892),a=r(60997),i=r(37097),l=r(6697);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(36950)(r(44555),"Map");e.exports=n},35111:(e,t,r)=>{var n=r(83876),o=r(3404),a=r(85),i=r(32569),l=r(96153);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(36950)(r(44555),"Promise");e.exports=n},48413:(e,t,r)=>{var n=r(36950)(r(44555),"Set");e.exports=n},71465:(e,t,r)=>{var n=r(35111),o=r(89280),a=r(46979);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(33175),o=r(57090),a=r(83822),i=r(93967),l=r(63763),u=r(89307);function s(e){var t=this.__data__=new n(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=a,s.prototype.get=i,s.prototype.has=l,s.prototype.set=u,e.exports=s},65567:(e,t,r)=>{var n=r(44555).Symbol;e.exports=n},73634:(e,t,r)=>{var n=r(44555).Uint8Array;e.exports=n},3555:(e,t,r)=>{var n=r(36950)(r(44555),"WeakMap");e.exports=n},32765:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},21346:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r{var n=r(26763);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},87025:e=>{e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n{var n=r(98644),o=r(55678),a=r(26227),i=r(32712),l=r(19325),u=r(66839),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),c=!r&&o(e),f=!r&&!c&&i(e),d=!r&&!c&&!f&&u(e),p=r||c||f||d,v=p?n(e.length,String):[],h=v.length;for(var y in e)(t||s.call(e,y))&&!(p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,h)))&&v.push(y);return v}},7762:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{e.exports=function(e){return e.split("")}},30503:(e,t,r)=>{var n=r(54072);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},79127:(e,t,r)=>{var n=r(85055),o=r(13511)(n);e.exports=o},95855:e=>{e.exports=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a{var n=r(70260),o=r(88775);e.exports=function e(t,r,a,i,l){var u=-1,s=t.length;for(a||(a=o),l||(l=[]);++u0&&a(c)?r>1?e(c,r-1,a,i,l):n(l,c):i||(l[l.length]=c)}return l}},19681:(e,t,r)=>{var n=r(3249)();e.exports=n},85055:(e,t,r)=>{var n=r(19681),o=r(72230);e.exports=function(e,t){return e&&n(e,t,o)}},29726:(e,t,r)=>{var n=r(44467),o=r(5509);e.exports=function(e,t){t=n(t,e);for(var r=0,a=t.length;null!=e&&r{var n=r(70260),o=r(26227);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},39230:(e,t,r)=>{var n=r(65567),o=r(52291),a=r(31464),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},87905:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},26763:(e,t,r)=>{var n=r(95855),o=r(72155),a=r(14103);e.exports=function(e,t,r){return t==t?a(e,t,r):n(e,o,r)}},31814:(e,t,r)=>{var n=r(39230),o=r(49134);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},39594:(e,t,r)=>{var n=r(71820),o=r(49134);e.exports=function e(t,r,a,i,l){return t===r||(null!=t&&null!=r&&(o(t)||o(r))?n(t,r,a,i,e,l):t!=t&&r!=r)}},71820:(e,t,r)=>{var n=r(89817),o=r(51051),a=r(34184),i=r(46283),l=r(63155),u=r(26227),s=r(32712),c=r(66839),f="[object Arguments]",d="[object Array]",p="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,y,m){var g=u(e),b=u(t),w=g?d:l(e),x=b?d:l(t);w=w==f?p:w,x=x==f?p:x;var _=w==p,C=x==p,O=w==x;if(O&&s(e)){if(!s(t))return!1;g=!0,_=!1}if(O&&!_)return m||(m=new n),g||c(e)?o(e,t,r,h,y,m):a(e,t,w,r,h,y,m);if(!(1&r)){var E=_&&v.call(e,"__wrapped__"),j=C&&v.call(t,"__wrapped__");if(E||j){var A=E?e.value():e,S=j?t.value():t;return m||(m=new n),y(A,S,r,h,m)}}return!!O&&(m||(m=new n),i(e,t,r,h,y,m))}},49543:(e,t,r)=>{var n=r(89817),o=r(39594);e.exports=function(e,t,r,a){var i=r.length,l=i,u=!a;if(null==e)return!l;for(e=Object(e);i--;){var s=r[i];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i{e.exports=function(e){return e!=e}},80949:(e,t,r)=>{var n=r(16482),o=r(38978),a=r(83529),i=r(63599),l=/^\[object .+?Constructor\]$/,u=Object.prototype,s=Function.prototype.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?f:l).test(i(e))}},79407:(e,t,r)=>{var n=r(39230),o=r(59766),a=r(49134),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},27491:(e,t,r)=>{var n=r(78411),o=r(10786),a=r(49520),i=r(26227),l=r(95871);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):l(e)}},56046:(e,t,r)=>{var n=r(61135),o=r(46836),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},62620:(e,t,r)=>{var n=r(79127),o=r(75420);e.exports=function(e,t){var r=-1,a=o(e)?Array(e.length):[];return n(e,function(e,n,o){a[++r]=t(e,n,o)}),a}},78411:(e,t,r)=>{var n=r(49543),o=r(9674),a=r(81213);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},10786:(e,t,r)=>{var n=r(39594),o=r(52134),a=r(73273),i=r(46),l=r(88382),u=r(81213),s=r(5509);e.exports=function(e,t){return i(e)&&l(t)?u(s(e),t):function(r){var i=o(r,e);return void 0===i&&i===t?a(r,e):n(t,i,3)}}},91875:(e,t,r)=>{var n=r(7762),o=r(29726),a=r(27491),i=r(62620),l=r(41183),u=r(10193),s=r(33314),c=r(49520),f=r(26227);e.exports=function(e,t,r){t=t.length?n(t,function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[c];var d=-1;return t=n(t,u(a)),l(i(e,function(e,r,o){return{criteria:n(t,function(t){return t(e)}),index:++d,value:e}}),function(e,t){return s(e,t,r)})}},40391:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},84077:(e,t,r)=>{var n=r(29726);e.exports=function(e){return function(t){return n(t,e)}}},61684:(e,t,r)=>{var n=r(49520),o=r(19871),a=r(11689);e.exports=function(e,t){return a(o(e,t,n),e+"")}},18998:(e,t,r)=>{var n=r(47830),o=r(98561),a=r(49520),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:a;e.exports=i},31691:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},98644:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(65567),o=r(7762),a=r(26227),i=r(11662),l=1/0,u=n?n.prototype:void 0,s=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return s?s.call(t):"";var r=t+"";return"0"==r&&1/t==-l?"-0":r}},21710:(e,t,r)=>{var n=r(85548),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},10193:e=>{e.exports=function(e){return function(t){return e(t)}}},43163:(e,t,r)=>{var n=r(71465),o=r(75081),a=r(87025),i=r(52429),l=r(54317),u=r(2481);e.exports=function(e,t,r){var s=-1,c=o,f=e.length,d=!0,p=[],v=p;if(r)d=!1,c=a;else if(f>=200){var h=t?null:l(e);if(h)return u(h);d=!1,c=i,v=new n}else v=t?[]:p;e:for(;++s{e.exports=function(e,t){return e.has(t)}},44467:(e,t,r)=>{var n=r(26227),o=r(46),a=r(25048),i=r(1958);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},47294:(e,t,r)=>{var n=r(31691);e.exports=function(e,t,r){var o=e.length;return r=void 0===r?o:r,!t&&r>=o?e:n(e,t,r)}},35548:(e,t,r)=>{var n=r(11662);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,a=e==e,i=n(e),l=void 0!==t,u=null===t,s=t==t,c=n(t);if(!u&&!c&&!i&&e>t||i&&l&&s&&!u&&!c||o&&l&&s||!r&&s||!a)return 1;if(!o&&!i&&!c&&e{var n=r(35548);e.exports=function(e,t,r){for(var o=-1,a=e.criteria,i=t.criteria,l=a.length,u=r.length;++o=u)return s;return s*("desc"==r[o]?-1:1)}}return e.index-t.index}},41547:(e,t,r)=>{var n=r(44555)["__core-js_shared__"];e.exports=n},13511:(e,t,r)=>{var n=r(75420);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var a=r.length,i=t?a:-1,l=Object(r);(t?i--:++i{e.exports=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var u=i[e?l:++o];if(!1===r(a[u],u,a))break}return t}}},48979:(e,t,r)=>{var n=r(47294),o=r(66948),a=r(12408),i=r(1958);e.exports=function(e){return function(t){var r=o(t=i(t))?a(t):void 0,l=r?r[0]:t.charAt(0),u=r?n(r,1).join(""):t.slice(1);return l[e]()+u}}},54317:(e,t,r)=>{var n=r(48413),o=r(40522),a=r(2481),i=n&&1/a(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=i},98561:(e,t,r)=>{var n=r(36950),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},51051:(e,t,r)=>{var n=r(71465),o=r(95388),a=r(52429);e.exports=function(e,t,r,i,l,u){var s=1&r,c=e.length,f=t.length;if(c!=f&&!(s&&f>c))return!1;var d=u.get(e),p=u.get(t);if(d&&p)return d==t&&p==e;var v=-1,h=!0,y=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++v{var n=r(65567),o=r(73634),a=r(54072),i=r(51051),l=r(92435),u=r(2481),s=n?n.prototype:void 0,c=s?s.valueOf:void 0;e.exports=function(e,t,r,n,s,f,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new o(e),new o(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+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 v=1&n;if(p||(p=u),e.size!=t.size&&!v)break;var h=d.get(e);if(h)return h==t;n|=2,d.set(e,t);var y=i(p(e),p(t),n,s,f,d);return d.delete(e),y;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},46283:(e,t,r)=>{var n=r(87028),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,l){var u=1&r,s=n(e),c=s.length;if(c!=n(t).length&&!u)return!1;for(var f=c;f--;){var d=s[f];if(!(u?d in t:o.call(t,d)))return!1}var p=l.get(e),v=l.get(t);if(p&&v)return p==t&&v==e;var h=!0;l.set(e,t),l.set(t,e);for(var y=u;++f{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},87028:(e,t,r)=>{var n=r(67457),o=r(29062),a=r(72230);e.exports=function(e){return n(e,a,o)}},29401:(e,t,r)=>{var n=r(41014);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},9674:(e,t,r)=>{var n=r(88382),o=r(72230);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,n(i)]}return t}},36950:(e,t,r)=>{var n=r(80949),o=r(62454);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},52291:(e,t,r)=>{var n=r(65567),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=i.call(e);return n&&(t?e[l]=r:delete e[l]),o}},29062:(e,t,r)=>{var n=r(21346),o=r(37111),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(e){return null==e?[]:n(i(e=Object(e)),function(t){return a.call(e,t)})}:o;e.exports=l},63155:(e,t,r)=>{var n=r(46970),o=r(51719),a=r(18896),i=r(48413),l=r(3555),u=r(39230),s=r(63599),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",v="[object DataView]",h=s(n),y=s(o),m=s(a),g=s(i),b=s(l),w=u;(n&&w(new n(new ArrayBuffer(1)))!=v||o&&w(new o)!=c||a&&w(a.resolve())!=f||i&&w(new i)!=d||l&&w(new l)!=p)&&(w=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?s(r):"";if(n)switch(n){case h:return v;case y:return c;case m:return f;case g:return d;case b:return p}return t}),e.exports=w},62454:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},51430:(e,t,r)=>{var n=r(44467),o=r(55678),a=r(26227),i=r(19325),l=r(59766),u=r(5509);e.exports=function(e,t,r){t=n(t,e);for(var s=-1,c=t.length,f=!1;++s{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},33556:(e,t,r)=>{var n=r(28524);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},43324:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}},94757:(e,t,r)=>{var n=r(28524),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},94377:(e,t,r)=>{var n=r(28524),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},31177:(e,t,r)=>{var n=r(28524);e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},88775:(e,t,r)=>{var n=r(65567),o=r(55678),a=r(26227),i=n?n.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},19325:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{var n=r(54072),o=r(75420),a=r(19325),i=r(83529);e.exports=function(e,t,r){if(!i(r))return!1;var l=typeof t;return("number"==l?!!(o(r)&&a(t,r.length)):"string"==l&&t in r)&&n(r[t],e)}},46:(e,t,r)=>{var n=r(26227),o=r(11662),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||o(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t)}},41014:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},38978:(e,t,r)=>{var n=r(41547),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},61135:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},88382:(e,t,r)=>{var n=r(83529);e.exports=function(e){return e==e&&!n(e)}},38708:e=>{e.exports=function(){this.__data__=[],this.size=0}},36892:(e,t,r)=>{var n=r(30503),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},60997:(e,t,r)=>{var n=r(30503);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},37097:(e,t,r)=>{var n=r(30503);e.exports=function(e){return n(this.__data__,e)>-1}},6697:(e,t,r)=>{var n=r(30503);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},83876:(e,t,r)=>{var n=r(97207),o=r(33175),a=r(51719);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},3404:(e,t,r)=>{var n=r(29401);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}},85:(e,t,r)=>{var n=r(29401);e.exports=function(e){return n(this,e).get(e)}},32569:(e,t,r)=>{var n=r(29401);e.exports=function(e){return n(this,e).has(e)}},96153:(e,t,r)=>{var n=r(29401);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=+(r.size!=o),this}},92435:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},81213:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},87872:(e,t,r)=>{var n=r(35294);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},28524:(e,t,r)=>{var n=r(36950)(Object,"create");e.exports=n},46836:(e,t,r)=>{var n=r(75523)(Object.keys,Object);e.exports=n},91183:(e,t,r)=>{e=r.nmd(e);var n=r(7490),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l},31464:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},75523:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},19871:(e,t,r)=>{var n=r(32765),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=o(a.length-t,0),u=Array(l);++i{var n=r(7490),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},89280:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},46979:e=>{e.exports=function(e){return this.__data__.has(e)}},2481:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},11689:(e,t,r)=>{var n=r(18998),o=r(18609)(n);e.exports=o},18609:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),a=16-(o-n);if(n=o,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},57090:(e,t,r)=>{var n=r(33175);e.exports=function(){this.__data__=new n,this.size=0}},83822:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},93967:e=>{e.exports=function(e){return this.__data__.get(e)}},63763:e=>{e.exports=function(e){return this.__data__.has(e)}},89307:(e,t,r)=>{var n=r(33175),o=r(51719),a=r(35111);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},14103:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n{var n=r(93936),o=r(66948),a=r(67528);e.exports=function(e){return o(e)?a(e):n(e)}},25048:(e,t,r)=>{var n=r(87872),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,r,n,o){t.push(n?o.replace(a,"$1"):r||e)}),t});e.exports=i},5509:(e,t,r)=>{var n=r(11662),o=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},63599: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""}},85548:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},67528:e=>{var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",o="[^"+t+"]",a="(?:\ud83c[\udde6-\uddff]){2}",i="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",s="(?:\\u200d(?:"+[o,a,i].join("|")+")"+u+l+")*",c=RegExp(n+"(?="+n+")|(?:"+[o+r+"?",r,a,i,"["+t+"]"].join("|")+")"+(u+l+s),"g");e.exports=function(e){return e.match(c)||[]}},47830:e=>{e.exports=function(e){return function(){return e}}},69565:(e,t,r)=>{var n=r(83529),o=r(6858),a=r(20526),i=Math.max,l=Math.min;e.exports=function(e,t,r){var u,s,c,f,d,p,v=0,h=!1,y=!1,m=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var r=u,n=s;return u=s=void 0,v=t,f=e.apply(n,r)}function b(e){var r=e-p,n=e-v;return void 0===p||r>=t||r<0||y&&n>=c}function w(){var e,r,n,a=o();if(b(a))return x(a);d=setTimeout(w,(e=a-p,r=a-v,n=t-e,y?l(n,c-r):n))}function x(e){return(d=void 0,m&&u)?g(e):(u=s=void 0,f)}function _(){var e,r=o(),n=b(r);if(u=arguments,s=this,p=r,n){if(void 0===d)return v=e=p,d=setTimeout(w,t),h?g(e):f;if(y)return clearTimeout(d),d=setTimeout(w,t),g(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=a(t)||0,n(r)&&(h=!!r.leading,c=(y="maxWait"in r)?i(a(r.maxWait)||0,t):c,m="trailing"in r?!!r.trailing:m),_.cancel=function(){void 0!==d&&clearTimeout(d),v=0,u=p=s=d=void 0},_.flush=function(){return void 0===d?f:x(o())},_}},54072:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},52134:(e,t,r)=>{var n=r(29726);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},73273:(e,t,r)=>{var n=r(87905),o=r(51430);e.exports=function(e,t){return null!=e&&o(e,t,n)}},49520:e=>{e.exports=function(e){return e}},55678:(e,t,r)=>{var n=r(31814),o=r(49134),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},26227:e=>{var t=Array.isArray;e.exports=t},75420:(e,t,r)=>{var n=r(16482),o=r(59766);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},32712:(e,t,r)=>{e=r.nmd(e);var n=r(44555),o=r(98625),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?n.Buffer:void 0,u=l?l.isBuffer:void 0;e.exports=u||o},16482:(e,t,r)=>{var n=r(39230),o=r(83529);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},59766:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},96339:(e,t,r)=>{var n=r(4247);e.exports=function(e){return n(e)&&e!=+e}},81905:e=>{e.exports=function(e){return null==e}},4247:(e,t,r)=>{var n=r(39230),o=r(49134);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==n(e)}},83529:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},49134:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},12871:(e,t,r)=>{var n=r(39230),o=r(26227),a=r(49134);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==n(e)}},11662:(e,t,r)=>{var n=r(39230),o=r(49134);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},66839:(e,t,r)=>{var n=r(79407),o=r(10193),a=r(91183),i=a&&a.isTypedArray,l=i?o(i):n;e.exports=l},72230:(e,t,r)=>{var n=r(2835),o=r(56046),a=r(75420);e.exports=function(e){return a(e)?n(e):o(e)}},35294:(e,t,r)=>{var n=r(35111);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},40522:e=>{e.exports=function(){}},6858:(e,t,r)=>{var n=r(44555);e.exports=function(){return n.Date.now()}},95871:(e,t,r)=>{var n=r(40391),o=r(84077),a=r(46),i=r(5509);e.exports=function(e){return a(e)?n(i(e)):o(e)}},26839:(e,t,r)=>{var n=r(67812),o=r(91875),a=r(61684),i=r(17986),l=a(function(e,t){if(null==e)return[];var r=t.length;return r>1&&i(e,t[0],t[1])?t=[]:r>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,n(t,1),[])});e.exports=l},37111:e=>{e.exports=function(){return[]}},98625:e=>{e.exports=function(){return!1}},34926:(e,t,r)=>{var n=r(69565),o=r(83529);e.exports=function(e,t,r){var a=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(r)&&(a="leading"in r?!!r.leading:a,i="trailing"in r?!!r.trailing:i),n(e,t,{leading:a,maxWait:t,trailing:i})}},20526:(e,t,r)=>{var n=r(21710),o=r(83529),a=r(11662),i=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return i;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||s.test(e)?c(e.slice(2),r?2:8):l.test(e)?i:+e}},1958:(e,t,r)=>{var n=r(43806);e.exports=function(e){return null==e?"":n(e)}},53718:(e,t,r)=>{var n=r(27491),o=r(43163);e.exports=function(e,t){return e&&e.length?o(e,n(t,2)):[]}},48072:(e,t,r)=>{var n=r(48979)("toUpperCase");e.exports=n},56666:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(13955).A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},72025:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(13955).A)("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]])},11131:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler");Symbol.for("react.provider");var l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),t.vq=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.zv=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case i:case a:case c:case f:return e;default:switch(e=e&&e.$$typeof){case u:case s:case p:case d:case l:return e;default:return t}}case n:return t}}}(e)===o}},80887:(e,t,r)=>{"use strict";r.d(t,{g:()=>w});var n=r(46199),o=r.n(n),a=r(16482),i=r.n(a),l=r(45611),u=r(9796),s=r(19293),c=r(99558),f=r(14276);function d(e){return(d="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 p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var w=t.inactive?d:t.color;return o().createElement("li",p({className:m,style:h,key:"legend-item-".concat(r)},(0,f.XC)(e.props,t,r)),o().createElement(s.u,{width:n,height:n,viewBox:v,style:y},e.renderIcon(t)),o().createElement("span",{className:"recharts-legend-item-text",style:{color:w}},a?a(b,t,r):b))})}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,n=e.align;return t&&t.length?o().createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?n:"left"}},this.renderItems()):null}}],function(e,t){for(var r=0;r{"use strict";r.d(t,{E:()=>m});var n=r(46199),o=r.n(n),a=r(26839),i=r.n(a),l=r(81905),u=r.n(l),s=r(45611),c=r(3e4);function f(e){return(f="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 d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r{"use strict";r.d(t,{s:()=>b});var n=r(46199),o=r.n(n),a=r(80887),i=r(3e4),l=r(89361);function u(e){return(u="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)}var s=["ref"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?f({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,o=n.layout,a=n.align,i=n.verticalAlign,l=n.margin,u=n.chartWidth,s=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===i?{top:((s||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),f(f({},t),r)}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,n=t.width,i=t.height,u=t.wrapperStyle,c=t.payloadUniqBy,d=t.payload,p=f(f({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(u)),u);return o().createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(t){e.wrapperNode=t}},function(e,t){if(o().isValidElement(e))return o().cloneElement(e,t);if("function"==typeof e)return o().createElement(e,t);t.ref;var r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,s);return o().createElement(a.g,r)}(r,f(f({},this.props),{},{payload:(0,l.s)(d,c,g)})))}}],r=[{key:"getWithHeight",value:function(e,t){var r=f(f({},this.defaultProps),e.props).layout;return"vertical"===r&&(0,i.Et)(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],t&&d(n.prototype,t),r&&d(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(n.PureComponent);y(b,"displayName","Legend"),y(b,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},85363:(e,t,r)=>{"use strict";r.d(t,{u:()=>y});var n=r(45611),o=r(46199),a=r.n(o),i=r(34926),l=r.n(i),u=r(11131),s=r(3e4),c=r(9796),f=r(85035);function d(e){return(d="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 p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&(e=l()(e,j,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),r=R.current.getBoundingClientRect();return L(r.width,r.height),t.observe(R.current),function(){t.disconnect()}},[L,j]);var B=(0,o.useMemo)(function(){var e=M.containerWidth,t=M.containerHeight;if(e<0||t<0)return null;(0,c.R)((0,s._3)(m)||(0,s._3)(b),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",m,b),(0,c.R)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var r=(0,s._3)(m)?e:m,n=(0,s._3)(b)?t:b;i&&i>0&&(r?n=r/i:n&&(r=n*i),C&&n>C&&(n=C)),(0,c.R)(r>0||n>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.",r,n,m,b,x,_,i);var l=!Array.isArray(O)&&(0,f.Mn)(O.type).endsWith("Chart");return a().Children.map(O,function(e){return(0,u.vq)(e)?(0,o.cloneElement)(e,v({width:r,height:n},l?{style:v({height:"100%",width:"100%",maxHeight:n,maxWidth:r},e.props.style)}:{})):e})},[i,O,b,C,_,x,M,m]);return a().createElement("div",{id:A?"".concat(A):void 0,className:(0,n.A)("recharts-responsive-container",S),style:v(v({},void 0===k?{}:k),{},{width:m,height:b,minWidth:x,minHeight:_,maxHeight:C}),ref:R},B)})},54564:(e,t,r)=>{"use strict";r.d(t,{m:()=>T});var n=r(46199),o=r.n(n),a=r(12915),i=r(45611),l=r(3e4);function u(e){return(u="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 s(e,t,r){var n;return(n=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c="recharts-tooltip-wrapper",f={visibility:"hidden"};function d(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&(0,l.Et)(a[n]))return a[n];var f=r[n]-u-o,d=r[n]+o;return t[n]?i[n]?f:d:i[n]?fs[n]+c?Math.max(f,s[n]):Math.max(d,s[n])}function p(e){return(p="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 v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),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)}},{key:"render",value:function(){var e,t,r,n,a,u,p,v,y,m,g,b,w,x,_,C,O,E,j,A=this,S=this.props,P=S.active,k=S.allowEscapeViewBox,R=S.animationDuration,D=S.animationEasing,T=S.children,M=S.coordinate,F=S.hasPayload,L=S.isAnimationActive,B=S.offset,I=S.position,N=S.reverseDirection,V=S.useTranslate3d,U=S.viewBox,z=S.wrapperStyle,G=(b=(e={allowEscapeViewBox:k,coordinate:M,offsetTopLeft:B,position:I,reverseDirection:N,tooltipBox:this.state.lastBoundingBox,useTranslate3d:V,viewBox:U}).allowEscapeViewBox,w=e.coordinate,x=e.offsetTopLeft,_=e.position,C=e.reverseDirection,O=e.tooltipBox,E=e.useTranslate3d,j=e.viewBox,O.height>0&&O.width>0&&w?(r=(t={translateX:m=d({allowEscapeViewBox:b,coordinate:w,key:"x",offsetTopLeft:x,position:_,reverseDirection:C,tooltipDimension:O.width,viewBox:j,viewBoxDimension:j.width}),translateY:g=d({allowEscapeViewBox:b,coordinate:w,key:"y",offsetTopLeft:x,position:_,reverseDirection:C,tooltipDimension:O.height,viewBox:j,viewBoxDimension:j.height}),useTranslate3d:E}).translateX,n=t.translateY,y={transform:t.useTranslate3d?"translate3d(".concat(r,"px, ").concat(n,"px, 0)"):"translate(".concat(r,"px, ").concat(n,"px)")}):y=f,{cssProperties:y,cssClasses:(u=(a={translateX:m,translateY:g,coordinate:w}).coordinate,p=a.translateX,v=a.translateY,(0,i.A)(c,s(s(s(s({},"".concat(c,"-right"),(0,l.Et)(p)&&u&&(0,l.Et)(u.x)&&p>=u.x),"".concat(c,"-left"),(0,l.Et)(p)&&u&&(0,l.Et)(u.x)&&p=u.y),"".concat(c,"-top"),(0,l.Et)(v)&&u&&(0,l.Et)(u.y)&&v0;return o().createElement(x,{allowEscapeViewBox:i,animationDuration:l,animationEasing:u,isAnimationActive:d,active:n,coordinate:c,hasPayload:O,offset:p,position:y,reverseDirection:m,useTranslate3d:g,viewBox:b,wrapperStyle:w},(e=j(j({},this.props),{},{payload:_}),o().isValidElement(s)?o().cloneElement(s,e):"function"==typeof s?o().createElement(s,e):o().createElement(a.E,e)))}}],function(e,t){for(var r=0;r{"use strict";r.d(t,{u:()=>s});var n=r(46199),o=r.n(n),a=r(45611),i=r(85035),l=["children","width","height","viewBox","className","style","title","desc"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,l),h=s||{width:r,height:n,x:0,y:0},y=(0,a.A)("recharts-surface",c);return o().createElement("svg",u({},(0,i.J9)(v,!0,"svg"),{className:y,width:r,height:n,style:f,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),o().createElement("title",null,d),o().createElement("desc",null,p),t)}},99558:(e,t,r)=>{"use strict";r.d(t,{i:()=>k});var n=r(46199),o=r.n(n),a=r(48072),i=r.n(a),l=r(26739);let u={draw(e,t){let r=(0,l.RZ)(t/l.pi);e.moveTo(r,0),e.arc(0,0,r,0,l.FA)}},s=(0,l.RZ)(1/3),c=2*s,f=(0,l.F8)(l.pi/10)/(0,l.F8)(7*l.pi/10),d=(0,l.F8)(l.FA/10)*f,p=-(0,l.gn)(l.FA/10)*f,v=(0,l.RZ)(3),h=(0,l.RZ)(3)/2,y=1/(0,l.RZ)(12),m=(y/2+1)*3;var g=r(40713),b=r(31899);(0,l.RZ)(3),(0,l.RZ)(3);var w=r(45611),x=r(85035);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)}var C=["type","size","sizeType"];function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,C)),{},{type:n,size:l,sizeType:c}),d=f.className,p=f.cx,v=f.cy,h=(0,x.J9)(f,!0);return p===+p&&v===+v&&l===+l?o().createElement("path",O({},h,{className:(0,w.A)("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(v,")"),d:(t=A["symbol".concat(i()(n))]||u,(function(e,t){let r=null,n=(0,b.i)(o);function o(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return e="function"==typeof e?e:(0,g.A)(e||u),t="function"==typeof t?t:(0,g.A)(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,g.A)(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,g.A)(+e),o):t},o.context=function(e){return arguments.length?(r=null==e?null:e,o):r},o})().type(t).size(P(l,c,n))())})):null};k.registerSymbol=function(e,t){A["symbol".concat(i()(e))]=t}},3e4:(e,t,r)=>{"use strict";r.d(t,{CG:()=>b,Dj:()=>w,Et:()=>p,F4:()=>m,NF:()=>y,_3:()=>d,eP:()=>x,jG:()=>_,lX:()=>g,sA:()=>f,vh:()=>v});var n=r(12871),o=r.n(n),a=r(96339),i=r.n(a),l=r(52134),u=r.n(l),s=r(4247),c=r.n(s),f=function(e){return 0===e?0:e>0?1:-1},d=function(e){return o()(e)&&e.indexOf("%")===e.length-1},p=function(e){return c()(e)&&!i()(e)},v=function(e){return p(e)||o()(e)},h=0,y=function(e){var t=++h;return"".concat(e||"").concat(t)},m=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!p(e)&&!o()(e))return n;if(d(e)){var l=e.indexOf("%");r=t*parseFloat(e.slice(0,l))/100}else r=+e;return i()(r)&&(r=n),a&&r>t&&(r=t),r},g=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},b=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n{"use strict";r.d(t,{m:()=>n});var n={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return n[e]},set:function(e,t){if("string"==typeof e)n[e]=t;else{var r=Object.keys(e);r&&r.length&&r.forEach(function(t){n[t]=e[t]})}}}},9796:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});var n=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o{"use strict";r.d(t,{AW:()=>V,BU:()=>S,J9:()=>F,Me:()=>P,Mn:()=>C,OV:()=>L,X_:()=>N,aS:()=>A,ee:()=>I,sT:()=>D,ux:()=>M});var n=r(52134),o=r.n(n),a=r(81905),i=r.n(a),l=r(12871),u=r.n(l),s=r(16482),c=r.n(s),f=r(83529),d=r.n(f),p=r(46199),v=r(11131),h=r(3e4),y=r(85755),m=r(14276),g=["children"],b=["children"];function w(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function x(e){return(x="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)}var _={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},C=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},O=null,E=null,j=function e(t){if(t===O&&Array.isArray(E))return E;var r=[];return p.Children.forEach(t,function(t){i()(t)||((0,v.zv)(t)?r=r.concat(e(t.props.children)):r.push(t))}),E=r,O=t,r};function A(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map(function(e){return C(e)}):[C(t)],j(e).forEach(function(e){var t=o()(e,"type.displayName")||o()(e,"type.name");-1!==n.indexOf(t)&&r.push(e)}),r}function S(e,t){var r=A(e,t);return r&&r[0]}var P=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!!(0,h.Et)(r)&&!(r<=0)&&!!(0,h.Et)(n)&&!(n<=0)},k=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],R=function(e){return e&&e.type&&u()(e.type)&&k.indexOf(e.type)>=0},D=function(e){return e&&"object"===x(e)&&"clipDot"in e},T=function(e,t,r,n){var o,a=null!==(o=null===m.VU||void 0===m.VU?void 0:m.VU[n])&&void 0!==o?o:[];return!c()(e)&&(n&&a.includes(t)||m.QQ.includes(t))||r&&m.j2.includes(t)},M=function(e){var t=[];return j(e).forEach(function(e){R(e)&&t.push(e)}),t},F=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,p.isValidElement)(e)&&(n=e.props),!d()(n))return null;var o={};return Object.keys(n).forEach(function(e){var a;T(null===(a=n)||void 0===a?void 0:a[e],e,t,r)&&(o[e]=n[e])}),o},L=function e(t,r){if(t===r)return!0;var n=p.Children.count(t);if(n!==p.Children.count(r))return!1;if(0===n)return!0;if(1===n)return B(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var o=0;o{"use strict";function n(e,t){for(var r in e)if(({}).hasOwnProperty.call(e,r)&&(!({}).hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if(({}).hasOwnProperty.call(t,n)&&!({}).hasOwnProperty.call(e,n))return!1;return!0}r.d(t,{b:()=>n})},89361:(e,t,r)=>{"use strict";r.d(t,{s:()=>l});var n=r(53718),o=r.n(n),a=r(16482),i=r.n(a);function l(e,t,r){return!0===t?o()(e,r):i()(t)?o()(e,t):e}},14276:(e,t,r)=>{"use strict";r.d(t,{QQ:()=>l,VU:()=>s,XC:()=>d,_U:()=>f,j2:()=>c});var n=r(46199),o=r(83529),a=r.n(o);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})(e)}var l=["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"],u=["points","pathLength"],s={svg:["viewBox","children"],polygon:u,polyline:u},c=["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"],f=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,n.isValidElement)(e)&&(r=e.props),!a()(r))return null;var o={};return Object.keys(r).forEach(function(e){c.includes(e)&&(o[e]=t||function(t){return r[e](r,t)})}),o},d=function(e,t,r){if(!a()(e)||"object"!==i(e))return null;var n=null;return Object.keys(e).forEach(function(o){var a=e[o];c.includes(o)&&"function"==typeof a&&(n||(n={}),n[o]=function(e){return a(t,r,e),null})}),n}},41666:(e,t,r)=>{"use strict";r.d(t,{UC:()=>ei,Y9:()=>eo,q7:()=>en,bL:()=>er,l9:()=>ea});var n=r(46199),o=r(93717),a=r(21419),i=r(65299),l=r(25067),u=r(36391),s=r(27443),c=r(20199),f=r(47419),d=r(48915),p=r(75295),v="Collapsible",[h,y]=(0,o.A)(v),[m,g]=h(v),b=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:o,defaultOpen:a,disabled:i,onOpenChange:l,...c}=e,[f=!1,v]=(0,u.i)({prop:o,defaultProp:a,onChange:l});return(0,p.jsx)(m,{scope:r,disabled:i,contentId:(0,d.B)(),open:f,onOpenToggle:n.useCallback(()=>v(e=>!e),[v]),children:(0,p.jsx)(s.sG.div,{"data-state":E(f),"data-disabled":i?"":void 0,...c,ref:t})})});b.displayName=v;var w="CollapsibleTrigger",x=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,o=g(w,r);return(0,p.jsx)(s.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":E(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:(0,l.m)(e.onClick,o.onOpenToggle)})});x.displayName=w;var _="CollapsibleContent",C=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=g(_,e.__scopeCollapsible);return(0,p.jsx)(f.C,{present:r||o.open,children:e=>{let{present:r}=e;return(0,p.jsx)(O,{...n,ref:t,present:r})}})});C.displayName=_;var O=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:o,children:a,...l}=e,u=g(_,r),[f,d]=n.useState(o),v=n.useRef(null),h=(0,i.s)(t,v),y=n.useRef(0),m=y.current,b=n.useRef(0),w=b.current,x=u.open||f,C=n.useRef(x),O=n.useRef();return n.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=v.current;if(e){O.current=O.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();y.current=t.height,b.current=t.width,C.current||(e.style.transitionDuration=O.current.transitionDuration,e.style.animationName=O.current.animationName),d(o)}},[u.open,o]),(0,p.jsx)(s.sG.div,{"data-state":E(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!x,...l,ref:h,style:{"--radix-collapsible-content-height":m?"".concat(m,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...e.style},children:x&&a})});function E(e){return e?"open":"closed"}var j=r(79205),A="Accordion",S=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[P,k,R]=(0,a.N)(A),[D,T]=(0,o.A)(A,[R,y]),M=y(),F=n.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,p.jsx)(P.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,p.jsx)(U,{...n,ref:t}):(0,p.jsx)(V,{...n,ref:t})})});F.displayName=A;var[L,B]=D(A),[I,N]=D(A,{collapsible:!1}),V=n.forwardRef((e,t)=>{let{value:r,defaultValue:o,onValueChange:a=()=>{},collapsible:i=!1,...l}=e,[s,c]=(0,u.i)({prop:r,defaultProp:o,onChange:a});return(0,p.jsx)(L,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:c,onItemClose:n.useCallback(()=>i&&c(""),[i,c]),children:(0,p.jsx)(I,{scope:e.__scopeAccordion,collapsible:i,children:(0,p.jsx)($,{...l,ref:t})})})}),U=n.forwardRef((e,t)=>{let{value:r,defaultValue:o,onValueChange:a=()=>{},...i}=e,[l=[],s]=(0,u.i)({prop:r,defaultProp:o,onChange:a}),c=n.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[s]),f=n.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[s]);return(0,p.jsx)(L,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:f,children:(0,p.jsx)(I,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)($,{...i,ref:t})})})}),[z,G]=D(A),$=n.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:o,dir:a,orientation:u="vertical",...c}=e,f=n.useRef(null),d=(0,i.s)(f,t),v=k(r),h="ltr"===(0,j.jH)(a),y=(0,l.m)(e.onKeyDown,e=>{var t;if(!S.includes(e.key))return;let r=e.target,n=v().filter(e=>{var t;return!(null===(t=e.ref.current)||void 0===t?void 0:t.disabled)}),o=n.findIndex(e=>e.ref.current===r),a=n.length;if(-1===o)return;e.preventDefault();let i=o,l=a-1,s=()=>{(i=o+1)>l&&(i=0)},c=()=>{(i=o-1)<0&&(i=l)};switch(e.key){case"Home":i=0;break;case"End":i=l;break;case"ArrowRight":"horizontal"===u&&(h?s():c());break;case"ArrowDown":"vertical"===u&&s();break;case"ArrowLeft":"horizontal"===u&&(h?c():s());break;case"ArrowUp":"vertical"===u&&c()}null===(t=n[i%a].ref.current)||void 0===t||t.focus()});return(0,p.jsx)(z,{scope:r,disabled:o,direction:a,orientation:u,children:(0,p.jsx)(P.Slot,{scope:r,children:(0,p.jsx)(s.sG.div,{...c,"data-orientation":u,ref:d,onKeyDown:o?void 0:y})})})}),H="AccordionItem",[K,W]=D(H),q=n.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...o}=e,a=G(H,r),i=B(H,r),l=M(r),u=(0,d.B)(),s=n&&i.value.includes(n)||!1,c=a.disabled||e.disabled;return(0,p.jsx)(K,{scope:r,open:s,disabled:c,triggerId:u,children:(0,p.jsx)(b,{"data-orientation":a.orientation,"data-state":et(s),...l,...o,ref:t,disabled:c,open:s,onOpenChange:e=>{e?i.onItemOpen(n):i.onItemClose(n)}})})});q.displayName=H;var X="AccordionHeader",Z=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,o=G(A,r),a=W(X,r);return(0,p.jsx)(s.sG.h3,{"data-orientation":o.orientation,"data-state":et(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});Z.displayName=X;var Y="AccordionTrigger",J=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,o=G(A,r),a=W(Y,r),i=N(Y,r),l=M(r);return(0,p.jsx)(P.ItemSlot,{scope:r,children:(0,p.jsx)(x,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...n,ref:t})})});J.displayName=Y;var Q="AccordionContent",ee=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,o=G(A,r),a=W(Q,r),i=M(r);return(0,p.jsx)(C,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var er=F,en=q,eo=Z,ea=J,ei=ee},27441:(e,t,r)=>{"use strict";r.d(t,{UC:()=>S,VY:()=>D,ZD:()=>k,ZL:()=>j,bL:()=>O,hE:()=>R,hJ:()=>A,l9:()=>E,rc:()=>P});var n=r(38392),o=r(46199),a=r(89825),i=r(61207),l=r(47732),u=r(73679),s=r(83038);let[c,f]=(0,a.A)("AlertDialog",[l.Hs]),d=(0,l.Hs)(),p=(0,o.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,i=d(r);return(0,o.createElement)(l.l9,(0,n.A)({},i,a,{ref:t}))}),v=(0,o.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,i=d(r);return(0,o.createElement)(l.hJ,(0,n.A)({},i,a,{ref:t}))}),h="AlertDialogContent",[y,m]=c(h),g=(0,o.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,children:a,...c}=e,f=d(r),p=(0,o.useRef)(null),v=(0,i.s)(t,p),m=(0,o.useRef)(null);return(0,o.createElement)(l.G$,{contentName:h,titleName:b,docsSlug:"alert-dialog"},(0,o.createElement)(y,{scope:r,cancelRef:m},(0,o.createElement)(l.UC,(0,n.A)({role:"alertdialog"},f,c,{ref:v,onOpenAutoFocus:(0,u.m)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),(0,o.createElement)(s.xV,null,a),!1)))}),b="AlertDialogTitle",w=(0,o.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,i=d(r);return(0,o.createElement)(l.hE,(0,n.A)({},i,a,{ref:t}))}),x=(0,o.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,i=d(r);return(0,o.createElement)(l.VY,(0,n.A)({},i,a,{ref:t}))}),_=(0,o.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,i=d(r);return(0,o.createElement)(l.bm,(0,n.A)({},i,a,{ref:t}))}),C=(0,o.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,{cancelRef:u}=m("AlertDialogCancel",r),s=d(r),c=(0,i.s)(t,u);return(0,o.createElement)(l.bm,(0,n.A)({},s,a,{ref:c}))}),O=e=>{let{__scopeAlertDialog:t,...r}=e,a=d(t);return(0,o.createElement)(l.bL,(0,n.A)({},a,r,{modal:!0}))},E=p,j=e=>{let{__scopeAlertDialog:t,...r}=e,a=d(t);return(0,o.createElement)(l.ZL,(0,n.A)({},a,r))},A=v,S=g,P=_,k=C,R=w,D=x},65625:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(38392),o=r(46199),a=r(70008);let i=(0,o.forwardRef)((e,t)=>{let{ratio:r=1,style:i,...l}=e;return(0,o.createElement)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/r}%`},"data-radix-aspect-ratio-wrapper":""},(0,o.createElement)(a.sG.div,(0,n.A)({},l,{ref:t,style:{...i,position:"absolute",top:0,right:0,bottom:0,left:0}})))})},99491:(e,t,r)=>{"use strict";r.d(t,{C1:()=>E,bL:()=>O});var n=r(46199),o=r(65299),a=r(93717),i=r(25067),l=r(36391),u=r(89467),s=r(2587),c=r(47419),f=r(27443),d=r(75295),p="Checkbox",[v,h]=(0,a.A)(p),[y,m]=v(p),g=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:a,checked:u,defaultChecked:s,required:c,disabled:p,value:v="on",onCheckedChange:h,...m}=e,[g,b]=n.useState(null),w=(0,o.s)(t,e=>b(e)),O=n.useRef(!1),E=!g||!!g.closest("form"),[j=!1,A]=(0,l.i)({prop:u,defaultProp:s,onChange:h}),S=n.useRef(j);return n.useEffect(()=>{let e=null==g?void 0:g.form;if(e){let t=()=>A(S.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[g,A]),(0,d.jsxs)(y,{scope:r,state:j,disabled:p,children:[(0,d.jsx)(f.sG.button,{type:"button",role:"checkbox","aria-checked":_(j)?"mixed":j,"aria-required":c,"data-state":C(j),"data-disabled":p?"":void 0,disabled:p,value:v,...m,ref:w,onKeyDown:(0,i.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.m)(e.onClick,e=>{A(e=>!!_(e)||!e),E&&(O.current=e.isPropagationStopped(),O.current||e.stopPropagation())})}),E&&(0,d.jsx)(x,{control:g,bubbles:!O.current,name:a,value:v,checked:j,required:c,disabled:p,style:{transform:"translateX(-100%)"}})]})});g.displayName=p;var b="CheckboxIndicator",w=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...o}=e,a=m(b,r);return(0,d.jsx)(c.C,{present:n||_(a.state)||!0===a.state,children:(0,d.jsx)(f.sG.span,{"data-state":C(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});w.displayName=b;var x=e=>{let{control:t,checked:r,bubbles:o=!0,...a}=e,i=n.useRef(null),l=(0,u.Z)(r),c=(0,s.X)(t);return n.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&t){let n=new Event("click",{bubbles:o});e.indeterminate=_(r),t.call(e,!_(r)&&r),e.dispatchEvent(n)}},[l,r,o]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:!_(r)&&r,...a,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function _(e){return"indeterminate"===e}function C(e){return _(e)?"indeterminate":e?"checked":"unchecked"}var O=g,E=w},15070:(e,t,r)=>{"use strict";r.d(t,{Ke:()=>x,R6:()=>b,bL:()=>O});var n=r(99668),o=r(46199),a=r(73679),i=r(89825),l=r(96219),u=r(27163),s=r(61207),c=r(70008),f=r(36158),d=r(40743);let p="Collapsible",[v,h]=(0,i.A)(p),[y,m]=v(p),g=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:r,open:a,defaultOpen:i,disabled:u,onOpenChange:s,...f}=e,[p=!1,v]=(0,l.i)({prop:a,defaultProp:i,onChange:s});return(0,o.createElement)(y,{scope:r,disabled:u,contentId:(0,d.B)(),open:p,onOpenToggle:(0,o.useCallback)(()=>v(e=>!e),[v])},(0,o.createElement)(c.sG.div,(0,n.A)({"data-state":C(p),"data-disabled":u?"":void 0},f,{ref:t})))}),b=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:r,...i}=e,l=m("CollapsibleTrigger",r);return(0,o.createElement)(c.sG.button,(0,n.A)({type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":C(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled},i,{ref:t,onClick:(0,a.m)(e.onClick,l.onOpenToggle)}))}),w="CollapsibleContent",x=(0,o.forwardRef)((e,t)=>{let{forceMount:r,...a}=e,i=m(w,e.__scopeCollapsible);return(0,o.createElement)(f.C,{present:r||i.open},({present:e})=>(0,o.createElement)(_,(0,n.A)({},a,{ref:t,present:e})))}),_=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:r,present:a,children:i,...l}=e,f=m(w,r),[d,p]=(0,o.useState)(a),v=(0,o.useRef)(null),h=(0,s.s)(t,v),y=(0,o.useRef)(0),g=y.current,b=(0,o.useRef)(0),x=b.current,_=f.open||d,O=(0,o.useRef)(_),E=(0,o.useRef)();return(0,o.useEffect)(()=>{let e=requestAnimationFrame(()=>O.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.N)(()=>{let e=v.current;if(e){E.current=E.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();y.current=t.height,b.current=t.width,O.current||(e.style.transitionDuration=E.current.transitionDuration,e.style.animationName=E.current.animationName),p(a)}},[f.open,a]),(0,o.createElement)(c.sG.div,(0,n.A)({"data-state":C(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!_},l,{ref:h,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style}}),_&&i)});function C(e){return e?"open":"closed"}let O=g},4087:(e,t,r)=>{"use strict";r.d(t,{H_:()=>e4,UC:()=>e2,YJ:()=>e9,q7:()=>e5,VF:()=>e8,JU:()=>e3,ZL:()=>e1,z6:()=>e6,hN:()=>e7,bL:()=>eQ,wv:()=>te,Pb:()=>tt,G5:()=>tn,ZP:()=>tr,l9:()=>e0});var n=r(46199),o=r(25067),a=r(65299),i=r(93717),l=r(36391),u=r(27443),s=r(21419),c=r(79205),f=r(2048),d=r(49435),p=r(80122),v=r(48915),h=r(97082),y=r(60781),m=r(47419),g=r(89909),b=r(1943),w=r(3319),x=r(13849),_=r(71475),C=r(75295),O=["Enter"," "],E=["ArrowUp","PageDown","End"],j=["ArrowDown","PageUp","Home",...E],A={ltr:[...O,"ArrowRight"],rtl:[...O,"ArrowLeft"]},S={ltr:["ArrowLeft"],rtl:["ArrowRight"]},P="Menu",[k,R,D]=(0,s.N)(P),[T,M]=(0,i.A)(P,[D,h.Bk,g.RG]),F=(0,h.Bk)(),L=(0,g.RG)(),[B,I]=T(P),[N,V]=T(P),U=e=>{let{__scopeMenu:t,open:r=!1,children:o,dir:a,onOpenChange:i,modal:l=!0}=e,u=F(t),[s,f]=n.useState(null),d=n.useRef(!1),p=(0,w.c)(i),v=(0,c.jH)(a);return n.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,C.jsx)(h.bL,{...u,children:(0,C.jsx)(B,{scope:t,open:r,onOpenChange:p,content:s,onContentChange:f,children:(0,C.jsx)(N,{scope:t,onClose:n.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:v,modal:l,children:o})})})};U.displayName=P;var z=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=F(r);return(0,C.jsx)(h.Mz,{...o,...n,ref:t})});z.displayName="MenuAnchor";var G="MenuPortal",[$,H]=T(G,{forceMount:void 0}),K=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=I(G,t);return(0,C.jsx)($,{scope:t,forceMount:r,children:(0,C.jsx)(m.C,{present:r||a.open,children:(0,C.jsx)(y.Z,{asChild:!0,container:o,children:n})})})};K.displayName=G;var W="MenuContent",[q,X]=T(W),Z=n.forwardRef((e,t)=>{let r=H(W,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=I(W,e.__scopeMenu),i=V(W,e.__scopeMenu);return(0,C.jsx)(k.Provider,{scope:e.__scopeMenu,children:(0,C.jsx)(m.C,{present:n||a.open,children:(0,C.jsx)(k.Slot,{scope:e.__scopeMenu,children:i.modal?(0,C.jsx)(Y,{...o,ref:t}):(0,C.jsx)(J,{...o,ref:t})})})})}),Y=n.forwardRef((e,t)=>{let r=I(W,e.__scopeMenu),i=n.useRef(null),l=(0,a.s)(t,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,x.Eq)(e)},[]),(0,C.jsx)(Q,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),J=n.forwardRef((e,t)=>{let r=I(W,e.__scopeMenu);return(0,C.jsx)(Q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Q=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:i=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:v,onEscapeKeyDown:y,onPointerDownOutside:m,onFocusOutside:w,onInteractOutside:x,onDismiss:O,disableOutsideScroll:A,...S}=e,P=I(W,r),k=V(W,r),D=F(r),T=L(r),M=R(r),[B,N]=n.useState(null),U=n.useRef(null),z=(0,a.s)(t,U,P.onContentChange),G=n.useRef(0),$=n.useRef(""),H=n.useRef(0),K=n.useRef(null),X=n.useRef("right"),Z=n.useRef(0),Y=A?_.A:n.Fragment,J=A?{as:b.DX,allowPinchZoom:!0}:void 0,Q=e=>{var t,r;let n=$.current+e,o=M().filter(e=>!e.disabled),a=document.activeElement,i=null===(t=o.find(e=>e.ref.current===a))||void 0===t?void 0:t.textValue,l=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(a=a.filter(e=>e!==r));let i=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==r?i:void 0}(o.map(e=>e.textValue),n,i),u=null===(r=o.find(e=>e.textValue===l))||void 0===r?void 0:r.ref.current;!function e(t){$.current=t,window.clearTimeout(G.current),""!==t&&(G.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())};n.useEffect(()=>()=>window.clearTimeout(G.current),[]),(0,d.Oh)();let ee=n.useCallback(e=>{var t,r;return X.current===(null===(t=K.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;en!=s>n&&r<(u-i)*(n-l)/(s-l)+i&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(r=K.current)||void 0===r?void 0:r.area)},[]);return(0,C.jsx)(q,{scope:r,searchRef:$,onItemEnter:n.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:n.useCallback(e=>{var t;ee(e)||(null===(t=U.current)||void 0===t||t.focus(),N(null))},[ee]),onTriggerLeave:n.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:H,onPointerGraceIntentChange:n.useCallback(e=>{K.current=e},[]),children:(0,C.jsx)(Y,{...J,children:(0,C.jsx)(p.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.m)(u,e=>{var t;e.preventDefault(),null===(t=U.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,C.jsx)(f.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:y,onPointerDownOutside:m,onFocusOutside:w,onInteractOutside:x,onDismiss:O,children:(0,C.jsx)(g.bL,{asChild:!0,...T,dir:k.dir,orientation:"vertical",loop:i,currentTabStopId:B,onCurrentTabStopIdChange:N,onEntryFocus:(0,o.m)(v,e=>{k.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,C.jsx)(h.UC,{role:"menu","aria-orientation":"vertical","data-state":eA(P.open),"data-radix-menu-content":"",dir:k.dir,...D,...S,ref:z,style:{outline:"none",...S.style},onKeyDown:(0,o.m)(S.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&Q(e.key));let o=U.current;if(e.target!==o||!j.includes(e.key))return;e.preventDefault();let a=M().filter(e=>!e.disabled).map(e=>e.ref.current);E.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,o.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(G.current),$.current="")}),onPointerMove:(0,o.m)(e.onPointerMove,ek(e=>{let t=e.target,r=Z.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>Z.current?"right":"left";X.current=t,Z.current=e.clientX}}))})})})})})})});Z.displayName=W;var ee=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,C.jsx)(u.sG.div,{role:"group",...n,ref:t})});ee.displayName="MenuGroup";var et=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,C.jsx)(u.sG.div,{...n,ref:t})});et.displayName="MenuLabel";var er="MenuItem",en="menu.itemSelect",eo=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:i,...l}=e,s=n.useRef(null),c=V(er,e.__scopeMenu),f=X(er,e.__scopeMenu),d=(0,a.s)(t,s),p=n.useRef(!1);return(0,C.jsx)(ea,{...l,ref:d,disabled:r,onClick:(0,o.m)(e.onClick,()=>{let e=s.current;if(!r&&e){let t=new CustomEvent(en,{bubbles:!0,cancelable:!0});e.addEventListener(en,e=>null==i?void 0:i(e),{once:!0}),(0,u.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),p.current=!0},onPointerUp:(0,o.m)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;!r&&(!t||" "!==e.key)&&O.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eo.displayName=er;var ea=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:i=!1,textValue:l,...s}=e,c=X(er,r),f=L(r),d=n.useRef(null),p=(0,a.s)(t,d),[v,h]=n.useState(!1),[y,m]=n.useState("");return n.useEffect(()=>{let e=d.current;if(e){var t;m((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[s.children]),(0,C.jsx)(k.ItemSlot,{scope:r,disabled:i,textValue:null!=l?l:y,children:(0,C.jsx)(g.q7,{asChild:!0,...f,focusable:!i,children:(0,C.jsx)(u.sG.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:p,onPointerMove:(0,o.m)(e.onPointerMove,ek(e=>{i?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.m)(e.onPointerLeave,ek(e=>c.onItemLeave(e))),onFocus:(0,o.m)(e.onFocus,()=>h(!0)),onBlur:(0,o.m)(e.onBlur,()=>h(!1))})})})}),ei=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...a}=e;return(0,C.jsx)(ev,{scope:e.__scopeMenu,checked:r,children:(0,C.jsx)(eo,{role:"menuitemcheckbox","aria-checked":eS(r)?"mixed":r,...a,ref:t,"data-state":eP(r),onSelect:(0,o.m)(a.onSelect,()=>null==n?void 0:n(!!eS(r)||!r),{checkForDefaultPrevented:!1})})})});ei.displayName="MenuCheckboxItem";var el="MenuRadioGroup",[eu,es]=T(el,{value:void 0,onValueChange:()=>{}}),ec=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,a=(0,w.c)(n);return(0,C.jsx)(eu,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,C.jsx)(ee,{...o,ref:t})})});ec.displayName=el;var ef="MenuRadioItem",ed=n.forwardRef((e,t)=>{let{value:r,...n}=e,a=es(ef,e.__scopeMenu),i=r===a.value;return(0,C.jsx)(ev,{scope:e.__scopeMenu,checked:i,children:(0,C.jsx)(eo,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":eP(i),onSelect:(0,o.m)(n.onSelect,()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,r)},{checkForDefaultPrevented:!1})})})});ed.displayName=ef;var ep="MenuItemIndicator",[ev,eh]=T(ep,{checked:!1}),ey=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,a=eh(ep,r);return(0,C.jsx)(m.C,{present:n||eS(a.checked)||!0===a.checked,children:(0,C.jsx)(u.sG.span,{...o,ref:t,"data-state":eP(a.checked)})})});ey.displayName=ep;var em=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,C.jsx)(u.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});em.displayName="MenuSeparator";var eg=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=F(r);return(0,C.jsx)(h.i3,{...o,...n,ref:t})});eg.displayName="MenuArrow";var eb="MenuSub",[ew,ex]=T(eb),e_=e=>{let{__scopeMenu:t,children:r,open:o=!1,onOpenChange:a}=e,i=I(eb,t),l=F(t),[u,s]=n.useState(null),[c,f]=n.useState(null),d=(0,w.c)(a);return n.useEffect(()=>(!1===i.open&&d(!1),()=>d(!1)),[i.open,d]),(0,C.jsx)(h.bL,{...l,children:(0,C.jsx)(B,{scope:t,open:o,onOpenChange:d,content:c,onContentChange:f,children:(0,C.jsx)(ew,{scope:t,contentId:(0,v.B)(),triggerId:(0,v.B)(),trigger:u,onTriggerChange:s,children:r})})})};e_.displayName=eb;var eC="MenuSubTrigger",eO=n.forwardRef((e,t)=>{let r=I(eC,e.__scopeMenu),i=V(eC,e.__scopeMenu),l=ex(eC,e.__scopeMenu),u=X(eC,e.__scopeMenu),s=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=u,d={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),f(null)}},[c,f]),(0,C.jsx)(z,{asChild:!0,...d,children:(0,C.jsx)(ea,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":eA(r.open),...e,ref:(0,a.t)(t,l.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,o.m)(e.onPointerMove,ek(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.m)(e.onPointerLeave,ek(e=>{var t,n;p();let o=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,a="right"===t,i=o[a?"left":"right"],l=o[a?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:i,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:i,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.m)(e.onKeyDown,t=>{let n=""!==u.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&A[i.dir].includes(t.key)){var o;r.onOpenChange(!0),null===(o=r.content)||void 0===o||o.focus(),t.preventDefault()}})})})});eO.displayName=eC;var eE="MenuSubContent",ej=n.forwardRef((e,t)=>{let r=H(W,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,u=I(W,e.__scopeMenu),s=V(W,e.__scopeMenu),c=ex(eE,e.__scopeMenu),f=n.useRef(null),d=(0,a.s)(t,f);return(0,C.jsx)(k.Provider,{scope:e.__scopeMenu,children:(0,C.jsx)(m.C,{present:i||u.open,children:(0,C.jsx)(k.Slot,{scope:e.__scopeMenu,children:(0,C.jsx)(Q,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:d,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null===(t=f.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.m)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=S[s.dir].includes(e.key);if(t&&r){var n;u.onOpenChange(!1),null===(n=c.trigger)||void 0===n||n.focus(),e.preventDefault()}})})})})})});function eA(e){return e?"open":"closed"}function eS(e){return"indeterminate"===e}function eP(e){return eS(e)?"indeterminate":e?"checked":"unchecked"}function ek(e){return t=>"mouse"===t.pointerType?e(t):void 0}ej.displayName=eE;var eR="DropdownMenu",[eD,eT]=(0,i.A)(eR,[M]),eM=M(),[eF,eL]=eD(eR),eB=e=>{let{__scopeDropdownMenu:t,children:r,dir:o,open:a,defaultOpen:i,onOpenChange:u,modal:s=!0}=e,c=eM(t),f=n.useRef(null),[d=!1,p]=(0,l.i)({prop:a,defaultProp:i,onChange:u});return(0,C.jsx)(eF,{scope:t,triggerId:(0,v.B)(),triggerRef:f,contentId:(0,v.B)(),open:d,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,C.jsx)(U,{...c,open:d,onOpenChange:p,dir:o,modal:s,children:r})})};eB.displayName=eR;var eI="DropdownMenuTrigger",eN=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,l=eL(eI,r),s=eM(r);return(0,C.jsx)(z,{asChild:!0,...s,children:(0,C.jsx)(u.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...i,ref:(0,a.t)(t,l.triggerRef),onPointerDown:(0,o.m)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eN.displayName=eI;var eV=e=>{let{__scopeDropdownMenu:t,...r}=e,n=eM(t);return(0,C.jsx)(K,{...n,...r})};eV.displayName="DropdownMenuPortal";var eU="DropdownMenuContent",ez=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,i=eL(eU,r),l=eM(r),u=n.useRef(!1);return(0,C.jsx)(Z,{id:i.contentId,"aria-labelledby":i.triggerId,...l,...a,ref:t,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!i.modal||n)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ez.displayName=eU;var eG=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eM(r);return(0,C.jsx)(ee,{...o,...n,ref:t})});eG.displayName="DropdownMenuGroup";var e$=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eM(r);return(0,C.jsx)(et,{...o,...n,ref:t})});e$.displayName="DropdownMenuLabel";var eH=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eM(r);return(0,C.jsx)(eo,{...o,...n,ref:t})});eH.displayName="DropdownMenuItem";var eK=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eM(r);return(0,C.jsx)(ei,{...o,...n,ref:t})});eK.displayName="DropdownMenuCheckboxItem";var eW=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eM(r);return(0,C.jsx)(ec,{...o,...n,ref:t})});eW.displayName="DropdownMenuRadioGroup";var eq=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eM(r);return(0,C.jsx)(ed,{...o,...n,ref:t})});eq.displayName="DropdownMenuRadioItem";var eX=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eM(r);return(0,C.jsx)(ey,{...o,...n,ref:t})});eX.displayName="DropdownMenuItemIndicator";var eZ=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eM(r);return(0,C.jsx)(em,{...o,...n,ref:t})});eZ.displayName="DropdownMenuSeparator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eM(r);return(0,C.jsx)(eg,{...o,...n,ref:t})}).displayName="DropdownMenuArrow";var eY=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eM(r);return(0,C.jsx)(eO,{...o,...n,ref:t})});eY.displayName="DropdownMenuSubTrigger";var eJ=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eM(r);return(0,C.jsx)(ej,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eJ.displayName="DropdownMenuSubContent";var eQ=eB,e0=eN,e1=eV,e2=ez,e9=eG,e3=e$,e5=eH,e4=eK,e6=eW,e7=eq,e8=eX,te=eZ,tt=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,i=eM(t),[u=!1,s]=(0,l.i)({prop:n,defaultProp:a,onChange:o});return(0,C.jsx)(e_,{...i,open:u,onOpenChange:s,children:r})},tr=eY,tn=eJ},41848:(e,t,r)=>{"use strict";r.d(t,{G5:()=>eN,H_:()=>eR,JU:()=>eP,Mz:()=>eE,Pb:()=>eB,UC:()=>eA,UE:()=>T,VF:()=>eM,YJ:()=>eS,ZL:()=>ej,ZP:()=>eI,bL:()=>eO,hN:()=>eT,i3:()=>eL,q7:()=>ek,wv:()=>eF,z6:()=>eD});var n=r(91079),o=r(46199),a=r(73679),i=r(11978),l=r(61207),u=r(89825),s=r(65217),c=r(21181),f=r(25631),d=r(91220),p=r(40743),v=r(65617),h=r(60848),y=r(36158),m=r(70008),g=r(77828),b=r(83038),w=r(77235),x=r(13849),_=r(81877);let C=["Enter"," "],O=["ArrowUp","PageDown","End"],E=["ArrowDown","PageUp","Home",...O],j={ltr:[...C,"ArrowRight"],rtl:[...C,"ArrowLeft"]},A={ltr:["ArrowLeft"],rtl:["ArrowRight"]},S="Menu",[P,k,R]=(0,i.N)(S),[D,T]=(0,u.A)(S,[R,v.Bk,g.RG]),M=(0,v.Bk)(),F=(0,g.RG)(),[L,B]=D(S),[I,N]=D(S),V=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,...a}=e,i=M(r);return(0,o.createElement)(v.Mz,(0,n.A)({},i,a,{ref:t}))}),U="MenuPortal",[z,G]=D(U,{forceMount:void 0}),$="MenuContent",[H,K]=D($),W=(0,o.forwardRef)((e,t)=>{let r=G($,e.__scopeMenu),{forceMount:a=r.forceMount,...i}=e,l=B($,e.__scopeMenu),u=N($,e.__scopeMenu);return(0,o.createElement)(P.Provider,{scope:e.__scopeMenu},(0,o.createElement)(y.C,{present:a||l.open},(0,o.createElement)(P.Slot,{scope:e.__scopeMenu},u.modal?(0,o.createElement)(q,(0,n.A)({},i,{ref:t})):(0,o.createElement)(X,(0,n.A)({},i,{ref:t})))))}),q=(0,o.forwardRef)((e,t)=>{let r=B($,e.__scopeMenu),i=(0,o.useRef)(null),u=(0,l.s)(t,i);return(0,o.useEffect)(()=>{let e=i.current;if(e)return(0,x.Eq)(e)},[]),(0,o.createElement)(Z,(0,n.A)({},e,{ref:u,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),X=(0,o.forwardRef)((e,t)=>{let r=B($,e.__scopeMenu);return(0,o.createElement)(Z,(0,n.A)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),Z=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,loop:i=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:p,disableOutsidePointerEvents:h,onEntryFocus:y,onEscapeKeyDown:m,onPointerDownOutside:w,onFocusOutside:x,onInteractOutside:C,onDismiss:j,disableOutsideScroll:A,...S}=e,P=B($,r),R=N($,r),D=M(r),T=F(r),L=k(r),[I,V]=(0,o.useState)(null),U=(0,o.useRef)(null),z=(0,l.s)(t,U,P.onContentChange),G=(0,o.useRef)(0),K=(0,o.useRef)(""),W=(0,o.useRef)(0),q=(0,o.useRef)(null),X=(0,o.useRef)("right"),Z=(0,o.useRef)(0),Y=A?_.A:o.Fragment,J=A?{as:b.DX,allowPinchZoom:!0}:void 0,Q=e=>{var t,r;let n=K.current+e,o=L().filter(e=>!e.disabled),a=document.activeElement,i=null===(t=o.find(e=>e.ref.current===a))||void 0===t?void 0:t.textValue,l=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(a=a.filter(e=>e!==r));let i=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==r?i:void 0}(o.map(e=>e.textValue),n,i),u=null===(r=o.find(e=>e.textValue===l))||void 0===r?void 0:r.ref.current;!function e(t){K.current=t,window.clearTimeout(G.current),""!==t&&(G.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())};(0,o.useEffect)(()=>()=>window.clearTimeout(G.current),[]),(0,f.Oh)();let ee=(0,o.useCallback)(e=>{var t,r;return X.current===(null===(t=q.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;en!=s>n&&r<(u-i)*(n-l)/(s-l)+i&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(r=q.current)||void 0===r?void 0:r.area)},[]);return(0,o.createElement)(H,{scope:r,searchRef:K,onItemEnter:(0,o.useCallback)(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:(0,o.useCallback)(e=>{var t;ee(e)||(null===(t=U.current)||void 0===t||t.focus(),V(null))},[ee]),onTriggerLeave:(0,o.useCallback)(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:W,onPointerGraceIntentChange:(0,o.useCallback)(e=>{q.current=e},[])},(0,o.createElement)(Y,J,(0,o.createElement)(d.n,{asChild:!0,trapped:u,onMountAutoFocus:(0,a.m)(s,e=>{var t;e.preventDefault(),null===(t=U.current)||void 0===t||t.focus()}),onUnmountAutoFocus:p},(0,o.createElement)(c.qW,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:m,onPointerDownOutside:w,onFocusOutside:x,onInteractOutside:C,onDismiss:j},(0,o.createElement)(g.bL,(0,n.A)({asChild:!0},T,{dir:R.dir,orientation:"vertical",loop:i,currentTabStopId:I,onCurrentTabStopIdChange:V,onEntryFocus:(0,a.m)(y,e=>{R.isUsingKeyboardRef.current||e.preventDefault()})}),(0,o.createElement)(v.UC,(0,n.A)({role:"menu","aria-orientation":"vertical","data-state":ew(P.open),"data-radix-menu-content":"",dir:R.dir},D,S,{ref:z,style:{outline:"none",...S.style},onKeyDown:(0,a.m)(S.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&Q(e.key));let o=U.current;if(e.target!==o||!E.includes(e.key))return;e.preventDefault();let a=L().filter(e=>!e.disabled).map(e=>e.ref.current);O.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,a.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(G.current),K.current="")}),onPointerMove:(0,a.m)(e.onPointerMove,eC(e=>{let t=e.target,r=Z.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>Z.current?"right":"left";X.current=t,Z.current=e.clientX}}))})))))))}),Y=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,...a}=e;return(0,o.createElement)(m.sG.div,(0,n.A)({role:"group"},a,{ref:t}))}),J=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,...a}=e;return(0,o.createElement)(m.sG.div,(0,n.A)({},a,{ref:t}))}),Q="MenuItem",ee="menu.itemSelect",et=(0,o.forwardRef)((e,t)=>{let{disabled:r=!1,onSelect:i,...u}=e,s=(0,o.useRef)(null),c=N(Q,e.__scopeMenu),f=K(Q,e.__scopeMenu),d=(0,l.s)(t,s),p=(0,o.useRef)(!1);return(0,o.createElement)(er,(0,n.A)({},u,{ref:d,disabled:r,onClick:(0,a.m)(e.onClick,()=>{let e=s.current;if(!r&&e){let t=new CustomEvent(ee,{bubbles:!0,cancelable:!0});e.addEventListener(ee,e=>null==i?void 0:i(e),{once:!0}),(0,m.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),p.current=!0},onPointerUp:(0,a.m)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;!r&&(!t||" "!==e.key)&&C.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),er=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,disabled:i=!1,textValue:u,...s}=e,c=K(Q,r),f=F(r),d=(0,o.useRef)(null),p=(0,l.s)(t,d),[v,h]=(0,o.useState)(!1),[y,b]=(0,o.useState)("");return(0,o.useEffect)(()=>{let e=d.current;if(e){var t;b((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[s.children]),(0,o.createElement)(P.ItemSlot,{scope:r,disabled:i,textValue:null!=u?u:y},(0,o.createElement)(g.q7,(0,n.A)({asChild:!0},f,{focusable:!i}),(0,o.createElement)(m.sG.div,(0,n.A)({role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0},s,{ref:p,onPointerMove:(0,a.m)(e.onPointerMove,eC(e=>{i?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())})),onPointerLeave:(0,a.m)(e.onPointerLeave,eC(e=>c.onItemLeave(e))),onFocus:(0,a.m)(e.onFocus,()=>h(!0)),onBlur:(0,a.m)(e.onBlur,()=>h(!1))}))))}),en=(0,o.forwardRef)((e,t)=>{let{checked:r=!1,onCheckedChange:i,...l}=e;return(0,o.createElement)(es,{scope:e.__scopeMenu,checked:r},(0,o.createElement)(et,(0,n.A)({role:"menuitemcheckbox","aria-checked":ex(r)?"mixed":r},l,{ref:t,"data-state":e_(r),onSelect:(0,a.m)(l.onSelect,()=>null==i?void 0:i(!!ex(r)||!r),{checkForDefaultPrevented:!1})})))}),[eo,ea]=D("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),ei=(0,o.forwardRef)((e,t)=>{let{value:r,onValueChange:a,...i}=e,l=(0,w.c)(a);return(0,o.createElement)(eo,{scope:e.__scopeMenu,value:r,onValueChange:l},(0,o.createElement)(Y,(0,n.A)({},i,{ref:t})))}),el=(0,o.forwardRef)((e,t)=>{let{value:r,...i}=e,l=ea("MenuRadioItem",e.__scopeMenu),u=r===l.value;return(0,o.createElement)(es,{scope:e.__scopeMenu,checked:u},(0,o.createElement)(et,(0,n.A)({role:"menuitemradio","aria-checked":u},i,{ref:t,"data-state":e_(u),onSelect:(0,a.m)(i.onSelect,()=>{var e;return null===(e=l.onValueChange)||void 0===e?void 0:e.call(l,r)},{checkForDefaultPrevented:!1})})))}),eu="MenuItemIndicator",[es,ec]=D(eu,{checked:!1}),ef=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,forceMount:a,...i}=e,l=ec(eu,r);return(0,o.createElement)(y.C,{present:a||ex(l.checked)||!0===l.checked},(0,o.createElement)(m.sG.span,(0,n.A)({},i,{ref:t,"data-state":e_(l.checked)})))}),ed=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,...a}=e;return(0,o.createElement)(m.sG.div,(0,n.A)({role:"separator","aria-orientation":"horizontal"},a,{ref:t}))}),ep=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,...a}=e,i=M(r);return(0,o.createElement)(v.i3,(0,n.A)({},i,a,{ref:t}))}),ev="MenuSub",[eh,ey]=D(ev),em="MenuSubTrigger",eg=(0,o.forwardRef)((e,t)=>{let r=B(em,e.__scopeMenu),i=N(em,e.__scopeMenu),u=ey(em,e.__scopeMenu),s=K(em,e.__scopeMenu),c=(0,o.useRef)(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:d}=s,p={__scopeMenu:e.__scopeMenu},v=(0,o.useCallback)(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return(0,o.useEffect)(()=>v,[v]),(0,o.useEffect)(()=>{let e=f.current;return()=>{window.clearTimeout(e),d(null)}},[f,d]),(0,o.createElement)(V,(0,n.A)({asChild:!0},p),(0,o.createElement)(er,(0,n.A)({id:u.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":u.contentId,"data-state":ew(r.open)},e,{ref:(0,l.t)(t,u.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,a.m)(e.onPointerMove,eC(t=>{s.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||c.current||(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),v()},100))})),onPointerLeave:(0,a.m)(e.onPointerLeave,eC(e=>{var t,n;v();let o=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,a="right"===t,i=o[a?"left":"right"],l=o[a?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:i,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:i,y:o.bottom}],side:t}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.m)(e.onKeyDown,t=>{let n=""!==s.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&j[i.dir].includes(t.key)){var o;r.onOpenChange(!0),null===(o=r.content)||void 0===o||o.focus(),t.preventDefault()}})})))}),eb=(0,o.forwardRef)((e,t)=>{let r=G($,e.__scopeMenu),{forceMount:i=r.forceMount,...u}=e,s=B($,e.__scopeMenu),c=N($,e.__scopeMenu),f=ey("MenuSubContent",e.__scopeMenu),d=(0,o.useRef)(null),p=(0,l.s)(t,d);return(0,o.createElement)(P.Provider,{scope:e.__scopeMenu},(0,o.createElement)(y.C,{present:i||s.open},(0,o.createElement)(P.Slot,{scope:e.__scopeMenu},(0,o.createElement)(Z,(0,n.A)({id:f.contentId,"aria-labelledby":f.triggerId},u,{ref:p,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{e.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=A[c.dir].includes(e.key);if(t&&r){var n;s.onOpenChange(!1),null===(n=f.trigger)||void 0===n||n.focus(),e.preventDefault()}})})))))});function ew(e){return e?"open":"closed"}function ex(e){return"indeterminate"===e}function e_(e){return ex(e)?"indeterminate":e?"checked":"unchecked"}function eC(e){return t=>"mouse"===t.pointerType?e(t):void 0}let eO=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:i,modal:l=!0}=e,u=M(t),[c,f]=(0,o.useState)(null),d=(0,o.useRef)(!1),p=(0,w.c)(i),h=(0,s.jH)(a);return(0,o.useEffect)(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,o.createElement)(v.bL,u,(0,o.createElement)(L,{scope:t,open:r,onOpenChange:p,content:c,onContentChange:f},(0,o.createElement)(I,{scope:t,onClose:(0,o.useCallback)(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:h,modal:l},n)))},eE=V,ej=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:a}=e,i=B(U,t);return(0,o.createElement)(z,{scope:t,forceMount:r},(0,o.createElement)(y.C,{present:r||i.open},(0,o.createElement)(h.Z,{asChild:!0,container:a},n)))},eA=W,eS=Y,eP=J,ek=et,eR=en,eD=ei,eT=el,eM=ef,eF=ed,eL=ep,eB=e=>{let{__scopeMenu:t,children:r,open:n=!1,onOpenChange:a}=e,i=B(ev,t),l=M(t),[u,s]=(0,o.useState)(null),[c,f]=(0,o.useState)(null),d=(0,w.c)(a);return(0,o.useEffect)(()=>(!1===i.open&&d(!1),()=>d(!1)),[i.open,d]),(0,o.createElement)(v.bL,l,(0,o.createElement)(L,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:f},(0,o.createElement)(eh,{scope:t,contentId:(0,p.B)(),triggerId:(0,p.B)(),trigger:u,onTriggerChange:s},r)))},eI=eg,eN=eb},64636:(e,t,r)=>{"use strict";r.d(t,{G5:()=>eo,H_:()=>Y,JU:()=>X,Pb:()=>er,UC:()=>W,VF:()=>ee,W1:()=>$,YJ:()=>q,ZL:()=>K,ZP:()=>en,bL:()=>G,hN:()=>Q,l9:()=>H,q7:()=>Z,wv:()=>et,z6:()=>J});var n=r(38392),o=r(46199),a=r(11978),i=r(65217),l=r(73679),u=r(61207),s=r(89825),c=r(40743),f=r(41848),d=r(77828),p=r(70008),v=r(96219);let h="Menubar",[y,m,g]=(0,a.N)(h),[b,w]=(0,s.A)(h,[g,d.RG]),x=(0,f.UE)(),_=(0,d.RG)(),[C,O]=b(h),E=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,value:a,onValueChange:l,defaultValue:u,loop:s=!0,dir:c,...f}=e,h=(0,i.jH)(c),m=_(r),[g="",b]=(0,v.i)({prop:a,onChange:l,defaultProp:u}),[w,x]=(0,o.useState)(null);return(0,o.createElement)(C,{scope:r,value:g,onMenuOpen:(0,o.useCallback)(e=>{b(e),x(e)},[b]),onMenuClose:(0,o.useCallback)(()=>b(""),[b]),onMenuToggle:(0,o.useCallback)(e=>{b(t=>t?"":e),x(e)},[b]),dir:h,loop:s},(0,o.createElement)(y.Provider,{scope:r},(0,o.createElement)(y.Slot,{scope:r},(0,o.createElement)(d.bL,(0,n.A)({asChild:!0},m,{orientation:"horizontal",loop:s,dir:h,currentTabStopId:w,onCurrentTabStopIdChange:x}),(0,o.createElement)(p.sG.div,(0,n.A)({role:"menubar"},f,{ref:t}))))))}),j="MenubarMenu",[A,S]=b(j),P="MenubarTrigger",k=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,disabled:a=!1,...i}=e,s=_(r),c=x(r),v=O(P,r),h=S(P,r),m=(0,o.useRef)(null),g=(0,u.s)(t,m,h.triggerRef),[b,w]=(0,o.useState)(!1),C=v.value===h.value;return(0,o.createElement)(y.ItemSlot,{scope:r,value:h.value,disabled:a},(0,o.createElement)(d.q7,(0,n.A)({asChild:!0},s,{focusable:!a,tabStopId:h.value}),(0,o.createElement)(f.Mz,(0,n.A)({asChild:!0},c),(0,o.createElement)(p.sG.button,(0,n.A)({type:"button",role:"menuitem",id:h.triggerId,"aria-haspopup":"menu","aria-expanded":C,"aria-controls":C?h.contentId:void 0,"data-highlighted":b?"":void 0,"data-state":C?"open":"closed","data-disabled":a?"":void 0,disabled:a},i,{ref:g,onPointerDown:(0,l.m)(e.onPointerDown,e=>{a||0!==e.button||!1!==e.ctrlKey||(v.onMenuOpen(h.value),C||e.preventDefault())}),onPointerEnter:(0,l.m)(e.onPointerEnter,()=>{if(v.value&&!C){var e;v.onMenuOpen(h.value),null===(e=m.current)||void 0===e||e.focus()}}),onKeyDown:(0,l.m)(e.onKeyDown,e=>{!a&&(["Enter"," "].includes(e.key)&&v.onMenuToggle(h.value),"ArrowDown"===e.key&&v.onMenuOpen(h.value),["Enter"," ","ArrowDown"].includes(e.key)&&(h.wasKeyboardTriggerOpenRef.current=!0,e.preventDefault()))}),onFocus:(0,l.m)(e.onFocus,()=>w(!0)),onBlur:(0,l.m)(e.onBlur,()=>w(!1))})))))}),R="MenubarContent",D=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,align:a="start",...i}=e,u=x(r),s=O(R,r),c=S(R,r),d=m(r),p=(0,o.useRef)(!1);return(0,o.createElement)(f.UC,(0,n.A)({id:c.contentId,"aria-labelledby":c.triggerId,"data-radix-menubar-content":""},u,i,{ref:t,align:a,onCloseAutoFocus:(0,l.m)(e.onCloseAutoFocus,e=>{if(!s.value&&!p.current){var t;null===(t=c.triggerRef.current)||void 0===t||t.focus()}p.current=!1,e.preventDefault()}),onFocusOutside:(0,l.m)(e.onFocusOutside,e=>{let t=e.target;d().some(e=>{var r;return null===(r=e.ref.current)||void 0===r?void 0:r.contains(t)})&&e.preventDefault()}),onInteractOutside:(0,l.m)(e.onInteractOutside,()=>{p.current=!0}),onEntryFocus:e=>{c.wasKeyboardTriggerOpenRef.current||e.preventDefault()},onKeyDown:(0,l.m)(e.onKeyDown,e=>{if(["ArrowRight","ArrowLeft"].includes(e.key)){let t=e.target,r=t.hasAttribute("data-radix-menubar-subtrigger"),n=t.closest("[data-radix-menubar-content]")!==e.currentTarget,o=("rtl"===s.dir?"ArrowRight":"ArrowLeft")===e.key;if(!o&&r||n&&o)return;let a=d().filter(e=>!e.disabled).map(e=>e.value);o&&a.reverse();let i=a.indexOf(c.value),[l]=a=s.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(a,i+1):a.slice(i+1);l&&s.onMenuOpen(l)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}),T=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,...a}=e,i=x(r);return(0,o.createElement)(f.YJ,(0,n.A)({},i,a,{ref:t}))}),M=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,...a}=e,i=x(r);return(0,o.createElement)(f.JU,(0,n.A)({},i,a,{ref:t}))}),F=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,...a}=e,i=x(r);return(0,o.createElement)(f.q7,(0,n.A)({},i,a,{ref:t}))}),L=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,...a}=e,i=x(r);return(0,o.createElement)(f.H_,(0,n.A)({},i,a,{ref:t}))}),B=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,...a}=e,i=x(r);return(0,o.createElement)(f.z6,(0,n.A)({},i,a,{ref:t}))}),I=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,...a}=e,i=x(r);return(0,o.createElement)(f.hN,(0,n.A)({},i,a,{ref:t}))}),N=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,...a}=e,i=x(r);return(0,o.createElement)(f.VF,(0,n.A)({},i,a,{ref:t}))}),V=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,...a}=e,i=x(r);return(0,o.createElement)(f.wv,(0,n.A)({},i,a,{ref:t}))}),U=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,...a}=e,i=x(r);return(0,o.createElement)(f.ZP,(0,n.A)({"data-radix-menubar-subtrigger":""},i,a,{ref:t}))}),z=(0,o.forwardRef)((e,t)=>{let{__scopeMenubar:r,...a}=e,i=x(r);return(0,o.createElement)(f.G5,(0,n.A)({},i,{"data-radix-menubar-content":""},a,{ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}),G=E,$=e=>{let{__scopeMenubar:t,value:r,...a}=e,i=(0,c.B)(),l=r||i||"LEGACY_REACT_AUTO_VALUE",u=O(j,t),s=x(t),d=(0,o.useRef)(null),p=(0,o.useRef)(!1),v=u.value===l;return(0,o.useEffect)(()=>{v||(p.current=!1)},[v]),(0,o.createElement)(A,{scope:t,value:l,triggerId:(0,c.B)(),triggerRef:d,contentId:(0,c.B)(),wasKeyboardTriggerOpenRef:p},(0,o.createElement)(f.bL,(0,n.A)({},s,{open:v,onOpenChange:e=>{e||u.onMenuClose()},modal:!1,dir:u.dir},a)))},H=k,K=e=>{let{__scopeMenubar:t,...r}=e,a=x(t);return(0,o.createElement)(f.ZL,(0,n.A)({},a,r))},W=D,q=T,X=M,Z=F,Y=L,J=B,Q=I,ee=N,et=V,er=e=>{let{__scopeMenubar:t,children:r,open:a,onOpenChange:i,defaultOpen:l}=e,u=x(t),[s=!1,c]=(0,v.i)({prop:a,defaultProp:l,onChange:i});return(0,o.createElement)(f.Pb,(0,n.A)({},u,{open:s,onOpenChange:c}),r)},en=U,eo=z},71270:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>$,UC:()=>W,ZL:()=>K,bL:()=>G,bm:()=>q,l9:()=>H});var n=r(46199),o=r(25067),a=r(65299),i=r(93717),l=r(2048),u=r(49435),s=r(80122),c=r(48915),f=r(97082),d=r(60781),p=r(47419),v=r(27443),h=r(1943),y=r(36391),m=r(13849),g=r(71475),b=r(75295),w="Popover",[x,_]=(0,i.A)(w,[f.Bk]),C=(0,f.Bk)(),[O,E]=x(w),j=e=>{let{__scopePopover:t,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:l=!1}=e,u=C(t),s=n.useRef(null),[d,p]=n.useState(!1),[v=!1,h]=(0,y.i)({prop:o,defaultProp:a,onChange:i});return(0,b.jsx)(f.bL,{...u,children:(0,b.jsx)(O,{scope:t,contentId:(0,c.B)(),triggerRef:s,open:v,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:d,onCustomAnchorAdd:n.useCallback(()=>p(!0),[]),onCustomAnchorRemove:n.useCallback(()=>p(!1),[]),modal:l,children:r})})};j.displayName=w;var A="PopoverAnchor",S=n.forwardRef((e,t)=>{let{__scopePopover:r,...o}=e,a=E(A,r),i=C(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:u}=a;return n.useEffect(()=>(l(),()=>u()),[l,u]),(0,b.jsx)(f.Mz,{...i,...o,ref:t})});S.displayName=A;var P="PopoverTrigger",k=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=E(P,r),l=C(r),u=(0,a.s)(t,i.triggerRef),s=(0,b.jsx)(v.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":z(i.open),...n,ref:u,onClick:(0,o.m)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,b.jsx)(f.Mz,{asChild:!0,...l,children:s})});k.displayName=P;var R="PopoverPortal",[D,T]=x(R,{forceMount:void 0}),M=e=>{let{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=E(R,t);return(0,b.jsx)(D,{scope:t,forceMount:r,children:(0,b.jsx)(p.C,{present:r||a.open,children:(0,b.jsx)(d.Z,{asChild:!0,container:o,children:n})})})};M.displayName=R;var F="PopoverContent",L=n.forwardRef((e,t)=>{let r=T(F,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=E(F,e.__scopePopover);return(0,b.jsx)(p.C,{present:n||a.open,children:a.modal?(0,b.jsx)(B,{...o,ref:t}):(0,b.jsx)(I,{...o,ref:t})})});L.displayName=F;var B=n.forwardRef((e,t)=>{let r=E(F,e.__scopePopover),i=n.useRef(null),l=(0,a.s)(t,i),u=n.useRef(!1);return n.useEffect(()=>{let e=i.current;if(e)return(0,m.Eq)(e)},[]),(0,b.jsx)(g.A,{as:h.DX,allowPinchZoom:!0,children:(0,b.jsx)(N,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),u.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;u.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),I=n.forwardRef((e,t)=>{let r=E(F,e.__scopePopover),o=n.useRef(!1),a=n.useRef(!1);return(0,b.jsx)(N,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,i;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current||null===(i=r.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var n,i;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let l=t.target;(null===(i=r.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),N=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:v,...h}=e,y=E(F,r),m=C(r);return(0,u.Oh)(),(0,b.jsx)(s.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,b.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:v,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>y.onOpenChange(!1),children:(0,b.jsx)(f.UC,{"data-state":z(y.open),role:"dialog",id:y.contentId,...m,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),V="PopoverClose",U=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=E(V,r);return(0,b.jsx)(v.sG.button,{type:"button",...n,ref:t,onClick:(0,o.m)(e.onClick,()=>a.onOpenChange(!1))})});function z(e){return e?"open":"closed"}U.displayName=V,n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=C(r);return(0,b.jsx)(f.i3,{...o,...n,ref:t})}).displayName="PopoverArrow";var G=j,$=S,H=k,K=M,W=L,q=U},26524:(e,t,r)=>{"use strict";r.d(t,{LM:()=>q,OK:()=>X,VM:()=>C,bL:()=>W,lr:()=>M});var n=r(46199),o=r(27443),a=r(47419),i=r(93717),l=r(65299),u=r(3319),s=r(79205),c=r(20199),f=r(41777),d=r(25067),p=r(75295),v="ScrollArea",[h,y]=(0,i.A)(v),[m,g]=h(v),b=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:a="hover",dir:i,scrollHideDelay:u=600,...c}=e,[f,d]=n.useState(null),[v,h]=n.useState(null),[y,g]=n.useState(null),[b,w]=n.useState(null),[x,_]=n.useState(null),[C,O]=n.useState(0),[E,j]=n.useState(0),[A,S]=n.useState(!1),[P,k]=n.useState(!1),R=(0,l.s)(t,e=>d(e)),D=(0,s.jH)(i);return(0,p.jsx)(m,{scope:r,type:a,dir:D,scrollHideDelay:u,scrollArea:f,viewport:v,onViewportChange:h,content:y,onContentChange:g,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:A,onScrollbarXEnabledChange:S,scrollbarY:x,onScrollbarYChange:_,scrollbarYEnabled:P,onScrollbarYEnabledChange:k,onCornerWidthChange:O,onCornerHeightChange:j,children:(0,p.jsx)(o.sG.div,{dir:D,...c,ref:R,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});b.displayName=v;var w="ScrollAreaViewport",x=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:a,nonce:i,...u}=e,s=g(w,r),c=n.useRef(null),f=(0,l.s)(t,c,s.onViewportChange);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,p.jsx)(o.sG.div,{"data-radix-scroll-area-viewport":"",...u,ref:f,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,p.jsx)("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});x.displayName=w;var _="ScrollAreaScrollbar",C=n.forwardRef((e,t)=>{let{forceMount:r,...o}=e,a=g(_,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=a,u="horizontal"===e.orientation;return n.useEffect(()=>(u?i(!0):l(!0),()=>{u?i(!1):l(!1)}),[u,i,l]),"hover"===a.type?(0,p.jsx)(O,{...o,ref:t,forceMount:r}):"scroll"===a.type?(0,p.jsx)(E,{...o,ref:t,forceMount:r}):"auto"===a.type?(0,p.jsx)(j,{...o,ref:t,forceMount:r}):"always"===a.type?(0,p.jsx)(A,{...o,ref:t}):null});C.displayName=_;var O=n.forwardRef((e,t)=>{let{forceMount:r,...o}=e,i=g(_,e.__scopeScrollArea),[l,u]=n.useState(!1);return n.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),u(!0)},n=()=>{t=window.setTimeout(()=>u(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,p.jsx)(a.C,{present:r||l,children:(0,p.jsx)(j,{"data-state":l?"visible":"hidden",...o,ref:t})})}),E=n.forwardRef((e,t)=>{var r,o;let{forceMount:i,...l}=e,u=g(_,e.__scopeScrollArea),s="horizontal"===e.orientation,c=H(()=>v("SCROLL_END"),100),[f,v]=(r="hidden",o={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,t)=>{let r=o[e][t];return null!=r?r:e},r));return n.useEffect(()=>{if("idle"===f){let e=window.setTimeout(()=>v("HIDE"),u.scrollHideDelay);return()=>window.clearTimeout(e)}},[f,u.scrollHideDelay,v]),n.useEffect(()=>{let e=u.viewport,t=s?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(v("SCROLL"),c()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[u.viewport,s,v,c]),(0,p.jsx)(a.C,{present:i||"hidden"!==f,children:(0,p.jsx)(A,{"data-state":"hidden"===f?"hidden":"visible",...l,ref:t,onPointerEnter:(0,d.m)(e.onPointerEnter,()=>v("POINTER_ENTER")),onPointerLeave:(0,d.m)(e.onPointerLeave,()=>v("POINTER_LEAVE"))})})}),j=n.forwardRef((e,t)=>{let r=g(_,e.__scopeScrollArea),{forceMount:o,...i}=e,[l,u]=n.useState(!1),s="horizontal"===e.orientation,c=H(()=>{if(r.viewport){let e=r.viewport.offsetWidth{let{orientation:r="vertical",...o}=e,a=g(_,e.__scopeScrollArea),i=n.useRef(null),l=n.useRef(0),[u,s]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=V(u.viewport,u.content),f={...o,sizes:u,onSizesChange:s,hasThumb:!!(c>0&&c<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:e=>l.current=e};function d(e,t){return function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",o=U(r),a=t||o/2,i=r.scrollbar.paddingStart+a,l=r.scrollbar.size-r.scrollbar.paddingEnd-(o-a),u=r.content-r.viewport;return G([i,l],"ltr"===n?[0,u]:[-1*u,0])(e)}(e,l.current,u,t)}return"horizontal"===r?(0,p.jsx)(S,{...f,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){let e=z(a.viewport.scrollLeft,u,a.dir);i.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=d(e,a.dir))}}):"vertical"===r?(0,p.jsx)(P,{...f,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){let e=z(a.viewport.scrollTop,u);i.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=d(e))}}):null}),S=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...a}=e,i=g(_,e.__scopeScrollArea),[u,s]=n.useState(),c=n.useRef(null),f=(0,l.s)(t,c,i.onScrollbarXChange);return n.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,p.jsx)(D,{"data-orientation":"horizontal",...a,ref:f,sizes:r,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":U(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(i.viewport){let n=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),function(e,t){return e>0&&e{c.current&&i.viewport&&u&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:N(u.paddingLeft),paddingEnd:N(u.paddingRight)}})}})}),P=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...a}=e,i=g(_,e.__scopeScrollArea),[u,s]=n.useState(),c=n.useRef(null),f=(0,l.s)(t,c,i.onScrollbarYChange);return n.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,p.jsx)(D,{"data-orientation":"vertical",...a,ref:f,sizes:r,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":U(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(i.viewport){let n=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),function(e,t){return e>0&&e{c.current&&i.viewport&&u&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:N(u.paddingTop),paddingEnd:N(u.paddingBottom)}})}})}),[k,R]=h(_),D=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:a,hasThumb:i,onThumbChange:s,onThumbPointerUp:c,onThumbPointerDown:f,onThumbPositionChange:v,onDragScroll:h,onWheelScroll:y,onResize:m,...b}=e,w=g(_,r),[x,C]=n.useState(null),O=(0,l.s)(t,e=>C(e)),E=n.useRef(null),j=n.useRef(""),A=w.viewport,S=a.content-a.viewport,P=(0,u.c)(y),R=(0,u.c)(v),D=H(m,10);function T(e){E.current&&h({x:e.clientX-E.current.left,y:e.clientY-E.current.top})}return n.useEffect(()=>{let e=e=>{let t=e.target;(null==x?void 0:x.contains(t))&&P(e,S)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[A,x,S,P]),n.useEffect(R,[a,R]),K(x,D),K(w.content,D),(0,p.jsx)(k,{scope:r,scrollbar:x,hasThumb:i,onThumbChange:(0,u.c)(s),onThumbPointerUp:(0,u.c)(c),onThumbPositionChange:R,onThumbPointerDown:(0,u.c)(f),children:(0,p.jsx)(o.sG.div,{...b,ref:O,style:{position:"absolute",...b.style},onPointerDown:(0,d.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),E.current=x.getBoundingClientRect(),j.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),T(e))}),onPointerMove:(0,d.m)(e.onPointerMove,T),onPointerUp:(0,d.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=j.current,w.viewport&&(w.viewport.style.scrollBehavior=""),E.current=null})})})}),T="ScrollAreaThumb",M=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=R(T,e.__scopeScrollArea);return(0,p.jsx)(a.C,{present:r||o.hasThumb,children:(0,p.jsx)(F,{ref:t,...n})})}),F=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:a,...i}=e,u=g(T,r),s=R(T,r),{onThumbPositionChange:c}=s,f=(0,l.s)(t,e=>s.onThumbChange(e)),v=n.useRef(),h=H(()=>{v.current&&(v.current(),v.current=void 0)},100);return n.useEffect(()=>{let e=u.viewport;if(e){let t=()=>{if(h(),!v.current){let t=$(e,c);v.current=t,c()}};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[u.viewport,h,c]),(0,p.jsx)(o.sG.div,{"data-state":s.hasThumb?"visible":"hidden",...i,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:(0,d.m)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;s.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,d.m)(e.onPointerUp,s.onThumbPointerUp)})});M.displayName=T;var L="ScrollAreaCorner",B=n.forwardRef((e,t)=>{let r=g(L,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?(0,p.jsx)(I,{...e,ref:t}):null});B.displayName=L;var I=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,...a}=e,i=g(L,r),[l,u]=n.useState(0),[s,c]=n.useState(0),f=!!(l&&s);return K(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),c(t)}),K(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),u(t)}),f?(0,p.jsx)(o.sG.div,{...a,ref:t,style:{width:l,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function N(e){return e?parseInt(e,10):0}function V(e,t){let r=e/t;return isNaN(r)?0:r}function U(e){let t=V(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function z(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=U(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,l=(0,f.q)(e,"ltr"===r?[0,i]:[-1*i,0]);return G([0,i],[0,a-n])(l)}function G(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var $=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function o(){let a={left:e.scrollLeft,top:e.scrollTop},i=r.left!==a.left,l=r.top!==a.top;(i||l)&&t(),r=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function H(e,t){let r=(0,u.c)(e),o=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),n.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function K(e,t){let r=(0,u.c)(t);(0,c.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}var W=b,q=x,X=B},51551:(e,t,r)=>{"use strict";r.d(t,{b:()=>c});var n=r(38392),o=r(46199),a=r(70008);let i="horizontal",l=["horizontal","vertical"],u=(0,o.forwardRef)((e,t)=>{let{decorative:r,orientation:l=i,...u}=e,c=s(l)?l:i;return(0,o.createElement)(a.sG.div,(0,n.A)({"data-orientation":c},r?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},u,{ref:t}))});function s(e){return l.includes(e)}u.propTypes={orientation(e,t,r){let n=e[t],o=String(n);return n&&!s(n)?Error(`Invalid prop \`orientation\` of value \`${o}\` supplied to \`${r}\`, expected one of: - horizontal - vertical Defaulting to \`${i}\`.`):null}};let c=u},30088:(e,t,r)=>{"use strict";r.d(t,{bL:()=>j,q7:()=>A});var n=r(38392),o=r(46199),a=r(89825),i=r(70008),l=r(77828),u=r(95584),s=r(96219),c=r(65217);let f="ToggleGroup",[d,p]=(0,a.A)(f,[l.RG]),v=(0,l.RG)(),h=o.forwardRef((e,t)=>{let{type:r,...a}=e;if("single"===r)return o.createElement(g,(0,n.A)({},a,{ref:t}));if("multiple"===r)return o.createElement(b,(0,n.A)({},a,{ref:t}));throw Error(`Missing prop \`type\` expected on \`${f}\``)}),[y,m]=d(f),g=o.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:i=()=>{},...l}=e,[u,c]=(0,s.i)({prop:r,defaultProp:a,onChange:i});return o.createElement(y,{scope:e.__scopeToggleGroup,type:"single",value:u?[u]:[],onItemActivate:c,onItemDeactivate:o.useCallback(()=>c(""),[c])},o.createElement(_,(0,n.A)({},l,{ref:t})))}),b=o.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:i=()=>{},...l}=e,[u=[],c]=(0,s.i)({prop:r,defaultProp:a,onChange:i}),f=o.useCallback(e=>c((t=[])=>[...t,e]),[c]),d=o.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return o.createElement(y,{scope:e.__scopeToggleGroup,type:"multiple",value:u,onItemActivate:f,onItemDeactivate:d},o.createElement(_,(0,n.A)({},l,{ref:t})))}),[w,x]=d(f),_=o.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:a=!1,rovingFocus:u=!0,orientation:s,dir:f,loop:d=!0,...p}=e,h=v(r),y=(0,c.jH)(f),m={role:"group",dir:y,...p};return o.createElement(w,{scope:r,rovingFocus:u,disabled:a},u?o.createElement(l.bL,(0,n.A)({asChild:!0},h,{orientation:s,dir:y,loop:d}),o.createElement(i.sG.div,(0,n.A)({},m,{ref:t}))):o.createElement(i.sG.div,(0,n.A)({},m,{ref:t})))}),C="ToggleGroupItem",O=o.forwardRef((e,t)=>{let r=m(C,e.__scopeToggleGroup),a=x(C,e.__scopeToggleGroup),i=v(e.__scopeToggleGroup),u=r.value.includes(e.value),s=a.disabled||e.disabled,c={...e,pressed:u,disabled:s},f=o.useRef(null);return a.rovingFocus?o.createElement(l.q7,(0,n.A)({asChild:!0},i,{focusable:!s,active:u,ref:f}),o.createElement(E,(0,n.A)({},c,{ref:t}))):o.createElement(E,(0,n.A)({},c,{ref:t}))}),E=o.forwardRef((e,t)=>{let{__scopeToggleGroup:r,value:a,...i}=e,l=m(C,r),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},c="single"===l.type?s:void 0;return o.createElement(u.l,(0,n.A)({},c,i,{ref:t,onPressedChange:e=>{e?l.onItemActivate(a):l.onItemDeactivate(a)}}))}),j=h,A=O},95584:(e,t,r)=>{"use strict";r.d(t,{b:()=>s,l:()=>u});var n=r(38392),o=r(46199),a=r(73679),i=r(96219),l=r(70008);let u=(0,o.forwardRef)((e,t)=>{let{pressed:r,defaultPressed:u=!1,onPressedChange:s,...c}=e,[f=!1,d]=(0,i.i)({prop:r,onChange:s,defaultProp:u});return(0,o.createElement)(l.sG.button,(0,n.A)({type:"button","aria-pressed":f,"data-state":f?"on":"off","data-disabled":e.disabled?"":void 0},c,{ref:t,onClick:(0,a.m)(e.onClick,()=>{e.disabled||d(!f)})}))}),s=u},7127:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>N,UC:()=>z,bL:()=>V,l9:()=>U});var n=r(46199),o=r(25067),a=r(65299),i=r(93717),l=r(2048),u=r(48915),s=r(97082),c=(r(60781),r(47419)),f=r(27443),d=r(1943),p=r(36391),v=r(52216),h=r(75295),[y,m]=(0,i.A)("Tooltip",[s.Bk]),g=(0,s.Bk)(),b="TooltipProvider",w="tooltip.open",[x,_]=y(b),C=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=e,[l,u]=n.useState(!0),s=n.useRef(!1),c=n.useRef(0);return n.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,h.jsx)(x,{scope:t,isOpenDelayed:l,delayDuration:r,onOpen:n.useCallback(()=>{window.clearTimeout(c.current),u(!1)},[]),onClose:n.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>u(!0),o)},[o]),isPointerInTransitRef:s,onPointerInTransitChange:n.useCallback(e=>{s.current=e},[]),disableHoverableContent:a,children:i})};C.displayName=b;var O="Tooltip",[E,j]=y(O),A=e=>{let{__scopeTooltip:t,children:r,open:o,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:c}=e,f=_(O,e.__scopeTooltip),d=g(t),[v,y]=n.useState(null),m=(0,u.B)(),b=n.useRef(0),x=null!=l?l:f.disableHoverableContent,C=null!=c?c:f.delayDuration,j=n.useRef(!1),[A=!1,S]=(0,p.i)({prop:o,defaultProp:a,onChange:e=>{e?(f.onOpen(),document.dispatchEvent(new CustomEvent(w))):f.onClose(),null==i||i(e)}}),P=n.useMemo(()=>A?j.current?"delayed-open":"instant-open":"closed",[A]),k=n.useCallback(()=>{window.clearTimeout(b.current),j.current=!1,S(!0)},[S]),R=n.useCallback(()=>{window.clearTimeout(b.current),S(!1)},[S]),D=n.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{j.current=!0,S(!0)},C)},[C,S]);return n.useEffect(()=>()=>window.clearTimeout(b.current),[]),(0,h.jsx)(s.bL,{...d,children:(0,h.jsx)(E,{scope:t,contentId:m,open:A,stateAttribute:P,trigger:v,onTriggerChange:y,onTriggerEnter:n.useCallback(()=>{f.isOpenDelayed?D():k()},[f.isOpenDelayed,D,k]),onTriggerLeave:n.useCallback(()=>{x?R():window.clearTimeout(b.current)},[R,x]),onOpen:k,onClose:R,disableHoverableContent:x,children:r})})};A.displayName=O;var S="TooltipTrigger",P=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...i}=e,l=j(S,r),u=_(S,r),c=g(r),d=n.useRef(null),p=(0,a.s)(t,d,l.onTriggerChange),v=n.useRef(!1),y=n.useRef(!1),m=n.useCallback(()=>v.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),(0,h.jsx)(s.Mz,{asChild:!0,...c,children:(0,h.jsx)(f.sG.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...i,ref:p,onPointerMove:(0,o.m)(e.onPointerMove,e=>{"touch"===e.pointerType||y.current||u.isPointerInTransitRef.current||(l.onTriggerEnter(),y.current=!0)}),onPointerLeave:(0,o.m)(e.onPointerLeave,()=>{l.onTriggerLeave(),y.current=!1}),onPointerDown:(0,o.m)(e.onPointerDown,()=>{v.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:(0,o.m)(e.onFocus,()=>{v.current||l.onOpen()}),onBlur:(0,o.m)(e.onBlur,l.onClose),onClick:(0,o.m)(e.onClick,l.onClose)})})});P.displayName=S;var[k,R]=y("TooltipPortal",{forceMount:void 0}),D="TooltipContent",T=n.forwardRef((e,t)=>{let r=R(D,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=j(D,e.__scopeTooltip);return(0,h.jsx)(c.C,{present:n||i.open,children:i.disableHoverableContent?(0,h.jsx)(B,{side:o,...a,ref:t}):(0,h.jsx)(M,{side:o,...a,ref:t})})}),M=n.forwardRef((e,t)=>{let r=j(D,e.__scopeTooltip),o=_(D,e.__scopeTooltip),i=n.useRef(null),l=(0,a.s)(t,i),[u,s]=n.useState(null),{trigger:c,onClose:f}=r,d=i.current,{onPointerInTransitChange:p}=o,v=n.useCallback(()=>{s(null),p(!1)},[p]),y=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},o=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.getBoundingClientRect());s(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,o),...function(e){let{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())])),p(!0)},[p]);return n.useEffect(()=>()=>v(),[v]),n.useEffect(()=>{if(c&&d){let e=e=>y(e,d),t=e=>y(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[c,d,y,v]),n.useEffect(()=>{if(u){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==c?void 0:c.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;en!=s>n&&r<(u-i)*(n-l)/(s-l)+i&&(o=!o)}return o}(r,u);n?v():o&&(v(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,d,u,f,v]),(0,h.jsx)(B,{...e,ref:l})}),[F,L]=y(O,{isInside:!1}),B=n.forwardRef((e,t)=>{let{__scopeTooltip:r,children:o,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:u,...c}=e,f=j(D,r),p=g(r),{onClose:y}=f;return n.useEffect(()=>(document.addEventListener(w,y),()=>document.removeEventListener(w,y)),[y]),n.useEffect(()=>{if(f.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(f.trigger))&&y()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,y]),(0,h.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:y,children:(0,h.jsxs)(s.UC,{"data-state":f.stateAttribute,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,h.jsx)(d.xV,{children:o}),(0,h.jsx)(F,{scope:r,isInside:!0,children:(0,h.jsx)(v.b,{id:f.contentId,role:"tooltip",children:a||o})})]})})});T.displayName=D;var I="TooltipArrow";n.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,o=g(r);return L(I,r).isInside?null:(0,h.jsx)(s.i3,{...o,...n,ref:t})}).displayName=I;var N=C,V=A,U=P,z=T},40713:(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.d(t,{A:()=>n})},26739:(e,t,r)=>{"use strict";r.d(t,{F8:()=>u,FA:()=>p,FP:()=>o,HQ:()=>v,Ni:()=>c,RZ:()=>s,T9:()=>i,TW:()=>d,gn:()=>a,jk:()=>l,pi:()=>f,qR:()=>h,tn:()=>n});let n=Math.abs,o=Math.atan2,a=Math.cos,i=Math.max,l=Math.min,u=Math.sin,s=Math.sqrt,c=1e-12,f=Math.PI,d=f/2,p=2*f;function v(e){return e>1?0:e<-1?f:Math.acos(e)}function h(e){return e>=1?d:e<=-1?-d:Math.asin(e)}},31899:(e,t,r)=>{"use strict";r.d(t,{i:()=>u});let n=Math.PI,o=2*n,a=o-1e-6;function i(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return i;let r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t1e-6){if(Math.abs(f*u-s*c)>1e-6&&a){let p=r-i,v=o-l,h=u*u+s*s,y=Math.sqrt(h),m=Math.sqrt(d),g=a*Math.tan((n-Math.acos((h+d-(p*p+v*v))/(2*y*m)))/2),b=g/m,w=g/y;Math.abs(b-1)>1e-6&&this._append`L${e+b*c},${t+b*f}`,this._append`A${a},${a},0,0,${+(f*p>c*v)},${this._x1=e+w*u},${this._y1=t+w*s}`}else this._append`L${this._x1=e},${this._y1=t}`}}arc(e,t,r,i,l,u){if(e*=1,t*=1,r*=1,u=!!u,r<0)throw Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),f=e+s,d=t+c,p=1^u,v=u?i-l:l-i;null===this._x1?this._append`M${f},${d}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-d)>1e-6)&&this._append`L${f},${d}`,r&&(v<0&&(v=v%o+o),v>a?this._append`A${r},${r},0,1,${p},${e-s},${t-c}A${r},${r},0,1,${p},${this._x1=f},${this._y1=d}`:v>1e-6&&this._append`A${r},${r},0,${+(v>=n)},${p},${this._x1=e+r*Math.cos(l)},${this._y1=t+r*Math.sin(l)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function u(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{let e=Math.floor(r);if(!(e>=0))throw RangeError(`invalid digits: ${r}`);t=e}return e},()=>new l(t)}l.prototype},36437:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Controller:()=>I,Form:()=>N,FormProvider:()=>C,appendErrors:()=>V,get:()=>m,set:()=>L,useController:()=>B,useFieldArray:()=>em,useForm:()=>eL,useFormContext:()=>_,useFormState:()=>k,useWatch:()=>T});var n=r(46199),o=e=>"checkbox"===e.type,a=e=>e instanceof Date,i=e=>null==e;let l=e=>"object"==typeof e;var u=e=>!i(e)&&!Array.isArray(e)&&l(e)&&!a(e),s=e=>u(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,f=(e,t)=>e.has(c(t)),d=e=>{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty("isPrototypeOf")},p="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function v(e){let t;let r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(p&&(e instanceof Blob||e instanceof FileList))&&(r||u(e))))return e;else if(t=r?[]:{},r||d(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=v(e[r]));else t=e;return t}var h=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>void 0===e,m=(e,t,r)=>{if(!t||!u(e))return r;let n=h(t.split(/[,[\].]+?/)).reduce((e,t)=>i(e)?e:e[t],e);return y(n)||n===e?y(e[t])?r:e[t]:n};let g={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},b={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},w={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},x=n.createContext(null),_=()=>n.useContext(x),C=e=>{let{children:t,...r}=e;return n.createElement(x.Provider,{value:r},t)};var O=(e,t,r,n=!0)=>{let o={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(o,a,{get:()=>(t._proxyFormState[a]!==b.all&&(t._proxyFormState[a]=!n||b.all),r&&(r[a]=!0),e[a])});return o},E=e=>u(e)&&!Object.keys(e).length,j=(e,t,r,n)=>{r(e);let{name:o,...a}=e;return E(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!n||b.all))},A=e=>Array.isArray(e)?e:[e],S=(e,t,r)=>r&&t?e===t:!e||!t||e===t||A(e).some(e=>e&&(e.startsWith(t)||t.startsWith(e)));function P(e){let t=n.useRef(e);t.current=e,n.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function k(e){let t=_(),{control:r=t.control,disabled:o,name:a,exact:i}=e||{},[l,u]=n.useState(r._formState),s=n.useRef(!0),c=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=n.useRef(a);return f.current=a,P({disabled:o,next:e=>s.current&&S(f.current,e.name,i)&&j(e,c.current,r._updateFormState)&&u({...r._formState,...e}),subject:r._subjects.state}),n.useEffect(()=>(s.current=!0,c.current.isValid&&r._updateValid(!0),()=>{s.current=!1}),[r]),O(l,r,c.current,!1)}var R=e=>"string"==typeof e,D=(e,t,r,n,o)=>R(e)?(n&&t.watch.add(e),m(r,e,o)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),m(r,e))):(n&&(t.watchAll=!0),r);function T(e){let t=_(),{control:r=t.control,name:o,defaultValue:a,disabled:i,exact:l}=e||{},u=n.useRef(o);u.current=o,P({disabled:i,subject:r._subjects.values,next:e=>{S(u.current,e.name,l)&&c(v(D(u.current,r._names,e.values||r._formValues,!1,a)))}});let[s,c]=n.useState(r._getWatch(o,a));return n.useEffect(()=>r._removeUnmounted()),s}var M=e=>/^\w*$/.test(e),F=e=>h(e.replace(/["|']|\]/g,"").split(/\.|\[/));function L(e,t,r){let n=-1,o=M(t)?[t]:F(t),a=o.length,i=a-1;for(;++n{let e=o._options.shouldUnregister||a,t=(e,t)=>{let r=m(o._fields,e);r&&(r._f.mount=t)};if(t(r,!0),e){let e=v(m(o._options.defaultValues,r));L(o._defaultValues,r,e),y(m(o._formValues,r))&&L(o._formValues,r,e)}return()=>{(i?e&&!o._state.action:e)?o.unregister(r):t(r,!1)}},[r,o,i,a]),{field:{name:r,value:l,onChange:n.useCallback(e=>c.current.onChange({target:{value:s(e),name:r},type:g.CHANGE}),[r]),onBlur:n.useCallback(()=>c.current.onBlur({target:{value:m(o._formValues,r),name:r},type:g.BLUR}),[r,o]),ref:e=>{let t=m(o._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!m(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!m(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!m(u.touchedFields,r)},error:{enumerable:!0,get:()=>m(u.errors,r)}})}}let I=e=>e.render(B(e));function N(e){let t=_(),[r,o]=n.useState(!1),{control:a=t.control,onSubmit:i,children:l,action:u,method:s="post",headers:c,encType:f,onError:d,render:p,onSuccess:v,validateStatus:h,...y}=e,g=async t=>{let r=!1,n="";await a.handleSubmit(async e=>{let o=new FormData,l="";try{l=JSON.stringify(e)}catch(e){}for(let t of a._names.mount)o.append(t,m(e,t));if(i&&await i({data:e,event:t,method:s,formData:o,formDataJson:l}),u)try{let e=[c&&c["Content-Type"],f].some(e=>e&&e.includes("json")),t=await fetch(u,{method:s,headers:{...c,...f?{"Content-Type":f}:{}},body:e?l:o});t&&(h?!h(t.status):t.status<200||t.status>=300)?(r=!0,d&&d({response:t}),n=String(t.status)):v&&v({response:t})}catch(e){r=!0,d&&d({error:e})}})(t),r&&e.control&&(e.control._subjects.state.next({isSubmitSuccessful:!1}),e.control.setError("root.server",{type:n}))};return n.useEffect(()=>{o(!0)},[]),p?n.createElement(n.Fragment,null,p({submit:g})):n.createElement("form",{noValidate:r,action:u,method:s,encType:f,onSubmit:g,...y},l)}var V=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{};let U=(e,t,r)=>{for(let n of r||Object.keys(e)){let r=m(e,n);if(r){let{_f:e,...n}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else u(n)&&U(n,t)}}};var z=()=>{let e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)})},G=(e,t,r={})=>r.shouldFocus||y(r.shouldFocus)?r.focusName||`${e}.${y(r.focusIndex)?t:r.focusIndex}.`:"",$=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),H=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),K=(e,t,r)=>{let n=h(m(e,r));return L(n,"root",t[r]),L(e,r,n),e},W=e=>"boolean"==typeof e,q=e=>"file"===e.type,X=e=>"function"==typeof e,Z=e=>{if(!p)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Y=e=>R(e),J=e=>"radio"===e.type,Q=e=>e instanceof RegExp;let ee={value:!1,isValid:!1},et={value:!0,isValid:!0};var er=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!y(e[0].attributes.value)?y(e[0].value)||""===e[0].value?et:{value:e[0].value,isValid:!0}:et:ee}return ee};let en={isValid:!1,value:null};var eo=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,en):en;function ea(e,t,r="validate"){if(Y(e)||Array.isArray(e)&&e.every(Y)||W(e)&&!e)return{type:r,message:Y(e)?e:"",ref:t}}var ei=e=>u(e)&&!Q(e)?e:{value:e,message:""},el=async(e,t,r,n,a)=>{let{ref:l,refs:s,required:c,maxLength:f,minLength:d,min:p,max:v,pattern:h,validate:g,name:b,valueAsNumber:x,mount:_,disabled:C}=e._f,O=m(t,b);if(!_||C)return{};let j=s?s[0]:l,A=e=>{n&&j.reportValidity&&(j.setCustomValidity(W(e)?"":e||""),j.reportValidity())},S={},P=J(l),k=o(l),D=(x||q(l))&&y(l.value)&&y(O)||Z(l)&&""===l.value||""===O||Array.isArray(O)&&!O.length,T=V.bind(null,b,r,S),M=(e,t,r,n=w.maxLength,o=w.minLength)=>{let a=e?t:r;S[b]={type:e?n:o,message:a,ref:l,...T(e?n:o,a)}};if(a?!Array.isArray(O)||!O.length:c&&(!(P||k)&&(D||i(O))||W(O)&&!O||k&&!er(s).isValid||P&&!eo(s).isValid)){let{value:e,message:t}=Y(c)?{value:!!c,message:c}:ei(c);if(e&&(S[b]={type:w.required,message:t,ref:j,...T(w.required,t)},!r))return A(t),S}if(!D&&(!i(p)||!i(v))){let e,t;let n=ei(v),o=ei(p);if(i(O)||isNaN(O)){let r=l.valueAsDate||new Date(O),a=e=>new Date(new Date().toDateString()+" "+e),i="time"==l.type,u="week"==l.type;R(n.value)&&O&&(e=i?a(O)>a(n.value):u?O>n.value:r>new Date(n.value)),R(o.value)&&O&&(t=i?a(O)n.value),i(o.value)||(t=r+e.value,o=!i(t.value)&&O.length<+t.value;if((n||o)&&(M(n,e.message,t.message),!r))return A(S[b].message),S}if(h&&!D&&R(O)){let{value:e,message:t}=ei(h);if(Q(e)&&!O.match(e)&&(S[b]={type:w.pattern,message:t,ref:l,...T(w.pattern,t)},!r))return A(t),S}if(g){if(X(g)){let e=ea(await g(O,t),j);if(e&&(S[b]={...e,...T(w.validate,e.message)},!r))return A(e.message),S}else if(u(g)){let e={};for(let n in g){if(!E(e)&&!r)break;let o=ea(await g[n](O,t),j,n);o&&(e={...o,...T(n,o.message)},A(o.message),r&&(S[b]=e))}if(!E(e)&&(S[b]={ref:j,...e},!r))return S}}return A(!0),S};function eu(e,t){return[...e,...A(t)]}var es=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function ec(e,t,r){return[...e.slice(0,t),...A(r),...e.slice(t)]}var ef=(e,t,r)=>Array.isArray(e)?(y(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[];function ed(e,t){return[...A(t),...A(e)]}var ep=(e,t)=>y(t)?[]:function(e,t){let r=0,n=[...e];for(let e of t)n.splice(e-r,1),r++;return h(n).length?n:[]}(e,A(t).sort((e,t)=>e-t)),ev=(e,t,r)=>{e[t]=[e[r],e[r]=e[t]][0]};function eh(e,t){let r=Array.isArray(t)?t:M(t)?[t]:F(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n(e[t]=r,e);function em(e){let t=_(),{control:r=t.control,name:o,keyName:a="id",shouldUnregister:i}=e,[l,u]=n.useState(r._getFieldArray(o)),s=n.useRef(r._getFieldArray(o).map(z)),c=n.useRef(l),f=n.useRef(o),d=n.useRef(!1);f.current=o,c.current=l,r._names.array.add(o),e.rules&&r.register(o,e.rules),P({next:({values:e,name:t})=>{if(t===f.current||!t){let t=m(e,f.current);Array.isArray(t)&&(u(t),s.current=t.map(z))}},subject:r._subjects.array});let p=n.useCallback(e=>{d.current=!0,r._updateFieldArray(o,e)},[r,o]);return n.useEffect(()=>{if(r._state.action=!1,H(o,r._names)&&r._subjects.state.next({...r._formState}),d.current&&(!$(r._options.mode).isOnSubmit||r._formState.isSubmitted)){if(r._options.resolver)r._executeSchema([o]).then(e=>{let t=m(e.errors,o),n=m(r._formState.errors,o);(n?!t&&n.type||t&&(n.type!==t.type||n.message!==t.message):t&&t.type)&&(t?L(r._formState.errors,o,t):eh(r._formState.errors,o),r._subjects.state.next({errors:r._formState.errors}))});else{let e=m(r._fields,o);e&&e._f&&el(e,r._formValues,r._options.criteriaMode===b.all,r._options.shouldUseNativeValidation,!0).then(e=>!E(e)&&r._subjects.state.next({errors:K(r._formState.errors,e,o)}))}}r._subjects.values.next({name:o,values:{...r._formValues}}),r._names.focus&&U(r._fields,e=>!!e&&e.startsWith(r._names.focus||"")),r._names.focus="",r._updateValid(),d.current=!1},[l,o,r]),n.useEffect(()=>(m(r._formValues,o)||r._updateFieldArray(o),()=>{(r._options.shouldUnregister||i)&&r.unregister(o)}),[o,r,a,i]),{swap:n.useCallback((e,t)=>{let n=r._getFieldArray(o);ev(n,e,t),ev(s.current,e,t),p(n),u(n),r._updateFieldArray(o,n,ev,{argA:e,argB:t},!1)},[p,o,r]),move:n.useCallback((e,t)=>{let n=r._getFieldArray(o);ef(n,e,t),ef(s.current,e,t),p(n),u(n),r._updateFieldArray(o,n,ef,{argA:e,argB:t},!1)},[p,o,r]),prepend:n.useCallback((e,t)=>{let n=A(v(e)),a=ed(r._getFieldArray(o),n);r._names.focus=G(o,0,t),s.current=ed(s.current,n.map(z)),p(a),u(a),r._updateFieldArray(o,a,ed,{argA:es(e)})},[p,o,r]),append:n.useCallback((e,t)=>{let n=A(v(e)),a=eu(r._getFieldArray(o),n);r._names.focus=G(o,a.length-1,t),s.current=eu(s.current,n.map(z)),p(a),u(a),r._updateFieldArray(o,a,eu,{argA:es(e)})},[p,o,r]),remove:n.useCallback(e=>{let t=ep(r._getFieldArray(o),e);s.current=ep(s.current,e),p(t),u(t),r._updateFieldArray(o,t,ep,{argA:e})},[p,o,r]),insert:n.useCallback((e,t,n)=>{let a=A(v(t)),i=ec(r._getFieldArray(o),e,a);r._names.focus=G(o,e,n),s.current=ec(s.current,e,a.map(z)),p(i),u(i),r._updateFieldArray(o,i,ec,{argA:e,argB:es(t)})},[p,o,r]),update:n.useCallback((e,t)=>{let n=v(t),a=ey(r._getFieldArray(o),e,n);s.current=[...a].map((t,r)=>t&&r!==e?s.current[r]:z()),p(a),u([...a]),r._updateFieldArray(o,a,ey,{argA:e,argB:n},!0,!1)},[p,o,r]),replace:n.useCallback(e=>{let t=A(v(e));s.current=t.map(z),p([...t]),u([...t]),r._updateFieldArray(o,[...t],e=>e,{},!0,!1)},[p,o,r]),fields:n.useMemo(()=>l.map((e,t)=>({...e,[a]:s.current[t]||z()})),[l,a])}}function eg(){let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var eb=e=>i(e)||!l(e);function ew(e,t){if(eb(e)||eb(t))return e===t;if(a(e)&&a(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o of r){let r=e[o];if(!n.includes(o))return!1;if("ref"!==o){let e=t[o];if(a(r)&&a(e)||u(r)&&u(e)||Array.isArray(r)&&Array.isArray(e)?!ew(r,e):r!==e)return!1}}return!0}var ex=e=>"select-multiple"===e.type,e_=e=>J(e)||o(e),eC=e=>Z(e)&&e.isConnected,eO=e=>{for(let t in e)if(X(e[t]))return!0;return!1};function eE(e,t={}){let r=Array.isArray(e);if(u(e)||r)for(let r in e)Array.isArray(e[r])||u(e[r])&&!eO(e[r])?(t[r]=Array.isArray(e[r])?[]:{},eE(e[r],t[r])):i(e[r])||(t[r]=!0);return t}var ej=(e,t)=>(function e(t,r,n){let o=Array.isArray(t);if(u(t)||o)for(let o in t)Array.isArray(t[o])||u(t[o])&&!eO(t[o])?y(r)||eb(n[o])?n[o]=Array.isArray(t[o])?eE(t[o],[]):{...eE(t[o])}:e(t[o],i(r)?{}:r[o],n[o]):n[o]=!ew(t[o],r[o]);return n})(e,t,eE(t)),eA=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>y(e)?e:t?""===e?NaN:e?+e:e:r&&R(e)?new Date(e):n?n(e):e;function eS(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:q(t)?t.files:J(t)?eo(e.refs).value:ex(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?er(e.refs).value:eA(y(t.value)?e.ref.value:t.value,e)}var eP=(e,t,r,n)=>{let o={};for(let r of e){let e=m(t,r);e&&L(o,r,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},ek=e=>y(e)?e:Q(e)?e.source:u(e)?Q(e.value)?e.value.source:e.value:e,eR=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function eD(e,t,r){let n=m(e,r);if(n||M(r))return{error:n,name:r};let o=r.split(".");for(;o.length;){let n=o.join("."),a=m(t,n),i=m(e,n);if(a&&!Array.isArray(a)&&r!==n)break;if(i&&i.type)return{name:n,error:i};o.pop()}return{name:r}}var eT=(e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?!n.isOnChange:!o.isOnChange)||e),eM=(e,t)=>!h(m(e,t)).length&&eh(e,t);let eF={mode:b.onSubmit,reValidateMode:b.onChange,shouldFocusError:!0};function eL(e={}){let t=n.useRef(),r=n.useRef(),[l,c]=n.useState({isDirty:!1,isValidating:!1,isLoading:X(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:X(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let r,n={...eF,...e},l={submitCount:0,isDirty:!1,isLoading:X(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},d=(u(n.defaultValues)||u(n.values))&&v(n.defaultValues||n.values)||{},w=n.shouldUnregister?{}:v(d),x={action:!1,mount:!1,watch:!1},_={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},j={values:eg(),array:eg(),state:eg()},S=e.resetOptions&&e.resetOptions.keepDirtyValues,P=$(n.mode),k=$(n.reValidateMode),T=n.criteriaMode===b.all,M=e=>t=>{clearTimeout(C),C=setTimeout(e,t)},F=async e=>{if(O.isValid||e){let e=n.resolver?E((await G()).errors):await J(c,!0);e!==l.isValid&&j.state.next({isValid:e})}},B=e=>O.isValidating&&j.state.next({isValidating:e}),I=(e,t)=>{L(l.errors,e,t),j.state.next({errors:l.errors})},N=(e,t,r,n)=>{let o=m(c,e);if(o){let a=m(w,e,y(r)?m(d,e):r);y(a)||n&&n.defaultChecked||t?L(w,e,t?a:eS(o._f)):et(e,a),x.mount&&F()}},V=(e,t,r,n,o)=>{let a=!1,i=!1,u={name:e};if(!r||n){O.isDirty&&(i=l.isDirty,l.isDirty=u.isDirty=Q(),a=i!==u.isDirty);let r=ew(m(d,e),t);i=m(l.dirtyFields,e),r?eh(l.dirtyFields,e):L(l.dirtyFields,e,!0),u.dirtyFields=l.dirtyFields,a=a||O.dirtyFields&&!r!==i}if(r){let t=m(l.touchedFields,e);t||(L(l.touchedFields,e,r),u.touchedFields=l.touchedFields,a=a||O.touchedFields&&t!==r)}return a&&o&&j.state.next(u),a?u:{}},z=(t,n,o,a)=>{let i=m(l.errors,t),u=O.isValid&&W(n)&&l.isValid!==n;if(e.delayError&&o?(r=M(()=>I(t,o)))(e.delayError):(clearTimeout(C),r=null,o?L(l.errors,t,o):eh(l.errors,t)),(o?!ew(i,o):i)||!E(a)||u){let e={...a,...u&&W(n)?{isValid:n}:{},errors:l.errors,name:t};l={...l,...e},j.state.next(e)}B(!1)},G=async e=>n.resolver(w,n.context,eP(e||_.mount,c,n.criteriaMode,n.shouldUseNativeValidation)),Y=async e=>{let{errors:t}=await G();if(e)for(let r of e){let e=m(t,r);e?L(l.errors,r,e):eh(l.errors,r)}else l.errors=t;return t},J=async(e,t,r={valid:!0})=>{for(let o in e){let a=e[o];if(a){let{_f:e,...o}=a;if(e){let o=_.array.has(e.name),i=await el(a,w,T,n.shouldUseNativeValidation&&!t,o);if(i[e.name]&&(r.valid=!1,t))break;t||(m(i,e.name)?o?K(l.errors,i,e.name):L(l.errors,e.name,i[e.name]):eh(l.errors,e.name))}o&&await J(o,t,r)}}return r.valid},Q=(e,t)=>(e&&t&&L(w,e,t),!ew(ei(),d)),ee=(e,t,r)=>D(e,_,{...x.mount?w:y(t)?d:R(e)?{[e]:t}:t},r,t),et=(e,t,r={})=>{let n=m(c,e),a=t;if(n){let r=n._f;r&&(r.disabled||L(w,e,eA(t,r)),a=Z(r.ref)&&i(t)?"":t,ex(r.ref)?[...r.ref.options].forEach(e=>e.selected=a.includes(e.value)):r.refs?o(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find(t=>t===e.value):a===e.value)):r.refs[0]&&(r.refs[0].checked=!!a):r.refs.forEach(e=>e.checked=e.value===a):q(r.ref)?r.ref.value="":(r.ref.value=a,r.ref.type||j.values.next({name:e,values:{...w}})))}(r.shouldDirty||r.shouldTouch)&&V(e,a,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ea(e)},er=(e,t,r)=>{for(let n in t){let o=t[n],i=`${e}.${n}`,l=m(c,i);!_.array.has(e)&&eb(o)&&(!l||l._f)||a(o)?et(i,o,r):er(i,o,r)}},en=(e,r,n={})=>{let o=m(c,e),a=_.array.has(e),u=v(r);L(w,e,u),a?(j.array.next({name:e,values:{...w}}),(O.isDirty||O.dirtyFields)&&n.shouldDirty&&j.state.next({name:e,dirtyFields:ej(d,w),isDirty:Q(e,u)})):!o||o._f||i(u)?et(e,u,n):er(e,u,n),H(e,_)&&j.state.next({...l}),j.values.next({name:e,values:{...w}}),x.mount||t()},eo=async e=>{let t=e.target,o=t.name,a=!0,i=m(c,o);if(i){let u,f;let d=t.type?eS(i._f):s(e),p=e.type===g.BLUR||e.type===g.FOCUS_OUT,v=!eR(i._f)&&!n.resolver&&!m(l.errors,o)&&!i._f.deps||eT(p,m(l.touchedFields,o),l.isSubmitted,k,P),h=H(o,_,p);L(w,o,d),p?(i._f.onBlur&&i._f.onBlur(e),r&&r(0)):i._f.onChange&&i._f.onChange(e);let y=V(o,d,p,!1),b=!E(y)||h;if(p||j.values.next({name:o,type:e.type,values:{...w}}),v)return O.isValid&&F(),b&&j.state.next({name:o,...h?{}:y});if(!p&&h&&j.state.next({...l}),B(!0),n.resolver){let{errors:e}=await G([o]),t=eD(l.errors,c,o),r=eD(e,c,t.name||o);u=r.error,o=r.name,f=E(e)}else u=(await el(i,w,T,n.shouldUseNativeValidation))[o],(a=isNaN(d)||d===m(w,o,d))&&(u?f=!1:O.isValid&&(f=await J(c,!0)));a&&(i._f.deps&&ea(i._f.deps),z(o,f,u,y))}},ea=async(e,t={})=>{let r,o;let a=A(e);if(B(!0),n.resolver){let t=await Y(y(e)?e:a);r=E(t),o=e?!a.some(e=>m(t,e)):r}else e?((o=(await Promise.all(a.map(async e=>{let t=m(c,e);return await J(t&&t._f?{[e]:t}:t)}))).every(Boolean))||l.isValid)&&F():o=r=await J(c);return j.state.next({...!R(e)||O.isValid&&r!==l.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:l.errors,isValidating:!1}),t.shouldFocus&&!o&&U(c,e=>e&&m(l.errors,e),e?a:_.mount),o},ei=e=>{let t={...d,...x.mount?w:{}};return y(e)?t:R(e)?m(t,e):e.map(e=>m(t,e))},eu=(e,t)=>({invalid:!!m((t||l).errors,e),isDirty:!!m((t||l).dirtyFields,e),isTouched:!!m((t||l).touchedFields,e),error:m((t||l).errors,e)}),es=(e,t,r)=>{let n=(m(c,e,{_f:{}})._f||{}).ref;L(l.errors,e,{...t,ref:n}),j.state.next({name:e,errors:l.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},ec=(e,t={})=>{for(let r of e?A(e):_.mount)_.mount.delete(r),_.array.delete(r),t.keepValue||(eh(c,r),eh(w,r)),t.keepError||eh(l.errors,r),t.keepDirty||eh(l.dirtyFields,r),t.keepTouched||eh(l.touchedFields,r),n.shouldUnregister||t.keepDefaultValue||eh(d,r);j.values.next({values:{...w}}),j.state.next({...l,...t.keepDirty?{isDirty:Q()}:{}}),t.keepIsValid||F()},ef=(e,t={})=>{let r=m(c,e),o=W(t.disabled);return L(c,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),_.mount.add(e),r?o&&L(w,e,t.disabled?void 0:m(w,e,eS(r._f))):N(e,!0,t.value),{...o?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:ek(t.min),max:ek(t.max),minLength:ek(t.minLength),maxLength:ek(t.maxLength),pattern:ek(t.pattern)}:{},name:e,onChange:eo,onBlur:eo,ref:o=>{if(o){ef(e,t),r=m(c,e);let n=y(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,a=e_(n),i=r._f.refs||[];(a?i.find(e=>e===n):n===r._f.ref)||(L(c,e,{_f:{...r._f,...a?{refs:[...i.filter(eC),n,...Array.isArray(m(d,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),N(e,!1,void 0,n))}else(r=m(c,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(f(_.array,e)&&x.action)&&_.unMount.add(e)}}},ed=()=>n.shouldFocusError&&U(c,e=>e&&m(l.errors,e),_.mount),ep=(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let o=v(w);if(j.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await G();l.errors=e,o=t}else await J(c);eh(l.errors,"root"),E(l.errors)?(j.state.next({errors:{}}),await e(o,r)):(t&&await t({...l.errors},r),ed(),setTimeout(ed)),j.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(l.errors),submitCount:l.submitCount+1,errors:l.errors})},ev=(r,n={})=>{let o=r||d,a=v(o),i=r&&!E(r)?a:d;if(n.keepDefaultValues||(d=o),!n.keepValues){if(n.keepDirtyValues||S)for(let e of _.mount)m(l.dirtyFields,e)?L(i,e,m(w,e)):en(e,m(i,e));else{if(p&&y(r))for(let e of _.mount){let t=m(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Z(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}w=e.shouldUnregister?n.keepDefaultValues?v(d):{}:v(i),j.array.next({values:{...i}}),j.values.next({values:{...i}})}_={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},x.mount||t(),x.mount=!O.isValid||!!n.keepIsValid,x.watch=!!e.shouldUnregister,j.state.next({submitCount:n.keepSubmitCount?l.submitCount:0,isDirty:n.keepDirty?l.isDirty:!!(n.keepDefaultValues&&!ew(r,d)),isSubmitted:!!n.keepIsSubmitted&&l.isSubmitted,dirtyFields:n.keepDirtyValues?l.dirtyFields:n.keepDefaultValues&&r?ej(d,r):{},touchedFields:n.keepTouched?l.touchedFields:{},errors:n.keepErrors?l.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},ey=(e,t)=>ev(X(e)?e(w):e,t);return{control:{register:ef,unregister:ec,getFieldState:eu,handleSubmit:ep,setError:es,_executeSchema:G,_getWatch:ee,_getDirty:Q,_updateValid:F,_removeUnmounted:()=>{for(let e of _.unMount){let t=m(c,e);t&&(t._f.refs?t._f.refs.every(e=>!eC(e)):!eC(t._f.ref))&&ec(e)}_.unMount=new Set},_updateFieldArray:(e,t=[],r,n,o=!0,a=!0)=>{if(n&&r){if(x.action=!0,a&&Array.isArray(m(c,e))){let t=r(m(c,e),n.argA,n.argB);o&&L(c,e,t)}if(a&&Array.isArray(m(l.errors,e))){let t=r(m(l.errors,e),n.argA,n.argB);o&&L(l.errors,e,t),eM(l.errors,e)}if(O.touchedFields&&a&&Array.isArray(m(l.touchedFields,e))){let t=r(m(l.touchedFields,e),n.argA,n.argB);o&&L(l.touchedFields,e,t)}O.dirtyFields&&(l.dirtyFields=ej(d,w)),j.state.next({name:e,isDirty:Q(e,t),dirtyFields:l.dirtyFields,errors:l.errors,isValid:l.isValid})}else L(w,e,t)},_getFieldArray:t=>h(m(x.mount?w:d,t,e.shouldUnregister?m(d,t,[]):[])),_reset:ev,_resetDefaultValues:()=>X(n.defaultValues)&&n.defaultValues().then(e=>{ey(e,n.resetOptions),j.state.next({isLoading:!1})}),_updateFormState:e=>{l={...l,...e}},_subjects:j,_proxyFormState:O,get _fields(){return c},get _formValues(){return w},get _state(){return x},set _state(value){x=value},get _defaultValues(){return d},get _names(){return _},set _names(value){_=value},get _formState(){return l},set _formState(value){l=value},get _options(){return n},set _options(value){n={...n,...value}}},trigger:ea,register:ef,handleSubmit:ep,watch:(e,t)=>X(e)?j.values.subscribe({next:r=>e(ee(void 0,t),r)}):ee(e,t,!0),setValue:en,getValues:ei,reset:ey,resetField:(e,t={})=>{m(c,e)&&(y(t.defaultValue)?en(e,m(d,e)):(en(e,t.defaultValue),L(d,e,t.defaultValue)),t.keepTouched||eh(l.touchedFields,e),t.keepDirty||(eh(l.dirtyFields,e),l.isDirty=t.defaultValue?Q(e,m(d,e)):Q()),!t.keepError&&(eh(l.errors,e),O.isValid&&F()),j.state.next({...l}))},clearErrors:e=>{e&&A(e).forEach(e=>eh(l.errors,e)),j.state.next({errors:e?l.errors:{}})},unregister:ec,setError:es,setFocus:(e,t={})=>{let r=m(c,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eu}}(e,()=>c(e=>({...e}))),formState:l});let d=t.current.control;return d._options=e,P({subject:d._subjects.state,next:e=>{j(e,d._proxyFormState,d._updateFormState,!0)&&c({...d._formState})}}),n.useEffect(()=>{e.values&&!ew(e.values,r.current)?(d._reset(e.values,d._options.resetOptions),r.current=e.values):d._resetDefaultValues()},[e.values,d]),n.useEffect(()=>{d._state.mount||(d._updateValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),t.current.formState=O(l,d),t.current}}}]);