(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[605],{2468:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.378.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(8030).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},2421:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.378.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(8030).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},4392:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.378.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(8030).Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},9589:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,(function(t){return e[t]}).bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t){e.exports=n(2265)},function(e,t,n){var r;/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=(function(){return o}).apply(t,[]))||(e.exports=r)}()},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,i=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),s=Object.prototype.toString,f=c.Symbol,d=f?f.prototype:void 0,p=d?d.toString:void 0;function h(e){if("string"==typeof e)return e;if(v(e))return p?p.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){return"symbol"==typeof e||!!e&&"object"==typeof e&&"[object Symbol]"==s.call(e)}e.exports=function(e,t,l){var u,c,s,f,d,p;return e=null==(u=e)?"":h(u),p=(d=(f=l)?(f=function(e){if("number"==typeof e)return e;if(v(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var l=o.test(e);return l||a.test(e)?i(e.slice(2),l?2:8):r.test(e)?NaN:+e}(f))===1/0||f===-1/0?17976931348623157e292*(f<0?-1:1):f==f?f:0:0===f?f:0)%1,c=d==d?p?d-p:d:0,s=e.length,c==c&&(void 0!==s&&(c=c<=s?c:s),c=c>=0?c:0),l=c,t=h(t),e.slice(l,l+t.length)==t}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n,r=/^\[object .+?Constructor\]$/,o="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,i=o||a||Function("return this")(),l=Array.prototype,u=Function.prototype,c=Object.prototype,s=i["__core-js_shared__"],f=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",d=u.toString,p=c.hasOwnProperty,h=c.toString,m=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=l.splice,g=E(i,"Map"),y=E(Object,"create");function b(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function w(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function x(e,t){for(var n,r=e.length;r--;)if((n=e[r][0])===t||n!=n&&t!=t)return r;return -1}function S(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function E(e,t){var n,o,a=null==e?void 0:e[t];return!(!O(n=a)||f&&f in n)&&("[object Function]"==(o=O(n)?h.call(n):"")||"[object GeneratorFunction]"==o||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(n)?m:r).test(function(e){if(null!=e){try{return d.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?a:void 0}function _(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(_.Cache||C),n}function O(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}b.prototype.clear=function(){this.__data__=y?y(null):{}},b.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},b.prototype.get=function(e){var t=this.__data__;if(y){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return p.call(t,e)?t[e]:void 0},b.prototype.has=function(e){var t=this.__data__;return y?void 0!==t[e]:p.call(t,e)},b.prototype.set=function(e,t){return this.__data__[e]=y&&void 0===t?"__lodash_hash_undefined__":t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype.delete=function(e){var t=this.__data__,n=x(t,e);return!(n<0)&&(n==t.length-1?t.pop():v.call(t,n,1),!0)},w.prototype.get=function(e){var t=this.__data__,n=x(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return x(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,r=x(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new b,map:new(g||w),string:new b}},C.prototype.delete=function(e){return S(this,e).delete(e)},C.prototype.get=function(e){return S(this,e).get(e)},C.prototype.has=function(e){return S(this,e).has(e)},C.prototype.set=function(e,t){return S(this,e).set(e,t),this},_.Cache=C,e.exports=_}).call(this,n(3))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,i=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),s=Object.prototype.toString,f=Math.max,d=Math.min,p=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==s.call(t))return NaN;if(h(e)){var t,l="function"==typeof e.valueOf?e.valueOf():e;e=h(l)?l+"":l}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var u=o.test(e);return u||a.test(e)?i(e.slice(2),u?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,a,i,l,u,c=0,s=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function b(e){var n=e-u;return void 0===u||n>=t||n<0||v&&e-c>=a}function w(){var e,n=p();if(b(n))return C(n);l=setTimeout(w,(e=t-(n-u),v?d(e,a-(n-c)):e))}function C(e){return l=void 0,g&&r?y(e):(r=o=void 0,i)}function x(){var e,n=p(),a=b(n);if(r=arguments,o=this,u=n,a){if(void 0===l)return c=e=u,l=setTimeout(w,t),s?y(e):i;if(v)return l=setTimeout(w,t),y(u)}return void 0===l&&(l=setTimeout(w,t)),i}return t=m(t)||0,h(n)&&(s=!!n.leading,a=(v="maxWait"in n)?f(m(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),x.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=u=o=l=void 0},x.flush=function(){return void 0===l?i:C(p())},x}}).call(this,n(3))},function(e,t,n){(function(e,n){var r="[object Arguments]",o="[object Map]",a="[object Object]",i="[object Set]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,c=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[r]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[o]=h["[object Number]"]=h[a]=h["[object RegExp]"]=h[i]=h["[object String]"]=h["[object WeakMap]"]=!1;var m="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,g=m||v||Function("return this")(),y=t&&!t.nodeType&&t,b=y&&"object"==typeof n&&n&&!n.nodeType&&n,w=b&&b.exports===y&&m.process,C=function(){try{return w&&w.binding("util")}catch(e){}}(),x=C&&C.isTypedArray;function S(e,t,n,r){var o=-1,a=e?e.length:0;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function E(e,t,n,r,o){return o(e,function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)}),n}function _(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function O(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function k(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var T,j,P,A=Array.prototype,N=Function.prototype,R=Object.prototype,I=g["__core-js_shared__"],D=(T=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",L=N.toString,M=R.hasOwnProperty,F=R.toString,W=RegExp("^"+L.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=g.Symbol,V=g.Uint8Array,z=R.propertyIsEnumerable,H=A.splice,K=(j=Object.keys,P=Object,function(e){return j(P(e))}),Z=ew(g,"DataView"),$=ew(g,"Map"),U=ew(g,"Promise"),G=ew(g,"Set"),q=ew(g,"WeakMap"),Y=ew(Object,"create"),X=ek(Z),J=ek($),Q=ek(U),ee=ek(G),et=ek(q),en=B?B.prototype:void 0,er=en?en.valueOf:void 0,eo=en?en.toString:void 0;function ea(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ei(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function el(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eu(e){var t=-1,n=e?e.length:0;for(this.__data__=new el;++t<n;)this.add(e[t])}function ec(e){this.__data__=new ei(e)}function es(e,t){for(var n=e.length;n--;)if(ej(e[n][0],t))return n;return -1}ea.prototype.clear=function(){this.__data__=Y?Y(null):{}},ea.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ea.prototype.get=function(e){var t=this.__data__;if(Y){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return M.call(t,e)?t[e]:void 0},ea.prototype.has=function(e){var t=this.__data__;return Y?void 0!==t[e]:M.call(t,e)},ea.prototype.set=function(e,t){return this.__data__[e]=Y&&void 0===t?"__lodash_hash_undefined__":t,this},ei.prototype.clear=function(){this.__data__=[]},ei.prototype.delete=function(e){var t=this.__data__,n=es(t,e);return!(n<0)&&(n==t.length-1?t.pop():H.call(t,n,1),!0)},ei.prototype.get=function(e){var t=this.__data__,n=es(t,e);return n<0?void 0:t[n][1]},ei.prototype.has=function(e){return es(this.__data__,e)>-1},ei.prototype.set=function(e,t){var n=this.__data__,r=es(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},el.prototype.clear=function(){this.__data__={hash:new ea,map:new($||ei),string:new ea}},el.prototype.delete=function(e){return eb(this,e).delete(e)},el.prototype.get=function(e){return eb(this,e).get(e)},el.prototype.has=function(e){return eb(this,e).has(e)},el.prototype.set=function(e,t){return eb(this,e).set(e,t),this},eu.prototype.add=eu.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},eu.prototype.has=function(e){return this.__data__.has(e)},ec.prototype.clear=function(){this.__data__=new ei},ec.prototype.delete=function(e){return this.__data__.delete(e)},ec.prototype.get=function(e){return this.__data__.get(e)},ec.prototype.has=function(e){return this.__data__.has(e)},ec.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ei){var r=n.__data__;if(!$||r.length<199)return r.push([e,t]),this;n=this.__data__=new el(r)}return n.set(e,t),this};var ef,ed,ep=(ef=function(e,t){return e&&eh(e,t,eW)},function(e,t){if(null==e)return e;if(!eN(e))return ef(e,t);for(var n=e.length,r=ed?n:-1,o=Object(e);(ed?r--:++r<n)&&!1!==t(o[r],r,o););return e}),eh=function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var l=a[++r];if(!1===t(o[l],l,o))break}return e};function em(e,t){for(var n,r=0,o=(t=eS(t,e)?[t]:eA(n=t)?n:e_(n)).length;null!=e&&r<o;)e=e[eO(t[r++])];return r&&r==o?e:void 0}function ev(e,t){return null!=e&&t in Object(e)}function eg(e,t,n,l,u){return e===t||(null!=e&&null!=t&&(eD(e)||eL(t))?function(e,t,n,l,u,c){var s=eA(e),f=eA(t),d="[object Array]",p="[object Array]";s||(d=(d=eC(e))==r?a:d),f||(p=(p=eC(t))==r?a:p);var h=d==a&&!_(e),m=p==a&&!_(t),v=d==p;if(v&&!h)return c||(c=new ec),s||eF(e)?ey(e,t,n,l,u,c):function(e,t,n,r,a,l,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new V(e),new V(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ej(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case o:var c=O;case i:var s=2&l;if(c||(c=k),e.size!=t.size&&!s)break;var f=u.get(e);if(f)return f==t;l|=1,u.set(e,t);var d=ey(c(e),c(t),r,a,l,u);return u.delete(e),d;case"[object Symbol]":if(er)return er.call(e)==er.call(t)}return!1}(e,t,d,n,l,u,c);if(!(2&u)){var g=h&&M.call(e,"__wrapped__"),y=m&&M.call(t,"__wrapped__");if(g||y){var b=g?e.value():e,w=y?t.value():t;return c||(c=new ec),n(b,w,l,u,c)}}return!!v&&(c||(c=new ec),function(e,t,n,r,o,a){var i=2&o,l=eW(e),u=l.length;if(u!=eW(t).length&&!i)return!1;for(var c=u;c--;){var s=l[c];if(!(i?s in t:M.call(t,s)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var d=!0;a.set(e,t),a.set(t,e);for(var p=i;++c<u;){var h=e[s=l[c]],m=t[s];if(r)var v=i?r(m,h,s,t,e,a):r(h,m,s,e,t,a);if(!(void 0===v?h===m||n(h,m,r,o,a):v)){d=!1;break}p||(p="constructor"==s)}if(d&&!p){var g=e.constructor,y=t.constructor;g==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(d=!1)}return a.delete(e),a.delete(t),d}(e,t,n,l,u,c))}(e,t,eg,n,l,u):e!=e&&t!=t)}function ey(e,t,n,r,o,a){var i=2&o,l=e.length,u=t.length;if(l!=u&&!(i&&u>l))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var s=-1,f=!0,d=1&o?new eu:void 0;for(a.set(e,t),a.set(t,e);++s<l;){var p=e[s],h=t[s];if(r)var m=i?r(h,p,s,t,e,a):r(p,h,s,e,t,a);if(void 0!==m){if(m)continue;f=!1;break}if(d){if(!function(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}(t,function(e,t){if(!d.has(t)&&(p===e||n(p,e,r,o,a)))return d.add(t)})){f=!1;break}}else if(p!==h&&!n(p,h,r,o,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function eb(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function ew(e,t){var n=null==e?void 0:e[t];return!(!eD(n)||D&&D in n)&&(eR(n)||_(n)?W:d).test(ek(n))?n:void 0}var eC=function(e){return F.call(e)};function ex(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||p.test(e))&&e>-1&&e%1==0&&e<t}function eS(e,t){if(eA(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!eM(e))||u.test(e)||!l.test(e)||null!=t&&e in Object(t)}function eE(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(Z&&"[object DataView]"!=eC(new Z(new ArrayBuffer(1)))||$&&eC(new $)!=o||U&&"[object Promise]"!=eC(U.resolve())||G&&eC(new G)!=i||q&&"[object WeakMap]"!=eC(new q))&&(eC=function(e){var t=F.call(e),n=t==a?e.constructor:void 0,r=n?ek(n):void 0;if(r)switch(r){case X:return"[object DataView]";case J:return o;case Q:return"[object Promise]";case ee:return i;case et:return"[object WeakMap]"}return t});var e_=eT(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(eM(e))return eo?eo.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var t,n=[];return c.test(e)&&n.push(""),e.replace(s,function(e,t,r,o){n.push(r?o.replace(f,"$1"):t||e)}),n});function eO(e){if("string"==typeof e||eM(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ek(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eT(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(eT.Cache||el),n}function ej(e,t){return e===t||e!=e&&t!=t}function eP(e){return eL(e)&&eN(e)&&M.call(e,"callee")&&(!z.call(e,"callee")||F.call(e)==r)}eT.Cache=el;var eA=Array.isArray;function eN(e){return null!=e&&eI(e.length)&&!eR(e)}function eR(e){var t=eD(e)?F.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function eI(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function eD(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eL(e){return!!e&&"object"==typeof e}function eM(e){return"symbol"==typeof e||eL(e)&&"[object Symbol]"==F.call(e)}var eF=x?function(e){return x(e)}:function(e){return eL(e)&&eI(e.length)&&!!h[F.call(e)]};function eW(e){return eN(e)?function(e,t){var n=eA(e)||eP(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!M.call(e,a)||o&&("length"==a||ex(a,r))||n.push(a);return n}(e):function(e){if(n="function"==typeof(t=e&&e.constructor)&&t.prototype||R,e!==n)return K(e);var t,n,r=[];for(var o in Object(e))M.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function eB(e){return e}n.exports=function(e,t,n){var r,o,a,i,l,u=eA(e)?S:E,c=arguments.length<3;return u(e,"function"==typeof t?t:null==t?eB:"object"==typeof t?eA(t)?(a=t[0],i=t[1],eS(a)&&(r=i)==r&&!eD(r)?eE(eO(a),i):function(e){var t,n=void 0===(t=null==e?void 0:em(e,a))?void 0:t;return void 0===n&&n===i?null!=e&&function(e,t,n){var r;t=eS(t,e)?[t]:eA(r=t)?r:e_(r);for(var o,a=-1,i=t.length;++a<i;){var l=eO(t[a]);if(!(o=null!=e&&n(e,l)))break;e=e[l]}return o||!!(i=e?e.length:0)&&eI(i)&&ex(l,i)&&(eA(e)||eP(e))}(e,a,ev):eg(i,n,void 0,3)}):1==(l=function(e){for(var t=eW(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,o==o&&!eD(o)]}return t}(t)).length&&l[0][2]?eE(l[0][0],l[0][1]):function(e){return e===t||function(e,t,n,r){var o=n.length,a=o;if(null==e)return!a;for(e=Object(e);o--;){var i=n[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){var l=(i=n[o])[0],u=e[l],c=i[1];if(i[2]){if(void 0===u&&!(l in e))return!1}else{var s,f=new ec;if(!(void 0===s?eg(c,u,void 0,3,f):s))return!1}}return!0}(e,0,l)}:eS(t)?(o=eO(t),function(e){return null==e?void 0:e[o]}):function(e){return em(e,t)},n,c,ep)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||o(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e){if(Array.isArray(e))return e}function l(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function u(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s="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 f(e){return(f="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(e){return s(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":s(e)})(e)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t);var m=n(0),v=n.n(m),g=n(5),y=n.n(g),b=n(4),w=n.n(b),C=n(6),x=n.n(C),S=n(2),E=n.n(S),_=n(1),O=n.n(_);function k(e,t){return i(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||l()}n(8);var T=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["C\xf4te d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Cura\xe7ao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["R\xe9union",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],j=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barth\xe9lemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function P(e,t,n,o,i){var l,u,c=[];return u=!0===t,[(l=[]).concat.apply(l,a(e.map(function(e){var a,l,s={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:(a=e[3],(l=e[4])&&!i?n+"".padEnd(a.length,".")+" "+l:n+"".padEnd(a.length,".")+" "+o),priority:e[5]||0},f=[];return e[6]&&e[6].map(function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}({},s);n.dialCode=e[3]+t,n.isAreaCode=!0,n.areaCodeLength=t.length,f.push(n)}),f.length>0?(s.mainCode=!0,u||"Array"===t.constructor.name&&t.includes(e[2])?(s.hasAreaCodes=!0,[s].concat(f)):(c=c.concat(f),[s])):[s]}))),c]}function A(e,t,n,r){if(null!==n){var o=Object.keys(n),a=Object.values(n);o.forEach(function(n,o){if(r)return e.push([n,a[o]]);var i=e.findIndex(function(e){return e[0]===n});if(-1===i){var l=[n];l[t]=a[o],e.push(l)}else e[i][t]=a[o]})}}function N(e,t){return 0===t.length?e:e.map(function(e){var n=t.findIndex(function(t){return t[0]===e[2]});if(-1===n)return e;var r=t[n];return r[1]&&(e[4]=r[1]),r[3]&&(e[5]=r[3]),r[2]&&(e[6]=r[2]),e})}var R=function e(t,n,r,o,i,l,c,s,f,d,p,h,m,v){u(this,e),this.filterRegions=function(e,t){return"string"==typeof e?t.filter(function(t){return t.regions.some(function(t){return t===e})}):t.filter(function(t){return e.map(function(e){return t.regions.some(function(t){return t===e})}).some(function(e){return e})})},this.sortTerritories=function(e,t){var n=[].concat(a(e),a(t));return n.sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}),n},this.getFilteredCountryList=function(e,t,n){return 0===e.length?t:n?e.map(function(e){var n=t.find(function(t){return t.iso2===e});if(n)return n}).filter(function(e){return e}):t.filter(function(t){return e.some(function(e){return e===t.iso2})})},this.localizeCountries=function(e,t,n){for(var r=0;r<e.length;r++)void 0!==t[e[r].iso2]?e[r].localName=t[e[r].iso2]:void 0!==t[e[r].name]&&(e[r].localName=t[e[r].name]);return n||e.sort(function(e,t){return e.localName<t.localName?-1:e.localName>t.localName?1:0}),e},this.getCustomAreas=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=JSON.parse(JSON.stringify(e));o.dialCode+=t[r],n.push(o)}return n},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter(function(e){return!t.includes(e.iso2)})};var g,y=(A(g=[],1,s,!0),A(g,3,f),A(g,2,d),g),b=N(JSON.parse(JSON.stringify(T)),y),w=N(JSON.parse(JSON.stringify(j)),y),C=k(P(b,t,h,m,v),2),x=C[0],S=C[1];if(n){var E=k(P(w,t,h,m,v),2),_=E[0];E[1],x=this.sortTerritories(_,x)}r&&(x=this.filterRegions(r,x)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(o,x,c.includes("onlyCountries")),l),p,c.includes("onlyCountries")),this.preferredCountries=0===i.length?[]:this.localizeCountries(this.getFilteredCountryList(i,x,c.includes("preferredCountries")),p,c.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(o,S),l)},I=function(e){var t,n;function s(e){u(this,s),(n=(t=p(s).call(this,e))&&("object"===f(t)||"function"==typeof t)?t:d(this)).getProbableCandidate=w()(function(e){return e&&0!==e.length?n.state.onlyCountries.filter(function(t){return E()(t.name.toLowerCase(),e.toLowerCase())},d(d(n)))[0]:null}),n.guessSelectedCountry=w()(function(e,t,r,o){if(!1===n.props.enableAreaCodes&&(o.some(function(t){if(E()(e,t.dialCode))return r.some(function(e){if(t.iso2===e.iso2&&e.mainCode)return a=e,!0}),!0}),a))return a;var a,i=r.find(function(e){return e.iso2==t});if(""===e.trim())return i;var l=r.reduce(function(t,n){return E()(e,n.dialCode)&&(n.dialCode.length>t.dialCode.length||n.dialCode.length===t.dialCode.length&&n.priority<t.priority)?n:t},{dialCode:"",priority:10001},d(d(n)));return l.name?l:i}),n.updateCountry=function(e){var t,r=n.state.onlyCountries;(t=e.indexOf(0)>="0"&&"9">=e.indexOf(0)?r.find(function(t){return t.dialCode==+e}):r.find(function(t){return t.iso2==e}))&&t.dialCode&&n.setState({selectedCountry:t,formattedNumber:n.props.disableCountryCode?"":n.formatNumber(t.dialCode,t)})},n.scrollTo=function(e,t){if(e){var r=n.dropdownRef;if(r&&document.body){var o=r.offsetHeight,a=r.getBoundingClientRect().top+document.body.scrollTop,i=e.getBoundingClientRect(),l=e.offsetHeight,u=i.top+document.body.scrollTop,c=u-a+r.scrollTop,s=o/2-l/2;(n.props.enableSearch?u<a+32:u<a)?(t&&(c-=s),r.scrollTop=c):u+l>a+o&&(t&&(c+=s),r.scrollTop=c-(o-l))}}},n.scrollToTop=function(){var e=n.dropdownRef;e&&document.body&&(e.scrollTop=0)},n.formatNumber=function(e,t){if(!t)return e;var r,a=t.format,u=n.props,c=u.disableCountryCode,s=u.enableAreaCodeStretch,f=u.enableLongNumbers,d=u.autoFormat;if(c?((r=a.split(" ")).shift(),r=r.join(" ")):s&&t.isAreaCode?((r=a.split(" "))[1]=r[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),r=r.join(" ")):r=a,!e||0===e.length)return c?"":n.props.prefix;if(e&&e.length<2||!r||!d)return c?e:n.props.prefix+e;var p,h=x()(r,function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var n,r=i(n=e.remainingText)||o(n)||l(),a=r[0],u=r.slice(1);return{formattedText:e.formattedText+a,remainingText:u}},{formattedText:"",remainingText:e.split("")});return(p=f?h.formattedText+h.remainingText.join(""):h.formattedText).includes("(")&&!p.includes(")")&&(p+=")"),p},n.cursorToEnd=function(){var e=n.numberInputRef;if(document.activeElement===e){e.focus();var t=e.value.length;")"===e.value.charAt(t-1)&&(t-=1),e.setSelectionRange(t,t)}},n.getElement=function(e){return n["flag_no_".concat(e)]},n.getCountryData=function(){return n.state.selectedCountry?{name:n.state.selectedCountry.name||"",dialCode:n.state.selectedCountry.dialCode||"",countryCode:n.state.selectedCountry.iso2||"",format:n.state.selectedCountry.format||""}:{}},n.handleFlagDropdownClick=function(e){if(e.preventDefault(),n.state.showDropdown||!n.props.disabled){var t=n.state,r=t.preferredCountries,o=t.onlyCountries,a=t.selectedCountry,i=n.concatPreferredCountries(r,o).findIndex(function(e){return e.dialCode===a.dialCode&&e.iso2===a.iso2});n.setState({showDropdown:!n.state.showDropdown,highlightCountryIndex:i},function(){n.state.showDropdown&&n.scrollTo(n.getElement(n.state.highlightCountryIndex))})}},n.handleInput=function(e){var t=e.target.value,r=n.props,o=r.prefix,a=r.onChange,i=n.props.disableCountryCode?"":o,l=n.state.selectedCountry,u=n.state.freezeSelection;if(!n.props.countryCodeEditable){var c=o+(l.hasAreaCodes?n.state.onlyCountries.find(function(e){return e.iso2===l.iso2&&e.mainCode}).dialCode:l.dialCode);if(t.slice(0,c.length)!==c)return}if(t===o)return a&&a("",n.getCountryData(),e,""),n.setState({formattedNumber:""});if((!(t.replace(/\D/g,"").length>15)||!1!==n.props.enableLongNumbers&&("number"!=typeof n.props.enableLongNumbers||!(t.replace(/\D/g,"").length>n.props.enableLongNumbers)))&&t!==n.state.formattedNumber){e.preventDefault?e.preventDefault():e.returnValue=!1;var s=n.props.country,f=n.state,d=f.onlyCountries,p=f.selectedCountry,h=f.hiddenAreaCodes;if(a&&e.persist(),t.length>0){var m=t.replace(/\D/g,"");(!n.state.freezeSelection||p&&p.dialCode.length>m.length)&&(l=n.props.disableCountryGuess?p:n.guessSelectedCountry(m.substring(0,6),s,d,h)||p,u=!1),i=n.formatNumber(m,l),l=l.dialCode?l:p}var v=e.target.selectionStart,g=e.target.selectionStart,y=n.state.formattedNumber,b=i.length-y.length;n.setState({formattedNumber:i,freezeSelection:u,selectedCountry:l},function(){b>0&&(g-=b),")"==i.charAt(i.length-1)?n.numberInputRef.setSelectionRange(i.length-1,i.length-1):g>0&&y.length>=i.length?n.numberInputRef.setSelectionRange(g,g):v<y.length&&n.numberInputRef.setSelectionRange(v,v),a&&a(i.replace(/[^0-9]+/g,""),n.getCountryData(),e,i)})}},n.handleInputClick=function(e){n.setState({showDropdown:!1}),n.props.onClick&&n.props.onClick(e,n.getCountryData())},n.handleDoubleClick=function(e){var t=e.target.value.length;e.target.setSelectionRange(0,t)},n.handleFlagItemClick=function(e,t){var r=n.state.selectedCountry,o=n.state.onlyCountries.find(function(t){return t==e});if(o){var a=n.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),i=a.length>1?a.replace(r.dialCode,o.dialCode):o.dialCode,l=n.formatNumber(i.replace(/\D/g,""),o);n.setState({showDropdown:!1,selectedCountry:o,freezeSelection:!0,formattedNumber:l,searchValue:""},function(){n.cursorToEnd(),n.props.onChange&&n.props.onChange(l.replace(/[^0-9]+/g,""),n.getCountryData(),t,l)})}},n.handleInputFocus=function(e){n.numberInputRef&&n.numberInputRef.value===n.props.prefix&&n.state.selectedCountry&&!n.props.disableCountryCode&&n.setState({formattedNumber:n.props.prefix+n.state.selectedCountry.dialCode},function(){n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)}),n.setState({placeholder:""}),n.props.onFocus&&n.props.onFocus(e,n.getCountryData()),n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)},n.handleInputBlur=function(e){e.target.value||n.setState({placeholder:n.props.placeholder}),n.props.onBlur&&n.props.onBlur(e,n.getCountryData())},n.handleInputCopy=function(e){if(n.props.copyNumbersOnly){var t=window.getSelection().toString().replace(/[^0-9]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},n.getHighlightCountryIndex=function(e){var t=n.state.highlightCountryIndex+e;return t<0||t>=n.state.onlyCountries.length+n.state.preferredCountries.length?t-e:n.props.enableSearch&&t>n.getSearchFilteredCountries().length?0:t},n.searchCountry=function(){var e=n.getProbableCandidate(n.state.queryString)||n.state.onlyCountries[0],t=n.state.onlyCountries.findIndex(function(t){return t==e})+n.state.preferredCountries.length;n.scrollTo(n.getElement(t),!0),n.setState({queryString:"",highlightCountryIndex:t})},n.handleKeydown=function(e){var t=n.props.keys,r=e.target.className;if(r.includes("selected-flag")&&e.which===t.ENTER&&!n.state.showDropdown)return n.handleFlagDropdownClick(e);if(r.includes("form-control")&&(e.which===t.ENTER||e.which===t.ESC))return e.target.blur();if(n.state.showDropdown&&!n.props.disabled&&(!r.includes("search-box")||e.which===t.UP||e.which===t.DOWN||e.which===t.ENTER||e.which===t.ESC&&""===e.target.value)){e.preventDefault?e.preventDefault():e.returnValue=!1;var o=function(e){n.setState({highlightCountryIndex:n.getHighlightCountryIndex(e)},function(){n.scrollTo(n.getElement(n.state.highlightCountryIndex),!0)})};switch(e.which){case t.DOWN:o(1);break;case t.UP:o(-1);break;case t.ENTER:n.props.enableSearch?n.handleFlagItemClick(n.getSearchFilteredCountries()[n.state.highlightCountryIndex]||n.getSearchFilteredCountries()[0],e):n.handleFlagItemClick([].concat(a(n.state.preferredCountries),a(n.state.onlyCountries))[n.state.highlightCountryIndex],e);break;case t.ESC:case t.TAB:n.setState({showDropdown:!1},n.cursorToEnd);break;default:(e.which>=t.A&&e.which<=t.Z||e.which===t.SPACE)&&n.setState({queryString:n.state.queryString+String.fromCharCode(e.which)},n.state.debouncedQueryStingSearcher)}}},n.handleInputKeyDown=function(e){var t=n.props,r=t.keys,o=t.onEnterKeyPress,a=t.onKeyDown;e.which===r.ENTER&&o&&o(e),a&&a(e)},n.handleClickOutside=function(e){n.dropdownRef&&!n.dropdownContainerRef.contains(e.target)&&n.state.showDropdown&&n.setState({showDropdown:!1})},n.handleSearchChange=function(e){var t=e.currentTarget.value,r=n.state,o=r.preferredCountries,a=r.selectedCountry,i=0;if(""===t&&a){var l=n.state.onlyCountries;i=n.concatPreferredCountries(o,l).findIndex(function(e){return e==a}),setTimeout(function(){return n.scrollTo(n.getElement(i))},100)}n.setState({searchValue:t,highlightCountryIndex:i})},n.concatPreferredCountries=function(e,t){return e.length>0?a(new Set(e.concat(t))):t},n.getDropdownCountryName=function(e){return e.localName||e.name},n.getSearchFilteredCountries=function(){var e=n.state,t=e.preferredCountries,r=e.onlyCountries,o=e.searchValue,i=n.props.enableSearch,l=n.concatPreferredCountries(t,r),u=o.trim().toLowerCase().replace("+","");if(i&&u){if(/^\d+$/.test(u))return l.filter(function(e){var t=e.dialCode;return["".concat(t)].some(function(e){return e.toLowerCase().includes(u)})});var c=l.filter(function(e){var t=e.iso2;return["".concat(t)].some(function(e){return e.toLowerCase().includes(u)})}),s=l.filter(function(e){var t=e.name,n=e.localName;return e.iso2,["".concat(t),"".concat(n||"")].some(function(e){return e.toLowerCase().includes(u)})});return n.scrollToTop(),a(new Set([].concat(c,s)))}return l},n.getCountryDropdownList=function(){var e=n.state,t=e.preferredCountries,o=e.highlightCountryIndex,a=e.showDropdown,i=e.searchValue,l=n.props,u=l.disableDropdown,c=l.prefix,s=n.props,f=s.enableSearch,d=s.searchNotFound,p=s.disableSearchIcon,h=s.searchClass,m=s.searchStyle,g=s.searchPlaceholder,y=s.autocompleteSearch,b=n.getSearchFilteredCountries().map(function(e,t){var r=o===t,a=O()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:r}),i="flag ".concat(e.iso2);return v.a.createElement("li",Object.assign({ref:function(e){return n["flag_no_".concat(t)]=e},key:"flag_no_".concat(t),"data-flag-key":"flag_no_".concat(t),className:a,"data-dial-code":"1",tabIndex:u?"-1":"0","data-country-code":e.iso2,onClick:function(t){return n.handleFlagItemClick(e,t)},role:"option"},r?{"aria-selected":!0}:{}),v.a.createElement("div",{className:i}),v.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),v.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e):c+e.dialCode))}),w=v.a.createElement("li",{key:"dashes",className:"divider"});t.length>0&&(!f||f&&!i.trim())&&b.splice(t.length,0,w);var C=O()(r({"country-list":!0,hide:!a},n.props.dropdownClass,!0));return v.a.createElement("ul",{ref:function(e){return!f&&e&&e.focus(),n.dropdownRef=e},className:C,style:n.props.dropdownStyle,role:"listbox",tabIndex:"0"},f&&v.a.createElement("li",{className:O()(r({search:!0},h,h))},!p&&v.a.createElement("span",{className:O()(r({"search-emoji":!0},"".concat(h,"-emoji"),h)),role:"img","aria-label":"Magnifying glass"},"\uD83D\uDD0E"),v.a.createElement("input",{className:O()(r({"search-box":!0},"".concat(h,"-box"),h)),style:m,type:"search",placeholder:g,autoFocus:!0,autoComplete:y?"on":"off",value:i,onChange:n.handleSearchChange})),b.length>0?b:v.a.createElement("li",{className:"no-entries-message"},v.a.createElement("span",null,d)))};var t,n,c,h=new R(e.enableAreaCodes,e.enableTerritories,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.masks,e.priority,e.areaCodes,e.localization,e.prefix,e.defaultMask,e.alwaysDefaultMask),m=h.onlyCountries,g=h.preferredCountries,b=h.hiddenAreaCodes,C=e.value?e.value.replace(/\D/g,""):"";c=e.disableInitialCountryGuess?0:C.length>1?n.guessSelectedCountry(C.substring(0,6),e.country,m,b)||0:e.country&&m.find(function(t){return t.iso2==e.country})||0;var S,_=C.length<2&&c&&!E()(C,c.dialCode)?c.dialCode:"";S=""===C&&0===c?"":n.formatNumber((e.disableCountryCode?"":_)+C,c.name?c:void 0);var k=m.findIndex(function(e){return e==c});return n.state={showDropdown:e.showDropdown,formattedNumber:S,onlyCountries:m,preferredCountries:g,hiddenAreaCodes:b,selectedCountry:c,highlightCountryIndex:k,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:y()(n.searchCountry,250),searchValue:""},n}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(s,e),t=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(e,t,n){e.country!==this.props.country?this.updateCountry(this.props.country):e.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(e){if(null===e)return this.setState({selectedCountry:0,formattedNumber:""});var t=this.state,n=t.onlyCountries,r=t.selectedCountry,o=t.hiddenAreaCodes,a=this.props,i=a.country,l=a.prefix;if(""===e)return this.setState({selectedCountry:r,formattedNumber:""});var u,c,s=e.replace(/\D/g,"");if(r&&E()(e,l+r.dialCode))c=this.formatNumber(s,r),this.setState({formattedNumber:c});else{var f=(u=this.props.disableCountryGuess?r:this.guessSelectedCountry(s.substring(0,6),i,n,o)||r)&&E()(s,l+u.dialCode)?u.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":f)+s,u||void 0),this.setState({selectedCountry:u,formattedNumber:c})}}},{key:"render",value:function(){var e,t,n,o=this,a=this.state,i=a.onlyCountries,l=a.selectedCountry,u=a.showDropdown,c=a.formattedNumber,s=a.hiddenAreaCodes,f=this.props,d=f.disableDropdown,p=f.renderStringAsFlag,h=f.isValid,m=f.defaultErrorMessage,g=f.specialLabel;if("boolean"==typeof h)t=h;else{var y=h(c.replace(/\D/g,""),l,i,s);"boolean"==typeof y?!1===(t=y)&&(n=m):(t=!1,n=y)}var b=O()((r(e={},this.props.containerClass,!0),r(e,"react-tel-input",!0),e)),w=O()({arrow:!0,up:u}),C=O()(r({"form-control":!0,"invalid-number":!t,open:u},this.props.inputClass,!0)),x=O()({"selected-flag":!0,open:u}),S=O()(r({"flag-dropdown":!0,"invalid-number":!t,open:u},this.props.buttonClass,!0)),E="flag ".concat(l&&l.iso2);return v.a.createElement("div",{className:"".concat(b," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},g&&v.a.createElement("div",{className:"special-label"},g),n&&v.a.createElement("div",{className:"invalid-number-message"},n),v.a.createElement("input",Object.assign({className:C,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:c,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(e){o.numberInputRef=e,"function"==typeof o.props.inputProps.ref?o.props.inputProps.ref(e):"object"==typeof o.props.inputProps.ref&&(o.props.inputProps.ref.current=e)}})),v.a.createElement("div",{className:S,style:this.props.buttonStyle,ref:function(e){return o.dropdownContainerRef=e}},p?v.a.createElement("div",{className:x},p):v.a.createElement("div",{onClick:d?void 0:this.handleFlagDropdownClick,className:x,title:l?"".concat(l.localName||l.name,": + ").concat(l.dialCode):"",tabIndex:d?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!u||void 0},v.a.createElement("div",{className:E},!d&&v.a.createElement("div",{className:w}))),u&&this.getCountryDropdownList()))}}],c(s.prototype,t),n&&c(s,n),s}(v.a.Component);I.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=I}])},8243:function(e,t,n){"use strict";let r;n.d(t,{VY:function(){return nZ},ZA:function(){return nU},JO:function(){return nH},ck:function(){return nq},wU:function(){return nX},eT:function(){return nY},__:function(){return nG},h_:function(){return nK},fC:function(){return nB},$G:function(){return nQ},u_:function(){return nJ},Z0:function(){return n0},xz:function(){return nV},B4:function(){return nz},l_:function(){return n$}});var o,a,i,l,u,c,s,f=n(2988),d=n(2265),p=n.t(d,2),h=n(4887);function m(e,[t,n]){return Math.min(n,Math.max(t,e))}var v=n(8149),g=n(976),y=n(1584),b=n(8324);let w=(0,d.createContext)(void 0);var C=n(3938);let x=0;function S(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var E=n(5171),_=n(5137);let O="focusScope.autoFocusOnMount",k="focusScope.autoFocusOnUnmount",T={bubbles:!1,cancelable:!0},j=(0,d.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,u]=(0,d.useState)(null),c=(0,_.W)(o),s=(0,_.W)(a),p=(0,d.useRef)(null),h=(0,y.e)(t,e=>u(e)),m=(0,d.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,d.useEffect)(()=>{if(r){function e(e){if(m.paused||!l)return;let t=e.target;l.contains(t)?p.current=t:N(p.current,{select:!0})}function t(e){if(m.paused||!l)return;let t=e.relatedTarget;null===t||l.contains(t)||N(p.current,{select:!0})}document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&N(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,m.paused]),(0,d.useEffect)(()=>{if(l){R.add(m);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(O,T);l.addEventListener(O,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(N(r,{select:t}),document.activeElement!==n)return}(P(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&N(l))}return()=>{l.removeEventListener(O,c),setTimeout(()=>{let t=new CustomEvent(k,T);l.addEventListener(k,s),l.dispatchEvent(t),t.defaultPrevented||N(null!=e?e:document.body,{select:!0}),l.removeEventListener(k,s),R.remove(m)},0)}}},[l,c,s,m]);let v=(0,d.useCallback)(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=function(e){let t=P(e);return[A(t,e),A(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&N(a,{select:!0})):(e.preventDefault(),n&&N(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,d.createElement)(E.WV.div,(0,f.Z)({tabIndex:-1},i,{ref:h,onKeyDown:v}))});function P(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function A(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function N(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let R=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=I(r,e)).unshift(e)},remove(e){var t;null===(t=(r=I(r,e))[0])||void 0===t||t.resume()}});function I(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var D=n(1336);let L=p["useId".toString()]||(()=>void 0),M=0;function F(e){let[t,n]=d.useState(L());return(0,D.b)(()=>{e||n(e=>null!=e?e:String(M++))},[e]),e||(t?`radix-${t}`:"")}let W=["top","right","bottom","left"],B=Math.min,V=Math.max,z=Math.round,H=Math.floor,K=e=>({x:e,y:e}),Z={left:"right",right:"left",bottom:"top",top:"bottom"},$={start:"end",end:"start"};function U(e,t){return"function"==typeof e?e(t):e}function G(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function Y(e){return"x"===e?"y":"x"}function X(e){return"y"===e?"height":"width"}function J(e){return["top","bottom"].includes(G(e))?"y":"x"}function Q(e){return e.replace(/start|end/g,e=>$[e])}function ee(e){return e.replace(/left|right|bottom|top/g,e=>Z[e])}function et(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function en(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function er(e,t,n){let r,{reference:o,floating:a}=e,i=J(t),l=Y(J(t)),u=X(l),c=G(t),s="y"===i,f=o.x+o.width/2-a.width/2,d=o.y+o.height/2-a.height/2,p=o[u]/2-a[u]/2;switch(c){case"top":r={x:f,y:o.y-a.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-a.width,y:d};break;default:r={x:o.x,y:o.y}}switch(q(t)){case"start":r[l]-=p*(n&&s?-1:1);break;case"end":r[l]+=p*(n&&s?-1:1)}return r}let eo=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),u=await (null==i.isRTL?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=er(c,r,u),d=r,p={},h=0;for(let n=0;n<l.length;n++){let{name:a,fn:m}=l[n],{x:v,y:g,data:y,reset:b}=await m({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});s=null!=v?v:s,f=null!=g?g:f,p={...p,[a]:{...p[a],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:s,y:f}=er(c,d,u)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:p}};async function ea(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:a,rects:i,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=U(t,e),h=et(p),m=l[d?"floating"===f?"reference":"floating":f],v=en(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===f?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),b=await (null==a.isElement?void 0:a.isElement(y))&&await (null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=en(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:u}):g);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}function ei(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function el(e){return W.some(t=>e[t]>=0)}async function eu(e,t){let{placement:n,platform:r,elements:o}=e,a=await (null==r.isRTL?void 0:r.isRTL(o.floating)),i=G(n),l=q(n),u="y"===J(n),c=["left","top"].includes(i)?-1:1,s=a&&u?-1:1,f=U(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}function ec(e){return ed(e)?(e.nodeName||"").toLowerCase():"#document"}function es(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ef(e){var t;return null==(t=(ed(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ed(e){return e instanceof Node||e instanceof es(e).Node}function ep(e){return e instanceof Element||e instanceof es(e).Element}function eh(e){return e instanceof HTMLElement||e instanceof es(e).HTMLElement}function em(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof es(e).ShadowRoot)}function ev(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ew(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function eg(e){let t=ey(),n=ew(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function ey(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function eb(e){return["html","body","#document"].includes(ec(e))}function ew(e){return es(e).getComputedStyle(e)}function eC(e){return ep(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ex(e){if("html"===ec(e))return e;let t=e.assignedSlot||e.parentNode||em(e)&&e.host||ef(e);return em(t)?t.host:t}function eS(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ex(t);return eb(n)?t.ownerDocument?t.ownerDocument.body:t.body:eh(n)&&ev(n)?n:e(n)}(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=es(o);return a?t.concat(i,i.visualViewport||[],ev(o)?o:[],i.frameElement&&n?eS(i.frameElement):[]):t.concat(o,eS(o,[],n))}function eE(e){let t=ew(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=eh(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=z(n)!==a||z(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function e_(e){return ep(e)?e:e.contextElement}function eO(e){let t=e_(e);if(!eh(t))return K(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:a}=eE(t),i=(a?z(n.width):n.width)/r,l=(a?z(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}let ek=K(0);function eT(e){let t=es(e);return ey()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ek}function ej(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),i=e_(e),l=K(1);t&&(r?ep(r)&&(l=eO(r)):l=eO(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===es(i))&&o)?eT(i):K(0),c=(a.left+u.x)/l.x,s=(a.top+u.y)/l.y,f=a.width/l.x,d=a.height/l.y;if(i){let e=es(i),t=r&&ep(r)?es(r):r,n=e,o=n.frameElement;for(;o&&r&&t!==n;){let e=eO(o),t=o.getBoundingClientRect(),r=ew(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,f*=e.x,d*=e.y,c+=a,s+=i,o=(n=es(o)).frameElement}}return en({width:f,height:d,x:c,y:s})}let eP=[":popover-open",":modal"];function eA(e){return eP.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function eN(e){return ej(ef(e)).left+eC(e).scrollLeft}function eR(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=es(e),r=ef(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;let e=ey();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l,y:u}}(e,n);else if("document"===t)r=function(e){let t=ef(e),n=eC(e),r=e.ownerDocument.body,o=V(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=V(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-n.scrollLeft+eN(e),l=-n.scrollTop;return"rtl"===ew(r).direction&&(i+=V(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(ef(e));else if(ep(t))r=function(e,t){let n=ej(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=eh(e)?eO(e):K(1),i=e.clientWidth*a.x;return{width:i,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{let n=eT(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return en(r)}function eI(e){return"static"===ew(e).position}function eD(e,t){return eh(e)&&"fixed"!==ew(e).position?t?t(e):e.offsetParent:null}function eL(e,t){let n=es(e);if(eA(e))return n;if(!eh(e)){let t=ex(e);for(;t&&!eb(t);){if(ep(t)&&!eI(t))return t;t=ex(t)}return n}let r=eD(e,t);for(;r&&["table","td","th"].includes(ec(r))&&eI(r);)r=eD(r,t);return r&&eb(r)&&eI(r)&&!eg(r)?n:r||function(e){let t=ex(e);for(;eh(t)&&!eb(t);){if(eg(t))return t;t=ex(t)}return null}(e)||n}let eM=async function(e){let t=this.getOffsetParent||eL,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eh(t),o=ef(t),a="fixed"===n,i=ej(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=K(0);if(r||!r&&!a){if(("body"!==ec(t)||ev(o))&&(l=eC(t)),r){let e=ej(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eN(o))}return{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eF={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,a="fixed"===o,i=ef(r),l=!!t&&eA(t.floating);if(r===i||l&&a)return n;let u={scrollLeft:0,scrollTop:0},c=K(1),s=K(0),f=eh(r);if((f||!f&&!a)&&(("body"!==ec(r)||ev(i))&&(u=eC(r)),eh(r))){let e=ej(r);c=eO(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x,y:n.y*c.y-u.scrollTop*c.y+s.y}},getDocumentElement:ef,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?eA(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eS(e,[],!1).filter(e=>ep(e)&&"body"!==ec(e)),o=null,a="fixed"===ew(e).position,i=a?ex(e):e;for(;ep(i)&&!eb(i);){let t=ew(i),n=eg(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||ev(i)&&!n&&function e(t,n){let r=ex(t);return!(r===n||!ep(r)||eb(r))&&("fixed"===ew(r).position||e(r,n))}(e,i))?r=r.filter(e=>e!==i):o=t,i=ex(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],l=a.reduce((e,n)=>{let r=eR(t,n,o);return e.top=V(r.top,e.top),e.right=B(r.right,e.right),e.bottom=B(r.bottom,e.bottom),e.left=V(r.left,e.left),e},eR(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:eL,getElementRects:eM,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eE(e);return{width:t,height:n}},getScale:eO,isElement:ep,isRTL:function(e){return"rtl"===ew(e).direction}},eW=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:u}=t,{element:c,padding:s=0}=U(e,t)||{};if(null==c)return{};let f=et(s),d={x:n,y:r},p=Y(J(o)),h=X(p),m=await i.getDimensions(c),v="y"===p,g=v?"clientHeight":"clientWidth",y=a.reference[h]+a.reference[p]-d[p]-a.floating[h],b=d[p]-a.reference[p],w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(c)),C=w?w[g]:0;C&&await (null==i.isElement?void 0:i.isElement(w))||(C=l.floating[g]||a.floating[h]);let x=C/2-m[h]/2-1,S=B(f[v?"top":"left"],x),E=B(f[v?"bottom":"right"],x),_=C-m[h]-E,O=C/2-m[h]/2+(y/2-b/2),k=V(S,B(O,_)),T=!u.arrow&&null!=q(o)&&O!==k&&a.reference[h]/2-(O<S?S:E)-m[h]/2<0,j=T?O<S?O-S:O-_:0;return{[p]:d[p]+j,data:{[p]:k,centerOffset:O-k-j,...T&&{alignmentOffset:j}},reset:T}}}),eB=(e,t,n)=>{let r=new Map,o={platform:eF,...n},a={...o.platform,_c:r};return eo(e,t,{...o,platform:a})};var eV="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;function ez(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ez(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ez(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eH(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eK(e,t){let n=eH(e);return Math.round(t*n)/n}function eZ(e){let t=d.useRef(e);return eV(()=>{t.current=e}),t}let e$=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eW({element:n.current,padding:r}).fn(t):{}:n?eW({element:n,padding:r}).fn(t):{}}}),eU=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:a,placement:i,middlewareData:l}=e,u=await eu(e,n);return i===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}),options:[e,t]}},eG=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=U(n,e),c={x:t,y:r},s=await ea(e,u),f=J(G(o)),d=Y(f),p=c[d],h=c[f];if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+s[e],r=p-s[t];p=V(n,B(p,r))}if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+s[e],r=h-s[t];h=V(n,B(h,r))}let m=l.fn({...e,[d]:p,[f]:h});return{...m,data:{x:m.x-t,y:m.y-r}}}}),options:[e,t]}},eq=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:a,middlewareData:i}=e,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=U(n,e),s={x:t,y:r},f=J(o),d=Y(f),p=s[d],h=s[f],m=U(l,e),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let e="y"===d?"height":"width",t=a.reference[d]-a.floating[e]+v.mainAxis,n=a.reference[d]+a.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,y;let e="y"===d?"width":"height",t=["top","left"].includes(G(o)),n=a.reference[f]-a.floating[e]+(t&&(null==(g=i.offset)?void 0:g[f])||0)+(t?0:v.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[f])||0)-(t?v.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[d]:p,[f]:h}}}),options:[e,t]}},eY=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,a,i;let{placement:l,middlewareData:u,rects:c,initialPlacement:s,platform:f,elements:d}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...b}=U(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let w=G(l),C=G(s)===s,x=await (null==f.isRTL?void 0:f.isRTL(d.floating)),S=m||(C||!y?[ee(s)]:function(e){let t=ee(e);return[Q(e),t,Q(t)]}(s));m||"none"===g||S.push(...function(e,t,n,r){let o=q(e),a=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(G(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(Q)))),a}(s,y,g,x));let E=[s,...S],_=await ea(e,b),O=[],k=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&O.push(_[w]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=q(e),o=Y(J(e)),a=X(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=ee(i)),[i,ee(i)]}(l,c,x);O.push(_[e[0]],_[e[1]])}if(k=[...k,{placement:l,overflows:O}],!O.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(a=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(v){case"bestFit":{let e=null==(i=k.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=s}if(l!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eX=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r;let{placement:o,rects:a,platform:i,elements:l}=e,{apply:u=()=>{},...c}=U(n,e),s=await ea(e,c),f=G(o),d=q(o),p="y"===J(o),{width:h,height:m}=a.floating;"top"===f||"bottom"===f?(t=f,r=d===(await (null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(r=f,t="end"===d?"top":"bottom");let v=m-s.top-s.bottom,g=h-s.left-s.right,y=B(m-s[t],v),b=B(h-s[r],g),w=!e.middlewareData.shift,C=y,x=b;if(p?x=d||w?B(b,g):g:C=d||w?B(y,v):v,w&&!d){let e=V(s.left,0),t=V(s.right,0),n=V(s.top,0),r=V(s.bottom,0);p?x=h-2*(0!==e||0!==t?e+t:V(s.left,s.right)):C=m-2*(0!==n||0!==r?n+r:V(s.top,s.bottom))}await u({...e,availableWidth:x,availableHeight:C});let S=await i.getDimensions(l.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eJ=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=U(n,e);switch(r){case"referenceHidden":{let n=ei(await ea(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:el(n)}}}case"escaped":{let n=ei(await ea(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:el(n)}}}default:return{}}}}),options:[e,t]}},eQ=(e,t)=>({...e$(e),options:[e,t]}),e0=(0,d.forwardRef)((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,d.createElement)(E.WV.svg,(0,f.Z)({},a,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,d.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),e1="Popper",[e2,e3]=(0,b.b)(e1),[e6,e5]=e2(e1),e9=(0,d.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,a=e5("PopperAnchor",n),i=(0,d.useRef)(null),l=(0,y.e)(t,i);return(0,d.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||i.current)}),r?null:(0,d.createElement)(E.WV.div,(0,f.Z)({},o,{ref:l}))}),e8="PopperContent",[e7,e4]=e2(e8),te=(0,d.forwardRef)((e,t)=>{var n,r,o,a,i,l,u,c;let{__scopePopper:s,side:p="bottom",sideOffset:m=0,align:v="center",alignOffset:g=0,arrowPadding:b=0,avoidCollisions:w=!0,collisionBoundary:C=[],collisionPadding:x=0,sticky:S="partial",hideWhenDetached:O=!1,updatePositionStrategy:k="optimized",onPlaced:T,...j}=e,P=e5(e8,s),[A,N]=(0,d.useState)(null),R=(0,y.e)(t,e=>N(e)),[I,L]=(0,d.useState)(null),M=function(e){let[t,n]=(0,d.useState)(void 0);return(0,D.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(I),F=null!==(n=null==M?void 0:M.width)&&void 0!==n?n:0,W=null!==(r=null==M?void 0:M.height)&&void 0!==r?r:0,z="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},K=Array.isArray(C)?C:[C],Z=K.length>0,$={padding:z,boundary:K.filter(tn),altBoundary:Z},{refs:U,floatingStyles:G,placement:q,isPositioned:Y,middlewareData:X}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[s,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=d.useState(r);ez(p,r)||m(r);let[v,g]=d.useState(null),[y,b]=d.useState(null),w=d.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),C=d.useCallback(e=>{e!==_.current&&(_.current=e,b(e))},[]),x=a||v,S=i||y,E=d.useRef(null),_=d.useRef(null),O=d.useRef(s),k=null!=u,T=eZ(u),j=eZ(o),P=d.useCallback(()=>{if(!E.current||!_.current)return;let e={placement:t,strategy:n,middleware:p};j.current&&(e.platform=j.current),eB(E.current,_.current,e).then(e=>{let t={...e,isPositioned:!0};A.current&&!ez(O.current,t)&&(O.current=t,h.flushSync(()=>{f(t)}))})},[p,t,n,j]);eV(()=>{!1===c&&O.current.isPositioned&&(O.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let A=d.useRef(!1);eV(()=>(A.current=!0,()=>{A.current=!1}),[]),eV(()=>{if(x&&(E.current=x),S&&(_.current=S),x&&S){if(T.current)return T.current(x,S,P);P()}},[x,S,P,T,k]);let N=d.useMemo(()=>({reference:E,floating:_,setReference:w,setFloating:C}),[w,C]),R=d.useMemo(()=>({reference:x,floating:S}),[x,S]),I=d.useMemo(()=>{let e={position:n,left:0,top:0};if(!R.floating)return e;let t=eK(R.floating,s.x),r=eK(R.floating,s.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eH(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,R.floating,s.x,s.y]);return d.useMemo(()=>({...s,update:P,refs:N,elements:R,floatingStyles:I}),[s,P,N,R,I])}({strategy:"fixed",placement:p+("center"!==v?"-"+v:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=e_(e),f=a||i?[...s?eS(s):[],...eS(t)]:[];f.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let d=s&&u?function(e,t){let n,r=null,o=ef(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function i(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),a();let{left:c,top:s,width:f,height:d}=e.getBoundingClientRect();if(l||t(),!f||!d)return;let p=H(s),h=H(o.clientWidth-(c+f)),m={rootMargin:-p+"px "+-h+"px "+-H(o.clientHeight-(s+d))+"px "+-H(c)+"px",threshold:V(0,B(1,u))||1},v=!0;function g(e){let t=e[0].intersectionRatio;if(t!==u){if(!v)return i();t?i(!1,t):n=setTimeout(()=>{i(!1,1e-7)},1e3)}v=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),a}(s,n):null,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),s&&!c&&h.observe(s),h.observe(t));let m=c?ej(e):null;return c&&function t(){let r=ej(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===k}),elements:{reference:P.anchor},middleware:[eU({mainAxis:m+W,alignmentAxis:g}),w&&eG({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?eq():void 0,...$}),w&&eY({...$}),eX({...$,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),I&&eQ({element:I,padding:b}),tr({arrowWidth:F,arrowHeight:W}),O&&eJ({strategy:"referenceHidden",...$})]}),[J,Q]=to(q),ee=(0,_.W)(T);(0,D.b)(()=>{Y&&(null==ee||ee())},[Y,ee]);let et=null===(o=X.arrow)||void 0===o?void 0:o.x,en=null===(a=X.arrow)||void 0===a?void 0:a.y,er=(null===(i=X.arrow)||void 0===i?void 0:i.centerOffset)!==0,[eo,ea]=(0,d.useState)();return(0,D.b)(()=>{A&&ea(window.getComputedStyle(A).zIndex)},[A]),(0,d.createElement)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:Y?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eo,"--radix-popper-transform-origin":[null===(l=X.transformOrigin)||void 0===l?void 0:l.x,null===(u=X.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,d.createElement)(e7,{scope:s,placedSide:J,onArrowChange:L,arrowX:et,arrowY:en,shouldHideArrow:er},(0,d.createElement)(E.WV.div,(0,f.Z)({"data-side":J,"data-align":Q},j,{ref:R,style:{...j.style,animation:Y?void 0:"none",opacity:null!==(c=X.hide)&&void 0!==c&&c.referenceHidden?0:void 0}}))))}),tt={top:"bottom",right:"left",bottom:"top",left:"right"};function tn(e){return null!==e}let tr=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:l,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[p,h]=to(l),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+f/2,g=(null!==(a=null===(i=c.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+d/2,y="",b="";return"bottom"===p?(y=s?m:`${v}px`,b=`${-d}px`):"top"===p?(y=s?m:`${v}px`,b=`${u.floating.height+d}px`):"right"===p?(y=`${-d}px`,b=s?m:`${g}px`):"left"===p&&(y=`${u.floating.width+d}px`,b=s?m:`${g}px`),{data:{x:y,y:b}}}});function to(e){let[t,n="center"]=e.split("-");return[t,n]}let ta=e=>{let{__scopePopper:t,children:n}=e,[r,o]=(0,d.useState)(null);return(0,d.createElement)(e6,{scope:t,anchor:r,onAnchorChange:o},n)};var ti=n(6935),tl=n(1538),tu=n(1715),tc=n(1725),ts=new WeakMap,tf=new WeakMap,td={},tp=0,th=function(e){return e&&(e.host||th(e.parentNode))},tm=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=th(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});td[n]||(td[n]=new WeakMap);var a=td[n],i=[],l=new Set,u=new Set(o),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(ts.get(e)||0)+1,c=(a.get(e)||0)+1;ts.set(e,u),a.set(e,c),i.push(e),1===u&&o&&tf.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),l.clear(),tp++,function(){i.forEach(function(e){var t=ts.get(e)-1,o=a.get(e)-1;ts.set(e,t),a.set(e,o),t||(tf.has(e)||e.removeAttribute(r),tf.delete(e)),o||e.removeAttribute(n)}),--tp||(ts=new WeakMap,ts=new WeakMap,tf=new WeakMap,td={})}},tv=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),tm(r,o,n,"aria-hidden")):function(){return null}},tg=function(){return(tg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ty(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var tb="right-scroll-bar-position",tw="width-before-scroll-bar";function tC(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tx="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,tS=new WeakMap,tE=(void 0===o&&(o={}),(void 0===a&&(a=function(e){return e}),i=[],l=!1,u={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=a(e,l);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){l=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=tg({async:!0,ssr:!1},o),u),t_=function(){},tO=d.forwardRef(function(e,t){var n,r,o,a,i=d.useRef(null),l=d.useState({onScrollCapture:t_,onWheelCapture:t_,onTouchMoveCapture:t_}),u=l[0],c=l[1],s=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,v=e.shards,g=e.sideCar,y=e.noIsolation,b=e.inert,w=e.allowPinchZoom,C=e.as,x=ty(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(n=[i,t],r=function(e){return n.forEach(function(t){return tC(t,e)})},(o=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,tx(function(){var e=tS.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||tC(e,null)}),r.forEach(function(e){t.has(e)||tC(e,o)})}tS.set(a,n)},[n]),a),E=tg(tg({},x),u);return d.createElement(d.Fragment,null,m&&d.createElement(g,{sideCar:tE,removeScrollBar:h,shards:v,noIsolation:y,inert:b,setCallbacks:c,allowPinchZoom:!!w,lockRef:i}),s?d.cloneElement(d.Children.only(f),tg(tg({},E),{ref:S})):d.createElement(void 0===C?"div":C,tg({},E,{className:p,ref:S}),f))});tO.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tO.classNames={fullWidth:tw,zeroRight:tb};var tk=function(e){var t=e.sideCar,n=ty(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,tg({},n))};tk.isSideCarExport=!0;var tT=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=s||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tj=function(){var e=tT();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tP=function(){var e=tj();return function(t){return e(t.styles,t.dynamic),null}},tA={left:0,top:0,right:0,gap:0},tN=function(e){return parseInt(e||"",10)||0},tR=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[tN(n),tN(r),tN(o)]},tI=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tA;var t=tR(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tD=tP(),tL="data-scroll-locked",tM=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(tL,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(tb," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(tw," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(tb," .").concat(tb," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(tw," .").concat(tw," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(tL,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},tF=function(){var e=parseInt(document.body.getAttribute(tL)||"0",10);return isFinite(e)?e:0},tW=function(){d.useEffect(function(){return document.body.setAttribute(tL,(tF()+1).toString()),function(){var e=tF()-1;e<=0?document.body.removeAttribute(tL):document.body.setAttribute(tL,e.toString())}},[])},tB=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tW();var a=d.useMemo(function(){return tI(o)},[o]);return d.createElement(tD,{styles:tM(a,!t,o,n?"":"!important")})},tV=!1;if("undefined"!=typeof window)try{var tz=Object.defineProperty({},"passive",{get:function(){return tV=!0,!0}});window.addEventListener("test",tz,tz),window.removeEventListener("test",tz,tz)}catch(e){tV=!1}var tH=!!tV&&{passive:!1},tK=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},tZ=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),t$(e,n)){var r=tU(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},t$=function(e,t){return"v"===e?tK(t,"overflowY"):tK(t,"overflowX")},tU=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tG=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,u=n.target,c=t.contains(u),s=!1,f=l>0,d=0,p=0;do{var h=tU(e,u),m=h[0],v=h[1]-h[2]-i*m;(m||v)&&t$(e,u)&&(d+=v,p+=m),u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return f&&(o&&0===d||!o&&l>d)?s=!0:!f&&(o&&0===p||!o&&-l>p)&&(s=!0),s},tq=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tY=function(e){return[e.deltaX,e.deltaY]},tX=function(e){return e&&"current"in e?e.current:e},tJ=0,tQ=[],t0=(c=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(tJ++)[0],a=d.useState(function(){return tP()})[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(tX),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=tq(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-a[0],c="deltaY"in e?e.deltaY:l[1]-a[1],s=e.target,f=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=tZ(f,s);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=tZ(f,s)),!d)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return tG(p,t,e,"h"===p?u:c,!0)},[]),u=d.useCallback(function(e){if(tQ.length&&tQ[tQ.length-1]===a){var n="deltaY"in e?tY(e):tq(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(tX).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=d.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),s=d.useCallback(function(e){n.current=tq(e),r.current=void 0},[]),f=d.useCallback(function(t){c(t.type,tY(t),t.target,l(t,e.lockRef.current))},[]),p=d.useCallback(function(t){c(t.type,tq(t),t.target,l(t,e.lockRef.current))},[]);d.useEffect(function(){return tQ.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,tH),document.addEventListener("touchmove",u,tH),document.addEventListener("touchstart",s,tH),function(){tQ=tQ.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,tH),document.removeEventListener("touchmove",u,tH),document.removeEventListener("touchstart",s,tH)}},[]);var h=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?d.createElement(tB,{gapMode:"margin"}):null)},tE.useMedium(c),tk),t1=d.forwardRef(function(e,t){return d.createElement(tO,tg({},e,{ref:t,sideCar:t0}))});t1.classNames=tO.classNames;let t2=[" ","Enter","ArrowUp","ArrowDown"],t3=[" ","Enter"],t6="Select",[t5,t9,t8]=(0,g.B)(t6),[t7,t4]=(0,b.b)(t6,[t8,e3]),ne=e3(),[nt,nn]=t7(t6),[nr,no]=t7(t6),na=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,a=ne(n),i=nn("SelectTrigger",n),l=i.disabled||r,u=(0,y.e)(t,i.onTriggerChange),c=t9(n),[s,p,h]=nF(e=>{let t=c().filter(e=>!e.disabled),n=t.find(e=>e.value===i.value),r=nW(t,e,n);void 0!==r&&i.onValueChange(r.value)}),m=()=>{l||(i.onOpenChange(!0),h())};return(0,d.createElement)(e9,(0,f.Z)({asChild:!0},a),(0,d.createElement)(E.WV.button,(0,f.Z)({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":nL(i.value)?"":void 0},o,{ref:u,onClick:(0,v.M)(o.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,v.M)(o.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(m(),i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,v.M)(o.onKeyDown,e=>{let t=""!==s.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&t2.includes(e.key)&&(m(),e.preventDefault())})})))}),ni=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,u=nn("SelectValue",n),{onValueNodeHasChildrenChange:c}=u,s=void 0!==a,p=(0,y.e)(t,u.onValueNodeChange);return(0,D.b)(()=>{c(s)},[c,s]),(0,d.createElement)(E.WV.span,(0,f.Z)({},l,{ref:p,style:{pointerEvents:"none"}}),nL(u.value)?(0,d.createElement)(d.Fragment,null,i):a)}),nl=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,d.createElement)(E.WV.span,(0,f.Z)({"aria-hidden":!0},o,{ref:t}),r||"▼")}),nu="SelectContent",nc=(0,d.forwardRef)((e,t)=>{let n=nn(nu,e.__scopeSelect),[r,o]=(0,d.useState)();return((0,D.b)(()=>{o(new DocumentFragment)},[]),n.open)?(0,d.createElement)(nd,(0,f.Z)({},e,{ref:t})):r?(0,h.createPortal)((0,d.createElement)(ns,{scope:e.__scopeSelect},(0,d.createElement)(t5.Slot,{scope:e.__scopeSelect},(0,d.createElement)("div",null,e.children))),r):null}),[ns,nf]=t7(nu),nd=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:u,align:c,alignOffset:s,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:b,avoidCollisions:w,...E}=e,_=nn(nu,n),[O,k]=(0,d.useState)(null),[T,P]=(0,d.useState)(null),A=(0,y.e)(t,e=>k(e)),[N,R]=(0,d.useState)(null),[I,D]=(0,d.useState)(null),L=t9(n),[M,F]=(0,d.useState)(!1),W=(0,d.useRef)(!1);(0,d.useEffect)(()=>{if(O)return tv(O)},[O]),(0,d.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:S()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:S()),x++,()=>{1===x&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),x--}},[]);let B=(0,d.useCallback)(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&T&&(T.scrollTop=0),n===r&&T&&(T.scrollTop=T.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[L,T]),V=(0,d.useCallback)(()=>B([N,O]),[B,N,O]);(0,d.useEffect)(()=>{M&&V()},[M,V]);let{onOpenChange:z,triggerPointerDownPosRef:H}=_;(0,d.useEffect)(()=>{if(O){let e={x:0,y:0},t=t=>{var n,r,o,a;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=H.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(a=H.current)||void 0===a?void 0:a.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():O.contains(n.target)||z(!1),document.removeEventListener("pointermove",t),H.current=null};return null!==H.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[O,z,H]),(0,d.useEffect)(()=>{let e=()=>z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[z]);let[K,Z]=nF(e=>{let t=L().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=nW(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),$=(0,d.useCallback)((e,t,n)=>{let r=!W.current&&!n;(void 0!==_.value&&_.value===t||r)&&(R(e),r&&(W.current=!0))},[_.value]),U=(0,d.useCallback)(()=>null==O?void 0:O.focus(),[O]),G=(0,d.useCallback)((e,t,n)=>{let r=!W.current&&!n;(void 0!==_.value&&_.value===t||r)&&D(e)},[_.value]),q="popper"===r?nh:np;return(0,d.createElement)(ns,{scope:n,content:O,viewport:T,onViewportChange:P,itemRefCallback:$,selectedItem:N,onItemLeave:U,itemTextRefCallback:G,focusSelectedItem:V,selectedItemText:I,position:r,isPositioned:M,searchRef:K},(0,d.createElement)(t1,{as:tl.g7,allowPinchZoom:!0},(0,d.createElement)(j,{asChild:!0,trapped:_.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,v.M)(o,e=>{var t;null===(t=_.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()})},(0,d.createElement)(C.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>_.onOpenChange(!1)},(0,d.createElement)(q,(0,f.Z)({role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:e=>e.preventDefault()},E,q===nh?{side:l,sideOffset:u,align:c,alignOffset:s,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:b,avoidCollisions:w}:{},{onPlaced:()=>F(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,v.M)(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>B(t)),e.preventDefault()}})}))))))}),np=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,a=nn(nu,n),i=nf(nu,n),[l,u]=(0,d.useState)(null),[c,s]=(0,d.useState)(null),p=(0,y.e)(t,e=>s(e)),h=t9(n),v=(0,d.useRef)(!1),g=(0,d.useRef)(!0),{viewport:b,selectedItem:w,selectedItemText:C,focusSelectedItem:x}=i,S=(0,d.useCallback)(()=>{if(a.trigger&&a.valueNode&&l&&c&&b&&w&&C){let e=a.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=C.getBoundingClientRect();if("rtl"!==a.dir){let r=o.left-t.left,a=n.left-r,i=e.left-a,u=e.width+i,c=Math.max(u,t.width),s=m(a,[10,window.innerWidth-10-c]);l.style.minWidth=u+"px",l.style.left=s+"px"}else{let r=t.right-o.right,a=window.innerWidth-n.right-r,i=window.innerWidth-e.right-a,u=e.width+i,c=Math.max(u,t.width),s=m(a,[10,window.innerWidth-10-c]);l.style.minWidth=u+"px",l.style.right=s+"px"}let i=h(),u=window.innerHeight-20,s=b.scrollHeight,f=window.getComputedStyle(c),d=parseInt(f.borderTopWidth,10),p=parseInt(f.paddingTop,10),g=parseInt(f.borderBottomWidth,10),y=d+p+s+parseInt(f.paddingBottom,10)+g,x=Math.min(5*w.offsetHeight,y),S=window.getComputedStyle(b),E=parseInt(S.paddingTop,10),_=parseInt(S.paddingBottom,10),O=e.top+e.height/2-10,k=w.offsetHeight/2,T=d+p+(w.offsetTop+k);if(T<=O){let e=w===i[i.length-1].ref.current;l.style.bottom="0px";let t=c.clientHeight-b.offsetTop-b.offsetHeight;l.style.height=T+Math.max(u-O,k+(e?_:0)+t+g)+"px"}else{let e=w===i[0].ref.current;l.style.top="0px";let t=Math.max(O,d+b.offsetTop+(e?E:0)+k);l.style.height=t+(y-T)+"px",b.scrollTop=T-O+b.offsetTop}l.style.margin="10px 0",l.style.minHeight=x+"px",l.style.maxHeight=u+"px",null==r||r(),requestAnimationFrame(()=>v.current=!0)}},[h,a.trigger,a.valueNode,l,c,b,w,C,a.dir,r]);(0,D.b)(()=>S(),[S]);let[_,O]=(0,d.useState)();(0,D.b)(()=>{c&&O(window.getComputedStyle(c).zIndex)},[c]);let k=(0,d.useCallback)(e=>{e&&!0===g.current&&(S(),null==x||x(),g.current=!1)},[S,x]);return(0,d.createElement)(nm,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:k},(0,d.createElement)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_}},(0,d.createElement)(E.WV.div,(0,f.Z)({},o,{ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),nh=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...a}=e,i=ne(n);return(0,d.createElement)(te,(0,f.Z)({},i,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[nm,nv]=t7(nu,{}),ng="SelectViewport",ny=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,o=nf(ng,n),a=nv(ng,n),i=(0,y.e)(t,o.onViewportChange),l=(0,d.useRef)(0);return(0,d.createElement)(d.Fragment,null,(0,d.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),(0,d.createElement)(t5.Slot,{scope:n},(0,d.createElement)(E.WV.div,(0,f.Z)({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:(0,v.M)(r.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if(null!=r&&r.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let a=o+e,i=Math.min(r,a),l=a-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop})}))))}),[nb,nw]=t7("SelectGroup"),nC=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,o=F();return(0,d.createElement)(nb,{scope:n,id:o},(0,d.createElement)(E.WV.div,(0,f.Z)({role:"group","aria-labelledby":o},r,{ref:t})))}),nx=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,o=nw("SelectLabel",n);return(0,d.createElement)(E.WV.div,(0,f.Z)({id:o.id},r,{ref:t}))}),nS="SelectItem",[nE,n_]=t7(nS),nO=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=nn(nS,n),u=nf(nS,n),c=l.value===r,[s,p]=(0,d.useState)(null!=a?a:""),[h,m]=(0,d.useState)(!1),g=(0,y.e)(t,e=>{var t;return null===(t=u.itemRefCallback)||void 0===t?void 0:t.call(u,e,r,o)}),b=F(),w=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,d.createElement)(nE,{scope:n,value:r,disabled:o,textId:b,isSelected:c,onItemTextChange:(0,d.useCallback)(e=>{p(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[])},(0,d.createElement)(t5.ItemSlot,{scope:n,value:r,disabled:o,textValue:s},(0,d.createElement)(E.WV.div,(0,f.Z)({role:"option","aria-labelledby":b,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},i,{ref:g,onFocus:(0,v.M)(i.onFocus,()=>m(!0)),onBlur:(0,v.M)(i.onBlur,()=>m(!1)),onPointerUp:(0,v.M)(i.onPointerUp,w),onPointerMove:(0,v.M)(i.onPointerMove,e=>{if(o){var t;null===(t=u.onItemLeave)||void 0===t||t.call(u)}else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,v.M)(i.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=u.onItemLeave)||void 0===t||t.call(u)}}),onKeyDown:(0,v.M)(i.onKeyDown,e=>{var t;(null===(t=u.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(t3.includes(e.key)&&w()," "===e.key&&e.preventDefault())})}))))}),nk="SelectItemText",nT=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,className:r,style:o,...a}=e,i=nn(nk,n),l=nf(nk,n),u=n_(nk,n),c=no(nk,n),[s,p]=(0,d.useState)(null),m=(0,y.e)(t,e=>p(e),u.onItemTextChange,e=>{var t;return null===(t=l.itemTextRefCallback)||void 0===t?void 0:t.call(l,e,u.value,u.disabled)}),v=null==s?void 0:s.textContent,g=(0,d.useMemo)(()=>(0,d.createElement)("option",{key:u.value,value:u.value,disabled:u.disabled},v),[u.disabled,u.value,v]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=c;return(0,D.b)(()=>(b(g),()=>w(g)),[b,w,g]),(0,d.createElement)(d.Fragment,null,(0,d.createElement)(E.WV.span,(0,f.Z)({id:u.textId},a,{ref:m})),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren?(0,h.createPortal)(a.children,i.valueNode):null)}),nj=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e;return n_("SelectItemIndicator",n).isSelected?(0,d.createElement)(E.WV.span,(0,f.Z)({"aria-hidden":!0},r,{ref:t})):null}),nP="SelectScrollUpButton",nA=(0,d.forwardRef)((e,t)=>{let n=nf(nP,e.__scopeSelect),r=nv(nP,e.__scopeSelect),[o,a]=(0,d.useState)(!1),i=(0,y.e)(t,r.onScrollButtonChange);return(0,D.b)(()=>{if(n.viewport&&n.isPositioned){let t=n.viewport;function e(){a(t.scrollTop>0)}return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,d.createElement)(nI,(0,f.Z)({},e,{ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null}),nN="SelectScrollDownButton",nR=(0,d.forwardRef)((e,t)=>{let n=nf(nN,e.__scopeSelect),r=nv(nN,e.__scopeSelect),[o,a]=(0,d.useState)(!1),i=(0,y.e)(t,r.onScrollButtonChange);return(0,D.b)(()=>{if(n.viewport&&n.isPositioned){let t=n.viewport;function e(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)}return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,d.createElement)(nI,(0,f.Z)({},e,{ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null}),nI=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,a=nf("SelectScrollButton",n),i=(0,d.useRef)(null),l=t9(n),u=(0,d.useCallback)(()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)},[]);return(0,d.useEffect)(()=>()=>u(),[u]),(0,D.b)(()=>{var e;let t=l().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[l]),(0,d.createElement)(E.WV.div,(0,f.Z)({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,v.M)(o.onPointerDown,()=>{null===i.current&&(i.current=window.setInterval(r,50))}),onPointerMove:(0,v.M)(o.onPointerMove,()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===i.current&&(i.current=window.setInterval(r,50))}),onPointerLeave:(0,v.M)(o.onPointerLeave,()=>{u()})}))}),nD=(0,d.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,d.createElement)(E.WV.div,(0,f.Z)({"aria-hidden":!0},r,{ref:t}))});function nL(e){return""===e||void 0===e}let nM=(0,d.forwardRef)((e,t)=>{let{value:n,...r}=e,o=(0,d.useRef)(null),a=(0,y.e)(t,o),i=function(e){let t=(0,d.useRef)({value:e,previous:e});return(0,d.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n);return(0,d.useEffect)(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[i,n]),(0,d.createElement)(tc.T,{asChild:!0},(0,d.createElement)("select",(0,f.Z)({},r,{ref:a,defaultValue:n})))});function nF(e){let t=(0,_.W)(e),n=(0,d.useRef)(""),r=(0,d.useRef)(0),o=(0,d.useCallback)(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),a=(0,d.useCallback)(()=>{n.current="",window.clearTimeout(r.current)},[]);return(0,d.useEffect)(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function nW(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(a=a.filter(e=>e!==n));let i=a.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return i!==n?i:void 0}nM.displayName="BubbleSelect";let nB=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:u,dir:c,name:s,autoComplete:f,disabled:p,required:h}=e,m=ne(t),[v,g]=(0,d.useState)(null),[y,b]=(0,d.useState)(null),[C,x]=(0,d.useState)(!1),S=function(e){let t=(0,d.useContext)(w);return e||t||"ltr"}(c),[E=!1,_]=(0,tu.T)({prop:r,defaultProp:o,onChange:a}),[O,k]=(0,tu.T)({prop:i,defaultProp:l,onChange:u}),T=(0,d.useRef)(null),j=!v||!!v.closest("form"),[P,A]=(0,d.useState)(new Set),N=Array.from(P).map(e=>e.props.value).join(";");return(0,d.createElement)(ta,m,(0,d.createElement)(nt,{required:h,scope:t,trigger:v,onTriggerChange:g,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:C,onValueNodeHasChildrenChange:x,contentId:F(),value:O,onValueChange:k,open:E,onOpenChange:_,dir:S,triggerPointerDownPosRef:T,disabled:p},(0,d.createElement)(t5.Provider,{scope:t},(0,d.createElement)(nr,{scope:e.__scopeSelect,onNativeOptionAdd:(0,d.useCallback)(e=>{A(t=>new Set(t).add(e))},[]),onNativeOptionRemove:(0,d.useCallback)(e=>{A(t=>{let n=new Set(t);return n.delete(e),n})},[])},n)),j?(0,d.createElement)(nM,{key:N,"aria-hidden":!0,required:h,tabIndex:-1,name:s,autoComplete:f,value:O,onChange:e=>k(e.target.value),disabled:p},void 0===O?(0,d.createElement)("option",{value:""}):null,Array.from(P)):null))},nV=na,nz=ni,nH=nl,nK=e=>(0,d.createElement)(ti.h,(0,f.Z)({asChild:!0},e)),nZ=nc,n$=ny,nU=nC,nG=nx,nq=nO,nY=nT,nX=nj,nJ=nA,nQ=nR,n0=nD},1810:function(e,t,n){"use strict";n.d(t,{w_:function(){return s}});var r=n(2265),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=r.createContext&&r.createContext(o),i=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){var r,o;r=t,o=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e){return t=>r.createElement(f,l({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,c({key:n},t.attr),e(t.child)))}(e.child))}function f(e){var t=t=>{var n,{attr:o,size:a,title:u}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i),f=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,s,{className:n,style:c(c({color:e.color||t.color},t.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),e.children)};return void 0!==a?r.createElement(a.Consumer,null,e=>t(e)):t(o)}}}]);