/
home
/
techb158
/
primomovers.ca
/
wp-content
/
plugins
/
everest-forms
/
dist
/
/home/techb158/primomovers.ca/wp-content/plugins/everest-forms/dist
mkdir
upload
Name
Size
Mode
Actions
form-selector/
-
0755
rm
frontend-listing/
-
0755
rm
user-login/
-
0755
rm
2ce9495ac6ba037bca102f85611adbe0.webp
1208
0644
edit
dl
rm
6dc4c37ae3ecc6a2af85c90a60b83d25.png
878
0644
edit
dl
rm
6ec9d263fb46252dd146d64ffbc28d69.webp
7804
0644
edit
dl
rm
6f863fcb56d8b6cb186730f36584df65.webp
7840
0644
edit
dl
rm
11c0449e654add53839dd2868ddf30dd.gif
210552
0644
edit
dl
rm
49f9520e9ca04b8812e26bf548c09eae.webp
30244
0644
edit
dl
rm
73e84ecf138c39fb2c97167a5f9e82a2.webp
35766
0644
edit
dl
rm
77c78a0a2598023e06e9ad7bd0d04eeb.png
771
0644
edit
dl
rm
90ca815da37eeb572e36210096d10984.png
30364
0644
edit
dl
rm
953555118c8f835b30db43e927efe1b3.webp
71508
0644
edit
dl
rm
ab773814f97af145567d7d2d837d630b.png
835
0644
edit
dl
rm
bbb7a97e3687f39667a2392a3180eb08.png
156353
0644
edit
dl
rm
bf7d11b17f85f0181710e4c28be8174b.webp
39436
0644
edit
dl
rm
blocks.min.js
453167
0644
edit
dl
rm
blocks.min.js.LICENSE.txt
980
0644
edit
dl
rm
builderAI.min.js
413626
0644
edit
dl
rm
builderAI.min.js.LICENSE.txt
980
0644
edit
dl
rm
d5ec8de8538ebf3505031129c5118503.png
952
0644
edit
dl
rm
d5891ac27db9ba7a9643b32dc5b4496b.png
726
0644
edit
dl
rm
dashboard.min.js
953323
0644
edit
dl
rm
dashboard.min.js.LICENSE.txt
2257
0644
edit
dl
rm
dashboardHeader.min.js
607198
0644
edit
dl
rm
dashboardHeader.min.js.LICENSE.txt
1920
0644
edit
dl
rm
divibuilder.min.js
866
0644
edit
dl
rm
e5f4b6169fef5a1a72ef1474733b7622.png
768
0644
edit
dl
rm
ec5d28fd237e9b8cfd396596af54d878.webp
10904
0644
edit
dl
rm
edefcb9e8e52ef39ce7fdef6eab4b904.webp
8324
0644
edit
dl
rm
effef74a8f460d198524101f2f069589.png
887
0644
edit
dl
rm
f946ef3592423796427e2d1b57d80cee.webp
4254
0644
edit
dl
rm
fe5509bcbadc27f16471f08850716c5a.webp
1056
0644
edit
dl
rm
main.min.js
407713
0644
edit
dl
rm
main.min.js.LICENSE.txt
980
0644
edit
dl
rm
reactPlayerDailyMotion.min.js
2589
0644
edit
dl
rm
reactPlayerFacebook.min.js
2848
0644
edit
dl
rm
reactPlayerFilePlayer.min.js
8681
0644
edit
dl
rm
reactPlayerKaltura.min.js
2423
0644
edit
dl
rm
reactPlayerMixcloud.min.js
2277
0644
edit
dl
rm
reactPlayerMux.min.js
4996
0644
edit
dl
rm
reactPlayerPreview.min.js
2657
0644
edit
dl
rm
reactPlayerSoundCloud.min.js
2566
0644
edit
dl
rm
reactPlayerStreamable.min.js
2574
0644
edit
dl
rm
reactPlayerTwitch.min.js
2695
0644
edit
dl
rm
reactPlayerVidyard.min.js
2496
0644
edit
dl
rm
reactPlayerVimeo.min.js
3276
0644
edit
dl
rm
reactPlayerWistia.min.js
3149
0644
edit
dl
rm
reactPlayerYouTube.min.js
4085
0644
edit
dl
rm
rolesandpermission.min.js
1324632
0644
edit
dl
rm
rolesandpermission.min.js.LICENSE.txt
2385
0644
edit
dl
rm
styleCustomizerV2.min.js
328711
0644
edit
dl
rm
styleCustomizerV2.min.js.LICENSE.txt
483
0644
edit
dl
rm
templates.min.js
627985
0644
edit
dl
rm
templates.min.js.LICENSE.txt
1239
0644
edit
dl
rm
Edit:
/home/techb158/primomovers.ca/wp-content/plugins/everest-forms/dist/builderAI.min.js
(413626B)
/*! For license information please see builderAI.min.js.LICENSE.txt */ (()=>{var e={4146:(e,t,n)=>{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var b=f(n,v);try{u(t,v,b)}catch(e){}}}}return t}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||w(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},8394:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[i]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[a]=c["[object Map]"]=c["[object Number]"]=c[s]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var d,f,p,h="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,g=h||m||Function("return this")(),v=t&&!t.nodeType&&t,b=v&&e&&!e.nodeType&&e,y=b&&b.exports===v,x=y&&h.process,w=function(){try{return b&&b.require&&b.require("util").types||x&&x.binding&&x.binding("util")}catch(e){}}(),k=w&&w.isTypedArray,S=Array.prototype,C=Function.prototype,E=Object.prototype,_=g["__core-js_shared__"],P=C.toString,T=E.hasOwnProperty,z=(d=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",R=E.toString,A=P.call(Object),M=RegExp("^"+P.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=y?g.Buffer:void 0,B=g.Symbol,F=g.Uint8Array,L=(j&&j.allocUnsafe,f=Object.getPrototypeOf,p=Object,function(e){return f(p(e))}),D=Object.create,I=E.propertyIsEnumerable,$=S.splice,O=B?B.toStringTag:void 0,N=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),V=j?j.isBuffer:void 0,W=Math.max,U=Date.now,H=se(g,"Map"),q=se(Object,"create"),Y=function(){function e(){}return function(t){if(!ye(t))return{};if(D)return D(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G(e){var t=this.__data__=new K(e);this.size=t.size}function Z(e,t,n){(void 0!==n&&!fe(e[t],n)||void 0===n&&!(t in e))&&te(e,t,n)}function J(e,t,n){var r=e[t];T.call(e,t)&&fe(r,n)&&(void 0!==n||t in e)||te(e,t,n)}function ee(e,t){for(var n=e.length;n--;)if(fe(e[n][0],t))return n;return-1}function te(e,t,n){"__proto__"==t&&N?N(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}X.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(q){var n=t[e];return n===r?void 0:n}return T.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return q?void 0!==t[e]:T.call(t,e)},X.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=q&&void 0===t?r:t,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(e){var t=this.__data__,n=ee(t,e);return!(n<0||(n==t.length-1?t.pop():$.call(t,n,1),--this.size,0))},K.prototype.get=function(e){var t=this.__data__,n=ee(t,e);return n<0?void 0:t[n][1]},K.prototype.has=function(e){return ee(this.__data__,e)>-1},K.prototype.set=function(e,t){var n=this.__data__,r=ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Q.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(H||K),string:new X}},Q.prototype.delete=function(e){var t=ae(this,e).delete(e);return this.size-=t?1:0,t},Q.prototype.get=function(e){return ae(this,e).get(e)},Q.prototype.has=function(e){return ae(this,e).has(e)},Q.prototype.set=function(e,t){var n=ae(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},G.prototype.clear=function(){this.__data__=new K,this.size=0},G.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},G.prototype.get=function(e){return this.__data__.get(e)},G.prototype.has=function(e){return this.__data__.has(e)},G.prototype.set=function(e,t){var n=this.__data__;if(n instanceof K){var r=n.__data__;if(!H||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Q(r)}return n.set(e,t),this.size=n.size,this};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":O&&O in Object(e)?function(e){var t=T.call(e,O),n=e[O];try{e[O]=void 0;var r=!0}catch(e){}var o=R.call(e);return r&&(t?e[O]=n:delete e[O]),o}(e):function(e){return R.call(e)}(e)}function re(e){return xe(e)&&ne(e)==i}function oe(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[++r];if(!1===t(o[s],s,o))break}}(t,function(i,a){if(o||(o=new G),ye(i))!function(e,t,n,r,o,i,a){var l=ce(e,n),u=ce(t,n),c=a.get(u);if(c)Z(e,n,c);else{var d,f,p,h,m,g=i?i(l,u,n+"",e,t,a):void 0,v=void 0===g;if(v){var b=he(u),y=!b&&ge(u),x=!b&&!y&&we(u);g=u,b||y||x?he(l)?g=l:xe(m=l)&&me(m)?g=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):y?(v=!1,g=function(e){return e.slice()}(u)):x?(v=!1,h=new(p=(d=u).buffer).constructor(p.byteLength),new F(h).set(new F(p)),f=h,g=new d.constructor(f,d.byteOffset,d.length)):g=[]:function(e){if(!xe(e)||ne(e)!=s)return!1;var t=L(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==A}(u)||pe(u)?(g=l,pe(l)?g=function(e){return function(e,t,n){var r=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=void 0;void 0===s&&(s=e[a]),r?te(n,a,s):J(n,a,s)}return n}(e,ke(e))}(l):ye(l)&&!ve(l)||(g=function(e){return"function"!=typeof e.constructor||ue(e)?{}:Y(L(e))}(u))):v=!1}v&&(a.set(u,g),o(g,u,r,i,a),a.delete(u)),Z(e,n,g)}}(e,t,a,n,oe,r,o);else{var l=r?r(ce(e,a),i,a+"",e,t,o):void 0;void 0===l&&(l=i),Z(e,a,l)}},ke)}var ie=N?function(e,t){return N(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ee;function ae(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function se(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ye(e)||function(e){return!!z&&z in e}(e))&&(ve(e)?M:l).test(function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}function le(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&u.test(e))&&e>-1&&e%1==0&&e<t}function ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||E)}function ce(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var de=function(e){var t=0,n=0;return function(){var r=U(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ie);function fe(e,t){return e===t||e!=e&&t!=t}var pe=re(function(){return arguments}())?re:function(e){return xe(e)&&T.call(e,"callee")&&!I.call(e,"callee")},he=Array.isArray;function me(e){return null!=e&&be(e.length)&&!ve(e)}var ge=V||function(){return!1};function ve(e){if(!ye(e))return!1;var t=ne(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){return null!=e&&"object"==typeof e}var we=k?function(e){return function(t){return e(t)}}(k):function(e){return xe(e)&&be(e.length)&&!!c[ne(e)]};function ke(e){return me(e)?function(e,t){var n=he(e),r=!n&&pe(e),o=!n&&!r&&ge(e),i=!n&&!r&&!o&&we(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!T.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||le(u,l))||s.push(u);return s}(e,!0):function(e){if(!ye(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ue(e),n=[];for(var r in e)("constructor"!=r||!t&&T.call(e,r))&&n.push(r);return n}(e)}var Se,Ce=(Se=function(e,t,n,r){oe(e,t,n,r)},function(e,t){return de(function(e,t,n){return t=W(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=W(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Ee),e+"")}(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Se.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!ye(n))return!1;var r=typeof t;return!!("number"==r?me(n)&&le(t,n.length):"string"==r&&t in n)&&fe(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Se(e,a,n,o)}return e}));function Ee(e){return e}e.exports=Ce},2551:(e,t,n)=>{"use strict";var r=n(1993),o=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var B=Symbol.iterator;function F(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}var L,D=Object.assign;function I(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var $=!1;function O(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?I(e):""}function N(e){switch(e.tag){case 5:return I(e.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return O(e.type,!1);case 11:return O(e.type.render,!1);case 1:return O(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case E:return"Profiler";case C:return"StrictMode";case z:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function G(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){G(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function ie(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ve=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ce=null;function Ee(e){if(e=xo(e)){if("function"!=typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function _e(e){Se?Ce?Ce.push(e):Ce=[e]:Se=e}function Pe(){if(Se){var e=Se,t=Ce;if(Ce=Se=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Te(e,t){return e(t)}function ze(){}var Re=!1;function Ae(e,t,n){if(Re)return e(t,n);Re=!0;try{return Te(e,t,n)}finally{Re=!1,(null!==Se||null!==Ce)&&(ze(),Pe())}}function Me(e,t){var n=e.stateNode;if(null===n)return null;var r=ko(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var je=!1;if(c)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){je=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(ce){je=!1}function Fe(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Le=!1,De=null,Ie=!1,$e=null,Oe={onError:function(e){Le=!0,De=e}};function Ne(e,t,n,r,o,i,a,s,l){Le=!1,De=null,Fe.apply(Oe,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ue(e){if(Ve(e)!==e)throw Error(i(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ue(o),e;if(a===r)return Ue(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,Xe=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,Qe=o.unstable_requestPaint,Ge=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,kt,St,Ct,Et,_t=!1,Pt=[],Tt=null,zt=null,Rt=null,At=new Map,Mt=new Map,jt=[],Bt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":zt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function Lt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=xo(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=yo(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Et(e.priority,function(){St(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function $t(e,t,n){It(e)&&n.delete(t)}function Ot(){_t=!1,null!==Tt&&It(Tt)&&(Tt=null),null!==zt&&It(zt)&&(zt=null),null!==Rt&&It(Rt)&&(Rt=null),At.forEach($t),Mt.forEach($t)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ot)))}function Vt(e){function t(t){return Nt(t,e)}if(0<Pt.length){Nt(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Nt(Tt,e),null!==zt&&Nt(zt,e),null!==Rt&&Nt(Rt,e),At.forEach(t),Mt.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Dt(n),null===n.blockedOn&&jt.shift()}var Wt=x.ReactCurrentBatchConfig,Ut=!0;function Ht(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=1,Yt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function qt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=4,Yt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Yt(e,t,n,r){if(Ut){var o=Kt(e,t,n,r);if(null===o)Ur(e,t,r,Xt,n),Ft(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Lt(Tt,e,t,n,r,o),!0;case"dragenter":return zt=Lt(zt,e,t,n,r,o),!0;case"mouseover":return Rt=Lt(Rt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return At.set(i,Lt(At.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mt.set(i,Lt(Mt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ft(e,r),4&t&&-1<Bt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&wt(i),null===(i=Kt(e,t,n,r))&&Ur(e,t,r,Xt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Xt=null;function Kt(e,t,n,r){if(Xt=null,null!==(e=yo(e=we(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Gt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Gt?Gt.value:Gt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=D({},un,{view:0,detail:0}),fn=on(dn),pn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(D({},pn,{dataTransfer:0})),gn=on(D({},dn,{relatedTarget:0})),vn=on(D({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=D({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),xn=on(D({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function En(){return Cn}var _n=D({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(_n),Tn=on(D({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),zn=on(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Rn=on(D({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=D({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=on(An),jn=[9,13,27,32],Bn=c&&"CompositionEvent"in window,Fn=null;c&&"documentMode"in document&&(Fn=document.documentMode);var Ln=c&&"TextEvent"in window&&!Fn,Dn=c&&(!Bn||Fn&&8<Fn&&11>=Fn),In=String.fromCharCode(32),$n=!1;function On(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){_e(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Yn=null;function Xn(e){Ir(e,0)}function Kn(e){if(Y(wo(e)))return e}function Qn(e,t){if("change"===e)return t}var Gn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Gn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Yn=qn=null)}function nr(e){if("value"===e.propertyName&&Kn(Yn)){var t=[];Hn(t,Yn,e,we(e)),Ae(Xn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Yn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==X(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Cr={};function Er(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return Sr[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var _r=Er("animationend"),Pr=Er("animationiteration"),Tr=Er("animationstart"),zr=Er("transitionend"),Rr=new Map,Ar="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Rr.set(e,t),l(t,[e])}for(var jr=0;jr<Ar.length;jr++){var Br=Ar[jr];Mr(Br.toLowerCase(),"on"+(Br[0].toUpperCase()+Br.slice(1)))}Mr(_r,"onAnimationEnd"),Mr(Pr,"onAnimationIteration"),Mr(Tr,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(zr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,u){if(Ne.apply(this,arguments),Le){if(!Le)throw Error(i(198));var c=De;Le=!1,De=null,Ie||(Ie=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}}}if(Ie)throw e=$e,Ie=!1,$e=null,e}function $r(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Or(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Nr="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Nr]){e[Nr]=!0,a.forEach(function(t){"selectionchange"!==t&&(Lr.has(t)||Or(t,!1,e),Or(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Nr]||(t[Nr]=!0,Or("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Qt(t)){case 1:var o=Ht;break;case 4:o=qt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=yo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Ae(function(){var r=i,o=we(n),a=[];e:{var s=Rr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=zn;break;case _r:case Pr:case Tr:l=vn;break;case zr:l=Rn;break;case"scroll":l=fn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Me(h,f))&&c.push(Hr(h,m,p))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!yo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yo(u):null)&&(u!==(d=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:wo(l),p=null==u?s:wo(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,yo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Yr(p))h++;for(p=0,m=f;m;m=Yr(m))p++;for(;0<h-p;)c=Yr(c),h--;for(;0<p-h;)f=Yr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Yr(c),f=Yr(f)}c=null}else c=null;null!==l&&Xr(a,s,l,c,!1),null!==u&&null!==d&&Xr(a,d,u,c,!0)}if("select"===(l=(s=r?wo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Qn;else if(Un(s))if(Gn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Hn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?wo(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var b;if(Bn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Vn?On(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Dn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Vn&&(b=en()):(Zt="value"in(Gt=o)?Gt.value:Gt.textContent,Vn=!0)),0<(v=qr(r,y)).length&&(y=new xn(y,e,null,n,o),a.push({event:y,listeners:v}),(b||null!==(b=Nn(n)))&&(y.data=b))),(b=Ln?function(e,t){switch(e){case"compositionend":return Nn(t);case"keypress":return 32!==t.which?null:($n=!0,In);case"textInput":return(e=t.data)===In&&$n?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Bn&&On(e,t)?(e=en(),Jt=Zt=Gt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b)}Ir(a,t)})}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Me(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Me(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Me(n,i))&&a.unshift(Hr(n,l,s)):o||null!=(l=Me(n,i))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Gr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Qr,"")}function Zr(e,t,n){if(t=Gr(t),Gr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ko(e){return e[ho]||null}var So=[],Co=-1;function Eo(e){return{current:e}}function _o(e){0>Co||(e.current=So[Co],So[Co]=null,Co--)}function Po(e,t){Co++,So[Co]=e.current,e.current=t}var To={},zo=Eo(To),Ro=Eo(!1),Ao=To;function Mo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jo(e){return null!=e.childContextTypes}function Bo(){_o(Ro),_o(zo)}function Fo(e,t,n){if(zo.current!==To)throw Error(i(168));Po(zo,t),Po(Ro,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,W(e)||"Unknown",o));return D({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Ao=zo.current,Po(zo,e),Po(Ro,Ro.current),!0}function Io(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Lo(e,t,Ao),r.__reactInternalMemoizedMergedChildContext=e,_o(Ro),_o(zo),Po(zo,e)):_o(Ro),Po(Ro,n)}var $o=null,Oo=!1,No=!1;function Vo(e){null===$o?$o=[e]:$o.push(e)}function Wo(){if(!No&&null!==$o){No=!0;var e=0,t=yt;try{var n=$o;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}$o=null,Oo=!1}catch(t){throw null!==$o&&($o=$o.slice(e+1)),Ye(Je,Wo),t}finally{yt=t,No=!1}}return null}var Uo=[],Ho=0,qo=null,Yo=0,Xo=[],Ko=0,Qo=null,Go=1,Zo="";function Jo(e,t){Uo[Ho++]=Yo,Uo[Ho++]=qo,qo=e,Yo=t}function ei(e,t,n){Xo[Ko++]=Go,Xo[Ko++]=Zo,Xo[Ko++]=Qo,Qo=e;var r=Go;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Go=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Go=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===qo;)qo=Uo[--Ho],Uo[Ho]=null,Yo=Uo[--Ho],Uo[Ho]=null;for(;e===Qo;)Qo=Xo[--Ko],Xo[Ko]=null,Zo=Xo[--Ko],Xo[Ko]=null,Go=Xo[--Ko],Xo[Ko]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Mu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qo?{id:Go,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=x.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bi=Eo(null),yi=null,xi=null,wi=null;function ki(){wi=xi=yi=null}function Si(e){var t=bi.current;_o(bi),e._currentValue=t}function Ci(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){yi=e,wi=xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xs=!0),e.firstContext=null)}function _i(e){var t=e._currentValue;if(wi!==e)if(e={context:e,memoizedValue:t,next:null},null===xi){if(null===yi)throw Error(i(308));xi=e,yi.dependencies={lanes:0,firstContext:e}}else xi=xi.next=e;return t}var Pi=null;function Ti(e){null===Pi?Pi=[e]:Pi.push(e)}function zi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ti(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ri(e,r)}function Ri(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ai=!1;function Mi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&zl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ri(e,n)}return null===(o=r.interleaved)?(t.next=t,Ti(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ri(e,n)}function Li(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Di(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ii(e,t,n,r){var o=e.updateQueue;Ai=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=D({},d,f);break e;case 2:Ai=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=d}}function $i(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Oi=(new r.Component).refs;function Ni(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Vi={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=Bi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(ru(t,e,o,r),Li(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=Bi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(ru(t,e,o,r),Li(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=Bi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Fi(e,o,r))&&(ru(t,e,r,n),Li(t,e,r))}};function Wi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function Ui(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=_i(i):(o=jo(t)?Ao:zo.current,i=(r=null!=(r=t.contextTypes))?Mo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Vi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Hi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vi.enqueueReplaceState(t,t.state,null)}function qi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Oi,Mi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=_i(i):(i=jo(t)?Ao:zo.current,o.context=Mo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ni(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Vi.enqueueReplaceState(o,o.state,null),Ii(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Oi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Xi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ki(e){return(0,e._init)(e._payload)}function Qi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Bu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Iu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===M&&Ki(i)===t.type)?((r=o(t,n.props)).ref=Yi(e,t,n),r.return=e,r):((r=Fu(n.type,n.key,n.props,null,e.mode,r)).ref=Yi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$u(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Iu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Fu(t.type,t.key,t.props,null,e.mode,n)).ref=Yi(e,null,t),n.return=e,n;case k:return(t=$u(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(te(t)||F(t))return(t=Lu(t,e.mode,n,null)).return=e,t;Xi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case k:return n.key===o?c(e,t,n,r):null;case M:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||F(n))return null!==o?null:d(e,t,n,r,null);Xi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||F(r))return d(t,e=e.get(n)||null,r,o,null);Xi(t,r)}return null}function m(o,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(o,d),ii&&Jo(o,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ii&&Jo(o,m),u}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(o,e)}),ii&&Jo(o,m),u}function g(o,s,l,u){var c=F(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var d=c=null,m=s,g=s=0,v=null,b=l.next();null!==m&&!b.done;g++,b=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=p(o,m,b.value,u);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y,m=v}if(b.done)return n(o,m),ii&&Jo(o,g),c;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=f(o,b.value,u))&&(s=a(b,s,g),null===d?c=b:d.sibling=b,d=b);return ii&&Jo(o,g),c}for(m=r(o,m);!b.done;g++,b=l.next())null!==(b=h(m,o,g,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b);return e&&m.forEach(function(e){return t(o,e)}),ii&&Jo(o,g),c}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===S){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===M&&Ki(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=Yi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===S?((i=Lu(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Fu(a.type,a.key,a.props,null,r.mode,l)).ref=Yi(r,i,a),l.return=r,r=l)}return s(r);case k:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=$u(a,r.mode,l)).return=r,r=i}return s(r);case M:return e(r,i,(c=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(F(a))return g(r,i,a,l);Xi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Iu(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var Gi=Qi(!0),Zi=Qi(!1),Ji={},ea=Eo(Ji),ta=Eo(Ji),na=Eo(Ji);function ra(e){if(e===Ji)throw Error(i(174));return e}function oa(e,t){switch(Po(na,t),Po(ta,e),Po(ea,Ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(ea),Po(ea,t)}function ia(){_o(ea),_o(ta),_o(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(Po(ta,e),Po(ea,n))}function sa(e){ta.current===e&&(_o(ea),_o(ta))}var la=Eo(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=x.ReactCurrentDispatcher,pa=x.ReactCurrentBatchConfig,ha=0,ma=null,ga=null,va=null,ba=!1,ya=!1,xa=0,wa=0;function ka(){throw Error(i(321))}function Sa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ca(e,t,n,r,o,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:ls,e=n(r,o),ya){a=0;do{if(ya=!1,xa=0,25<=a)throw Error(i(301));a+=1,va=ga=null,t.updateQueue=null,fa.current=us,e=n(r,o)}while(ya)}if(fa.current=as,t=null!==ga&&null!==ga.next,ha=0,va=ga=ma=null,ba=!1,t)throw Error(i(300));return e}function Ea(){var e=0!==xa;return xa=0,e}function _a(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function Pa(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ga=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function Ta(e,t){return"function"==typeof t?t(e):t}function za(e){var t=Pa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ga,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((ha&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,ma.lanes|=d,Dl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(xs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ma.lanes|=a,Dl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ra(e){var t=Pa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(xs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Aa(){}function Ma(e,t){var n=ma,r=Pa(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,xs=!0),r=r.queue,Ua(Fa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,$a(9,Ba.bind(null,n,r,o,t),void 0,null),null===Rl)throw Error(i(349));30&ha||ja(n,t,o)}return o}function ja(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ba(e,t,n,r){t.value=n,t.getSnapshot=r,La(t)&&Da(e)}function Fa(e,t,n){return n(function(){La(t)&&Da(e)})}function La(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Da(e){var t=Ri(e,1);null!==t&&ru(t,e,1,-1)}function Ia(e){var t=_a();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function $a(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Oa(){return Pa().memoizedState}function Na(e,t,n,r){var o=_a();ma.flags|=e,o.memoizedState=$a(1|t,n,void 0,void 0===r?null:r)}function Va(e,t,n,r){var o=Pa();r=void 0===r?null:r;var i=void 0;if(null!==ga){var a=ga.memoizedState;if(i=a.destroy,null!==r&&Sa(r,a.deps))return void(o.memoizedState=$a(t,n,i,r))}ma.flags|=e,o.memoizedState=$a(1|t,n,i,r)}function Wa(e,t){return Na(8390656,8,e,t)}function Ua(e,t){return Va(2048,8,e,t)}function Ha(e,t){return Va(4,2,e,t)}function qa(e,t){return Va(4,4,e,t)}function Ya(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Xa(e,t,n){return n=null!=n?n.concat([e]):null,Va(4,4,Ya.bind(null,t,e),n)}function Ka(){}function Qa(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ga(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Za(e,t,n){return 21&ha?(sr(n,t)||(n=mt(),ma.lanes|=n,Dl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=n)}function Ja(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{yt=n,pa.transition=r}}function es(){return Pa().memoizedState}function ts(e,t,n){var r=nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?os(t,n):null!==(n=zi(e,t,n,r))&&(ru(n,e,r,tu()),is(n,t,r))}function ns(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ti(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=zi(e,t,o,r))&&(ru(n,e,r,o=tu()),is(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function os(e,t){ya=ba=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function is(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var as={readContext:_i,useCallback:ka,useContext:ka,useEffect:ka,useImperativeHandle:ka,useInsertionEffect:ka,useLayoutEffect:ka,useMemo:ka,useReducer:ka,useRef:ka,useState:ka,useDebugValue:ka,useDeferredValue:ka,useTransition:ka,useMutableSource:ka,useSyncExternalStore:ka,useId:ka,unstable_isNewReconciler:!1},ss={readContext:_i,useCallback:function(e,t){return _a().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Na(4194308,4,Ya.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=_a();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_a();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_a().memoizedState=e},useState:Ia,useDebugValue:Ka,useDeferredValue:function(e){return _a().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Ja.bind(null,e[1]),_a().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,o=_a();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Rl)throw Error(i(349));30&ha||ja(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Wa(Fa.bind(null,r,a,e),[e]),r.flags|=2048,$a(9,Ba.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=_a(),t=Rl.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Go&~(1<<32-at(Go)-1)).toString(32)+n),0<(n=xa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:_i,useCallback:Qa,useContext:_i,useEffect:Ua,useImperativeHandle:Xa,useInsertionEffect:Ha,useLayoutEffect:qa,useMemo:Ga,useReducer:za,useRef:Oa,useState:function(){return za(Ta)},useDebugValue:Ka,useDeferredValue:function(e){return Za(Pa(),ga.memoizedState,e)},useTransition:function(){return[za(Ta)[0],Pa().memoizedState]},useMutableSource:Aa,useSyncExternalStore:Ma,useId:es,unstable_isNewReconciler:!1},us={readContext:_i,useCallback:Qa,useContext:_i,useEffect:Ua,useImperativeHandle:Xa,useInsertionEffect:Ha,useLayoutEffect:qa,useMemo:Ga,useReducer:Ra,useRef:Oa,useState:function(){return Ra(Ta)},useDebugValue:Ka,useDeferredValue:function(e){var t=Pa();return null===ga?t.memoizedState=e:Za(t,ga.memoizedState,e)},useTransition:function(){return[Ra(Ta)[0],Pa().memoizedState]},useMutableSource:Aa,useSyncExternalStore:Ma,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=N(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Bi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,ql=r),fs(0,t)},n}function ms(e,t,n){(n=Bi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fs(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===Yl?Yl=new Set([this]):Yl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_u.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bi(-1,1)).tag=2,Fi(n,t,1))),n.lanes|=1),e)}var ys=x.ReactCurrentOwner,xs=!1;function ws(e,t,n,r){t.child=null===e?Zi(t,null,n,r):Gi(t,e.child,n,r)}function ks(e,t,n,r,o){n=n.render;var i=t.ref;return Ei(t,o),r=Ca(e,t,n,r,i,o),n=Ea(),null===e||xs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ss(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||ju(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Fu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cs(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Bu(i,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(xs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);131072&e.flags&&(xs=!0)}}return Ps(e,t,n,r,o)}function Es(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Bl,jl),jl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Po(Bl,jl),jl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Bl,jl),jl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Po(Bl,jl),jl|=r;return ws(e,t,o,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,n,r,o){var i=jo(n)?Ao:zo.current;return i=Mo(t,i),Ei(t,o),n=Ca(e,t,n,r,i,o),r=Ea(),null===e||xs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ts(e,t,n,r,o){if(jo(n)){var i=!0;Do(t)}else i=!1;if(Ei(t,o),null===t.stateNode)Us(e,t),Ui(t,n,r),qi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?_i(u):Mo(t,u=jo(n)?Ao:zo.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Hi(t,a,r,u),Ai=!1;var f=t.memoizedState;a.state=f,Ii(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Ro.current||Ai?("function"==typeof c&&(Ni(t,n,c,r),l=t.memoizedState),(s=Ai||Wi(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ji(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:vi(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?_i(l):Mo(t,l=jo(n)?Ao:zo.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&Hi(t,a,r,l),Ai=!1,f=t.memoizedState,a.state=f,Ii(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Ro.current||Ai?("function"==typeof p&&(Ni(t,n,p,r),h=t.memoizedState),(u=Ai||Wi(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return zs(e,t,n,r,i,o)}function zs(e,t,n,r,o,i){_s(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Io(t,n,!1),Hs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Gi(t,e.child,null,i),t.child=Gi(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&Io(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?Fo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fo(0,t.context,!1),oa(e,t.containerInfo)}function As(e,t,n,r,o){return hi(),mi(o),t.flags|=256,ws(e,t,n,r),t.child}var Ms,js,Bs,Fs,Ls={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Is(e,t,n){var r,o=t.pendingProps,a=la.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Po(la,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Du(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Lu(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Ls,e):$s(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Os(e,t,s,r=ds(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Du({mode:"visible",children:r.children},o,0,null),(a=Lu(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&Gi(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ls,a);if(!(1&t.mode))return Os(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Os(e,t,s,r=ds(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),xs||l){if(null!==(r=Rl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ri(e,o),ru(r,e,o,-1))}return gu(),Os(e,t,s,r=ds(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Xo[Ko++]=Go,Xo[Ko++]=Zo,Xo[Ko++]=Qo,Go=e.id,Zo=e.overflow,Qo=t),(t=$s(t,r.children)).flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Bu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?s=Bu(r,s):(s=Lu(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ls,o}return e=(s=e.child).sibling,o=Bu(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function $s(e,t){return(t=Du({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Os(e,t,n,r){return null!==r&&mi(r),Gi(t,e.child,null,n),(e=$s(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ns(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ci(e.return,t,n)}function Vs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ws(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),2&(r=la.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ns(e,n,t);else if(19===e.tag)Ns(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(la,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ua(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vs(t,!0,n,null,i);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Us(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Bu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Bu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ys(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xs(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(t),null;case 1:case 17:return jo(t.type)&&Bo(),Ys(t),null;case 3:return r=t.stateNode,ia(),_o(Ro),_o(zo),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(su(ai),ai=null))),js(e,t),Ys(t),null;case 5:sa(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Bs(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ys(t),null}if(e=ra(ea.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":$r("cancel",r),$r("close",r);break;case"iframe":case"object":case"embed":$r("load",r);break;case"video":case"audio":for(o=0;o<Fr.length;o++)$r(Fr[o],r);break;case"source":$r("error",r);break;case"img":case"image":case"link":$r("error",r),$r("load",r);break;case"details":$r("toggle",r);break;case"input":Q(r,a),$r("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},$r("invalid",r);break;case"textarea":oe(r,a),$r("invalid",r)}for(var l in be(n,a),o=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&$r("scroll",r)}switch(n){case"input":q(r),J(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,Ms(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":$r("cancel",e),$r("close",e),o=r;break;case"iframe":case"object":case"embed":$r("load",e),o=r;break;case"video":case"audio":for(o=0;o<Fr.length;o++)$r(Fr[o],e);o=r;break;case"source":$r("error",e),o=r;break;case"img":case"image":case"link":$r("error",e),$r("load",e),o=r;break;case"details":$r("toggle",e),o=r;break;case"input":Q(e,r),o=K(e,r),$r("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=D({},r,{value:void 0}),$r("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),$r("invalid",e)}for(a in be(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&$r("scroll",e):null!=c&&y(e,a,c,l))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ys(t),null;case 6:if(e&&null!=t.stateNode)Fs(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Ys(t),null;case 13:if(_o(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ys(t),a=!1}else null!==ai&&(su(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&la.current?0===Fl&&(Fl=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ys(t),null);case 4:return ia(),js(e,t),null===e&&Vr(t.stateNode.containerInfo),Ys(t),null;case 10:return Si(t.type._context),Ys(t),null;case 19:if(_o(la),null===(a=t.memoizedState))return Ys(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)qs(a,!1);else{if(0!==Fl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ua(e))){for(t.flags|=128,qs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Ge()>Wl&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Ys(t),null}else 2*Ge()-a.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ge(),t.sibling=null,n=la.current,Po(la,r?1&n|2:1&n),t):(Ys(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&jl)&&(Ys(t),6&t.subtreeFlags&&(t.flags|=8192)):Ys(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ks(e,t){switch(ni(t),t.tag){case 1:return jo(t.type)&&Bo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),_o(Ro),_o(zo),da(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(_o(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(la),null;case 4:return ia(),null;case 10:return Si(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Ms=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},js=function(){},Bs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=D({},o,{value:void 0}),r=D({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&$r("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Fs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qs=!1,Gs=!1,Zs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,n,i)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[bo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,fl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Gs||el(n,t);case 6:var r=dl,o=fl;dl=null,pl(e,t,n),fl=o,null!==(dl=r)&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Vt(e)):lo(dl,n.stateNode));break;case 4:r=dl,o=fl,dl=n.stateNode.containerInfo,fl=!0,pl(e,t,n),dl=r,fl=o;break;case 0:case 11:case 14:case 15:if(!Gs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&tl(n,t,a),o=o.next}while(o!==r)}pl(e,t,n);break;case 1:if(!Gs&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Eu(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,pl(e,t,n),Gs=r):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach(function(t){var r=zu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,fl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===dl)throw Error(i(160));hl(a,s,o),dl=null,fl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Eu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),bl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(t){Eu(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Eu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&G(o,a),ye(l,s);var c=ye(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,c)}switch(l){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Eu(e,e.return,t)}}break;case 6:if(gl(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Eu(e,e.return,t)}}break;case 3:if(gl(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:gl(t,e),bl(e);break;case 13:gl(t,e),bl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Vl=Ge())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(c=Gs)||d,gl(t,e),Gs=c):gl(t,e),bl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Eu(r,n,e)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){kl(f);continue}}null!==h?(h.return=p,Js=h):kl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Eu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Eu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),bl(e),4&r&&ml(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ul(e,ll(e),a);break;default:throw Error(i(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,xl(e,t,n)}function xl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Gs;s=Qs;var u=Gs;if(Qs=a,(Gs=l)&&!u)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Sl(o):null!==l?(l.return=a,Js=l):Sl(o);for(;null!==i;)Js=i,xl(i,t,n),i=i.sibling;Js=o,Qs=s,Gs=u}wl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Js=i):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Gs||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&$i(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}$i(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(i(163))}Gs||512&t.flags&&il(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function kl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(e){Eu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Eu(t,o,e)}}var i=t.return;try{il(t)}catch(e){Eu(t,i,e)}break;case 5:var a=t.return;try{il(t)}catch(e){Eu(t,a,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Cl,El=Math.ceil,_l=x.ReactCurrentDispatcher,Pl=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,zl=0,Rl=null,Al=null,Ml=0,jl=0,Bl=Eo(0),Fl=0,Ll=null,Dl=0,Il=0,$l=0,Ol=null,Nl=null,Vl=0,Wl=1/0,Ul=null,Hl=!1,ql=null,Yl=null,Xl=!1,Kl=null,Ql=0,Gl=0,Zl=null,Jl=-1,eu=0;function tu(){return 6&zl?Ge():-1!==Jl?Jl:Jl=Ge()}function nu(e){return 1&e.mode?2&zl&&0!==Ml?Ml&-Ml:null!==gi.transition?(0===eu&&(eu=mt()),eu):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function ru(e,t,n,r){if(50<Gl)throw Gl=0,Zl=null,Error(i(185));vt(e,n,r),2&zl&&e===Rl||(e===Rl&&(!(2&zl)&&(Il|=n),4===Fl&&lu(e,Ml)),ou(e,r),1===n&&0===zl&&!(1&t.mode)&&(Wl=Ge()+500,Oo&&Wo()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Rl?Ml:0);if(0===r)null!==n&&Xe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Xe(n),1===t)0===e.tag?function(e){Oo=!0,Vo(e)}(uu.bind(null,e)):Vo(uu.bind(null,e)),ao(function(){!(6&zl)&&Wo()}),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ru(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Jl=-1,eu=0,6&zl)throw Error(i(327));var n=e.callbackNode;if(Su()&&e.callbackNode!==n)return null;var r=ft(e,e===Rl?Ml:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var o=zl;zl|=2;var a=mu();for(Rl===e&&Ml===t||(Ul=null,Wl=Ge()+500,pu(e,t));;)try{yu();break}catch(t){hu(e,t)}ki(),_l.current=a,zl=o,null!==Al?t=0:(Rl=null,Ml=0,t=Fl)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=au(e,o)),1===t)throw n=Ll,pu(e,0),lu(e,r),ou(e,Ge()),n;if(6===t)lu(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=vu(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=au(e,a))),1!==t)))throw n=Ll,pu(e,0),lu(e,r),ou(e,Ge()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:ku(e,Nl,Ul);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Vl+500-Ge())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(ku.bind(null,e,Nl,Ul),t);break}ku(e,Nl,Ul);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Ge()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ro(ku.bind(null,e,Nl,Ul),r);break}ku(e,Nl,Ul);break;default:throw Error(i(329))}}}return ou(e,Ge()),e.callbackNode===n?iu.bind(null,e):null}function au(e,t){var n=Ol;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Nl,Nl=n,null!==t&&su(t)),e}function su(e){null===Nl?Nl=e:Nl.push.apply(Nl,e)}function lu(e,t){for(t&=~$l,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(6&zl)throw Error(i(327));Su();var t=ft(e,0);if(!(1&t))return ou(e,Ge()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=au(e,r))}if(1===n)throw n=Ll,pu(e,0),lu(e,t),ou(e,Ge()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Nl,Ul),ou(e,Ge()),null}function cu(e,t){var n=zl;zl|=1;try{return e(t)}finally{0===(zl=n)&&(Wl=Ge()+500,Oo&&Wo())}}function du(e){null!==Kl&&0===Kl.tag&&!(6&zl)&&Su();var t=zl;zl|=1;var n=Tl.transition,r=yt;try{if(Tl.transition=null,yt=1,e)return e()}finally{yt=r,Tl.transition=n,!(6&(zl=t))&&Wo()}}function fu(){jl=Bl.current,_o(Bl)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Bo();break;case 3:ia(),_o(Ro),_o(zo),da();break;case 5:sa(r);break;case 4:ia();break;case 13:case 19:_o(la);break;case 10:Si(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Rl=e,Al=e=Bu(e.current,null),Ml=jl=t,Fl=0,Ll=null,$l=Il=Dl=0,Nl=Ol=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function hu(e,t){for(;;){var n=Al;try{if(ki(),fa.current=as,ba){for(var r=ma.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ba=!1}if(ha=0,va=ga=ma=null,ya=!1,xa=0,Pl.current=null,null===n||null===n.return){Fl=1,Ll=t,Al=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Ml,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vs(s);if(null!==h){h.flags&=-257,bs(h,s,l,0,t),1&h.mode&&gs(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){gs(a,c,t),gu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var v=vs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),bs(v,s,l,0,t),mi(cs(u,l));break e}}a=u=cs(u,l),4!==Fl&&(Fl=2),null===Ol?Ol=[a]:Ol.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Di(a,hs(0,u,t));break e;case 1:l=u;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Yl&&Yl.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Di(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}wu(n)}catch(e){t=e,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function mu(){var e=_l.current;return _l.current=as,null===e?as:e}function gu(){0!==Fl&&3!==Fl&&2!==Fl||(Fl=4),null===Rl||!(268435455&Dl)&&!(268435455&Il)||lu(Rl,Ml)}function vu(e,t){var n=zl;zl|=2;var r=mu();for(Rl===e&&Ml===t||(Ul=null,pu(e,t));;)try{bu();break}catch(t){hu(e,t)}if(ki(),zl=n,_l.current=r,null!==Al)throw Error(i(261));return Rl=null,Ml=0,Fl}function bu(){for(;null!==Al;)xu(Al)}function yu(){for(;null!==Al&&!Ke();)xu(Al)}function xu(e){var t=Cl(e.alternate,e,jl);e.memoizedProps=e.pendingProps,null===t?wu(e):Al=t,Pl.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Fl=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Xs(n,t,jl)))return void(Al=n);if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Fl&&(Fl=5)}function ku(e,t,n){var r=yt,o=Tl.transition;try{Tl.transition=null,yt=1,function(e,t,n,r){do{Su()}while(null!==Kl);if(6&zl)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Rl&&(Al=Rl=null,Ml=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Xl||(Xl=!0,Ru(tt,function(){return Su(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Tl.transition,Tl.transition=null;var s=yt;yt=1;var l=zl;zl|=4,Pl.current=null,function(e,t){if(eo=Ut,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(l=s),p===a&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ut=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:vi(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(e){Eu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=nl,nl=!1}(e,n),vl(n,e),hr(to),Ut=!!eo,to=eo=null,e.current=n,yl(n,e,o),Qe(),zl=l,yt=s,Tl.transition=a}else e.current=n;if(Xl&&(Xl=!1,Kl=e,Ql=o),0===(a=e.pendingLanes)&&(Yl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ou(e,Ge()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=ql,ql=null,e;!!(1&Ql)&&0!==e.tag&&Su(),1&(a=e.pendingLanes)?e===Zl?Gl++:(Gl=0,Zl=e):Gl=0,Wo()}(e,t,n,r)}finally{Tl.transition=o,yt=r}return null}function Su(){if(null!==Kl){var e=xt(Ql),t=Tl.transition,n=yt;try{if(Tl.transition=null,yt=16>e?16:e,null===Kl)var r=!1;else{if(e=Kl,Kl=null,Ql=0,6&zl)throw Error(i(331));var o=zl;for(zl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(al(d),d===c){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Js=b;break e}Js=a.return}}var y=e.current;for(Js=y;null!==Js;){var x=(s=Js).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Js=x;else e:for(s=y;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Eu(l,l.return,e)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(zl=o,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,Tl.transition=t}}return!1}function Cu(e,t,n){e=Fi(e,t=hs(0,t=cs(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),ou(e,t))}function Eu(e,t,n){if(3===e.tag)Cu(e,e,n);else for(;null!==t;){if(3===t.tag){Cu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Yl||!Yl.has(r))){t=Fi(t,e=ms(t,e=cs(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),ou(t,e));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Ml&n)===n&&(4===Fl||3===Fl&&(130023424&Ml)===Ml&&500>Ge()-Vl?pu(e,0):$l|=n),ou(e,t)}function Pu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=tu();null!==(e=Ri(e,t))&&(vt(e,t,n),ou(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function zu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Pu(e,n)}function Ru(e,t){return Ye(e,t)}function Au(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mu(e,t,n,r){return new Au(e,t,n,r)}function ju(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Bu(e,t){var n=e.alternate;return null===n?((n=Mu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fu(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)ju(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Lu(n.children,o,a,t);case C:s=8,o|=8;break;case E:return(e=Mu(12,n,t,2|o)).elementType=E,e.lanes=a,e;case z:return(e=Mu(13,n,t,o)).elementType=z,e.lanes=a,e;case R:return(e=Mu(19,n,t,o)).elementType=R,e.lanes=a,e;case j:return Du(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case P:s=9;break e;case T:s=11;break e;case A:s=14;break e;case M:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Mu(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Lu(e,t,n,r){return(e=Mu(7,e,r,t)).lanes=n,e}function Du(e,t,n,r){return(e=Mu(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return(e=Mu(6,e,null,t)).lanes=n,e}function $u(e,t,n){return(t=Mu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ou(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nu(e,t,n,r,o,i,a,s,l){return e=new Ou(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Mu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mi(i),e}function Vu(e){if(!e)return To;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(jo(n))return Lo(e,n,t)}return t}function Wu(e,t,n,r,o,i,a,s,l){return(e=Nu(n,r,!0,e,0,i,0,s,l)).context=Vu(null),n=e.current,(i=Bi(r=tu(),o=nu(n))).callback=null!=t?t:null,Fi(n,i,o),e.current.lanes=o,vt(e,o,r),ou(e,r),e}function Uu(e,t,n,r){var o=t.current,i=tu(),a=nu(o);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fi(o,t,a))&&(ru(e,o,a,i),Li(e,o,a)),a}function Hu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}Cl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)xs=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return xs=!1,function(e,t,n){switch(t.tag){case 3:Rs(t),hi();break;case 5:aa(t);break;case 1:jo(t.type)&&Do(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(bi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(la,1&la.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Is(e,t,n):(Po(la,1&la.current),null!==(e=Hs(e,t,n))?e.sibling:null);Po(la,1&la.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Hs(e,t,n)}(e,t,n);xs=!!(131072&e.flags)}else xs=!1,ii&&1048576&t.flags&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Us(e,t),e=t.pendingProps;var o=Mo(t,zo.current);Ei(t,n),o=Ca(null,t,r,e,o,n);var a=Ea();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(r)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Mi(t),o.updater=Vi,t.stateNode=o,o._reactInternals=t,qi(t,r,e,n),t=zs(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return ju(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===A)return 14}return 2}(r),e=vi(r,e),o){case 0:t=Ps(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,vi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ps(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ts(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 3:e:{if(Rs(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,ji(e,t),Ii(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=As(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=As(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Zi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),_s(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Is(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Gi(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ks(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Po(bi,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Ro.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Bi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Ci(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ci(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ei(t,n),r=r(o=_i(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=vi(r=t.type,t.pendingProps),Ss(e,t,r,o=vi(r.type,o),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vi(r,o),Us(e,t),t.tag=1,jo(r)?(e=!0,Do(t)):e=!1,Ei(t,n),Ui(t,r,o),qi(t,r,o,n),zs(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return Es(e,t,n)}throw Error(i(156,t.tag))};var Xu="function"==typeof reportError?reportError:function(e){console.error(e)};function Ku(e){this._internalRoot=e}function Qu(e){this._internalRoot=e}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Hu(a);s.call(e)}}Uu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Hu(a);i.call(e)}}var a=Wu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[mo]=a.current,Vr(8===e.nodeType?e.parentNode:e),du(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Hu(l);s.call(e)}}var l=Nu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[mo]=l.current,Vr(8===e.nodeType?e.parentNode:e),du(function(){Uu(t,l,n,r)}),l}(n,t,e,o,r);return Hu(a)}Qu.prototype.render=Ku.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Uu(e,t,null,null)},Qu.prototype.unmount=Ku.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du(function(){Uu(null,e,null,null)}),t[mo]=null}},Qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Dt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ou(t,Ge()),!(6&zl)&&(Wl=Ge()+500,Wo()))}break;case 13:du(function(){var t=Ri(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}}),Yu(e,1)}},kt=function(e){if(13===e.tag){var t=Ri(e,134217728);null!==t&&ru(t,e,134217728,tu()),Yu(e,134217728)}},St=function(e){if(13===e.tag){var t=nu(e),n=Ri(e,t);null!==n&&ru(n,e,t,tu()),Yu(e,t)}},Ct=function(){return yt},Et=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ke=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ko(r);if(!o)throw Error(i(90));Y(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cu,ze=du;var tc={usingClientEntryPoint:!1,Events:[xo,wo,ko,_e,Pe,cu]},nc={findFiberByHostInstance:yo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gu(e))throw Error(i(299));var n=!1,r="",o=Xu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Nu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Ku(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Zu(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Xu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wu(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,Vr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qu(t)},t.render=function(e,t,n){if(!Zu(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(i(40));return!!e._reactRootContainer&&(du(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},5338:(e,t,n)=>{"use strict";var r=n(961);t.createRoot=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},115:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!i(e[u[l]],a[u[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},1020:(e,t,n)=>{"use strict";var r=n(1993),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,l={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:l,_owner:a.current}}t.jsx=l,t.jsxs=l},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,x(e),!m)if(null!==r(u))m=!0,j(k);else{var t=r(c);null!==t&&B(w,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,b(_),_=-1),h=!0;var i=p;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!z());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&o(u),x(n)}else o(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&B(w,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,E=null,_=-1,P=5,T=-1;function z(){return!(t.unstable_now()-T<P)}function R(){if(null!==E){var e=t.unstable_now();T=e;var n=!0;try{n=E(!0,e)}finally{n?S():(C=!1,E=null)}}else C=!1}if("function"==typeof y)S=function(){y(R)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,M=A.port2;A.port1.onmessage=R,S=function(){M.postMessage(null)}}else S=function(){v(R,0)};function j(e){E=e,C||(C=!0,S())}function B(e,n){_=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,j(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(b(_),_=-1):g=!0,B(w,i-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,j(k))),e},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},1993:e=>{e.exports=function(){return this.React}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};for(var o in(()=>{"use strict";var e=n(1993),t=n.n(e),r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var m=1,g=1,v=0,b=0,y=0,x="";function w(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:m,column:g,length:a,return:""}}function k(e,t){return a(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return y=b>0?c(x,--b):0,g--,10===y&&(g=1,m--),y}function C(){return y=b<v?c(x,b++):0,g++,10===y&&(g=1,m++),y}function E(){return c(x,b)}function _(){return b}function P(e,t){return d(x,e,t)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(e){return m=g=1,v=f(x=e),b=0,[]}function R(e){return x="",e}function A(e){return s(P(b-1,B(91===e?e+2:40===e?e+1:e)))}function M(e){for(;(y=E())&&y<33;)C();return T(e)>2||T(y)>3?"":" "}function j(e,t){for(;--t&&C()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return P(e,_()+(t<6&&32==E()&&32==C()))}function B(e){for(;C();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&B(y);break;case 40:41===e&&B(e);break;case 92:C()}return b}function F(e,t){for(;C()&&e+y!==57&&(e+y!==84||47!==E()););return"/*"+P(t,b-1)+"*"+i(47===e?e:C())}function L(e){for(;!T(E());)C();return P(e,b)}var D="-ms-",I="-moz-",$="-webkit-",O="comm",N="rule",V="decl",W="@keyframes";function U(e,t){for(var n="",r=p(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function H(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case V:return e.return=e.return||e.value;case O:return"";case W:return e.return=e.value+"{"+U(e.children,r)+"}";case N:e.value=e.props.join(",")}return f(n=U(e.children,r))?e.return=e.value+"{"+n+"}":""}function q(e){return R(Y("",null,null,null,[""],e=z(e),0,[0],e))}function Y(e,t,n,r,o,a,s,d,p){for(var m=0,g=0,v=s,b=0,y=0,x=0,w=1,k=1,P=1,T=0,z="",R=o,B=a,D=r,I=z;k;)switch(x=T,T=C()){case 40:if(108!=x&&58==c(I,v-1)){-1!=u(I+=l(A(T),"&","&\f"),"&\f")&&(P=-1);break}case 34:case 39:case 91:I+=A(T);break;case 9:case 10:case 13:case 32:I+=M(x);break;case 92:I+=j(_()-1,7);continue;case 47:switch(E()){case 42:case 47:h(K(F(C(),_()),t,n),p);break;default:I+="/"}break;case 123*w:d[m++]=f(I)*P;case 125*w:case 59:case 0:switch(T){case 0:case 125:k=0;case 59+g:-1==P&&(I=l(I,/\f/g,"")),y>0&&f(I)-v&&h(y>32?Q(I+";",r,n,v-1):Q(l(I," ","")+";",r,n,v-2),p);break;case 59:I+=";";default:if(h(D=X(I,t,n,m,g,o,d,z,R=[],B=[],v),a),123===T)if(0===g)Y(I,t,D,D,R,a,v,d,B);else switch(99===b&&110===c(I,3)?100:b){case 100:case 108:case 109:case 115:Y(e,D,D,r&&h(X(e,D,D,0,0,o,d,z,o,R=[],v),B),o,B,v,d,r?R:B);break;default:Y(I,D,D,D,[""],B,0,d,B)}}m=g=y=0,w=P=1,z=I="",v=s;break;case 58:v=1+f(I),y=x;default:if(w<1)if(123==T)--w;else if(125==T&&0==w++&&125==S())continue;switch(I+=i(T),T*w){case 38:P=g>0?1:(I+="\f",-1);break;case 44:d[m++]=(f(I)-1)*P,P=1;break;case 64:45===E()&&(I+=A(C())),b=E(),g=v=f(z=I+=L(_())),T++;break;case 45:45===x&&2==f(I)&&(w=0)}}return a}function X(e,t,n,r,i,a,u,c,f,h,m){for(var g=i-1,v=0===i?a:[""],b=p(v),y=0,x=0,k=0;y<r;++y)for(var S=0,C=d(e,g+1,g=o(x=u[y])),E=e;S<b;++S)(E=s(x>0?v[S]+" "+C:l(C,/&\f/g,v[S])))&&(f[k++]=E);return w(e,t,n,0===i?N:c,f,h,m)}function K(e,t,n){return w(e,t,n,O,i(y),d(e,2,-2),0)}function Q(e,t,n,r){return w(e,t,n,V,d(e,0,r),d(e,r+1,-1),r)}var G=function(e,t,n){for(var r=0,o=0;r=o,o=E(),38===r&&12===o&&(t[n]=1),!T(o);)C();return P(e,b)},Z=new WeakMap,J=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(n))&&!r){Z.set(e,!0);for(var o=[],a=function(e,t){return R(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=G(b-1,t,n);break;case 2:e[n]+=A(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=C());return e}(z(e),t))}(t,o),s=n.props,l=0,u=0;l<a.length;l++)for(var c=0;c<s.length;c++,u++)e.props[u]=o[l]?a[l].replace(/&\f/g,s[c]):s[c]+" "+a[l]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^c(e,0)?(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0}(e,t)){case 5103:return $+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+I+e+D+e+e;case 6828:case 4268:return $+e+D+e+e;case 6165:return $+e+D+"flex-"+e+e;case 5187:return $+e+l(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+D+"flex-$1$2")+e;case 5443:return $+e+D+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return $+e+D+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+D+l(e,"shrink","negative")+e;case 5292:return $+e+D+l(e,"basis","preferred-size")+e;case 6060:return $+"box-"+l(e,"-grow","")+$+e+D+l(e,"grow","positive")+e;case 4554:return $+l(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+I+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~u(e,"!important")&&10))){case 107:return l(e,":",":"+$)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(45===c(e,14)?"inline-":"")+"box$3$1"+$+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return $+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+D+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case V:e.return=te(e.value,e.length);break;case W:return U([k(e,{value:l(e.value,"@","@"+$)})],r);case N:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return U([k(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return U([k(e,{props:[l(t,/:(plac\w+)/,":"+$+"input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""})}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var o,i,a=e.stylisPlugins||ne,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)});var u,c,d,f,h=[H,(f=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],m=(c=[J,ee].concat(a,h),d=p(c),function(e,t,n,r){for(var o="",i=0;i<d;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){u=n,function(e){U(q(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return g.sheet.hydrate(l),g};function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe.apply(null,arguments)}var ie=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},ae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function se(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var le=/[A-Z]|^ms/g,ue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ce=function(e){return 45===e.charCodeAt(1)},de=function(e){return null!=e&&"boolean"!=typeof e},fe=se(function(e){return ce(e)?e:e.replace(le,"-$&").toLowerCase()}),pe=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ue,function(e,t,n){return me={name:t,styles:n,next:me},t})}return 1===ae[e]||ce(e)||"number"!=typeof t||0===t?t:t+"px"};function he(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return me={name:o.name,styles:o.styles,next:me},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)me={name:a.name,styles:a.styles,next:me},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=he(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":de(s)&&(r+=fe(i)+":"+pe(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=he(e,t,a);switch(i){case"animation":case"animationName":r+=fe(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)de(a[u])&&(r+=fe(i)+":"+pe(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=me,l=n(e);return me=s,he(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var me,ge=/label:\s*([^\s;{]+)\s*(;|$)/g;function ve(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";me=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=he(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=he(n,t,e[a]),r&&(o+=i[a]);ge.lastIndex=0;for(var s,l="";null!==(s=ge.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:me}}var be=!!e.useInsertionEffect&&e.useInsertionEffect,ye=be||function(e){return e()},xe=be||e.useLayoutEffect,we=e.createContext("undefined"!=typeof HTMLElement?re({key:"css"}):null);we.Provider;var ke=function(t){return(0,e.forwardRef)(function(n,r){var o=(0,e.useContext)(we);return t(n,o,r)})},Se=e.createContext({}),Ce=ie(function(e){return ie(function(t){return function(e,t){return"function"==typeof t?t(e):oe({},e,t)}(e,t)})}),Ee=function(t){var n=e.useContext(Se);return t.theme!==n&&(n=Ce(n)(t.theme)),e.createElement(Se.Provider,{value:n},t.children)},_e=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Pe=function(e,t,n){_e(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},Te=(n(4146),ke(function(t,n){var r=ve([t.styles],void 0,e.useContext(Se)),o=e.useRef();return xe(function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),o.current=[t,i],function(){t.flush()}},[n]),xe(function(){var e=o.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Pe(n,r.next,!0),t.tags.length){var i=t.tags[t.tags.length-1].nextElementSibling;t.before=i,t.flush()}n.insert("",r,t,!1)}},[n,r.name]),null}));function ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ve(t)}var Re=n(4848),Ae=String.raw,Me=Ae` :root, :host { --chakra-vh: 100vh; } @supports (height: -webkit-fill-available) { :root, :host { --chakra-vh: -webkit-fill-available; } } @supports (height: -moz-fill-available) { :root, :host { --chakra-vh: -moz-fill-available; } } @supports (height: 100dvh) { :root, :host { --chakra-vh: 100dvh; } } `,je=()=>(0,Re.jsx)(Te,{styles:Me}),Be=({scope:e=""})=>(0,Re.jsx)(Te,{styles:Ae` html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; touch-action: manipulation; } body { position: relative; min-height: 100%; margin: 0; font-feature-settings: "kern"; } ${e} :where(*, *::before, *::after) { border-width: 0; border-style: solid; box-sizing: border-box; word-wrap: break-word; } main { display: block; } ${e} hr { border-top-width: 1px; box-sizing: content-box; height: 0; overflow: visible; } ${e} :where(pre, code, kbd,samp) { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1em; } ${e} a { background-color: transparent; color: inherit; text-decoration: inherit; } ${e} abbr[title] { border-bottom: none; text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } ${e} :where(b, strong) { font-weight: bold; } ${e} small { font-size: 80%; } ${e} :where(sub,sup) { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } ${e} sub { bottom: -0.25em; } ${e} sup { top: -0.5em; } ${e} img { border-style: none; } ${e} :where(button, input, optgroup, select, textarea) { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } ${e} :where(button, input) { overflow: visible; } ${e} :where(button, select) { text-transform: none; } ${e} :where( button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner ) { border-style: none; padding: 0; } ${e} fieldset { padding: 0.35em 0.75em 0.625em; } ${e} legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } ${e} progress { vertical-align: baseline; } ${e} textarea { overflow: auto; } ${e} :where([type="checkbox"], [type="radio"]) { box-sizing: border-box; padding: 0; } ${e} input[type="number"]::-webkit-inner-spin-button, ${e} input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; } ${e} input[type="number"] { -moz-appearance: textfield; } ${e} input[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } ${e} input[type="search"]::-webkit-search-decoration { -webkit-appearance: none !important; } ${e} ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } ${e} details { display: block; } ${e} summary { display: list-item; } template { display: none; } [hidden] { display: none !important; } ${e} :where( blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre ) { margin: 0; } ${e} button { background: transparent; padding: 0; } ${e} fieldset { margin: 0; padding: 0; } ${e} :where(ol, ul) { margin: 0; padding: 0; } ${e} textarea { resize: vertical; } ${e} :where(button, [role="button"]) { cursor: pointer; } ${e} button::-moz-focus-inner { border: 0 !important; } ${e} table { border-collapse: collapse; } ${e} :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; } ${e} :where(button, input, optgroup, select, textarea) { padding: 0; line-height: inherit; color: inherit; } ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { display: block; } ${e} :where(img, video) { max-width: 100%; height: auto; } [data-js-focus-visible] :focus:not([data-focus-visible-added]):not( [data-focus-visible-disabled] ) { outline: none; box-shadow: none; } ${e} select::-ms-expand { display: none; } ${Me} `});function Fe(t={}){const{name:n,strict:r=!0,hookName:o="useContext",providerName:i="Provider",errorMessage:a,defaultValue:s}=t,l=(0,e.createContext)(s);return l.displayName=n,[l.Provider,function t(){var n;const s=(0,e.useContext)(l);if(!s&&r){const e=new Error(null!=a?a:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw e.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,e,t),e}return s},l]}var[Le,De]=Fe({strict:!1,name:"PortalManagerContext"});function Ie(e){const{children:t,zIndex:n}=e;return(0,Re.jsx)(Le,{value:{zIndex:n},children:t})}Ie.displayName="PortalManager";var $e=(0,e.createContext)({});function Oe(){const t=(0,e.useContext)($e);if(void 0===t)throw new Error("useColorMode must be used within a ColorModeProvider");return t}$e.displayName="ColorModeContext";var Ne=(...e)=>e.filter(Boolean).join(" ");function Ve(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function We(e,...t){return Ue(e)?e(...t):e}var Ue=e=>"function"==typeof e,He=n(8394),qe=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e;function Ye(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{var i;const a=((e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),i=qe(r),a=e?`${e}.${i}`:i;let s=Ve(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return s=qe(s),o?`${s} !important`:s})(t,e)(o);let s=null!=(i=null==n?void 0:n(a,o))?i:a;return r&&(s=r(s,o)),s}}var Xe=(...e)=>t=>e.reduce((e,t)=>t(e),t);function Ke(e,t){return n=>{const r={property:n,scale:e};return r.transform=Ye({scale:e,transform:t}),r}}var Qe=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,Ge=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],Ze={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Je={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},et={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},tt={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},nt=new Set(Object.values(tt)),rt=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),ot=e=>e.trim(),it=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),at=e=>t=>`${e}(${t})`,st={filter:e=>"auto"!==e?e:Ze,backdropFilter:e=>"auto"!==e?e:Je,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(st.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Ge].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Ge].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||rt.has(e))return e;if(!it(e)&&!rt.has(e))return`url('${e}')`;const n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),r=null==n?void 0:n[1],o=null==n?void 0:n[2];if(!r||!o)return e;const i=r.includes("-gradient")?r:`${r}-gradient`,[a,...s]=o.split(",").map(ot).filter(Boolean);if(0===(null==s?void 0:s.length))return e;const l=a in tt?tt[a]:a;return s.unshift(l),`${i}(${s.map(e=>{if(nt.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],i=it(o)?o:o&&o.split(" "),a=`colors.${r}`,s=a in t.__cssMap?t.__cssMap[a].varRef:r;return i?[s,...Array.isArray(i)?i:[i]].join(" "):s}).join(", ")})`}(e,null!=t?t:{}),blur:at("blur"),opacity:at("opacity"),brightness:at("brightness"),contrast:at("contrast"),dropShadow:at("drop-shadow"),grayscale:at("grayscale"),hueRotate:e=>at("hue-rotate")(st.degree(e)),invert:at("invert"),saturate:at("saturate"),sepia:at("sepia"),bgImage:e=>null==e||it(e)||rt.has(e)?e:`url(${e})`,outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=null!=(t=et[e])?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},lt={borderWidths:Ke("borderWidths"),borderStyles:Ke("borderStyles"),colors:Ke("colors"),borders:Ke("borders"),gradients:Ke("gradients",st.gradient),radii:Ke("radii",st.px),space:Ke("space",Xe(st.vh,st.px)),spaceT:Ke("space",Xe(st.vh,st.px)),degreeT:e=>({property:e,transform:st.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:Ye({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:Ke("sizes",Xe(st.vh,st.px)),sizesT:Ke("sizes",Xe(st.vh,st.fraction)),shadows:Ke("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Qe(t),transform:n?Ye({scale:n,compose:r}):r}},blur:Ke("blur",st.blur)},ut={background:lt.colors("background"),backgroundColor:lt.colors("backgroundColor"),backgroundImage:lt.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:st.bgClip},bgSize:lt.prop("backgroundSize"),bgPosition:lt.prop("backgroundPosition"),bg:lt.colors("background"),bgColor:lt.colors("backgroundColor"),bgPos:lt.prop("backgroundPosition"),bgRepeat:lt.prop("backgroundRepeat"),bgAttachment:lt.prop("backgroundAttachment"),bgGradient:lt.gradients("backgroundImage"),bgClip:{transform:st.bgClip}};Object.assign(ut,{bgImage:ut.backgroundImage,bgImg:ut.backgroundImage});var ct={border:lt.borders("border"),borderWidth:lt.borderWidths("borderWidth"),borderStyle:lt.borderStyles("borderStyle"),borderColor:lt.colors("borderColor"),borderRadius:lt.radii("borderRadius"),borderTop:lt.borders("borderTop"),borderBlockStart:lt.borders("borderBlockStart"),borderTopLeftRadius:lt.radii("borderTopLeftRadius"),borderStartStartRadius:lt.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:lt.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:lt.radii("borderTopRightRadius"),borderStartEndRadius:lt.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:lt.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:lt.borders("borderRight"),borderInlineEnd:lt.borders("borderInlineEnd"),borderBottom:lt.borders("borderBottom"),borderBlockEnd:lt.borders("borderBlockEnd"),borderBottomLeftRadius:lt.radii("borderBottomLeftRadius"),borderBottomRightRadius:lt.radii("borderBottomRightRadius"),borderLeft:lt.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:lt.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:lt.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:lt.borders(["borderLeft","borderRight"]),borderInline:lt.borders("borderInline"),borderY:lt.borders(["borderTop","borderBottom"]),borderBlock:lt.borders("borderBlock"),borderTopWidth:lt.borderWidths("borderTopWidth"),borderBlockStartWidth:lt.borderWidths("borderBlockStartWidth"),borderTopColor:lt.colors("borderTopColor"),borderBlockStartColor:lt.colors("borderBlockStartColor"),borderTopStyle:lt.borderStyles("borderTopStyle"),borderBlockStartStyle:lt.borderStyles("borderBlockStartStyle"),borderBottomWidth:lt.borderWidths("borderBottomWidth"),borderBlockEndWidth:lt.borderWidths("borderBlockEndWidth"),borderBottomColor:lt.colors("borderBottomColor"),borderBlockEndColor:lt.colors("borderBlockEndColor"),borderBottomStyle:lt.borderStyles("borderBottomStyle"),borderBlockEndStyle:lt.borderStyles("borderBlockEndStyle"),borderLeftWidth:lt.borderWidths("borderLeftWidth"),borderInlineStartWidth:lt.borderWidths("borderInlineStartWidth"),borderLeftColor:lt.colors("borderLeftColor"),borderInlineStartColor:lt.colors("borderInlineStartColor"),borderLeftStyle:lt.borderStyles("borderLeftStyle"),borderInlineStartStyle:lt.borderStyles("borderInlineStartStyle"),borderRightWidth:lt.borderWidths("borderRightWidth"),borderInlineEndWidth:lt.borderWidths("borderInlineEndWidth"),borderRightColor:lt.colors("borderRightColor"),borderInlineEndColor:lt.colors("borderInlineEndColor"),borderRightStyle:lt.borderStyles("borderRightStyle"),borderInlineEndStyle:lt.borderStyles("borderInlineEndStyle"),borderTopRadius:lt.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:lt.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:lt.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:lt.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ct,{rounded:ct.borderRadius,roundedTop:ct.borderTopRadius,roundedTopLeft:ct.borderTopLeftRadius,roundedTopRight:ct.borderTopRightRadius,roundedTopStart:ct.borderStartStartRadius,roundedTopEnd:ct.borderStartEndRadius,roundedBottom:ct.borderBottomRadius,roundedBottomLeft:ct.borderBottomLeftRadius,roundedBottomRight:ct.borderBottomRightRadius,roundedBottomStart:ct.borderEndStartRadius,roundedBottomEnd:ct.borderEndEndRadius,roundedLeft:ct.borderLeftRadius,roundedRight:ct.borderRightRadius,roundedStart:ct.borderInlineStartRadius,roundedEnd:ct.borderInlineEndRadius,borderStart:ct.borderInlineStart,borderEnd:ct.borderInlineEnd,borderTopStartRadius:ct.borderStartStartRadius,borderTopEndRadius:ct.borderStartEndRadius,borderBottomStartRadius:ct.borderEndStartRadius,borderBottomEndRadius:ct.borderEndEndRadius,borderStartRadius:ct.borderInlineStartRadius,borderEndRadius:ct.borderInlineEndRadius,borderStartWidth:ct.borderInlineStartWidth,borderEndWidth:ct.borderInlineEndWidth,borderStartColor:ct.borderInlineStartColor,borderEndColor:ct.borderInlineEndColor,borderStartStyle:ct.borderInlineStartStyle,borderEndStyle:ct.borderInlineEndStyle});var dt={color:lt.colors("color"),textColor:lt.colors("color"),fill:lt.colors("fill"),stroke:lt.colors("stroke")},ft={boxShadow:lt.shadows("boxShadow"),mixBlendMode:!0,blendMode:lt.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:lt.prop("backgroundBlendMode"),opacity:!0};Object.assign(ft,{shadow:ft.boxShadow});var pt={filter:{transform:st.filter},blur:lt.blur("--chakra-blur"),brightness:lt.propT("--chakra-brightness",st.brightness),contrast:lt.propT("--chakra-contrast",st.contrast),hueRotate:lt.propT("--chakra-hue-rotate",st.hueRotate),invert:lt.propT("--chakra-invert",st.invert),saturate:lt.propT("--chakra-saturate",st.saturate),dropShadow:lt.propT("--chakra-drop-shadow",st.dropShadow),backdropFilter:{transform:st.backdropFilter},backdropBlur:lt.blur("--chakra-backdrop-blur"),backdropBrightness:lt.propT("--chakra-backdrop-brightness",st.brightness),backdropContrast:lt.propT("--chakra-backdrop-contrast",st.contrast),backdropHueRotate:lt.propT("--chakra-backdrop-hue-rotate",st.hueRotate),backdropInvert:lt.propT("--chakra-backdrop-invert",st.invert),backdropSaturate:lt.propT("--chakra-backdrop-saturate",st.saturate)},ht={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:st.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:lt.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:lt.space("gap"),rowGap:lt.space("rowGap"),columnGap:lt.space("columnGap")};Object.assign(ht,{flexDir:ht.flexDirection});var mt={gridGap:lt.space("gridGap"),gridColumnGap:lt.space("gridColumnGap"),gridRowGap:lt.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},gt={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:st.outline},outlineOffset:!0,outlineColor:lt.colors("outlineColor")},vt={width:lt.sizesT("width"),inlineSize:lt.sizesT("inlineSize"),height:lt.sizes("height"),blockSize:lt.sizes("blockSize"),boxSize:lt.sizes(["width","height"]),minWidth:lt.sizes("minWidth"),minInlineSize:lt.sizes("minInlineSize"),minHeight:lt.sizes("minHeight"),minBlockSize:lt.sizes("minBlockSize"),maxWidth:lt.sizes("maxWidth"),maxInlineSize:lt.sizes("maxInlineSize"),maxHeight:lt.sizes("maxHeight"),maxBlockSize:lt.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const i=`@media screen and (min-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r.minW)?o:e})`;return{[i]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const i=`@media screen and (max-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r._minW)?o:e})`;return{[i]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:lt.propT("float",st.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(vt,{w:vt.width,h:vt.height,minW:vt.minWidth,maxW:vt.maxWidth,minH:vt.minHeight,maxH:vt.maxHeight,overscroll:vt.overscrollBehavior,overscrollX:vt.overscrollBehaviorX,overscrollY:vt.overscrollBehaviorY});var bt={listStyleType:!0,listStylePosition:!0,listStylePos:lt.prop("listStylePosition"),listStyleImage:!0,listStyleImg:lt.prop("listStyleImage")},yt=(e=>{const t=new WeakMap;return(n,r,o,i)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(r))return a.get(r);const s=e(n,r,o,i);return a.set(r,s),s}})(function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}),xt={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},wt={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},kt=(e,t,n)=>{const r={},o=yt(e,t,{});for(const e in o)e in n&&null!=n[e]||(r[e]=o[e]);return r},St={srOnly:{transform:e=>!0===e?xt:"focusable"===e?wt:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>kt(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>kt(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>kt(t,e,n)}},Ct={position:!0,pos:lt.prop("position"),zIndex:lt.prop("zIndex","zIndices"),inset:lt.spaceT("inset"),insetX:lt.spaceT(["left","right"]),insetInline:lt.spaceT("insetInline"),insetY:lt.spaceT(["top","bottom"]),insetBlock:lt.spaceT("insetBlock"),top:lt.spaceT("top"),insetBlockStart:lt.spaceT("insetBlockStart"),bottom:lt.spaceT("bottom"),insetBlockEnd:lt.spaceT("insetBlockEnd"),left:lt.spaceT("left"),insetInlineStart:lt.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:lt.spaceT("right"),insetInlineEnd:lt.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ct,{insetStart:Ct.insetInlineStart,insetEnd:Ct.insetInlineEnd});var Et={ring:{transform:st.ring},ringColor:lt.colors("--chakra-ring-color"),ringOffset:lt.prop("--chakra-ring-offset-width"),ringOffsetColor:lt.colors("--chakra-ring-offset-color"),ringInset:lt.prop("--chakra-ring-inset")},_t={margin:lt.spaceT("margin"),marginTop:lt.spaceT("marginTop"),marginBlockStart:lt.spaceT("marginBlockStart"),marginRight:lt.spaceT("marginRight"),marginInlineEnd:lt.spaceT("marginInlineEnd"),marginBottom:lt.spaceT("marginBottom"),marginBlockEnd:lt.spaceT("marginBlockEnd"),marginLeft:lt.spaceT("marginLeft"),marginInlineStart:lt.spaceT("marginInlineStart"),marginX:lt.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:lt.spaceT("marginInline"),marginY:lt.spaceT(["marginTop","marginBottom"]),marginBlock:lt.spaceT("marginBlock"),padding:lt.space("padding"),paddingTop:lt.space("paddingTop"),paddingBlockStart:lt.space("paddingBlockStart"),paddingRight:lt.space("paddingRight"),paddingBottom:lt.space("paddingBottom"),paddingBlockEnd:lt.space("paddingBlockEnd"),paddingLeft:lt.space("paddingLeft"),paddingInlineStart:lt.space("paddingInlineStart"),paddingInlineEnd:lt.space("paddingInlineEnd"),paddingX:lt.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:lt.space("paddingInline"),paddingY:lt.space(["paddingTop","paddingBottom"]),paddingBlock:lt.space("paddingBlock")};Object.assign(_t,{m:_t.margin,mt:_t.marginTop,mr:_t.marginRight,me:_t.marginInlineEnd,marginEnd:_t.marginInlineEnd,mb:_t.marginBottom,ml:_t.marginLeft,ms:_t.marginInlineStart,marginStart:_t.marginInlineStart,mx:_t.marginX,my:_t.marginY,p:_t.padding,pt:_t.paddingTop,py:_t.paddingY,px:_t.paddingX,pb:_t.paddingBottom,pl:_t.paddingLeft,ps:_t.paddingInlineStart,paddingStart:_t.paddingInlineStart,pr:_t.paddingRight,pe:_t.paddingInlineEnd,paddingEnd:_t.paddingInlineEnd});var Pt={textDecorationColor:lt.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:lt.shadows("textShadow")},Tt={clipPath:!0,transform:lt.propT("transform",st.transform),transformOrigin:!0,translateX:lt.spaceT("--chakra-translate-x"),translateY:lt.spaceT("--chakra-translate-y"),skewX:lt.degreeT("--chakra-skew-x"),skewY:lt.degreeT("--chakra-skew-y"),scaleX:lt.prop("--chakra-scale-x"),scaleY:lt.prop("--chakra-scale-y"),scale:lt.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:lt.degreeT("--chakra-rotate")},zt={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:lt.prop("transitionDuration","transition.duration"),transitionProperty:lt.prop("transitionProperty","transition.property"),transitionTimingFunction:lt.prop("transitionTimingFunction","transition.easing")},Rt={fontFamily:lt.prop("fontFamily","fonts"),fontSize:lt.prop("fontSize","fontSizes",st.px),fontWeight:lt.prop("fontWeight","fontWeights"),lineHeight:lt.prop("lineHeight","lineHeights"),letterSpacing:lt.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},At={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:lt.spaceT("scrollMargin"),scrollMarginTop:lt.spaceT("scrollMarginTop"),scrollMarginBottom:lt.spaceT("scrollMarginBottom"),scrollMarginLeft:lt.spaceT("scrollMarginLeft"),scrollMarginRight:lt.spaceT("scrollMarginRight"),scrollMarginX:lt.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:lt.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:lt.spaceT("scrollPadding"),scrollPaddingTop:lt.spaceT("scrollPaddingTop"),scrollPaddingBottom:lt.spaceT("scrollPaddingBottom"),scrollPaddingLeft:lt.spaceT("scrollPaddingLeft"),scrollPaddingRight:lt.spaceT("scrollPaddingRight"),scrollPaddingX:lt.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:lt.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Mt(e){return Ve(e)&&e.reference?e.reference:String(e)}var jt=(e,...t)=>t.map(Mt).join(` ${e} `).replace(/calc/g,""),Bt=(...e)=>`calc(${jt("+",...e)})`,Ft=(...e)=>`calc(${jt("-",...e)})`,Lt=(...e)=>`calc(${jt("*",...e)})`,Dt=(...e)=>`calc(${jt("/",...e)})`,It=e=>{const t=Mt(e);return null==t||Number.isNaN(parseFloat(t))?Lt(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},$t=Object.assign(e=>({add:(...t)=>$t(Bt(e,...t)),subtract:(...t)=>$t(Ft(e,...t)),multiply:(...t)=>$t(Lt(e,...t)),divide:(...t)=>$t(Dt(e,...t)),negate:()=>$t(It(e)),toString:()=>e.toString()}),{add:Bt,subtract:Ft,multiply:Lt,divide:Dt,negate:It});function Ot(e,t){return`var(${e}${t?`, ${t}`:""})`}function Nt(e,t=""){return function(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){return e.includes("\\.")||Number.isInteger(parseFloat(e.toString()))?e:e.replace(".","\\.")}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function Vt(e,t,n){const r=Nt(e,n);return{variable:r,reference:Ot(r,t)}}function Wt(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function Ut(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}var Ht=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,qt=e=>Object.fromEntries(Object.entries(e).sort(Ht));function Yt(e){const t=qt(e);return Object.assign(Object.values(t),t)}function Xt(e){var t;return e?"number"==typeof(e=null!=(t=Ut(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function Kt(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Ut(e)})`),t&&n.push("and",`(max-width: ${Ut(t)})`),n.join(" ")}function Qt(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const n=Yt(e),r=Object.entries(e).sort(Ht).map(([e,t],n,r)=>{var o;let[,i]=null!=(o=r[n+1])?o:[];return i=parseFloat(i)>0?Xt(i):void 0,{_minW:Xt(t),breakpoint:e,minW:t,maxW:i,maxWQuery:Kt(null,i),minWQuery:Kt(t),minMaxQuery:Kt(t,i)}}),o=function(e){const t=Object.keys(qt(e));return new Set(t)}(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:qt(e),asArray:Yt(e),details:r,get:e=>r.find(t=>t.breakpoint===e),media:[null,...n.map(e=>Kt(e)).slice(1)],toArrayValue(e){if(!Ve(e))throw new Error("toArrayValue: value must be an object");const t=i.map(t=>{var n;return null!=(n=e[t])?n:null});for(;null===Wt(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{const r=i[n];return null!=r&&null!=t&&(e[r]=t),e},{})}}}var Gt=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,Zt=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,Jt=(e,t)=>`${e}:focus-visible ${t}`,en=(e,t)=>`${e}:focus-within ${t}`,tn=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,nn=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,rn=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,on=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,an=e=>ln(t=>e(t,"&"),"[role=group]","[data-group]",".group"),sn=e=>ln(t=>e(t,"~ &"),"[data-peer]",".peer"),ln=(e,...t)=>t.map(e).join(", "),un={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:an(Gt),_peerHover:sn(Gt),_groupFocus:an(Zt),_peerFocus:sn(Zt),_groupFocusVisible:an(Jt),_peerFocusVisible:sn(Jt),_groupActive:an(tn),_peerActive:sn(tn),_groupDisabled:an(nn),_peerDisabled:sn(nn),_groupInvalid:an(rn),_peerInvalid:sn(rn),_groupChecked:an(on),_peerChecked:sn(on),_groupFocusWithin:an(en),_peerFocusWithin:sn(en),_peerPlaceholderShown:sn((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},cn=Object.keys(un);function dn(e,t){return Vt(String(e).replace(/\./g,"-"),void 0,t)}function fn(e,t,n={}){const{stop:r,getKey:o}=n;return function e(n,i=[]){var a;if(function(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}(n)||Array.isArray(n)){const s={};for(const[l,u]of Object.entries(n)){const c=null!=(a=null==o?void 0:o(l))?a:l,d=[...i,c];if(null==r?void 0:r(n,d))return t(n,i);s[c]=e(u,d)}return s}return t(n,i)}(e)}var pn=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],hn=e=>cn.includes(e)||"default"===e;var mn=He({},ut,ct,dt,ht,vt,pt,Et,gt,mt,St,Ct,ft,_t,At,Rt,Pt,Tt,bt,zt),gn=Object.assign({},_t,vt,ht,mt,Ct),vn=(Object.keys(gn),[...Object.keys(mn),...cn]),bn={...mn,...un},yn=e=>e in bn,xn=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),wn=(e,t)=>{var n,r;if(null==t)return t;const o=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},i=e=>{var t;return null!=(t=o(e))?t:e},[a,s]=function(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];"("===i?(r=!0,n+=i):")"===i?(r=!1,n+=i):","!==i||r?n+=i:(t.push(n),n="")}return n=n.trim(),n&&t.push(n),t}(t);return null!=(r=null!=(n=o(a))?n:i(s))?r:i(t)};var kn=e=>t=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,i=!1)=>{var a,s,l;const u=We(e,r),c=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const a in e){let s=We(e[a],t);if(null==s)continue;if(s=Ve(s)&&n(s)?r(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;e<l;e+=1){const t=null==o?void 0:o[e];t?(i[t]=i[t]||{},null!=s[e]&&(i[t][a]=s[e])):i[a]=s[e]}}return i})(u)(r);let d={};for(let e in c){let f=We(c[e],r);e in n&&(e=n[e]),xn(e,f)&&(f=wn(r,f));let p=t[e];if(!0===p&&(p={property:e}),Ve(f)){d[e]=null!=(a=d[e])?a:{},d[e]=He({},d[e],o(f,!0));continue}let h=null!=(l=null==(s=null==p?void 0:p.transform)?void 0:s.call(p,f,r,u))?l:f;h=(null==p?void 0:p.processResult)?o(h,!0):h;const m=We(null==p?void 0:p.property,r);if(!i&&(null==p?void 0:p.static)){const e=We(p.static,r);d=He({},d,e)}if(m&&Array.isArray(m))for(const e of m)d[e]=h;else m?"&"===m&&Ve(h)?d=He({},d,h):d[m]=h:Ve(h)?d=He({},d,h):d[e]=h}return d};return o}({theme:t,pseudos:un,configs:mn})(e);function Sn(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function Cn(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}function En(e){return function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}var _n=(e=>{const t=new WeakMap;return(n,r,o,i)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(r))return a.get(r);const s=e(n,r,o,i);return a.set(r,s),s}})(function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e});function Pn(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var Tn=e=>Pn(e,e=>null!=e);function zn(e,...t){return"function"==typeof e?e(...t):e}function Rn(t){const{cssVarsRoot:n,theme:r,children:o}=t,i=(0,e.useMemo)(()=>function(e){var t;const n=function(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}(e),r=function(e){return function(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}(e,pn)}(n),o=function(e){return e.semanticTokens}(n),i=function({tokens:e,semanticTokens:t}){const n={};return fn(e,(e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!1,value:e})}),fn(t,(e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(hn)}),n}({tokens:r,semanticTokens:o}),a=null==(t=n.config)?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=function(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:u}=dn(o,null==t?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const e=o.split("."),[t,...n]=e,i=`${t}.-${n.join(".")}`,a=$t.negate(s),c=$t.negate(u);r[i]={value:a,var:l,varRef:c}}n[l]=s,r[o]={value:s,var:l,varRef:u};continue}const c=n=>{const r=[String(o).split(".")[0],n].join(".");if(!e[r])return n;const{reference:i}=dn(r,null==t?void 0:t.cssVarPrefix);return i},d=Ve(s)?s:{default:s};n=He(n,Object.entries(d).reduce((e,[t,n])=>{var r,o;if(!n)return e;const i=c(`${n}`);return"default"===t?(e[l]=i,e):(e[null!=(o=null==(r=un)?void 0:r[t])?o:t]={[l]:i},e)},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}(i,{cssVarPrefix:a});return Object.assign(n,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...l},__cssMap:s,__breakpoints:Qt(n.breakpoints)}),n}(r),[r]);return(0,Re.jsxs)(Ee,{theme:i,children:[(0,Re.jsx)(An,{root:n}),o]})}function An({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,Re.jsx)(Te,{styles:e=>({[t]:e.__cssVars})})}var[Mn,jn]=function(t={}){const{strict:n=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=t,i=(0,e.createContext)(void 0);return i.displayName=o,[i.Provider,function t(){var o;const a=(0,e.useContext)(i);if(!a&&n){const e=new Error(r);throw e.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,e,t),e}return a},i]}({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Bn(){const{colorMode:e}=Oe();return(0,Re.jsx)(Te,{styles:t=>{const n=zn(_n(t,"styles.global"),{theme:t,colorMode:e});if(n)return kn(n)(t)}})}var Fn,Ln="chakra-ui-light",Dn="chakra-ui-dark",In="chakra-ui-color-mode",$n=(Fn=In,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(Fn)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(Fn,e)}catch(e){}}});var On=Boolean(null==globalThis?void 0:globalThis.document)?e.useLayoutEffect:e.useEffect,Nn=()=>{};function Vn(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function Wn(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:s=$n}=t,l="dark"===i?"dark":"light",[u,c]=(0,e.useState)(()=>Vn(s,l)),[d,f]=(0,e.useState)(()=>Vn(s)),{getSystemTheme:p,setClassName:h,setDataset:m,addListener:g}=(0,e.useMemo)(()=>function(e={}){const{preventTransition:t=!0}=e,n={setDataset:e=>{const r=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==r||r()},setClassName(e){document.body.classList.add(e?Dn:Ln),document.body.classList.remove(e?Ln:Dn)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=n.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=n.query(),r=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return n}({preventTransition:a}),[a]),v="system"!==i||u?u:d,b=(0,e.useCallback)(e=>{const t="system"===e?p():e;c(t),h("dark"===t),m(t),s.set(t)},[s,p,h,m]);On(()=>{"system"===i&&f(p())},[]),(0,e.useEffect)(()=>{const e=s.get();b(e||("system"!==i?l:"system"))},[s,l,i,b]);const y=(0,e.useCallback)(()=>{b("dark"===v?"light":"dark")},[v,b]);(0,e.useEffect)(()=>{if(o)return g(b)},[o,g,b]);const x=(0,e.useMemo)(()=>({colorMode:null!=n?n:v,toggleColorMode:n?Nn:y,setColorMode:n?Nn:b,forced:void 0!==n}),[v,y,b,n]);return(0,Re.jsx)($e.Provider,{value:x,children:r})}Wn.displayName="ColorModeProvider";var Un=(0,e.createContext)({getDocument:()=>document,getWindow:()=>window});function Hn(t){const{children:n,environment:r,disabled:o}=t,i=(0,e.useRef)(null),a=(0,e.useMemo)(()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument.defaultView)?t:window}},[r]),s=!o||!r;return(0,Re.jsxs)(Un.Provider,{value:a,children:[n,s&&(0,Re.jsx)("span",{id:"__chakra_env",hidden:!0,ref:i})]})}Un.displayName="EnvironmentContext",Hn.displayName="EnvironmentProvider";var qn=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=(0,Re.jsx)(Hn,{environment:s,disabled:u,children:t});return(0,Re.jsx)(Rn,{theme:a,cssVarsRoot:l,children:(0,Re.jsxs)(Wn,{colorModeManager:n,options:a.config,children:[i?(0,Re.jsx)(Be,{scope:o}):(0,Re.jsx)(je,{}),!c&&(0,Re.jsx)(Bn,{}),r?(0,Re.jsx)(Ie,{zIndex:r,children:d}):d]})})},Yn={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Xn={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Kn={...Xn,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},Qn={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...Yn,sizes:Kn,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:Xn,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},{defineMultiStyleConfig:Gn,definePartsStyle:Zn}=Sn(["stepper","step","title","description","indicator","separator","icon","number"]),Jn=Vt("stepper-indicator-size"),er=Vt("stepper-icon-size"),tr=Vt("stepper-title-font-size"),nr=Vt("stepper-description-font-size"),rr=Vt("stepper-accent-color"),or=Gn({baseStyle:Zn(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[rr.variable]:`colors.${e}.500`,_dark:{[rr.variable]:`colors.${e}.200`}},title:{fontSize:tr.reference,fontWeight:"medium"},description:{fontSize:nr.reference,color:"chakra-subtle-text"},number:{fontSize:tr.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:er.reference,height:er.reference},indicator:{flexShrink:0,borderRadius:"full",width:Jn.reference,height:Jn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:rr.reference},"&[data-status=complete]":{bg:rr.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:rr.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Jn.reference} - 8px)`,top:`calc(${Jn.reference} + 4px)`,insetStart:`calc(${Jn.reference} / 2 - 1px)`}}})),sizes:{xs:Zn({stepper:{[Jn.variable]:"sizes.4",[er.variable]:"sizes.3",[tr.variable]:"fontSizes.xs",[nr.variable]:"fontSizes.xs"}}),sm:Zn({stepper:{[Jn.variable]:"sizes.6",[er.variable]:"sizes.4",[tr.variable]:"fontSizes.sm",[nr.variable]:"fontSizes.xs"}}),md:Zn({stepper:{[Jn.variable]:"sizes.8",[er.variable]:"sizes.5",[tr.variable]:"fontSizes.md",[nr.variable]:"fontSizes.sm"}}),lg:Zn({stepper:{[Jn.variable]:"sizes.10",[er.variable]:"sizes.6",[tr.variable]:"fontSizes.lg",[nr.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function ir(e,t={}){let n=!1;function r(t){const n=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:n,selector:`.${n}`,toString:()=>t}}return{parts:function(...o){!function(){if(n)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");n=!0}();for(const e of o)t[e]=r(e);return ir(e,t)},toPart:r,extend:function(...n){for(const e of n)e in t||(t[e]=r(e));return ir(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]));return e},get keys(){return Object.keys(t)},__type:{}}}var ar=ir("accordion").parts("root","container","button","panel").extend("icon"),sr=ir("alert").parts("title","description","container").extend("icon","spinner"),lr=ir("avatar").parts("label","badge","container").extend("excessLabel","group"),ur=ir("breadcrumb").parts("link","item","container").extend("separator"),cr=(ir("button").parts(),ir("checkbox").parts("control","icon","container").extend("label")),dr=(ir("progress").parts("track","filledTrack").extend("label"),ir("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),fr=ir("editable").parts("preview","input","textarea"),pr=ir("form").parts("container","requiredIndicator","helperText"),hr=ir("formError").parts("text","icon"),mr=ir("input").parts("addon","field","element","group"),gr=ir("list").parts("container","item","icon"),vr=ir("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),br=ir("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),yr=ir("numberinput").parts("root","field","stepperGroup","stepper"),xr=(ir("pininput").parts("field"),ir("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),wr=ir("progress").parts("label","filledTrack","track"),kr=ir("radio").parts("container","control","label"),Sr=ir("select").parts("field","icon"),Cr=ir("slider").parts("container","track","thumb","filledTrack","mark"),Er=ir("stat").parts("container","label","helpText","number","icon"),_r=ir("switch").parts("container","track","thumb","label"),Pr=ir("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Tr=ir("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),zr=ir("tag").parts("container","label","closeButton"),Rr=ir("card").parts("container","header","body","footer");function Ar(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function Mr(e,t){return`var(${Ar(e)}${t?`, ${t}`:""})`}function jr(e,t){const n=function(e,t=""){return`--${function(e,t=""){return[t,Ar(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:n,reference:Mr(n,(r=null==t?void 0:t.fallback,"string"==typeof r?r:null==r?void 0:r.reference))};var r}function Br(e){return Ve(e)&&e.reference?e.reference:String(e)}ir("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var Fr=(e,...t)=>t.map(Br).join(` ${e} `).replace(/calc/g,""),Lr=(...e)=>`calc(${Fr("+",...e)})`,Dr=(...e)=>`calc(${Fr("-",...e)})`,Ir=(...e)=>`calc(${Fr("*",...e)})`,$r=(...e)=>`calc(${Fr("/",...e)})`,Or=e=>{const t=Br(e);return null==t||Number.isNaN(parseFloat(t))?Ir(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Nr=Object.assign(e=>({add:(...t)=>Nr(Lr(e,...t)),subtract:(...t)=>Nr(Dr(e,...t)),multiply:(...t)=>Nr(Ir(e,...t)),divide:(...t)=>Nr($r(e,...t)),negate:()=>Nr(Or(e)),toString:()=>e.toString()}),{add:Lr,subtract:Dr,multiply:Ir,divide:$r,negate:Or}),{defineMultiStyleConfig:Vr,definePartsStyle:Wr}=Sn(_r.keys),Ur=jr("switch-track-width"),Hr=jr("switch-track-height"),qr=jr("switch-track-diff"),Yr=Nr.subtract(Ur,Hr),Xr=jr("switch-thumb-x"),Kr=jr("switch-bg"),Qr=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ur.reference],height:[Hr.reference],transitionProperty:"common",transitionDuration:"fast",[Kr.variable]:"colors.gray.300",_dark:{[Kr.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Kr.variable]:`colors.${t}.500`,_dark:{[Kr.variable]:`colors.${t}.200`}},bg:Kr.reference}},Gr={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Hr.reference],height:[Hr.reference],_checked:{transform:`translateX(${Xr.reference})`}},Zr=Vr({baseStyle:Wr(e=>({container:{[qr.variable]:Yr,[Xr.variable]:qr.reference,_rtl:{[Xr.variable]:Nr(qr).negate().toString()}},track:Qr(e),thumb:Gr})),sizes:{sm:Wr({container:{[Ur.variable]:"1.375rem",[Hr.variable]:"sizes.3"}}),md:Wr({container:{[Ur.variable]:"1.875rem",[Hr.variable]:"sizes.4"}}),lg:Wr({container:{[Ur.variable]:"2.875rem",[Hr.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Jr(e,t){return n=>"dark"===n.colorMode?t:e}function eo(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?"vertical"===t?n:r:{}}var{defineMultiStyleConfig:to,definePartsStyle:no}=Sn(Pr.keys),ro=no({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),oo={"&[data-is-numeric=true]":{textAlign:"end"}},io=to({baseStyle:ro,variants:{simple:no(e=>{const{colorScheme:t}=e;return{th:{color:Jr("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Jr(`${t}.100`,`${t}.700`)(e),...oo},td:{borderBottom:"1px",borderColor:Jr(`${t}.100`,`${t}.700`)(e),...oo},caption:{color:Jr("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:no(e=>{const{colorScheme:t}=e;return{th:{color:Jr("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Jr(`${t}.100`,`${t}.700`)(e),...oo},td:{borderBottom:"1px",borderColor:Jr(`${t}.100`,`${t}.700`)(e),...oo},caption:{color:Jr("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Jr(`${t}.100`,`${t}.700`)(e)},td:{background:Jr(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:{}},sizes:{sm:no({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:no({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:no({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function ao(e,t,n){return Math.min(Math.max(e,n),t)}class so extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var lo=so;function uo(e){if("string"!=typeof e)throw new lo(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=bo.test(e)?function(e){const t=e.toLowerCase().trim(),n=fo[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new lo(e);return`#${n}`}(e):e;const n=ho.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(po(e,2),16)),parseInt(po(e[3]||"f",2),16)/255]}const r=mo.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}const o=go.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}const i=vo.exec(t);if(i){const[t,n,r,o]=Array.from(i).slice(1).map(parseFloat);if(ao(0,100,n)!==n)throw new lo(e);if(ao(0,100,r)!==r)throw new lo(e);return[...xo(t,n,r),Number.isNaN(o)?1:o]}throw new lo(e)}const co=e=>parseInt(e.replace(/_/g,""),36),fo="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=co(t.substring(0,3)),r=co(t.substring(3)).toString(16);let o="";for(let e=0;e<6-r.length;e++)o+="0";return e[n]=`${o}${r}`,e},{}),po=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),ho=new RegExp(`^#${po("([a-f0-9])",3)}([a-f0-9])?$`,"i"),mo=new RegExp(`^#${po("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),go=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${po(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),vo=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,bo=/^[a-z]+$/i,yo=e=>Math.round(255*e),xo=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(yo);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const c=r-i/2;return[s+c,l+c,u+c].map(yo)};function wo(e,t){const[n,r,o,i]=uo(e);return function(e,t,n,r){return`rgba(${ao(0,255,e).toFixed()}, ${ao(0,255,t).toFixed()}, ${ao(0,255,n).toFixed()}, ${parseFloat(ao(0,1,r).toFixed(3))})`}(n,r,o,i-t)}var ko=(e,t,n)=>{const r=function(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e}(e,`colors.${t}`,t);try{return function(e){const[t,n,r,o]=uo(e);let i=e=>{const t=ao(0,255,e).toString(16);return 1===t.length?`0${t}`:t};i(t),i(n),i(r),o<1&&i(Math.round(255*o))}(r),r}catch{return null!=n?n:"#000000"}},So=(e,t)=>n=>wo(ko(n,e),1-t);function Co(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n 45deg,\n ${t} 25%,\n transparent 25%,\n transparent 50%,\n ${t} 50%,\n ${t} 75%,\n transparent 75%,\n transparent\n )`,backgroundSize:`${e} ${e}`}}var Eo=Vt("tabs-color"),_o=Vt("tabs-bg"),Po=Vt("tabs-border-color"),{defineMultiStyleConfig:To,definePartsStyle:zo}=Sn(Tr.keys),Ro=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Ao=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Mo=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===n?"column":"row"}},jo={p:4},Bo=zo(e=>({root:Ro(e),tab:Ao(e),tablist:Mo(e),tabpanel:jo})),Fo={sm:zo({tab:{py:1,px:4,fontSize:"sm"}}),md:zo({tab:{fontSize:"md",py:2,px:4}}),lg:zo({tab:{fontSize:"lg",py:3,px:4}})},Lo=zo(e=>{const{colorScheme:t,orientation:n}=e,r="vertical"===n,o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Eo.variable]:`colors.${t}.600`,_dark:{[Eo.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[_o.variable]:"colors.gray.200",_dark:{[_o.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Eo.reference,bg:_o.reference}}}),Do=zo(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Po.variable]:"transparent",_selected:{[Eo.variable]:`colors.${t}.600`,[Po.variable]:"colors.white",_dark:{[Eo.variable]:`colors.${t}.300`,[Po.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Po.reference},color:Eo.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Io=zo(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[_o.variable]:"colors.gray.50",_dark:{[_o.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[_o.variable]:"colors.white",[Eo.variable]:`colors.${t}.600`,_dark:{[_o.variable]:"colors.gray.800",[Eo.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Eo.reference,bg:_o.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),$o=zo(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ko(n,`${t}.700`),bg:ko(n,`${t}.100`)}}}}),Oo=To({baseStyle:Bo,sizes:Fo,variants:{line:Lo,enclosed:Do,"enclosed-colored":Io,"soft-rounded":$o,"solid-rounded":zo(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Eo.variable]:"colors.gray.600",_dark:{[Eo.variable]:"inherit"},_selected:{[Eo.variable]:"colors.white",[_o.variable]:`colors.${t}.600`,_dark:{[Eo.variable]:"colors.gray.800",[_o.variable]:`colors.${t}.300`}},color:Eo.reference,bg:_o.reference}}}),unstyled:zo({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),No=function(e){const t={};for(const n of["bg","color","shadow"]){if(Array.isArray(n)){const[r,o]=n;t[r]=Vt(`${e}-${r}`,o);continue}t[n]=Vt(`${e}-${n}`)}return t}("badge"),Vo={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:No.bg.reference,color:No.color.reference,boxShadow:No.shadow.reference},variants:{solid:e=>{const{colorScheme:t,theme:n}=e,r=So(`${t}.500`,.6)(n);return{[No.bg.variable]:`colors.${t}.500`,[No.color.variable]:"colors.white",_dark:{[No.bg.variable]:r,[No.color.variable]:"colors.whiteAlpha.800"}}},subtle:e=>{const{colorScheme:t,theme:n}=e,r=So(`${t}.200`,.16)(n);return{[No.bg.variable]:`colors.${t}.100`,[No.color.variable]:`colors.${t}.800`,_dark:{[No.bg.variable]:r,[No.color.variable]:`colors.${t}.200`}}},outline:e=>{const{colorScheme:t,theme:n}=e,r=So(`${t}.200`,.8)(n);return{[No.color.variable]:`colors.${t}.500`,_dark:{[No.color.variable]:r},[No.shadow.variable]:`inset 0 0 0px 1px ${No.color.reference}`}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Wo,definePartsStyle:Uo}=Sn(zr.keys),Ho=Vt("tag-bg"),qo=Vt("tag-color"),Yo=Vt("tag-shadow"),Xo=Vt("tag-min-height"),Ko=Vt("tag-min-width"),Qo=Vt("tag-font-size"),Go=Vt("tag-padding-inline"),Zo=Uo({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[qo.variable]:No.color.reference,[Ho.variable]:No.bg.reference,[Yo.variable]:No.shadow.reference,color:qo.reference,bg:Ho.reference,boxShadow:Yo.reference,borderRadius:"md",minH:Xo.reference,minW:Ko.reference,fontSize:Qo.reference,px:Go.reference,_focusVisible:{[Yo.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),Jo={sm:Uo({container:{[Xo.variable]:"sizes.5",[Ko.variable]:"sizes.5",[Qo.variable]:"fontSizes.xs",[Go.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Uo({container:{[Xo.variable]:"sizes.6",[Ko.variable]:"sizes.6",[Qo.variable]:"fontSizes.sm",[Go.variable]:"space.2"}}),lg:Uo({container:{[Xo.variable]:"sizes.8",[Ko.variable]:"sizes.8",[Qo.variable]:"fontSizes.md",[Go.variable]:"space.3"}})},ei={subtle:Uo(e=>{var t;return{container:null==(t=Vo.variants)?void 0:t.subtle(e)}}),solid:Uo(e=>{var t;return{container:null==(t=Vo.variants)?void 0:t.solid(e)}}),outline:Uo(e=>{var t;return{container:null==(t=Vo.variants)?void 0:t.outline(e)}})},ti=Wo({variants:ei,baseStyle:Zo,sizes:Jo,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:ni,defineMultiStyleConfig:ri}=Sn(mr.keys),oi=Vt("input-height"),ii=Vt("input-font-size"),ai=Vt("input-padding"),si=Vt("input-border-radius"),li=ni({addon:{height:oi.reference,fontSize:ii.reference,px:ai.reference,borderRadius:si.reference},field:{width:"100%",height:oi.reference,fontSize:ii.reference,px:ai.reference,borderRadius:si.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),ui={lg:{[ii.variable]:"fontSizes.lg",[ai.variable]:"space.4",[si.variable]:"radii.md",[oi.variable]:"sizes.12"},md:{[ii.variable]:"fontSizes.md",[ai.variable]:"space.4",[si.variable]:"radii.md",[oi.variable]:"sizes.10"},sm:{[ii.variable]:"fontSizes.sm",[ai.variable]:"space.3",[si.variable]:"radii.sm",[oi.variable]:"sizes.8"},xs:{[ii.variable]:"fontSizes.xs",[ai.variable]:"space.2",[si.variable]:"radii.sm",[oi.variable]:"sizes.6"}},ci={lg:ni({field:ui.lg,group:ui.lg}),md:ni({field:ui.md,group:ui.md}),sm:ni({field:ui.sm,group:ui.sm}),xs:ni({field:ui.xs,group:ui.xs})};function di(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||Jr("blue.500","blue.300")(e),errorBorderColor:n||Jr("red.500","red.300")(e)}}var fi,pi,hi,mi,gi,vi,bi,yi,xi,wi,ki,Si=ni(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=di(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Jr("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ko(t,r),boxShadow:`0 0 0 1px ${ko(t,r)}`},_focusVisible:{zIndex:1,borderColor:ko(t,n),boxShadow:`0 0 0 1px ${ko(t,n)}`}},addon:{border:"1px solid",borderColor:Jr("inherit","whiteAlpha.50")(e),bg:Jr("gray.100","whiteAlpha.300")(e)}}}),Ci=ni(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=di(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Jr("gray.100","whiteAlpha.50")(e),_hover:{bg:Jr("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ko(t,r)},_focusVisible:{bg:"transparent",borderColor:ko(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Jr("gray.100","whiteAlpha.50")(e)}}}),Ei=ni(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=di(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ko(t,r),boxShadow:`0px 1px 0px 0px ${ko(t,r)}`},_focusVisible:{borderColor:ko(t,n),boxShadow:`0px 1px 0px 0px ${ko(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),_i=ri({baseStyle:li,sizes:ci,variants:{outline:Si,filled:Ci,flushed:Ei,unstyled:ni({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),Pi={...null==(fi=_i.baseStyle)?void 0:fi.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Ti={outline:e=>{var t,n;return null!=(n=null==(t=_i.variants)?void 0:t.outline(e).field)?n:{}},flushed:e=>{var t,n;return null!=(n=null==(t=_i.variants)?void 0:t.flushed(e).field)?n:{}},filled:e=>{var t,n;return null!=(n=null==(t=_i.variants)?void 0:t.filled(e).field)?n:{}},unstyled:null!=(hi=null==(pi=_i.variants)?void 0:pi.unstyled.field)?hi:{}},zi={baseStyle:Pi,sizes:{xs:null!=(gi=null==(mi=_i.sizes)?void 0:mi.xs.field)?gi:{},sm:null!=(bi=null==(vi=_i.sizes)?void 0:vi.sm.field)?bi:{},md:null!=(xi=null==(yi=_i.sizes)?void 0:yi.md.field)?xi:{},lg:null!=(ki=null==(wi=_i.sizes)?void 0:wi.lg.field)?ki:{}},variants:Ti,defaultProps:{size:"md",variant:"outline"}},Ri=jr("tooltip-bg"),Ai=jr("tooltip-fg"),Mi=jr("popper-arrow-bg"),ji={baseStyle:{bg:Ri.reference,color:Ai.reference,[Ri.variable]:"colors.gray.700",[Ai.variable]:"colors.whiteAlpha.900",_dark:{[Ri.variable]:"colors.gray.300",[Ai.variable]:"colors.gray.900"},[Mi.variable]:Ri.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},{defineMultiStyleConfig:Bi,definePartsStyle:Fi}=Sn(wr.keys),Li=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=Jr(Co(),Co("1rem","rgba(0,0,0,0.1)"))(e),a=Jr(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n to right,\n transparent 0%,\n ${ko(n,a)} 50%,\n transparent 100%\n )`;return{...!r&&o&&i,...r?{bgImage:s}:{bgColor:a}}},Di={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Ii=e=>({bg:Jr("gray.100","whiteAlpha.300")(e)}),$i=e=>({transitionProperty:"common",transitionDuration:"slow",...Li(e)}),Oi=Fi(e=>({label:Di,filledTrack:$i(e),track:Ii(e)})),Ni=Bi({sizes:{xs:Fi({track:{h:"1"}}),sm:Fi({track:{h:"2"}}),md:Fi({track:{h:"3"}}),lg:Fi({track:{h:"4"}})},baseStyle:Oi,defaultProps:{size:"md",colorScheme:"blue"}});function Vi(e,...t){return"function"==typeof e?e(...t):e}var Wi,Ui,Hi,qi,Yi,Xi,Ki,Qi,Gi,{definePartsStyle:Zi,defineMultiStyleConfig:Ji}=Sn(cr.keys),ea=Vt("checkbox-size"),ta=e=>{const{colorScheme:t}=e;return{w:ea.reference,h:ea.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Jr(`${t}.500`,`${t}.200`)(e),borderColor:Jr(`${t}.500`,`${t}.200`)(e),color:Jr("white","gray.900")(e),_hover:{bg:Jr(`${t}.600`,`${t}.300`)(e),borderColor:Jr(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Jr("gray.200","transparent")(e),bg:Jr("gray.200","whiteAlpha.300")(e),color:Jr("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Jr(`${t}.500`,`${t}.200`)(e),borderColor:Jr(`${t}.500`,`${t}.200`)(e),color:Jr("white","gray.900")(e)},_disabled:{bg:Jr("gray.100","whiteAlpha.100")(e),borderColor:Jr("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Jr("red.500","red.300")(e)}}},na={_disabled:{cursor:"not-allowed"}},ra={userSelect:"none",_disabled:{opacity:.4}},oa={transitionProperty:"transform",transitionDuration:"normal"},ia=Ji({baseStyle:Zi(e=>({icon:oa,container:na,control:Vi(ta,e),label:ra})),sizes:{sm:Zi({control:{[ea.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Zi({control:{[ea.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Zi({control:{[ea.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:aa,definePartsStyle:sa}=Sn(kr.keys),la=e=>{var t;const n=null==(t=Vi(ia.baseStyle,e))?void 0:t.control;return{...n,borderRadius:"full",_checked:{...null==n?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},ua=sa(e=>{var t,n,r,o;return{label:null==(n=(t=ia).baseStyle)?void 0:n.call(t,e).label,container:null==(o=(r=ia).baseStyle)?void 0:o.call(r,e).container,control:la(e)}}),ca=aa({baseStyle:ua,sizes:{md:sa({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:sa({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:sa({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:da,definePartsStyle:fa}=Sn(Sr.keys),pa=Vt("select-bg"),ha={paddingInlineEnd:"8"},ma=da({baseStyle:fa({field:{...null==(Wi=_i.baseStyle)?void 0:Wi.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:pa.reference,[pa.variable]:"colors.white",_dark:{[pa.variable]:"colors.gray.700"},"> option, > optgroup":{bg:pa.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==(Ui=_i.sizes)?void 0:Ui.lg,field:{...null==(Hi=_i.sizes)?void 0:Hi.lg.field,...ha}},md:{...null==(qi=_i.sizes)?void 0:qi.md,field:{...null==(Yi=_i.sizes)?void 0:Yi.md.field,...ha}},sm:{...null==(Xi=_i.sizes)?void 0:Xi.sm,field:{...null==(Ki=_i.sizes)?void 0:Ki.sm.field,...ha}},xs:{...null==(Qi=_i.sizes)?void 0:Qi.xs,field:{...null==(Gi=_i.sizes)?void 0:Gi.xs.field,...ha},icon:{insetEnd:"1"}}},variants:_i.variants,defaultProps:_i.defaultProps}),ga=Vt("skeleton-start-color"),va=Vt("skeleton-end-color"),ba={baseStyle:{[ga.variable]:"colors.gray.100",[va.variable]:"colors.gray.400",_dark:{[ga.variable]:"colors.gray.800",[va.variable]:"colors.gray.600"},background:ga.reference,borderColor:va.reference,opacity:.7,borderRadius:"sm"}},ya=Vt("skip-link-bg"),xa={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[ya.variable]:"colors.white",_dark:{[ya.variable]:"colors.gray.700"},bg:ya.reference}}},{defineMultiStyleConfig:wa,definePartsStyle:ka}=Sn(Cr.keys),Sa=Vt("slider-thumb-size"),Ca=Vt("slider-track-size"),Ea=Vt("slider-bg"),_a=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...eo({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Pa=e=>({...eo({orientation:e.orientation,horizontal:{h:Ca.reference},vertical:{w:Ca.reference}}),overflow:"hidden",borderRadius:"sm",[Ea.variable]:"colors.gray.200",_dark:{[Ea.variable]:"colors.whiteAlpha.200"},_disabled:{[Ea.variable]:"colors.gray.300",_dark:{[Ea.variable]:"colors.whiteAlpha.300"}},bg:Ea.reference}),Ta=e=>{const{orientation:t}=e;return{...eo({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Sa.reference,h:Sa.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},za=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ea.variable]:`colors.${t}.500`,_dark:{[Ea.variable]:`colors.${t}.200`},bg:Ea.reference}},Ra=wa({baseStyle:ka(e=>({container:_a(e),track:Pa(e),thumb:Ta(e),filledTrack:za(e)})),sizes:{lg:ka({container:{[Sa.variable]:"sizes.4",[Ca.variable]:"sizes.1"}}),md:ka({container:{[Sa.variable]:"sizes.3.5",[Ca.variable]:"sizes.1"}}),sm:ka({container:{[Sa.variable]:"sizes.2.5",[Ca.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Aa=jr("spinner-size"),Ma={baseStyle:{width:[Aa.reference],height:[Aa.reference]},sizes:{xs:{[Aa.variable]:"sizes.3"},sm:{[Aa.variable]:"sizes.4"},md:{[Aa.variable]:"sizes.6"},lg:{[Aa.variable]:"sizes.8"},xl:{[Aa.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:ja,definePartsStyle:Ba}=Sn(Er.keys),Fa=ja({baseStyle:Ba({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:Ba({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),La=Vt("kbd-bg"),Da={baseStyle:{[La.variable]:"colors.gray.100",_dark:{[La.variable]:"colors.whiteAlpha.100"},bg:La.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},{defineMultiStyleConfig:Ia,definePartsStyle:$a}=Sn(gr.keys),Oa=Ia({baseStyle:$a({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:Na,definePartsStyle:Va}=Sn(vr.keys),Wa=Vt("menu-bg"),Ua=Vt("menu-shadow"),Ha=Na({baseStyle:Va({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[Wa.variable]:"#fff",[Ua.variable]:"shadows.sm",_dark:{[Wa.variable]:"colors.gray.700",[Ua.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Wa.reference,boxShadow:Ua.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Wa.variable]:"colors.gray.100",_dark:{[Wa.variable]:"colors.whiteAlpha.100"}},_active:{[Wa.variable]:"colors.gray.200",_dark:{[Wa.variable]:"colors.whiteAlpha.200"}},_expanded:{[Wa.variable]:"colors.gray.100",_dark:{[Wa.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Wa.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:qa,definePartsStyle:Ya}=Sn(br.keys),Xa=Vt("modal-bg"),Ka=Vt("modal-shadow"),Qa={bg:"blackAlpha.600",zIndex:"modal"},Ga=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===n?"hidden":"auto",overscrollBehaviorY:"none"}},Za=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===n?"calc(100% - 7.5rem)":void 0,[Xa.variable]:"colors.white",[Ka.variable]:"shadows.lg",_dark:{[Xa.variable]:"colors.gray.700",[Ka.variable]:"shadows.dark-lg"},bg:Xa.reference,boxShadow:Ka.reference}},Ja={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},es={position:"absolute",top:"2",insetEnd:"3"},ts=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},ns={px:"6",py:"4"};function rs(e){return Ya("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var os=qa({baseStyle:Ya(e=>({overlay:Qa,dialogContainer:Vi(Ga,e),dialog:Vi(Za,e),header:Ja,closeButton:es,body:Vi(ts,e),footer:ns})),sizes:{xs:rs("xs"),sm:rs("sm"),md:rs("md"),lg:rs("lg"),xl:rs("xl"),"2xl":rs("2xl"),"3xl":rs("3xl"),"4xl":rs("4xl"),"5xl":rs("5xl"),"6xl":rs("6xl"),full:rs("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:is,definePartsStyle:as}=Sn(yr.keys),ss=jr("number-input-stepper-width"),ls=jr("number-input-input-padding"),us=Nr(ss).add("0.5rem").toString(),cs=jr("number-input-bg"),ds=jr("number-input-color"),fs=jr("number-input-border-color"),ps={[ss.variable]:"sizes.6",[ls.variable]:us},hs=e=>{var t,n;return null!=(n=null==(t=Vi(_i.baseStyle,e))?void 0:t.field)?n:{}},ms={width:ss.reference},gs={borderStart:"1px solid",borderStartColor:fs.reference,color:ds.reference,bg:cs.reference,[ds.variable]:"colors.chakra-body-text",[fs.variable]:"colors.chakra-border-color",_dark:{[ds.variable]:"colors.whiteAlpha.800",[fs.variable]:"colors.whiteAlpha.300"},_active:{[cs.variable]:"colors.gray.200",_dark:{[cs.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},vs=as(e=>{var t;return{root:ps,field:null!=(t=Vi(hs,e))?t:{},stepperGroup:ms,stepper:gs}});function bs(e){var t,n,r;const o=null==(t=_i.sizes)?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(r=null==(n=o.field)?void 0:n.fontSize)?r:"md",s=Yn.fontSizes[a];return as({field:{...o.field,paddingInlineEnd:ls.reference,verticalAlign:"top"},stepper:{fontSize:Nr(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var ys,xs,ws,ks=is({baseStyle:vs,sizes:{xs:bs("xs"),sm:bs("sm"),md:bs("md"),lg:bs("lg")},variants:_i.variants,defaultProps:_i.defaultProps}),Ss={...null==(ys=_i.baseStyle)?void 0:ys.field,textAlign:"center"},Cs={outline:e=>{var t,n,r;return null!=(r=null==(n=Vi(null==(t=_i.variants)?void 0:t.outline,e))?void 0:n.field)?r:{}},flushed:e=>{var t,n,r;return null!=(r=null==(n=Vi(null==(t=_i.variants)?void 0:t.flushed,e))?void 0:n.field)?r:{}},filled:e=>{var t,n,r;return null!=(r=null==(n=Vi(null==(t=_i.variants)?void 0:t.filled,e))?void 0:n.field)?r:{}},unstyled:null!=(ws=null==(xs=_i.variants)?void 0:xs.unstyled.field)?ws:{}},Es={baseStyle:Ss,sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:Cs,defaultProps:_i.defaultProps},{defineMultiStyleConfig:_s,definePartsStyle:Ps}=Sn(xr.keys),Ts=jr("popper-bg"),zs=jr("popper-arrow-bg"),Rs=jr("popper-arrow-shadow-color"),As=_s({baseStyle:Ps({popper:{zIndex:10},content:{[Ts.variable]:"colors.white",bg:Ts.reference,[zs.variable]:Ts.reference,[Rs.variable]:"colors.gray.200",_dark:{[Ts.variable]:"colors.gray.700",[Rs.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{definePartsStyle:Ms,defineMultiStyleConfig:js}=Sn(dr.keys),Bs=Vt("drawer-bg"),Fs=Vt("drawer-box-shadow");function Ls(e){return Ms("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Ds={bg:"blackAlpha.600",zIndex:"modal"},Is={display:"flex",zIndex:"modal",justifyContent:"center"},$s=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Bs.variable]:"colors.white",[Fs.variable]:"shadows.lg",_dark:{[Bs.variable]:"colors.gray.700",[Fs.variable]:"shadows.dark-lg"},bg:Bs.reference,boxShadow:Fs.reference}},Os={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Ns={position:"absolute",top:"2",insetEnd:"3"},Vs={px:"6",py:"2",flex:"1",overflow:"auto"},Ws={px:"6",py:"4"},Us=js({baseStyle:Ms(e=>({overlay:Ds,dialogContainer:Is,dialog:Vi($s,e),header:Os,closeButton:Ns,body:Vs,footer:Ws})),sizes:{xs:Ls("xs"),sm:Ls("md"),md:Ls("lg"),lg:Ls("2xl"),xl:Ls("4xl"),full:Ls("full")},defaultProps:{size:"xs"}}),{definePartsStyle:Hs,defineMultiStyleConfig:qs}=Sn(fr.keys),Ys=qs({baseStyle:Hs({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:Xs,defineMultiStyleConfig:Ks}=Sn(pr.keys),Qs=Vt("form-control-color"),Gs=Ks({baseStyle:Xs({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[Qs.variable]:"colors.red.500",_dark:{[Qs.variable]:"colors.red.300"},color:Qs.reference},helperText:{mt:"2",[Qs.variable]:"colors.gray.600",_dark:{[Qs.variable]:"colors.whiteAlpha.600"},color:Qs.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:Zs,defineMultiStyleConfig:Js}=Sn(hr.keys),el=Vt("form-error-color"),tl=Js({baseStyle:Zs({text:{[el.variable]:"colors.red.500",_dark:{[el.variable]:"colors.red.300"},color:el.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[el.variable]:"colors.red.500",_dark:{[el.variable]:"colors.red.300"},color:el.reference}})}),{defineMultiStyleConfig:nl,definePartsStyle:rl}=Sn(ur.keys),ol=Vt("breadcrumb-link-decor"),il=nl({baseStyle:rl({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ol.reference,[ol.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ol.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),al=e=>{const{colorScheme:t,theme:n}=e;if("gray"===t)return{color:Jr("gray.800","whiteAlpha.900")(e),_hover:{bg:Jr("gray.100","whiteAlpha.200")(e)},_active:{bg:Jr("gray.200","whiteAlpha.300")(e)}};const r=So(`${t}.200`,.12)(n),o=So(`${t}.200`,.24)(n);return{color:Jr(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Jr(`${t}.50`,r)(e)},_active:{bg:Jr(`${t}.100`,o)(e)}}},sl={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},ll={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:al,outline:e=>{const{colorScheme:t}=e,n=Jr("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Vi(al,e)}},solid:e=>{var t;const{colorScheme:n}=e;if("gray"===n){const t=Jr("gray.100","whiteAlpha.200")(e);return{bg:t,color:Jr("gray.800","whiteAlpha.900")(e),_hover:{bg:Jr("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:Jr("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:a=`${n}.700`}=null!=(t=sl[n])?t:{},s=Jr(r,`${n}.200`)(e);return{bg:s,color:Jr(o,"gray.800")(e),_hover:{bg:Jr(i,`${n}.300`)(e),_disabled:{bg:s}},_active:{bg:Jr(a,`${n}.400`)(e)}}},link:e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Jr(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Jr(`${t}.700`,`${t}.500`)(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:ul,defineMultiStyleConfig:cl}=Sn(Rr.keys),dl=Vt("card-bg"),fl=Vt("card-padding"),pl=Vt("card-shadow"),hl=Vt("card-radius"),ml=Vt("card-border-width","0"),gl=Vt("card-border-color"),vl=ul({container:{[dl.variable]:"colors.chakra-body-bg",backgroundColor:dl.reference,boxShadow:pl.reference,borderRadius:hl.reference,color:"chakra-body-text",borderWidth:ml.reference,borderColor:gl.reference},body:{padding:fl.reference,flex:"1 1 0%"},header:{padding:fl.reference},footer:{padding:fl.reference}}),bl={sm:ul({container:{[hl.variable]:"radii.base",[fl.variable]:"space.3"}}),md:ul({container:{[hl.variable]:"radii.md",[fl.variable]:"space.5"}}),lg:ul({container:{[hl.variable]:"radii.xl",[fl.variable]:"space.7"}})},yl=cl({baseStyle:vl,variants:{elevated:ul({container:{[pl.variable]:"shadows.base",_dark:{[dl.variable]:"colors.gray.700"}}}),outline:ul({container:{[ml.variable]:"1px",[gl.variable]:"colors.chakra-border-color"}}),filled:ul({container:{[dl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[fl.variable]:0},header:{[fl.variable]:0},footer:{[fl.variable]:0}}},sizes:bl,defaultProps:{variant:"elevated",size:"md"}}),xl=jr("close-button-size"),wl=jr("close-button-bg"),kl={baseStyle:{w:[xl.reference],h:[xl.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[wl.variable]:"colors.blackAlpha.100",_dark:{[wl.variable]:"colors.whiteAlpha.100"}},_active:{[wl.variable]:"colors.blackAlpha.200",_dark:{[wl.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:wl.reference},sizes:{lg:{[xl.variable]:"sizes.10",fontSize:"md"},md:{[xl.variable]:"sizes.8",fontSize:"xs"},sm:{[xl.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:Sl,defaultProps:Cl}=Vo,El={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:No.bg.reference,color:No.color.reference,boxShadow:No.shadow.reference},variants:Sl,defaultProps:Cl},{definePartsStyle:_l,defineMultiStyleConfig:Pl}=Sn(ar.keys),Tl=Pl({baseStyle:_l({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})}),{definePartsStyle:zl,defineMultiStyleConfig:Rl}=Sn(sr.keys),Al=Vt("alert-fg"),Ml=Vt("alert-bg");function jl(e){const{theme:t,colorScheme:n}=e;return{light:`colors.${n}.100`,dark:So(`${n}.200`,.16)(t)}}var Bl=Rl({baseStyle:zl({container:{bg:Ml.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Al.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Al.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:zl(e=>{const{colorScheme:t}=e,n=jl(e);return{container:{[Al.variable]:`colors.${t}.600`,[Ml.variable]:n.light,_dark:{[Al.variable]:`colors.${t}.200`,[Ml.variable]:n.dark}}}}),"left-accent":zl(e=>{const{colorScheme:t}=e,n=jl(e);return{container:{[Al.variable]:`colors.${t}.600`,[Ml.variable]:n.light,_dark:{[Al.variable]:`colors.${t}.200`,[Ml.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Al.reference}}}),"top-accent":zl(e=>{const{colorScheme:t}=e,n=jl(e);return{container:{[Al.variable]:`colors.${t}.600`,[Ml.variable]:n.light,_dark:{[Al.variable]:`colors.${t}.200`,[Ml.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Al.reference}}}),solid:zl(e=>{const{colorScheme:t}=e;return{container:{[Al.variable]:"colors.white",[Ml.variable]:`colors.${t}.600`,_dark:{[Al.variable]:"colors.gray.900",[Ml.variable]:`colors.${t}.200`},color:Al.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Fl,defineMultiStyleConfig:Ll}=Sn(lr.keys),Dl=Vt("avatar-border-color"),Il=Vt("avatar-bg"),$l=Vt("avatar-font-size"),Ol=Vt("avatar-size"),Nl={borderRadius:"full",border:"0.2em solid",borderColor:Dl.reference,[Dl.variable]:"white",_dark:{[Dl.variable]:"colors.gray.800"}},Vl={bg:Il.reference,fontSize:$l.reference,width:Ol.reference,height:Ol.reference,lineHeight:"1",[Il.variable]:"colors.gray.200",_dark:{[Il.variable]:"colors.whiteAlpha.400"}},Wl=e=>{const{name:t,theme:n}=e,r=t?function(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(n=e,0!==Object.keys(n).length)?e.string&&e.colors?function(e,t){let n=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)n=e.charCodeAt(t)+((n<<5)-n),n&=n;return n=(n%t.length+t.length)%t.length,t[n]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t&=t;let n="#";for(let e=0;e<3;e+=1)n+=`00${(t>>8*e&255).toString(16)}`.substr(-2);return n}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t:t;var n}({string:t}):"colors.gray.400",o=(e=>t=>"dark"===(e=>t=>{const n=(e=>{const[t,n,r]=uo(e);return(299*t+587*n+114*r)/1e3})(ko(t,e));return n<128?"dark":"light"})(e)(t))(r)(n);let i="white";return o||(i="gray.800"),{bg:Il.reference,fontSize:$l.reference,color:i,borderColor:Dl.reference,verticalAlign:"top",width:Ol.reference,height:Ol.reference,"&:not([data-loaded])":{[Il.variable]:r},[Dl.variable]:"colors.white",_dark:{[Dl.variable]:"colors.gray.800"}}},Ul={fontSize:$l.reference,lineHeight:"1"};function Hl(e){const t="100%"!==e?Kn[e]:void 0;return Fl({container:{[Ol.variable]:null!=t?t:e,[$l.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[Ol.variable]:null!=t?t:e,[$l.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var ql={Accordion:Tl,Alert:Bl,Avatar:Ll({baseStyle:Fl(e=>({badge:Vi(Nl,e),excessLabel:Vi(Vl,e),container:Vi(Wl,e),label:Ul})),sizes:{"2xs":Hl(4),xs:Hl(6),sm:Hl(8),md:Hl(12),lg:Hl(16),xl:Hl(24),"2xl":Hl(32),full:Hl("100%")},defaultProps:{size:"md"}}),Badge:Vo,Breadcrumb:il,Button:ll,Checkbox:ia,CloseButton:kl,Code:El,Container:{baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},Divider:{baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},Drawer:Us,Editable:Ys,Form:Gs,FormError:tl,FormLabel:{baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},Heading:{baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},Input:_i,Kbd:Da,Link:{baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},List:Oa,Menu:Ha,Modal:os,NumberInput:ks,PinInput:Es,Popover:As,Progress:Ni,Radio:ca,Select:ma,Skeleton:ba,SkipLink:xa,Slider:Ra,Spinner:Ma,Stat:Fa,Switch:Zr,Table:io,Tabs:Oo,Tag:ti,Textarea:zi,Tooltip:ji,Card:yl,Stepper:or},Yl={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Xl={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},Kl={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Ql={semanticTokens:Yl,direction:"ltr",...Qn,components:ql,styles:Xl,config:Kl},Gl={semanticTokens:Yl,direction:"ltr",components:{},...Qn,styles:Xl,config:Kl},Zl=(e,t)=>e.find(e=>e.id===t);function Jl(e,t){const n=eu(e,t);return{position:n,index:n?e[n].findIndex(e=>e.id===t):-1}}function eu(e,t){for(const[n,r]of Object.entries(e))if(Zl(r,t))return n}function tu(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}function nu(t,n){const r=(0,e.useRef)(!1),o=(0,e.useRef)(!1);(0,e.useEffect)(()=>{if(r.current&&o.current)return t();o.current=!0},n),(0,e.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])}const ru=(0,e.createContext)(null);const ou=(0,e.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),iu=(0,e.createContext)({}),au="undefined"!=typeof document,su=au?e.useLayoutEffect:e.useEffect,lu=(0,e.createContext)({strict:!1}),uu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cu="data-"+uu("framerAppearId");class du{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const fu=["read","resolveKeyframes","update","preRender","render","postRender"];function pu(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=fu.reduce((e,t)=>(e[t]=function(e){let t=new du,n=new du,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,u=l?t:n;return i&&a.add(e),u.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];a.has(r)&&(s.schedule(r),e()),r(l)}o=!1,i&&(i=!1,s.process(l))}}};return s}(()=>n=!0),e),{}),a=e=>{i[e].process(o)},s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,fu.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=fu.reduce((t,a)=>{const l=i[a];return t[a]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(s)),l.schedule(t,i,a)),t},{});return{schedule:l,cancel:e=>fu.forEach(t=>i[t].cancel(e)),state:o,steps:i}}const{schedule:hu,cancel:mu}=pu(queueMicrotask,!1);function gu(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function vu(e){return"string"==typeof e||Array.isArray(e)}function bu(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const yu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xu=["initial",...yu];function wu(e){return bu(e.animate)||xu.some(t=>vu(e[t]))}function ku(e){return Boolean(wu(e)||e.variants)}function Su(e){return Array.isArray(e)?e.join(" "):e}const Cu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Eu={};for(const e in Cu)Eu[e]={isEnabled:t=>Cu[e].some(e=>!!t[e])};const _u=(0,e.createContext)({}),Pu=(0,e.createContext)({}),Tu=Symbol.for("motionComponentSymbol");function zu({preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:o,Component:i}){t&&function(e){for(const t in e)Eu[t]={...Eu[t],...e[t]}}(t);const a=(0,e.forwardRef)(function(a,s){let l;const u={...(0,e.useContext)(ou),...a,layoutId:Ru(a)},{isStatic:c}=u,d=function(t){const{initial:n,animate:r}=function(e,t){if(wu(e)){const{initial:t,animate:n}=e;return{initial:!1===t||vu(t)?t:void 0,animate:vu(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(iu));return(0,e.useMemo)(()=>({initial:n,animate:r}),[Su(n),Su(r)])}(a),f=o(a,c);if(!c&&au){d.visualElement=function(t,n,r,o){const{visualElement:i}=(0,e.useContext)(iu),a=(0,e.useContext)(lu),s=(0,e.useContext)(ru),l=(0,e.useContext)(ou).reducedMotion,u=(0,e.useRef)();o=o||a.renderer,!u.current&&o&&(u.current=o(t,{visualState:n,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const c=u.current;(0,e.useInsertionEffect)(()=>{c&&c.update(r,s)});const d=(0,e.useRef)(Boolean(r[cu]&&!window.HandoffComplete));return su(()=>{c&&(hu.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())}),(0,e.useEffect)(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}(i,f,u,n);const r=(0,e.useContext)(Pu),o=(0,e.useContext)(lu).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,o,t,r))}return e.createElement(iu.Provider,{value:d},l&&d.visualElement?e.createElement(l,{visualElement:d.visualElement,...u}):null,r(i,a,function(t,n,r){return(0,e.useCallback)(e=>{e&&t.mount&&t.mount(e),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):gu(r)&&(r.current=e))},[n])}(f,d.visualElement,s),f,c,d.visualElement))});return a[Tu]=i,a}function Ru({layoutId:t}){const n=(0,e.useContext)(_u).id;return n&&void 0!==t?n+"-"+t:t}function Au(e){function t(t,n={}){return zu(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Mu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ju(e){return"string"==typeof e&&!e.includes("-")&&!!(Mu.indexOf(e)>-1||/[A-Z]/u.test(e))}const Bu={},Fu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Lu=new Set(Fu);function Du(e,{layout:t,layoutId:n}){return Lu.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Bu[e]||"opacity"===e)}const Iu=e=>Boolean(e&&e.getVelocity),$u={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ou=Fu.length,Nu=e=>t=>"string"==typeof t&&t.startsWith(e),Vu=Nu("--"),Wu=Nu("var(--"),Uu=e=>!!Wu(e)&&Hu.test(e.split("/*")[0].trim()),Hu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qu=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Yu=(e,t,n)=>n>t?t:n<e?e:n,Xu={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ku={...Xu,transform:e=>Yu(0,1,e)},Qu={...Xu,default:1},Gu=e=>Math.round(1e5*e)/1e5,Zu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Ju=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ec=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function tc(e){return"string"==typeof e}const nc=e=>({test:t=>tc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),rc=nc("deg"),oc=nc("%"),ic=nc("px"),ac=nc("vh"),sc=nc("vw"),lc={...oc,parse:e=>oc.parse(e)/100,transform:e=>oc.transform(100*e)},uc={...Xu,transform:Math.round},cc={borderWidth:ic,borderTopWidth:ic,borderRightWidth:ic,borderBottomWidth:ic,borderLeftWidth:ic,borderRadius:ic,radius:ic,borderTopLeftRadius:ic,borderTopRightRadius:ic,borderBottomRightRadius:ic,borderBottomLeftRadius:ic,width:ic,maxWidth:ic,height:ic,maxHeight:ic,size:ic,top:ic,right:ic,bottom:ic,left:ic,padding:ic,paddingTop:ic,paddingRight:ic,paddingBottom:ic,paddingLeft:ic,margin:ic,marginTop:ic,marginRight:ic,marginBottom:ic,marginLeft:ic,rotate:rc,rotateX:rc,rotateY:rc,rotateZ:rc,scale:Qu,scaleX:Qu,scaleY:Qu,scaleZ:Qu,skew:rc,skewX:rc,skewY:rc,distance:ic,translateX:ic,translateY:ic,translateZ:ic,x:ic,y:ic,z:ic,perspective:ic,transformPerspective:ic,opacity:Ku,originX:lc,originY:lc,originZ:ic,zIndex:uc,backgroundPositionX:ic,backgroundPositionY:ic,fillOpacity:Ku,strokeOpacity:Ku,numOctaves:uc};function dc(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const e in t){const n=t[e];if(Vu(e)){i[e]=n;continue}const r=cc[e],d=qu(n,r);if(Lu.has(e)){if(l=!0,a[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Ou;t++){const n=Fu[t];void 0!==e[n]&&(i+=`${$u[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}function fc(e,t,n){for(const r in t)Iu(t[r])||Du(r,n)||(e[r]=t[r])}function pc(t,n,r){const o={},i=function(t,n,r){const o={};return fc(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},n,r){return(0,e.useMemo)(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return dc(e,n,{enableHardwareAcceleration:!r},t),Object.assign({},e.vars,e.style)},[n])}(t,n,r)),o}(t,n,r);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=i,o}const hc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function mc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||hc.has(e)}let gc=e=>!mc(e);try{(vc=require("@emotion/is-prop-valid").default)&&(gc=e=>e.startsWith("on")?!mc(e):vc(e))}catch(fi){}var vc;function bc(e,t,n){return"string"==typeof e?e:ic.transform(t+n*e)}const yc={offset:"stroke-dashoffset",array:"stroke-dasharray"},xc={offset:"strokeDashoffset",array:"strokeDasharray"};function wc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){if(dc(e,u,c,f),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:m}=e;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${bc(t,e.x,e.width)} ${bc(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?yc:xc;e[i.offset]=ic.transform(-r);const a=ic.transform(t),s=ic.transform(n);e[i.array]=`${a} ${s}`}(p,a,s,l,!1)}const kc=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Sc(t,n,r,o){const i=(0,e.useMemo)(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return wc(e,n,{enableHardwareAcceleration:!1},kc(o),t.transformTemplate),{...e.attrs,style:{...e.style}}},[n]);if(t.style){const e={};fc(e,t.style,t),i.style={...e,...i.style}}return i}function Cc(t=!1){return(n,r,o,{latestValues:i},a)=>{const s=(ju(n)?Sc:pc)(r,i,a,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(gc(o)||!0===n&&mc(o)||!t&&!mc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,t),u=n!==e.Fragment?{...l,...s,ref:o}:{},{children:c}=r,d=(0,e.useMemo)(()=>Iu(c)?c.get():c,[c]);return(0,e.createElement)(n,{...u,children:d})}}function Ec(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const _c=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Pc(e,t,n,r){Ec(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(_c.has(n)?n:uu(n),t.attrs[n])}function Tc(e,t){const{style:n}=e,r={};for(const o in n)(Iu(n[o])||t.style&&Iu(t.style[o])||Du(o,e))&&(r[o]=n[o]);return r}function zc(e,t){const n=Tc(e,t);for(const r in e)(Iu(e[r])||Iu(t[r]))&&(n[-1!==Fu.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function Rc(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}function Ac(t){const n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}const Mc=e=>Array.isArray(e),jc=e=>Mc(e)?e[e.length-1]||0:e;function Bc(e){const t=Iu(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Fc=t=>(n,r)=>{const o=(0,e.useContext)(iu),i=(0,e.useContext)(ru),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Lc(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(t,n,o,i);return r?a():Ac(a)};function Lc(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Bc(i[e]);let{initial:a,animate:s}=e;const l=wu(e),u=ku(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;return d&&"boolean"!=typeof d&&!bu(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{const n=Rc(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];Array.isArray(t)&&(t=t[c?t.length-1:0]),null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}),o}const Dc=e=>e,{schedule:Ic,cancel:$c,state:Oc,steps:Nc}=pu("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Dc,!0),Vc={useVisualState:Fc({scrapeMotionValuesFromProps:zc,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onMount:(e,t,{renderState:n,latestValues:r})=>{Ic.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),Ic.render(()=>{wc(n,r,{enableHardwareAcceleration:!1},kc(t.tagName),e.transformTemplate),Pc(t,n)})}})},Wc={useVisualState:Fc({scrapeMotionValuesFromProps:Tc,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function Uc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Hc=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function qc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Yc(e,t,n,r){return Uc(e,t,(e=>t=>Hc(t)&&e(t,qc(t)))(n),r)}const Xc=(e,t)=>n=>t(e(n)),Kc=(...e)=>e.reduce(Xc);function Qc(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const Gc=Qc("dragHorizontal"),Zc=Qc("dragVertical");function Jc(e){let t=!1;if("y"===e)t=Zc();else if("x"===e)t=Gc();else{const e=Gc(),n=Zc();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function ed(){const e=Jc(!0);return!e||(e(),!1)}class td{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nd(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Yc(e.current,n,(n,o)=>{if("touch"===n.pointerType||ed())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&i[r](n,o)},{passive:!e.getProps()[r]})}const rd=(e,t)=>!!t&&(e===t||rd(e,t.parentElement));function od(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,qc(n))}const id=new WeakMap,ad=new WeakMap,sd=e=>{const t=id.get(e.target);t&&t(e)},ld=e=>{e.forEach(sd)};const ud={some:0,all:1},cd={inView:{Feature:class extends td{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ud[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;ad.has(n)||ad.set(n,{});const r=ad.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(ld,{root:e,...t})),r[o]}(t);return id.set(e,n),r.observe(e),()=>{id.delete(e),r.unobserve(e)}}(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends td{constructor(){super(...arguments),this.removeStartListeners=Dc,this.removeEndListeners=Dc,this.removeAccessibleListeners=Dc,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=Yc(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps();o||rd(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)},{passive:!(n.onTap||n.onPointerUp)}),o=Yc(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Kc(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Uc(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=Uc(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&od("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&n(e,t)})}),od("down",(e,t)=>{this.startPress(e,t)}))}),t=Uc(this.node.current,"blur",()=>{this.isPressing&&od("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Kc(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,t)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ed()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(e,t)}mount(){const e=this.node.getProps(),t=Yc(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Uc(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Kc(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends td{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Kc(Uc(this.node.current,"focus",()=>this.onFocus()),Uc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends td{mount(){this.unmount=Kc(nd(this.node,!0),nd(this.node,!1))}unmount(){}}}};function dd(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function fd(e,t,n){const r=e.getProps();return Rc(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const pd=e=>1e3*e,hd=e=>e/1e3,md={type:"spring",stiffness:500,damping:25,restSpeed:10},gd={type:"keyframes",duration:.8},vd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bd=(e,{keyframes:t})=>t.length>2?gd:Lu.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:md:vd;function yd(e,t){return e[t]||e.default||e}const xd=e=>null!==e;function wd(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(xd),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}let kd;function Sd(){kd=void 0}const Cd={now:()=>(void 0===kd&&Cd.set(Oc.isProcessing?Oc.timestamp:performance.now()),kd),set:e=>{kd=e,queueMicrotask(Sd)}},Ed=e=>/^0[^.\s]+$/u.test(e);function _d(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||Ed(e)}let Pd=Dc,Td=Dc;const zd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Rd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ad(e,t,n=1){Td(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Rd.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return zd(e)?parseFloat(e):e}return Uu(o)?Ad(o,t,n+1):o}const Md=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),jd=e=>e===Xu||e===ic,Bd=(e,t)=>parseFloat(e.split(", ")[t]),Fd=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Bd(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?Bd(t[1],e):0}},Ld=new Set(["x","y","z"]),Dd=Fu.filter(e=>!Ld.has(e));function Id(e){const t=[];return Dd.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const $d={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Fd(4,13),y:Fd(5,14)};$d.translateX=$d.x,$d.translateY=$d.y;const Od=e=>t=>t.test(e),Nd=[Xu,ic,oc,rc,sc,ac,{test:e=>"auto"===e,parse:e=>e}],Vd=e=>Nd.find(Od(e)),Wd=new Set;let Ud=!1,Hd=!1;function qd(){if(Hd){const e=Array.from(Wd).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{Id(e).length&&(n.set(e,Id(e)),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render()}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}Hd=!1,Ud=!1,Wd.forEach(e=>e.complete()),Wd.clear()}function Yd(){Wd.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Hd=!0)})}class Xd{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Wd.add(this),Ud||(Ud=!0,Ic.read(Yd),Ic.resolveKeyframes(qd))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Wd.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Wd.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Kd=(e,t)=>n=>Boolean(tc(n)&&ec.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Qd=(e,t,n)=>r=>{if(!tc(r))return r;const[o,i,a,s]=r.match(Zu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Gd={...Xu,transform:e=>Math.round((e=>Yu(0,255,e))(e))},Zd={test:Kd("rgb","red"),parse:Qd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Gd.transform(e)+", "+Gd.transform(t)+", "+Gd.transform(n)+", "+Gu(Ku.transform(r))+")"},Jd={test:Kd("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Zd.transform},ef={test:Kd("hsl","hue"),parse:Qd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+oc.transform(Gu(t))+", "+oc.transform(Gu(n))+", "+Gu(Ku.transform(r))+")"},tf={test:e=>Zd.test(e)||Jd.test(e)||ef.test(e),parse:e=>Zd.test(e)?Zd.parse(e):ef.test(e)?ef.parse(e):Jd.parse(e),transform:e=>tc(e)?e:e.hasOwnProperty("red")?Zd.transform(e):ef.transform(e)},nf="number",rf="color",of=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function af(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(of,e=>(tf.test(e)?(r.color.push(i),o.push(rf),n.push(tf.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(nf),n.push(parseFloat(e))),++i,"${}")).split("${}");return{values:n,split:a,indexes:r,types:o}}function sf(e){return af(e).values}function lf(e){const{split:t,types:n}=af(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===nf?Gu(e[i]):t===rf?tf.transform(e[i]):e[i]}return o}}const uf=e=>"number"==typeof e?0:e,cf={test:function(e){var t,n;return isNaN(e)&&tc(e)&&((null===(t=e.match(Zu))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Ju))||void 0===n?void 0:n.length)||0)>0},parse:sf,createTransformer:lf,getAnimatableNone:function(e){const t=sf(e);return lf(e)(t.map(uf))}},df=new Set(["brightness","contrast","saturate","opacity"]);function ff(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Zu)||[];if(!r)return e;const o=n.replace(r,"");let i=df.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const pf=/\b([a-z-]*)\(.*?\)/gu,hf={...cf,getAnimatableNone:e=>{const t=e.match(pf);return t?t.map(ff).join(" "):e}},mf={...cc,color:tf,backgroundColor:tf,outlineColor:tf,fill:tf,stroke:tf,borderColor:tf,borderTopColor:tf,borderRightColor:tf,borderBottomColor:tf,borderLeftColor:tf,filter:hf,WebkitFilter:hf},gf=e=>mf[e];function vf(e,t){let n=gf(e);return n!==hf&&(n=cf),n.getAnimatableNone?n.getAnimatableNone(t):void 0}class bf extends Xd{constructor(e,t,n,r){super(e,t,n,r,null==r?void 0:r.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){const r=e[n];if("string"==typeof r&&Uu(r)){const o=Ad(r,t.current);void 0!==o&&(e[n]=o)}}if(!Md.has(n)||2!==e.length)return this.resolveNoneKeyframes();const[r,o]=e,i=Vd(r),a=Vd(o);if(i!==a)if(jd(i)&&jd(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)_d(e[t])&&n.push(t);n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;)"string"==typeof e[o]&&"none"!==e[o]&&"0"!==e[o]&&(r=e[o]),o++;if(r&&n)for(const o of t)e[o]=vf(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$d[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=$d[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const yf=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!cf.test(e)&&"0"!==e||e.startsWith("url(")));class xf{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||(Yd(),qd()),this._resolved}onKeyframesResolved(e,t){const{name:n,type:r,velocity:o,delay:i,onComplete:a,onUpdate:s}=this.options;if(!function(e,t,n,r){const o=e[0];if(null===o)return!1;const i=e[e.length-1],a=yf(o,t),s=yf(i,t);return Pd(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&r)}(e,n,r,o)){if(!i)return null==s||s(wd(e,this.options,t)),null==a||a(),void this.resolveFinishedPromise();this.options.duration=0}const l=this.initPlayback(e,t);!1!==l&&(this._resolved={keyframes:e,finalKeyframe:t,...l},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function wf(e,t){return t?e*(1e3/t):0}function kf(e,t,n){const r=Math.max(t-5,0);return wf(n-e(r),t-r)}const Sf=12;function Cf(e,t){return e*Math.sqrt(1-t*t)}const Ef=["duration","bounce"],_f=["stiffness","damping","mass"];function Pf(e,t){return t.some(t=>void 0!==e[t])}function Tf({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Pf(e,_f)&&Pf(e,Ef)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Pd(e<=pd(10),"Spring duration must be 10 seconds or less");let a=1-t;a=Yu(.05,1,a),e=Yu(.01,10,hd(e)),a<1?(o=t=>{const r=t*a,o=r*e;return.001-(r-n)/Cf(t,a)*Math.exp(-o)},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=Cf(Math.pow(t,2),a);return(.001-o(t)>0?-1:1)*((i-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Sf;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=pd(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...r,velocity:-hd(r.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(s*u)),m=i-o,g=hd(Math.sqrt(s/u)),v=Math.abs(m)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),h<1){const e=Cf(g,h);b=t=>{const n=Math.exp(-h*g*t);return i-n*((p+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)b=e=>i-Math.exp(-g*e)*(m+(p+g*m)*e);else{const e=g*Math.sqrt(h*h-1);b=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return i-n*((p+h*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:f&&c||null,next:e=>{const r=b(e);if(f)a.done=e>=c;else{let o=p;0!==e&&(o=h<1?kf(b,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function zf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const v=e=>-h*Math.exp(-e/r),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=u,f.value=f.done?g:n};let x,w;const k=e=>{var t;t=f.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,w=Tf({keyframes:[f.value,p(f.value)],velocity:kf(b,e,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,y(e),k(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&y(e),f)}}}const Rf=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Af(e,t,n,r){if(e===t&&n===r)return Dc;return o=>0===o||1===o?o:Rf(function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Rf(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(o,0,1,e,n),t,r)}const Mf=Af(.42,0,1,1),jf=Af(0,0,.58,1),Bf=Af(.42,0,.58,1),Ff=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Lf=e=>t=>1-e(1-t),Df=e=>1-Math.sin(Math.acos(e)),If=Lf(Df),$f=Ff(Df),Of=Af(.33,1.53,.69,.99),Nf=Lf(Of),Vf=Ff(Nf),Wf={linear:Dc,easeIn:Mf,easeInOut:Bf,easeOut:jf,circIn:Df,circInOut:$f,circOut:If,backIn:Nf,backInOut:Vf,backOut:Of,anticipate:e=>(e*=2)<1?.5*Nf(e):.5*(2-Math.pow(2,-10*(e-1)))},Uf=e=>{if(Array.isArray(e)){Td(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Af(t,n,r,o)}return"string"==typeof e?(Td(void 0!==Wf[e],`Invalid easing type '${e}'`),Wf[e]):e},Hf=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},qf=(e,t,n)=>e+(t-e)*n;function Yf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Xf=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Kf=[Jd,Zd,ef];function Qf(e){const t=(n=e,Kf.find(e=>e.test(n)));var n;Td(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===ef&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Yf(s,r,e+1/3),i=Yf(s,r,e),a=Yf(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const Gf=(e,t)=>{const n=Qf(e),r=Qf(t),o={...n};return e=>(o.red=Xf(n.red,r.red,e),o.green=Xf(n.green,r.green,e),o.blue=Xf(n.blue,r.blue,e),o.alpha=qf(n.alpha,r.alpha,e),Zd.transform(o))};function Zf(e,t){return n=>n>0?t:e}function Jf(e,t){return n=>qf(e,t,n)}function ep(e){return"number"==typeof e?Jf:"string"==typeof e?Uu(e)?Zf:tf.test(e)?Gf:rp:Array.isArray(e)?tp:"object"==typeof e?tf.test(e)?Gf:np:Zf}function tp(e,t){const n=[...e],r=n.length,o=e.map((e,n)=>ep(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function np(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=ep(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const rp=(e,t)=>{const n=cf.createTransformer(t),r=af(e),o=af(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Kc(tp(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(Pd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Zf(e,t))};function op(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?qf(e,t,n):ep(e)(e,t)}function ip({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Uf):Uf(r),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Hf(0,t,r);e.push(qf(n,1,o))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Td(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],o=n||op,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Dc:t;i=Kc(e,i)}r.push(i)}return r}(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Hf(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Yu(e[0],e[i-1],t)):l}(a,t,{ease:Array.isArray(o)?o:(l=t,u=o,l.map(()=>u||Bf).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const ap=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Ic.update(t,!0),stop:()=>$c(t),now:()=>Oc.isProcessing?Oc.timestamp:Cd.now()}},sp={decay:zf,inertia:zf,tween:ip,keyframes:ip,spring:Tf},lp=e=>e/100;class up extends xf{constructor({KeyframeResolver:e=Xd,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle";const{name:n,motionValue:r,keyframes:o}=this.options,i=(e,t)=>this.onKeyframesResolved(e,t);n&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(o,i,n,r):this.resolver=new e(o,i,n,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,a=sp[t]||ip;let s,l;a!==ip&&"number"!=typeof e[0]&&(s=Kc(lp,op(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(u));const{calculatedDuration:c}=u,d=c+r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:f,repeatType:p,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let b=this.currentTime,y=o;if(f){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1),Boolean(t%2)&&("reverse"===p?(n=1-n,h&&(n-=h/c)):"mirror"===p&&(y=i)),b=Yu(0,1,n)*c}const x=v?{done:!1,value:s[0]}:y.next(b);a&&(x.value=a(x.value));let{done:w}=x;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&void 0!==r&&(x.value=wd(s,this.options,r)),m&&m(x.value),k&&this.finish(),x}get duration(){const{resolved:e}=this;return e?hd(e.calculatedDuration):0}get time(){return hd(this.currentTime)}set time(e){e=pd(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=hd(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=ap,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const cp=e=>Array.isArray(e)&&"number"==typeof e[0];function dp(e){return Boolean(!e||"string"==typeof e&&pp[e]||cp(e)||Array.isArray(e)&&e.every(dp))}const fp=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fp([0,.65,.55,1]),circOut:fp([.55,0,1,.45]),backIn:fp([.31,.01,.66,-.59]),backOut:fp([.33,1.53,.69,.99])};function hp(e){if(e)return cp(e)?fp(e):Array.isArray(e)?e.map(hp):pp[e]}const mp=function(){let e;return()=>(void 0===e&&(e=Object.hasOwnProperty.call(Element.prototype,"animate")),e)}(),gp=new Set(["opacity","clipPath","filter","transform"]);class vp extends xf{constructor(e){super(e);const{name:t,motionValue:n,keyframes:r}=this.options;this.resolver=new bf(r,(e,t)=>this.onKeyframesResolved(e,t),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,motionValue:o,name:i}=this.options;if(!(null===(n=o.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(a=this.options).type||"backgroundColor"===a.name||!dp(a.ease)){const{onComplete:t,onUpdate:n,motionValue:o,...i}=this.options,a=function(e,t){const n=new up({...t,keyframes:e,repeat:0,delay:0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,i);e=a.keyframes,r=a.duration,this.options.times=a.times,this.options.ease=a.ease}var a;const s=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=hp(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(o.owner.current,i,e,{...this.options,duration:r});return s.startTime=Cd.now(),this.pendingTimeline?(s.timeline=this.pendingTimeline,this.pendingTimeline=void 0):s.onfinish=()=>{const{onComplete:n}=this.options;o.set(wd(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:s,duration:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return hd(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return hd(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=pd(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Dc;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return Dc}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){const{motionValue:e,onUpdate:t,onComplete:r,...o}=this.options,i=new up({...o,keyframes:n}),a=pd(this.time);e.setWithVelocity(i.sample(a-10).value,i.sample(a).value,10)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;return mp()&&n&&gp.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}}const bp=(e,t,n,r={},o,i)=>a=>{const s=yd(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u-=pd(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(s)||(c={...c,...bd(e,c)}),c.duration&&(c.duration=pd(c.duration)),c.repeatDelay&&(c.repeatDelay=pd(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1===c.type&&(c.duration=0,0===c.delay&&(d=!0)),d&&!i&&void 0!==t.get()){const e=wd(c.keyframes,s);if(void 0!==e)return void Ic.update(()=>{c.onUpdate(e),c.onComplete()})}return!i&&vp.supports(c)?new vp(c):new up(c)};function yp(e){return Boolean(Iu(e)&&e.add)}function xp(e,t){-1===e.indexOf(t)&&e.push(t)}function wp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class kp{constructor(){this.subscriptions=[]}add(e){return xp(this.subscriptions,e),()=>wp(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Sp={current:void 0};class Cp{constructor(e,t={}){var n;this.version="11.0.20",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=Cd.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Cd.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new kp);const n=this.events[e].add(t);return"change"===e?()=>{n(),Ic.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Sp.current&&Sp.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Cd.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return wf(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ep(e,t){return new Cp(e,t)}function _p(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ep(n))}function Pp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Tp(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const u=e.getValue("willChange");r&&(a=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||d&&Pp(d,t))continue;const s={delay:n,elapsed:0,...yd(a||{},t)};let f=!1;if(window.HandoffAppearAnimations){const n=e.getProps()[cu];if(n){const e=window.HandoffAppearAnimations(n,t);null!==e&&(s.elapsed=e,f=!0)}}r.start(bp(t,r,o,e.shouldReduceMotion&&Lu.has(t)?{type:!1}:s,e,f));const p=r.animation;p&&(yp(u)&&(u.add(t),p.then(()=>u.remove(t))),c.push(p))}return s&&Promise.all(c).then(()=>{Ic.update(()=>{s&&function(e,t){const n=fd(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)_p(e,t,jc(i[t]))}(e,s)})}),c}function zp(e,t,n={}){var r;const o=fd(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(Tp(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Rp).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(zp(e,t,{...i,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(()=>t())}return Promise.all([a(),s(n.delay)])}function Rp(e,t){return e.sortNodePosition(t)}const Ap=[...yu].reverse(),Mp=yu.length;function jp(e){let t=function(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>zp(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=zp(e,t,n);else{const o="function"==typeof t?fd(e,t,n.custom):t;r=Promise.all(Tp(e,o,n))}return r.then(()=>{Ic.postRender(()=>{e.notify("AnimationComplete",t)})})}(e,t,n)))}(e);const n={animate:Fp(!0),whileInView:Fp(),whileHover:Fp(),whileTap:Fp(),whileDrag:Fp(),whileFocus:Fp(),exit:Fp()};let r=!0;const o=t=>(n,r)=>{var o;const i=fd(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],u=new Set;let c={},d=1/0;for(let t=0;t<Mp;t++){const f=Ap[t],p=n[f],h=void 0!==a[f]?a[f]:s[f],m=vu(h),g=f===i?p.isActive:null;!1===g&&(d=t);let v=h===s[f]&&h!==a[f]&&m;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...c},!p.isActive&&null===g||!h&&!p.prevProp||bu(h)||"boolean"==typeof h)continue;let b=Bp(p.prevProp,h)||f===i&&p.isActive&&!v&&m||t>d&&m,y=!1;const x=Array.isArray(h)?h:[h];let w=x.reduce(o(f),{});!1===g&&(w={});const{prevResolvedValues:k={}}=p,S={...k,...w},C=e=>{b=!0,u.has(e)&&(y=!0,u.delete(e)),p.needsAnimating[e]=!0};for(const e in S){const t=w[e],n=k[e];if(c.hasOwnProperty(e))continue;let r=!1;r=Mc(t)&&Mc(n)?!dd(t,n):t!==n,r?null!=t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):p.protectedKeys[e]=!0}p.prevProp=h,p.prevResolvedValues=w,p.isActive&&(c={...c,...w}),r&&e.blockInitialAnimation&&(b=!1),!b||v&&!y||l.push(...x.map(e=>({animation:e,options:{type:f}})))}if(u.size){const t={};u.forEach(n=>{const r=e.getBaseTarget(n);t[n]=void 0===r?null:r}),l.push({animation:t})}let f=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,f?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Bp(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!dd(t,e)}function Fp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Lp=0;const Dp={animation:{Feature:class extends td{constructor(e){super(e),e.animationState||(e.animationState=jp(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),bu(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends td{constructor(){super(...arguments),this.id=Lp++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Ip=(e,t)=>Math.abs(e-t);class $p{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Vp(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ip(e.x,t.x),r=Ip(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Oc;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Op(t,this.transformPagePoint),Ic.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Vp("pointercancel"===e.type?this.lastMoveEventInfo:Op(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Hc(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=Op(qc(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=Oc;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Vp(i,this.history)),this.removeListeners=Kc(Yc(this.contextWindow,"pointermove",this.handlePointerMove),Yc(this.contextWindow,"pointerup",this.handlePointerUp),Yc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$c(this.updatePoint)}}function Op(e,t){return t?{point:t(e.point)}:e}function Np(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Vp({point:e},t){return{point:e,delta:Np(e,Up(t)),offset:Np(e,Wp(t)),velocity:Hp(t,.1)}}function Wp(e){return e[0]}function Up(e){return e[e.length-1]}function Hp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Up(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>pd(t)));)n--;if(!r)return{x:0,y:0};const i=hd(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function qp(e){return e.max-e.min}function Yp(e,t=0,n=.01){return Math.abs(e-t)<=n}function Xp(e,t,n,r=.5){e.origin=r,e.originPoint=qf(t.min,t.max,e.origin),e.scale=qp(n)/qp(t),(Yp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=qf(n.min,n.max,e.origin)-e.originPoint,(Yp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Kp(e,t,n,r){Xp(e.x,t.x,n.x,r?r.originX:void 0),Xp(e.y,t.y,n.y,r?r.originY:void 0)}function Qp(e,t,n){e.min=n.min+t.min,e.max=e.min+qp(t)}function Gp(e,t,n){e.min=t.min-n.min,e.max=e.min+qp(t)}function Zp(e,t,n){Gp(e.x,t.x,n.x),Gp(e.y,t.y,n.y)}function Jp(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function eh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const th=.35;function nh(e,t,n){return{min:rh(e,t),max:rh(e,n)}}function rh(e,t){return"number"==typeof e?e:e[t]||0}const oh=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ih(e){return[e("x"),e("y")]}function ah({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function sh(e){return void 0===e||1===e}function lh({scale:e,scaleX:t,scaleY:n}){return!sh(e)||!sh(t)||!sh(n)}function uh(e){return lh(e)||ch(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ch(e){return dh(e.x)||dh(e.y)}function dh(e){return e&&"0%"!==e}function fh(e,t,n){return n+t*(e-n)}function ph(e,t,n,r,o){return void 0!==o&&(e=fh(e,o,r)),fh(e,n,r)+t}function hh(e,t=0,n=1,r,o){e.min=ph(e.min,t,n,r,o),e.max=ph(e.max,t,n,r,o)}function mh(e,{x:t,y:n}){hh(e.x,t.translate,t.scale,t.originPoint),hh(e.y,n.translate,n.scale,n.originPoint)}function gh(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function vh(e,t){e.min=e.min+t,e.max=e.max+t}function bh(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=qf(e.min,e.max,i);hh(e,t[n],t[r],a,t.scale)}const yh=["x","scaleX","originX"],xh=["y","scaleY","originY"];function wh(e,t){bh(e.x,t,yh),bh(e.y,t,xh)}function kh(e,t){return ah(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Sh=({current:e})=>e?e.ownerDocument.defaultView:null,Ch=new WeakMap;class Eh{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new $p(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(qc(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Jc(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ih(e=>{let t=this.getAxisMotionValue(e).get()||0;if(oc.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=qp(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),o&&o(e,t);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>ih(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Sh(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&o(e,t)}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!_h(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?qf(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?qf(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&gu(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Jp(e.x,n,o),y:Jp(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=th){return!1===e?e=0:!0===e&&(e=th),{x:nh(e,"left","right"),y:nh(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ih(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!gu(e))return!1;const n=e.current;Td(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=kh(e,n),{scroll:o}=t;return o&&(vh(r.x,o.offset.x),vh(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:eh(e.x,t.x),y:eh(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=ah(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ih(a=>{if(!_h(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(bp(e,n,0,t,this.visualElement))}stopAnimation(){ih(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ih(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ih(t=>{const{drag:n}=this.getProps();if(!_h(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-qf(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!gu(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ih(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=qp(e),o=qp(t);return o>r?n=Hf(t.min,t.max-r,e.min):r>o&&(n=Hf(e.min,e.max-o,t.min)),Yu(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ih(t=>{if(!_h(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(qf(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;Ch.set(this.visualElement,this);const e=Yc(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();gu(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=Uc(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ih(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=th,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function _h(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Ph=e=>(t,n)=>{e&&e(t,n)},Th={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Rh={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ic.test(e))return e;e=parseFloat(e)}return`${zh(e,t.target.x)}% ${zh(e,t.target.y)}%`}},Ah={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=cf.parse(e);if(o.length>5)return r;const i=cf.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=qf(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=u),"number"==typeof o[3+a]&&(o[3+a]/=u),i(o)}};class Mh extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Bh,Object.assign(Bu,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Th.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Ic.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),hu.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function jh(t){const[n,r]=function(){const t=(0,e.useContext)(ru);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=(0,e.useId)();return(0,e.useEffect)(()=>o(i),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=(0,e.useContext)(_u);return e.createElement(Mh,{...t,layoutGroup:o,switchLayoutGroup:(0,e.useContext)(Pu),isPresent:n,safeToRemove:r})}const Bh={borderRadius:{...Rh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rh,borderTopRightRadius:Rh,borderBottomLeftRadius:Rh,borderBottomRightRadius:Rh,boxShadow:Ah},Fh=["TopLeft","TopRight","BottomLeft","BottomRight"],Lh=Fh.length,Dh=e=>"string"==typeof e?parseFloat(e):e,Ih=e=>"number"==typeof e||ic.test(e);function $h(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Oh=Vh(0,.5,If),Nh=Vh(.5,.95,Dc);function Vh(e,t,n){return r=>r<e?0:r>t?1:n(Hf(e,t,r))}function Wh(e,t){e.min=t.min,e.max=t.max}function Uh(e,t){Wh(e.x,t.x),Wh(e.y,t.y)}function Hh(e,t,n,r,o){return e=fh(e-=t,1/n,r),void 0!==o&&(e=fh(e,1/o,r)),e}function qh(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){if(oc.test(t)&&(t=parseFloat(t),t=qf(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=qf(i.min,i.max,r);e===i&&(s-=t),e.min=Hh(e.min,t,n,s,o),e.max=Hh(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Yh=["x","scaleX","originX"],Xh=["y","scaleY","originY"];function Kh(e,t,n,r){qh(e.x,t,Yh,n?n.x:void 0,r?r.x:void 0),qh(e.y,t,Xh,n?n.y:void 0,r?r.y:void 0)}function Qh(e){return 0===e.translate&&1===e.scale}function Gh(e){return Qh(e.x)&&Qh(e.y)}function Zh(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Jh(e){return qp(e.x)/qp(e.y)}class em{constructor(){this.members=[]}add(e){xp(this.members,e),e.scheduleRender()}remove(e){if(wp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function tm(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o,skewX:i,skewY:a}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `),i&&(r+=`skewX(${i}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const nm=(e,t)=>e.depth-t.depth;class rm{constructor(){this.children=[],this.isDirty=!1}add(e){xp(this.children,e),this.isDirty=!0}remove(e){wp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nm),this.isDirty=!1,this.children.forEach(e)}}const om=["","X","Y","Z"],im={visibility:"hidden"};let am=0;const sm={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function lm(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function um({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=am++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,sm.totalNodes=sm.resolvedTargetDeltas=sm.recalculatedProjection=0,this.nodes.forEach(fm),this.nodes.forEach(ym),this.nodes.forEach(xm),this.nodes.forEach(pm),e=sm,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rm)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new kp),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e){const t=Cd.now(),n=({timestamp:r})=>{const o=r-t;o>=250&&($c(n),e(o-250))};return Ic.read(n,!0),()=>$c(n)}(r),Th.hasAnimatedSinceResize&&(Th.hasAnimatedSinceResize=!1,this.nodes.forEach(bm))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||_m,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Zh(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...yd(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||bm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$c(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(wm),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(mm);this.isUpdating||this.nodes.forEach(gm),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(vm),this.nodes.forEach(cm),this.nodes.forEach(dm),this.clearAllSnapshots();const e=Cd.now();Oc.delta=Yu(0,1e3/60,e-Oc.timestamp),Oc.timestamp=e,Oc.isProcessing=!0,Nc.update.process(Oc),Nc.preRender.process(Oc),Nc.render.process(Oc),Oc.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,hu.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(hm),this.sharedNodes.forEach(km)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ic.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ic.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Gh(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||uh(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),zm((r=n).x),zm(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(vh(t.x,n.offset.x),vh(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Uh(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Uh(t,e);const{scroll:n}=this.root;n&&(vh(t.x,-n.offset.x),vh(t.y,-n.offset.y))}vh(t.x,o.offset.x),vh(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Uh(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&wh(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),uh(r.latestValues)&&wh(n,r.latestValues)}return uh(this.latestValues)&&wh(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Uh(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!uh(n.latestValues))continue;lh(n.latestValues)&&n.updateSnapshot();const r=oh();Uh(r,n.measurePageBox()),Kh(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return uh(this.latestValues)&&Kh(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Oc.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Oc.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Zp(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Uh(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Qp(a.x,s.x,l.x),Qp(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Uh(this.target,this.layout.layoutBox),mh(this.target,this.targetDelta)):Uh(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Zp(this.relativeTargetOrigin,this.target,e.target),Uh(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sm.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!lh(this.parent.latestValues)&&!ch(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Oc.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Uh(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&wh(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,mh(e,a)),r&&uh(i.latestValues)&&wh(e,i.latestValues))}t.x=gh(t.x),t.y=gh(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const u=this.projectionTransform;Kp(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=tm(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),sm.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(Em));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f,p,h,m,g;Sm(i.x,e.x,n),Sm(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Zp(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,h=this.relativeTargetOrigin,m=a,g=n,Cm(p.x,h.x,m.x,g),Cm(p.y,h.y,m.y,g),d&&(l=this.relativeTarget,f=d,l.x.min===f.x.min&&l.x.max===f.x.max&&l.y.min===f.y.min&&l.y.max===f.y.max)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Uh(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=qf(0,void 0!==n.opacity?n.opacity:1,Oh(r)),e.opacityExit=qf(void 0!==t.opacity?t.opacity:1,0,Nh(r))):i&&(e.opacity=qf(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Lh;o++){const i=`border${Fh[o]}Radius`;let a=$h(t,i),s=$h(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ih(a)===Ih(s)?(e[i]=Math.max(qf(Dh(a),Dh(s),r),0),(oc.test(s)||oc.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=qf(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($c(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ic.update(()=>{Th.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Iu(0)?0:Ep(0);return r.start(bp("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Rm(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=qp(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=qp(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Uh(t,n),wh(t,o),Kp(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new em),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};for(let t=0;t<om.length;t++)lm(`rotate${om[t]}`,e,r,this.animationValues),lm(`skew${om[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return im;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Bc(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Bc(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!uh(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=tm(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Bu){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Bu[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Bc(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(mm),this.root.sharedNodes.clear()}}}function cm(e){e.updateLayout()}function dm(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?ih(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=qp(r);r.min=t[e].min,r.max=r.min+o}):Rm(o,n.layoutBox,t)&&ih(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=qp(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Kp(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?Kp(s,e.applyTransform(r,!0),n.measuredBox):Kp(s,t,n.layoutBox);const l=!Gh(a);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};Zp(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};Zp(s,t,i.layoutBox),Zh(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function fm(e){sm.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hm(e){e.clearSnapshot()}function mm(e){e.clearMeasurements()}function gm(e){e.isLayoutDirty=!1}function vm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function bm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ym(e){e.resolveTargetDelta()}function xm(e){e.calcProjection()}function wm(e){e.resetSkewAndRotation()}function km(e){e.removeLeadSnapshot()}function Sm(e,t,n){e.translate=qf(t.translate,0,n),e.scale=qf(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cm(e,t,n,r){e.min=qf(t.min,n.min,r),e.max=qf(t.max,n.max,r)}function Em(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const _m={duration:.45,ease:[.4,0,.1,1]},Pm=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Tm=Pm("applewebkit/")&&!Pm("chrome/")?Math.round:Dc;function zm(e){e.min=Tm(e.min),e.max=Tm(e.max)}function Rm(e,t,n){return"position"===e||"preserve-aspect"===e&&!Yp(Jh(t),Jh(n),.2)}const Am=um({attachResizeListener:(e,t)=>Uc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Mm={current:void 0},jm=um({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Mm.current){const e=new Am({});e.mount(window),e.setOptions({layoutScroll:!0}),Mm.current=e}return Mm.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Bm={pan:{Feature:class extends td{constructor(){super(...arguments),this.removePointerDownListener=Dc}onPointerDown(e){this.session=new $p(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Sh(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ph(e),onStart:Ph(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&r(e,t)}}}mount(){this.removePointerDownListener=Yc(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends td{constructor(e){super(e),this.removeGroupControls=Dc,this.removeListeners=Dc,this.controls=new Eh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dc}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:jm,MeasureLayout:jh}},Fm={current:null},Lm={current:!1},Dm=new WeakMap,Im=[...Nd,tf,cf],$m=Object.keys(Eu),Om=$m.length,Nm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Vm=xu.length;class Wm{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.resolveKeyframes=(e,t,n,r)=>new this.KeyframeResolver(e,t,n,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ic.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=wu(t),this.isVariantNode=ku(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==s[e]&&Iu(t)&&(t.set(s[e],!1),yp(u)&&u.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Dm.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Lm.current||function(){if(Lm.current=!0,au)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fm.current=e.matches;e.addListener(t),t()}else Fm.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Fm.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Dm.delete(this.current),this.projection&&this.projection.unmount(),$c(this.notifyUpdate),$c(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=Lu.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Ic.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,a;for(let e=0;e<Om;e++){const n=$m[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=Eu[n];s&&(i=s),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||a&&gu(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Nm.length;t++){const n=Nm[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(Iu(i))e.addValue(o,i),yp(r)&&r.add(o);else if(Iu(a))e.addValue(o,Ep(i,{owner:e})),yp(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,Ep(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Vm;e++){const n=xu[e],r=this.props[n];(vu(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Ep(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var o;return null!=r&&("string"==typeof r&&(zd(r)||Ed(r))?r=parseFloat(r):(o=r,!Im.find(Od(o))&&cf.test(t)&&(r=vf(e,t))),this.setBaseTarget(e,Iu(r)?r.get():r)),Iu(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t,n;const{initial:r}=this.props,o="string"==typeof r||"object"==typeof r?null===(n=Rc(this.props,r,null===(t=this.presenceContext)||void 0===t?void 0:t.custom))||void 0===n?void 0:n[e]:void 0;if(r&&void 0!==o)return o;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||Iu(i)?void 0!==this.initialValues[e]&&void 0===o?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new kp),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Um extends Wm{constructor(){super(...arguments),this.KeyframeResolver=bf}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class Hm extends Um{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(Lu.has(t)){const e=gf(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Vu(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return kh(e,t)}build(e,t,n,r){dc(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Tc(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Iu(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){Ec(e,t,n,r)}}class qm extends Um{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Lu.has(t)){const e=gf(t);return e&&e.default||0}return t=_c.has(t)?t:uu(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return zc(e,t)}build(e,t,n,r){wc(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Pc(e,t,0,r)}mount(e){this.isSVGTag=kc(e.tagName),super.mount(e)}}const Ym=(e,t)=>ju(e)?new qm(t,{enableHardwareAcceleration:!1}):new Hm(t,{enableHardwareAcceleration:!0}),Xm={...Dp,...cd,...Bm,layout:{ProjectionNode:jm,MeasureLayout:jh}},Km=Au((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...ju(e)?Vc:Wc,preloadedFeatures:n,useRender:Cc(t),createVisualElement:r,Component:e}}(e,t,Xm,Ym));var Qm=new Set([...vn,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Gm=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Zm(e){return Gm.has(e)||!Qm.has(e)}var Jm,eg=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,tg=se(function(e){return eg.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),ng=function(e){return"theme"!==e},rg=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?tg:ng},og=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ig=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return _e(t,n,r),ye(function(){return Pe(t,n,r)}),null},ag=function t(n,r){var o,i,a=n.__emotion_real===n,s=a&&n.__emotion_base||n;void 0!==r&&(o=r.label,i=r.target);var l=og(n,r,a),u=l||rg(s),c=!u("as");return function(){var d=arguments,f=a&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,h=1;h<p;h++)f.push(d[h],d[0][h])}var m=ke(function(t,n,r){var o,a,d,p,h=c&&t.as||s,m="",g=[],v=t;if(null==t.theme){for(var b in v={},t)v[b]=t[b];v.theme=e.useContext(Se)}"string"==typeof t.className?(o=n.registered,a=g,d=t.className,p="",d.split(" ").forEach(function(e){void 0!==o[e]?a.push(o[e]+";"):e&&(p+=e+" ")}),m=p):null!=t.className&&(m=t.className+" ");var y=ve(f.concat(g),n.registered,v);m+=n.key+"-"+y.name,void 0!==i&&(m+=" "+i);var x=c&&void 0===l?rg(h):u,w={};for(var k in t)c&&"as"===k||x(k)&&(w[k]=t[k]);return w.className=m,w.ref=r,e.createElement(e.Fragment,null,e.createElement(ig,{cache:n,serialized:y,isStringTag:"string"==typeof h}),e.createElement(h,w))});return m.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",m.defaultProps=n.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=f,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(e,n){return t(e,oe({},r,n,{shouldForwardProp:og(m,n,!0)})).apply(void 0,f)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){ag[e]=ag(e)});var sg=null!=(Jm=ag.default)?Jm:ag;function lg(t,n){const{baseStyle:r,...o}=null!=n?n:{};o.shouldForwardProp||(o.shouldForwardProp=Zm);const i=(({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...a}=t,s=Pn(a,(e,t)=>yn(t)),l=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const e of t)if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in n&&delete n[t],n[t]=e[t]);return n}({},o,zn(e,t),Tn(s),i),u=kn(l)(t.theme);return r?[u,r]:u})({baseStyle:r}),a=sg(t,o)(i);return e.forwardRef(function(t,n){const{colorMode:r,forced:o}=Oe();return e.createElement(a,{ref:n,"data-theme":o?r:void 0,...t})})}var ug=function(){const e=new Map;return new Proxy(lg,{apply:(e,t,n)=>lg(...n),get:(t,n)=>(e.has(n)||e.set(n,lg(n)),e.get(n))})}(),cg={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},dg=(0,e.memo)(t=>{const{id:n,message:r,onCloseComplete:o,onRequestRemove:i,requestClose:a=!1,position:s="bottom",duration:l=5e3,containerStyle:u,motionVariants:c=cg,toastSpacing:d="0.5rem"}=t,[f,p]=(0,e.useState)(l),h=null===(m=(0,e.useContext)(ru))||m.isPresent;var m;nu(()=>{h||null==o||o()},[h]),nu(()=>{p(l)},[l]);const g=()=>{h&&i()};(0,e.useEffect)(()=>{h&&a&&i()},[h,a,i]),function(t,n){const r=function(t,n=[]){const r=(0,e.useRef)(t);return(0,e.useEffect)(()=>{r.current=t}),(0,e.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},n)}(t);(0,e.useEffect)(()=>{if(null==n)return;let e=null;return e=window.setTimeout(()=>{r()},n),()=>{e&&window.clearTimeout(e)}},[n,r])}(g,f);const v=(0,e.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...u}),[u,d]),b=(0,e.useMemo)(()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s),[s]);return(0,Re.jsx)(Km.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>p(null),onHoverEnd:()=>p(l),custom:{position:s},style:b,children:(0,Re.jsx)(ug.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:We(r,{id:n,onClose:g})})})});function fg(t){return(0,e.forwardRef)(t)}dg.displayName="ToastComponent";var pg=n(115);function hg(t,n={}){var r;const{styleConfig:o,...i}=n,{theme:a,colorMode:s}={...Oe(),theme:function(){const t=(0,e.useContext)(Se);if(!t)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return t}()},l=t?_n(a,`components.${t}`):void 0,u=o||l,c=He({theme:a,colorMode:s},null!=(r=null==u?void 0:u.defaultProps)?r:{},Tn(function(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}(i,["children"]))),d=(0,e.useRef)({});if(u){const e=function(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,a=function(e){const t=e.__breakpoints;return function(e,n,r,o){var i,a;if(!t)return;const s={},l=function(e,t){return Array.isArray(e)?e:Ve(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!l)return s;const u=l.length,c=1===u,d=!!e.parts;for(let r=0;r<u;r++){const u=t.details[r],f=t.details[Cn(l,r)],p=Kt(u.minW,null==f?void 0:f._minW),h=We(null==(i=e[n])?void 0:i[l[r]],o);h&&(d?null==(a=e.parts)||a.forEach(e=>{He(s,{[e]:c?h[e]:{[p]:h[e]}})}):d?s[p]=h:c?He(s,h):s[p]=h)}return s}}(i);return He({},We(null!=(n=e.baseStyle)?n:{},t),a(e,"sizes",o,t),a(e,"variants",r,t))}}(u),t=e(c);pg(d.current,t)||(d.current=t)}return d.current}function mg(e,t={}){return hg(e,t)}var gg={path:(0,Re.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,Re.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,Re.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,Re.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},vg=fg((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c={ref:t,focusable:i,className:Ne("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...mg("Icon",e)}},d=null!=r?r:gg.viewBox;if(n&&"string"!=typeof n)return(0,Re.jsx)(ug.svg,{as:n,...c,...u});const f=null!=a?a:gg.path;return(0,Re.jsx)(ug.svg,{verticalAlign:"middle",viewBox:d,...c,...u,children:f})});function bg(e){return(0,Re.jsx)(vg,{viewBox:"0 0 24 24",...e,children:(0,Re.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}vg.displayName="Icon";var yg=function(){var e=ze.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),xg=fg((e,t)=>{const n=mg("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=En(e),u=Ne("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${yg} ${i} linear infinite`,...n};return(0,Re.jsx)(ug.div,{ref:t,__css:c,className:u,...l,children:r&&(0,Re.jsx)(ug.span,{srOnly:!0,children:r})})});xg.displayName="Spinner";var[wg,kg]=Fe({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Sg,Cg]=Fe({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Eg={info:{icon:function(e){return(0,Re.jsx)(vg,{viewBox:"0 0 24 24",...e,children:(0,Re.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:bg,colorScheme:"orange"},success:{icon:function(e){return(0,Re.jsx)(vg,{viewBox:"0 0 24 24",...e,children:(0,Re.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:bg,colorScheme:"red"},loading:{icon:xg,colorScheme:"blue"}},_g=fg(function(e,t){var n;const{status:r="info",addRole:o=!0,...i}=En(e),a=null!=(n=e.colorScheme)?n:function(e){return Eg[e].colorScheme}(r),s=function(e,t={}){return hg(e,t)}("Alert",{...e,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return(0,Re.jsx)(wg,{value:{status:r},children:(0,Re.jsx)(Sg,{value:s,children:(0,Re.jsx)(ug.div,{"data-status":r,role:o?"alert":void 0,ref:t,...i,className:Ne("chakra-alert",e.className),__css:l})})})});function Pg(e){const{status:t}=kg(),n=function(e){return Eg[e].icon}(t),r=Cg(),o="loading"===t?r.spinner:r.icon;return(0,Re.jsx)(ug.span,{display:"inherit","data-status":t,...e,className:Ne("chakra-alert__icon",e.className),__css:o,children:e.children||(0,Re.jsx)(n,{h:"100%",w:"100%"})})}_g.displayName="Alert",Pg.displayName="AlertIcon";var Tg=fg(function(e,t){const n=Cg(),{status:r}=kg();return(0,Re.jsx)(ug.div,{ref:t,"data-status":r,...e,className:Ne("chakra-alert__title",e.className),__css:n.title})});Tg.displayName="AlertTitle";var zg=fg(function(e,t){const n=Cg(),{status:r}=kg(),o={display:"inline",...n.description};return(0,Re.jsx)(ug.div,{ref:t,"data-status":r,...e,className:Ne("chakra-alert__desc",e.className),__css:o})});function Rg(e){return(0,Re.jsx)(vg,{focusable:"false","aria-hidden":!0,...e,children:(0,Re.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}zg.displayName="AlertDescription";var Ag=fg(function(e,t){const n=mg("CloseButton",e),{children:r,isDisabled:o,__css:i,...a}=En(e);return(0,Re.jsx)(ug.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...i},...a,children:r||(0,Re.jsx)(Rg,{width:"1em",height:"1em"})})});Ag.displayName="CloseButton";var Mg=function(e){let t=e;const n=new Set,r=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{r(()=>e),n.delete(t)}),removeToast:(e,t)=>{r(n=>({...n,[t]:n[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{const n=function(e,t={}){var n,r;jg+=1;const o=null!=(n=t.id)?n:jg,i=null!=(r=t.position)?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Mg.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:i}=n;return r(e=>{var t,r;const i=o.includes("top")?[n,...null!=(t=e[o])?t:[]]:[...null!=(r=e[o])?r:[],n];return{...e,[o]:i}}),i},update:(e,t)=>{e&&r(n=>{const r={...n},{position:o,index:i}=Jl(r,e);return o&&-1!==i&&(r[o][i]={...r[o][i],...t,message:Fg(t)}),r})},closeAll:({positions:e}={})=>{r(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,n)=>(e[n]=t[n].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{r(t=>{const n=eu(t,e);return n?{...t,[n]:t[n].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>Boolean(Jl(Mg.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),jg=0,Bg=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return(0,Re.jsxs)(_g,{addRole:!1,status:t,variant:n,id:null==c?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,Re.jsx)(Pg,{children:u}),(0,Re.jsxs)(ug.div,{flex:"1",maxWidth:"100%",children:[o&&(0,Re.jsx)(Tg,{id:null==c?void 0:c.title,children:o}),s&&(0,Re.jsx)(zg,{id:null==c?void 0:c.description,display:"block",children:s})]}),i&&(0,Re.jsx)(Ag,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function Fg(e={}){const{render:t,toastComponent:n=Bg}=e;return r=>"function"==typeof t?t({...r,...e}):(0,Re.jsx)(n,{...r,...e})}function Lg(){const t=(0,e.useRef)(!1);return su(()=>(t.current=!0,()=>{t.current=!1}),[]),t}class Dg extends e.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Ig({children:t,isPresent:n}){const r=(0,e.useId)(),o=(0,e.useRef)(null),i=(0,e.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,e.useContext)(ou);return(0,e.useInsertionEffect)(()=>{const{width:e,height:t,top:s,left:l}=i.current;if(n||!o.current||!e||!t)return;o.current.dataset.motionPopId=r;const u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n top: ${s}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(u)}},[n]),e.createElement(Dg,{isPresent:n,childRef:o,sizeRef:i},e.cloneElement(t,{ref:o}))}const $g=({children:t,initial:n,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const l=Ac(Og),u=(0,e.useId)(),c=(0,e.useMemo)(()=>({id:u,initial:n,isPresent:r,custom:i,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;o&&o()},register:e=>(l.set(e,!1),()=>l.delete(e))}),a?void 0:[r]);return(0,e.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[r]),e.useEffect(()=>{!r&&!l.size&&o&&o()},[r]),"popLayout"===s&&(t=e.createElement(Ig,{isPresent:r},t)),e.createElement(ru.Provider,{value:c},t)};function Og(){return new Map}const Ng=e=>e.key||"",Vg=({children:t,custom:n,initial:r=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Td(!i,"Replace exitBeforeEnter with mode='wait'");const l=(0,e.useContext)(_u).forceRender||function(){const t=Lg(),[n,r]=(0,e.useState)(0),o=(0,e.useCallback)(()=>{t.current&&r(n+1)},[n]);return[(0,e.useCallback)(()=>Ic.postRender(o),[o]),n]}()[0],u=Lg(),c=function(t){const n=[];return e.Children.forEach(t,t=>{(0,e.isValidElement)(t)&&n.push(t)}),n}(t);let d=c;const f=(0,e.useRef)(new Map).current,p=(0,e.useRef)(d),h=(0,e.useRef)(new Map).current,m=(0,e.useRef)(!0);var g;if(su(()=>{m.current=!1,function(e,t){e.forEach(e=>{const n=Ng(e);t.set(n,e)})}(c,h),p.current=d}),g=()=>{m.current=!0,h.clear(),f.clear()},(0,e.useEffect)(()=>()=>g(),[]),m.current)return e.createElement(e.Fragment,null,d.map(t=>e.createElement($g,{key:Ng(t),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:s},t)));d=[...d];const v=p.current.map(Ng),b=c.map(Ng),y=v.length;for(let e=0;e<y;e++){const t=v[e];-1!==b.indexOf(t)||f.has(t)||f.set(t,void 0)}return"wait"===s&&f.size&&(d=[]),f.forEach((t,r)=>{if(-1!==b.indexOf(r))return;const i=h.get(r);if(!i)return;const m=v.indexOf(r);let g=t;if(!g){const t=()=>{f.delete(r);const e=Array.from(h.keys()).filter(e=>!b.includes(e));if(e.forEach(e=>h.delete(e)),p.current=c.filter(t=>{const n=Ng(t);return n===r||e.includes(n)}),!f.size){if(!1===u.current)return;l(),o&&o()}};g=e.createElement($g,{key:Ng(i),isPresent:!1,onExitComplete:t,custom:n,presenceAffectsLayout:a,mode:s},i),f.set(r,g)}d.splice(m,0,g)}),d=d.map(t=>{const n=t.key;return f.has(n)?t:e.createElement($g,{key:Ng(t),isPresent:!0,presenceAffectsLayout:a,mode:s},t)}),e.createElement(e.Fragment,null,f.size?d:d.map(t=>(0,e.cloneElement)(t)))};var Wg=n(961),[Ug,Hg]=Fe({strict:!1,name:"PortalContext"}),qg="chakra-portal",Yg=e=>(0,Re.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),Xg=t=>{const{appendToParentPortal:n,children:r}=t,[o,i]=(0,e.useState)(null),a=(0,e.useRef)(null),[,s]=(0,e.useState)({});(0,e.useEffect)(()=>s({}),[]);const l=Hg(),u=De();On(()=>{if(!o)return;const e=o.ownerDocument,t=n&&null!=l?l:e.body;if(!t)return;a.current=e.createElement("div"),a.current.className=qg,t.appendChild(a.current),s({});const r=a.current;return()=>{t.contains(r)&&t.removeChild(r)}},[o]);const c=(null==u?void 0:u.zIndex)?(0,Re.jsx)(Yg,{zIndex:null==u?void 0:u.zIndex,children:r}):r;return a.current?(0,Wg.createPortal)((0,Re.jsx)(Ug,{value:a.current,children:c}),a.current):(0,Re.jsx)("span",{ref:e=>{e&&i(e)}})},Kg=t=>{const{children:n,containerRef:r,appendToParentPortal:o}=t,i=r.current,a=null!=i?i:"undefined"!=typeof window?document.body:void 0,s=(0,e.useMemo)(()=>{const e=null==i?void 0:i.ownerDocument.createElement("div");return e&&(e.className=qg),e},[i]),[,l]=(0,e.useState)({});return On(()=>l({}),[]),On(()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}},[s,a]),a&&s?(0,Wg.createPortal)((0,Re.jsx)(Ug,{value:o?s:null,children:n}),s):null};function Qg(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?(0,Re.jsx)(Kg,{containerRef:n,...r}):(0,Re.jsx)(Xg,{...r})}Qg.className=qg,Qg.selector=".chakra-portal",Qg.displayName="Portal";var[Gg,Zg]=Fe({name:"ToastOptionsContext",strict:!1}),Jg=t=>{const n=(0,e.useSyncExternalStore)(Mg.subscribe,Mg.getState,Mg.getState),{motionVariants:r,component:o=dg,portalProps:i}=t,a=Object.keys(n).map(e=>{const t=n[e];return(0,Re.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:tu(e),children:(0,Re.jsx)(Vg,{initial:!1,children:t.map(e=>(0,Re.jsx)(o,{motionVariants:r,...e},e.id))})},e)});return(0,Re.jsx)(Qg,{...i,children:a})},ev=e=>function({children:t,theme:n=e,toastOptions:r,...o}){return(0,Re.jsxs)(qn,{theme:n,...o,children:[(0,Re.jsx)(Gg,{value:null==r?void 0:r.defaultOptions,children:t}),(0,Re.jsx)(Jg,{...r})]})},tv=ev(Ql),nv=(ev(Gl),n(5338)),rv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ov=e.createContext&&e.createContext(rv),iv=["attr","size","title"];function av(){return av=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},av.apply(this,arguments)}function sv(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 lv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sv(Object(n),!0).forEach(function(t){uv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uv(e,t,n){return t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cv(t){return t&&t.map((t,n)=>e.createElement(t.tag,lv({key:n},t.attr),cv(t.child)))}function dv(t){return n=>e.createElement(fv,av({attr:lv({},t.attr)},n),cv(t.child))}function fv(t){var n=n=>{var r,{attr:o,size:i,title:a}=t,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 i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,iv),l=i||n.size||"1em";return n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className),e.createElement("svg",av({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,s,{className:r,style:lv(lv({color:t.color||n.color},n.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&e.createElement("title",null,a),t.children)};return void 0!==ov?e.createElement(ov.Consumer,null,e=>n(e)):n(rv)}function pv(e){return dv({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m22 2-7 20-4-9-9-4Z"},child:[]},{tag:"path",attr:{d:"M22 2 11 13"},child:[]}]})(e)}function hv(e){return dv({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"},child:[]},{tag:"path",attr:{d:"M5 3v4"},child:[]},{tag:"path",attr:{d:"M19 17v4"},child:[]},{tag:"path",attr:{d:"M3 5h4"},child:[]},{tag:"path",attr:{d:"M17 19h4"},child:[]}]})(e)}function mv(e){return dv({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const gv=["Add a phone number field","Make all fields required","Add a date picker field","Insert a file upload field","Add a dropdown with Yes / No options","Remove the last field","Add an address section","Insert a multi-line text field"],vv="https://everestforms.net/upgrade/?utm_source=evf-free&utm_medium=ai-chat&utm_campaign=daily-limit&utm_content=Upgrade+to+Pro",bv=window.evfBuilderAI||{},yv=!!bv.aiDisabled,xv=e=>{const t=e&&e.usage;return t&&"number"==typeof t.remaining?{remaining:t.remaining,limit:t.limit,used:t.used}:null},wv=e=>{return"number"==typeof e.limit&&e.limit>0?`${e.remaining} of ${e.limit} AI requests left today · resets daily`:`${t=e.remaining} request${1===t?"":"s"} left today`;var t},kv=({usage:e,loading:n})=>{if(!e)return n?t().createElement("div",{style:{flexShrink:0,width:62,height:22,borderRadius:20,background:"rgba(255,255,255,.16)",animation:"evf-ai-pulse 1.3s ease-in-out infinite"}}):null;const r="number"==typeof e.limit&&e.limit>0,{remaining:o}=e,i=o<=3,a=r?Math.max(0,Math.min(1,o/e.limit)):1,s=i?"#7a4b00":"#fff",l=i?"rgba(122,75,0,.7)":"rgba(255,255,255,.7)";return t().createElement("div",{title:wv(e),style:{flexShrink:0,display:"inline-flex",alignItems:"center",gap:6,height:22,padding:"0 10px",borderRadius:20,lineHeight:1,background:i?"#fbbf24":"rgba(255,255,255,.16)"}},t().createElement(hv,{size:11,color:s}),t().createElement("span",{style:{display:"inline-flex",alignItems:"baseline",gap:1,fontSize:11.5,fontWeight:700,color:s}},o,r&&t().createElement("span",{style:{fontWeight:500,color:l}},"/",e.limit)),r&&t().createElement("span",{style:{width:22,height:4,borderRadius:20,overflow:"hidden",display:"inline-block",background:i?"rgba(122,75,0,.25)":"rgba(255,255,255,.28)"}},t().createElement("span",{style:{display:"block",height:"100%",width:`${Math.round(100*a)}%`,borderRadius:20,background:i?"#7a4b00":"#fff"}})))},Sv=()=>{const[n,r]=(0,e.useState)(!1),[o,i]=(0,e.useState)(""),[a,s]=(0,e.useState)([{role:"assistant",text:"Hi! I'm your AI form assistant. Tell me how to improve this form — or pick a suggestion below."}]),[l,u]=(0,e.useState)(!1),[c,d]=(0,e.useState)(null),[f,p]=(0,e.useState)(!0),[h,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(!1),[b,y]=(0,e.useState)(!1),[x,w]=(0,e.useState)("free"),k=!n&&(h||g),[S,C]=(0,e.useState)(!!bv.hintDismissed),E=()=>{if(S)return;if(C(!0),!bv.ajaxUrl)return;const e=new URLSearchParams;e.append("action","evf_ai_dismiss_hint"),e.append("hint","form"),e.append("nonce",bv.nonce||""),fetch(bv.ajaxUrl,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:e.toString()}).catch(()=>{})},_=!n&&!S&&!yv,[P,T]=(0,e.useState)(()=>"complete"===document.readyState);(0,e.useEffect)(()=>{if(P)return;const e=()=>T(!0);return window.addEventListener("load",e),()=>window.removeEventListener("load",e)},[P]);const[z,R]=(0,e.useState)(null),[A,M]=(0,e.useState)(null),[j,B]=(0,e.useState)(!0),F=(0,e.useRef)(null),L=(0,e.useRef)(null);(0,e.useEffect)(()=>{const e=document.getElementById("everest-forms-builder"),t=()=>{const t=document.querySelector(".everest-forms-designer-icon");if(t){const e=parseInt(window.getComputedStyle(t).bottom,10);R(isNaN(e)?null:e)}else R(null);const n=document.querySelector(".everest-forms-multi-part-tabs");n&&e?.classList.contains("multi-part-activated")?M(Math.round(window.innerHeight-n.getBoundingClientRect().top)):M(null)};t();const n=new MutationObserver(t);e&&n.observe(e,{attributes:!0,attributeFilter:["class"]});const r=window.setInterval(t,500);return()=>{n.disconnect(),window.clearInterval(r)}},[]),(0,e.useEffect)(()=>{const e=document.getElementById("everest-forms-builder")||document.body,t=()=>{const e=document.getElementById("everest-forms-panel-fields");B(!e||e.classList.contains("active"))};t();const n=new MutationObserver(t);n.observe(e,{attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0});const r=window.setInterval(t,500);return()=>{n.disconnect(),window.clearInterval(r)}},[]),(0,e.useEffect)(()=>{j||r(!1)},[j]),(0,e.useEffect)(()=>{n&&F.current?.scrollIntoView({behavior:"smooth"})},[a,n]),(0,e.useEffect)(()=>{n&&setTimeout(()=>L.current?.focus(),120)},[n]),(0,e.useEffect)(()=>{if(yv||!bv.ajaxUrl||!bv.nonce)return void p(!1);let e=!1;const t=new URLSearchParams;return t.append("action","evf_ai_get_usage"),t.append("nonce",bv.nonce),fetch(bv.ajaxUrl,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t.toString()}).then(e=>e.json()).then(t=>{if(e)return;const n=xv(t?.data);n&&d(n)}).catch(()=>{}).finally(()=>{e||p(!1)}),()=>{e=!0}},[]);const D=async e=>{if(!e.trim()||l)return;const t=e.trim();i(""),s(e=>[...e,{role:"user",text:t}]),u(!0),s(e=>[...e,{role:"assistant",text:"",loading:!0}]);const n=await(async e=>{if(!bv.ajaxUrl||!bv.nonce||!bv.formId)return{ok:!1,message:"AI assistant is unavailable on this screen."};const t=new URLSearchParams;t.append("action","evf_ai_update_form"),t.append("nonce",bv.nonce),t.append("form_id",String(bv.formId)),t.append("prompt",bv.formTitle||"Edit this form"),t.append("refine_prompt",e);try{const e=await fetch(bv.ajaxUrl,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t.toString()}),n=await e.json();if(n?.success)return{ok:!0,message:n?.data?.notice||"Done — I've updated your form. Refreshing the canvas…",isNotice:!!n?.data?.notice,noticeUrl:n?.data?.notice_url||"",needsReload:!!n?.data?.needs_reload,usage:xv(n?.data)};const r="daily_limit_reached"===n?.data?.code,o=n?.data?.tier||"free";return{ok:!1,message:n?.data?.message||"Sorry, I could not update the form. Please try again.",limitReached:r,limitTier:o,noticeUrl:r&&"pro"!==o?vv:"",usage:xv(n?.data)}}catch{return{ok:!1,message:"Could not reach the AI service. Please try again."}}})(t);if(n.usage&&d(n.usage),!n.ok&&n.limitReached&&(y(!0),w(n.limitTier||"free")),n.isNotice&&a.some(e=>e.notice)&&(n.isNotice=!1,n.noticeUrl="",n.message="Done — I've updated your form. Refreshing the canvas…"),n.ok&&n.needsReload&&!n.isNotice&&(n.message="Done — your form settings have been updated."),s(e=>{const t=[...e],r=t[t.length-1];return r?.loading?(n.ok&&n.isNotice?(t[t.length-1]={role:"assistant",text:n.needsReload?"Done — your form settings have been updated.":"Done — I've updated your form. Refreshing the canvas…"},t.push({role:"assistant",text:n.message,notice:!0,noticeUrl:n.noticeUrl||"",reload:!!n.needsReload})):t[t.length-1]={role:"assistant",text:n.message,notice:n.isNotice||!n.ok,noticeUrl:n.noticeUrl||"",reload:n.ok&&!!n.needsReload},t):t}),u(!1),n.ok){r(!0);const e=window;n.needsReload||("function"==typeof e.evfReloadBuilderFields&&bv.formId&&bv.nonce?e.evfReloadBuilderFields(bv.formId,bv.nonce,()=>{}):setTimeout(()=>window.location.reload(),1500))}},I=55,$=null!==z?z+I+8:null!==A?A+8:22,O=$+I+8;return j&&P?t().createElement(t().Fragment,null,t().createElement("button",{onClick:()=>{yv||(r(e=>!e),E())},style:{position:"fixed",bottom:$,right:22,width:I,height:I,borderRadius:"50%",background:yv?"linear-gradient(135deg,#b4a8cc 0%,#c8bce0 100%)":n?"linear-gradient(135deg,#5c329c 0%,#7545BB 100%)":"linear-gradient(135deg,#7545BB 0%,#9660db 100%)",border:"none",cursor:yv?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 16px rgba(117,69,187,.45)",zIndex:1000001,transition:"transform .2s,box-shadow .2s,background .2s"},onMouseEnter:e=>{m(!0),yv||(e.currentTarget.style.transform="scale(1.08)",e.currentTarget.style.boxShadow="0 6px 22px rgba(117,69,187,.55)")},onMouseLeave:e=>{m(!1),e.currentTarget.style.transform="scale(1)",e.currentTarget.style.boxShadow="0 4px 16px rgba(117,69,187,.45)"}},n?t().createElement(mv,{size:22,color:"white"}):t().createElement(hv,{size:24,color:"white"})),l&&!n&&!yv&&t().createElement("div",{"aria-hidden":"true",style:{position:"fixed",bottom:$-4,right:18,width:63,height:63,borderRadius:"50%",border:"2.5px solid rgba(117,69,187,.25)",borderTopColor:"#7545BB",animation:"evf-ai-spin .8s linear infinite",zIndex:1e6,pointerEvents:"none"}}),_&&t().createElement("div",{style:{position:"fixed",bottom:$+I+10,right:22,width:272,zIndex:1000002}},t().createElement("div",{style:{position:"relative",background:"#fff",border:"1px solid #e9e2f3",borderRadius:14,padding:"14px 16px",boxShadow:"0 10px 30px rgba(88,45,163,.22), 0 2px 8px rgba(20,23,40,.08)"}},t().createElement("button",{type:"button","aria-label":"Dismiss",onClick:E,style:{position:"absolute",top:8,right:8,border:0,background:"none",color:"#9a95a8",cursor:"pointer",width:22,height:22,borderRadius:"50%",display:"grid",placeItems:"center"},onMouseEnter:e=>{e.currentTarget.style.background="rgba(117,69,187,.12)",e.currentTarget.style.color="#7545BB"},onMouseLeave:e=>{e.currentTarget.style.background="none",e.currentTarget.style.color="#9a95a8"}},t().createElement(mv,{size:13})),t().createElement("div",{style:{display:"flex",alignItems:"center",gap:5,fontSize:11,fontWeight:700,letterSpacing:".03em",textTransform:"uppercase",color:"#7545BB",marginBottom:6}},t().createElement(hv,{size:12}),"New"),t().createElement("div",{style:{fontSize:13,lineHeight:1.5,color:"#383838",paddingRight:14}},"Tell me what to add or change, and I’ll update your form for you."),t().createElement("div",{style:{position:"absolute",bottom:-8,right:24,width:0,height:0,borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderTop:"8px solid #e9e2f3"}}),t().createElement("div",{style:{position:"absolute",bottom:-6,right:25,width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent",borderTop:"7px solid #fff"}}))),k&&!_&&t().createElement("div",{onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),style:{position:"fixed",bottom:$+I+8,right:22+Math.round(27.5),transform:"translateX(50%)",pointerEvents:b?"auto":"none",zIndex:1000002}},t().createElement("div",{style:{background:"#fff",border:"0.8px solid #e1e1e1",borderRadius:3,padding:"16px 20px",fontSize:13,color:"#222",whiteSpace:"nowrap",position:"relative"}},b?t().createElement(t().Fragment,null,t().createElement("div",{style:{marginBottom:8}},"pro"===x?"You've reached today's request limit. It resets tomorrow.":"You've reached your daily free limit."),"pro"!==x&&t().createElement("a",{href:vv,target:"_blank",rel:"noopener noreferrer",style:{color:"#7545BB",fontWeight:600,fontSize:12,textDecoration:"none"},onMouseEnter:e=>e.currentTarget.style.textDecoration="underline",onMouseLeave:e=>e.currentTarget.style.textDecoration="none"},"Upgrade to Pro →")):yv?"Not available on local sites":"AI Form Assistant"),t().createElement("div",{style:{position:"absolute",bottom:-8,left:"50%",marginLeft:-7,width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent",borderTop:"8px solid #e1e1e1"}}),t().createElement("div",{style:{position:"absolute",bottom:-6,left:"50%",marginLeft:-6,width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"7px solid #fff"}})),n&&t().createElement("div",{style:{position:"fixed",bottom:O,right:22,width:440,height:520,maxHeight:`calc(100vh - ${O+40}px)`,borderRadius:16,background:"#fff",boxShadow:"0 8px 40px rgba(0,0,0,.18)",border:"1px solid #e2e8f0",display:"flex",flexDirection:"column",overflow:"hidden",zIndex:1e6}},t().createElement("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"0 16px",height:52,background:"linear-gradient(135deg,#7545BB 0%,#9660db 100%)",flexShrink:0}},t().createElement("div",{style:{width:28,height:28,borderRadius:"50%",background:"rgba(255,255,255,.15)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},t().createElement(hv,{size:14,color:"white"})),t().createElement("div",{style:{flex:1,minWidth:0}},t().createElement("div",{style:{fontSize:14,fontWeight:600,color:"#fff",lineHeight:1.2}},"AI Form Assistant"),t().createElement("div",{style:{fontSize:11,color:"rgba(255,255,255,.7)",lineHeight:1.2}},"Powered by AI")),!yv&&(c||f)&&t().createElement(kv,{usage:c,loading:f})),t().createElement("div",{className:"evf-ai-messages",style:{flex:1,overflowY:"auto",padding:"16px 14px",display:"flex",flexDirection:"column",gap:10}},a.map((e,n)=>t().createElement("div",{key:n,style:{display:"flex",flexDirection:"user"===e.role?"row-reverse":"row",alignItems:"flex-end",gap:8}},"assistant"===e.role&&t().createElement("div",{style:{width:26,height:26,borderRadius:"50%",background:"rgba(117,69,187,.1)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},t().createElement(hv,{size:13,color:"#7545BB"})),t().createElement("div",{style:{maxWidth:"82%",padding:"9px 12px",borderRadius:"user"===e.role?"14px 14px 4px 14px":"4px 14px 14px 14px",background:"user"===e.role?"#7545BB":e.notice?"#fff8f8":"#f4f0fb",color:"user"===e.role?"#fff":e.notice?"#c0392b":"#1a1a2e",border:e.notice?"1px solid #fca5a5":"none",fontSize:13,lineHeight:1.55,boxShadow:"user"===e.role?"0 2px 8px rgba(117,69,187,.2)":"none"}},e.loading?t().createElement("div",{style:{display:"flex",gap:4,padding:"2px 0"}},[0,1,2].map(e=>t().createElement("span",{key:e,style:{width:6,height:6,borderRadius:"50%",background:"#9660db",display:"inline-block",animation:`evf-ai-dot 1.1s ease-in-out ${.18*e}s infinite`}}))):t().createElement(t().Fragment,null,e.text,(e.reload||e.notice&&e.noticeUrl)&&t().createElement("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:14,marginTop:6}},e.reload&&t().createElement("a",{href:"#",onClick:e=>{e.preventDefault(),window.location.reload()},style:{color:"#7545BB",fontWeight:600,fontSize:12,textDecoration:"underline",cursor:"pointer"}},"Refresh the page ↻"),e.notice&&e.noticeUrl&&t().createElement("a",{href:e.noticeUrl,target:"_blank",rel:"noopener noreferrer",style:{color:"#7545BB",fontWeight:600,fontSize:12,textDecoration:"underline"}},"Upgrade to Pro ↗")))))),t().createElement("div",{ref:F})),t().createElement("div",{className:"evf-ai-suggestions",style:{padding:"0 14px 10px",display:"flex",gap:6,overflowX:"auto",flexShrink:0,scrollbarWidth:"thin",scrollbarColor:"#d4c5f0 transparent"}},gv.map(e=>t().createElement("button",{key:e,onClick:()=>D(e),style:{flexShrink:0,padding:"5px 10px",borderRadius:20,border:"1px solid #e2e8f0",background:"#faf9ff",color:"#7545BB",fontSize:11.5,fontWeight:500,cursor:"pointer",whiteSpace:"nowrap",transition:"background .15s,border-color .15s"},onMouseEnter:e=>{e.currentTarget.style.background="#f0ebfa",e.currentTarget.style.borderColor="#b89ee0"},onMouseLeave:e=>{e.currentTarget.style.background="#faf9ff",e.currentTarget.style.borderColor="#e2e8f0"}},e))),t().createElement("div",{style:{padding:"10px 14px 14px",borderTop:"1px solid #f1f5f9",flexShrink:0}},t().createElement("div",{style:{display:"flex",alignItems:"flex-end",gap:8,border:"1.5px solid #e2e8f0",borderRadius:12,padding:"8px 10px 8px 14px",background:"#fff",transition:"border-color .2s"}},t().createElement("textarea",{ref:L,value:o,onChange:e=>i(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),D(o))},placeholder:"Describe what to change…",rows:1,style:{flex:1,border:"none",outline:"none",resize:"none",fontSize:13,color:"#1a1a2e",background:"transparent",lineHeight:1.5,maxHeight:80,overflowY:"auto",fontFamily:"inherit"}}),t().createElement("button",{onClick:()=>D(o),disabled:!o.trim()||l,style:{width:32,height:32,borderRadius:8,border:"none",background:o.trim()&&!l?"#7545BB":"#e6e3ee",cursor:o.trim()&&!l?"pointer":"not-allowed",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transition:"background .2s"}},t().createElement(pv,{size:15,color:o.trim()&&!l?"#fff":"#9a9a9a"}))),t().createElement("p",{style:{fontSize:11,color:"#9ca3af",margin:"6px 0 0",textAlign:"center"}},"AI edits update your form and refresh the canvas."))),t().createElement("style",null,"\n\t\t\t\t@keyframes evf-ai-dot {\n\t\t\t\t\t0%,80%,100%{transform:scale(.4);opacity:.4}\n\t\t\t\t\t40%{transform:scale(1);opacity:1}\n\t\t\t\t}\n\t\t\t\t@keyframes evf-ai-spin {\n\t\t\t\t\tto { transform: rotate(360deg); }\n\t\t\t\t}\n\t\t\t\t@keyframes evf-ai-pulse {\n\t\t\t\t\t0%,100% { opacity: .5; }\n\t\t\t\t\t50% { opacity: 1; }\n\t\t\t\t}\n\t\t\t\t.evf-ai-messages::-webkit-scrollbar,\n\t\t\t\t.evf-ai-suggestions::-webkit-scrollbar {\n\t\t\t\t\twidth: 4px;\n\t\t\t\t\theight: 4px;\n\t\t\t\t}\n\t\t\t\t.evf-ai-messages::-webkit-scrollbar-track,\n\t\t\t\t.evf-ai-suggestions::-webkit-scrollbar-track {\n\t\t\t\t\tbackground: transparent;\n\t\t\t\t}\n\t\t\t\t.evf-ai-messages::-webkit-scrollbar-thumb,\n\t\t\t\t.evf-ai-suggestions::-webkit-scrollbar-thumb {\n\t\t\t\t\tbackground: #d4c5f0;\n\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t}\n\t\t\t\t.evf-ai-messages::-webkit-scrollbar-thumb:hover,\n\t\t\t\t.evf-ai-suggestions::-webkit-scrollbar-thumb:hover {\n\t\t\t\t\tbackground: #b89ee0;\n\t\t\t\t}\n\t\t\t")):null},Cv=()=>{let e=document.getElementById("evf-builder-ai");e||(e=document.createElement("div"),e.id="evf-builder-ai",document.body.appendChild(e)),(0,nv.createRoot)(e).render(t().createElement(tv,null,t().createElement(Sv,null)))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Cv):Cv()})(),r)this[o]=r[o];r.__esModule&&Object.defineProperty(this,"__esModule",{value:!0})})();
Save
cmd:
run