@saas-ui/storybook-addon 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -536
- package/dist/ChakraProviderDecorator.js +5 -5
- package/dist/ChakraProviderDecorator.js.map +1 -1
- package/dist/ChakraProviderDecorator.mjs +6 -6
- package/dist/ChakraProviderDecorator.mjs.map +1 -1
- package/dist/preview.js +5 -5
- package/dist/preview.js.map +1 -1
- package/dist/preview.mjs +6 -6
- package/dist/preview.mjs.map +1 -1
- package/package.json +10 -10
@@ -1,6 +1,6 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var
|
3
|
+
var bt = require('react');
|
4
4
|
var react = require('@chakra-ui/react');
|
5
5
|
var previewApi = require('@storybook/preview-api');
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
@@ -23,9 +23,9 @@ function _interopNamespace(e) {
|
|
23
23
|
return Object.freeze(n);
|
24
24
|
}
|
25
25
|
|
26
|
-
var
|
26
|
+
var bt__namespace = /*#__PURE__*/_interopNamespace(bt);
|
27
27
|
|
28
|
-
var _y=Object.create;var _o=Object.defineProperty,Ty=Object.defineProperties,Py=Object.getOwnPropertyDescriptor,Ay=Object.getOwnPropertyDescriptors,Ey=Object.getOwnPropertyNames,Nn=Object.getOwnPropertySymbols,Ry=Object.getPrototypeOf,us=Object.prototype.hasOwnProperty,Bc=Object.prototype.propertyIsEnumerable;var $n=Math.pow,Dc=(e,t,r)=>t in e?_o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))us.call(t,r)&&Dc(e,r,t[r]);if(Nn)for(var r of Nn(t))Bc.call(t,r)&&Dc(e,r,t[r]);return e},v=(e,t)=>Ty(e,Ay(t));var k=(e,t)=>{var r={};for(var o in e)us.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Nn)for(var o of Nn(e))t.indexOf(o)<0&&Bc.call(e,o)&&(r[o]=e[o]);return r};var jc=(e,t)=>()=>(e&&(t=e(e=0)),t);var To=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),My=(e,t)=>{for(var r in t)_o(e,r,{get:t[r],enumerable:!0});},zc=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ey(t))!us.call(e,n)&&n!==r&&_o(e,n,{get:()=>t[n],enumerable:!(o=Py(t,n))||o.enumerable});return e};var zt=(e,t,r)=>(r=e!=null?_y(Ry(e)):{},zc(t||!e||!e.__esModule?_o(r,"default",{value:e,enumerable:!0}):r,e)),Iy=e=>zc(_o({},"__esModule",{value:!0}),e);var pu=To(H=>{var ie=typeof Symbol=="function"&&Symbol.for,hs=ie?Symbol.for("react.element"):60103,gs=ie?Symbol.for("react.portal"):60106,Gn=ie?Symbol.for("react.fragment"):60107,Un=ie?Symbol.for("react.strict_mode"):60108,Kn=ie?Symbol.for("react.profiler"):60114,qn=ie?Symbol.for("react.provider"):60109,Yn=ie?Symbol.for("react.context"):60110,ys=ie?Symbol.for("react.async_mode"):60111,Xn=ie?Symbol.for("react.concurrent_mode"):60111,Zn=ie?Symbol.for("react.forward_ref"):60112,Jn=ie?Symbol.for("react.suspense"):60113,qy=ie?Symbol.for("react.suspense_list"):60120,Qn=ie?Symbol.for("react.memo"):60115,ei=ie?Symbol.for("react.lazy"):60116,Yy=ie?Symbol.for("react.block"):60121,Xy=ie?Symbol.for("react.fundamental"):60117,Zy=ie?Symbol.for("react.responder"):60118,Jy=ie?Symbol.for("react.scope"):60119;function Ve(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hs:switch(e=e.type,e){case ys:case Xn:case Gn:case Kn:case Un:case Jn:return e;default:switch(e=e&&e.$$typeof,e){case Yn:case Zn:case ei:case Qn:case qn:return e;default:return t}}case gs:return t}}}function mu(e){return Ve(e)===Xn}H.AsyncMode=ys;H.ConcurrentMode=Xn;H.ContextConsumer=Yn;H.ContextProvider=qn;H.Element=hs;H.ForwardRef=Zn;H.Fragment=Gn;H.Lazy=ei;H.Memo=Qn;H.Portal=gs;H.Profiler=Kn;H.StrictMode=Un;H.Suspense=Jn;H.isAsyncMode=function(e){return mu(e)||Ve(e)===ys};H.isConcurrentMode=mu;H.isContextConsumer=function(e){return Ve(e)===Yn};H.isContextProvider=function(e){return Ve(e)===qn};H.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hs};H.isForwardRef=function(e){return Ve(e)===Zn};H.isFragment=function(e){return Ve(e)===Gn};H.isLazy=function(e){return Ve(e)===ei};H.isMemo=function(e){return Ve(e)===Qn};H.isPortal=function(e){return Ve(e)===gs};H.isProfiler=function(e){return Ve(e)===Kn};H.isStrictMode=function(e){return Ve(e)===Un};H.isSuspense=function(e){return Ve(e)===Jn};H.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gn||e===Xn||e===Kn||e===Un||e===Jn||e===qy||typeof e=="object"&&e!==null&&(e.$$typeof===ei||e.$$typeof===Qn||e.$$typeof===qn||e.$$typeof===Yn||e.$$typeof===Zn||e.$$typeof===Xy||e.$$typeof===Zy||e.$$typeof===Jy||e.$$typeof===Yy)};H.typeOf=Ve;});var gu=To((_5,hu)=>{hu.exports=pu();});var wu=To((T5,Cu)=>{var vs=gu(),Qy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ev={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tv={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xu={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bs={};bs[vs.ForwardRef]=tv;bs[vs.Memo]=xu;function yu(e){return vs.isMemo(e)?xu:bs[e.$$typeof]||Qy}var rv=Object.defineProperty,ov=Object.getOwnPropertyNames,vu=Object.getOwnPropertySymbols,nv=Object.getOwnPropertyDescriptor,iv=Object.getPrototypeOf,bu=Object.prototype;function Su(e,t,r){if(typeof t!="string"){if(bu){var o=iv(t);o&&o!==bu&&Su(e,o,r);}var n=ov(t);vu&&(n=n.concat(vu(t)));for(var i=yu(e),a=yu(t),s=0;s<n.length;++s){var l=n[s];if(!ev[l]&&!(r&&r[l])&&!(a&&a[l])&&!(i&&i[l])){var c=nv(t,l);try{rv(e,l,c);}catch(u){}}}}return e}Cu.exports=Su;});var Er=To((No,Tr)=>{var bv=200,Fu="__lodash_hash_undefined__",xv=800,Sv=16,Wu=9007199254740991,Hu="[object Arguments]",Cv="[object Array]",wv="[object AsyncFunction]",kv="[object Boolean]",_v="[object Date]",Tv="[object Error]",Gu="[object Function]",Pv="[object GeneratorFunction]",Av="[object Map]",Ev="[object Number]",Rv="[object Null]",Uu="[object Object]",Mv="[object Proxy]",Iv="[object RegExp]",Vv="[object Set]",Ov="[object String]",Nv="[object Undefined]",$v="[object WeakMap]",Lv="[object ArrayBuffer]",Dv="[object DataView]",Bv="[object Float32Array]",jv="[object Float64Array]",zv="[object Int8Array]",Fv="[object Int16Array]",Wv="[object Int32Array]",Hv="[object Uint8Array]",Gv="[object Uint8ClampedArray]",Uv="[object Uint16Array]",Kv="[object Uint32Array]",qv=/[\\^$.*+?()[\]{}|]/g,Yv=/^\[object .+?Constructor\]$/,Xv=/^(?:0|[1-9]\d*)$/,K={};K[Bv]=K[jv]=K[zv]=K[Fv]=K[Wv]=K[Hv]=K[Gv]=K[Uv]=K[Kv]=!0;K[Hu]=K[Cv]=K[Lv]=K[kv]=K[Dv]=K[_v]=K[Tv]=K[Gu]=K[Av]=K[Ev]=K[Uu]=K[Iv]=K[Vv]=K[Ov]=K[$v]=!1;var Ku=typeof global=="object"&&global&&global.Object===Object&&global,Zv=typeof self=="object"&&self&&self.Object===Object&&self,Do=Ku||Zv||Function("return this")(),qu=typeof No=="object"&&No&&!No.nodeType&&No,$o=qu&&typeof Tr=="object"&&Tr&&!Tr.nodeType&&Tr,Yu=$o&&$o.exports===qu,Cs=Yu&&Ku.process,Vu=function(){try{var e=$o&&$o.require&&$o.require("util").types;return e||Cs&&Cs.binding&&Cs.binding("util")}catch(t){}}(),Ou=Vu&&Vu.isTypedArray;function Jv(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Qv(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}function e0(e){return function(t){return e(t)}}function t0(e,t){return e==null?void 0:e[t]}function r0(e,t){return function(r){return e(t(r))}}var o0=Array.prototype,n0=Function.prototype,di=Object.prototype,ws=Do["__core-js_shared__"],fi=n0.toString,it=di.hasOwnProperty,Nu=function(){var e=/[^.]+$/.exec(ws&&ws.keys&&ws.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Xu=di.toString,i0=fi.call(Object),a0=RegExp("^"+fi.call(it).replace(qv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ci=Yu?Do.Buffer:void 0,$u=Do.Symbol,Lu=Do.Uint8Array,Du=ci?ci.allocUnsafe:void 0,Zu=r0(Object.getPrototypeOf,Object),Bu=Object.create,s0=di.propertyIsEnumerable,l0=o0.splice,Ht=$u?$u.toStringTag:void 0,ui=function(){try{var e=Es(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),c0=ci?ci.isBuffer:void 0,ju=Math.max,u0=Date.now,Ju=Es(Do,"Map"),Lo=Es(Object,"create"),d0=function(){function e(){}return function(t){if(!Ut(t))return {};if(Bu)return Bu(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Gt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1]);}}function f0(){this.__data__=Lo?Lo(null):{},this.size=0;}function m0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function p0(e){var t=this.__data__;if(Lo){var r=t[e];return r===Fu?void 0:r}return it.call(t,e)?t[e]:void 0}function h0(e){var t=this.__data__;return Lo?t[e]!==void 0:it.call(t,e)}function g0(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Lo&&t===void 0?Fu:t,this}Gt.prototype.clear=f0;Gt.prototype.delete=m0;Gt.prototype.get=p0;Gt.prototype.has=h0;Gt.prototype.set=g0;function at(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1]);}}function y0(){this.__data__=[],this.size=0;}function v0(e){var t=this.__data__,r=mi(t,e);if(r<0)return !1;var o=t.length-1;return r==o?t.pop():l0.call(t,r,1),--this.size,!0}function b0(e){var t=this.__data__,r=mi(t,e);return r<0?void 0:t[r][1]}function x0(e){return mi(this.__data__,e)>-1}function S0(e,t){var r=this.__data__,o=mi(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}at.prototype.clear=y0;at.prototype.delete=v0;at.prototype.get=b0;at.prototype.has=x0;at.prototype.set=S0;function Pr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1]);}}function C0(){this.size=0,this.__data__={hash:new Gt,map:new(Ju||at),string:new Gt};}function w0(e){var t=hi(this,e).delete(e);return this.size-=t?1:0,t}function k0(e){return hi(this,e).get(e)}function _0(e){return hi(this,e).has(e)}function T0(e,t){var r=hi(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}Pr.prototype.clear=C0;Pr.prototype.delete=w0;Pr.prototype.get=k0;Pr.prototype.has=_0;Pr.prototype.set=T0;function Ar(e){var t=this.__data__=new at(e);this.size=t.size;}function P0(){this.__data__=new at,this.size=0;}function A0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function E0(e){return this.__data__.get(e)}function R0(e){return this.__data__.has(e)}function M0(e,t){var r=this.__data__;if(r instanceof at){var o=r.__data__;if(!Ju||o.length<bv-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pr(o);}return r.set(e,t),this.size=r.size,this}Ar.prototype.clear=P0;Ar.prototype.delete=A0;Ar.prototype.get=E0;Ar.prototype.has=R0;Ar.prototype.set=M0;function I0(e,t){var r=Ps(e),o=!r&&Ts(e),n=!r&&!o&&rd(e),i=!r&&!o&&!n&&nd(e),a=r||o||n||i,s=a?Qv(e.length,String):[],l=s.length;for(var c in e)(t||it.call(e,c))&&!(a&&(c=="length"||n&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ed(c,l)))&&s.push(c);return s}function ks(e,t,r){(r!==void 0&&!gi(e[t],r)||r===void 0&&!(t in e))&&As(e,t,r);}function V0(e,t,r){var o=e[t];(!(it.call(e,t)&&gi(o,r))||r===void 0&&!(t in e))&&As(e,t,r);}function mi(e,t){for(var r=e.length;r--;)if(gi(e[r][0],t))return r;return -1}function As(e,t,r){t=="__proto__"&&ui?ui(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r;}var O0=K0();function pi(e){return e==null?e===void 0?Nv:Rv:Ht&&Ht in Object(e)?q0(e):eb(e)}function zu(e){return Bo(e)&&pi(e)==Hu}function N0(e){if(!Ut(e)||J0(e))return !1;var t=Ms(e)?a0:Yv;return t.test(nb(e))}function $0(e){return Bo(e)&&od(e.length)&&!!K[pi(e)]}function L0(e){if(!Ut(e))return Q0(e);var t=td(e),r=[];for(var o in e)o=="constructor"&&(t||!it.call(e,o))||r.push(o);return r}function Qu(e,t,r,o,n){e!==t&&O0(t,function(i,a){if(n||(n=new Ar),Ut(i))D0(e,t,a,r,Qu,o,n);else {var s=o?o(_s(e,a),i,a+"",e,t,n):void 0;s===void 0&&(s=i),ks(e,a,s);}},id);}function D0(e,t,r,o,n,i,a){var s=_s(e,r),l=_s(t,r),c=a.get(l);if(c){ks(e,r,c);return}var u=i?i(s,l,r+"",e,t,a):void 0,d=u===void 0;if(d){var m=Ps(l),p=!m&&rd(l),g=!m&&!p&&nd(l);u=l,m||p||g?Ps(s)?u=s:ib(s)?u=H0(s):p?(d=!1,u=z0(l,!0)):g?(d=!1,u=W0(l,!0)):u=[]:ab(l)||Ts(l)?(u=s,Ts(s)?u=sb(s):(!Ut(s)||Ms(s))&&(u=Y0(l))):d=!1;}d&&(a.set(l,u),n(u,l,o,i,a),a.delete(l)),ks(e,r,u);}function B0(e,t){return rb(tb(e,t,ad),e+"")}var j0=ui?function(e,t){return ui(e,"toString",{configurable:!0,enumerable:!1,value:cb(t),writable:!0})}:ad;function z0(e,t){if(t)return e.slice();var r=e.length,o=Du?Du(r):new e.constructor(r);return e.copy(o),o}function F0(e){var t=new e.constructor(e.byteLength);return new Lu(t).set(new Lu(e)),t}function W0(e,t){var r=t?F0(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function H0(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}function G0(e,t,r,o){var n=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=o?o(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),n?As(r,s,l):V0(r,s,l);}return r}function U0(e){return B0(function(t,r){var o=-1,n=r.length,i=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,a&&X0(r[0],r[1],a)&&(i=n<3?void 0:i,n=1),t=Object(t);++o<n;){var s=r[o];s&&e(t,s,o,i);}return t})}function K0(e){return function(t,r,o){for(var n=-1,i=Object(t),a=o(t),s=a.length;s--;){var l=a[e?s:++n];if(r(i[l],l,i)===!1)break}return t}}function hi(e,t){var r=e.__data__;return Z0(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Es(e,t){var r=t0(e,t);return N0(r)?r:void 0}function q0(e){var t=it.call(e,Ht),r=e[Ht];try{e[Ht]=void 0;var o=!0;}catch(i){}var n=Xu.call(e);return o&&(t?e[Ht]=r:delete e[Ht]),n}function Y0(e){return typeof e.constructor=="function"&&!td(e)?d0(Zu(e)):{}}function ed(e,t){var r=typeof e;return t=t==null?Wu:t,!!t&&(r=="number"||r!="symbol"&&Xv.test(e))&&e>-1&&e%1==0&&e<t}function X0(e,t,r){if(!Ut(r))return !1;var o=typeof t;return (o=="number"?Rs(r)&&ed(t,r.length):o=="string"&&t in r)?gi(r[t],e):!1}function Z0(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function J0(e){return !!Nu&&Nu in e}function td(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||di;return e===r}function Q0(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}function eb(e){return Xu.call(e)}function tb(e,t,r){return t=ju(t===void 0?e.length-1:t,0),function(){for(var o=arguments,n=-1,i=ju(o.length-t,0),a=Array(i);++n<i;)a[n]=o[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=o[n];return s[t]=r(a),Jv(e,this,s)}}function _s(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var rb=ob(j0);function ob(e){var t=0,r=0;return function(){var o=u0(),n=Sv-(o-r);if(r=o,n>0){if(++t>=xv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function nb(e){if(e!=null){try{return fi.call(e)}catch(t){}try{return e+""}catch(t){}}return ""}function gi(e,t){return e===t||e!==e&&t!==t}var Ts=zu(function(){return arguments}())?zu:function(e){return Bo(e)&&it.call(e,"callee")&&!s0.call(e,"callee")},Ps=Array.isArray;function Rs(e){return e!=null&&od(e.length)&&!Ms(e)}function ib(e){return Bo(e)&&Rs(e)}var rd=c0||ub;function Ms(e){if(!Ut(e))return !1;var t=pi(e);return t==Gu||t==Pv||t==wv||t==Mv}function od(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wu}function Ut(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Bo(e){return e!=null&&typeof e=="object"}function ab(e){if(!Bo(e)||pi(e)!=Uu)return !1;var t=Zu(e);if(t===null)return !0;var r=it.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&fi.call(r)==i0}var nd=Ou?e0(Ou):$0;function sb(e){return G0(e,id(e))}function id(e){return Rs(e)?I0(e,!0):L0(e)}var lb=U0(function(e,t,r,o){Qu(e,t,r,o);});function cb(e){return function(){return e}}function ad(e){return e}function ub(){return !1}Tr.exports=lb;});var Nd=To((JV,Od)=>{var jx=typeof Element!="undefined",zx=typeof Map=="function",Fx=typeof Set=="function",Wx=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function _i(e,t){if(e===t)return !0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return !1;var r,o,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return !1;for(o=r;o--!==0;)if(!_i(e[o],t[o]))return !1;return !0}var i;if(zx&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return !1;for(i=e.entries();!(o=i.next()).done;)if(!t.has(o.value[0]))return !1;for(i=e.entries();!(o=i.next()).done;)if(!_i(o.value[1],t.get(o.value[0])))return !1;return !0}if(Fx&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return !1;for(i=e.entries();!(o=i.next()).done;)if(!t.has(o.value[0]))return !1;return !0}if(Wx&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return !1;for(o=r;o--!==0;)if(e[o]!==t[o])return !1;return !0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return !1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return !1;if(jx&&e instanceof Element)return !1;for(o=r;o--!==0;)if(!((n[o]==="_owner"||n[o]==="__v"||n[o]==="__o")&&e.$$typeof)&&!_i(e[n[o]],t[n[o]]))return !1;return !0}return e!==e&&t!==t}Od.exports=function(t,r){try{return _i(t,r)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};});function Fw(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var rm,om=jc(()=>{rm=Fw;});var nm={};My(nm,{default:()=>Gw});var Ww,Hw,Gw,im=jc(()=>{om();Ww=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,Hw=rm(function(e){return Ww.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Gw=Hw;});var pr="@saas-ui/storybook-addon2",Fc=`${pr}/direction-tool`,nt={TOGGLE_COLOR_MODE:`${pr}/toggleColorMode`,TOGGLE_DIRECTION:`${pr}/toggleDirection`,SET_THEME:`${pr}/setTheme`};function Wc(){let{setColorMode:e}=react.useColorMode();return ht.useEffect(()=>{let t=previewApi.addons.getChannel(),r=o=>e(o);return t.on(nt.TOGGLE_COLOR_MODE,r),()=>{t.removeListener(nt.TOGGLE_COLOR_MODE,r);}},[e]),null}var Gc=(e="ltr")=>{let[t,r]=ht.useState(e.toLowerCase());return ht.useEffect(()=>{document.documentElement.dir=t;},[t]),ht.useEffect(()=>{let o=previewApi.addons.getChannel(),n=i=>r(i);return o.on(nt.TOGGLE_DIRECTION,n),()=>{o.removeListener(nt.TOGGLE_DIRECTION,n);}},[r]),t};function Dy(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]}function By(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Uc=function(){function e(r){var o=this;this._insertTag=function(n){var i;o.tags.length===0?o.insertionPoint?i=o.insertionPoint.nextSibling:o.prepend?i=o.container.firstChild:i=o.before:i=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,i),o.tags.push(n);},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag);},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(By(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Dy(n);try{a.insertRule(o,a.cssRules.length);}catch(s){}}else n.appendChild(document.createTextNode(o));this.ctr++;},t.flush=function(){this.tags.forEach(function(o){return o.parentNode&&o.parentNode.removeChild(o)}),this.tags=[],this.ctr=0;},e}();var fe="-ms-",Po="-moz-",z="-webkit-",Ln="comm",hr="rule",gr="decl";var Kc="@import";var Dn="@keyframes";var qc="@layer";var Yc=Math.abs,Ft=String.fromCharCode,Xc=Object.assign;function Zc(e,t){return re(e,0)^45?(((t<<2^re(e,0))<<2^re(e,1))<<2^re(e,2))<<2^re(e,3):0}function Bn(e){return e.trim()}function ds(e,t){return (e=t.exec(e))?e[0]:e}function B(e,t,r){return e.replace(t,r)}function Ao(e,t){return e.indexOf(t)}function re(e,t){return e.charCodeAt(t)|0}function vt(e,t,r){return e.slice(t,r)}function ye(e){return e.length}function yr(e){return e.length}function vr(e,t){return t.push(e),e}function fs(e,t){return e.map(t).join("")}var jn=1,br=1,Jc=0,ve=0,oe=0,Sr="";function Eo(e,t,r,o,n,i,a){return {value:e,root:t,parent:r,type:o,props:n,children:i,line:jn,column:br,length:a,return:""}}function Cr(e,t){return Xc(Eo("",null,null,"",null,null,0),e,{length:-e.length},t)}function Qc(){return oe}function eu(){return oe=ve>0?re(Sr,--ve):0,br--,oe===10&&(br=1,jn--),oe}function be(){return oe=ve<Jc?re(Sr,ve++):0,br++,oe===10&&(br=1,jn++),oe}function De(){return re(Sr,ve)}function Ro(){return ve}function wr(e,t){return vt(Sr,e,t)}function xr(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 zn(e){return jn=br=1,Jc=ye(Sr=e),ve=0,[]}function Fn(e){return Sr="",e}function kr(e){return Bn(wr(ve-1,ms(e===91?e+2:e===40?e+1:e)))}function tu(e){for(;(oe=De())&&oe<33;)be();return xr(e)>2||xr(oe)>3?"":" "}function ru(e,t){for(;--t&&be()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return wr(e,Ro()+(t<6&&De()==32&&be()==32))}function ms(e){for(;be();)switch(oe){case e:return ve;case 34:case 39:e!==34&&e!==39&&ms(oe);break;case 40:e===41&&ms(e);break;case 92:be();break}return ve}function ou(e,t){for(;be()&&e+oe!==47+10;)if(e+oe===42+42&&De()===47)break;return "/*"+wr(t,ve-1)+"*"+Ft(e===47?e:be())}function nu(e){for(;!xr(De());)be();return wr(e,ve)}function su(e){return Fn(Wn("",null,null,null,[""],e=zn(e),0,[0],e))}function Wn(e,t,r,o,n,i,a,s,l){for(var c=0,u=0,d=a,m=0,p=0,g=0,y=1,b=1,x=1,S=0,C="",w=n,P=i,E=o,A=C;b;)switch(g=S,S=be()){case 40:if(g!=108&&re(A,d-1)==58){Ao(A+=B(kr(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=kr(S);break;case 9:case 10:case 13:case 32:A+=tu(g);break;case 92:A+=ru(Ro()-1,7);continue;case 47:switch(De()){case 42:case 47:vr(jy(ou(be(),Ro()),t,r),l);break;default:A+="/";}break;case 123*y:s[c++]=ye(A)*x;case 125*y:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+u:x==-1&&(A=B(A,/\f/g,"")),p>0&&ye(A)-d&&vr(p>32?au(A+";",o,r,d-1):au(B(A," ","")+";",o,r,d-2),l);break;case 59:A+=";";default:if(vr(E=iu(A,t,r,c,u,n,s,C,w=[],P=[],d),i),S===123)if(u===0)Wn(A,t,E,E,w,i,d,s,P);else switch(m===99&&re(A,3)===110?100:m){case 100:case 108:case 109:case 115:Wn(e,E,E,o&&vr(iu(e,E,E,0,0,n,s,C,n,w=[],d),P),n,P,d,s,o?w:P);break;default:Wn(A,E,E,E,[""],P,0,s,P);}}c=u=p=0,y=x=1,C=A="",d=a;break;case 58:d=1+ye(A),p=g;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&eu()==125)continue}switch(A+=Ft(S),S*y){case 38:x=u>0?1:(A+="\f",-1);break;case 44:s[c++]=(ye(A)-1)*x,x=1;break;case 64:De()===45&&(A+=kr(be())),m=De(),u=d=ye(C=A+=nu(Ro())),S++;break;case 45:g===45&&ye(A)==2&&(y=0);}}return i}function iu(e,t,r,o,n,i,a,s,l,c,u){for(var d=n-1,m=n===0?i:[""],p=yr(m),g=0,y=0,b=0;g<o;++g)for(var x=0,S=vt(e,d+1,d=Yc(y=a[g])),C=e;x<p;++x)(C=Bn(y>0?m[x]+" "+S:B(S,/&\f/g,m[x])))&&(l[b++]=C);return Eo(e,t,r,n===0?hr:s,l,c,u)}function jy(e,t,r){return Eo(e,t,r,Ln,Ft(Qc()),vt(e,2,-2),0)}function au(e,t,r,o){return Eo(e,t,r,gr,vt(e,0,o),vt(e,o+1,-1),o)}function Wt(e,t){for(var r="",o=yr(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function lu(e,t,r,o){switch(e.type){case qc:if(e.children.length)break;case Kc:case gr:return e.return=e.return||e.value;case Ln:return "";case Dn:return e.return=e.value+"{"+Wt(e.children,o)+"}";case hr:e.value=e.props.join(",");}return ye(r=Wt(e.children,o))?e.return=e.value+"{"+r+"}":""}function cu(e){var t=yr(e);return function(r,o,n,i){for(var a="",s=0;s<t;s++)a+=e[s](r,o,n,i)||"";return a}}function uu(e){return function(t){t.root||(t=t.return)&&e(t);}}function Hn(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var zy=function(t,r,o){for(var n=0,i=0;n=i,i=De(),n===38&&i===12&&(r[o]=1),!xr(i);)be();return wr(t,ve)},Fy=function(t,r){var o=-1,n=44;do switch(xr(n)){case 0:n===38&&De()===12&&(r[o]=1),t[o]+=zy(ve-1,r,o);break;case 2:t[o]+=kr(n);break;case 4:if(n===44){t[++o]=De()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Ft(n);}while(n=be());return t},Wy=function(t,r){return Fn(Fy(zn(t),r))},du=new WeakMap,Hy=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!du.get(o))&&!n){du.set(t,!0);for(var i=[],a=Wy(r,i),s=o.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l];}}},Gy=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="");}};function fu(e,t){switch(Zc(e,t)){case 5103:return z+"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 z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+Po+e+fe+e+e;case 6828:case 4268:return z+e+fe+e+e;case 6165:return z+e+fe+"flex-"+e+e;case 5187:return z+e+B(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+fe+"flex-$1$2")+e;case 5443:return z+e+fe+"flex-item-"+B(e,/flex-|-self/,"")+e;case 4675:return z+e+fe+"flex-line-pack"+B(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+fe+B(e,"shrink","negative")+e;case 5292:return z+e+fe+B(e,"basis","preferred-size")+e;case 6060:return z+"box-"+B(e,"-grow","")+z+e+fe+B(e,"grow","positive")+e;case 4554:return z+B(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,z+"$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(ye(e)-1-t>6)switch(re(e,t+1)){case 109:if(re(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+Po+(re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Ao(e,"stretch")?fu(B(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(re(e,t+1)!==115)break;case 6444:switch(re(e,ye(e)-3-(~Ao(e,"!important")&&10))){case 107:return B(e,":",":"+z)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(re(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+fe+"$2box$3")+e}break;case 5936:switch(re(e,t+11)){case 114:return z+e+fe+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+fe+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+fe+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+fe+e+e}return e}var Uy=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case gr:t.return=fu(t.value,t.length);break;case Dn:return Wt([Cr(t,{value:B(t.value,"@","@"+z)})],n);case hr:if(t.length)return fs(t.props,function(i){switch(ds(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wt([Cr(t,{props:[B(i,/:(read-\w+)/,":"+Po+"$1")]})],n);case"::placeholder":return Wt([Cr(t,{props:[B(i,/:(plac\w+)/,":"+z+"input-$1")]}),Cr(t,{props:[B(i,/:(plac\w+)/,":"+Po+"$1")]}),Cr(t,{props:[B(i,/:(plac\w+)/,fe+"input-$1")]})],n)}return ""})}},Ky=[Uy],ps=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""));});}var n=t.stylisPlugins||Ky,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),x=1;x<b.length;x++)i[b[x]]=!0;s.push(y);});var l,c=[Hy,Gy];{var u,d=[lu,uu(function(y){u.insert(y);})],m=cu(c.concat(n,d)),p=function(b){return Wt(su(b),m)};l=function(b,x,S,C){u=S,p(b?b+"{"+x.styles+"}":x.styles),C&&(g.inserted[x.name]=!0);};}var g={key:r,sheet:new Uc({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return g.sheet.hydrate(s),g};function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);}return e},_r.apply(this,arguments)}var av=!0;function ti(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):o+=n+" ";}),o}var Mo=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||av===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles);},ri=function(t,r,o){Mo(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+n:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function ku(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var _u={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,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var sv=/[A-Z]|^ms/g,lv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Eu=function(t){return t.charCodeAt(1)===45},Tu=function(t){return t!=null&&typeof t!="boolean"},xs=Hn(function(e){return Eu(e)?e:e.replace(sv,"-$&").toLowerCase()}),Pu=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(lv,function(o,n,i){return Ye={name:n,styles:i,next:Ye},n})}return _u[t]!==1&&!Eu(t)&&typeof r=="number"&&r!==0?r+"px":r};function Io(e,t,r){if(r==null)return "";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return "";case"object":{if(r.anim===1)return Ye={name:r.name,styles:r.styles,next:Ye},r.name;if(r.styles!==void 0){var o=r.next;if(o!==void 0)for(;o!==void 0;)Ye={name:o.name,styles:o.styles,next:Ye},o=o.next;var n=r.styles+";";return n}return cv(e,t,r)}case"function":{if(e!==void 0){var i=Ye,a=r(e);return Ye=i,Io(e,t,a)}break}}if(t==null)return r;var c=t[r];return c!==void 0?c:r}function cv(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=Io(e,t,r[n])+";";else for(var i in r){var a=r[i];if(typeof a!="object")t!=null&&t[a]!==void 0?o+=i+"{"+t[a]+"}":Tu(a)&&(o+=xs(i)+":"+Pu(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Tu(a[s])&&(o+=xs(i)+":"+Pu(i,a[s])+";");else {var l=Io(e,t,a);switch(i){case"animation":case"animationName":{o+=xs(i)+":"+l+";";break}default:o+=i+"{"+l+"}";}}}return o}var Au=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Ye,oi=function(t,r,o){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,i="";Ye=void 0;var a=t[0];a==null||a.raw===void 0?(n=!1,i+=Io(o,r,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=Io(o,r,t[s]),n&&(i+=a[s]);Au.lastIndex=0;for(var c="",u;(u=Au.exec(i))!==null;)c+="-"+u[1];var d=ku(i)+c;return {name:d,styles:i,next:Ye}};var uv=function(t){return t()},dv=ht__namespace.useInsertionEffect?ht__namespace.useInsertionEffect:!1,ii=dv||uv;var ai=ht__namespace.createContext(typeof HTMLElement!="undefined"?ps({key:"css"}):null);ai.Provider;var si=function(t){return ht.forwardRef(function(r,o){var n=ht.useContext(ai);return t(r,n,o)})};var Vo=ht__namespace.createContext({});zt(wu());function Mu(){let e=ht.useContext(Vo);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var Ss=ht.createContext({});Ss.displayName="ColorModeContext";function Oo(){let e=ht.useContext(Ss);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Iu(){let e=Oo(),t=Mu();return v(f({},e),{theme:t})}function Be(e){let t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Xe(e,...t){return vv(e)?e(...t):e}var vv=e=>typeof e=="function";zt(Er(),1);var zo=zt(Er(),1),yd=zt(Er(),1);var Si=zt(Er(),1);var db=e=>/!(important)?$/.test(e),sd=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,fb=(e,t)=>r=>{let o=String(t),n=db(o),i=sd(o),a=e?`${e}.${i}`:i,s=Be(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=sd(s),n?`${s} !important`:s};function Ds(e){let{scale:t,transform:r,compose:o}=e;return (i,a)=>{var s;let l=fb(t,i)(a),c=(s=r==null?void 0:r(l,a))!=null?s:l;return o&&(c=o(c,a)),c}}var yi=(...e)=>t=>e.reduce((r,o)=>o(r),t);function je(e,t){return r=>{let o={property:r,scale:e};return o.transform=Ds({scale:e,transform:t}),o}}var mb=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function pb(e){let{property:t,scale:r,transform:o}=e;return {scale:r,property:mb(t),transform:r?Ds({scale:r,compose:o}):o}}var md=["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))"];function hb(){return ["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...md].join(" ")}function gb(){return ["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...md].join(" ")}var yb={"--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(" ")},vb={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,/*!*/ /*!*/)"};function bb(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(", ")}}var xb={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Vs={"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"},Sb=new Set(Object.values(Vs)),Os=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Cb=e=>e.trim();function wb(e,t){if(e==null||Os.has(e))return e;if(!(Ns(e)||Os.has(e)))return `url('${e}')`;let n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=n==null?void 0:n[1],a=n==null?void 0:n[2];if(!i||!a)return e;let s=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=a.split(",").map(Cb).filter(Boolean);if((c==null?void 0:c.length)===0)return e;let u=l in Vs?Vs[l]:l;c.unshift(u);let d=c.map(m=>{if(Sb.has(m))return m;let p=m.indexOf(" "),[g,y]=p!==-1?[m.substr(0,p),m.substr(p+1)]:[m],b=Ns(y)?y:y&&y.split(" "),x=`colors.${g}`,S=x in t.__cssMap?t.__cssMap[x].varRef:g;return b?[S,...Array.isArray(b)?b:[b]].join(" "):S});return `${s}(${d.join(", ")})`}var Ns=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),kb=(e,t)=>wb(e,t!=null?t:{});function _b(e){return /^var\(--.+\)$/.test(e)}var Tb=e=>{let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return {unitless:!r,value:t,unit:r}},Ze=e=>t=>`${e}(${t})`,$={filter(e){return e!=="auto"?e:yb},backdropFilter(e){return e!=="auto"?e:vb},ring(e){return bb($.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?hb():e==="auto-gpu"?gb():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;let{unitless:t}=Tb(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){let r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(_b(e)||e==null)return e;let t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:kb,blur:Ze("blur"),opacity:Ze("opacity"),brightness:Ze("brightness"),contrast:Ze("contrast"),dropShadow:Ze("drop-shadow"),grayscale:Ze("grayscale"),hueRotate:e=>Ze("hue-rotate")($.degree(e)),invert:Ze("invert"),saturate:Ze("saturate"),sepia:Ze("sepia"),bgImage(e){return e==null||Ns(e)||Os.has(e)?e:`url(${e})`},outline(e){let t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:r,divide:o}=(t=xb[e])!=null?t:{},n={flexDirection:e};return r&&(n[r]=1),o&&(n[o]=1),n}},h={borderWidths:je("borderWidths"),borderStyles:je("borderStyles"),colors:je("colors"),borders:je("borders"),gradients:je("gradients",$.gradient),radii:je("radii",$.px),space:je("space",yi($.vh,$.px)),spaceT:je("space",yi($.vh,$.px)),degreeT(e){return {property:e,transform:$.degree}},prop(e,t,r){return f({property:e,scale:t},t&&{transform:Ds({scale:t,transform:r})})},propT(e,t){return {property:e,transform:t}},sizes:je("sizes",yi($.vh,$.px)),sizesT:je("sizes",yi($.vh,$.fraction)),shadows:je("shadows"),logical:pb,blur:je("blur",$.blur)},bi={background:h.colors("background"),backgroundColor:h.colors("backgroundColor"),backgroundImage:h.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:$.bgClip},bgSize:h.prop("backgroundSize"),bgPosition:h.prop("backgroundPosition"),bg:h.colors("background"),bgColor:h.colors("backgroundColor"),bgPos:h.prop("backgroundPosition"),bgRepeat:h.prop("backgroundRepeat"),bgAttachment:h.prop("backgroundAttachment"),bgGradient:h.gradients("backgroundImage"),bgClip:{transform:$.bgClip}};Object.assign(bi,{bgImage:bi.backgroundImage,bgImg:bi.backgroundImage});var F={border:h.borders("border"),borderWidth:h.borderWidths("borderWidth"),borderStyle:h.borderStyles("borderStyle"),borderColor:h.colors("borderColor"),borderRadius:h.radii("borderRadius"),borderTop:h.borders("borderTop"),borderBlockStart:h.borders("borderBlockStart"),borderTopLeftRadius:h.radii("borderTopLeftRadius"),borderStartStartRadius:h.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:h.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:h.radii("borderTopRightRadius"),borderStartEndRadius:h.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:h.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:h.borders("borderRight"),borderInlineEnd:h.borders("borderInlineEnd"),borderBottom:h.borders("borderBottom"),borderBlockEnd:h.borders("borderBlockEnd"),borderBottomLeftRadius:h.radii("borderBottomLeftRadius"),borderBottomRightRadius:h.radii("borderBottomRightRadius"),borderLeft:h.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:h.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:h.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:h.borders(["borderLeft","borderRight"]),borderInline:h.borders("borderInline"),borderY:h.borders(["borderTop","borderBottom"]),borderBlock:h.borders("borderBlock"),borderTopWidth:h.borderWidths("borderTopWidth"),borderBlockStartWidth:h.borderWidths("borderBlockStartWidth"),borderTopColor:h.colors("borderTopColor"),borderBlockStartColor:h.colors("borderBlockStartColor"),borderTopStyle:h.borderStyles("borderTopStyle"),borderBlockStartStyle:h.borderStyles("borderBlockStartStyle"),borderBottomWidth:h.borderWidths("borderBottomWidth"),borderBlockEndWidth:h.borderWidths("borderBlockEndWidth"),borderBottomColor:h.colors("borderBottomColor"),borderBlockEndColor:h.colors("borderBlockEndColor"),borderBottomStyle:h.borderStyles("borderBottomStyle"),borderBlockEndStyle:h.borderStyles("borderBlockEndStyle"),borderLeftWidth:h.borderWidths("borderLeftWidth"),borderInlineStartWidth:h.borderWidths("borderInlineStartWidth"),borderLeftColor:h.colors("borderLeftColor"),borderInlineStartColor:h.colors("borderInlineStartColor"),borderLeftStyle:h.borderStyles("borderLeftStyle"),borderInlineStartStyle:h.borderStyles("borderInlineStartStyle"),borderRightWidth:h.borderWidths("borderRightWidth"),borderInlineEndWidth:h.borderWidths("borderInlineEndWidth"),borderRightColor:h.colors("borderRightColor"),borderInlineEndColor:h.colors("borderInlineEndColor"),borderRightStyle:h.borderStyles("borderRightStyle"),borderInlineEndStyle:h.borderStyles("borderInlineEndStyle"),borderTopRadius:h.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:h.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:h.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:h.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(F,{rounded:F.borderRadius,roundedTop:F.borderTopRadius,roundedTopLeft:F.borderTopLeftRadius,roundedTopRight:F.borderTopRightRadius,roundedTopStart:F.borderStartStartRadius,roundedTopEnd:F.borderStartEndRadius,roundedBottom:F.borderBottomRadius,roundedBottomLeft:F.borderBottomLeftRadius,roundedBottomRight:F.borderBottomRightRadius,roundedBottomStart:F.borderEndStartRadius,roundedBottomEnd:F.borderEndEndRadius,roundedLeft:F.borderLeftRadius,roundedRight:F.borderRightRadius,roundedStart:F.borderInlineStartRadius,roundedEnd:F.borderInlineEndRadius,borderStart:F.borderInlineStart,borderEnd:F.borderInlineEnd,borderTopStartRadius:F.borderStartStartRadius,borderTopEndRadius:F.borderStartEndRadius,borderBottomStartRadius:F.borderEndStartRadius,borderBottomEndRadius:F.borderEndEndRadius,borderStartRadius:F.borderInlineStartRadius,borderEndRadius:F.borderInlineEndRadius,borderStartWidth:F.borderInlineStartWidth,borderEndWidth:F.borderInlineEndWidth,borderStartColor:F.borderInlineStartColor,borderEndColor:F.borderInlineEndColor,borderStartStyle:F.borderInlineStartStyle,borderEndStyle:F.borderInlineEndStyle});var Pb={color:h.colors("color"),textColor:h.colors("color"),fill:h.colors("fill"),stroke:h.colors("stroke")},$s={boxShadow:h.shadows("boxShadow"),mixBlendMode:!0,blendMode:h.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:h.prop("backgroundBlendMode"),opacity:!0};Object.assign($s,{shadow:$s.boxShadow});var Ab={filter:{transform:$.filter},blur:h.blur("--chakra-blur"),brightness:h.propT("--chakra-brightness",$.brightness),contrast:h.propT("--chakra-contrast",$.contrast),hueRotate:h.propT("--chakra-hue-rotate",$.hueRotate),invert:h.propT("--chakra-invert",$.invert),saturate:h.propT("--chakra-saturate",$.saturate),dropShadow:h.propT("--chakra-drop-shadow",$.dropShadow),backdropFilter:{transform:$.backdropFilter},backdropBlur:h.blur("--chakra-backdrop-blur"),backdropBrightness:h.propT("--chakra-backdrop-brightness",$.brightness),backdropContrast:h.propT("--chakra-backdrop-contrast",$.contrast),backdropHueRotate:h.propT("--chakra-backdrop-hue-rotate",$.hueRotate),backdropInvert:h.propT("--chakra-backdrop-invert",$.invert),backdropSaturate:h.propT("--chakra-backdrop-saturate",$.saturate)},xi={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:$.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:h.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:h.space("gap"),rowGap:h.space("rowGap"),columnGap:h.space("columnGap")};Object.assign(xi,{flexDir:xi.flexDirection});var pd={gridGap:h.space("gridGap"),gridColumnGap:h.space("gridColumnGap"),gridRowGap:h.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},Eb={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:$.outline},outlineOffset:!0,outlineColor:h.colors("outlineColor")},ze={width:h.sizesT("width"),inlineSize:h.sizesT("inlineSize"),height:h.sizes("height"),blockSize:h.sizes("blockSize"),boxSize:h.sizes(["width","height"]),minWidth:h.sizes("minWidth"),minInlineSize:h.sizes("minInlineSize"),minHeight:h.sizes("minHeight"),minBlockSize:h.sizes("minBlockSize"),maxWidth:h.sizes("maxWidth"),maxInlineSize:h.sizes("maxInlineSize"),maxHeight:h.sizes("maxHeight"),maxBlockSize:h.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 r,o,n;return {[`@media screen and (min-width: ${(n=(o=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:o.minW)!=null?n:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,o,n;return {[`@media screen and (max-width: ${(n=(o=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:o._minW)!=null?n:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:h.propT("float",$.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ze,{w:ze.width,h:ze.height,minW:ze.minWidth,maxW:ze.maxWidth,minH:ze.minHeight,maxH:ze.maxHeight,overscroll:ze.overscrollBehavior,overscrollX:ze.overscrollBehaviorX,overscrollY:ze.overscrollBehaviorY});var Rb={listStyleType:!0,listStylePosition:!0,listStylePos:h.prop("listStylePosition"),listStyleImage:!0,listStyleImg:h.prop("listStyleImage")};function Mb(e,t,r,o){let n=typeof t=="string"?t.split("."):[t];for(o=0;o<n.length&&e;o+=1)e=e[n[o]];return e===void 0?r:e}var Ib=e=>{let t=new WeakMap;return (o,n,i,a)=>{if(typeof o=="undefined")return e(o,n,i);t.has(o)||t.set(o,new Map);let s=t.get(o);if(s.has(n))return s.get(n);let l=e(o,n,i,a);return s.set(n,l),l}},Vb=Ib(Mb),Ob={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Nb={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Is=(e,t,r)=>{let o={},n=Vb(e,t,{});for(let i in n)i in r&&r[i]!=null||(o[i]=n[i]);return o},$b={srOnly:{transform(e){return e===!0?Ob:e==="focusable"?Nb:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Is(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Is(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Is(t,e,r)}},Fo={position:!0,pos:h.prop("position"),zIndex:h.prop("zIndex","zIndices"),inset:h.spaceT("inset"),insetX:h.spaceT(["left","right"]),insetInline:h.spaceT("insetInline"),insetY:h.spaceT(["top","bottom"]),insetBlock:h.spaceT("insetBlock"),top:h.spaceT("top"),insetBlockStart:h.spaceT("insetBlockStart"),bottom:h.spaceT("bottom"),insetBlockEnd:h.spaceT("insetBlockEnd"),left:h.spaceT("left"),insetInlineStart:h.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:h.spaceT("right"),insetInlineEnd:h.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Fo,{insetStart:Fo.insetInlineStart,insetEnd:Fo.insetInlineEnd});var Lb={ring:{transform:$.ring},ringColor:h.colors("--chakra-ring-color"),ringOffset:h.prop("--chakra-ring-offset-width"),ringOffsetColor:h.colors("--chakra-ring-offset-color"),ringInset:h.prop("--chakra-ring-inset")},q={margin:h.spaceT("margin"),marginTop:h.spaceT("marginTop"),marginBlockStart:h.spaceT("marginBlockStart"),marginRight:h.spaceT("marginRight"),marginInlineEnd:h.spaceT("marginInlineEnd"),marginBottom:h.spaceT("marginBottom"),marginBlockEnd:h.spaceT("marginBlockEnd"),marginLeft:h.spaceT("marginLeft"),marginInlineStart:h.spaceT("marginInlineStart"),marginX:h.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:h.spaceT("marginInline"),marginY:h.spaceT(["marginTop","marginBottom"]),marginBlock:h.spaceT("marginBlock"),padding:h.space("padding"),paddingTop:h.space("paddingTop"),paddingBlockStart:h.space("paddingBlockStart"),paddingRight:h.space("paddingRight"),paddingBottom:h.space("paddingBottom"),paddingBlockEnd:h.space("paddingBlockEnd"),paddingLeft:h.space("paddingLeft"),paddingInlineStart:h.space("paddingInlineStart"),paddingInlineEnd:h.space("paddingInlineEnd"),paddingX:h.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:h.space("paddingInline"),paddingY:h.space(["paddingTop","paddingBottom"]),paddingBlock:h.space("paddingBlock")};Object.assign(q,{m:q.margin,mt:q.marginTop,mr:q.marginRight,me:q.marginInlineEnd,marginEnd:q.marginInlineEnd,mb:q.marginBottom,ml:q.marginLeft,ms:q.marginInlineStart,marginStart:q.marginInlineStart,mx:q.marginX,my:q.marginY,p:q.padding,pt:q.paddingTop,py:q.paddingY,px:q.paddingX,pb:q.paddingBottom,pl:q.paddingLeft,ps:q.paddingInlineStart,paddingStart:q.paddingInlineStart,pr:q.paddingRight,pe:q.paddingInlineEnd,paddingEnd:q.paddingInlineEnd});var Db={textDecorationColor:h.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:h.shadows("textShadow")},Bb={clipPath:!0,transform:h.propT("transform",$.transform),transformOrigin:!0,translateX:h.spaceT("--chakra-translate-x"),translateY:h.spaceT("--chakra-translate-y"),skewX:h.degreeT("--chakra-skew-x"),skewY:h.degreeT("--chakra-skew-y"),scaleX:h.prop("--chakra-scale-x"),scaleY:h.prop("--chakra-scale-y"),scale:h.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:h.degreeT("--chakra-rotate")},jb={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:h.prop("transitionDuration","transition.duration"),transitionProperty:h.prop("transitionProperty","transition.property"),transitionTimingFunction:h.prop("transitionTimingFunction","transition.easing")},zb={fontFamily:h.prop("fontFamily","fonts"),fontSize:h.prop("fontSize","fontSizes",$.px),fontWeight:h.prop("fontWeight","fontWeights"),lineHeight:h.prop("lineHeight","lineHeights"),letterSpacing:h.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)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"}},Fb={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:h.spaceT("scrollMargin"),scrollMarginTop:h.spaceT("scrollMarginTop"),scrollMarginBottom:h.spaceT("scrollMarginBottom"),scrollMarginLeft:h.spaceT("scrollMarginLeft"),scrollMarginRight:h.spaceT("scrollMarginRight"),scrollMarginX:h.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:h.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:h.spaceT("scrollPadding"),scrollPaddingTop:h.spaceT("scrollPaddingTop"),scrollPaddingBottom:h.spaceT("scrollPaddingBottom"),scrollPaddingLeft:h.spaceT("scrollPaddingLeft"),scrollPaddingRight:h.spaceT("scrollPaddingRight"),scrollPaddingX:h.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:h.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function hd(e){return Be(e)&&e.reference?e.reference:String(e)}var Ci=(e,...t)=>t.map(hd).join(` ${e} `).replace(/calc/g,""),ld=(...e)=>`calc(${Ci("+",...e)})`,cd=(...e)=>`calc(${Ci("-",...e)})`,Ls=(...e)=>`calc(${Ci("*",...e)})`,ud=(...e)=>`calc(${Ci("/",...e)})`,dd=e=>{let t=hd(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ls(t,-1)},jo=Object.assign(e=>({add:(...t)=>jo(ld(e,...t)),subtract:(...t)=>jo(cd(e,...t)),multiply:(...t)=>jo(Ls(e,...t)),divide:(...t)=>jo(ud(e,...t)),negate:()=>jo(dd(e)),toString:()=>e.toString()}),{add:ld,subtract:cd,multiply:Ls,divide:ud,negate:dd});function Wb(e,t="-"){return e.replace(/\s+/g,t)}function Hb(e){let t=Wb(e.toString());return Ub(Gb(t))}function Gb(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Ub(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Kb(e,t=""){return [t,e].filter(Boolean).join("-")}function qb(e,t){return `var(${e}${t?`, ${t}`:""})`}function Yb(e,t=""){return Hb(`--${Kb(e,t)}`)}function V(e,t,r){let o=Yb(e,r);return {variable:o,reference:qb(o,t)}}function Xb(e){let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return {unitless:!r,value:t,unit:r}}function fd(e){if(e==null)return e;let{unitless:t}=Xb(e);return t||typeof e=="number"?`${e}px`:e}function Zb(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${fd(e)})`),t&&r.push("and",`(max-width: ${fd(t)})`),r.join(" ")}var me={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},xt=e=>gd(t=>e(t,"&"),"[role=group]","[data-group]",".group"),st=e=>gd(t=>e(t,"~ &"),"[data-peer]",".peer"),gd=(e,...t)=>t.map(e).join(", "),Bs={_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:xt(me.hover),_peerHover:st(me.hover),_groupFocus:xt(me.focus),_peerFocus:st(me.focus),_groupFocusVisible:xt(me.focusVisible),_peerFocusVisible:st(me.focusVisible),_groupActive:xt(me.active),_peerActive:st(me.active),_groupDisabled:xt(me.disabled),_peerDisabled:st(me.disabled),_groupInvalid:xt(me.invalid),_peerInvalid:st(me.invalid),_groupChecked:xt(me.checked),_peerChecked:st(me.checked),_groupFocusWithin:xt(me.focusWithin),_peerFocusWithin:st(me.focusWithin),_peerPlaceholderShown:st(me.placeholderShown),_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]"},Jb=Object.keys(Bs);var js=(0, yd.default)({},bi,F,Pb,xi,ze,Ab,Lb,Eb,pd,$b,Fo,$s,q,Fb,zb,Db,Bb,Rb,jb);Object.assign({},q,ze,xi,pd,Fo);var vd=[...Object.keys(js),...Jb],tx=f(f({},js),Bs),bd=e=>e in tx,rx=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:r,toArrayValue:o,media:n}=t.__breakpoints,i={};for(let a in e){let s=Xe(e[a],t);if(s==null)continue;if(s=Be(s)&&r(s)?o(s):s,!Array.isArray(s)){i[a]=s;continue}let l=s.slice(0,n.length).length;for(let c=0;c<l;c+=1){let u=n==null?void 0:n[c];if(!u){i[a]=s[c];continue}i[u]=i[u]||{},s[c]!=null&&(i[u][a]=s[c]);}}return i};function ox(e){let t=[],r="",o=!1;for(let n=0;n<e.length;n++){let i=e[n];i==="("?(o=!0,r+=i):i===")"?(o=!1,r+=i):i===","&&!o?(t.push(r),r=""):r+=i;}return r=r.trim(),r&&t.push(r),t}function nx(e){return /^var\(--.+\)$/.test(e)}var ix=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!nx(t),ax=(e,t)=>{var r,o;if(t==null)return t;let n=l=>{var c,u;return (u=(c=e.__cssMap)==null?void 0:c[l])==null?void 0:u.varRef},i=l=>{var c;return (c=n(l))!=null?c:l},[a,s]=ox(t);return t=(o=(r=n(a))!=null?r:i(s))!=null?o:i(t),t};function sx(e){let{configs:t={},pseudos:r={},theme:o}=e,n=(i,a=!1)=>{var s,l,c;let u=Xe(i,o),d=rx(u)(o),m={};for(let p in d){let g=d[p],y=Xe(g,o);p in r&&(p=r[p]),ix(p,y)&&(y=ax(o,y));let b=t[p];if(b===!0&&(b={property:p}),Be(y)){m[p]=(s=m[p])!=null?s:{},m[p]=(0, zo.default)({},m[p],n(y,!0));continue}let x=(c=(l=b==null?void 0:b.transform)==null?void 0:l.call(b,y,o,u))!=null?c:y;x=b!=null&&b.processResult?n(x,!0):x;let S=Xe(b==null?void 0:b.property,o);if(!a&&(b!=null&&b.static)){let C=Xe(b.static,o);m=(0, zo.default)({},m,C);}if(S&&Array.isArray(S)){for(let C of S)m[C]=x;continue}if(S){S==="&"&&Be(x)?m=(0, zo.default)({},m,x):m[S]=x;continue}if(Be(x)){m=(0, zo.default)({},m,x);continue}m[p]=x;}return m};return n}var xd=e=>t=>sx({theme:t,pseudos:Bs,configs:js})(e);function T(e){return {definePartsStyle(t){return t},defineMultiStyleConfig(t){return f({parts:e},t)}}}function lx(e,t){if(Array.isArray(e))return e;if(Be(e))return t(e);if(e!=null)return [e]}function cx(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return -1}function ux(e){let t=e.__breakpoints;return function(o,n,i,a){var s,l;if(!t)return;let c={},u=lx(i,t.toArrayValue);if(!u)return c;let d=u.length,m=d===1,p=!!o.parts;for(let g=0;g<d;g++){let y=t.details[g],b=t.details[cx(u,g)],x=Zb(y.minW,b==null?void 0:b._minW),S=Xe((s=o[n])==null?void 0:s[u[g]],a);if(S){if(p){(l=o.parts)==null||l.forEach(C=>{(0, Si.default)(c,{[C]:m?S[C]:{[x]:S[C]}});});continue}if(!p){m?(0, Si.default)(c,S):c[x]=S;continue}c[x]=S;}}return c}}function Sd(e){return t=>{var r;let{variant:o,size:n,theme:i}=t,a=ux(i);return (0, Si.default)({},Xe((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",n,t),a(e,"variants",o,t))}}function I(e,t={}){let r=!1;function o(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function n(...u){o();for(let d of u)t[d]=l(d);return I(e,t)}function i(...u){for(let d of u)d in t||(t[d]=l(d));return I(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,m])=>[d,m.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,m])=>[d,m.className]))}function l(u){let p=`chakra-${(["container","root"].includes(u!=null?u:"")?[e]:[e,u]).filter(Boolean).join("__")}`;return {className:p,selector:`.${p}`,toString:()=>u}}return {parts:n,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}I("accordion").parts("root","container","button","panel").extend("icon");var Wo=I("alert").parts("title","description","container").extend("icon","spinner");I("avatar").parts("label","badge","container").extend("excessLabel","group");I("breadcrumb").parts("link","item","container").extend("separator");I("button").parts();var zs=I("checkbox").parts("control","icon","container").extend("label");I("progress").parts("track","filledTrack").extend("label");var Fs=I("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer");I("editable").parts("preview","input","textarea");var Ws=I("form").parts("container","requiredIndicator","helperText");I("formError").parts("text","icon");var Kt=I("input").parts("addon","field","element","group");I("list").parts("container","item","icon");var Ho=I("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),Go=I("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer");I("numberinput").parts("root","field","stepperGroup","stepper");I("pininput").parts("field");var Hs=I("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Uo=I("progress").parts("label","filledTrack","track"),Gs=I("radio").parts("container","control","label");I("select").parts("field","icon");var Us=I("slider").parts("container","track","thumb","filledTrack","mark");I("stat").parts("container","label","helpText","number","icon");var Ko=I("switch").parts("container","track","thumb","label");I("table").parts("table","thead","tbody","tr","th","td","tfoot","caption");I("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");I("tag").parts("container","label","closeButton");var Ks=I("card").parts("container","header","body","footer");I("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function qt(e,t,r){return Math.min(Math.max(e,r),t)}var qs=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`);}},qo=qs;function Ys(e){if(typeof e!="string")throw new qo(e);if(e.trim().toLowerCase()==="transparent")return [0,0,0,0];let t=e.trim();t=Ox.test(e)?Ex(e):e;let r=Rx.exec(t);if(r){let a=Array.from(r).slice(1);return [...a.slice(0,3).map(s=>parseInt(Yo(s,2),16)),parseInt(Yo(a[3]||"f",2),16)/255]}let o=Mx.exec(t);if(o){let a=Array.from(o).slice(1);return [...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}let n=Ix.exec(t);if(n){let a=Array.from(n).slice(1);return [...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}let i=Vx.exec(t);if(i){let[a,s,l,c]=Array.from(i).slice(1).map(parseFloat);if(qt(0,100,s)!==s)throw new qo(e);if(qt(0,100,l)!==l)throw new qo(e);return [...Nx(a,s,l),Number.isNaN(c)?1:c]}throw new qo(e)}function Px(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return (t>>>0)%2341}var Cd=e=>parseInt(e.replace(/_/g,""),36),Ax="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)=>{let r=Cd(t.substring(0,3)),o=Cd(t.substring(3)).toString(16),n="";for(let i=0;i<6-o.length;i++)n+="0";return e[r]=`${n}${o}`,e},{});function Ex(e){let t=e.toLowerCase().trim(),r=Ax[Px(t)];if(!r)throw new qo(e);return `#${r}`}var Yo=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Rx=new RegExp(`^#${Yo("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Mx=new RegExp(`^#${Yo("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Ix=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Yo(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Vx=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Ox=/^[a-z]+$/i,wd=e=>Math.round(e*255),Nx=(e,t,r)=>{let o=r/100;if(t===0)return [o,o,o].map(wd);let n=(e%360+360)%360/60,i=(1-Math.abs(2*o-1))*(t/100),a=i*(1-Math.abs(n%2-1)),s=0,l=0,c=0;n>=0&&n<1?(s=i,l=a):n>=1&&n<2?(s=a,l=i):n>=2&&n<3?(l=i,c=a):n>=3&&n<4?(l=a,c=i):n>=4&&n<5?(s=a,c=i):n>=5&&n<6&&(s=i,c=a);let u=o-i/2,d=s+u,m=l+u,p=c+u;return [d,m,p].map(wd)};function $x(e,t,r,o){return `rgba(${qt(0,255,e).toFixed()}, ${qt(0,255,t).toFixed()}, ${qt(0,255,r).toFixed()}, ${parseFloat(qt(0,1,o).toFixed(3))})`}function kd(e,t){let[r,o,n,i]=Ys(e);return $x(r,o,n,i-t)}function _d(e){let[t,r,o,n]=Ys(e),i=a=>{let s=qt(0,255,a).toString(16);return s.length===1?`0${s}`:s};return `#${i(t)}${i(r)}${i(o)}${n<1?i(Math.round(n*255)):""}`}function Lx(e,t,r,o,n){for(t=t.split?t.split("."):t,o=0;o<t.length;o++)e=e?e[t[o]]:n;return e===n?r:e}var ae=(e,t,r)=>{let o=Lx(e,`colors.${t}`,t);try{return _d(o),o}catch(n){return r!=null?r:"#000000"}};var te=(e,t)=>r=>{let o=ae(r,e);return kd(o,1-t)};function Y(e,t){return r=>r.colorMode==="dark"?t:e}function Td(e){return !Number.isInteger(parseFloat(e.toString()))}function Dx(e,t="-"){return e.replace(/\s+/g,t)}function Pd(e){let t=Dx(e.toString());return t.includes("\\.")?e:Td(e)?t.replace(".","\\."):e}function Ad(e,t=""){return [t,Pd(e)].filter(Boolean).join("-")}function Ed(e,t){return `var(${Pd(e)}${t?`, ${t}`:""})`}function Rd(e,t=""){return `--${Ad(e,t)}`}function Ue(e,t){let r=Rd(e,t==null?void 0:t.prefix);return {variable:r,reference:Ed(r,Bx(t==null?void 0:t.fallback))}}function Bx(e){return typeof e=="string"?e:e==null?void 0:e.reference}var xe=e=>e?"":void 0;var _=(...e)=>e.filter(Boolean).join(" ");var wi=zt(Er(),1);function Xs(e,t){let r={};return Object.keys(e).forEach(o=>{t.includes(o)||(r[o]=e[o]);}),r}function Md(e,t,r,o){let n=typeof t=="string"?t.split("."):[t];for(o=0;o<n.length&&e;o+=1)e=e[n[o]];return e===void 0?r:e}var Id=e=>{let t=new WeakMap;return (o,n,i,a)=>{if(typeof o=="undefined")return e(o,n,i);t.has(o)||t.set(o,new Map);let s=t.get(o);if(s.has(n))return s.get(n);let l=e(o,n,i,a);return s.set(n,l),l}},Zs=Id(Md);function ki(e,t){let r={};return Object.keys(e).forEach(o=>{let n=e[o];t(n,o,e)&&(r[o]=n);}),r}var Xo=e=>ki(e,t=>t!=null);function Vd(e){return typeof e=="function"}function se(e,...t){return Vd(e)?e(...t):e}function St(...e){return function(r){e.some(o=>(o==null||o(r),r==null?void 0:r.defaultPrevented));}}var $d=zt(Nd(),1);function Gx(e,t={}){var r;let d=t,{styleConfig:o}=d,n=k(d,["styleConfig"]),{theme:i,colorMode:a}=Iu(),s=e?Zs(i,`components.${e}`):void 0,l=o||s,c=(0, wi.default)({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},Xo(Xs(n,["children"]))),u=ht.useRef({});if(l){let p=Sd(l)(c);(0, $d.default)(u.current,p)||(u.current=p);}return u.current}function Js(e,t={}){return Gx(e,t)}var Ux=new Set([...vd,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Kx=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Ld(e){return Kx.has(e)||!Ux.has(e)}function Qs(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");let r=f({},e);for(let o of t)if(o!=null)for(let n in o)Object.prototype.hasOwnProperty.call(o,n)&&(n in r&&delete r[n],r[n]=o[n]);return r}var qx=/^((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|download|draggable|encType|enterKeyHint|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|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)-.*))$/,Dd=Hn(function(e){return qx.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var Yx=Dd,Xx=function(t){return t!=="theme"},Bd=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Yx:Xx},jd=function(t,r,o){var n;if(r){var i=r.shouldForwardProp;n=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i;}return typeof n!="function"&&o&&(n=t.__emotion_forwardProp),n};var Zx=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return Mo(r,o,n),ii(function(){return ri(r,o,n)}),null},zd=function e(t,r){var o=t.__emotion_real===t,n=o&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=jd(t,r,o),l=s||Bd(n),c=!l("as");return function(){var u=arguments,d=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else {d.push(u[0][0]);for(var m=u.length,p=1;p<m;p++)d.push(u[p],u[0][p]);}var g=si(function(y,b,x){var S=c&&y.as||n,C="",w=[],P=y;if(y.theme==null){P={};for(var E in y)P[E]=y[E];P.theme=ht__namespace.useContext(Vo);}typeof y.className=="string"?C=ti(b.registered,w,y.className):y.className!=null&&(C=y.className+" ");var A=oi(d.concat(w),b.registered,P);C+=b.key+"-"+A.name,a!==void 0&&(C+=" "+a);var M=c&&s===void 0?Bd(S):l,O={};for(var j in y)c&&j==="as"||M(j)&&(O[j]=y[j]);return O.className=C,O.ref=x,ht__namespace.createElement(ht__namespace.Fragment,null,ht__namespace.createElement(Zx,{cache:b,serialized:A,isStringTag:typeof S=="string"}),ht__namespace.createElement(S,O))});return g.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=n,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return "."+a}}),g.withComponent=function(y,b){return e(y,_r({},r,b,{shouldForwardProp:jd(g,b,!0)})).apply(void 0,d)},g}};var Jx=["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"],Zo=zd.bind();Jx.forEach(function(e){Zo[e]=Zo(e);});var Wd,Qx=(Wd=Zo.default)!=null?Wd:Zo,eS=({baseStyle:e})=>t=>{let d=t,{theme:r,css:o,__css:n,sx:i}=d,a=k(d,["theme","css","__css","sx"]),s=ki(a,(m,p)=>bd(p)),l=se(e,t),c=Qs({},n,l,Xo(s),i),u=xd(c)(t.theme);return o?[u,o]:u};function Ti(e,t){let s=t!=null?t:{},{baseStyle:r}=s,o=k(s,["baseStyle"]);o.shouldForwardProp||(o.shouldForwardProp=Ld);let n=eS({baseStyle:r}),i=Qx(e,o)(n);return ht__namespace.default.forwardRef(function(c,u){let{colorMode:d,forced:m}=Oo();return ht__namespace.default.createElement(i,f({ref:u,"data-theme":m?d:void 0},c))})}function tS(){let e=new Map;return new Proxy(Ti,{apply(t,r,o){return Ti(...o)},get(t,r){return e.has(r)||e.set(r,Ti(r)),e.get(r)}})}var Rr=tS();function Jo(e){return ht.forwardRef(e)}function Oe(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,n=ht.createContext(void 0);n.displayName=o;function i(){var a;let s=ht.useContext(n);if(!s&&t){let l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return [n.Provider,i,n]}var Pi=(...e)=>e.filter(Boolean).join(" "),Hd={path:jsxRuntime.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[jsxRuntime.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"}),jsxRuntime.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"}),jsxRuntime.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Ud=Jo((e,t)=>{let b=e,{as:r,viewBox:o,color:n="currentColor",focusable:i=!1,children:a,className:s,__css:l}=b,c=k(b,["as","viewBox","color","focusable","children","className","__css"]),u=Pi("chakra-icon",s),d=Js("Icon",e),m=f(f({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:n},l),d),p={ref:t,focusable:i,className:u,__css:m},g=o!=null?o:Hd.viewBox;if(r&&typeof r!="string")return jsxRuntime.jsx(Rr.svg,f(f({as:r},p),c));let y=a!=null?a:Hd.path;return jsxRuntime.jsx(Rr.svg,v(f(f({verticalAlign:"middle",viewBox:g},p),c),{children:y}))});Ud.displayName="Icon";function sS(e){let{viewBox:t="0 0 24 24",d:r,displayName:o,defaultProps:n={}}=e,i=ht.Children.toArray(e.path),a=Jo((s,l)=>jsxRuntime.jsx(Ud,v(f(f({ref:l,viewBox:t},n),s),{children:i.length?i:jsxRuntime.jsx("path",{fill:"currentColor",d:r})})));return a.displayName=o,a}var Se=e=>sS(f({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}},e));Se({displayName:"ChevronUpIcon",path:jsxRuntime.jsx("polyline",{points:"18 15 12 9 6 15"})});Se({displayName:"ChevronDownIcon",path:jsxRuntime.jsx("polyline",{points:"6 9 12 15 18 9"})});Se({displayName:"ChevronLeftIcon",path:jsxRuntime.jsx("polyline",{points:"15 18 9 12 15 6"})});Se({displayName:"ChevronRightIcon",path:jsxRuntime.jsx("polyline",{points:"9 18 15 12 9 6"})});Se({displayName:"ChevronDownIcon",path:jsxRuntime.jsxs("g",{fill:"none",children:[jsxRuntime.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),jsxRuntime.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),jsxRuntime.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var Xd=Se({displayName:"CloseIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntime.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});Se({displayName:"FilterIcon",path:jsxRuntime.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});Se({displayName:"CalendarIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),jsxRuntime.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),jsxRuntime.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),jsxRuntime.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});Se({displayName:"PlusIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),jsxRuntime.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});Se({displayName:"MinusIcon",path:jsxRuntime.jsx("g",{children:jsxRuntime.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});Se({displayName:"ViewOffIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),jsxRuntime.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});Se({displayName:"ViewOffIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var Zd=Se({displayName:"SearchIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"11",cy:"11",r:"8"}),jsxRuntime.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});Se({displayName:"CheckIcon",path:jsxRuntime.jsx("g",{children:jsxRuntime.jsx("polyline",{points:"20 6 9 17 4 12"})})});var Jd=I("app-shell").parts("container","inner","main"),el=I("emptystate").parts("container","body","icon","title","descripton","actions","footer"),Qd=I("banner").parts("container","icon","content","title","description","actions","close"),ef=I("hotkeys").parts("container","group","groupTitle","item","command","then"),tf=I("loading-overlay").parts("overlay","text"),rf=I("nav-group").parts("container","title","icon","content"),of=I("nav-item").parts("item","link","inner","icon","label"),nf=I("nprogress").parts("container","bar"),af=I("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),sf=I("search-input").parts("input","reset"),lf=I("sidebar").parts("container","overlay","section","toggleWrapper","toggle");I("stepper").parts("container","steps","icon","content","title","separator");var cf=I("structured-list").parts("list","item","button","header","cell","icon"),tl=I("property").parts("property","label","value"),uf=I("select").parts("addon","field","element"),df=I("timeline").parts("container","item","separator","icon","dot","track","content");var{definePartsStyle:CS,defineMultiStyleConfig:wS}=T(Jd.keys),kS=CS({container:{},inner:{},main:{}}),_S=wS({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:kS}),{definePartsStyle:al,defineMultiStyleConfig:TS}=T(Qd.keys),PS=al({container:{px:4,py:3},content:{display:"flex",flex:1,flexDirection:["column",null,"row"]},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6,marginEnd:2},actions:{marginEnd:2},icon:{flexShrink:0,marginEnd:3,w:5,h:6}}),AS=al(e=>{let{theme:t,colorScheme:r}=e;return {container:{bg:`${r}.100`,_dark:{bg:te(`${r}.200`,.16)(t)}},icon:{color:`${r}.500`,_dark:{color:`${r}.200`}}}}),ES=al(e=>{let{colorScheme:t}=e;return {container:{bg:`${t}.500`,color:"white"}}}),RS=TS({baseStyle:PS,variants:{subtle:AS,solid:ES},defaultProps:{variant:"subtle",colorScheme:"blue"}}),MS={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"\u2022"',me:1,fontSize:"xs"}}}},{definePartsStyle:_f,defineMultiStyleConfig:IS}=T(el.keys),VS=_f(e=>{let{colorScheme:t}=e;return {icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.200`}},title:{mt:8,fontWeight:"bold",fontSize:"xl"},actions:{mt:8}}}),OS=_f(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),NS=IS({baseStyle:VS,variants:{centered:OS}}),{definePartsStyle:$S,defineMultiStyleConfig:LS}=T(Ws.keys),DS=$S({container:{display:"flex",alignItems:"center",flexDirection:"row-reverse",justifyContent:"flex-end"}}),BS=LS({variants:{horizontal:DS}}),jS={defaultProps:{spacing:4}},zS={baseStyle:{fontWeight:"semibold",mb:4}},{definePartsStyle:xN,defineMultiStyleConfig:FS}=T(ef.keys),WS=FS({baseStyle:{container:{fontSize:"md"},group:{my:2,py:2},groupTitle:{py:2,fontWeight:"semibold",fontSize:"sm"},item:{display:"flex",alignItems:"center",textAlign:"start",flex:"0 0 auto",py:2},then:{mr:1,fontSize:"sm",color:"muted"}}}),{defineMultiStyleConfig:HS,definePartsStyle:Mi}=T(tf.keys),GS=Mi({overlay:{p:4},text:{}}),US=Mi(()=>({overlay:{flex:1,height:"100%",bg:"whiteAlpha.400",_dark:{bg:"blackAlpha.400"}}})),KS=Mi(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),qS=Mi(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),YS=HS({defaultProps:{variant:"fill"},baseStyle:GS,variants:{fill:US,fullscreen:KS,overlay:qS}}),{definePartsStyle:XS,defineMultiStyleConfig:ZS}=T(rf.keys),JS=XS(e=>({container:{"&:not(:last-of-type)":{mb:4}},title:{display:"flex",alignItems:"center",px:3,my:1,height:6,fontSize:"sm",fontWeight:"medium",color:"muted",transitionProperty:"common",transitionDuration:"normal","&.sui-collapse-toggle .chakra-icon":{opacity:0},"&.sui-collapse-toggle":{cursor:"pointer",borderRadius:"md",_hover:{bg:"blackAlpha.100","& .chakra-icon":{opacity:1},_dark:{bg:"whiteAlpha.200"}}},"[data-compact] &":{opacity:0}},content:{}})),QS=ZS({baseStyle:JS}),{definePartsStyle:tn,defineMultiStyleConfig:e1}=T(of.keys),t1=tn(e=>({item:{my:"2px",color:"gray.900",minW:1,_dark:{color:"whiteAlpha.900"}},link:{display:"flex",rounded:"md",justifyContent:"flex-start",alignItems:"center",textDecoration:"none",transitionProperty:"common",transitionDuration:"normal",minW:1,_hover:{textDecoration:"none"},_focusVisible:{outline:"none",boxShadow:"outline"}},inner:{display:"flex",flex:1,w:"100%",alignItems:"center",minW:1},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},icon:{display:"flex",transitionProperty:"common",transitionDuration:"normal",alignItems:"center",justifyContent:"center",width:"4",ml:"-0.25rem",color:"currentColor"}})),r1=tn(e=>{let t={bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}};return {link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:t,["&[aria-current=page]"]:t},icon:{opacity:.8,"[data-active] &":{opacity:1}}}}),o1=tn(e=>{let{colorScheme:t,theme:r}=e,o={bg:te(`${t}.500`,.3)(r),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:te(`${t}.500`,.3)(r),color:`${t}.100`}};return {link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:o,["&[aria-current=page]"]:o}}}),n1=tn(e=>{let{colorScheme:t}=e,r={bg:`${t}.500`};return {link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,["&[aria-current=page]"]:r,color:"white"},icon:{color:"white"},label:{}}}),i1=tn(e=>{let{colorScheme:t}=e,r={color:"inherit",_before:{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:-3,width:"3px",bg:`${t}.500`}};return {item:{position:"relative"},link:{color:"muted",_hover:{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,["&[aria-current=page]"]:r},icon:{"[data-active] &":{color:"currentColor"}},label:{}}}),ff,mf,pf,hf,a1=e1({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:t1,sizes:{xs:{link:(ff=react.theme.components.Button.sizes)==null?void 0:ff.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(mf=react.theme.components.Button.sizes)==null?void 0:mf.sm,icon:{me:2,fontSize:"sm"}},md:{link:(pf=react.theme.components.Button.sizes)==null?void 0:pf.md,icon:{me:2,fontSize:"md"}},lg:{link:(hf=react.theme.components.Button.sizes)==null?void 0:hf.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:r1,subtle:o1,solid:n1,"left-accent":i1}}),{definePartsStyle:Tf,defineMultiStyleConfig:Pf}=T(nf.keys),s1=Tf(e=>{let{colorScheme:t}=e;return {bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),l1=Pf({defaultProps:{colorScheme:"teal"},baseStyle:s1}),{definePartsStyle:kt,defineMultiStyleConfig:c1}=T(af.keys),gf=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),u1=kt(e=>({details:{minW:0},secondaryLabel:gf(),tertiaryLabel:gf()})),d1={"2xs":kt({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:kt({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:kt({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:kt({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:kt({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:kt({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":kt({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},f1=c1({defaultProps:{size:"md"},baseStyle:u1,sizes:d1}),{definePartsStyle:EN,defineMultiStyleConfig:m1}=T(tl.keys),p1=m1({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:h1}=T(sf.keys),g1=h1({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:sl,defineMultiStyleConfig:y1}=T(lf.keys),v1=sl(e=>{let{colorScheme:t}=e;return {container:{bg:t?`${t}.500`:"white",display:"flex",flexDirection:"column",borderRightWidth:"1px",_dark:{bg:t?`${t}.500`:"gray.800"}},overlay:{bg:"blackAlpha.200"}}}),b1=sl(e=>({container:{width:"280px",maxWidth:["100vw","320px"],minWidth:"220px",py:3,"&[data-collapsible]":{pt:14}},section:{px:3},toggleWrapper:{h:8,mb:4,display:"none","[data-collapsible] &":{display:"block"}}})),x1=sl(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),S1=y1({defaultProps:{variant:"default"},baseStyle:v1,variants:{default:b1,compact:x1}}),{definePartsStyle:lt,defineMultiStyleConfig:C1}=T(Kt.keys),Mr=V("input-height"),Ir=V("input-font-size"),Vr=V("input-padding"),Or=V("input-border-radius"),w1=lt({addon:{height:Mr.reference,fontSize:Ir.reference,px:Vr.reference,borderRadius:Or.reference},field:{width:"100%",height:Mr.reference,fontSize:Ir.reference,px:Vr.reference,borderRadius:Or.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),wt={lg:{[Ir.variable]:"fontSizes.lg",[Vr.variable]:"space.4",[Or.variable]:"radii.md",[Mr.variable]:"sizes.12"},md:{[Ir.variable]:"fontSizes.md",[Vr.variable]:"space.4",[Or.variable]:"radii.md",[Mr.variable]:"sizes.10"},sm:{[Ir.variable]:"fontSizes.sm",[Vr.variable]:"space.3",[Or.variable]:"radii.sm",[Mr.variable]:"sizes.8"},xs:{[Ir.variable]:"fontSizes.xs",[Vr.variable]:"space.2",[Or.variable]:"radii.sm",[Mr.variable]:"sizes.6"}},k1={lg:lt({field:wt.lg,group:wt.lg}),md:lt({field:wt.md,group:wt.md}),sm:lt({field:wt.sm,group:wt.sm}),xs:lt({field:wt.xs,group:wt.xs})};function ll(e){let{focusBorderColor:t,errorBorderColor:r}=e;return {focusBorderColor:t||Y("blue.500","blue.300")(e),errorBorderColor:r||Y("red.500","red.300")(e)}}var _1=lt(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=ll(e);return {field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Y("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ae(t,o),boxShadow:`0 0 0 1px ${ae(t,o)}`},_focusVisible:{zIndex:1,borderColor:ae(t,r),boxShadow:`0 0 0 1px ${ae(t,r)}`}},addon:{border:"1px solid",borderColor:Y("inherit","whiteAlpha.50")(e),bg:Y("gray.100","whiteAlpha.300")(e)}}}),T1=lt(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=ll(e);return {field:{border:"2px solid",borderColor:"transparent",bg:Y("gray.100","whiteAlpha.50")(e),_hover:{bg:Y("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ae(t,o)},_focusVisible:{bg:"transparent",borderColor:ae(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:Y("gray.100","whiteAlpha.50")(e)}}}),P1=lt(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=ll(e);return {field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ae(t,o),boxShadow:`0px 1px 0px 0px ${ae(t,o)}`},_focusVisible:{borderColor:ae(t,r),boxShadow:`0px 1px 0px 0px ${ae(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),A1=lt({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),E1={outline:_1,filled:T1,flushed:P1,unstyled:A1},_t=C1({baseStyle:w1,sizes:k1,variants:E1,defaultProps:{size:"md",variant:"outline"}}),{defineMultiStyleConfig:R1}=T(uf.keys),M1=R1({defaultProps:_t.defaultProps,baseStyle:_t.baseStyle,sizes:_t.sizes,variants:_t.variants}),{definePartsStyle:I1,defineMultiStyleConfig:V1}=T(cf.keys),O1=I1(e=>({item:{py:2,px:4},button:{transitionProperty:"common",transitionDuration:"normal",borderRadius:"inherit",outline:"none",_hover:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_focusVisible:{boxShadow:"outline"},_focus:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_active:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}}}})),N1=V1({defaultProps:{size:"md"},baseStyle:O1,sizes:{sm:{item:{py:1,px:1},button:{py:1,px:1},cell:{px:1},icon:{px:1}},md:{item:{py:2,px:2},button:{py:2,px:2},cell:{px:2},icon:{px:2}}}}),{definePartsStyle:cl,defineMultiStyleConfig:$1}=T(df.keys),L1=cl(e=>({container:{},item:{minHeight:"32px",position:"relative"},separator:{width:"24px",flexShrink:0},icon:{color:"gray.300",py:"7px",_dark:{color:"gray.600"}},dot:{width:"9px",height:"9px",bg:"currentColor",borderRadius:"full"},track:{bg:"gray.300",width:"1px",flex:1,_dark:{bg:"gray.600"}},content:{pt:"1px",px:"2"}})),D1=cl(e=>({icon:{}})),B1=cl(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),j1=$1({defaultProps:{variant:"solid",size:"sm"},baseStyle:L1,variants:{solid:D1,outline:B1},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),z1={baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center"},variants:{outline:({colorScheme:e})=>({borderWidth:"1px",borderColor:e?`${e}.500`:"chakra-border-color",color:e?`${e}.500`:"currentColor"}),solid:({colorScheme:e="gray"})=>({bg:`${e}.500`,color:"white"})},sizes:{sm:{borderRadius:"sm",fontSize:"0.9em",w:6,h:6},md:{borderRadius:"md",fontSize:"1.1em",w:8,h:8},lg:{borderRadius:"md",fontSize:"1.3em",w:10,h:10}},defaultProps:{variant:"outline",size:"md"}},F1=I("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:W1,definePartsStyle:H1}=T(F1.keys),yf=V("navbar-bg"),vf=V("navbar-text-color","currentColor"),rl=V("navbar-link-bg","transparent"),G1=["yellow","cyan"],U1=W1({baseStyle:H1(({colorScheme:e})=>{let t="currentColor";return e&&(t=G1.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[yf.variable]:e?`colors.${e}.500`:"chakra-body-bg",[vf.variable]:t,bg:yf.reference,color:vf.reference,zIndex:"overlay",width:"full",height:"auto",alignItems:"center",justifyContent:"center",data:{"& [data-menu-open=true]":{border:"none"}}},inner:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",height:"var(--navbar-height)",px:6,gap:4,flexWrap:"nowrap"},toggle:{display:"flex",alignItems:"center",justifyContent:"center",width:6,height:"full",outline:"none",borderRadius:"sm"},brand:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"full",bg:"transparent",textDecoration:"none",color:"inherit",whiteSpace:"nowrap",boxSizing:"border-box"},content:{display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,listStyle:"none"},item:{display:"inline-flex",p:0},link:{bg:rl.reference,color:"current",display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",whiteSpace:"nowrap",boxSizing:"border-box",borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",lineHeight:1,px:3,h:8,_focusVisible:{outline:"none",boxShadow:"outline"},_hover:{[rl.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[rl.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),K1={SuiAppShell:_S,SuiBanner:RS,SuiCommand:MS,SuiEmptyState:NS,SuiFormLayout:jS,SuiForm:BS,SuiFormLegend:zS,SuiHotkeys:WS,SuiStructuredList:N1,SuiLoadingOverlay:YS,SuiNavGroup:QS,SuiNavItem:a1,SuiPersona:f1,SuiProperty:p1,SuiNProgress:l1,SuiSearchInput:g1,SuiSelect:M1,SuiSidebar:S1,SuiTimeline:j1,SuiIconBadge:z1,SuiNavbar:U1},ul=react.extendTheme({colors:{primary:react.theme.colors.blue},semanticTokens:{colors:{"presence.online":"green.500","presence.offline":"gray.400","presence.busy":"orange.500","presence.dnd":"red.500","presence.away":"gray.400"}},components:K1}),q1={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},ol={black:"#0e1012",gray:{50:"#f9fafa",100:"#f1f1f2",200:"#e7e7e8",300:"#d3d4d5",400:"#abadaf",500:"#7d7f83",600:"#52555a",700:"#33373d",800:"#1d2025",900:"#171a1d"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},nl=f({primary:ol.purple,secondary:ol.cyan},ol),Y1={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},X1={"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.25rem","3xl":"1.5rem","4xl":"1.875rem","5xl":"2.25rem","6xl":"3rem","7xl":"3.75rem","8xl":"4.5rem","9xl":"6rem"},Z1={h1:{fontSize:["5xl","6xl","7xl"],fontWeight:"extrabold",lineHeight:"1.2",letterSpacing:"-2%"},h2:{fontSize:["3xl","4xl","5xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},h3:{fontSize:["lg","xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},subtitle:{fontSize:["lg",null,"2xl"],fontWeight:"normal"}},J1={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},Q1=J1,eC={outline:`0 0 0 2px ${te(nl.primary[500],.6)({colors:nl})}`},tC=eC,rC={colors:{"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.200"},muted:{default:"gray.500",_dark:"gray.400"},neutral:{default:"black",_dark:"white"},"neutral-fg":{default:"white",_dark:"black"}}},oC={colors:nl,fonts:Y1,fontSizes:X1,textStyles:Z1,sizes:Q1,shadows:tC,semanticTokens:rC},{definePartsStyle:Af,defineMultiStyleConfig:nC}=T(Wo.keys),iC=Af(e=>{let{colorScheme:t}=e;return {container:{bg:"white",_dark:{bg:"black"},borderWidth:"1px"},icon:{color:`${t}.500`,_dark:{color:`${t}.500`},"& .chakra-spinner":{color:"black",_dark:{color:"white"}}},title:{fontWeight:"semibold",fontSize:"md"},description:{fontSize:"sm",color:"gray.500",_dark:{color:"gray.400"}}}}),aC=Af({container:{borderRadius:"md"}}),sC=nC({defaultProps:{size:"sm"},baseStyle:aC,variants:{snackbar:iC}}),Ef=e=>{let{colorScheme:t}=e;return t==="gray"?{base:Y("gray.100","whiteAlpha.300")(e),hover:Y("gray.200","whiteAlpha.400")(e),active:Y("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:Y(`${t}.500`,`${t}.500`)(e),hover:Y(`${t}.600`,`${t}.600`)(e),active:Y(`${t}.700`,`${t}.700`)(e)}},lC={yellow:{bg:"yellow.400",hoverBg:"yellow.500",activeBg:"yellow.600",color:"black"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Ii=e=>{var t;let{colorScheme:r,colorMode:o}=e;if(r==="white")return {bg:"white",color:"black",_hover:{bg:"whiteAlpha.900",_dark:{bg:"whiteAlpha.900"},_disabled:{bg:"white"}},_active:{bg:"whiteAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700"}};if(r==="neutral")return {bg:"black",color:"white",_dark:{bg:"white",color:"black"},_hover:{bg:"blackAlpha.800",_disabled:{bg:"black"},_dark:{bg:"whiteAlpha.800",_disabled:{bg:"white"}}},_active:{bg:"blackAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700",_dark:{color:"whiteAlpha.700"}}};let{base:n,hover:i,active:a}=Ef(e),{color:s=r==="gray"?Y("black","white")(e):"white",bg:l=n,hoverBg:c=i,activeBg:u=a}=(t=lC[r])!=null?t:{};return {bg:l,color:s,_hover:{bg:c,_disabled:{bg:l}},_active:{bg:u}}},cC=e=>f({shadow:"md"},Ii(e)),Rf=e=>{let{colorScheme:t}=e,{base:r,hover:o,active:n}=Ef(e);return v(f({},Mf(e)),{borderColor:t==="gray"?o:r,borderWidth:"1px",_hover:{borderColor:t==="gray"?n:o}})},Mf=e=>{let{colorScheme:t,theme:r}=e;if(t==="gray")return {color:"inherit",_dark:{color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:{bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}}};if(t==="white")return {color:"white",_hover:{bg:"whiteAlpha.200"},_active:"whiteAlpha.300"};let o=te(`${t}.200`,.12)(r),n=te(`${t}.200`,.24)(r);return {color:`${t}.600`,_dark:{color:`${t}.200`},bg:"transparent",_hover:{bg:`${t}.50`,_dark:{bg:o}},_active:{bg:`${t}.100`,_dark:{bg:n}}}},uC=e=>{let{colorScheme:t,theme:r}=e;if(t==="gray")return {color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100",color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.200",_dark:{color:"white.200"}},_active:{bg:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"}}};let o=t==="white"?"white":Y(`${t}.500`,`${t}.200`)(e),n=te(o,.1)(r),i=te(o,.16)(r),a=te(o,.24)(r);return {color:t==="white"?"white":Y(`${t}.600`,`${t}.200`)(e),bg:n,_hover:{bg:i},_active:{bg:a}}},dC=e=>{let{colorScheme:t}=e;return {padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":Y(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":Y(`${t}.700`,`${t}.500`)(e)}}},fC=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),Ii(v(f({},e),{variant:"solid",colorScheme:t}))},mC=e=>Ii(v(f({},e),{variant:"solid"})),pC=e=>Rf(v(f({},e),{variant:"outline"})),hC={defaultProps:{size:"sm"},variants:{solid:Ii,ghost:Mf,outline:Rf,subtle:uC,elevated:cC,link:dC,primary:fC,secondary:mC,tertiary:pC}},{definePartsStyle:Vi,defineMultiStyleConfig:gC}=T(Ks.keys),Xt=V("card-bg");V("card-padding");var dl=V("card-shadow");V("card-radius");var fl=V("card-border-width","0"),Tt=V("card-border-color"),yC=Vi(()=>({container:{transitionProperty:"common",transitionDuration:"normal"},header:{p:4},body:{p:4},footer:{p:4}})),vC=Vi(e=>({container:{[Xt.variable]:"colors.white",[Tt.variable]:"colors.blackAlpha.200",[fl.variable]:"1px",[dl.variable]:"shadows.sm",_dark:{[Xt.variable]:"colors.whiteAlpha.200",[Tt.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[Tt.variable]:"colors.blackAlpha.300",_dark:{[Tt.variable]:"colors.whiteAlpha.300"}}}})),bC=Vi(e=>{let{colorScheme:t}=e,r=t?"white":"inherit";return {container:{[fl.variable]:"0",[dl.variable]:"none",[Xt.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:r,"&.chakra-linkbox:hover":{[Xt.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[Xt.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[Xt.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),xC=Vi(e=>{let{colorScheme:t}=e;return {container:{[fl.variable]:"1px",[dl.variable]:"none",[Tt.variable]:t?`${t}.500`:"colors.blackAlpha.200",[Xt.variable]:"transparent","&.chakra-linkbox:hover":{[Tt.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[Tt.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[Tt.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),SC=gC({defaultProps:{variant:"elevated"},baseStyle:yC,variants:{elevated:vC,outline:xC,filled:bC}}),{definePartsStyle:CC,defineMultiStyleConfig:wC}=T(zs.keys),kC=CC(e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),_C=wC({baseStyle:kC}),TC={defaultProps:{size:"sm"}},{definePartsStyle:il,defineMultiStyleConfig:PC}=T(Kt.keys),bf=V("input-height"),xf=V("input-padding"),Sf=V("input-border-radius"),If={sm:il({field:{[Sf.variable]:"radii.md"},group:{[Sf.variable]:"radii.md"}}),md:il({field:{[xf.variable]:"space.3",[bf.variable]:"sizes.9"},group:{[xf.variable]:"space.3",[bf.variable]:"sizes.9"}})},Vf=il(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),ml=PC({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:Vf},sizes:If}),AC={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},en=ml,EC=ml,RC={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:Vf},sizes:If},MC={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,r;return (r=(t=en.variants)==null?void 0:t.outline(e).field)!=null?r:{}}}},IC=ml,Cf,wf,VC=v(f({},_t),{defaultProps:en.defaultProps,variants:{outline:e=>{var t,r;return f({},(r=(t=en.variants)==null?void 0:t.outline(e))!=null?r:{})},flushed:e=>{var t,r;return (r=(t=_t.variants)==null?void 0:t.flushed(e))!=null?r:{}},filled:e=>{var t,r;return (r=(t=_t.variants)==null?void 0:t.filled(e))!=null?r:{}},unstyled:(wf=(Cf=_t.variants)==null?void 0:Cf.unstyled)!=null?wf:{}},sizes:en.sizes}),OC={defaultProps:{size:"lg"}},NC=e=>({color:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"},borderWidth:0,borderBottomWidth:0,padding:"1px",display:"inline-block",borderRadius:"3px",minW:"20px",textAlign:"center",mr:1,":last-child":{mr:0}}),$C={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:NC}},{definePartsStyle:Of,defineMultiStyleConfig:LC}=T(Ho.keys),DC=Of(e=>({list:{borderWidth:1,borderColor:"blackAlpha.200",boxShadow:"lg",_dark:{borderWidth:0,borderColor:"whiteAlpha.300",boxShadow:"dark-lg"}},divider:{borderColor:"blackAlpha.200",_dark:{borderColor:"whiteAlpha.300"}},groupTitle:{mx:3}})),BC=Of(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),jC=LC({baseStyle:DC,variants:{dialog:BC}}),{definePartsStyle:zC,defineMultiStyleConfig:FC}=T(Go.keys),WC=zC(e=>({closeButton:{top:4,insetEnd:4}})),HC=FC({baseStyle:WC}),{definePartsStyle:GC,defineMultiStyleConfig:UC}=T(Uo.keys),KC=UC({defaultProps:{colorScheme:"primary"},baseStyle:GC(e=>{let{colorScheme:t}=e;return {track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:qC,defineMultiStyleConfig:YC}=T(Gs.keys),XC=YC({baseStyle:qC(e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:ZC,defineMultiStyleConfig:JC}=T(Us.keys),QC=JC({defaultProps:{colorScheme:"primary"},baseStyle:ZC(e=>{let{colorScheme:t}=e;return {filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:ew,defineMultiStyleConfig:tw}=T(Ko.keys),rw=tw({baseStyle:ew(e=>{let{colorScheme:t}=e;return {track:{_checked:{bg:`${t}.500`}}}})}),Ei=Ue("tooltip-bg"),kf=Ue("tooltip-fg"),ow=Ue("popper-arrow-bg"),nw=e=>({display:"flex",[Ei.variable]:"colors.white",[kf.variable]:"colors.blackAlpha.900",_dark:{[Ei.variable]:"colors.gray.700",[kf.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[Ei.reference],[ow.variable]:[Ei.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),iw={baseStyle:nw},Ri=V("stepper-indicator-size"),Jt=V("stepper-accent-color"),Zt=V("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:aw,definePartsStyle:Pt}=T(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),sw=Pt(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{["&[data-orientation=vertical]"]:{mt:2,ms:Zt.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[Zt.variable]:"10px",[Jt.variable]:`colors.${e}.500`,_dark:{[Jt.variable]:`colors.${e}.500`}},separator:{transitionProperty:"common",transitionDuration:"normal",["&[data-orientation=horizontal]"]:{height:"1px"},["&[data-orientation=vertical]"]:{width:"1px"},[".sui-steps__item .chakra-step &[data-orientation=vertical]"]:{display:"none"},[".sui-steps__item &[data-orientation=vertical]"]:{position:"static",minH:4,ms:Zt.reference}},step:{["&[data-orientation=vertical]"]:{alignItems:"center"}}})),lw=Pt(e=>({})),cw=Pt(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:Jt.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:Jt.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),uw=Pt(e=>{let{theme:t,colorScheme:r}=e;return {stepper:{[Jt.variable]:`colors.${r}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:Jt.reference,color:`${r}.500`,_dark:{bg:te(`${r}.200`,.16)(t)}},"&[data-status=complete]":{bg:Jt.reference,color:`${r}.500`,_dark:{bg:te(`${r}.200`,.24)(t),color:`${r}.200`}},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",color:"blackAlpha.700",_dark:{bg:"whiteAlpha.200",color:"whiteAlpha.600"}}}}}),dw=aw({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:sw,variants:{outline:lw,solid:cw,subtle:uw},sizes:{xs:Pt({stepper:{[Ri.variable]:"sizes.4",[Zt.variable]:"7px"}}),sm:Pt({stepper:{[Ri.variable]:"sizes.6",[Zt.variable]:"11px"}}),md:Pt({stepper:{[Ri.variable]:"sizes.7",[Zt.variable]:"14px"}}),lg:Pt({stepper:{[Ri.variable]:"sizes.8",[Zt.variable]:"16px"}})}}),{definePartsStyle:fw,defineMultiStyleConfig:mw}=T(el.keys),pw=fw(e=>{let{colorScheme:t}=e;return {icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),hw=mw({baseStyle:pw}),gw=Tf(e=>{let{colorScheme:t}=e;return {bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),yw=Pf({defaultProps:{colorScheme:"primary"},baseStyle:gw}),{definePartsStyle:h$,defineMultiStyleConfig:vw}=T(tl.keys),bw=vw({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),xw={Alert:sC,Button:hC,Card:SC,Checkbox:_C,CloseButton:TC,Heading:OC,Kbd:$C,Menu:jC,Modal:HC,Progress:KC,Radio:XC,Slider:QC,Switch:rw,Stepper:dw,Tooltip:iw,Input:en,PinInput:RC,FormLabel:AC,NumberInput:EC,Select:IC,Textarea:MC,SuiEmptyState:hw,SuiNProgress:yw,SuiProperty:bw,SuiSelect:VC},rn=react.extendTheme(v(f({},oC),{styles:q1,components:xw}),react.withDefaultColorScheme({colorScheme:"primary",components:["Radio","Switch","Checkbox"]}),ul);var Oi=ht.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var At=ht.createContext({});var Et=ht.createContext(null);var Rt=typeof document!="undefined";var Nr=Rt?ht.useLayoutEffect:ht.useEffect;var Ni=ht.createContext({strict:!1});function $f(e,t,r,o){let{visualElement:n}=ht.useContext(At),i=ht.useContext(Ni),a=ht.useContext(Et),s=ht.useContext(Oi).reducedMotion,l=ht.useRef();o=o||i.renderer,!l.current&&o&&(l.current=o(e,{visualState:t,parent:n,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));let c=l.current;ht.useInsertionEffect(()=>{c&&c.update(r,a);});let u=ht.useRef(!!window.HandoffAppearAnimations);return Nr(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges());}),ht.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,u.current=!1);}),c}function ut(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Lf(e,t,r){return ht.useCallback(o=>{o&&e.mount&&e.mount(o),t&&(o?t.mount(o):t.unmount()),r&&(typeof r=="function"?r(o):ut(r)&&(r.current=o));},[t])}function dt(e){return typeof e=="string"||Array.isArray(e)}function Mt(e){return typeof e=="object"&&typeof e.start=="function"}var Li=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],on=["initial",...Li];function Qt(e){return Mt(e.animate)||on.some(t=>dt(e[t]))}function Di(e){return !!(Qt(e)||e.variants)}function Df(e,t){if(Qt(e)){let{initial:r,animate:o}=e;return {initial:r===!1||dt(r)?r:void 0,animate:dt(o)?o:void 0}}return e.inherit!==!1?t:{}}function jf(e){let{initial:t,animate:r}=Df(e,ht.useContext(At));return ht.useMemo(()=>({initial:t,animate:r}),[Bf(t),Bf(r)])}function Bf(e){return Array.isArray(e)?e.join(" "):e}var zf={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"]},er={};for(let e in zf)er[e]={isEnabled:t=>zf[e].some(r=>!!t[r])};function Ff(e){for(let t in e)er[t]=f(f({},er[t]),e[t]);}var $r=ht.createContext({});var Bi=ht.createContext({});var Wf=Symbol.for("motionComponentSymbol");function Hf({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:o,Component:n}){e&&Ff(e);function i(s,l){let c,u=v(f(f({},ht.useContext(Oi)),s),{layoutId:Nw(s)}),{isStatic:d}=u,m=jf(s),p=o(s,d);if(!d&&Rt){m.visualElement=$f(n,p,u,t);let g=ht.useContext(Bi),y=ht.useContext(Ni).strict;m.visualElement&&(c=m.visualElement.loadFeatures(u,y,e,g));}return ht__namespace.createElement(At.Provider,{value:m},c&&m.visualElement?ht__namespace.createElement(c,f({visualElement:m.visualElement},u)):null,r(n,s,Lf(p,m.visualElement,l),p,d,m.visualElement))}let a=ht.forwardRef(i);return a[Wf]=n,a}function Nw({layoutId:e}){let t=ht.useContext($r).id;return t&&e!==void 0?t+"-"+e:e}function Gf(e){function t(o,n={}){return Hf(e(o,n))}if(typeof Proxy=="undefined")return t;let r=new Map;return new Proxy(t,{get:(o,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}var Uf=["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 Lr(e){return typeof e!="string"||e.includes("-")?!1:!!(Uf.indexOf(e)>-1||/[A-Z]/.test(e))}var Dr={};function Kf(e){Object.assign(Dr,e);}var It=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Te=new Set(It);function zi(e,{layout:t,layoutId:r}){return Te.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Dr[e]||e==="opacity")}var X=e=>!!(e&&e.getVelocity);var $w={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lw=It.length;function qf(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},o,n){let i="";for(let a=0;a<Lw;a++){let s=It[a];if(e[s]!==void 0){let l=$w[s]||s;i+=`${l}(${e[s]}) `;}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),n?i=n(e,o?"":i):r&&o&&(i="none"),i}var Yf=e=>t=>typeof t=="string"&&t.startsWith(e),Fi=Yf("--"),Wi=Yf("var(--"),Xf=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g;var Zf=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var Ce=(e,t,r)=>Math.min(Math.max(r,e),t);var Fe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vt=v(f({},Fe),{transform:e=>Ce(0,1,e)}),nn=v(f({},Fe),{default:1});var Ot=e=>Math.round(e*1e5)/1e5,tr=/(-)?([\d]*\.?[\d])+/g,hl=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Jf=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ft(e){return typeof e=="string"}var an=e=>({test:t=>ft(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Je=an("deg"),we=an("%"),R=an("px"),Qf=an("vh"),em=an("vw"),gl=v(f({},we),{parse:e=>we.parse(e)/100,transform:e=>we.transform(e*100)});var yl=v(f({},Fe),{transform:Math.round});var Hi={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,size:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,rotate:Je,rotateX:Je,rotateY:Je,rotateZ:Je,scale:nn,scaleX:nn,scaleY:nn,scaleZ:nn,skew:Je,skewX:Je,skewY:Je,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Vt,originX:gl,originY:gl,originZ:R,zIndex:yl,fillOpacity:Vt,strokeOpacity:Vt,numOctaves:yl};function Br(e,t,r,o){let{style:n,vars:i,transform:a,transformOrigin:s}=e,l=!1,c=!1,u=!0;for(let d in t){let m=t[d];if(Fi(d)){i[d]=m;continue}let p=Hi[d],g=Zf(m,p);if(Te.has(d)){if(l=!0,a[d]=g,!u)continue;m!==(p.default||0)&&(u=!1);}else d.startsWith("origin")?(c=!0,s[d]=g):n[d]=g;}if(t.transform||(l||o?n.transform=qf(e.transform,r,u,o):n.transform&&(n.transform="none")),c){let{originX:d="50%",originY:m="50%",originZ:p=0}=s;n.transformOrigin=`${d} ${m} ${p}`;}}var jr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vl(e,t,r){for(let o in t)!X(t[o])&&!zi(o,r)&&(e[o]=t[o]);}function Bw({transformTemplate:e},t,r){return ht.useMemo(()=>{let o=jr();return Br(o,t,{enableHardwareAcceleration:!r},e),Object.assign({},o.vars,o.style)},[t])}function jw(e,t,r){let o=e.style||{},n={};return vl(n,o,e),Object.assign(n,Bw(e,t,r)),e.transformValues?e.transformValues(n):n}function tm(e,t,r){let o={},n=jw(e,t,r);return e.drag&&e.dragListener!==!1&&(o.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(o.tabIndex=0),o.style=n,o}var zw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function sn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||zw.has(e)}var am=e=>!sn(e);function Uw(e){e&&(am=t=>t.startsWith("on")?!sn(t):e(t));}try{Uw((im(),Iy(nm)).default);}catch(e){}function sm(e,t,r){let o={};for(let n in e)n==="values"&&typeof e.values=="object"||(am(n)||r===!0&&sn(n)||!t&&!sn(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}function lm(e,t,r){return typeof e=="string"?e:R.transform(t+r*e)}function cm(e,t,r){let o=lm(t,e.x,e.width),n=lm(r,e.y,e.height);return `${o} ${n}`}var Kw={offset:"stroke-dashoffset",array:"stroke-dasharray"},qw={offset:"strokeDashoffset",array:"strokeDasharray"};function um(e,t,r=1,o=0,n=!0){e.pathLength=1;let i=n?Kw:qw;e[i.offset]=R.transform(-o);let a=R.transform(t),s=R.transform(r);e[i.array]=`${a} ${s}`;}function zr(e,p,u,d,m){var g=p,{attrX:t,attrY:r,attrScale:o,originX:n,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0}=g,c=k(g,["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"]);if(Br(e,c,u,m),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:y,style:b,dimensions:x}=e;y.transform&&(x&&(b.transform=y.transform),delete y.transform),x&&(n!==void 0||i!==void 0||b.transform)&&(b.transformOrigin=cm(x,n!==void 0?n:.5,i!==void 0?i:.5)),t!==void 0&&(y.x=t),r!==void 0&&(y.y=r),o!==void 0&&(y.scale=o),a!==void 0&&um(y,a,s,l,!1);}var Gi=()=>v(f({},jr()),{attrs:{}});var Fr=e=>typeof e=="string"&&e.toLowerCase()==="svg";function dm(e,t,r,o){let n=ht.useMemo(()=>{let i=Gi();return zr(i,t,{enableHardwareAcceleration:!1},Fr(o),e.transformTemplate),v(f({},i.attrs),{style:f({},i.style)})},[t]);if(e.style){let i={};vl(i,e.style,e),n.style=f(f({},i),n.style);}return n}function fm(e=!1){return (r,o,n,{latestValues:i},a)=>{let l=(Lr(r)?dm:tm)(o,i,a,r),c=sm(o,typeof r=="string",e),u=v(f(f({},c),l),{ref:n}),{children:d}=o,m=ht.useMemo(()=>X(d)?d.get():d,[d]);return ht.createElement(r,v(f({},u),{children:m}))}}var Wr=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Ui(e,{style:t,vars:r},o,n){Object.assign(e.style,t,n&&n.getProjectionStyles(o));for(let i in r)e.style.setProperty(i,r[i]);}var Ki=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 qi(e,t,r,o){Ui(e,t,void 0,o);for(let n in t.attrs)e.setAttribute(Ki.has(n)?n:Wr(n),t.attrs[n]);}function Hr(e,t){let{style:r}=e,o={};for(let n in r)(X(r[n])||t.style&&X(t.style[n])||zi(n,e))&&(o[n]=r[n]);return o}function Yi(e,t){let r=Hr(e,t);for(let o in e)if(X(e[o])||X(t[o])){let n=It.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[n]=e[o];}return r}function Gr(e,t,r,o={},n={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,o,n)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,o,n)),t}function Xi(e){let t=ht.useRef(null);return t.current===null&&(t.current=e()),t.current}var rr=e=>Array.isArray(e);var mm=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),pm=e=>rr(e)?e[e.length-1]||0:e;function Ur(e){let t=X(e)?e.get():e;return mm(t)?t.toValue():t}function Qw({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},o,n,i){let a={latestValues:ek(o,n,i,e),renderState:t()};return r&&(a.mount=s=>r(o,s,a)),a}var Zi=e=>(t,r)=>{let o=ht.useContext(At),n=ht.useContext(Et),i=()=>Qw(e,t,o,n);return r?i():Xi(i)};function ek(e,t,r,o){let n={},i=o(e,{});for(let m in i)n[m]=Ur(i[m]);let{initial:a,animate:s}=e,l=Qt(e),c=Di(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||a===!1;let d=u?s:a;return d&&typeof d!="boolean"&&!Mt(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{let g=Gr(e,p);if(!g)return;let S=g,{transitionEnd:y,transition:b}=S,x=k(S,["transitionEnd","transition"]);for(let C in x){let w=x[C];if(Array.isArray(w)){let P=u?w.length-1:0;w=w[P];}w!==null&&(n[C]=w);}for(let C in y)n[C]=y[C];}),n}var L=e=>e;var Ji=class{constructor(){this.order=[],this.scheduled=new Set;}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t));}clear(){this.order.length=0,this.scheduled.clear();}};function gm(e){let t=new Ji,r=new Ji,o=0,n=!1,i=!1,a=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{let d=u&&n,m=d?t:r;return c&&a.add(l),m.add(l)&&d&&n&&(o=t.order.length),l},cancel:l=>{r.remove(l),a.delete(l);},process:l=>{if(n){i=!0;return}if(n=!0,[t,r]=[r,t],r.clear(),o=t.order.length,o)for(let c=0;c<o;c++){let u=t.order[c];u(l),a.has(u)&&(s.schedule(u),e());}n=!1,i&&(i=!1,s.process(l));}};return s}var Qi=["prepare","read","update","preRender","render","postRender"],tk=40;function ym(e,t){let r=!1,o=!0,n={delta:0,timestamp:0,isProcessing:!1},i=Qi.reduce((d,m)=>(d[m]=gm(()=>r=!0),d),{}),a=d=>i[d].process(n),s=()=>{let d=performance.now();r=!1,n.delta=o?1e3/60:Math.max(Math.min(d-n.timestamp,tk),1),n.timestamp=d,n.isProcessing=!0,Qi.forEach(a),n.isProcessing=!1,r&&t&&(o=!1,e(s));},l=()=>{r=!0,o=!0,n.isProcessing||e(s);};return {schedule:Qi.reduce((d,m)=>{let p=i[m];return d[m]=(g,y=!1,b=!1)=>(r||l(),p.schedule(g,y,b)),d},{}),cancel:d=>Qi.forEach(m=>i[m].cancel(d)),state:n,steps:i}}var{schedule:N,cancel:ke,state:Q,steps:ea}=ym(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:L,!0);var vm={useVisualState:Zi({scrapeMotionValuesFromProps:Yi,createRenderState:Gi,onMount:(e,t,{renderState:r,latestValues:o})=>{N.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect();}catch(n){r.dimensions={x:0,y:0,width:0,height:0};}}),N.render(()=>{zr(r,o,{enableHardwareAcceleration:!1},Fr(t.tagName),e.transformTemplate),qi(t,r);});}})};var bm={useVisualState:Zi({scrapeMotionValuesFromProps:Hr,createRenderState:jr})};function xm(e,{forwardMotionProps:t=!1},r,o){let n=Lr(e)?vm:bm;return v(f({},n),{preloadedFeatures:r,useRender:fm(t),createVisualElement:o,Component:e})}function Pe(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}var ta=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function or(e,t="page"){return {point:{x:e[t+"X"],y:e[t+"Y"]}}}var Sm=e=>t=>ta(t)&&e(t,or(t));function Ae(e,t,r,o){return Pe(e,t,Sm(r),o)}var rk=(e,t)=>r=>t(e(r)),Ee=(...e)=>e.reduce(rk);function km(e){let t=null;return ()=>{let r=()=>{t=null;};return t===null?(t=e,r):!1}}var Cm=km("dragHorizontal"),wm=km("dragVertical");function bl(e){let t=!1;if(e==="y")t=wm();else if(e==="x")t=Cm();else {let r=Cm(),o=wm();r&&o?t=()=>{r(),o();}:(r&&r(),o&&o());}return t}function ra(){let e=bl(!0);return e?(e(),!1):!0}var le=class{constructor(t){this.isMounted=!1,this.node=t;}update(){}};function _m(e,t){let r="pointer"+(t?"enter":"leave"),o="onHover"+(t?"Start":"End"),n=(i,a)=>{if(i.type==="touch"||ra())return;let s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[o]&&N.update(()=>s[o](i,a));};return Ae(e.current,r,n,{passive:!e.getProps()[o]})}var oa=class extends le{mount(){this.unmount=Ee(_m(this.node,!0),_m(this.node,!1));}unmount(){}};var na=class extends le{constructor(){super(...arguments),this.isActive=!1;}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible");}catch(r){t=!0;}!t||!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=Ee(Pe(this.node.current,"focus",()=>this.onFocus()),Pe(this.node.current,"blur",()=>this.onBlur()));}unmount(){}};var xl=(e,t)=>t?e===t?!0:xl(e,t.parentElement):!1;function Sl(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,or(r));}var ia=class extends le{constructor(){super(...arguments),this.removeStartListeners=L,this.removeEndListeners=L,this.removeAccessibleListeners=L,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;let o=this.node.getProps(),i=Ae(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;let{onTap:c,onTapCancel:u}=this.node.getProps();N.update(()=>{xl(this.node.current,s.target)?c&&c(s,l):u&&u(s,l);});},{passive:!(o.onTap||o.onPointerUp)}),a=Ae(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(o.onTapCancel||o.onPointerCancel)});this.removeEndListeners=Ee(i,a),this.startPress(t,r);},this.startAccessiblePress=()=>{let t=i=>{if(i.key!=="Enter"||this.isPressing)return;let a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Sl("up",(l,c)=>{let{onTap:u}=this.node.getProps();u&&N.update(()=>u(l,c));});};this.removeEndListeners(),this.removeEndListeners=Pe(this.node.current,"keyup",a),Sl("down",(s,l)=>{this.startPress(s,l);});},r=Pe(this.node.current,"keydown",t),o=()=>{this.isPressing&&Sl("cancel",(i,a)=>this.cancelPress(i,a));},n=Pe(this.node.current,"blur",o);this.removeAccessibleListeners=Ee(r,n);};}startPress(t,r){this.isPressing=!0;let{onTapStart:o,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),o&&N.update(()=>o(t,r));}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ra()}cancelPress(t,r){if(!this.checkPressEnd())return;let{onTapCancel:o}=this.node.getProps();o&&N.update(()=>o(t,r));}mount(){let t=this.node.getProps(),r=Ae(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),o=Pe(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ee(r,o);}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners();}};var wl=new WeakMap,Cl=new WeakMap,ok=e=>{let t=wl.get(e.target);t&&t(e);},nk=e=>{e.forEach(ok);};function ik(r){var o=r,{root:e}=o,t=k(o,["root"]);let n=e||document;Cl.has(n)||Cl.set(n,{});let i=Cl.get(n),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(nk,f({root:e},t))),i[a]}function Tm(e,t,r){let o=ik(t);return wl.set(e,r),o.observe(e),()=>{wl.delete(e),o.unobserve(e);}}var ak={some:0,all:1},aa=class extends le{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1;}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:r,margin:o,amount:n="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:o,threshold:typeof n=="number"?n:ak[n]},s=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),m=c?u:d;m&&m(l);};return Tm(this.node.current,a,s)}mount(){this.startObserver();}update(){if(typeof IntersectionObserver=="undefined")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(sk(t,r))&&this.startObserver();}unmount(){}};function sk({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var Pm={inView:{Feature:aa},tap:{Feature:ia},focus:{Feature:na},hover:{Feature:oa}};function kl(e,t){if(!Array.isArray(t))return !1;let r=t.length;if(r!==e.length)return !1;for(let o=0;o<r;o++)if(t[o]!==e[o])return !1;return !0}function lk(e){let t={};return e.values.forEach((r,o)=>t[o]=r.get()),t}function ck(e){let t={};return e.values.forEach((r,o)=>t[o]=r.getVelocity()),t}function Nt(e,t,r){let o=e.getProps();return Gr(o,t,r!==void 0?r:o.custom,lk(e),ck(e))}var uk="framerAppearId",Am="data-"+Wr(uk);var ge=L;var Ne=e=>e*1e3,Re=e=>e/1e3;var _l={current:!1};var Tl=e=>Array.isArray(e)&&typeof e[0]=="number";function Pl(e){return !!(!e||typeof e=="string"&&Em[e]||Tl(e)||Array.isArray(e)&&e.every(Pl))}var ln=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`,Em={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ln([0,.65,.55,1]),circOut:ln([.55,0,1,.45]),backIn:ln([.31,.01,.66,-.59]),backOut:ln([.33,1.53,.69,.99])};function Al(e){if(e)return Tl(e)?ln(e):Array.isArray(e)?e.map(Al):Em[e]}function Rm(e,t,r,{delay:o=0,duration:n,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){let c={[t]:r};l&&(c.offset=l);let u=Al(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:o,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function Mm(e,{repeat:t,repeatType:r="loop"}){let o=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[o]}var Im=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,dk=1e-7,fk=12;function mk(e,t,r,o,n){let i,a,s=0;do a=t+(r-t)/2,i=Im(a,o,n)-e,i>0?r=a:t=a;while(Math.abs(i)>dk&&++s<fk);return a}function $t(e,t,r,o){if(e===t&&r===o)return L;let n=i=>mk(i,0,1,e,r);return i=>i===0||i===1?i:Im(n(i),t,o)}var Vm=$t(.42,0,1,1),Om=$t(0,0,.58,1),sa=$t(.42,0,.58,1);var Nm=e=>Array.isArray(e)&&typeof e[0]!="number";var la=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var ca=e=>t=>1-e(1-t);var El=e=>1-Math.sin(Math.acos(e)),cn=ca(El),$m=la(cn);var Rl=$t(.33,1.53,.69,.99),un=ca(Rl),Lm=la(un);var Dm=e=>(e*=2)<1?.5*un(e):.5*(2-Math.pow(2,-10*(e-1)));var Bm={linear:L,easeIn:Vm,easeInOut:sa,easeOut:Om,circIn:El,circInOut:$m,circOut:cn,backIn:un,backInOut:Lm,backOut:Rl,anticipate:Dm},Ml=e=>{if(Array.isArray(e)){ge(e.length===4);let[t,r,o,n]=e;return $t(t,r,o,n)}else if(typeof e=="string")return Bm[e];return e};var qr=(e,t)=>r=>!!(ft(r)&&Jf.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),ua=(e,t,r)=>o=>{if(!ft(o))return o;let[n,i,a,s]=o.match(tr);return {[e]:parseFloat(n),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}};var pk=e=>Ce(0,255,e),Il=v(f({},Fe),{transform:e=>Math.round(pk(e))}),Qe={test:qr("rgb","red"),parse:ua("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+Il.transform(e)+", "+Il.transform(t)+", "+Il.transform(r)+", "+Ot(Vt.transform(o))+")"};function hk(e){let t="",r="",o="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var dn={test:qr("#"),parse:hk,transform:Qe.transform};var Lt={test:qr("hsl","hue"),parse:ua("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+we.transform(Ot(t))+", "+we.transform(Ot(r))+", "+Ot(Vt.transform(o))+")"};var ne={test:e=>Qe.test(e)||dn.test(e)||Lt.test(e),parse:e=>Qe.test(e)?Qe.parse(e):Lt.test(e)?Lt.parse(e):dn.parse(e),transform:e=>ft(e)?e:e.hasOwnProperty("red")?Qe.transform(e):Lt.transform(e)};var D=(e,t,r)=>-r*e+r*t+e;function Vl(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function jm({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,t/=100,r/=100;let n=0,i=0,a=0;if(!t)n=i=a=r;else {let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=Vl(l,s,e+1/3),i=Vl(l,s,e),a=Vl(l,s,e-1/3);}return {red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}var Ol=(e,t,r)=>{let o=e*e;return Math.sqrt(Math.max(0,r*(t*t-o)+o))},gk=[dn,Qe,Lt],yk=e=>gk.find(t=>t.test(e));function zm(e){let t=yk(e);let r=t.parse(e);return t===Lt&&(r=jm(r)),r}var da=(e,t)=>{let r=zm(e),o=zm(t),n=f({},r);return i=>(n.red=Ol(r.red,o.red,i),n.green=Ol(r.green,o.green,i),n.blue=Ol(r.blue,o.blue,i),n.alpha=D(r.alpha,o.alpha,i),Qe.transform(n))};function vk(e){var t,r;return isNaN(e)&&ft(e)&&(((t=e.match(tr))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(hl))===null||r===void 0?void 0:r.length)||0)>0}var Fm={regex:Xf,countKey:"Vars",token:"${v}",parse:L},Wm={regex:hl,countKey:"Colors",token:"${c}",parse:ne.parse},Hm={regex:tr,countKey:"Numbers",token:"${n}",parse:Fe.parse};function Nl(e,{regex:t,countKey:r,token:o,parse:n}){let i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,o),e.values.push(...i.map(n)));}function fn(e){let t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Nl(r,Fm),Nl(r,Wm),Nl(r,Hm),r}function Gm(e){return fn(e).values}function Um(e){let{values:t,numColors:r,numVars:o,tokenised:n}=fn(e),i=t.length;return a=>{let s=n;for(let l=0;l<i;l++)l<o?s=s.replace(Fm.token,a[l]):l<o+r?s=s.replace(Wm.token,ne.transform(a[l])):s=s.replace(Hm.token,Ot(a[l]));return s}}var bk=e=>typeof e=="number"?0:e;function xk(e){let t=Gm(e);return Um(e)(t.map(bk))}var _e={test:vk,parse:Gm,createTransformer:Um,getAnimatableNone:xk};var Km=(e,t)=>r=>`${r>0?t:e}`;function qm(e,t){return typeof e=="number"?r=>D(e,t,r):ne.test(e)?da(e,t):e.startsWith("var(")?Km(e,t):Ll(e,t)}var $l=(e,t)=>{let r=[...e],o=r.length,n=e.map((i,a)=>qm(i,t[a]));return i=>{for(let a=0;a<o;a++)r[a]=n[a](i);return r}},Ym=(e,t)=>{let r=f(f({},e),t),o={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(o[n]=qm(e[n],t[n]));return n=>{for(let i in o)r[i]=o[i](n);return r}},Ll=(e,t)=>{let r=_e.createTransformer(t),o=fn(e),n=fn(t);return o.numVars===n.numVars&&o.numColors===n.numColors&&o.numNumbers>=n.numNumbers?Ee($l(o.values,n.values),r):(Km(e,t))};var mt=(e,t,r)=>{let o=t-e;return o===0?1:(r-e)/o};var Xm=(e,t)=>r=>D(e,t,r);function Sk(e){return typeof e=="number"?Xm:typeof e=="string"?ne.test(e)?da:Ll:Array.isArray(e)?$l:typeof e=="object"?Ym:Xm}function Ck(e,t,r){let o=[],n=r||Sk(e[0]),i=e.length-1;for(let a=0;a<i;a++){let s=n(e[a],e[a+1]);if(t){let l=Array.isArray(t)?t[a]||L:t;s=Ee(l,s);}o.push(s);}return o}function fa(e,t,{clamp:r=!0,ease:o,mixer:n}={}){let i=e.length;if(ge(i===t.length),i===1)return ()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=Ck(t,o,n),s=a.length,l=c=>{let u=0;if(s>1)for(;u<e.length-2&&!(c<e[u+1]);u++);let d=mt(e[u],e[u+1],c);return a[u](d)};return r?c=>l(Ce(e[0],e[i-1],c)):l}function Zm(e,t){let r=e[e.length-1];for(let o=1;o<=t;o++){let n=mt(0,t,o);e.push(D(r,1,n));}}function Jm(e){let t=[0];return Zm(t,e.length-1),t}function Qm(e,t){return e.map(r=>r*t)}function wk(e,t){return e.map(()=>t||sa).splice(0,e.length-1)}function mn({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){let n=Nm(o)?o.map(Ml):Ml(o),i={done:!1,value:t[0]},a=Qm(r&&r.length===t.length?r:Jm(t),e),s=fa(a,t,{ease:Array.isArray(n)?n:wk(t,n)});return {calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function ma(e,t){return t?e*(1e3/t):0}var kk=5;function pa(e,t,r){let o=Math.max(t-kk,0);return ma(r-e(o),t-o)}var Dl=.001,_k=.01,ep=10,Tk=.05,Pk=1;function tp({duration:e=800,bounce:t=.25,velocity:r=0,mass:o=1}){let n,i;let a=1-t;a=Ce(Tk,Pk,a),e=Ce(_k,ep,Re(e)),a<1?(n=c=>{let u=c*a,d=u*e,m=u-r,p=ha(c,a),g=Math.exp(-d);return Dl-m/p*g},i=c=>{let d=c*a*e,m=d*r+r,p=Math.pow(a,2)*Math.pow(c,2)*e,g=Math.exp(-d),y=ha(Math.pow(c,2),a);return (-n(c)+Dl>0?-1:1)*((m-p)*g)/y}):(n=c=>{let u=Math.exp(-c*e),d=(c-r)*e+1;return -Dl+u*d},i=c=>{let u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});let s=5/e,l=Ek(n,i,s);if(e=Ne(e),isNaN(l))return {stiffness:100,damping:10,duration:e};{let c=Math.pow(l,2)*o;return {stiffness:c,damping:a*2*Math.sqrt(o*c),duration:e}}}var Ak=12;function Ek(e,t,r){let o=r;for(let n=1;n<Ak;n++)o=o-e(o)/t(o);return o}function ha(e,t){return e*Math.sqrt(1-t*t)}var Rk=["duration","bounce"],Mk=["stiffness","damping","mass"];function rp(e,t){return t.some(r=>e[r]!==void 0)}function Ik(e){let t=f({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!rp(e,Mk)&&rp(e,Rk)){let r=tp(e);t=v(f(f({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0;}return t}function ga(n){var i=n,{keyframes:e,restDelta:t,restSpeed:r}=i,o=k(i,["keyframes","restDelta","restSpeed"]);let a=e[0],s=e[e.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:d,velocity:m,duration:p,isResolvedFromDuration:g}=Ik(o),y=m?-Re(m):0,b=u/(2*Math.sqrt(c*d)),x=s-a,S=Re(Math.sqrt(c/d)),C=Math.abs(x)<5;r||(r=C?.01:2),t||(t=C?.005:.5);let w;if(b<1){let P=ha(S,b);w=E=>{let A=Math.exp(-b*S*E);return s-A*((y+b*S*x)/P*Math.sin(P*E)+x*Math.cos(P*E))};}else if(b===1)w=P=>s-Math.exp(-S*P)*(x+(y+S*x)*P);else {let P=S*Math.sqrt(b*b-1);w=E=>{let A=Math.exp(-b*S*E),M=Math.min(P*E,300);return s-A*((y+b*S*x)*Math.sinh(M)+P*x*Math.cosh(M))/P};}return {calculatedDuration:g&&p||null,next:P=>{let E=w(P);if(g)l.done=P>=p;else {let A=y;P!==0&&(b<1?A=pa(w,P,E):A=0);let M=Math.abs(A)<=r,O=Math.abs(s-E)<=t;l.done=M&&O;}return l.value=l.done?s:E,l}}}function Bl({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){let d=e[0],m={done:!1,value:d},p=M=>s!==void 0&&M<s||l!==void 0&&M>l,g=M=>s===void 0?l:l===void 0||Math.abs(s-M)<Math.abs(l-M)?s:l,y=r*t,b=d+y,x=a===void 0?b:a(b);x!==b&&(y=x-d);let S=M=>-y*Math.exp(-M/o),C=M=>x+S(M),w=M=>{let O=S(M),j=C(M);m.done=Math.abs(O)<=c,m.value=m.done?x:j;},P,E,A=M=>{p(m.value)&&(P=M,E=ga({keyframes:[m.value,g(m.value)],velocity:pa(C,M,m.value),damping:n,stiffness:i,restDelta:c,restSpeed:u}));};return A(0),{calculatedDuration:null,next:M=>{let O=!1;return !E&&P===void 0&&(O=!0,w(M),A(M)),P!==void 0&&M>P?E.next(M-P):(!O&&w(M),m)}}}var op=e=>{let t=({timestamp:r})=>e(r);return {start:()=>N.update(t,!0),stop:()=>ke(t),now:()=>Q.isProcessing?Q.timestamp:performance.now()}};function jl(e){let t=0,r=50,o=e.next(t);for(;!o.done&&t<2e4;)t+=r,o=e.next(t);return t>=2e4?1/0:t}var Vk={decay:Bl,inertia:Bl,tween:mn,keyframes:mn,spring:ga};function nr(p){var g=p,{autoplay:e=!0,delay:t=0,driver:r=op,keyframes:o,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d}=g,m=k(g,["autoplay","delay","driver","keyframes","type","repeat","repeatDelay","repeatType","onPlay","onStop","onComplete","onUpdate"]);let y=1,b=!1,x,S,C=()=>{S=new Promise(J=>{x=J;});};C();let w,P=Vk[n]||mn,E;P!==mn&&typeof o[0]!="number"&&(E=fa([0,100],o,{clamp:!1}),o=[0,100]);let A=P(v(f({},m),{keyframes:o})),M;s==="mirror"&&(M=P(v(f({},m),{keyframes:[...o].reverse(),velocity:-(m.velocity||0)})));let O="idle",j=null,W=null,ue=null;A.calculatedDuration===null&&i&&(A.calculatedDuration=jl(A));let{calculatedDuration:de}=A,he=1/0,G=1/0;de!==null&&(he=de+a,G=he*(i+1)-a);let ee=0,ot=J=>{if(W===null)return;y>0&&(W=Math.min(W,J)),y<0&&(W=Math.min(J-G/y,W)),j!==null?ee=j:ee=Math.round(J-W)*y;let wo=ee-t*(y>=0?1:-1),Ic=y>=0?wo<0:wo>G;ee=Math.max(wo,0),O==="finished"&&j===null&&(ee=G);let Vc=ee,Oc=A;if(i){let cs=ee/he,On=Math.floor(cs),jt=cs%1;!jt&&cs>=1&&(jt=1),jt===1&&On--,On=Math.min(On,i+1);let $c=!!(On%2);$c&&(s==="reverse"?(jt=1-jt,a&&(jt-=a/he)):s==="mirror"&&(Oc=M));let Lc=Ce(0,1,jt);ee>G&&(Lc=s==="reverse"&&$c?1:0),Vc=Lc*he;}let ko=Ic?{done:!1,value:o[0]}:Oc.next(Vc);E&&(ko.value=E(ko.value));let{done:Nc}=ko;!Ic&&de!==null&&(Nc=y>=0?ee>=G:ee<=0);let ky=j===null&&(O==="finished"||O==="running"&&Nc);return d&&d(ko.value),ky&&wy(),ko},Co=()=>{w&&w.stop(),w=void 0;},Ec=()=>{O="idle",Co(),x(),C(),W=ue=null;},wy=()=>{O="finished",u&&u(),Co(),x();},Rc=()=>{if(b)return;w||(w=r(ot));let J=w.now();l&&l(),j!==null?W=J-j:(!W||O==="finished")&&(W=J),O==="finished"&&C(),ue=W,j=null,O="running",w.start();};e&&Rc();let Mc={then(J,wo){return S.then(J,wo)},get time(){return Re(ee)},set time(J){J=Ne(J),ee=J,j!==null||!w||y===0?j=J:W=w.now()-J/y;},get duration(){let J=A.calculatedDuration===null?jl(A):A.calculatedDuration;return Re(J)},get speed(){return y},set speed(J){J===y||!w||(y=J,Mc.time=Re(ee));},get state(){return O},play:Rc,pause:()=>{O="paused",j=ee;},stop:()=>{b=!0,O!=="idle"&&(O="idle",c&&c(),Ec());},cancel:()=>{ue!==null&&ot(ue),Ec();},complete:()=>{O="finished";},sample:J=>(W=0,ot(J))};return Mc}function np(e){let t;return ()=>(t===void 0&&(t=e()),t)}var Ok=np(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Nk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ya=10,$k=2e4,Lk=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Pl(t.ease);function ip(e,t,i){var a=i,{onUpdate:r,onComplete:o}=a,n=k(a,["onUpdate","onComplete"]);if(!(Ok()&&Nk.has(t)&&!n.repeatDelay&&n.repeatType!=="mirror"&&n.damping!==0&&n.type!=="inertia"))return !1;let l=!1,c,u,d=()=>{u=new Promise(w=>{c=w;});};d();let{keyframes:m,duration:p=300,ease:g,times:y}=n;if(Lk(t,n)){let w=nr(v(f({},n),{repeat:0,delay:0})),P={done:!1,value:m[0]},E=[],A=0;for(;!P.done&&A<$k;)P=w.sample(A),E.push(P.value),A+=ya;y=void 0,m=E,p=A-ya,g="linear";}let b=Rm(e.owner.current,t,m,v(f({},n),{duration:p,ease:g,times:y}));n.syncStart&&(b.startTime=Q.isProcessing?Q.timestamp:document.timeline?document.timeline.currentTime:performance.now());let x=()=>b.cancel(),S=()=>{N.update(x),c(),d();};return b.onfinish=()=>{e.set(Mm(m,n)),o&&o(),S();},{then(w,P){return u.then(w,P)},attachTimeline(w){return b.timeline=w,b.onfinish=null,L},get time(){return Re(b.currentTime||0)},set time(w){b.currentTime=Ne(w);},get speed(){return b.playbackRate},set speed(w){b.playbackRate=w;},get duration(){return Re(p)},play:()=>{l||(b.play(),ke(x));},pause:()=>b.pause(),stop:()=>{if(l=!0,b.playState==="idle")return;let{currentTime:w}=b;if(w){let P=nr(v(f({},n),{autoplay:!1}));e.setWithVelocity(P.sample(w-ya).value,P.sample(w).value,ya);}S();},complete:()=>b.finish(),cancel:S}}function ap({keyframes:e,delay:t,onUpdate:r,onComplete:o}){let n=()=>(r&&r(e[e.length-1]),o&&o(),{time:0,speed:1,duration:0,play:L,pause:L,stop:L,then:i=>(i(),Promise.resolve()),cancel:L,complete:L});return t?nr({keyframes:[0,1],duration:0,delay:t,onComplete:n}):n()}var Dk={type:"spring",stiffness:500,damping:25,restSpeed:10},Bk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jk={type:"keyframes",duration:.8},zk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sp=(e,{keyframes:t})=>t.length>2?jk:Te.has(e)?e.startsWith("scale")?Bk(t[1]):Dk:zk;var pn=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(_e.test(t)||t==="0")&&!t.startsWith("url("));var Fk=new Set(["brightness","contrast","saturate","opacity"]);function Wk(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=r.match(tr)||[];if(!o)return e;let n=r.replace(o,""),i=Fk.has(t)?1:0;return o!==r&&(i*=100),t+"("+i+n+")"}var Hk=/([a-z-]*)\(.*?\)/g,hn=v(f({},_e),{getAnimatableNone:e=>{let t=e.match(Hk);return t?t.map(Wk).join(" "):e}});var Gk=v(f({},Hi),{color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:hn,WebkitFilter:hn}),Yr=e=>Gk[e];function va(e,t){let r=Yr(e);return r!==hn&&(r=_e),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var ba=e=>/^0[^.\s]+$/.test(e);function lp(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||ba(e)}function cp(e,t,r,o){let n=pn(t,r),i;Array.isArray(r)?i=[...r]:i=[null,r];let a=o.from!==void 0?o.from:e.get(),s,l=[];for(let c=0;c<i.length;c++)i[c]===null&&(i[c]=c===0?a:i[c-1]),lp(i[c])&&l.push(c),typeof i[c]=="string"&&i[c]!=="none"&&i[c]!=="0"&&(s=i[c]);if(n&&l.length&&s)for(let c=0;c<l.length;c++){let u=l[c];i[u]=va(t,s);}return i}function up(d){var m=d,u=k(m,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return !!Object.keys(u).length}function xa(e,t){return e[t]||e.default||e}var Xr=(e,t,r,o={})=>n=>{let i=xa(o,e)||{},a=i.delay||o.delay||0,{elapsed:s=0}=o;s=s-Ne(a);let l=cp(t,e,r,i),c=l[0],u=l[l.length-1],d=pn(e,c),m=pn(e,u);let p=v(f({keyframes:l,velocity:t.getVelocity(),ease:"easeOut"},i),{delay:-s,onUpdate:g=>{t.set(g),i.onUpdate&&i.onUpdate(g);},onComplete:()=>{n(),i.onComplete&&i.onComplete();}});if(up(i)||(p=f(f({},p),sp(e,p))),p.duration&&(p.duration=Ne(p.duration)),p.repeatDelay&&(p.repeatDelay=Ne(p.repeatDelay)),!d||!m||_l.current||i.type===!1)return ap(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let g=ip(t,e,p);if(g)return g}return nr(p)};function ir(e){return !!(X(e)&&e.add)}var Sa=e=>/^\-?\d*\.?\d+$/.test(e);function Zr(e,t){e.indexOf(t)===-1&&e.push(t);}function Jr(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1);}var Dt=class{constructor(){this.subscriptions=[];}add(t){return Zr(this.subscriptions,t),()=>Jr(this.subscriptions,t)}notify(t,r,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,o);else for(let i=0;i<n;i++){let a=this.subscriptions[i];a&&a(t,r,o);}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0;}};var Uk=e=>!isNaN(parseFloat(e)),zl=class{constructor(t,r={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(o,n=!0)=>{this.prev=this.current,this.current=o;let{delta:i,timestamp:a}=Q;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,N.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current);},this.scheduleVelocityCheck=()=>N.postRender(this.velocityCheck),this.velocityCheck=({timestamp:o})=>{o!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()));},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Uk(this.current),this.owner=r.owner;}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Dt);let o=this.events[t].add(r);return t==="change"?()=>{o(),N.read(()=>{this.events.change.getSize()||this.stop();});}:o}clearListeners(){for(let t in this.events)this.events[t].clear();}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r;}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify);}setWithVelocity(t,r,o){this.set(r),this.prev=t,this.timeDelta=o;}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ma(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 et(e,t){return new zl(e,t)}var Ca=e=>t=>t.test(e);var fp={test:e=>e==="auto",parse:e=>e};var Fl=[Fe,R,we,Je,em,Qf,fp],Qr=e=>Fl.find(Ca(e));var Kk=[...Fl,ne,_e],mp=e=>Kk.find(Ca(e));function qk(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,et(r));}function pp(e,t){let r=Nt(e,t),a=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:o={},transition:n={}}=a,i=k(a,["transitionEnd","transition"]);i=f(f({},i),o);for(let s in i){let l=pm(i[s]);qk(e,s,l);}}function hp(e,t,r){var o,n;let i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;s<a;s++){let l=i[s],c=t[l],u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(n=(o=r[l])!==null&&o!==void 0?o:e.readValue(l))!==null&&n!==void 0?n:t[l]),u!=null&&(typeof u=="string"&&(Sa(u)||ba(u))?u=parseFloat(u):!mp(u)&&_e.test(c)&&(u=va(l,c)),e.addValue(l,et(u,{owner:e})),r[l]===void 0&&(r[l]=u),u!==null&&e.setBaseTarget(l,u));}}function Yk(e,t){return t?(t[e]||t.default||t).from:void 0}function gp(e,t,r){let o={};for(let n in e){let i=Yk(n,t);if(i!==void 0)o[n]=i;else {let a=r.getValue(n);a&&(o[n]=a.get());}}return o}function Xk({protectedKeys:e,needsAnimating:t},r){let o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function wa(e,t,{delay:r=0,transitionOverride:o,type:n}={}){let d=e.makeTargetAnimatable(t),{transition:i=e.getDefaultTransition(),transitionEnd:a}=d,s=k(d,["transition","transitionEnd"]),l=e.getValue("willChange");o&&(i=o);let c=[],u=n&&e.animationState&&e.animationState.getState()[n];for(let m in s){let p=e.getValue(m),g=s[m];if(!p||g===void 0||u&&Xk(u,m))continue;let y=f({delay:r,elapsed:0},i);if(window.HandoffAppearAnimations&&!p.hasAnimated){let x=e.getProps()[Am];x&&(y.elapsed=window.HandoffAppearAnimations(x,m,p,N),y.syncStart=!0);}p.start(Xr(m,p,g,e.shouldReduceMotion&&Te.has(m)?{type:!1}:y));let b=p.animation;ir(l)&&(l.add(m),b.then(()=>l.remove(m))),c.push(b);}return a&&Promise.all(c).then(()=>{a&&pp(e,a);}),c}function ka(e,t,r={}){let o=Nt(e,t,r.custom),{transition:n=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(n=r.transitionOverride);let i=o?()=>Promise.all(wa(e,o,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=n;return Zk(e,t,c+l,u,d,r)}:()=>Promise.resolve(),{when:s}=n;if(s){let[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(r.delay)])}function Zk(e,t,r=0,o=0,n=1,i){let a=[],s=(e.variantChildren.size-1)*o,l=n===1?(c=0)=>c*o:(c=0)=>s-c*o;return Array.from(e.variantChildren).sort(Jk).forEach((c,u)=>{c.notify("AnimationStart",t),a.push(ka(c,t,v(f({},i),{delay:r+l(u)})).then(()=>c.notify("AnimationComplete",t)));}),Promise.all(a)}function Jk(e,t){return e.sortNodePosition(t)}function yp(e,t,r={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let n=t.map(i=>ka(e,i,r));o=Promise.all(n);}else if(typeof t=="string")o=ka(e,t,r);else {let n=typeof t=="function"?Nt(e,t,r.custom):t;o=Promise.all(wa(e,n,r));}return o.then(()=>e.notify("AnimationComplete",t))}var Qk=[...Li].reverse(),e_=Li.length;function t_(e){return t=>Promise.all(t.map(({animation:r,options:o})=>yp(e,r,o)))}function vp(e){let t=t_(e),r=o_(),o=!0,n=(l,c)=>{let u=Nt(e,c);if(u){let d=u,{transition:m,transitionEnd:p}=d,g=k(d,["transition","transitionEnd"]);l=f(f(f({},l),g),p);}return l};function i(l){t=l(e);}function a(l,c){let u=e.getProps(),d=e.getVariantContext(!0)||{},m=[],p=new Set,g={},y=1/0;for(let x=0;x<e_;x++){let S=Qk[x],C=r[S],w=u[S]!==void 0?u[S]:d[S],P=dt(w),E=S===c?C.isActive:null;E===!1&&(y=x);let A=w===d[S]&&w!==u[S]&&P;if(A&&o&&e.manuallyAnimateOnMount&&(A=!1),C.protectedKeys=f({},g),!C.isActive&&E===null||!w&&!C.prevProp||Mt(w)||typeof w=="boolean")continue;let M=r_(C.prevProp,w),O=M||S===c&&C.isActive&&!A&&P||x>y&&P,j=Array.isArray(w)?w:[w],W=j.reduce(n,{});E===!1&&(W={});let{prevResolvedValues:ue={}}=C,de=f(f({},ue),W),he=G=>{O=!0,p.delete(G),C.needsAnimating[G]=!0;};for(let G in de){let ee=W[G],ot=ue[G];g.hasOwnProperty(G)||(ee!==ot?rr(ee)&&rr(ot)?!kl(ee,ot)||M?he(G):C.protectedKeys[G]=!0:ee!==void 0?he(G):p.add(G):ee!==void 0&&p.has(G)?he(G):C.protectedKeys[G]=!0);}C.prevProp=w,C.prevResolvedValues=W,C.isActive&&(g=f(f({},g),W)),o&&e.blockInitialAnimation&&(O=!1),O&&!A&&m.push(...j.map(G=>({animation:G,options:f({type:S},l)})));}if(p.size){let x={};p.forEach(S=>{let C=e.getBaseTarget(S);C!==void 0&&(x[S]=C);}),m.push({animation:x});}let b=!!m.length;return o&&u.initial===!1&&!e.manuallyAnimateOnMount&&(b=!1),o=!1,b?t(m):Promise.resolve()}function s(l,c,u){var d;if(r[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return (g=p.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;let m=a(u,l);for(let p in r)r[p].protectedKeys={};return m}return {animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function r_(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!kl(t,e):!1}function ar(e=!1){return {isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function o_(){return {animate:ar(!0),whileInView:ar(),whileHover:ar(),whileTap:ar(),whileDrag:ar(),whileFocus:ar(),exit:ar()}}var _a=class extends le{constructor(t){super(t),t.animationState||(t.animationState=vp(t));}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),Mt(t)&&(this.unmount=t.subscribe(this.node));}mount(){this.updateAnimationControlsSubscription();}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription();}unmount(){}};var n_=0,Ta=class extends le{constructor(){super(...arguments),this.id=n_++;}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r,custom:o}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t,{custom:o!=null?o:this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id));}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id));}unmount(){}};var bp={animation:{Feature:_a},exit:{Feature:Ta}};var xp=(e,t)=>Math.abs(e-t);function Sp(e,t){let r=xp(e.x,t.x),o=xp(e.y,t.y);return Math.sqrt($n(r,2)+$n(o,2))}var eo=class{constructor(t,r,{transformPagePoint:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=Hl(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,d=Sp(c.offset,{x:0,y:0})>=3;if(!u&&!d)return;let{point:m}=c,{timestamp:p}=Q;this.history.push(v(f({},m),{timestamp:p}));let{onStart:g,onMove:y}=this.handlers;u||(g&&g(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c);},this.handlePointerMove=(c,u)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=Wl(u,this.transformPagePoint),N.update(this.updatePoint,!0);},this.handlePointerUp=(c,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:d,onSessionEnd:m}=this.handlers,p=Hl(c.type==="pointercancel"?this.lastMoveEventInfo:Wl(u,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,p),m&&m(c,p);},!ta(t))return;this.handlers=r,this.transformPagePoint=o;let n=or(t),i=Wl(n,this.transformPagePoint),{point:a}=i,{timestamp:s}=Q;this.history=[v(f({},a),{timestamp:s})];let{onSessionStart:l}=r;l&&l(t,Hl(i,this.history)),this.removeListeners=Ee(Ae(window,"pointermove",this.handlePointerMove),Ae(window,"pointerup",this.handlePointerUp),Ae(window,"pointercancel",this.handlePointerUp));}updateHandlers(t){this.handlers=t;}end(){this.removeListeners&&this.removeListeners(),ke(this.updatePoint);}};function Wl(e,t){return t?{point:t(e.point)}:e}function Cp(e,t){return {x:e.x-t.x,y:e.y-t.y}}function Hl({point:e},t){return {point:e,delta:Cp(e,wp(t)),offset:Cp(e,i_(t)),velocity:a_(t,.1)}}function i_(e){return e[0]}function wp(e){return e[e.length-1]}function a_(e,t){if(e.length<2)return {x:0,y:0};let r=e.length-1,o=null,n=wp(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>Ne(t)));)r--;if(!o)return {x:0,y:0};let i=Re(n.timestamp-o.timestamp);if(i===0)return {x:0,y:0};let a={x:(n.x-o.x)/i,y:(n.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function pe(e){return e.max-e.min}function Pa(e,t=0,r=.01){return Math.abs(e-t)<=r}function kp(e,t,r,o=.5){e.origin=o,e.originPoint=D(t.min,t.max,e.origin),e.scale=pe(r)/pe(t),(Pa(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=D(r.min,r.max,e.origin)-e.originPoint,(Pa(e.translate)||isNaN(e.translate))&&(e.translate=0);}function to(e,t,r,o){kp(e.x,t.x,r.x,o?o.originX:void 0),kp(e.y,t.y,r.y,o?o.originY:void 0);}function _p(e,t,r){e.min=r.min+t.min,e.max=e.min+pe(t);}function Pp(e,t,r){_p(e.x,t.x,r.x),_p(e.y,t.y,r.y);}function Tp(e,t,r){e.min=t.min-r.min,e.max=e.min+pe(t);}function ro(e,t,r){Tp(e.x,t.x,r.x),Tp(e.y,t.y,r.y);}function Ip(e,{min:t,max:r},o){return t!==void 0&&e<t?e=o?D(t,e,o.min):Math.max(e,t):r!==void 0&&e>r&&(e=o?D(r,e,o.max):Math.min(e,r)),e}function Ap(e,t,r){return {min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Vp(e,{top:t,left:r,bottom:o,right:n}){return {x:Ap(e.x,r,n),y:Ap(e.y,t,o)}}function Ep(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}function Op(e,t){return {x:Ep(e.x,t.x),y:Ep(e.y,t.y)}}function Np(e,t){let r=.5,o=pe(e),n=pe(t);return n>o?r=mt(t.min,t.max-o,e.min):o>n&&(r=mt(e.min,e.max-n,t.min)),Ce(0,1,r)}function $p(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var Aa=.35;function Lp(e=Aa){return e===!1?e=0:e===!0&&(e=Aa),{x:Rp(e,"left","right"),y:Rp(e,"top","bottom")}}function Rp(e,t,r){return {min:Mp(e,t),max:Mp(e,r)}}function Mp(e,t){return typeof e=="number"?e:e[t]||0}var Dp=()=>({translate:0,scale:1,origin:0,originPoint:0}),sr=()=>({x:Dp(),y:Dp()}),Bp=()=>({min:0,max:0}),Z=()=>({x:Bp(),y:Bp()});function We(e){return [e("x"),e("y")]}function Ea({top:e,left:t,right:r,bottom:o}){return {x:{min:t,max:r},y:{min:e,max:o}}}function jp({x:e,y:t}){return {top:t.min,right:e.max,bottom:t.max,left:e.min}}function zp(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return {top:r.y,left:r.x,bottom:o.y,right:o.x}}function Gl(e){return e===void 0||e===1}function Ra({scale:e,scaleX:t,scaleY:r}){return !Gl(e)||!Gl(t)||!Gl(r)}function pt(e){return Ra(e)||Ul(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ul(e){return Fp(e.x)||Fp(e.y)}function Fp(e){return e&&e!=="0%"}function gn(e,t,r){let o=e-r,n=t*o;return r+n}function Wp(e,t,r,o,n){return n!==void 0&&(e=gn(e,n,o)),gn(e,r,o)+t}function Kl(e,t=0,r=1,o,n){e.min=Wp(e.min,t,r,o,n),e.max=Wp(e.max,t,r,o,n);}function ql(e,{x:t,y:r}){Kl(e.x,t.translate,t.scale,t.originPoint),Kl(e.y,r.translate,r.scale,r.originPoint);}function Up(e,t,r,o=!1){let n=r.length;if(!n)return;t.x=t.y=1;let i,a;for(let s=0;s<n;s++){i=r[s],a=i.projectionDelta;let l=i.instance;l&&l.style&&l.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&lr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ql(e,a)),o&&pt(i.latestValues)&&lr(e,i.latestValues));}t.x=Hp(t.x),t.y=Hp(t.y);}function Hp(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function tt(e,t){e.min=e.min+t,e.max=e.max+t;}function Gp(e,t,[r,o,n]){let i=t[n]!==void 0?t[n]:.5,a=D(e.min,e.max,i);Kl(e,t[r],t[o],a,t.scale);}var s_=["x","scaleX","originX"],l_=["y","scaleY","originY"];function lr(e,t){Gp(e.x,t,s_),Gp(e.y,t,l_);}function Yl(e,t){return Ea(zp(e.getBoundingClientRect(),t))}function Kp(e,t,r){let o=Yl(e,r),{scroll:n}=t;return n&&(tt(o.x,n.offset.x),tt(o.y,n.offset.y)),o}var c_=new WeakMap,Ia=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Z(),this.visualElement=t;}start(t,{snapToCursor:r=!1}={}){let{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;let n=l=>{this.stopAnimation(),r&&this.snapToCursor(or(l,"page").point);},i=(l,c)=>{let{drag:u,dragPropagation:d,onDragStart:m}=this.getProps();if(u&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=bl(u),!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),We(g=>{let y=this.getAxisMotionValue(g).get()||0;if(we.test(y)){let{projection:b}=this.visualElement;if(b&&b.layout){let x=b.layout.layoutBox[g];x&&(y=pe(x)*(parseFloat(y)/100));}}this.originPoint[g]=y;}),m&&N.update(()=>m(l,c),!1,!0);let{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0);},a=(l,c)=>{let{dragPropagation:u,dragDirectionLock:d,onDirectionLock:m,onDrag:p}=this.getProps();if(!u&&!this.openGlobalLock)return;let{offset:g}=c;if(d&&this.currentDirection===null){this.currentDirection=u_(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",c.point,g),this.updateAxis("y",c.point,g),this.visualElement.render(),p&&p(l,c);},s=(l,c)=>this.stop(l,c);this.panSession=new eo(t,{onSessionStart:n,onStart:i,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()});}stop(t,r){let o=this.isDragging;if(this.cancel(),!o)return;let{velocity:n}=r;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&N.update(()=>i(t,r));}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1);}updateAxis(t,r,o){let{drag:n}=this.getProps();if(!o||!Ma(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=Ip(a,this.constraints[t],this.elastic[t])),i.set(a);}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:o}=this.visualElement.projection||{},n=this.constraints;t&&ut(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=Vp(o.layoutBox,t):this.constraints=!1,this.elastic=Lp(r),n!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&We(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=$p(o.layoutBox[i],this.constraints[i]));});}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!ut(t))return !1;let o=t.current;let{projection:n}=this.visualElement;if(!n||!n.layout)return !1;let i=Kp(o,n.root,this.visualElement.getTransformPagePoint()),a=Op(n.layout.layoutBox,i);if(r){let s=r(jp(a));this.hasMutatedConstraints=!!s,s&&(a=Ea(s));}return a}startAnimation(t){let{drag:r,dragMomentum:o,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=We(u=>{if(!Ma(u,r,this.currentDirection))return;let d=l&&l[u]||{};a&&(d={min:0,max:0});let m=n?200:1e6,p=n?40:1e7,g=f(f({type:"inertia",velocity:o?t[u]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},i),d);return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){let o=this.getAxisMotionValue(t);return o.start(Xr(t,o,0,r))}stopAnimation(){We(t=>this.getAxisMotionValue(t).stop());}getAxisMotionValue(t){let r="_drag"+t.toUpperCase(),o=this.visualElement.getProps(),n=o[r];return n||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){We(r=>{let{drag:o}=this.getProps();if(!Ma(r,o,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(r);if(n&&n.layout){let{min:a,max:s}=n.layout.layoutBox[r];i.set(t[r]-D(a,s,.5));}});}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!ut(r)||!o||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};We(a=>{let s=this.getAxisMotionValue(a);if(s){let l=s.get();n[a]=Np({min:l,max:l},this.constraints[a]);}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),We(a=>{if(!Ma(a,t,null))return;let s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(D(l,c,n[a]));});}addListeners(){if(!this.visualElement.current)return;c_.set(this.visualElement,this);let t=this.visualElement.current,r=Ae(t,"pointerdown",l=>{let{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l);}),o=()=>{let{dragConstraints:l}=this.getProps();ut(l)&&(this.constraints=this.resolveRefConstraints());},{projection:n}=this.visualElement,i=n.addEventListener("measure",o);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),o();let a=Pe(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(We(u=>{let d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate));}),this.visualElement.render());});return ()=>{a(),r(),i(),s&&s();}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=Aa,dragMomentum:s=!0}=t;return v(f({},t),{drag:r,dragDirectionLock:o,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:s})}};function Ma(e,t,r){return (t===!0||t===e)&&(r===null||r===e)}function u_(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var Va=class extends le{constructor(t){super(t),this.removeGroupControls=L,this.removeListeners=L,this.controls=new Ia(t);}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L;}unmount(){this.removeGroupControls(),this.removeListeners();}};var qp=e=>(t,r)=>{e&&N.update(()=>e(t,r));},Oa=class extends le{constructor(){super(...arguments),this.removePointerDownListener=L;}onPointerDown(t){this.session=new eo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()});}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:o,onPanEnd:n}=this.node.getProps();return {onSessionStart:qp(t),onStart:qp(r),onMove:o,onEnd:(i,a)=>{delete this.session,n&&N.update(()=>n(i,a));}}}mount(){this.removePointerDownListener=Ae(this.node.current,"pointerdown",t=>this.onPointerDown(t));}update(){this.session&&this.session.updateHandlers(this.createPanHandlers());}unmount(){this.removePointerDownListener(),this.session&&this.session.end();}};function Yp(){let e=ht.useContext(Et);if(e===null)return [!0,null];let{isPresent:t,onExitComplete:r,register:o}=e,n=ht.useId();return ht.useEffect(()=>o(n),[]),!t&&r?[!1,()=>r&&r(n)]:[!0]}var oo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var no={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;let r=Xp(e,t.target.x),o=Xp(e,t.target.y);return `${r}% ${o}%`}};var Zp={correct:(e,{treeScale:t,projectionDelta:r})=>{let o=e,n=_e.parse(e);if(n.length>5)return o;let i=_e.createTransformer(e),a=typeof n[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;n[0+a]/=s,n[1+a]/=l;let c=D(s,l,.5);return typeof n[2+a]=="number"&&(n[2+a]/=c),typeof n[3+a]=="number"&&(n[3+a]/=c),i(n)}};var Xl=class extends ht__namespace.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o,layoutId:n}=this.props,{projection:i}=t;Kf(p_),i&&(r.group&&r.group.add(i),o&&o.register&&n&&o.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove();}),i.setOptions(v(f({},i.options),{onExitComplete:()=>this.safeToRemove()}))),oo.hasEverUpdated=!0;}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:o,drag:n,isPresent:i}=this.props,a=o.projection;return a&&(a.isPresent=i,n||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||N.postRender(()=>{let s=a.getStack();(!s||!s.members.length)&&this.safeToRemove();}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove();}));}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),o&&o.deregister&&o.deregister(n));}safeToRemove(){let{safeToRemove:t}=this.props;t&&t();}render(){return null}};function Na(e){let[t,r]=Yp(),o=ht.useContext($r);return ht__namespace.default.createElement(Xl,v(f({},e),{layoutGroup:o,switchLayoutGroup:ht.useContext(Bi),isPresent:t,safeToRemove:r}))}var p_={borderRadius:v(f({},no),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:no,borderTopRightRadius:no,borderBottomLeftRadius:no,borderBottomRightRadius:no,boxShadow:Zp};var oh=["TopLeft","TopRight","BottomLeft","BottomRight"],h_=oh.length,eh=e=>typeof e=="string"?parseFloat(e):e,th=e=>typeof e=="number"||R.test(e);function nh(e,t,r,o,n,i){n?(e.opacity=D(0,r.opacity!==void 0?r.opacity:1,g_(o)),e.opacityExit=D(t.opacity!==void 0?t.opacity:1,0,y_(o))):i&&(e.opacity=D(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,o));for(let a=0;a<h_;a++){let s=`border${oh[a]}Radius`,l=rh(t,s),c=rh(r,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||th(l)===th(c)?(e[s]=Math.max(D(eh(l),eh(c),o),0),(we.test(c)||we.test(l))&&(e[s]+="%")):e[s]=c;}(t.rotate||r.rotate)&&(e.rotate=D(t.rotate||0,r.rotate||0,o));}function rh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var g_=ih(0,.5,cn),y_=ih(.5,.95,L);function ih(e,t,r){return o=>o<e?0:o>t?1:r(mt(e,t,o))}function ah(e,t){e.min=t.min,e.max=t.max;}function $e(e,t){ah(e.x,t.x),ah(e.y,t.y);}function sh(e,t,r,o,n){return e-=t,e=gn(e,1/r,o),n!==void 0&&(e=gn(e,1/n,o)),e}function v_(e,t=0,r=1,o=.5,n,i=e,a=e){if(we.test(t)&&(t=parseFloat(t),t=D(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=D(i.min,i.max,o);e===i&&(s-=t),e.min=sh(e.min,t,r,s,n),e.max=sh(e.max,t,r,s,n);}function lh(e,t,[r,o,n],i,a){v_(e,t[r],t[o],t[n],t.scale,i,a);}var b_=["x","scaleX","originX"],x_=["y","scaleY","originY"];function Zl(e,t,r,o){lh(e.x,t,b_,r?r.x:void 0,o?o.x:void 0),lh(e.y,t,x_,r?r.y:void 0,o?o.y:void 0);}function ch(e){return e.translate===0&&e.scale===1}function Jl(e){return ch(e.x)&&ch(e.y)}function uh(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Ql(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 ec(e){return pe(e.x)/pe(e.y)}var $a=class{constructor(){this.members=[];}add(t){Zr(this.members,t),t.scheduleRender();}remove(t){if(Jr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r);}}relegate(t){let r=this.members.findIndex(n=>t===n);if(r===0)return !1;let o;for(let n=r;n>=0;n--){let i=this.members[n];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(t,r){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;n===!1&&o.hide();}}exitAnimationComplete(){this.members.forEach(t=>{let{options:r,resumingFrom:o}=t;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete();});}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1);});}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0);}};function tc(e,t,r){let o="",n=e.x.translate/t.x,i=e.y.translate/t.y;if((n||i)&&(o=`translate3d(${n}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:l,rotateX:c,rotateY:u}=r;l&&(o+=`rotate(${l}deg) `),c&&(o+=`rotateX(${c}deg) `),u&&(o+=`rotateY(${u}deg) `);}let a=e.x.scale*t.x,s=e.y.scale*t.y;return (a!==1||s!==1)&&(o+=`scale(${a}, ${s})`),o||"none"}var dh=(e,t)=>e.depth-t.depth;var La=class{constructor(){this.children=[],this.isDirty=!1;}add(t){Zr(this.children,t),this.isDirty=!0;}remove(t){Jr(this.children,t),this.isDirty=!0;}forEach(t){this.isDirty&&this.children.sort(dh),this.isDirty=!1,this.children.forEach(t);}};function fh(e,t){let r=performance.now(),o=({timestamp:n})=>{let i=n-r;i>=t&&(ke(o),e(i-t));};return N.read(o,!0),()=>ke(o)}function mh(e){window.MotionDebug&&window.MotionDebug.record(e);}function ph(e){return e instanceof SVGElement&&e.tagName!=="svg"}function hh(e,t,r){let o=X(e)?e:et(e);return o.start(Xr("",o,t,r)),o.animation}var gh=["","X","Y","Z"],yh=1e3,S_=0,cr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Da({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(a={},s=t==null?void 0:t()){this.id=S_++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots());},this.updateProjection=()=>{cr.totalNodes=cr.resolvedTargetDeltas=cr.recalculatedProjection=0,this.nodes.forEach(k_),this.nodes.forEach(E_),this.nodes.forEach(R_),this.nodes.forEach(__),mh(cr);},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new La);}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Dt),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){let l=this.eventHandlers.get(a);l&&l.notify(...s);}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ph(a),this.instance=a;let{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let d,m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=fh(m,250),oo.hasAnimatedSinceResize&&(oo.hasAnimatedSinceResize=!1,this.nodes.forEach(bh));});}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:m,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let y=this.options.transition||u.getDefaultTransition()||N_,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=u.getProps(),S=!this.targetLayout||!Ql(this.targetLayout,g)||p,C=!m&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||m&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,C);let w=v(f({},xa(y,"layout")),{onPlay:b,onComplete:x});(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w);}else m||bh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g;});}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ke(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(M_),this.animationId++);}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){let d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1);}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate");}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vh);return}this.isUpdating||this.nodes.forEach(P_),this.isUpdating=!1,this.nodes.forEach(A_),this.nodes.forEach(C_),this.nodes.forEach(w_),this.clearAllSnapshots();let s=performance.now();Q.delta=Ce(0,1e3/60,s-Q.timestamp),Q.timestamp=s,Q.isProcessing=!0,ea.update.process(Q),ea.preRender.process(Q),ea.render.process(Q),Q.isProcessing=!1;}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()));}clearAllSnapshots(){this.nodes.forEach(T_),this.sharedNodes.forEach(I_);}scheduleUpdateProjection(){N.preRender(this.updateProjection,!1,!0);}scheduleCheckAfterUnmount(){N.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed();});}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure());}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0);}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:o(this.instance),offset:r(this.instance)});}resetTransform(){if(!n)return;let a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Jl(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;a&&(s||pt(this.latestValues)||u)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender());}measure(a=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),$_(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return Z();let s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(tt(s.x,l.offset.x),tt(s.y,l.offset.y)),s}removeElementScroll(a){let s=Z();$e(s,a);for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:u,options:d}=c;if(c!==this.root&&u&&d.layoutScroll){if(u.isRoot){$e(s,a);let{scroll:m}=this.root;m&&(tt(s.x,-m.offset.x),tt(s.y,-m.offset.y));}tt(s.x,u.offset.x),tt(s.y,u.offset.y);}}return s}applyTransform(a,s=!1){let l=Z();$e(l,a);for(let c=0;c<this.path.length;c++){let u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&lr(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),pt(u.latestValues)&&lr(l,u.latestValues);}return pt(this.latestValues)&&lr(l,this.latestValues),l}removeTransform(a){let s=Z();$e(s,a);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!pt(c.latestValues))continue;Ra(c.latestValues)&&c.updateSnapshot();let u=Z(),d=c.measurePageBox();$e(u,d),Zl(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u);}return pt(this.latestValues)&&Zl(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0;}setOptions(a){this.options=v(f(f({},this.options),a),{crossfade:a.crossfade!==void 0?a.crossfade:!0});}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!==Q.timestamp&&this.relativeParent.resolveTargetDelta(!0);}resolveTargetDelta(a=!1){var s;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;let{layout:d,layoutId:m}=this.options;if(!(!this.layout||!(d||m))){if(this.resolvedRelativeTargetAt=Q.timestamp,!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),ro(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),$e(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0;}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Pp(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$e(this.target,this.layout.layoutBox),ql(this.target,this.targetDelta)):$e(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),ro(this.relativeTargetOrigin,this.target,p.target),$e(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0;}cr.resolvedTargetDeltas++;}}}getClosestProjectingParent(){if(!(!this.parent||Ra(this.parent.latestValues)||Ul(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return !!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;let s=this.getLead(),l=!!this.resumingFrom||this!==s,c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Q.timestamp&&(c=!1),c)return;let{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;$e(this.layoutCorrected,this.layout.layoutBox);let m=this.treeScale.x,p=this.treeScale.y;Up(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);let{target:g}=s;if(!g){this.projectionTransform&&(this.projectionDelta=sr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=sr(),this.projectionDeltaWithTransform=sr());let y=this.projectionTransform;to(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=tc(this.projectionDelta,this.treeScale),(this.projectionTransform!==y||this.treeScale.x!==m||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),cr.recalculatedProjection++;}hide(){this.isVisible=!1;}show(){this.isVisible=!0;}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){let s=this.getStack();s&&s.scheduleRender();}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0);}setAnimationOrigin(a,s=!1){let l=this.snapshot,c=l?l.latestValues:{},u=f({},this.latestValues),d=sr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let m=Z(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=p!==g,b=this.getStack(),x=!b||b.members.length<=1,S=!!(y&&!x&&this.options.crossfade===!0&&!this.path.some(O_));this.animationProgress=0;let C;this.mixTargetDelta=w=>{let P=w/1e3;xh(d.x,a.x,P),xh(d.y,a.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ro(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),V_(this.relativeTarget,this.relativeTargetOrigin,m,P),C&&uh(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Z()),$e(C,this.relativeTarget)),y&&(this.animationValues=u,nh(u,c,this.latestValues,P,S,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P;},this.mixTargetDelta(this.options.layoutRoot?1e3:0);}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ke(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=N.update(()=>{oo.hasAnimatedSinceResize=!0,this.currentAnimation=hh(0,yh,v(f({},a),{onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s);},onComplete:()=>{a.onComplete&&a.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);let a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete");}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yh),this.currentAnimation.stop()),this.completeAnimation();}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&_h(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Z();let d=pe(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;let m=pe(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+m;}$e(s,l),lr(s,u),to(this.projectionDeltaWithTransform,this.layoutCorrected,s,u);}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new $a),this.sharedNodes.get(a).add(s);let c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0});}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){var a;let{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;let{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s});}relegate(){let a=this.getStack();return a?a.relegate(this):!1}resetRotation(){let{visualElement:a}=this.options;if(!a)return;let s=!1,{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;let c={};for(let u=0;u<gh.length;u++){let d="rotate"+gh[u];l[d]&&(c[d]=l[d],a.setStaticValue(d,0));}a.render();for(let u in c)a.setStaticValue(u,c[u]);a.scheduleRender();}getProjectionStyles(a={}){var s,l;let c={};if(!this.instance||this.isSVG)return c;if(this.isVisible)c.visibility="";else return {visibility:"hidden"};let u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Ur(a.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){let y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Ur(a.pointerEvents)||""),this.hasProjected&&!pt(this.latestValues)&&(y.transform=u?u({},""):"none",this.hasProjected=!1),y}let m=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=tc(this.projectionDeltaWithTransform,this.treeScale,m),u&&(c.transform=u(m,c.transform));let{x:p,y:g}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(s=m.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:c.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(let y in Dr){if(m[y]===void 0)continue;let{correct:b,applyTo:x}=Dr[y],S=c.transform==="none"?m[y]:b(m[y],d);if(x){let C=x.length;for(let w=0;w<C;w++)c[x[w]]=S;}else c[y]=S;}return this.options.layoutId&&(c.pointerEvents=d===this?Ur(a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0;}resetTree(){this.root.nodes.forEach(a=>{var s;return (s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(vh),this.root.sharedNodes.clear();}}}function C_(e){e.updateLayout();}function w_(e){var t;let r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:n}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?We(d=>{let m=a?r.measuredBox[d]:r.layoutBox[d],p=pe(m);m.min=o[d].min,m.max=m.min+p;}):_h(i,r.layoutBox,o)&&We(d=>{let m=a?r.measuredBox[d]:r.layoutBox[d],p=pe(o[d]);m.max=m.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p);});let s=sr();to(s,o,r.layoutBox);let l=sr();a?to(l,e.applyTransform(n,!0),r.measuredBox):to(l,o,r.layoutBox);let c=!Jl(s),u=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:m,layout:p}=d;if(m&&p){let g=Z();ro(g,r.layoutBox,m.layoutBox);let y=Z();ro(y,o,p.layoutBox),Ql(g,y)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=d);}}}e.notifyListeners("didUpdate",{layout:o,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u});}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o();}e.options.transition=void 0;}function k_(e){cr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty));}function __(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1;}function T_(e){e.clearSnapshot();}function vh(e){e.clearMeasurements();}function P_(e){e.isLayoutDirty=!1;}function A_(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform();}function bh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0;}function E_(e){e.resolveTargetDelta();}function R_(e){e.calcProjection();}function M_(e){e.resetRotation();}function I_(e){e.removeLeadSnapshot();}function xh(e,t,r){e.translate=D(t.translate,0,r),e.scale=D(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint;}function Sh(e,t,r,o){e.min=D(t.min,r.min,o),e.max=D(t.max,r.max,o);}function V_(e,t,r,o){Sh(e.x,t.x,r.x,o),Sh(e.y,t.y,r.y,o);}function O_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var N_={duration:.45,ease:[.4,0,.1,1]},Ch=e=>typeof navigator!="undefined"&&navigator.userAgent.toLowerCase().includes(e),wh=Ch("applewebkit/")&&!Ch("chrome/")?Math.round:L;function kh(e){e.min=wh(e.min),e.max=wh(e.max);}function $_(e){kh(e.x),kh(e.y);}function _h(e,t,r){return e==="position"||e==="preserve-aspect"&&!Pa(ec(t),ec(r),.2)}var Th=Da({attachResizeListener:(e,t)=>Pe(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var rc={current:void 0},Ba=Da({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rc.current){let e=new Th({});e.mount(window),e.setOptions({layoutScroll:!0}),rc.current=e;}return rc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none";},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Ph={pan:{Feature:Oa},drag:{Feature:Va,ProjectionNode:Ba,MeasureLayout:Na}};var L_=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function D_(e){let t=L_.exec(e);if(!t)return [,];let[,r,o]=t;return [r,o]}function oc(e,t,r=1){let[o,n]=D_(e);if(!o)return;let i=window.getComputedStyle(t).getPropertyValue(o);if(i){let a=i.trim();return Sa(a)?parseFloat(a):a}else return Wi(n)?oc(n,t,r+1):n}function Ah(e,o,r){var t=k(o,[]);let n=e.current;if(!(n instanceof Element))return {target:t,transitionEnd:r};r&&(r=f({},r)),e.values.forEach(i=>{let a=i.get();if(!Wi(a))return;let s=oc(a,n);s&&i.set(s);});for(let i in t){let a=t[i];if(!Wi(a))continue;let s=oc(a,n);s&&(t[i]=s,r||(r={}),r[i]===void 0&&(r[i]=a));}return {target:t,transitionEnd:r}}var j_=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Mh=e=>j_.has(e),z_=e=>Object.keys(e).some(Mh),ja=e=>e===Fe||e===R,Eh=(e,t)=>parseFloat(e.split(", ")[t]),Rh=(e,t)=>(r,{transform:o})=>{if(o==="none"||!o)return 0;let n=o.match(/^matrix3d\((.+)\)$/);if(n)return Eh(n[1],t);{let i=o.match(/^matrix\((.+)\)$/);return i?Eh(i[1],e):0}},F_=new Set(["x","y","z"]),W_=It.filter(e=>!F_.has(e));function H_(e){let t=[];return W_.forEach(r=>{let o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0));}),t.length&&e.render(),t}var io={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:Rh(4,13),y:Rh(5,14)};io.translateX=io.x;io.translateY=io.y;var G_=(e,t,r)=>{let o=t.measureViewportBox(),n=t.current,i=getComputedStyle(n),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{s[c]=io[c](o,i);}),t.render();let l=t.measureViewportBox();return r.forEach(c=>{let u=t.getValue(c);u&&u.jump(s[c]),e[c]=io[c](l,i);}),e},U_=(e,t,r={},o={})=>{t=f({},t),o=f({},o);let n=Object.keys(t).filter(Mh),i=[],a=!1,s=[];if(n.forEach(l=>{let c=e.getValue(l);if(!e.hasValue(l))return;let u=r[l],d=Qr(u),m=t[l],p;if(rr(m)){let g=m.length,y=m[0]===null?1:0;u=m[y],d=Qr(u);for(let b=y;b<g&&m[b]!==null;b++)p?ge(Qr(m[b])===p):(p=Qr(m[b]),ge(p===d||ja(d)&&ja(p)));}else p=Qr(m);if(d!==p)if(ja(d)&&ja(p)){let g=c.get();typeof g=="string"&&c.set(parseFloat(g)),typeof m=="string"?t[l]=parseFloat(m):Array.isArray(m)&&p===R&&(t[l]=m.map(parseFloat));}else d!=null&&d.transform&&(p!=null&&p.transform)&&(u===0||m===0)?u===0?c.set(p.transform(u)):t[l]=d.transform(m):(a||(i=H_(e),a=!0),s.push(l),o[l]=o[l]!==void 0?o[l]:t[l],c.jump(m));}),s.length){let l=s.indexOf("height")>=0?window.pageYOffset:null,c=G_(t,e,s);return i.length&&i.forEach(([u,d])=>{e.getValue(u).set(d);}),e.render(),Rt&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:o}}else return {target:t,transitionEnd:o}};function Ih(e,t,r,o){return z_(t)?U_(e,t,r,o):{target:t,transitionEnd:o}}var Vh=(e,t,r,o)=>{let n=Ah(e,t,o);return t=n.target,o=n.transitionEnd,Ih(e,t,r,o)};var yn={current:null},za={current:!1};function Oh(){if(za.current=!0,!!Rt)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yn.current=e.matches;e.addListener(t),t();}else yn.current=!1;}function Nh(e,t,r){let{willChange:o}=t;for(let n in t){let i=t[n],a=r[n];if(X(i))e.addValue(n,i),ir(o)&&o.add(n);else if(X(a))e.addValue(n,et(i,{owner:e})),ir(o)&&o.remove(n);else if(a!==i)if(e.hasValue(n)){let s=e.getValue(n);!s.hasAnimated&&s.set(i);}else {let s=e.getStaticValue(n);e.addValue(n,et(s!==void 0?s:i,{owner:e}));}}for(let n in r)t[n]===void 0&&e.removeValue(n);return t}var nc=new WeakMap;var Lh=Object.keys(er),K_=Lh.length,$h=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],q_=on.length,Fa=class{constructor({parent:t,props:r,presenceContext:o,reducedMotionConfig:n,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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=()=>N.render(this.render,!1,!0);let{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget=f({},s),this.initialValues=r.initial?f({},s):{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.isControllingVariants=Qt(r),this.isVariantNode=Di(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let d=this.scrapeMotionValuesFromProps(r,{}),{willChange:c}=d,u=k(d,["willChange"]);for(let m in u){let p=u[m];s[m]!==void 0&&X(p)&&(p.set(s[m],!1),ir(c)&&c.add(m));}}scrapeMotionValuesFromProps(t,r){return {}}mount(t){this.current=t,nc.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),za.current||Oh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:yn.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext);}unmount(){nc.delete(this.current),this.projection&&this.projection.unmount(),ke(this.notifyUpdate),ke(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null;}bindToMotionValue(t,r){let o=Te.has(t),n=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&N.update(this.notifyUpdate,!1,!0),o&&this.projection&&(this.projection.isTransformDirty=!0);}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),i();});}sortNodePosition(t){return !this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(a,o,n,i){var s=a,r=k(s,["children"]);let l,c;for(let u=0;u<K_;u++){let d=Lh[u],{isEnabled:m,Feature:p,ProjectionNode:g,MeasureLayout:y}=er[d];g&&(l=g),m(r)&&(!this.features[d]&&p&&(this.features[d]=new p(this)),y&&(c=y));}if(!this.projection&&l){this.projection=new l(this.latestValues,this.parent&&this.parent.projection);let{layoutId:u,layout:d,drag:m,dragConstraints:p,layoutScroll:g,layoutRoot:y}=r;this.projection.setOptions({layoutId:u,layout:d,alwaysMeasureLayout:!!m||p&&ut(p),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:i,layoutScroll:g,layoutRoot:y});}return c}updateFeatures(){for(let t in this.features){let r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0);}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props);}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r;}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<$h.length;o++){let n=$h[o];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i));}this.prevMotionValues=Nh(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue();}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let o=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(o.initial=this.props.initial),o}let r={};for(let o=0;o<q_;o++){let n=on[o],i=this.props[n];(dt(i)||i===!1)&&(r[n]=i);}return r}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get();}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState);}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&r!==void 0&&(o=et(r,{owner:this}),this.addValue(t,o)),o}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r;}getBaseTarget(t){var r;let{initial:o}=this.props,n=typeof o=="string"||typeof o=="object"?(r=Gr(this.props,o))===null||r===void 0?void 0:r[t]:void 0;if(o&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!X(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Dt),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r);}};var ao=class extends Fa{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:o}){delete r[t],delete o[t];}makeTargetAnimatableFromInstance(a,{transformValues:n},i){var s=a,{transition:t,transitionEnd:r}=s,o=k(s,["transition","transitionEnd"]);let l=gp(o,t||{},this);if(n&&(r&&(r=n(r)),o&&(o=n(o)),l&&(l=n(l))),i){hp(this,o,l);let c=Vh(this,o,l,r);r=c.transitionEnd,o=c.target;}return f({transition:t,transitionEnd:r},o)}};function Y_(e){return window.getComputedStyle(e)}var Wa=class extends ao{readValueFromInstance(t,r){if(Te.has(r)){let o=Yr(r);return o&&o.default||0}else {let o=Y_(t),n=(Fi(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Yl(t,r)}build(t,r,o,n){Br(t,r,o,n.transformTemplate);}scrapeMotionValuesFromProps(t,r){return Hr(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;X(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`);}));}renderInstance(t,r,o,n){Ui(t,r,o,n);}};var Ha=class extends ao{constructor(){super(...arguments),this.isSVGTag=!1;}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Te.has(r)){let o=Yr(r);return o&&o.default||0}return r=Ki.has(r)?r:Wr(r),t.getAttribute(r)}measureInstanceViewportBox(){return Z()}scrapeMotionValuesFromProps(t,r){return Yi(t,r)}build(t,r,o,n){zr(t,r,o,this.isSVGTag,n.transformTemplate);}renderInstance(t,r,o,n){qi(t,r,o,n);}mount(t){this.isSVGTag=Fr(t.tagName),super.mount(t);}};var Dh=(e,t)=>Lr(e)?new Ha(t,{enableHardwareAcceleration:!1}):new Wa(t,{enableHardwareAcceleration:!0});var Bh={layout:{ProjectionNode:Ba,MeasureLayout:Na}};var X_=f(f(f(f({},bp),Pm),Ph),Bh),Le=Gf((e,t)=>xm(e,t,X_,Dh));function Ga(){let e=ht.useRef(!1);return Nr(()=>(e.current=!0,()=>{e.current=!1;}),[]),e}function zh(){let e=Ga(),[t,r]=ht.useState(0),o=ht.useCallback(()=>{e.current&&r(t+1);},[t]);return [ht.useCallback(()=>N.postRender(o),[o]),t]}var ic=class extends ht__namespace.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let o=this.props.sizeRef.current;o.height=r.offsetHeight||0,o.width=r.offsetWidth||0,o.top=r.offsetTop,o.left=r.offsetLeft;}return null}componentDidUpdate(){}render(){return this.props.children}};function Wh({children:e,isPresent:t}){let r=ht.useId(),o=ht.useRef(null),n=ht.useRef({width:0,height:0,top:0,left:0});return ht.useInsertionEffect(()=>{let{width:i,height:a,top:s,left:l}=n.current;if(t||!o.current||!i||!a)return;o.current.dataset.motionPopId=r;let c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
28
|
+
var o0=Object.create;var Bo=Object.defineProperty,n0=Object.defineProperties,i0=Object.getOwnPropertyDescriptor,a0=Object.getOwnPropertyDescriptors,s0=Object.getOwnPropertyNames,qn=Object.getOwnPropertySymbols,l0=Object.getPrototypeOf,Fs=Object.prototype.hasOwnProperty,Lu=Object.prototype.propertyIsEnumerable;var jo=Math.pow,Iu=(e,t,r)=>t in e?Bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t)=>{for(var r in t||(t={}))Fs.call(t,r)&&Iu(e,r,t[r]);if(qn)for(var r of qn(t))Lu.call(t,r)&&Iu(e,r,t[r]);return e},b=(e,t)=>n0(e,a0(t));var P=(e,t)=>{var r={};for(var o in e)Fs.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&qn)for(var o of qn(e))t.indexOf(o)<0&&Lu.call(e,o)&&(r[o]=e[o]);return r};var Ou=(e,t)=>()=>(e&&(t=e(e=0)),t);var zo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c0=(e,t)=>{for(var r in t)Bo(e,r,{get:t[r],enumerable:!0});},Du=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of s0(t))!Fs.call(e,n)&&n!==r&&Bo(e,n,{get:()=>t[n],enumerable:!(o=i0(t,n))||o.enumerable});return e};var Kt=(e,t,r)=>(r=e!=null?o0(l0(e)):{},Du(t||!e||!e.__esModule?Bo(r,"default",{value:e,enumerable:!0}):r,e)),u0=e=>Du(Bo({},"__esModule",{value:!0}),e);var uf=zo(q=>{var le=typeof Symbol=="function"&&Symbol.for,Us=le?Symbol.for("react.element"):60103,Ys=le?Symbol.for("react.portal"):60106,ni=le?Symbol.for("react.fragment"):60107,ii=le?Symbol.for("react.strict_mode"):60108,ai=le?Symbol.for("react.profiler"):60114,si=le?Symbol.for("react.provider"):60109,li=le?Symbol.for("react.context"):60110,qs=le?Symbol.for("react.async_mode"):60111,ci=le?Symbol.for("react.concurrent_mode"):60111,ui=le?Symbol.for("react.forward_ref"):60112,fi=le?Symbol.for("react.suspense"):60113,P0=le?Symbol.for("react.suspense_list"):60120,di=le?Symbol.for("react.memo"):60115,pi=le?Symbol.for("react.lazy"):60116,E0=le?Symbol.for("react.block"):60121,$0=le?Symbol.for("react.fundamental"):60117,_0=le?Symbol.for("react.responder"):60118,A0=le?Symbol.for("react.scope"):60119;function De(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Us:switch(e=e.type,e){case qs:case ci:case ni:case ai:case ii:case fi:return e;default:switch(e=e&&e.$$typeof,e){case li:case ui:case pi:case di:case si:return e;default:return t}}case Ys:return t}}}function cf(e){return De(e)===ci}q.AsyncMode=qs;q.ConcurrentMode=ci;q.ContextConsumer=li;q.ContextProvider=si;q.Element=Us;q.ForwardRef=ui;q.Fragment=ni;q.Lazy=pi;q.Memo=di;q.Portal=Ys;q.Profiler=ai;q.StrictMode=ii;q.Suspense=fi;q.isAsyncMode=function(e){return cf(e)||De(e)===qs};q.isConcurrentMode=cf;q.isContextConsumer=function(e){return De(e)===li};q.isContextProvider=function(e){return De(e)===si};q.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Us};q.isForwardRef=function(e){return De(e)===ui};q.isFragment=function(e){return De(e)===ni};q.isLazy=function(e){return De(e)===pi};q.isMemo=function(e){return De(e)===di};q.isPortal=function(e){return De(e)===Ys};q.isProfiler=function(e){return De(e)===ai};q.isStrictMode=function(e){return De(e)===ii};q.isSuspense=function(e){return De(e)===fi};q.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ni||e===ci||e===ai||e===ii||e===fi||e===P0||typeof e=="object"&&e!==null&&(e.$$typeof===pi||e.$$typeof===di||e.$$typeof===si||e.$$typeof===li||e.$$typeof===ui||e.$$typeof===$0||e.$$typeof===_0||e.$$typeof===A0||e.$$typeof===E0)};q.typeOf=De;});var df=zo((Z3,ff)=>{ff.exports=uf();});var bf=zo((J3,vf)=>{var Xs=df(),M0={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},R0={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},I0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zs={};Zs[Xs.ForwardRef]=I0;Zs[Xs.Memo]=gf;function pf(e){return Xs.isMemo(e)?gf:Zs[e.$$typeof]||M0}var L0=Object.defineProperty,O0=Object.getOwnPropertyNames,mf=Object.getOwnPropertySymbols,D0=Object.getOwnPropertyDescriptor,V0=Object.getPrototypeOf,hf=Object.prototype;function yf(e,t,r){if(typeof t!="string"){if(hf){var o=V0(t);o&&o!==hf&&yf(e,o,r);}var n=O0(t);mf&&(n=n.concat(mf(t)));for(var i=pf(e),a=pf(t),s=0;s<n.length;++s){var l=n[s];if(!R0[l]&&!(r&&r[l])&&!(a&&a[l])&&!(i&&i[l])){var c=D0(t,l);try{L0(e,l,c);}catch(u){}}}}return e}vf.exports=yf;});var Or=zo((Xo,Rr)=>{var Z0=200,Nf="__lodash_hash_undefined__",J0=800,Q0=16,Bf=9007199254740991,jf="[object Arguments]",eb="[object Array]",tb="[object AsyncFunction]",rb="[object Boolean]",ob="[object Date]",nb="[object Error]",zf="[object Function]",ib="[object GeneratorFunction]",ab="[object Map]",sb="[object Number]",lb="[object Null]",Ff="[object Object]",cb="[object Proxy]",ub="[object RegExp]",fb="[object Set]",db="[object String]",pb="[object Undefined]",mb="[object WeakMap]",hb="[object ArrayBuffer]",gb="[object DataView]",yb="[object Float32Array]",vb="[object Float64Array]",bb="[object Int8Array]",xb="[object Int16Array]",Sb="[object Int32Array]",wb="[object Uint8Array]",Cb="[object Uint8ClampedArray]",Tb="[object Uint16Array]",kb="[object Uint32Array]",Pb=/[\\^$.*+?()[\]{}|]/g,Eb=/^\[object .+?Constructor\]$/,$b=/^(?:0|[1-9]\d*)$/,J={};J[yb]=J[vb]=J[bb]=J[xb]=J[Sb]=J[wb]=J[Cb]=J[Tb]=J[kb]=!0;J[jf]=J[eb]=J[hb]=J[rb]=J[gb]=J[ob]=J[nb]=J[zf]=J[ab]=J[sb]=J[Ff]=J[ub]=J[fb]=J[db]=J[mb]=!1;var Wf=typeof global=="object"&&global&&global.Object===Object&&global,_b=typeof self=="object"&&self&&self.Object===Object&&self,Qo=Wf||_b||Function("return this")(),Hf=typeof Xo=="object"&&Xo&&!Xo.nodeType&&Xo,Zo=Hf&&typeof Rr=="object"&&Rr&&!Rr.nodeType&&Rr,Kf=Zo&&Zo.exports===Hf,el=Kf&&Wf.process,_f=function(){try{var e=Zo&&Zo.require&&Zo.require("util").types;return e||el&&el.binding&&el.binding("util")}catch(t){}}(),Af=_f&&_f.isTypedArray;function Ab(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Mb(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}function Rb(e){return function(t){return e(t)}}function Ib(e,t){return e==null?void 0:e[t]}function Lb(e,t){return function(r){return e(t(r))}}var Ob=Array.prototype,Db=Function.prototype,ki=Object.prototype,tl=Qo["__core-js_shared__"],Pi=Db.toString,ut=ki.hasOwnProperty,Mf=function(){var e=/[^.]+$/.exec(tl&&tl.keys&&tl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Gf=ki.toString,Vb=Pi.call(Object),Nb=RegExp("^"+Pi.call(ut).replace(Pb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ci=Kf?Qo.Buffer:void 0,Rf=Qo.Symbol,If=Qo.Uint8Array,Lf=Ci?Ci.allocUnsafe:void 0,Uf=Lb(Object.getPrototypeOf,Object),Of=Object.create,Bb=ki.propertyIsEnumerable,jb=Ob.splice,Yt=Rf?Rf.toStringTag:void 0,Ti=function(){try{var e=sl(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),zb=Ci?Ci.isBuffer:void 0,Df=Math.max,Fb=Date.now,Yf=sl(Qo,"Map"),Jo=sl(Object,"create"),Wb=function(){function e(){}return function(t){if(!Xt(t))return {};if(Of)return Of(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1]);}}function Hb(){this.__data__=Jo?Jo(null):{},this.size=0;}function Kb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Gb(e){var t=this.__data__;if(Jo){var r=t[e];return r===Nf?void 0:r}return ut.call(t,e)?t[e]:void 0}function Ub(e){var t=this.__data__;return Jo?t[e]!==void 0:ut.call(t,e)}function Yb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Jo&&t===void 0?Nf:t,this}qt.prototype.clear=Hb;qt.prototype.delete=Kb;qt.prototype.get=Gb;qt.prototype.has=Ub;qt.prototype.set=Yb;function ft(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1]);}}function qb(){this.__data__=[],this.size=0;}function Xb(e){var t=this.__data__,r=Ei(t,e);if(r<0)return !1;var o=t.length-1;return r==o?t.pop():jb.call(t,r,1),--this.size,!0}function Zb(e){var t=this.__data__,r=Ei(t,e);return r<0?void 0:t[r][1]}function Jb(e){return Ei(this.__data__,e)>-1}function Qb(e,t){var r=this.__data__,o=Ei(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}ft.prototype.clear=qb;ft.prototype.delete=Xb;ft.prototype.get=Zb;ft.prototype.has=Jb;ft.prototype.set=Qb;function Ir(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1]);}}function ex(){this.size=0,this.__data__={hash:new qt,map:new(Yf||ft),string:new qt};}function tx(e){var t=_i(this,e).delete(e);return this.size-=t?1:0,t}function rx(e){return _i(this,e).get(e)}function ox(e){return _i(this,e).has(e)}function nx(e,t){var r=_i(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}Ir.prototype.clear=ex;Ir.prototype.delete=tx;Ir.prototype.get=rx;Ir.prototype.has=ox;Ir.prototype.set=nx;function Lr(e){var t=this.__data__=new ft(e);this.size=t.size;}function ix(){this.__data__=new ft,this.size=0;}function ax(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function sx(e){return this.__data__.get(e)}function lx(e){return this.__data__.has(e)}function cx(e,t){var r=this.__data__;if(r instanceof ft){var o=r.__data__;if(!Yf||o.length<Z0-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ir(o);}return r.set(e,t),this.size=r.size,this}Lr.prototype.clear=ix;Lr.prototype.delete=ax;Lr.prototype.get=sx;Lr.prototype.has=lx;Lr.prototype.set=cx;function ux(e,t){var r=il(e),o=!r&&nl(e),n=!r&&!o&&Jf(e),i=!r&&!o&&!n&&ed(e),a=r||o||n||i,s=a?Mb(e.length,String):[],l=s.length;for(var c in e)(t||ut.call(e,c))&&!(a&&(c=="length"||n&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Xf(c,l)))&&s.push(c);return s}function rl(e,t,r){(r!==void 0&&!Ai(e[t],r)||r===void 0&&!(t in e))&&al(e,t,r);}function fx(e,t,r){var o=e[t];(!(ut.call(e,t)&&Ai(o,r))||r===void 0&&!(t in e))&&al(e,t,r);}function Ei(e,t){for(var r=e.length;r--;)if(Ai(e[r][0],t))return r;return -1}function al(e,t,r){t=="__proto__"&&Ti?Ti(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r;}var dx=kx();function $i(e){return e==null?e===void 0?pb:lb:Yt&&Yt in Object(e)?Px(e):Rx(e)}function Vf(e){return en(e)&&$i(e)==jf}function px(e){if(!Xt(e)||Ax(e))return !1;var t=cl(e)?Nb:Eb;return t.test(Dx(e))}function mx(e){return en(e)&&Qf(e.length)&&!!J[$i(e)]}function hx(e){if(!Xt(e))return Mx(e);var t=Zf(e),r=[];for(var o in e)o=="constructor"&&(t||!ut.call(e,o))||r.push(o);return r}function qf(e,t,r,o,n){e!==t&&dx(t,function(i,a){if(n||(n=new Lr),Xt(i))gx(e,t,a,r,qf,o,n);else {var s=o?o(ol(e,a),i,a+"",e,t,n):void 0;s===void 0&&(s=i),rl(e,a,s);}},td);}function gx(e,t,r,o,n,i,a){var s=ol(e,r),l=ol(t,r),c=a.get(l);if(c){rl(e,r,c);return}var u=i?i(s,l,r+"",e,t,a):void 0,f=u===void 0;if(f){var p=il(l),m=!p&&Jf(l),v=!p&&!m&&ed(l);u=l,p||m||v?il(s)?u=s:Vx(s)?u=wx(s):m?(f=!1,u=bx(l,!0)):v?(f=!1,u=Sx(l,!0)):u=[]:Nx(l)||nl(l)?(u=s,nl(s)?u=Bx(s):(!Xt(s)||cl(s))&&(u=Ex(l))):f=!1;}f&&(a.set(l,u),n(u,l,o,i,a),a.delete(l)),rl(e,r,u);}function yx(e,t){return Lx(Ix(e,t,rd),e+"")}var vx=Ti?function(e,t){return Ti(e,"toString",{configurable:!0,enumerable:!1,value:zx(t),writable:!0})}:rd;function bx(e,t){if(t)return e.slice();var r=e.length,o=Lf?Lf(r):new e.constructor(r);return e.copy(o),o}function xx(e){var t=new e.constructor(e.byteLength);return new If(t).set(new If(e)),t}function Sx(e,t){var r=t?xx(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function wx(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}function Cx(e,t,r,o){var n=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=o?o(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),n?al(r,s,l):fx(r,s,l);}return r}function Tx(e){return yx(function(t,r){var o=-1,n=r.length,i=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,a&&$x(r[0],r[1],a)&&(i=n<3?void 0:i,n=1),t=Object(t);++o<n;){var s=r[o];s&&e(t,s,o,i);}return t})}function kx(e){return function(t,r,o){for(var n=-1,i=Object(t),a=o(t),s=a.length;s--;){var l=a[e?s:++n];if(r(i[l],l,i)===!1)break}return t}}function _i(e,t){var r=e.__data__;return _x(t)?r[typeof t=="string"?"string":"hash"]:r.map}function sl(e,t){var r=Ib(e,t);return px(r)?r:void 0}function Px(e){var t=ut.call(e,Yt),r=e[Yt];try{e[Yt]=void 0;var o=!0;}catch(i){}var n=Gf.call(e);return o&&(t?e[Yt]=r:delete e[Yt]),n}function Ex(e){return typeof e.constructor=="function"&&!Zf(e)?Wb(Uf(e)):{}}function Xf(e,t){var r=typeof e;return t=t==null?Bf:t,!!t&&(r=="number"||r!="symbol"&&$b.test(e))&&e>-1&&e%1==0&&e<t}function $x(e,t,r){if(!Xt(r))return !1;var o=typeof t;return (o=="number"?ll(r)&&Xf(t,r.length):o=="string"&&t in r)?Ai(r[t],e):!1}function _x(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ax(e){return !!Mf&&Mf in e}function Zf(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ki;return e===r}function Mx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}function Rx(e){return Gf.call(e)}function Ix(e,t,r){return t=Df(t===void 0?e.length-1:t,0),function(){for(var o=arguments,n=-1,i=Df(o.length-t,0),a=Array(i);++n<i;)a[n]=o[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=o[n];return s[t]=r(a),Ab(e,this,s)}}function ol(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Lx=Ox(vx);function Ox(e){var t=0,r=0;return function(){var o=Fb(),n=Q0-(o-r);if(r=o,n>0){if(++t>=J0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Dx(e){if(e!=null){try{return Pi.call(e)}catch(t){}try{return e+""}catch(t){}}return ""}function Ai(e,t){return e===t||e!==e&&t!==t}var nl=Vf(function(){return arguments}())?Vf:function(e){return en(e)&&ut.call(e,"callee")&&!Bb.call(e,"callee")},il=Array.isArray;function ll(e){return e!=null&&Qf(e.length)&&!cl(e)}function Vx(e){return en(e)&&ll(e)}var Jf=zb||Fx;function cl(e){if(!Xt(e))return !1;var t=$i(e);return t==zf||t==ib||t==tb||t==cb}function Qf(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Bf}function Xt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function en(e){return e!=null&&typeof e=="object"}function Nx(e){if(!en(e)||$i(e)!=Ff)return !1;var t=Uf(e);if(t===null)return !0;var r=ut.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Pi.call(r)==Vb}var ed=Af?Rb(Af):mx;function Bx(e){return Cx(e,td(e))}function td(e){return ll(e)?ux(e,!0):hx(e)}var jx=Tx(function(e,t,r,o){qf(e,t,r,o);});function zx(e){return function(){return e}}function rd(e){return e}function Fx(){return !1}Rr.exports=jx;});var Md=zo((T6,Ad)=>{var v1=typeof Element!="undefined",b1=typeof Map=="function",x1=typeof Set=="function",S1=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bi(e,t){if(e===t)return !0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return !1;var r,o,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return !1;for(o=r;o--!==0;)if(!Bi(e[o],t[o]))return !1;return !0}var i;if(b1&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return !1;for(i=e.entries();!(o=i.next()).done;)if(!t.has(o.value[0]))return !1;for(i=e.entries();!(o=i.next()).done;)if(!Bi(o.value[1],t.get(o.value[0])))return !1;return !0}if(x1&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return !1;for(i=e.entries();!(o=i.next()).done;)if(!t.has(o.value[0]))return !1;return !0}if(S1&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return !1;for(o=r;o--!==0;)if(e[o]!==t[o])return !1;return !0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return !1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return !1;if(v1&&e instanceof Element)return !1;for(o=r;o--!==0;)if(!((n[o]==="_owner"||n[o]==="__v"||n[o]==="__o")&&e.$$typeof)&&!Bi(e[n[o]],t[n[o]]))return !1;return !0}return e!==e&&t!==t}Ad.exports=function(t,r){try{return Bi(t,r)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};});function Pk(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Qp,em=Ou(()=>{Qp=Pk;});var tm={};c0(tm,{default:()=>_k});var Ek,$k,_k,rm=Ou(()=>{em();Ek=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,$k=Qp(function(e){return Ek.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_k=$k;});var xr="@saas-ui/storybook-addon2",Vu=`${xr}/direction-tool`,ct={TOGGLE_COLOR_MODE:`${xr}/toggleColorMode`,TOGGLE_DIRECTION:`${xr}/toggleDirection`,SET_THEME:`${xr}/setTheme`};function Nu(){let{setColorMode:e}=react.useColorMode();return bt.useEffect(()=>{let t=previewApi.addons.getChannel(),r=o=>e(o);return t.on(ct.TOGGLE_COLOR_MODE,r),()=>{t.removeListener(ct.TOGGLE_COLOR_MODE,r);}},[e]),null}var ju=(e="ltr")=>{let[t,r]=bt.useState(e.toLowerCase());return bt.useEffect(()=>{document.documentElement.dir=t;},[t]),bt.useEffect(()=>{let o=previewApi.addons.getChannel(),n=i=>r(i);return o.on(ct.TOGGLE_DIRECTION,n),()=>{o.removeListener(ct.TOGGLE_DIRECTION,n);}},[r]),t};function g0(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]}function y0(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var zu=function(){function e(r){var o=this;this._insertTag=function(n){var i;o.tags.length===0?o.insertionPoint?i=o.insertionPoint.nextSibling:o.prepend?i=o.container.firstChild:i=o.before:i=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,i),o.tags.push(n);},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag);},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(y0(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var a=g0(n);try{a.insertRule(o,a.cssRules.length);}catch(s){}}else n.appendChild(document.createTextNode(o));this.ctr++;},t.flush=function(){this.tags.forEach(function(o){return o.parentNode&&o.parentNode.removeChild(o)}),this.tags=[],this.ctr=0;},e}();var pe="-ms-",Fo="-moz-",U="-webkit-",Xn="comm",Sr="rule",wr="decl";var Fu="@import";var Zn="@keyframes";var Wu="@layer";var Hu=Math.abs,Gt=String.fromCharCode,Ku=Object.assign;function Gu(e,t){return ie(e,0)^45?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}function Jn(e){return e.trim()}function Ws(e,t){return (e=t.exec(e))?e[0]:e}function G(e,t,r){return e.replace(t,r)}function Wo(e,t){return e.indexOf(t)}function ie(e,t){return e.charCodeAt(t)|0}function Ct(e,t,r){return e.slice(t,r)}function ve(e){return e.length}function Cr(e){return e.length}function Tr(e,t){return t.push(e),e}function Hs(e,t){return e.map(t).join("")}var Qn=1,kr=1,Uu=0,be=0,ae=0,Er="";function Ho(e,t,r,o,n,i,a){return {value:e,root:t,parent:r,type:o,props:n,children:i,line:Qn,column:kr,length:a,return:""}}function $r(e,t){return Ku(Ho("",null,null,"",null,null,0),e,{length:-e.length},t)}function Yu(){return ae}function qu(){return ae=be>0?ie(Er,--be):0,kr--,ae===10&&(kr=1,Qn--),ae}function xe(){return ae=be<Uu?ie(Er,be++):0,kr++,ae===10&&(kr=1,Qn++),ae}function ze(){return ie(Er,be)}function Ko(){return be}function _r(e,t){return Ct(Er,e,t)}function Pr(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 ei(e){return Qn=kr=1,Uu=ve(Er=e),be=0,[]}function ti(e){return Er="",e}function Ar(e){return Jn(_r(be-1,Ks(e===91?e+2:e===40?e+1:e)))}function Xu(e){for(;(ae=ze())&&ae<33;)xe();return Pr(e)>2||Pr(ae)>3?"":" "}function Zu(e,t){for(;--t&&xe()&&!(ae<48||ae>102||ae>57&&ae<65||ae>70&&ae<97););return _r(e,Ko()+(t<6&&ze()==32&&xe()==32))}function Ks(e){for(;xe();)switch(ae){case e:return be;case 34:case 39:e!==34&&e!==39&&Ks(ae);break;case 40:e===41&&Ks(e);break;case 92:xe();break}return be}function Ju(e,t){for(;xe()&&e+ae!==47+10;)if(e+ae===42+42&&ze()===47)break;return "/*"+_r(t,be-1)+"*"+Gt(e===47?e:xe())}function Qu(e){for(;!Pr(ze());)xe();return _r(e,be)}function rf(e){return ti(ri("",null,null,null,[""],e=ei(e),0,[0],e))}function ri(e,t,r,o,n,i,a,s,l){for(var c=0,u=0,f=a,p=0,m=0,v=0,y=1,x=1,w=1,S=0,C="",k=n,$=i,L=o,R=C;x;)switch(v=S,S=xe()){case 40:if(v!=108&&ie(R,f-1)==58){Wo(R+=G(Ar(S),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:R+=Ar(S);break;case 9:case 10:case 13:case 32:R+=Xu(v);break;case 92:R+=Zu(Ko()-1,7);continue;case 47:switch(ze()){case 42:case 47:Tr(v0(Ju(xe(),Ko()),t,r),l);break;default:R+="/";}break;case 123*y:s[c++]=ve(R)*w;case 125*y:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+u:w==-1&&(R=G(R,/\f/g,"")),m>0&&ve(R)-f&&Tr(m>32?tf(R+";",o,r,f-1):tf(G(R," ","")+";",o,r,f-2),l);break;case 59:R+=";";default:if(Tr(L=ef(R,t,r,c,u,n,s,C,k=[],$=[],f),i),S===123)if(u===0)ri(R,t,L,L,k,i,f,s,$);else switch(p===99&&ie(R,3)===110?100:p){case 100:case 108:case 109:case 115:ri(e,L,L,o&&Tr(ef(e,L,L,0,0,n,s,C,n,k=[],f),$),n,$,f,s,o?k:$);break;default:ri(R,L,L,L,[""],$,0,s,$);}}c=u=m=0,y=w=1,C=R="",f=a;break;case 58:f=1+ve(R),m=v;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&qu()==125)continue}switch(R+=Gt(S),S*y){case 38:w=u>0?1:(R+="\f",-1);break;case 44:s[c++]=(ve(R)-1)*w,w=1;break;case 64:ze()===45&&(R+=Ar(xe())),p=ze(),u=f=ve(C=R+=Qu(Ko())),S++;break;case 45:v===45&&ve(R)==2&&(y=0);}}return i}function ef(e,t,r,o,n,i,a,s,l,c,u){for(var f=n-1,p=n===0?i:[""],m=Cr(p),v=0,y=0,x=0;v<o;++v)for(var w=0,S=Ct(e,f+1,f=Hu(y=a[v])),C=e;w<m;++w)(C=Jn(y>0?p[w]+" "+S:G(S,/&\f/g,p[w])))&&(l[x++]=C);return Ho(e,t,r,n===0?Sr:s,l,c,u)}function v0(e,t,r){return Ho(e,t,r,Xn,Gt(Yu()),Ct(e,2,-2),0)}function tf(e,t,r,o){return Ho(e,t,r,wr,Ct(e,0,o),Ct(e,o+1,-1),o)}function Ut(e,t){for(var r="",o=Cr(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function of(e,t,r,o){switch(e.type){case Wu:if(e.children.length)break;case Fu:case wr:return e.return=e.return||e.value;case Xn:return "";case Zn:return e.return=e.value+"{"+Ut(e.children,o)+"}";case Sr:e.value=e.props.join(",");}return ve(r=Ut(e.children,o))?e.return=e.value+"{"+r+"}":""}function nf(e){var t=Cr(e);return function(r,o,n,i){for(var a="",s=0;s<t;s++)a+=e[s](r,o,n,i)||"";return a}}function af(e){return function(t){t.root||(t=t.return)&&e(t);}}function oi(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var b0=function(t,r,o){for(var n=0,i=0;n=i,i=ze(),n===38&&i===12&&(r[o]=1),!Pr(i);)xe();return _r(t,be)},x0=function(t,r){var o=-1,n=44;do switch(Pr(n)){case 0:n===38&&ze()===12&&(r[o]=1),t[o]+=b0(be-1,r,o);break;case 2:t[o]+=Ar(n);break;case 4:if(n===44){t[++o]=ze()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Gt(n);}while(n=xe());return t},S0=function(t,r){return ti(x0(ei(t),r))},sf=new WeakMap,w0=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!sf.get(o))&&!n){sf.set(t,!0);for(var i=[],a=S0(r,i),s=o.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l];}}},C0=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="");}};function lf(e,t){switch(Gu(e,t)){case 5103:return U+"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 U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+Fo+e+pe+e+e;case 6828:case 4268:return U+e+pe+e+e;case 6165:return U+e+pe+"flex-"+e+e;case 5187:return U+e+G(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+pe+"flex-$1$2")+e;case 5443:return U+e+pe+"flex-item-"+G(e,/flex-|-self/,"")+e;case 4675:return U+e+pe+"flex-line-pack"+G(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+pe+G(e,"shrink","negative")+e;case 5292:return U+e+pe+G(e,"basis","preferred-size")+e;case 6060:return U+"box-"+G(e,"-grow","")+U+e+pe+G(e,"grow","positive")+e;case 4554:return U+G(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return G(G(G(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,U+"$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(ve(e)-1-t>6)switch(ie(e,t+1)){case 109:if(ie(e,t+4)!==45)break;case 102:return G(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+Fo+(ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Wo(e,"stretch")?lf(G(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ie(e,t+1)!==115)break;case 6444:switch(ie(e,ve(e)-3-(~Wo(e,"!important")&&10))){case 107:return G(e,":",":"+U)+e;case 101:return G(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(ie(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+pe+"$2box$3")+e}break;case 5936:switch(ie(e,t+11)){case 114:return U+e+pe+G(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+pe+G(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+pe+G(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+pe+e+e}return e}var T0=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case wr:t.return=lf(t.value,t.length);break;case Zn:return Ut([$r(t,{value:G(t.value,"@","@"+U)})],n);case Sr:if(t.length)return Hs(t.props,function(i){switch(Ws(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ut([$r(t,{props:[G(i,/:(read-\w+)/,":"+Fo+"$1")]})],n);case"::placeholder":return Ut([$r(t,{props:[G(i,/:(plac\w+)/,":"+U+"input-$1")]}),$r(t,{props:[G(i,/:(plac\w+)/,":"+Fo+"$1")]}),$r(t,{props:[G(i,/:(plac\w+)/,pe+"input-$1")]})],n)}return ""})}},k0=[T0],Gs=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""));});}var n=t.stylisPlugins||k0,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),w=1;w<x.length;w++)i[x[w]]=!0;s.push(y);});var l,c=[w0,C0];{var u,f=[of,af(function(y){u.insert(y);})],p=nf(c.concat(n,f)),m=function(x){return Ut(rf(x),p)};l=function(x,w,S,C){u=S,m(x?x+"{"+w.styles+"}":w.styles),C&&(v.inserted[w.name]=!0);};}var v={key:r,sheet:new zu({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(s),v};function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);}return e},Mr.apply(this,arguments)}var N0=!0;function mi(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):o+=n+" ";}),o}var Go=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||N0===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles);},hi=function(t,r,o){Go(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+n:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function xf(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Sf={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,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var B0=/[A-Z]|^ms/g,j0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kf=function(t){return t.charCodeAt(1)===45},wf=function(t){return t!=null&&typeof t!="boolean"},Js=oi(function(e){return kf(e)?e:e.replace(B0,"-$&").toLowerCase()}),Cf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(j0,function(o,n,i){return Qe={name:n,styles:i,next:Qe},n})}return Sf[t]!==1&&!kf(t)&&typeof r=="number"&&r!==0?r+"px":r};function Uo(e,t,r){if(r==null)return "";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return "";case"object":{if(r.anim===1)return Qe={name:r.name,styles:r.styles,next:Qe},r.name;if(r.styles!==void 0){var o=r.next;if(o!==void 0)for(;o!==void 0;)Qe={name:o.name,styles:o.styles,next:Qe},o=o.next;var n=r.styles+";";return n}return z0(e,t,r)}case"function":{if(e!==void 0){var i=Qe,a=r(e);return Qe=i,Uo(e,t,a)}break}}if(t==null)return r;var c=t[r];return c!==void 0?c:r}function z0(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=Uo(e,t,r[n])+";";else for(var i in r){var a=r[i];if(typeof a!="object")t!=null&&t[a]!==void 0?o+=i+"{"+t[a]+"}":wf(a)&&(o+=Js(i)+":"+Cf(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)wf(a[s])&&(o+=Js(i)+":"+Cf(i,a[s])+";");else {var l=Uo(e,t,a);switch(i){case"animation":case"animationName":{o+=Js(i)+":"+l+";";break}default:o+=i+"{"+l+"}";}}}return o}var Tf=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Qe,gi=function(t,r,o){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,i="";Qe=void 0;var a=t[0];a==null||a.raw===void 0?(n=!1,i+=Uo(o,r,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=Uo(o,r,t[s]),n&&(i+=a[s]);Tf.lastIndex=0;for(var c="",u;(u=Tf.exec(i))!==null;)c+="-"+u[1];var f=xf(i)+c;return {name:f,styles:i,next:Qe}};var F0=function(t){return t()},W0=bt__namespace.useInsertionEffect?bt__namespace.useInsertionEffect:!1,bi=W0||F0;var xi=bt__namespace.createContext(typeof HTMLElement!="undefined"?Gs({key:"css"}):null);xi.Provider;var Si=function(t){return bt.forwardRef(function(r,o){var n=bt.useContext(xi);return t(r,n,o)})};var Yo=bt__namespace.createContext({});Kt(bf());function Ef(){let e=bt.useContext(Yo);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var Qs=bt.createContext({});Qs.displayName="ColorModeContext";function qo(){let e=bt.useContext(Qs);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function $f(){let e=qo(),t=Ef();return b(d({},e),{theme:t})}function Fe(e){let t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function et(e,...t){return X0(e)?e(...t):e}var X0=e=>typeof e=="function";Kt(Or(),1);var rn=Kt(Or(),1),pd=Kt(Or(),1);var Li=Kt(Or(),1);var Wx=e=>/!(important)?$/.test(e),od=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Hx=(e,t)=>r=>{let o=String(t),n=Wx(o),i=od(o),a=e?`${e}.${i}`:i,s=Fe(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=od(s),n?`${s} !important`:s};function gl(e){let{scale:t,transform:r,compose:o}=e;return (i,a)=>{var s;let l=Hx(t,i)(a),c=(s=r==null?void 0:r(l,a))!=null?s:l;return o&&(c=o(c,a)),c}}var Mi=(...e)=>t=>e.reduce((r,o)=>o(r),t);function We(e,t){return r=>{let o={property:r,scale:e};return o.transform=gl({scale:e,transform:t}),o}}var Kx=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function Gx(e){let{property:t,scale:r,transform:o}=e;return {scale:r,property:Kx(t),transform:r?gl({scale:r,compose:o}):o}}var cd=["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))"];function Ux(){return ["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...cd].join(" ")}function Yx(){return ["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...cd].join(" ")}var qx={"--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(" ")},Xx={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,/*!*/ /*!*/)"};function Zx(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(", ")}}var Jx={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},fl={"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"},Qx=new Set(Object.values(fl)),dl=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),eS=e=>e.trim();function tS(e,t){if(e==null||dl.has(e))return e;if(!(pl(e)||dl.has(e)))return `url('${e}')`;let n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=n==null?void 0:n[1],a=n==null?void 0:n[2];if(!i||!a)return e;let s=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=a.split(",").map(eS).filter(Boolean);if((c==null?void 0:c.length)===0)return e;let u=l in fl?fl[l]:l;c.unshift(u);let f=c.map(p=>{if(Qx.has(p))return p;let m=p.indexOf(" "),[v,y]=m!==-1?[p.substr(0,m),p.substr(m+1)]:[p],x=pl(y)?y:y&&y.split(" "),w=`colors.${v}`,S=w in t.__cssMap?t.__cssMap[w].varRef:v;return x?[S,...Array.isArray(x)?x:[x]].join(" "):S});return `${s}(${f.join(", ")})`}var pl=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),rS=(e,t)=>tS(e,t!=null?t:{});function oS(e){return /^var\(--.+\)$/.test(e)}var nS=e=>{let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return {unitless:!r,value:t,unit:r}},tt=e=>t=>`${e}(${t})`,W={filter(e){return e!=="auto"?e:qx},backdropFilter(e){return e!=="auto"?e:Xx},ring(e){return Zx(W.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Ux():e==="auto-gpu"?Yx():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;let{unitless:t}=nS(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){let r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(oS(e)||e==null)return e;let t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:rS,blur:tt("blur"),opacity:tt("opacity"),brightness:tt("brightness"),contrast:tt("contrast"),dropShadow:tt("drop-shadow"),grayscale:tt("grayscale"),hueRotate:e=>tt("hue-rotate")(W.degree(e)),invert:tt("invert"),saturate:tt("saturate"),sepia:tt("sepia"),bgImage(e){return e==null||pl(e)||dl.has(e)?e:`url(${e})`},outline(e){let t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:r,divide:o}=(t=Jx[e])!=null?t:{},n={flexDirection:e};return r&&(n[r]=1),o&&(n[o]=1),n}},g={borderWidths:We("borderWidths"),borderStyles:We("borderStyles"),colors:We("colors"),borders:We("borders"),gradients:We("gradients",W.gradient),radii:We("radii",W.px),space:We("space",Mi(W.vh,W.px)),spaceT:We("space",Mi(W.vh,W.px)),degreeT(e){return {property:e,transform:W.degree}},prop(e,t,r){return d({property:e,scale:t},t&&{transform:gl({scale:t,transform:r})})},propT(e,t){return {property:e,transform:t}},sizes:We("sizes",Mi(W.vh,W.px)),sizesT:We("sizes",Mi(W.vh,W.fraction)),shadows:We("shadows"),logical:Gx,blur:We("blur",W.blur)},Ri={background:g.colors("background"),backgroundColor:g.colors("backgroundColor"),backgroundImage:g.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:W.bgClip},bgSize:g.prop("backgroundSize"),bgPosition:g.prop("backgroundPosition"),bg:g.colors("background"),bgColor:g.colors("backgroundColor"),bgPos:g.prop("backgroundPosition"),bgRepeat:g.prop("backgroundRepeat"),bgAttachment:g.prop("backgroundAttachment"),bgGradient:g.gradients("backgroundImage"),bgClip:{transform:W.bgClip}};Object.assign(Ri,{bgImage:Ri.backgroundImage,bgImg:Ri.backgroundImage});var Y={border:g.borders("border"),borderWidth:g.borderWidths("borderWidth"),borderStyle:g.borderStyles("borderStyle"),borderColor:g.colors("borderColor"),borderRadius:g.radii("borderRadius"),borderTop:g.borders("borderTop"),borderBlockStart:g.borders("borderBlockStart"),borderTopLeftRadius:g.radii("borderTopLeftRadius"),borderStartStartRadius:g.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:g.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:g.radii("borderTopRightRadius"),borderStartEndRadius:g.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:g.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:g.borders("borderRight"),borderInlineEnd:g.borders("borderInlineEnd"),borderBottom:g.borders("borderBottom"),borderBlockEnd:g.borders("borderBlockEnd"),borderBottomLeftRadius:g.radii("borderBottomLeftRadius"),borderBottomRightRadius:g.radii("borderBottomRightRadius"),borderLeft:g.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:g.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:g.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:g.borders(["borderLeft","borderRight"]),borderInline:g.borders("borderInline"),borderY:g.borders(["borderTop","borderBottom"]),borderBlock:g.borders("borderBlock"),borderTopWidth:g.borderWidths("borderTopWidth"),borderBlockStartWidth:g.borderWidths("borderBlockStartWidth"),borderTopColor:g.colors("borderTopColor"),borderBlockStartColor:g.colors("borderBlockStartColor"),borderTopStyle:g.borderStyles("borderTopStyle"),borderBlockStartStyle:g.borderStyles("borderBlockStartStyle"),borderBottomWidth:g.borderWidths("borderBottomWidth"),borderBlockEndWidth:g.borderWidths("borderBlockEndWidth"),borderBottomColor:g.colors("borderBottomColor"),borderBlockEndColor:g.colors("borderBlockEndColor"),borderBottomStyle:g.borderStyles("borderBottomStyle"),borderBlockEndStyle:g.borderStyles("borderBlockEndStyle"),borderLeftWidth:g.borderWidths("borderLeftWidth"),borderInlineStartWidth:g.borderWidths("borderInlineStartWidth"),borderLeftColor:g.colors("borderLeftColor"),borderInlineStartColor:g.colors("borderInlineStartColor"),borderLeftStyle:g.borderStyles("borderLeftStyle"),borderInlineStartStyle:g.borderStyles("borderInlineStartStyle"),borderRightWidth:g.borderWidths("borderRightWidth"),borderInlineEndWidth:g.borderWidths("borderInlineEndWidth"),borderRightColor:g.colors("borderRightColor"),borderInlineEndColor:g.colors("borderInlineEndColor"),borderRightStyle:g.borderStyles("borderRightStyle"),borderInlineEndStyle:g.borderStyles("borderInlineEndStyle"),borderTopRadius:g.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:g.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:g.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:g.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Y,{rounded:Y.borderRadius,roundedTop:Y.borderTopRadius,roundedTopLeft:Y.borderTopLeftRadius,roundedTopRight:Y.borderTopRightRadius,roundedTopStart:Y.borderStartStartRadius,roundedTopEnd:Y.borderStartEndRadius,roundedBottom:Y.borderBottomRadius,roundedBottomLeft:Y.borderBottomLeftRadius,roundedBottomRight:Y.borderBottomRightRadius,roundedBottomStart:Y.borderEndStartRadius,roundedBottomEnd:Y.borderEndEndRadius,roundedLeft:Y.borderLeftRadius,roundedRight:Y.borderRightRadius,roundedStart:Y.borderInlineStartRadius,roundedEnd:Y.borderInlineEndRadius,borderStart:Y.borderInlineStart,borderEnd:Y.borderInlineEnd,borderTopStartRadius:Y.borderStartStartRadius,borderTopEndRadius:Y.borderStartEndRadius,borderBottomStartRadius:Y.borderEndStartRadius,borderBottomEndRadius:Y.borderEndEndRadius,borderStartRadius:Y.borderInlineStartRadius,borderEndRadius:Y.borderInlineEndRadius,borderStartWidth:Y.borderInlineStartWidth,borderEndWidth:Y.borderInlineEndWidth,borderStartColor:Y.borderInlineStartColor,borderEndColor:Y.borderInlineEndColor,borderStartStyle:Y.borderInlineStartStyle,borderEndStyle:Y.borderInlineEndStyle});var iS={color:g.colors("color"),textColor:g.colors("color"),fill:g.colors("fill"),stroke:g.colors("stroke")},ml={boxShadow:g.shadows("boxShadow"),mixBlendMode:!0,blendMode:g.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:g.prop("backgroundBlendMode"),opacity:!0};Object.assign(ml,{shadow:ml.boxShadow});var aS={filter:{transform:W.filter},blur:g.blur("--chakra-blur"),brightness:g.propT("--chakra-brightness",W.brightness),contrast:g.propT("--chakra-contrast",W.contrast),hueRotate:g.propT("--chakra-hue-rotate",W.hueRotate),invert:g.propT("--chakra-invert",W.invert),saturate:g.propT("--chakra-saturate",W.saturate),dropShadow:g.propT("--chakra-drop-shadow",W.dropShadow),backdropFilter:{transform:W.backdropFilter},backdropBlur:g.blur("--chakra-backdrop-blur"),backdropBrightness:g.propT("--chakra-backdrop-brightness",W.brightness),backdropContrast:g.propT("--chakra-backdrop-contrast",W.contrast),backdropHueRotate:g.propT("--chakra-backdrop-hue-rotate",W.hueRotate),backdropInvert:g.propT("--chakra-backdrop-invert",W.invert),backdropSaturate:g.propT("--chakra-backdrop-saturate",W.saturate)},Ii={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:W.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:g.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:g.space("gap"),rowGap:g.space("rowGap"),columnGap:g.space("columnGap")};Object.assign(Ii,{flexDir:Ii.flexDirection});var ud={gridGap:g.space("gridGap"),gridColumnGap:g.space("gridColumnGap"),gridRowGap:g.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},sS={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:W.outline},outlineOffset:!0,outlineColor:g.colors("outlineColor")},He={width:g.sizesT("width"),inlineSize:g.sizesT("inlineSize"),height:g.sizes("height"),blockSize:g.sizes("blockSize"),boxSize:g.sizes(["width","height"]),minWidth:g.sizes("minWidth"),minInlineSize:g.sizes("minInlineSize"),minHeight:g.sizes("minHeight"),minBlockSize:g.sizes("minBlockSize"),maxWidth:g.sizes("maxWidth"),maxInlineSize:g.sizes("maxInlineSize"),maxHeight:g.sizes("maxHeight"),maxBlockSize:g.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 r,o,n;return {[`@media screen and (min-width: ${(n=(o=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:o.minW)!=null?n:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,o,n;return {[`@media screen and (max-width: ${(n=(o=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:o._minW)!=null?n:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:g.propT("float",W.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(He,{w:He.width,h:He.height,minW:He.minWidth,maxW:He.maxWidth,minH:He.minHeight,maxH:He.maxHeight,overscroll:He.overscrollBehavior,overscrollX:He.overscrollBehaviorX,overscrollY:He.overscrollBehaviorY});var lS={listStyleType:!0,listStylePosition:!0,listStylePos:g.prop("listStylePosition"),listStyleImage:!0,listStyleImg:g.prop("listStyleImage")};function cS(e,t,r,o){let n=typeof t=="string"?t.split("."):[t];for(o=0;o<n.length&&e;o+=1)e=e[n[o]];return e===void 0?r:e}var uS=e=>{let t=new WeakMap;return (o,n,i,a)=>{if(typeof o=="undefined")return e(o,n,i);t.has(o)||t.set(o,new Map);let s=t.get(o);if(s.has(n))return s.get(n);let l=e(o,n,i,a);return s.set(n,l),l}},fS=uS(cS),dS={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},pS={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},ul=(e,t,r)=>{let o={},n=fS(e,t,{});for(let i in n)i in r&&r[i]!=null||(o[i]=n[i]);return o},mS={srOnly:{transform(e){return e===!0?dS:e==="focusable"?pS:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>ul(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>ul(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>ul(t,e,r)}},on={position:!0,pos:g.prop("position"),zIndex:g.prop("zIndex","zIndices"),inset:g.spaceT("inset"),insetX:g.spaceT(["left","right"]),insetInline:g.spaceT("insetInline"),insetY:g.spaceT(["top","bottom"]),insetBlock:g.spaceT("insetBlock"),top:g.spaceT("top"),insetBlockStart:g.spaceT("insetBlockStart"),bottom:g.spaceT("bottom"),insetBlockEnd:g.spaceT("insetBlockEnd"),left:g.spaceT("left"),insetInlineStart:g.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:g.spaceT("right"),insetInlineEnd:g.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(on,{insetStart:on.insetInlineStart,insetEnd:on.insetInlineEnd});var hS={ring:{transform:W.ring},ringColor:g.colors("--chakra-ring-color"),ringOffset:g.prop("--chakra-ring-offset-width"),ringOffsetColor:g.colors("--chakra-ring-offset-color"),ringInset:g.prop("--chakra-ring-inset")},Q={margin:g.spaceT("margin"),marginTop:g.spaceT("marginTop"),marginBlockStart:g.spaceT("marginBlockStart"),marginRight:g.spaceT("marginRight"),marginInlineEnd:g.spaceT("marginInlineEnd"),marginBottom:g.spaceT("marginBottom"),marginBlockEnd:g.spaceT("marginBlockEnd"),marginLeft:g.spaceT("marginLeft"),marginInlineStart:g.spaceT("marginInlineStart"),marginX:g.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:g.spaceT("marginInline"),marginY:g.spaceT(["marginTop","marginBottom"]),marginBlock:g.spaceT("marginBlock"),padding:g.space("padding"),paddingTop:g.space("paddingTop"),paddingBlockStart:g.space("paddingBlockStart"),paddingRight:g.space("paddingRight"),paddingBottom:g.space("paddingBottom"),paddingBlockEnd:g.space("paddingBlockEnd"),paddingLeft:g.space("paddingLeft"),paddingInlineStart:g.space("paddingInlineStart"),paddingInlineEnd:g.space("paddingInlineEnd"),paddingX:g.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:g.space("paddingInline"),paddingY:g.space(["paddingTop","paddingBottom"]),paddingBlock:g.space("paddingBlock")};Object.assign(Q,{m:Q.margin,mt:Q.marginTop,mr:Q.marginRight,me:Q.marginInlineEnd,marginEnd:Q.marginInlineEnd,mb:Q.marginBottom,ml:Q.marginLeft,ms:Q.marginInlineStart,marginStart:Q.marginInlineStart,mx:Q.marginX,my:Q.marginY,p:Q.padding,pt:Q.paddingTop,py:Q.paddingY,px:Q.paddingX,pb:Q.paddingBottom,pl:Q.paddingLeft,ps:Q.paddingInlineStart,paddingStart:Q.paddingInlineStart,pr:Q.paddingRight,pe:Q.paddingInlineEnd,paddingEnd:Q.paddingInlineEnd});var gS={textDecorationColor:g.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:g.shadows("textShadow")},yS={clipPath:!0,transform:g.propT("transform",W.transform),transformOrigin:!0,translateX:g.spaceT("--chakra-translate-x"),translateY:g.spaceT("--chakra-translate-y"),skewX:g.degreeT("--chakra-skew-x"),skewY:g.degreeT("--chakra-skew-y"),scaleX:g.prop("--chakra-scale-x"),scaleY:g.prop("--chakra-scale-y"),scale:g.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:g.degreeT("--chakra-rotate")},vS={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:g.prop("transitionDuration","transition.duration"),transitionProperty:g.prop("transitionProperty","transition.property"),transitionTimingFunction:g.prop("transitionTimingFunction","transition.easing")},bS={fontFamily:g.prop("fontFamily","fonts"),fontSize:g.prop("fontSize","fontSizes",W.px),fontWeight:g.prop("fontWeight","fontWeights"),lineHeight:g.prop("lineHeight","lineHeights"),letterSpacing:g.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)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"}},xS={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:g.spaceT("scrollMargin"),scrollMarginTop:g.spaceT("scrollMarginTop"),scrollMarginBottom:g.spaceT("scrollMarginBottom"),scrollMarginLeft:g.spaceT("scrollMarginLeft"),scrollMarginRight:g.spaceT("scrollMarginRight"),scrollMarginX:g.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:g.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:g.spaceT("scrollPadding"),scrollPaddingTop:g.spaceT("scrollPaddingTop"),scrollPaddingBottom:g.spaceT("scrollPaddingBottom"),scrollPaddingLeft:g.spaceT("scrollPaddingLeft"),scrollPaddingRight:g.spaceT("scrollPaddingRight"),scrollPaddingX:g.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:g.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function fd(e){return Fe(e)&&e.reference?e.reference:String(e)}var Oi=(e,...t)=>t.map(fd).join(` ${e} `).replace(/calc/g,""),nd=(...e)=>`calc(${Oi("+",...e)})`,id=(...e)=>`calc(${Oi("-",...e)})`,hl=(...e)=>`calc(${Oi("*",...e)})`,ad=(...e)=>`calc(${Oi("/",...e)})`,sd=e=>{let t=fd(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:hl(t,-1)},tn=Object.assign(e=>({add:(...t)=>tn(nd(e,...t)),subtract:(...t)=>tn(id(e,...t)),multiply:(...t)=>tn(hl(e,...t)),divide:(...t)=>tn(ad(e,...t)),negate:()=>tn(sd(e)),toString:()=>e.toString()}),{add:nd,subtract:id,multiply:hl,divide:ad,negate:sd});function SS(e,t="-"){return e.replace(/\s+/g,t)}function wS(e){let t=SS(e.toString());return TS(CS(t))}function CS(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function TS(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function kS(e,t=""){return [t,e].filter(Boolean).join("-")}function PS(e,t){return `var(${e}${t?`, ${t}`:""})`}function ES(e,t=""){return wS(`--${kS(e,t)}`)}function D(e,t,r){let o=ES(e,r);return {variable:o,reference:PS(o,t)}}function Di(e,t){let r={};for(let o of t){if(Array.isArray(o)){let[n,i]=o;r[n]=D(`${e}-${n}`,i);continue}r[o]=D(`${e}-${o}`);}return r}function $S(e){let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return {unitless:!r,value:t,unit:r}}function ld(e){if(e==null)return e;let{unitless:t}=$S(e);return t||typeof e=="number"?`${e}px`:e}function _S(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${ld(e)})`),t&&r.push("and",`(max-width: ${ld(t)})`),r.join(" ")}var me={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},kt=e=>dd(t=>e(t,"&"),"[role=group]","[data-group]",".group"),dt=e=>dd(t=>e(t,"~ &"),"[data-peer]",".peer"),dd=(e,...t)=>t.map(e).join(", "),yl={_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:kt(me.hover),_peerHover:dt(me.hover),_groupFocus:kt(me.focus),_peerFocus:dt(me.focus),_groupFocusVisible:kt(me.focusVisible),_peerFocusVisible:dt(me.focusVisible),_groupActive:kt(me.active),_peerActive:dt(me.active),_groupDisabled:kt(me.disabled),_peerDisabled:dt(me.disabled),_groupInvalid:kt(me.invalid),_peerInvalid:dt(me.invalid),_groupChecked:kt(me.checked),_peerChecked:dt(me.checked),_groupFocusWithin:kt(me.focusWithin),_peerFocusWithin:dt(me.focusWithin),_peerPlaceholderShown:dt(me.placeholderShown),_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]"},AS=Object.keys(yl);var vl=(0, pd.default)({},Ri,Y,iS,Ii,He,aS,hS,sS,ud,mS,on,ml,Q,xS,bS,gS,yS,lS,vS);Object.assign({},Q,He,Ii,ud,on);var md=[...Object.keys(vl),...AS],IS=d(d({},vl),yl),hd=e=>e in IS,LS=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:r,toArrayValue:o,media:n}=t.__breakpoints,i={};for(let a in e){let s=et(e[a],t);if(s==null)continue;if(s=Fe(s)&&r(s)?o(s):s,!Array.isArray(s)){i[a]=s;continue}let l=s.slice(0,n.length).length;for(let c=0;c<l;c+=1){let u=n==null?void 0:n[c];if(!u){i[a]=s[c];continue}i[u]=i[u]||{},s[c]!=null&&(i[u][a]=s[c]);}}return i};function OS(e){let t=[],r="",o=!1;for(let n=0;n<e.length;n++){let i=e[n];i==="("?(o=!0,r+=i):i===")"?(o=!1,r+=i):i===","&&!o?(t.push(r),r=""):r+=i;}return r=r.trim(),r&&t.push(r),t}function DS(e){return /^var\(--.+\)$/.test(e)}var VS=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!DS(t),NS=(e,t)=>{var r,o;if(t==null)return t;let n=l=>{var c,u;return (u=(c=e.__cssMap)==null?void 0:c[l])==null?void 0:u.varRef},i=l=>{var c;return (c=n(l))!=null?c:l},[a,s]=OS(t);return t=(o=(r=n(a))!=null?r:i(s))!=null?o:i(t),t};function BS(e){let{configs:t={},pseudos:r={},theme:o}=e,n=(i,a=!1)=>{var s,l,c;let u=et(i,o),f=LS(u)(o),p={};for(let m in f){let v=f[m],y=et(v,o);m in r&&(m=r[m]),VS(m,y)&&(y=NS(o,y));let x=t[m];if(x===!0&&(x={property:m}),Fe(y)){p[m]=(s=p[m])!=null?s:{},p[m]=(0, rn.default)({},p[m],n(y,!0));continue}let w=(c=(l=x==null?void 0:x.transform)==null?void 0:l.call(x,y,o,u))!=null?c:y;w=x!=null&&x.processResult?n(w,!0):w;let S=et(x==null?void 0:x.property,o);if(!a&&(x!=null&&x.static)){let C=et(x.static,o);p=(0, rn.default)({},p,C);}if(S&&Array.isArray(S)){for(let C of S)p[C]=w;continue}if(S){S==="&"&&Fe(w)?p=(0, rn.default)({},p,w):p[S]=w;continue}if(Fe(w)){p=(0, rn.default)({},p,w);continue}p[m]=w;}return p};return n}var gd=e=>t=>BS({theme:t,pseudos:yl,configs:vl})(e);function M(e){return {definePartsStyle(t){return t},defineMultiStyleConfig(t){return d({parts:e},t)}}}function jS(e,t){if(Array.isArray(e))return e;if(Fe(e))return t(e);if(e!=null)return [e]}function zS(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return -1}function FS(e){let t=e.__breakpoints;return function(o,n,i,a){var s,l;if(!t)return;let c={},u=jS(i,t.toArrayValue);if(!u)return c;let f=u.length,p=f===1,m=!!o.parts;for(let v=0;v<f;v++){let y=t.details[v],x=t.details[zS(u,v)],w=_S(y.minW,x==null?void 0:x._minW),S=et((s=o[n])==null?void 0:s[u[v]],a);if(S){if(m){(l=o.parts)==null||l.forEach(C=>{(0, Li.default)(c,{[C]:p?S[C]:{[w]:S[C]}});});continue}if(!m){p?(0, Li.default)(c,S):c[w]=S;continue}c[w]=S;}}return c}}function yd(e){return t=>{var r;let{variant:o,size:n,theme:i}=t,a=FS(i);return (0, Li.default)({},et((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",n,t),a(e,"variants",o,t))}}function N(e,t={}){let r=!1;function o(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function n(...u){o();for(let f of u)t[f]=l(f);return N(e,t)}function i(...u){for(let f of u)f in t||(t[f]=l(f));return N(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function l(u){let m=`chakra-${(["container","root"].includes(u!=null?u:"")?[e]:[e,u]).filter(Boolean).join("__")}`;return {className:m,selector:`.${m}`,toString:()=>u}}return {parts:n,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}N("accordion").parts("root","container","button","panel").extend("icon");var nn=N("alert").parts("title","description","container").extend("icon","spinner");N("avatar").parts("label","badge","container").extend("excessLabel","group");N("breadcrumb").parts("link","item","container").extend("separator");N("button").parts();var bl=N("checkbox").parts("control","icon","container").extend("label");N("progress").parts("track","filledTrack").extend("label");var xl=N("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer");N("editable").parts("preview","input","textarea");var Sl=N("form").parts("container","requiredIndicator","helperText");N("formError").parts("text","icon");var Zt=N("input").parts("addon","field","element","group");N("list").parts("container","item","icon");var an=N("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),sn=N("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer");N("numberinput").parts("root","field","stepperGroup","stepper");N("pininput").parts("field");var wl=N("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),ln=N("progress").parts("label","filledTrack","track"),Cl=N("radio").parts("container","control","label");N("select").parts("field","icon");var Tl=N("slider").parts("container","track","thumb","filledTrack","mark");N("stat").parts("container","label","helpText","number","icon");var cn=N("switch").parts("container","track","thumb","label");N("table").parts("table","thead","tbody","tr","th","td","tfoot","caption");N("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");N("tag").parts("container","label","closeButton");var kl=N("card").parts("container","header","body","footer");N("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Jt(e,t,r){return Math.min(Math.max(e,r),t)}var Pl=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`);}},un=Pl;function El(e){if(typeof e!="string")throw new un(e);if(e.trim().toLowerCase()==="transparent")return [0,0,0,0];let t=e.trim();t=d1.test(e)?s1(e):e;let r=l1.exec(t);if(r){let a=Array.from(r).slice(1);return [...a.slice(0,3).map(s=>parseInt(fn(s,2),16)),parseInt(fn(a[3]||"f",2),16)/255]}let o=c1.exec(t);if(o){let a=Array.from(o).slice(1);return [...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}let n=u1.exec(t);if(n){let a=Array.from(n).slice(1);return [...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}let i=f1.exec(t);if(i){let[a,s,l,c]=Array.from(i).slice(1).map(parseFloat);if(Jt(0,100,s)!==s)throw new un(e);if(Jt(0,100,l)!==l)throw new un(e);return [...p1(a,s,l),Number.isNaN(c)?1:c]}throw new un(e)}function i1(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return (t>>>0)%2341}var vd=e=>parseInt(e.replace(/_/g,""),36),a1="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)=>{let r=vd(t.substring(0,3)),o=vd(t.substring(3)).toString(16),n="";for(let i=0;i<6-o.length;i++)n+="0";return e[r]=`${n}${o}`,e},{});function s1(e){let t=e.toLowerCase().trim(),r=a1[i1(t)];if(!r)throw new un(e);return `#${r}`}var fn=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),l1=new RegExp(`^#${fn("([a-f0-9])",3)}([a-f0-9])?$`,"i"),c1=new RegExp(`^#${fn("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),u1=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${fn(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),f1=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,d1=/^[a-z]+$/i,bd=e=>Math.round(e*255),p1=(e,t,r)=>{let o=r/100;if(t===0)return [o,o,o].map(bd);let n=(e%360+360)%360/60,i=(1-Math.abs(2*o-1))*(t/100),a=i*(1-Math.abs(n%2-1)),s=0,l=0,c=0;n>=0&&n<1?(s=i,l=a):n>=1&&n<2?(s=a,l=i):n>=2&&n<3?(l=i,c=a):n>=3&&n<4?(l=a,c=i):n>=4&&n<5?(s=a,c=i):n>=5&&n<6&&(s=i,c=a);let u=o-i/2,f=s+u,p=l+u,m=c+u;return [f,p,m].map(bd)};function m1(e,t,r,o){return `rgba(${Jt(0,255,e).toFixed()}, ${Jt(0,255,t).toFixed()}, ${Jt(0,255,r).toFixed()}, ${parseFloat(Jt(0,1,o).toFixed(3))})`}function xd(e,t){let[r,o,n,i]=El(e);return m1(r,o,n,i-t)}function Sd(e){let[t,r,o,n]=El(e),i=a=>{let s=Jt(0,255,a).toString(16);return s.length===1?`0${s}`:s};return `#${i(t)}${i(r)}${i(o)}${n<1?i(Math.round(n*255)):""}`}function h1(e,t,r,o,n){for(t=t.split?t.split("."):t,o=0;o<t.length;o++)e=e?e[t[o]]:n;return e===n?r:e}var ce=(e,t,r)=>{let o=h1(e,`colors.${t}`,t);try{return Sd(o),o}catch(n){return r!=null?r:"#000000"}};var X=(e,t)=>r=>{let o=ce(r,e);return xd(o,1-t)};function ee(e,t){return r=>r.colorMode==="dark"?t:e}function wd(e){return !Number.isInteger(parseFloat(e.toString()))}function g1(e,t="-"){return e.replace(/\s+/g,t)}function Cd(e){let t=g1(e.toString());return t.includes("\\.")?e:wd(e)?t.replace(".","\\."):e}function Td(e,t=""){return [t,Cd(e)].filter(Boolean).join("-")}function kd(e,t){return `var(${Cd(e)}${t?`, ${t}`:""})`}function Pd(e,t=""){return `--${Td(e,t)}`}function Xe(e,t){let r=Pd(e,t==null?void 0:t.prefix);return {variable:r,reference:kd(r,y1(t==null?void 0:t.fallback))}}function y1(e){return typeof e=="string"?e:e==null?void 0:e.reference}var he=e=>e?"":void 0;var A=(...e)=>e.filter(Boolean).join(" ");var Vi=Kt(Or(),1);function $l(e,t){let r={};return Object.keys(e).forEach(o=>{t.includes(o)||(r[o]=e[o]);}),r}function Ed(e,t,r,o){let n=typeof t=="string"?t.split("."):[t];for(o=0;o<n.length&&e;o+=1)e=e[n[o]];return e===void 0?r:e}var $d=e=>{let t=new WeakMap;return (o,n,i,a)=>{if(typeof o=="undefined")return e(o,n,i);t.has(o)||t.set(o,new Map);let s=t.get(o);if(s.has(n))return s.get(n);let l=e(o,n,i,a);return s.set(n,l),l}},_l=$d(Ed);function Ni(e,t){let r={};return Object.keys(e).forEach(o=>{let n=e[o];t(n,o,e)&&(r[o]=n);}),r}var dn=e=>Ni(e,t=>t!=null);function _d(e){return typeof e=="function"}function ue(e,...t){return _d(e)?e(...t):e}function Ve(...e){return function(r){e.some(o=>(o==null||o(r),r==null?void 0:r.defaultPrevented));}}var Rd=Kt(Md(),1);function C1(e,t={}){var r;let f=t,{styleConfig:o}=f,n=P(f,["styleConfig"]),{theme:i,colorMode:a}=$f(),s=e?_l(i,`components.${e}`):void 0,l=o||s,c=(0, Vi.default)({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},dn($l(n,["children"]))),u=bt.useRef({});if(l){let m=yd(l)(c);(0, Rd.default)(u.current,m)||(u.current=m);}return u.current}function Al(e,t={}){return C1(e,t)}var T1=new Set([...md,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),k1=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Id(e){return k1.has(e)||!T1.has(e)}function Ml(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");let r=d({},e);for(let o of t)if(o!=null)for(let n in o)Object.prototype.hasOwnProperty.call(o,n)&&(n in r&&delete r[n],r[n]=o[n]);return r}var P1=/^((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|download|draggable|encType|enterKeyHint|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|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)-.*))$/,Ld=oi(function(e){return P1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var E1=Ld,$1=function(t){return t!=="theme"},Od=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?E1:$1},Dd=function(t,r,o){var n;if(r){var i=r.shouldForwardProp;n=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i;}return typeof n!="function"&&o&&(n=t.__emotion_forwardProp),n};var _1=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return Go(r,o,n),bi(function(){return hi(r,o,n)}),null},Vd=function e(t,r){var o=t.__emotion_real===t,n=o&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=Dd(t,r,o),l=s||Od(n),c=!l("as");return function(){var u=arguments,f=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else {f.push(u[0][0]);for(var p=u.length,m=1;m<p;m++)f.push(u[m],u[0][m]);}var v=Si(function(y,x,w){var S=c&&y.as||n,C="",k=[],$=y;if(y.theme==null){$={};for(var L in y)$[L]=y[L];$.theme=bt__namespace.useContext(Yo);}typeof y.className=="string"?C=mi(x.registered,k,y.className):y.className!=null&&(C=y.className+" ");var R=gi(f.concat(k),x.registered,$);C+=x.key+"-"+R.name,a!==void 0&&(C+=" "+a);var O=c&&s===void 0?Od(S):l,h={};for(var I in y)c&&I==="as"||O(I)&&(h[I]=y[I]);return h.className=C,h.ref=w,bt__namespace.createElement(bt__namespace.Fragment,null,bt__namespace.createElement(_1,{cache:x,serialized:R,isStringTag:typeof S=="string"}),bt__namespace.createElement(S,h))});return v.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=n,v.__emotion_styles=f,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return "."+a}}),v.withComponent=function(y,x){return e(y,Mr({},r,x,{shouldForwardProp:Dd(v,x,!0)})).apply(void 0,f)},v}};var A1=["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"],pn=Vd.bind();A1.forEach(function(e){pn[e]=pn(e);});var Bd,M1=(Bd=pn.default)!=null?Bd:pn,R1=({baseStyle:e})=>t=>{let f=t,{theme:r,css:o,__css:n,sx:i}=f,a=P(f,["theme","css","__css","sx"]),s=Ni(a,(p,m)=>hd(m)),l=ue(e,t),c=Ml({},n,l,dn(s),i),u=gd(c)(t.theme);return o?[u,o]:u};function ji(e,t){let s=t!=null?t:{},{baseStyle:r}=s,o=P(s,["baseStyle"]);o.shouldForwardProp||(o.shouldForwardProp=Id);let n=R1({baseStyle:r}),i=M1(e,o)(n);return bt__namespace.default.forwardRef(function(c,u){let{colorMode:f,forced:p}=qo();return bt__namespace.default.createElement(i,d({ref:u,"data-theme":p?f:void 0},c))})}function I1(){let e=new Map;return new Proxy(ji,{apply(t,r,o){return ji(...o)},get(t,r){return e.has(r)||e.set(r,ji(r)),e.get(r)}})}var Dr=I1();function mn(e){return bt.forwardRef(e)}function Se(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,n=bt.createContext(void 0);n.displayName=o;function i(){var a;let s=bt.useContext(n);if(!s&&t){let l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return [n.Provider,i,n]}var zi=(...e)=>e.filter(Boolean).join(" "),jd={path:jsxRuntime.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[jsxRuntime.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"}),jsxRuntime.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"}),jsxRuntime.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Fd=mn((e,t)=>{let x=e,{as:r,viewBox:o,color:n="currentColor",focusable:i=!1,children:a,className:s,__css:l}=x,c=P(x,["as","viewBox","color","focusable","children","className","__css"]),u=zi("chakra-icon",s),f=Al("Icon",e),p=d(d({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:n},l),f),m={ref:t,focusable:i,className:u,__css:p},v=o!=null?o:jd.viewBox;if(r&&typeof r!="string")return jsxRuntime.jsx(Dr.svg,d(d({as:r},m),c));let y=a!=null?a:jd.path;return jsxRuntime.jsx(Dr.svg,b(d(d({verticalAlign:"middle",viewBox:v},m),c),{children:y}))});Fd.displayName="Icon";function B1(e){let{viewBox:t="0 0 24 24",d:r,displayName:o,defaultProps:n={}}=e,i=bt.Children.toArray(e.path),a=mn((s,l)=>jsxRuntime.jsx(Fd,b(d(d({ref:l,viewBox:t},n),s),{children:i.length?i:jsxRuntime.jsx("path",{fill:"currentColor",d:r})})));return a.displayName=o,a}var we=e=>B1(d({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}},e));we({displayName:"ChevronUpIcon",path:jsxRuntime.jsx("polyline",{points:"18 15 12 9 6 15"})});we({displayName:"ChevronDownIcon",path:jsxRuntime.jsx("polyline",{points:"6 9 12 15 18 9"})});we({displayName:"ChevronLeftIcon",path:jsxRuntime.jsx("polyline",{points:"15 18 9 12 15 6"})});we({displayName:"ChevronRightIcon",path:jsxRuntime.jsx("polyline",{points:"9 18 15 12 9 6"})});we({displayName:"ChevronDownIcon",path:jsxRuntime.jsxs("g",{fill:"none",children:[jsxRuntime.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),jsxRuntime.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),jsxRuntime.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var Gd=we({displayName:"CloseIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntime.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});we({displayName:"FilterIcon",path:jsxRuntime.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});we({displayName:"CalendarIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),jsxRuntime.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),jsxRuntime.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),jsxRuntime.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});we({displayName:"PlusIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),jsxRuntime.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});we({displayName:"MinusIcon",path:jsxRuntime.jsx("g",{children:jsxRuntime.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});we({displayName:"ViewOffIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),jsxRuntime.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});we({displayName:"ViewOffIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var Ud=we({displayName:"SearchIcon",path:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"11",cy:"11",r:"8"}),jsxRuntime.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});we({displayName:"CheckIcon",path:jsxRuntime.jsx("g",{children:jsxRuntime.jsx("polyline",{points:"20 6 9 17 4 12"})})});var Yd=N("app-shell").parts("container","inner","main"),Rl=N("emptystate").parts("container","body","icon","title","descripton","actions","footer"),qd=N("banner").parts("container","icon","content","title","description","actions","close"),Xd=N("hotkeys").parts("container","group","groupTitle","item","command","then"),Zd=N("loading-overlay").parts("overlay","text"),Jd=N("nav-group").parts("container","title","icon","content"),Qd=N("nav-item").parts("item","link","inner","icon","label"),ep=N("nprogress").parts("container","bar"),tp=N("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),rp=N("search-input").parts("input","reset"),op=N("sidebar").parts("container","overlay","section","toggleWrapper","toggle");N("stepper").parts("container","steps","icon","content","title","separator");var np=N("structured-list").parts("list","item","button","header","cell","icon"),Il=N("property").parts("property","label","value"),ip=N("select").parts("addon","field","element"),ap=N("timeline").parts("container","item","separator","icon","dot","track","content");var{definePartsStyle:Q1,defineMultiStyleConfig:ew}=M(Yd.keys),tw=Q1({container:{},inner:{},main:{}}),rw=ew({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:tw}),{definePartsStyle:Vl,defineMultiStyleConfig:ow}=M(qd.keys),nw=Vl({container:{px:4,py:3},content:{display:"flex",flex:1,flexDirection:["column",null,"row"]},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6,marginEnd:2},actions:{marginEnd:2},icon:{flexShrink:0,marginEnd:3,w:5,h:6}}),iw=Vl(e=>{let{theme:t,colorScheme:r}=e;return {container:{bg:`${r}.100`,_dark:{bg:X(`${r}.200`,.16)(t)}},icon:{color:`${r}.500`,_dark:{color:`${r}.200`}}}}),aw=Vl(e=>{let{colorScheme:t}=e;return {container:{bg:`${t}.500`,color:"white"}}}),sw=ow({baseStyle:nw,variants:{subtle:iw,solid:aw},defaultProps:{variant:"subtle",colorScheme:"blue"}}),lw={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"\u2022"',me:1,fontSize:"xs"}}}},{definePartsStyle:wp,defineMultiStyleConfig:cw}=M(Rl.keys),uw=wp(e=>{let{colorScheme:t}=e;return {icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.200`}},title:{mt:8,fontWeight:"bold",fontSize:"xl"},actions:{mt:8}}}),fw=wp(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),dw=cw({baseStyle:uw,variants:{centered:fw}}),{definePartsStyle:pw,defineMultiStyleConfig:mw}=M(Sl.keys),hw=pw({container:{display:"flex",alignItems:"center",flexDirection:"row-reverse",justifyContent:"flex-end"}}),gw=mw({variants:{horizontal:hw}}),yw={defaultProps:{spacing:4}},vw={baseStyle:{fontWeight:"semibold",mb:4}},{definePartsStyle:GO,defineMultiStyleConfig:bw}=M(Xd.keys),xw=bw({baseStyle:{container:{fontSize:"md"},group:{my:2,py:2},groupTitle:{py:2,fontWeight:"semibold",fontSize:"sm"},item:{display:"flex",alignItems:"center",textAlign:"start",flex:"0 0 auto",py:2},then:{mr:1,fontSize:"sm",color:"muted"}}}),{defineMultiStyleConfig:Sw,definePartsStyle:qi}=M(Zd.keys),ww=qi({overlay:{p:4},text:{}}),Cw=qi(()=>({overlay:{flex:1,height:"100%",bg:"whiteAlpha.400",_dark:{bg:"blackAlpha.400"}}})),Tw=qi(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),kw=qi(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),Pw=Sw({defaultProps:{variant:"fill"},baseStyle:ww,variants:{fill:Cw,fullscreen:Tw,overlay:kw}}),{definePartsStyle:Ew,defineMultiStyleConfig:$w}=M(Jd.keys),_w=Ew(e=>({container:{"&:not(:last-of-type)":{mb:4}},title:{display:"flex",alignItems:"center",px:3,my:1,height:6,fontSize:"sm",fontWeight:"medium",color:"muted",transitionProperty:"common",transitionDuration:"normal","&.sui-collapse-toggle .chakra-icon":{opacity:0},"&.sui-collapse-toggle":{cursor:"pointer",borderRadius:"md",_hover:{bg:"blackAlpha.100","& .chakra-icon":{opacity:1},_dark:{bg:"whiteAlpha.200"}}},"[data-compact] &":{opacity:0}},content:{}})),Aw=$w({baseStyle:_w}),{definePartsStyle:vn,defineMultiStyleConfig:Mw}=M(Qd.keys),Rw=vn(e=>({item:{my:"2px",color:"gray.900",minW:1,_dark:{color:"whiteAlpha.900"}},link:{display:"flex",rounded:"md",justifyContent:"flex-start",alignItems:"center",textDecoration:"none",transitionProperty:"common",transitionDuration:"normal",minW:1,_hover:{textDecoration:"none"},_focusVisible:{outline:"none",boxShadow:"outline"}},inner:{display:"flex",flex:1,w:"100%",alignItems:"center",minW:1},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},icon:{display:"flex",transitionProperty:"common",transitionDuration:"normal",alignItems:"center",justifyContent:"center",width:"4",ml:"-0.25rem",color:"currentColor"}})),Iw=vn(e=>{let t={bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}};return {link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:t,["&[aria-current=page]"]:t},icon:{opacity:.8,"[data-active] &":{opacity:1}}}}),Lw=vn(e=>{let{colorScheme:t,theme:r}=e,o={bg:X(`${t}.500`,.3)(r),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:X(`${t}.500`,.3)(r),color:`${t}.100`}};return {link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:o,["&[aria-current=page]"]:o}}}),Ow=vn(e=>{let{colorScheme:t}=e,r={bg:`${t}.500`};return {link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,["&[aria-current=page]"]:r,color:"white"},icon:{color:"white"},label:{}}}),Dw=vn(e=>{let{colorScheme:t}=e,r={_before:{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:-3,width:"3px",bg:`${t}.500`}};return {item:{position:"relative"},link:{_hover:{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,["&[aria-current=page]"]:r},icon:{"[data-active] &":{color:"currentColor"}},label:{}}}),sp,lp,cp,up,Vw=Mw({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:Rw,sizes:{xs:{link:(sp=react.theme.components.Button.sizes)==null?void 0:sp.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(lp=react.theme.components.Button.sizes)==null?void 0:lp.sm,icon:{me:2,fontSize:"sm"}},md:{link:(cp=react.theme.components.Button.sizes)==null?void 0:cp.md,icon:{me:2,fontSize:"md"}},lg:{link:(up=react.theme.components.Button.sizes)==null?void 0:up.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:Iw,subtle:Lw,solid:Ow,"left-accent":Dw}}),{definePartsStyle:Cp,defineMultiStyleConfig:Tp}=M(ep.keys),Nw=Cp(e=>{let{colorScheme:t}=e;return {bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),Bw=Tp({defaultProps:{colorScheme:"teal"},baseStyle:Nw}),{definePartsStyle:$t,defineMultiStyleConfig:jw}=M(tp.keys),fp=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),zw=$t(e=>({details:{minW:0},secondaryLabel:fp(),tertiaryLabel:fp()})),Fw={"2xs":$t({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:$t({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:$t({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:$t({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:$t({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:$t({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":$t({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},Ww=jw({defaultProps:{size:"md"},baseStyle:zw,sizes:Fw}),{definePartsStyle:tD,defineMultiStyleConfig:Hw}=M(Il.keys),Kw=Hw({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:Gw}=M(rp.keys),Uw=Gw({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:Nl,defineMultiStyleConfig:Yw}=M(op.keys),qw=Nl(e=>{let{colorScheme:t}=e;return {container:{bg:t?`${t}.500`:"white",display:"flex",flexDirection:"column",borderRightWidth:"1px",_dark:{bg:t?`${t}.500`:"gray.800"}},overlay:{bg:"blackAlpha.200"}}}),Xw=Nl(e=>({container:{width:"280px",maxWidth:["100vw","320px"],minWidth:"220px",py:3,"&[data-collapsible]":{pt:14}},section:{px:3},toggleWrapper:{h:8,mb:4,display:"none","[data-collapsible] &":{display:"block"}}})),Zw=Nl(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),Jw=Yw({defaultProps:{variant:"default"},baseStyle:qw,variants:{default:Xw,compact:Zw}}),Ce=Di("badge",["bg","color","shadow"]),Qw={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},eC=e=>{let{colorScheme:t,theme:r}=e,o=X(`${t}.500`,.6)(r);return {[Ce.bg.variable]:`colors.${t}.500`,[Ce.color.variable]:"colors.white",_dark:{[Ce.bg.variable]:o,[Ce.color.variable]:"colors.whiteAlpha.800"}}},tC=e=>{let{colorScheme:t,theme:r}=e,o=X(`${t}.200`,.16)(r);return {[Ce.bg.variable]:`colors.${t}.100`,[Ce.color.variable]:`colors.${t}.800`,_dark:{[Ce.bg.variable]:o,[Ce.color.variable]:`colors.${t}.200`}}},rC=e=>{let{colorScheme:t,theme:r}=e,o=X(`${t}.200`,.8)(r);return {[Ce.color.variable]:`colors.${t}.500`,_dark:{[Ce.color.variable]:o},[Ce.shadow.variable]:`inset 0 0 0px 1px ${Ce.color.reference}`}},oC={solid:eC,subtle:tC,outline:rC},dp={baseStyle:Qw,variants:oC,defaultProps:{variant:"subtle",colorScheme:"gray"}},{definePartsStyle:pt,defineMultiStyleConfig:nC}=M(Zt.keys),Vr=D("input-height"),Nr=D("input-font-size"),Br=D("input-padding"),jr=D("input-border-radius"),iC=pt({addon:{height:Vr.reference,fontSize:Nr.reference,px:Br.reference,borderRadius:jr.reference},field:{width:"100%",height:Vr.reference,fontSize:Nr.reference,px:Br.reference,borderRadius:jr.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Et={lg:{[Nr.variable]:"fontSizes.lg",[Br.variable]:"space.4",[jr.variable]:"radii.md",[Vr.variable]:"sizes.12"},md:{[Nr.variable]:"fontSizes.md",[Br.variable]:"space.4",[jr.variable]:"radii.md",[Vr.variable]:"sizes.10"},sm:{[Nr.variable]:"fontSizes.sm",[Br.variable]:"space.3",[jr.variable]:"radii.sm",[Vr.variable]:"sizes.8"},xs:{[Nr.variable]:"fontSizes.xs",[Br.variable]:"space.2",[jr.variable]:"radii.sm",[Vr.variable]:"sizes.6"}},aC={lg:pt({field:Et.lg,group:Et.lg}),md:pt({field:Et.md,group:Et.md}),sm:pt({field:Et.sm,group:Et.sm}),xs:pt({field:Et.xs,group:Et.xs})};function Bl(e){let{focusBorderColor:t,errorBorderColor:r}=e;return {focusBorderColor:t||ee("blue.500","blue.300")(e),errorBorderColor:r||ee("red.500","red.300")(e)}}var sC=pt(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=Bl(e);return {field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ee("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ce(t,o),boxShadow:`0 0 0 1px ${ce(t,o)}`},_focusVisible:{zIndex:1,borderColor:ce(t,r),boxShadow:`0 0 0 1px ${ce(t,r)}`}},addon:{border:"1px solid",borderColor:ee("inherit","whiteAlpha.50")(e),bg:ee("gray.100","whiteAlpha.300")(e)}}}),lC=pt(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=Bl(e);return {field:{border:"2px solid",borderColor:"transparent",bg:ee("gray.100","whiteAlpha.50")(e),_hover:{bg:ee("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ce(t,o)},_focusVisible:{bg:"transparent",borderColor:ce(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:ee("gray.100","whiteAlpha.50")(e)}}}),cC=pt(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=Bl(e);return {field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ce(t,o),boxShadow:`0px 1px 0px 0px ${ce(t,o)}`},_focusVisible:{borderColor:ce(t,r),boxShadow:`0px 1px 0px 0px ${ce(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),uC=pt({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),fC={outline:sC,filled:lC,flushed:cC,unstyled:uC},_t=nC({baseStyle:iC,sizes:aC,variants:fC,defaultProps:{size:"md",variant:"outline"}}),{defineMultiStyleConfig:dC}=M(ip.keys),pC=dC({defaultProps:_t.defaultProps,baseStyle:_t.baseStyle,sizes:_t.sizes,variants:_t.variants}),{definePartsStyle:mC,defineMultiStyleConfig:hC}=M(np.keys),gC=mC(e=>({item:{py:2,px:4},button:{transitionProperty:"common",transitionDuration:"normal",borderRadius:"inherit",outline:"none",_hover:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_focusVisible:{boxShadow:"outline"},_focus:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_active:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}}}})),yC=hC({defaultProps:{size:"md"},baseStyle:gC,sizes:{sm:{item:{py:1,px:1},button:{py:1,px:1},cell:{px:1},icon:{px:1}},md:{item:{py:2,px:2},button:{py:2,px:2},cell:{px:2},icon:{px:2}}}}),{definePartsStyle:jl,defineMultiStyleConfig:vC}=M(ap.keys),pp=D("timeline-row-start","minmax(0,1fr)"),bC=D("timeline-row-end","minmax(0,1fr)"),mp=D("timeline-col-start","minmax(0,1fr)"),hp=D("timeline-col-end","minmax(0,1fr)"),xC=jl(e=>({container:{display:"flex",[pp.variable]:"minmax(0,1fr)",[bC.variable]:"minmax(0,1fr)",[mp.variable]:"auto",[hp.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${pp.reference}`,gridTemplateColumns:`${mp.reference} ${hp.reference}`,position:"relative"},separator:{mx:1,minW:"24px",flexShrink:0,gridColumnStart:1,gap:2,height:"100%",_before:{content:'""',display:"block",flex:1,minH:"0.5em"},_after:{content:'""',display:"block",flex:1,minH:"0.5em"},"&:has(.sui-timeline__track:first-of-type):before":{display:"none"},"&:has(.sui-timeline__track:last-of-type):after":{display:"none"}},icon:{color:"gray.300",_dark:{color:"gray.600"}},dot:{width:"9px",height:"9px",bg:"currentColor",borderRadius:"full"},track:{bg:"gray.300",width:"1px",flex:1,minH:"0.5em",_dark:{bg:"gray.600"}},content:{px:"2",_first:{gridColumnStart:1},_last:{gridColumnStart:2,justifySelf:"start"}}})),SC=jl(e=>({icon:{}})),wC=jl(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),CC=vC({defaultProps:{variant:"solid",size:"sm"},baseStyle:xC,variants:{solid:SC,outline:wC},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),TC={baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center"},variants:{outline:({colorScheme:e})=>({borderWidth:"1px",borderColor:e?`${e}.500`:"chakra-border-color",color:e?`${e}.500`:"currentColor"}),solid:({colorScheme:e="gray"})=>({bg:`${e}.500`,color:"white"})},sizes:{sm:{borderRadius:"sm",fontSize:"0.9em",w:6,h:6},md:{borderRadius:"md",fontSize:"1.1em",w:8,h:8},lg:{borderRadius:"md",fontSize:"1.3em",w:10,h:10}},defaultProps:{variant:"outline",size:"md"}},kC=N("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:PC,definePartsStyle:EC}=M(kC.keys),gp=D("navbar-bg"),yp=D("navbar-text-color","currentColor"),Ll=D("navbar-link-bg","transparent"),$C=["yellow","cyan"],_C=PC({baseStyle:EC(({colorScheme:e})=>{let t="currentColor";return e&&(t=$C.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[gp.variable]:e?`colors.${e}.500`:"chakra-body-bg",[yp.variable]:t,bg:gp.reference,color:yp.reference,zIndex:"overlay",width:"full",height:"auto",alignItems:"center",justifyContent:"center",data:{"& [data-menu-open=true]":{border:"none"}}},inner:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",height:"var(--navbar-height)",px:{base:4,lg:6},gap:4,flexWrap:"nowrap"},toggle:{display:"flex",alignItems:"center",justifyContent:"center",width:6,height:"full",outline:"none",borderRadius:"sm"},brand:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"full",bg:"transparent",textDecoration:"none",color:"inherit",whiteSpace:"nowrap",boxSizing:"border-box"},content:{display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,listStyle:"none"},item:{display:"inline-flex",p:0},link:{bg:Ll.reference,color:"current",display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",whiteSpace:"nowrap",boxSizing:"border-box",borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",lineHeight:1,px:3,h:8,_focusVisible:{outline:"none",boxShadow:"outline"},_hover:{[Ll.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[Ll.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),AC={SuiAppShell:rw,SuiBanner:sw,SuiCommand:lw,SuiEmptyState:dw,SuiFormLayout:yw,SuiForm:gw,SuiFormLegend:vw,SuiHotkeys:xw,SuiStructuredList:yC,SuiLoadingOverlay:Pw,SuiNavGroup:Aw,SuiNavItem:Vw,SuiPersona:Ww,SuiProperty:Kw,SuiNProgress:Bw,SuiSearchInput:Uw,SuiSelect:pC,SuiSidebar:Jw,SuiTimeline:CC,SuiIconBadge:TC,SuiNavbar:_C},zl=react.extendTheme({colors:{primary:react.theme.colors.blue},semanticTokens:{colors:{"presence.online":"green.500","presence.offline":"gray.400","presence.busy":"orange.500","presence.dnd":"red.500","presence.away":"gray.400"}},components:AC}),MC={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},Ol={black:"#0e1012",gray:{50:"#f9fafa",100:"#f1f1f2",200:"#e7e7e8",300:"#d3d4d5",400:"#abadaf",500:"#7d7f83",600:"#52555a",700:"#33373d",800:"#1d2025",900:"#171a1d"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Dl=d({primary:Ol.purple,secondary:Ol.cyan},Ol),RC={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},IC={"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.25rem","3xl":"1.5rem","4xl":"1.875rem","5xl":"2.25rem","6xl":"3rem","7xl":"3.75rem","8xl":"4.5rem","9xl":"6rem"},LC={h1:{fontSize:["5xl","6xl","7xl"],fontWeight:"extrabold",lineHeight:"1.2",letterSpacing:"-2%"},h2:{fontSize:["3xl","4xl","5xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},h3:{fontSize:["lg","xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},subtitle:{fontSize:["lg",null,"2xl"],fontWeight:"normal"}},OC={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},DC=OC,VC={outline:`0 0 0 2px ${X(Dl.primary[500],.6)({colors:Dl})}`},NC=VC,BC={colors:{"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.200"},muted:{default:"gray.500",_dark:"gray.400"},neutral:{default:"black",_dark:"white"},"neutral-fg":{default:"white",_dark:"black"}}},jC={colors:Dl,fonts:RC,fontSizes:IC,textStyles:LC,sizes:DC,shadows:NC,semanticTokens:BC},{definePartsStyle:kp,defineMultiStyleConfig:zC}=M(nn.keys),FC=kp(e=>{let{colorScheme:t}=e;return {container:{bg:"white",_dark:{bg:"black"},borderWidth:"1px"},icon:{color:`${t}.500`,_dark:{color:`${t}.500`},"& .chakra-spinner":{color:"black",_dark:{color:"white"}}},title:{fontWeight:"semibold",fontSize:"md"},description:{fontSize:"sm",color:"gray.500",_dark:{color:"gray.400"}}}}),WC=kp({container:{borderRadius:"md"}}),HC=zC({defaultProps:{size:"sm"},baseStyle:WC,variants:{snackbar:FC}}),gn=Di("badge",["bg","color","shadow","border"]),KC={variants:{outline:e=>{var t;let r=(t=dp.variants)==null?void 0:t.outline(e);return b(d({},r),{_dark:b(d({},r==null?void 0:r._dark),{[gn.shadow.variable]:`inset 0 0 0px 1px ${gn.border.reference}`,[gn.color.variable]:`colors.${e.colorScheme}.200`,[gn.border.variable]:`colors.${e.colorScheme}.500`})})},ghost:e=>{var t;let r=(t=dp.variants)==null?void 0:t.outline(e);return b(d({},r),{shadow:"none",_dark:b(d({},r==null?void 0:r._dark),{[gn.color.variable]:`colors.${e.colorScheme}.200`})})}}},Pp=e=>{let{colorScheme:t}=e;return t==="gray"?{base:ee("gray.100","whiteAlpha.300")(e),hover:ee("gray.200","whiteAlpha.400")(e),active:ee("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:ee(`${t}.500`,`${t}.500`)(e),hover:ee(`${t}.600`,`${t}.600`)(e),active:ee(`${t}.700`,`${t}.700`)(e)}},GC={yellow:{bg:"yellow.400",hoverBg:"yellow.500",activeBg:"yellow.600",color:"black"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Xi=e=>{var t;let{colorScheme:r,colorMode:o}=e;if(r==="white")return {bg:"white",color:"black",_hover:{bg:"whiteAlpha.900",_dark:{bg:"whiteAlpha.900"},_disabled:{bg:"white"}},_active:{bg:"whiteAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700"}};if(r==="neutral")return {bg:"black",color:"white",_dark:{bg:"white",color:"black"},_hover:{bg:"blackAlpha.800",_disabled:{bg:"black"},_dark:{bg:"whiteAlpha.800",_disabled:{bg:"white"}}},_active:{bg:"blackAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700",_dark:{color:"whiteAlpha.700"}}};let{base:n,hover:i,active:a}=Pp(e),{color:s=r==="gray"?ee("black","white")(e):"white",bg:l=n,hoverBg:c=i,activeBg:u=a}=(t=GC[r])!=null?t:{};return {bg:l,color:s,_hover:{bg:c,_disabled:{bg:l}},_active:{bg:u}}},UC=e=>d({shadow:"md"},Xi(e)),Ep=e=>{let{colorScheme:t}=e,{base:r,hover:o,active:n}=Pp(e);return b(d({},$p(e)),{borderColor:t==="gray"?o:r,borderWidth:"1px",_hover:{borderColor:t==="gray"?n:o}})},$p=e=>{let{colorScheme:t,theme:r}=e;if(t==="gray")return {color:"inherit",_dark:{color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:{bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}}};if(t==="white")return {color:"white",_hover:{bg:"whiteAlpha.200"},_active:"whiteAlpha.300"};let o=X(`${t}.200`,.12)(r),n=X(`${t}.200`,.24)(r);return {color:`${t}.600`,_dark:{color:`${t}.200`},bg:"transparent",_hover:{bg:`${t}.50`,_dark:{bg:o}},_active:{bg:`${t}.100`,_dark:{bg:n}}}},YC=e=>{let{colorScheme:t,theme:r}=e;if(t==="gray")return {color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100",color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.200",_dark:{color:"white.200"}},_active:{bg:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"}}};let o=t==="white"?"white":ee(`${t}.500`,`${t}.200`)(e),n=X(o,.1)(r),i=X(o,.16)(r),a=X(o,.24)(r);return {color:t==="white"?"white":ee(`${t}.600`,`${t}.200`)(e),bg:n,_hover:{bg:i},_active:{bg:a}}},qC=e=>{let{colorScheme:t}=e;return {padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":ee(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":ee(`${t}.700`,`${t}.500`)(e)}}},XC=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),Xi(b(d({},e),{variant:"solid",colorScheme:t}))},ZC=e=>Xi(b(d({},e),{variant:"solid"})),JC=e=>Ep(b(d({},e),{variant:"outline"})),QC={defaultProps:{size:"sm"},variants:{solid:Xi,ghost:$p,outline:Ep,subtle:YC,elevated:UC,link:qC,primary:XC,secondary:ZC,tertiary:JC}},{definePartsStyle:Zi,defineMultiStyleConfig:eT}=M(kl.keys),er=D("card-bg");D("card-padding");var Fl=D("card-shadow");D("card-radius");var Wl=D("card-border-width","0"),At=D("card-border-color"),tT=Zi(()=>({container:{transitionProperty:"common",transitionDuration:"normal"},header:{p:4},body:{p:4},footer:{p:4}})),rT=Zi(e=>({container:{[er.variable]:"colors.white",[At.variable]:"colors.blackAlpha.200",[Wl.variable]:"1px",[Fl.variable]:"shadows.sm",_dark:{[er.variable]:"colors.whiteAlpha.200",[At.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[At.variable]:"colors.blackAlpha.300",_dark:{[At.variable]:"colors.whiteAlpha.300"}}}})),oT=Zi(e=>{let{colorScheme:t}=e,r=t?"white":"inherit";return {container:{[Wl.variable]:"0",[Fl.variable]:"none",[er.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:r,"&.chakra-linkbox:hover":{[er.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[er.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[er.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),nT=Zi(e=>{let{colorScheme:t}=e;return {container:{[Wl.variable]:"1px",[Fl.variable]:"none",[At.variable]:t?`${t}.500`:"colors.blackAlpha.200",[er.variable]:"transparent","&.chakra-linkbox:hover":{[At.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[At.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[At.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),iT=eT({defaultProps:{variant:"elevated"},baseStyle:tT,variants:{elevated:rT,outline:nT,filled:oT}}),{definePartsStyle:aT,defineMultiStyleConfig:sT}=M(bl.keys),lT=aT(e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),cT=sT({baseStyle:lT}),uT={defaultProps:{size:"sm"}},{definePartsStyle:Ui,defineMultiStyleConfig:fT}=M(Zt.keys),Wi=D("input-height"),Hi=D("input-padding"),vp=D("input-border-radius"),_p={sm:Ui({field:{[vp.variable]:"radii.md"},group:{[vp.variable]:"radii.md"}}),md:Ui({field:{[Hi.variable]:"space.3",[Wi.variable]:"sizes.9"},group:{[Hi.variable]:"space.3",[Wi.variable]:"sizes.9"}}),lg:Ui({field:{[Hi.variable]:"space.3",[Wi.variable]:"sizes.10"},group:{[Hi.variable]:"space.3",[Wi.variable]:"sizes.10"}})},Ap=Ui(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),Hl=fT({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:Ap},sizes:_p}),dT={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},yn=Hl,pT=Hl,mT={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:Ap},sizes:_p},hT={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,r;return (r=(t=yn.variants)==null?void 0:t.outline(e).field)!=null?r:{}}}},gT=Hl,bp,xp,yT=b(d({},_t),{defaultProps:yn.defaultProps,variants:{outline:e=>{var t,r;return d({},(r=(t=yn.variants)==null?void 0:t.outline(e))!=null?r:{})},flushed:e=>{var t,r;return (r=(t=_t.variants)==null?void 0:t.flushed(e))!=null?r:{}},filled:e=>{var t,r;return (r=(t=_t.variants)==null?void 0:t.filled(e))!=null?r:{}},unstyled:(xp=(bp=_t.variants)==null?void 0:bp.unstyled)!=null?xp:{}},sizes:yn.sizes}),vT={defaultProps:{size:"lg"}},bT=e=>({color:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"},borderWidth:0,borderBottomWidth:0,padding:"1px",display:"inline-block",borderRadius:"3px",minW:"20px",textAlign:"center",mr:1,":last-child":{mr:0}}),xT={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:bT}},{definePartsStyle:Mp,defineMultiStyleConfig:ST}=M(an.keys),wT=Mp(e=>({list:{borderWidth:1,borderColor:"blackAlpha.200",boxShadow:"lg",_dark:{borderWidth:0,borderColor:"whiteAlpha.300",boxShadow:"dark-lg"}},divider:{borderColor:"blackAlpha.200",_dark:{borderColor:"whiteAlpha.300"}},groupTitle:{mx:3}})),CT=Mp(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),TT=ST({baseStyle:wT,variants:{dialog:CT}}),{definePartsStyle:kT,defineMultiStyleConfig:PT}=M(sn.keys),ET=kT(e=>({closeButton:{top:4,insetEnd:4}})),$T=PT({baseStyle:ET}),{definePartsStyle:_T,defineMultiStyleConfig:AT}=M(ln.keys),MT=AT({defaultProps:{colorScheme:"primary"},baseStyle:_T(e=>{let{colorScheme:t}=e;return {track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:RT,defineMultiStyleConfig:IT}=M(Cl.keys),LT=IT({baseStyle:RT(e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:OT,defineMultiStyleConfig:DT}=M(Tl.keys),VT=DT({defaultProps:{colorScheme:"primary"},baseStyle:OT(e=>{let{colorScheme:t}=e;return {filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:NT,defineMultiStyleConfig:BT}=M(cn.keys),jT=BT({baseStyle:NT(e=>{let{colorScheme:t}=e;return {track:{_checked:{bg:`${t}.500`}}}})}),Ki=Xe("tooltip-bg"),Sp=Xe("tooltip-fg"),zT=Xe("popper-arrow-bg"),FT=e=>({display:"flex",[Ki.variable]:"colors.white",[Sp.variable]:"colors.blackAlpha.900",_dark:{[Ki.variable]:"colors.gray.700",[Sp.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[Ki.reference],[zT.variable]:[Ki.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),WT={baseStyle:FT},Gi=D("stepper-indicator-size"),rr=D("stepper-accent-color"),tr=D("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:HT,definePartsStyle:Mt}=M(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),KT=Mt(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{["&[data-orientation=vertical]"]:{mt:2,ms:tr.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[tr.variable]:"10px",[rr.variable]:`colors.${e}.500`,_dark:{[rr.variable]:`colors.${e}.500`}},separator:{transitionProperty:"common",transitionDuration:"normal",["&[data-orientation=horizontal]"]:{height:"1px"},["&[data-orientation=vertical]"]:{width:"1px"},[".sui-steps__item .chakra-step &[data-orientation=vertical]"]:{display:"none"},[".sui-steps__item &[data-orientation=vertical]"]:{position:"static",minH:4,height:"auto",ms:tr.reference}},step:{["&[data-orientation=vertical]"]:{alignItems:"center"}}})),GT=Mt(e=>({})),UT=Mt(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:rr.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:rr.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),YT=Mt(e=>{let{theme:t,colorScheme:r}=e;return {stepper:{[rr.variable]:`colors.${r}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:rr.reference,color:`${r}.500`,_dark:{bg:X(`${r}.200`,.16)(t)}},"&[data-status=complete]":{bg:rr.reference,color:`${r}.500`,_dark:{bg:X(`${r}.200`,.24)(t),color:`${r}.200`}},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",color:"blackAlpha.700",_dark:{bg:"whiteAlpha.200",color:"whiteAlpha.600"}}}}}),qT=HT({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:KT,variants:{outline:GT,solid:UT,subtle:YT},sizes:{xs:Mt({stepper:{[Gi.variable]:"sizes.4",[tr.variable]:"7px"}}),sm:Mt({stepper:{[Gi.variable]:"sizes.6",[tr.variable]:"11px"}}),md:Mt({stepper:{[Gi.variable]:"sizes.7",[tr.variable]:"14px"}}),lg:Mt({stepper:{[Gi.variable]:"sizes.8",[tr.variable]:"16px"}})}}),{definePartsStyle:XT,defineMultiStyleConfig:ZT}=M(Rl.keys),JT=XT(e=>{let{colorScheme:t}=e;return {icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),QT=ZT({baseStyle:JT}),ek=Cp(e=>{let{colorScheme:t}=e;return {bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),tk=Tp({defaultProps:{colorScheme:"primary"},baseStyle:ek}),{definePartsStyle:HD,defineMultiStyleConfig:rk}=M(Il.keys),ok=rk({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),nk={Alert:HC,Badge:KC,Button:QC,Card:iT,Checkbox:cT,CloseButton:uT,Heading:vT,Kbd:xT,Menu:TT,Modal:$T,Progress:MT,Radio:LT,Slider:VT,Switch:jT,Stepper:qT,Tooltip:WT,Input:yn,PinInput:mT,FormLabel:dT,NumberInput:pT,Select:gT,Textarea:hT,SuiEmptyState:QT,SuiNProgress:tk,SuiProperty:ok,SuiSelect:yT},bn=react.extendTheme(b(d({},jC),{styles:MC,components:nk}),react.withDefaultColorScheme({colorScheme:"primary",components:["Radio","Switch","Checkbox"]}),zl);var Ji=bt.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var Rt=bt.createContext({});var It=bt.createContext(null);var Lt=typeof document!="undefined";var zr=Lt?bt.useLayoutEffect:bt.useEffect;var Qi=bt.createContext({strict:!1});function Ip(e,t,r,o){let{visualElement:n}=bt.useContext(Rt),i=bt.useContext(Qi),a=bt.useContext(It),s=bt.useContext(Ji).reducedMotion,l=bt.useRef();o=o||i.renderer,!l.current&&o&&(l.current=o(e,{visualState:t,parent:n,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));let c=l.current;bt.useInsertionEffect(()=>{c&&c.update(r,a);});let u=bt.useRef(!!window.HandoffAppearAnimations);return zr(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges());}),bt.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,u.current=!1);}),c}function mt(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Lp(e,t,r){return bt.useCallback(o=>{o&&e.mount&&e.mount(o),t&&(o?t.mount(o):t.unmount()),r&&(typeof r=="function"?r(o):mt(r)&&(r.current=o));},[t])}function ht(e){return typeof e=="string"||Array.isArray(e)}function Ot(e){return typeof e=="object"&&typeof e.start=="function"}var ta=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xn=["initial",...ta];function or(e){return Ot(e.animate)||xn.some(t=>ht(e[t]))}function ra(e){return !!(or(e)||e.variants)}function Op(e,t){if(or(e)){let{initial:r,animate:o}=e;return {initial:r===!1||ht(r)?r:void 0,animate:ht(o)?o:void 0}}return e.inherit!==!1?t:{}}function Vp(e){let{initial:t,animate:r}=Op(e,bt.useContext(Rt));return bt.useMemo(()=>({initial:t,animate:r}),[Dp(t),Dp(r)])}function Dp(e){return Array.isArray(e)?e.join(" "):e}var Np={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"]},nr={};for(let e in Np)nr[e]={isEnabled:t=>Np[e].some(r=>!!t[r])};function Bp(e){for(let t in e)nr[t]=d(d({},nr[t]),e[t]);}var Fr=bt.createContext({});var oa=bt.createContext({});var jp=Symbol.for("motionComponentSymbol");function zp({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:o,Component:n}){e&&Bp(e);function i(s,l){let c,u=b(d(d({},bt.useContext(Ji)),s),{layoutId:bk(s)}),{isStatic:f}=u,p=Vp(s),m=o(s,f);if(!f&&Lt){p.visualElement=Ip(n,m,u,t);let v=bt.useContext(oa),y=bt.useContext(Qi).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,y,e,v));}return bt__namespace.createElement(Rt.Provider,{value:p},c&&p.visualElement?bt__namespace.createElement(c,d({visualElement:p.visualElement},u)):null,r(n,s,Lp(m,p.visualElement,l),m,f,p.visualElement))}let a=bt.forwardRef(i);return a[jp]=n,a}function bk({layoutId:e}){let t=bt.useContext(Fr).id;return t&&e!==void 0?t+"-"+e:e}function Fp(e){function t(o,n={}){return zp(e(o,n))}if(typeof Proxy=="undefined")return t;let r=new Map;return new Proxy(t,{get:(o,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}var Wp=["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 Wr(e){return typeof e!="string"||e.includes("-")?!1:!!(Wp.indexOf(e)>-1||/[A-Z]/.test(e))}var Hr={};function Hp(e){Object.assign(Hr,e);}var Dt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$e=new Set(Dt);function ia(e,{layout:t,layoutId:r}){return $e.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Hr[e]||e==="opacity")}var te=e=>!!(e&&e.getVelocity);var xk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sk=Dt.length;function Kp(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},o,n){let i="";for(let a=0;a<Sk;a++){let s=Dt[a];if(e[s]!==void 0){let l=xk[s]||s;i+=`${l}(${e[s]}) `;}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),n?i=n(e,o?"":i):r&&o&&(i="none"),i}var Gp=e=>t=>typeof t=="string"&&t.startsWith(e),aa=Gp("--"),sa=Gp("var(--"),Up=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g;var Yp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var Te=(e,t,r)=>Math.min(Math.max(r,e),t);var Ke={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vt=b(d({},Ke),{transform:e=>Te(0,1,e)}),Sn=b(d({},Ke),{default:1});var Nt=e=>Math.round(e*1e5)/1e5,ir=/(-)?([\d]*\.?[\d])+/g,Gl=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,qp=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function gt(e){return typeof e=="string"}var wn=e=>({test:t=>gt(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ot=wn("deg"),ke=wn("%"),V=wn("px"),Xp=wn("vh"),Zp=wn("vw"),Ul=b(d({},ke),{parse:e=>ke.parse(e)/100,transform:e=>ke.transform(e*100)});var Yl=b(d({},Ke),{transform:Math.round});var la={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,size:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,rotate:ot,rotateX:ot,rotateY:ot,rotateZ:ot,scale:Sn,scaleX:Sn,scaleY:Sn,scaleZ:Sn,skew:ot,skewX:ot,skewY:ot,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Vt,originX:Ul,originY:Ul,originZ:V,zIndex:Yl,fillOpacity:Vt,strokeOpacity:Vt,numOctaves:Yl};function Kr(e,t,r,o){let{style:n,vars:i,transform:a,transformOrigin:s}=e,l=!1,c=!1,u=!0;for(let f in t){let p=t[f];if(aa(f)){i[f]=p;continue}let m=la[f],v=Yp(p,m);if($e.has(f)){if(l=!0,a[f]=v,!u)continue;p!==(m.default||0)&&(u=!1);}else f.startsWith("origin")?(c=!0,s[f]=v):n[f]=v;}if(t.transform||(l||o?n.transform=Kp(e.transform,r,u,o):n.transform&&(n.transform="none")),c){let{originX:f="50%",originY:p="50%",originZ:m=0}=s;n.transformOrigin=`${f} ${p} ${m}`;}}var Gr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ql(e,t,r){for(let o in t)!te(t[o])&&!ia(o,r)&&(e[o]=t[o]);}function Ck({transformTemplate:e},t,r){return bt.useMemo(()=>{let o=Gr();return Kr(o,t,{enableHardwareAcceleration:!r},e),Object.assign({},o.vars,o.style)},[t])}function Tk(e,t,r){let o=e.style||{},n={};return ql(n,o,e),Object.assign(n,Ck(e,t,r)),e.transformValues?e.transformValues(n):n}function Jp(e,t,r){let o={},n=Tk(e,t,r);return e.drag&&e.dragListener!==!1&&(o.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(o.tabIndex=0),o.style=n,o}var kk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Cn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||kk.has(e)}var om=e=>!Cn(e);function Ak(e){e&&(om=t=>t.startsWith("on")?!Cn(t):e(t));}try{Ak((rm(),u0(tm)).default);}catch(e){}function nm(e,t,r){let o={};for(let n in e)n==="values"&&typeof e.values=="object"||(om(n)||r===!0&&Cn(n)||!t&&!Cn(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}function im(e,t,r){return typeof e=="string"?e:V.transform(t+r*e)}function am(e,t,r){let o=im(t,e.x,e.width),n=im(r,e.y,e.height);return `${o} ${n}`}var Mk={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rk={offset:"strokeDashoffset",array:"strokeDasharray"};function sm(e,t,r=1,o=0,n=!0){e.pathLength=1;let i=n?Mk:Rk;e[i.offset]=V.transform(-o);let a=V.transform(t),s=V.transform(r);e[i.array]=`${a} ${s}`;}function Ur(e,m,u,f,p){var v=m,{attrX:t,attrY:r,attrScale:o,originX:n,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0}=v,c=P(v,["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"]);if(Kr(e,c,u,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:y,style:x,dimensions:w}=e;y.transform&&(w&&(x.transform=y.transform),delete y.transform),w&&(n!==void 0||i!==void 0||x.transform)&&(x.transformOrigin=am(w,n!==void 0?n:.5,i!==void 0?i:.5)),t!==void 0&&(y.x=t),r!==void 0&&(y.y=r),o!==void 0&&(y.scale=o),a!==void 0&&sm(y,a,s,l,!1);}var ca=()=>b(d({},Gr()),{attrs:{}});var Yr=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lm(e,t,r,o){let n=bt.useMemo(()=>{let i=ca();return Ur(i,t,{enableHardwareAcceleration:!1},Yr(o),e.transformTemplate),b(d({},i.attrs),{style:d({},i.style)})},[t]);if(e.style){let i={};ql(i,e.style,e),n.style=d(d({},i),n.style);}return n}function cm(e=!1){return (r,o,n,{latestValues:i},a)=>{let l=(Wr(r)?lm:Jp)(o,i,a,r),c=nm(o,typeof r=="string",e),u=b(d(d({},c),l),{ref:n}),{children:f}=o,p=bt.useMemo(()=>te(f)?f.get():f,[f]);return bt.createElement(r,b(d({},u),{children:p}))}}var qr=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ua(e,{style:t,vars:r},o,n){Object.assign(e.style,t,n&&n.getProjectionStyles(o));for(let i in r)e.style.setProperty(i,r[i]);}var fa=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 da(e,t,r,o){ua(e,t,void 0,o);for(let n in t.attrs)e.setAttribute(fa.has(n)?n:qr(n),t.attrs[n]);}function Xr(e,t){let{style:r}=e,o={};for(let n in r)(te(r[n])||t.style&&te(t.style[n])||ia(n,e))&&(o[n]=r[n]);return o}function pa(e,t){let r=Xr(e,t);for(let o in e)if(te(e[o])||te(t[o])){let n=Dt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[n]=e[o];}return r}function Zr(e,t,r,o={},n={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,o,n)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,o,n)),t}function ma(e){let t=bt.useRef(null);return t.current===null&&(t.current=e()),t.current}var ar=e=>Array.isArray(e);var um=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fm=e=>ar(e)?e[e.length-1]||0:e;function Jr(e){let t=te(e)?e.get():e;return um(t)?t.toValue():t}function Vk({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},o,n,i){let a={latestValues:Nk(o,n,i,e),renderState:t()};return r&&(a.mount=s=>r(o,s,a)),a}var ha=e=>(t,r)=>{let o=bt.useContext(Rt),n=bt.useContext(It),i=()=>Vk(e,t,o,n);return r?i():ma(i)};function Nk(e,t,r,o){let n={},i=o(e,{});for(let p in i)n[p]=Jr(i[p]);let{initial:a,animate:s}=e,l=or(e),c=ra(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||a===!1;let f=u?s:a;return f&&typeof f!="boolean"&&!Ot(f)&&(Array.isArray(f)?f:[f]).forEach(m=>{let v=Zr(e,m);if(!v)return;let S=v,{transitionEnd:y,transition:x}=S,w=P(S,["transitionEnd","transition"]);for(let C in w){let k=w[C];if(Array.isArray(k)){let $=u?k.length-1:0;k=k[$];}k!==null&&(n[C]=k);}for(let C in y)n[C]=y[C];}),n}var H=e=>e;var ga=class{constructor(){this.order=[],this.scheduled=new Set;}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t));}clear(){this.order.length=0,this.scheduled.clear();}};function pm(e){let t=new ga,r=new ga,o=0,n=!1,i=!1,a=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{let f=u&&n,p=f?t:r;return c&&a.add(l),p.add(l)&&f&&n&&(o=t.order.length),l},cancel:l=>{r.remove(l),a.delete(l);},process:l=>{if(n){i=!0;return}if(n=!0,[t,r]=[r,t],r.clear(),o=t.order.length,o)for(let c=0;c<o;c++){let u=t.order[c];u(l),a.has(u)&&(s.schedule(u),e());}n=!1,i&&(i=!1,s.process(l));}};return s}var ya=["prepare","read","update","preRender","render","postRender"],Bk=40;function mm(e,t){let r=!1,o=!0,n={delta:0,timestamp:0,isProcessing:!1},i=ya.reduce((f,p)=>(f[p]=pm(()=>r=!0),f),{}),a=f=>i[f].process(n),s=()=>{let f=performance.now();r=!1,n.delta=o?1e3/60:Math.max(Math.min(f-n.timestamp,Bk),1),n.timestamp=f,n.isProcessing=!0,ya.forEach(a),n.isProcessing=!1,r&&t&&(o=!1,e(s));},l=()=>{r=!0,o=!0,n.isProcessing||e(s);};return {schedule:ya.reduce((f,p)=>{let m=i[p];return f[p]=(v,y=!1,x=!1)=>(r||l(),m.schedule(v,y,x)),f},{}),cancel:f=>ya.forEach(p=>i[p].cancel(f)),state:n,steps:i}}var{schedule:z,cancel:Pe,state:ne,steps:va}=mm(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:H,!0);var hm={useVisualState:ha({scrapeMotionValuesFromProps:pa,createRenderState:ca,onMount:(e,t,{renderState:r,latestValues:o})=>{z.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect();}catch(n){r.dimensions={x:0,y:0,width:0,height:0};}}),z.render(()=>{Ur(r,o,{enableHardwareAcceleration:!1},Yr(t.tagName),e.transformTemplate),da(t,r);});}})};var gm={useVisualState:ha({scrapeMotionValuesFromProps:Xr,createRenderState:Gr})};function ym(e,{forwardMotionProps:t=!1},r,o){let n=Wr(e)?hm:gm;return b(d({},n),{preloadedFeatures:r,useRender:cm(t),createVisualElement:o,Component:e})}function _e(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}var ba=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function sr(e,t="page"){return {point:{x:e[t+"X"],y:e[t+"Y"]}}}var vm=e=>t=>ba(t)&&e(t,sr(t));function Ae(e,t,r,o){return _e(e,t,vm(r),o)}var jk=(e,t)=>r=>t(e(r)),Me=(...e)=>e.reduce(jk);function Sm(e){let t=null;return ()=>{let r=()=>{t=null;};return t===null?(t=e,r):!1}}var bm=Sm("dragHorizontal"),xm=Sm("dragVertical");function Xl(e){let t=!1;if(e==="y")t=xm();else if(e==="x")t=bm();else {let r=bm(),o=xm();r&&o?t=()=>{r(),o();}:(r&&r(),o&&o());}return t}function xa(){let e=Xl(!0);return e?(e(),!1):!0}var fe=class{constructor(t){this.isMounted=!1,this.node=t;}update(){}};function wm(e,t){let r="pointer"+(t?"enter":"leave"),o="onHover"+(t?"Start":"End"),n=(i,a)=>{if(i.type==="touch"||xa())return;let s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[o]&&z.update(()=>s[o](i,a));};return Ae(e.current,r,n,{passive:!e.getProps()[o]})}var Sa=class extends fe{mount(){this.unmount=Me(wm(this.node,!0),wm(this.node,!1));}unmount(){}};var wa=class extends fe{constructor(){super(...arguments),this.isActive=!1;}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible");}catch(r){t=!0;}!t||!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=Me(_e(this.node.current,"focus",()=>this.onFocus()),_e(this.node.current,"blur",()=>this.onBlur()));}unmount(){}};var Zl=(e,t)=>t?e===t?!0:Zl(e,t.parentElement):!1;function Jl(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,sr(r));}var Ca=class extends fe{constructor(){super(...arguments),this.removeStartListeners=H,this.removeEndListeners=H,this.removeAccessibleListeners=H,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;let o=this.node.getProps(),i=Ae(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;let{onTap:c,onTapCancel:u}=this.node.getProps();z.update(()=>{Zl(this.node.current,s.target)?c&&c(s,l):u&&u(s,l);});},{passive:!(o.onTap||o.onPointerUp)}),a=Ae(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(o.onTapCancel||o.onPointerCancel)});this.removeEndListeners=Me(i,a),this.startPress(t,r);},this.startAccessiblePress=()=>{let t=i=>{if(i.key!=="Enter"||this.isPressing)return;let a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Jl("up",(l,c)=>{let{onTap:u}=this.node.getProps();u&&z.update(()=>u(l,c));});};this.removeEndListeners(),this.removeEndListeners=_e(this.node.current,"keyup",a),Jl("down",(s,l)=>{this.startPress(s,l);});},r=_e(this.node.current,"keydown",t),o=()=>{this.isPressing&&Jl("cancel",(i,a)=>this.cancelPress(i,a));},n=_e(this.node.current,"blur",o);this.removeAccessibleListeners=Me(r,n);};}startPress(t,r){this.isPressing=!0;let{onTapStart:o,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),o&&z.update(()=>o(t,r));}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xa()}cancelPress(t,r){if(!this.checkPressEnd())return;let{onTapCancel:o}=this.node.getProps();o&&z.update(()=>o(t,r));}mount(){let t=this.node.getProps(),r=Ae(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),o=_e(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Me(r,o);}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners();}};var ec=new WeakMap,Ql=new WeakMap,zk=e=>{let t=ec.get(e.target);t&&t(e);},Fk=e=>{e.forEach(zk);};function Wk(r){var o=r,{root:e}=o,t=P(o,["root"]);let n=e||document;Ql.has(n)||Ql.set(n,{});let i=Ql.get(n),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(Fk,d({root:e},t))),i[a]}function Cm(e,t,r){let o=Wk(t);return ec.set(e,r),o.observe(e),()=>{ec.delete(e),o.unobserve(e);}}var Hk={some:0,all:1},Ta=class extends fe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1;}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:r,margin:o,amount:n="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:o,threshold:typeof n=="number"?n:Hk[n]},s=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),p=c?u:f;p&&p(l);};return Cm(this.node.current,a,s)}mount(){this.startObserver();}update(){if(typeof IntersectionObserver=="undefined")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Kk(t,r))&&this.startObserver();}unmount(){}};function Kk({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var Tm={inView:{Feature:Ta},tap:{Feature:Ca},focus:{Feature:wa},hover:{Feature:Sa}};function tc(e,t){if(!Array.isArray(t))return !1;let r=t.length;if(r!==e.length)return !1;for(let o=0;o<r;o++)if(t[o]!==e[o])return !1;return !0}function Gk(e){let t={};return e.values.forEach((r,o)=>t[o]=r.get()),t}function Uk(e){let t={};return e.values.forEach((r,o)=>t[o]=r.getVelocity()),t}function Bt(e,t,r){let o=e.getProps();return Zr(o,t,r!==void 0?r:o.custom,Gk(e),Uk(e))}var Yk="framerAppearId",km="data-"+qr(Yk);var ye=H;var Ne=e=>e*1e3,Re=e=>e/1e3;var rc={current:!1};var oc=e=>Array.isArray(e)&&typeof e[0]=="number";function nc(e){return !!(!e||typeof e=="string"&&Pm[e]||oc(e)||Array.isArray(e)&&e.every(nc))}var Tn=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`,Pm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tn([0,.65,.55,1]),circOut:Tn([.55,0,1,.45]),backIn:Tn([.31,.01,.66,-.59]),backOut:Tn([.33,1.53,.69,.99])};function ic(e){if(e)return oc(e)?Tn(e):Array.isArray(e)?e.map(ic):Pm[e]}function Em(e,t,r,{delay:o=0,duration:n,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){let c={[t]:r};l&&(c.offset=l);let u=ic(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:o,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function $m(e,{repeat:t,repeatType:r="loop"}){let o=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[o]}var _m=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,qk=1e-7,Xk=12;function Zk(e,t,r,o,n){let i,a,s=0;do a=t+(r-t)/2,i=_m(a,o,n)-e,i>0?r=a:t=a;while(Math.abs(i)>qk&&++s<Xk);return a}function jt(e,t,r,o){if(e===t&&r===o)return H;let n=i=>Zk(i,0,1,e,r);return i=>i===0||i===1?i:_m(n(i),t,o)}var Am=jt(.42,0,1,1),Mm=jt(0,0,.58,1),ka=jt(.42,0,.58,1);var Rm=e=>Array.isArray(e)&&typeof e[0]!="number";var Pa=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var Ea=e=>t=>1-e(1-t);var ac=e=>1-Math.sin(Math.acos(e)),kn=Ea(ac),Im=Pa(kn);var sc=jt(.33,1.53,.69,.99),Pn=Ea(sc),Lm=Pa(Pn);var Om=e=>(e*=2)<1?.5*Pn(e):.5*(2-Math.pow(2,-10*(e-1)));var Dm={linear:H,easeIn:Am,easeInOut:ka,easeOut:Mm,circIn:ac,circInOut:Im,circOut:kn,backIn:Pn,backInOut:Lm,backOut:sc,anticipate:Om},lc=e=>{if(Array.isArray(e)){ye(e.length===4);let[t,r,o,n]=e;return jt(t,r,o,n)}else if(typeof e=="string")return Dm[e];return e};var eo=(e,t)=>r=>!!(gt(r)&&qp.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),$a=(e,t,r)=>o=>{if(!gt(o))return o;let[n,i,a,s]=o.match(ir);return {[e]:parseFloat(n),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}};var Jk=e=>Te(0,255,e),cc=b(d({},Ke),{transform:e=>Math.round(Jk(e))}),nt={test:eo("rgb","red"),parse:$a("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+cc.transform(e)+", "+cc.transform(t)+", "+cc.transform(r)+", "+Nt(Vt.transform(o))+")"};function Qk(e){let t="",r="",o="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var En={test:eo("#"),parse:Qk,transform:nt.transform};var zt={test:eo("hsl","hue"),parse:$a("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+ke.transform(Nt(t))+", "+ke.transform(Nt(r))+", "+Nt(Vt.transform(o))+")"};var se={test:e=>nt.test(e)||En.test(e)||zt.test(e),parse:e=>nt.test(e)?nt.parse(e):zt.test(e)?zt.parse(e):En.parse(e),transform:e=>gt(e)?e:e.hasOwnProperty("red")?nt.transform(e):zt.transform(e)};var K=(e,t,r)=>-r*e+r*t+e;function uc(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Vm({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,t/=100,r/=100;let n=0,i=0,a=0;if(!t)n=i=a=r;else {let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=uc(l,s,e+1/3),i=uc(l,s,e),a=uc(l,s,e-1/3);}return {red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}var fc=(e,t,r)=>{let o=e*e;return Math.sqrt(Math.max(0,r*(t*t-o)+o))},eP=[En,nt,zt],tP=e=>eP.find(t=>t.test(e));function Nm(e){let t=tP(e);let r=t.parse(e);return t===zt&&(r=Vm(r)),r}var _a=(e,t)=>{let r=Nm(e),o=Nm(t),n=d({},r);return i=>(n.red=fc(r.red,o.red,i),n.green=fc(r.green,o.green,i),n.blue=fc(r.blue,o.blue,i),n.alpha=K(r.alpha,o.alpha,i),nt.transform(n))};function rP(e){var t,r;return isNaN(e)&>(e)&&(((t=e.match(ir))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Gl))===null||r===void 0?void 0:r.length)||0)>0}var Bm={regex:Up,countKey:"Vars",token:"${v}",parse:H},jm={regex:Gl,countKey:"Colors",token:"${c}",parse:se.parse},zm={regex:ir,countKey:"Numbers",token:"${n}",parse:Ke.parse};function dc(e,{regex:t,countKey:r,token:o,parse:n}){let i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,o),e.values.push(...i.map(n)));}function $n(e){let t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&dc(r,Bm),dc(r,jm),dc(r,zm),r}function Fm(e){return $n(e).values}function Wm(e){let{values:t,numColors:r,numVars:o,tokenised:n}=$n(e),i=t.length;return a=>{let s=n;for(let l=0;l<i;l++)l<o?s=s.replace(Bm.token,a[l]):l<o+r?s=s.replace(jm.token,se.transform(a[l])):s=s.replace(zm.token,Nt(a[l]));return s}}var oP=e=>typeof e=="number"?0:e;function nP(e){let t=Fm(e);return Wm(e)(t.map(oP))}var Ee={test:rP,parse:Fm,createTransformer:Wm,getAnimatableNone:nP};var Hm=(e,t)=>r=>`${r>0?t:e}`;function Km(e,t){return typeof e=="number"?r=>K(e,t,r):se.test(e)?_a(e,t):e.startsWith("var(")?Hm(e,t):mc(e,t)}var pc=(e,t)=>{let r=[...e],o=r.length,n=e.map((i,a)=>Km(i,t[a]));return i=>{for(let a=0;a<o;a++)r[a]=n[a](i);return r}},Gm=(e,t)=>{let r=d(d({},e),t),o={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(o[n]=Km(e[n],t[n]));return n=>{for(let i in o)r[i]=o[i](n);return r}},mc=(e,t)=>{let r=Ee.createTransformer(t),o=$n(e),n=$n(t);return o.numVars===n.numVars&&o.numColors===n.numColors&&o.numNumbers>=n.numNumbers?Me(pc(o.values,n.values),r):(Hm(e,t))};var yt=(e,t,r)=>{let o=t-e;return o===0?1:(r-e)/o};var Um=(e,t)=>r=>K(e,t,r);function iP(e){return typeof e=="number"?Um:typeof e=="string"?se.test(e)?_a:mc:Array.isArray(e)?pc:typeof e=="object"?Gm:Um}function aP(e,t,r){let o=[],n=r||iP(e[0]),i=e.length-1;for(let a=0;a<i;a++){let s=n(e[a],e[a+1]);if(t){let l=Array.isArray(t)?t[a]||H:t;s=Me(l,s);}o.push(s);}return o}function Aa(e,t,{clamp:r=!0,ease:o,mixer:n}={}){let i=e.length;if(ye(i===t.length),i===1)return ()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=aP(t,o,n),s=a.length,l=c=>{let u=0;if(s>1)for(;u<e.length-2&&!(c<e[u+1]);u++);let f=yt(e[u],e[u+1],c);return a[u](f)};return r?c=>l(Te(e[0],e[i-1],c)):l}function Ym(e,t){let r=e[e.length-1];for(let o=1;o<=t;o++){let n=yt(0,t,o);e.push(K(r,1,n));}}function qm(e){let t=[0];return Ym(t,e.length-1),t}function Xm(e,t){return e.map(r=>r*t)}function sP(e,t){return e.map(()=>t||ka).splice(0,e.length-1)}function _n({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){let n=Rm(o)?o.map(lc):lc(o),i={done:!1,value:t[0]},a=Xm(r&&r.length===t.length?r:qm(t),e),s=Aa(a,t,{ease:Array.isArray(n)?n:sP(t,n)});return {calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function Ma(e,t){return t?e*(1e3/t):0}var lP=5;function Ra(e,t,r){let o=Math.max(t-lP,0);return Ma(r-e(o),t-o)}var hc=.001,cP=.01,Zm=10,uP=.05,fP=1;function Jm({duration:e=800,bounce:t=.25,velocity:r=0,mass:o=1}){let n,i;let a=1-t;a=Te(uP,fP,a),e=Te(cP,Zm,Re(e)),a<1?(n=c=>{let u=c*a,f=u*e,p=u-r,m=Ia(c,a),v=Math.exp(-f);return hc-p/m*v},i=c=>{let f=c*a*e,p=f*r+r,m=Math.pow(a,2)*Math.pow(c,2)*e,v=Math.exp(-f),y=Ia(Math.pow(c,2),a);return (-n(c)+hc>0?-1:1)*((p-m)*v)/y}):(n=c=>{let u=Math.exp(-c*e),f=(c-r)*e+1;return -hc+u*f},i=c=>{let u=Math.exp(-c*e),f=(r-c)*(e*e);return u*f});let s=5/e,l=pP(n,i,s);if(e=Ne(e),isNaN(l))return {stiffness:100,damping:10,duration:e};{let c=Math.pow(l,2)*o;return {stiffness:c,damping:a*2*Math.sqrt(o*c),duration:e}}}var dP=12;function pP(e,t,r){let o=r;for(let n=1;n<dP;n++)o=o-e(o)/t(o);return o}function Ia(e,t){return e*Math.sqrt(1-t*t)}var mP=["duration","bounce"],hP=["stiffness","damping","mass"];function Qm(e,t){return t.some(r=>e[r]!==void 0)}function gP(e){let t=d({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Qm(e,hP)&&Qm(e,mP)){let r=Jm(e);t=b(d(d({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0;}return t}function La(n){var i=n,{keyframes:e,restDelta:t,restSpeed:r}=i,o=P(i,["keyframes","restDelta","restSpeed"]);let a=e[0],s=e[e.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:f,velocity:p,duration:m,isResolvedFromDuration:v}=gP(o),y=p?-Re(p):0,x=u/(2*Math.sqrt(c*f)),w=s-a,S=Re(Math.sqrt(c/f)),C=Math.abs(w)<5;r||(r=C?.01:2),t||(t=C?.005:.5);let k;if(x<1){let $=Ia(S,x);k=L=>{let R=Math.exp(-x*S*L);return s-R*((y+x*S*w)/$*Math.sin($*L)+w*Math.cos($*L))};}else if(x===1)k=$=>s-Math.exp(-S*$)*(w+(y+S*w)*$);else {let $=S*Math.sqrt(x*x-1);k=L=>{let R=Math.exp(-x*S*L),O=Math.min($*L,300);return s-R*((y+x*S*w)*Math.sinh(O)+$*w*Math.cosh(O))/$};}return {calculatedDuration:v&&m||null,next:$=>{let L=k($);if(v)l.done=$>=m;else {let R=y;$!==0&&(x<1?R=Ra(k,$,L):R=0);let O=Math.abs(R)<=r,h=Math.abs(s-L)<=t;l.done=O&&h;}return l.value=l.done?s:L,l}}}function gc({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){let f=e[0],p={done:!1,value:f},m=O=>s!==void 0&&O<s||l!==void 0&&O>l,v=O=>s===void 0?l:l===void 0||Math.abs(s-O)<Math.abs(l-O)?s:l,y=r*t,x=f+y,w=a===void 0?x:a(x);w!==x&&(y=w-f);let S=O=>-y*Math.exp(-O/o),C=O=>w+S(O),k=O=>{let h=S(O),I=C(O);p.done=Math.abs(h)<=c,p.value=p.done?w:I;},$,L,R=O=>{m(p.value)&&($=O,L=La({keyframes:[p.value,v(p.value)],velocity:Ra(C,O,p.value),damping:n,stiffness:i,restDelta:c,restSpeed:u}));};return R(0),{calculatedDuration:null,next:O=>{let h=!1;return !L&&$===void 0&&(h=!0,k(O),R(O)),$!==void 0&&O>$?L.next(O-$):(!h&&k(O),p)}}}var eh=e=>{let t=({timestamp:r})=>e(r);return {start:()=>z.update(t,!0),stop:()=>Pe(t),now:()=>ne.isProcessing?ne.timestamp:performance.now()}};function yc(e){let t=0,r=50,o=e.next(t);for(;!o.done&&t<2e4;)t+=r,o=e.next(t);return t>=2e4?1/0:t}var yP={decay:gc,inertia:gc,tween:_n,keyframes:_n,spring:La};function lr(m){var v=m,{autoplay:e=!0,delay:t=0,driver:r=eh,keyframes:o,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:f}=v,p=P(v,["autoplay","delay","driver","keyframes","type","repeat","repeatDelay","repeatType","onPlay","onStop","onComplete","onUpdate"]);let y=1,x=!1,w,S,C=()=>{S=new Promise(oe=>{w=oe;});};C();let k,$=yP[n]||_n,L;$!==_n&&typeof o[0]!="number"&&(L=Aa([0,100],o,{clamp:!1}),o=[0,100]);let R=$(b(d({},p),{keyframes:o})),O;s==="mirror"&&(O=$(b(d({},p),{keyframes:[...o].reverse(),velocity:-(p.velocity||0)})));let h="idle",I=null,B=null,_=null;R.calculatedDuration===null&&i&&(R.calculatedDuration=yc(R));let{calculatedDuration:F}=R,T=1/0,E=1/0;F!==null&&(T=F+a,E=T*(i+1)-a);let j=0,Oe=oe=>{if(B===null)return;y>0&&(B=Math.min(B,oe)),y<0&&(B=Math.min(oe-E/y,B)),I!==null?j=I:j=Math.round(oe-B)*y;let Vo=j-t*(y>=0?1:-1),Eu=y>=0?Vo<0:Vo>E;j=Math.max(Vo,0),h==="finished"&&I===null&&(j=E);let $u=j,_u=R;if(i){let zs=j/T,Yn=Math.floor(zs),Ht=zs%1;!Ht&&zs>=1&&(Ht=1),Ht===1&&Yn--,Yn=Math.min(Yn,i+1);let Mu=!!(Yn%2);Mu&&(s==="reverse"?(Ht=1-Ht,a&&(Ht-=a/T)):s==="mirror"&&(_u=O));let Ru=Te(0,1,Ht);j>E&&(Ru=s==="reverse"&&Mu?1:0),$u=Ru*T;}let No=Eu?{done:!1,value:o[0]}:_u.next($u);L&&(No.value=L(No.value));let{done:Au}=No;!Eu&&F!==null&&(Au=y>=0?j>=E:j<=0);let r0=I===null&&(h==="finished"||h==="running"&&Au);return f&&f(No.value),r0&&t0(),No},Do=()=>{k&&k.stop(),k=void 0;},Tu=()=>{h="idle",Do(),w(),C(),B=_=null;},t0=()=>{h="finished",u&&u(),Do(),w();},ku=()=>{if(x)return;k||(k=r(Oe));let oe=k.now();l&&l(),I!==null?B=oe-I:(!B||h==="finished")&&(B=oe),h==="finished"&&C(),_=B,I=null,h="running",k.start();};e&&ku();let Pu={then(oe,Vo){return S.then(oe,Vo)},get time(){return Re(j)},set time(oe){oe=Ne(oe),j=oe,I!==null||!k||y===0?I=oe:B=k.now()-oe/y;},get duration(){let oe=R.calculatedDuration===null?yc(R):R.calculatedDuration;return Re(oe)},get speed(){return y},set speed(oe){oe===y||!k||(y=oe,Pu.time=Re(j));},get state(){return h},play:ku,pause:()=>{h="paused",I=j;},stop:()=>{x=!0,h!=="idle"&&(h="idle",c&&c(),Tu());},cancel:()=>{_!==null&&Oe(_),Tu();},complete:()=>{h="finished";},sample:oe=>(B=0,Oe(oe))};return Pu}function th(e){let t;return ()=>(t===void 0&&(t=e()),t)}var vP=th(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bP=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Oa=10,xP=2e4,SP=(e,t)=>t.type==="spring"||e==="backgroundColor"||!nc(t.ease);function rh(e,t,i){var a=i,{onUpdate:r,onComplete:o}=a,n=P(a,["onUpdate","onComplete"]);if(!(vP()&&bP.has(t)&&!n.repeatDelay&&n.repeatType!=="mirror"&&n.damping!==0&&n.type!=="inertia"))return !1;let l=!1,c,u,f=()=>{u=new Promise(k=>{c=k;});};f();let{keyframes:p,duration:m=300,ease:v,times:y}=n;if(SP(t,n)){let k=lr(b(d({},n),{repeat:0,delay:0})),$={done:!1,value:p[0]},L=[],R=0;for(;!$.done&&R<xP;)$=k.sample(R),L.push($.value),R+=Oa;y=void 0,p=L,m=R-Oa,v="linear";}let x=Em(e.owner.current,t,p,b(d({},n),{duration:m,ease:v,times:y}));n.syncStart&&(x.startTime=ne.isProcessing?ne.timestamp:document.timeline?document.timeline.currentTime:performance.now());let w=()=>x.cancel(),S=()=>{z.update(w),c(),f();};return x.onfinish=()=>{e.set($m(p,n)),o&&o(),S();},{then(k,$){return u.then(k,$)},attachTimeline(k){return x.timeline=k,x.onfinish=null,H},get time(){return Re(x.currentTime||0)},set time(k){x.currentTime=Ne(k);},get speed(){return x.playbackRate},set speed(k){x.playbackRate=k;},get duration(){return Re(m)},play:()=>{l||(x.play(),Pe(w));},pause:()=>x.pause(),stop:()=>{if(l=!0,x.playState==="idle")return;let{currentTime:k}=x;if(k){let $=lr(b(d({},n),{autoplay:!1}));e.setWithVelocity($.sample(k-Oa).value,$.sample(k).value,Oa);}S();},complete:()=>x.finish(),cancel:S}}function oh({keyframes:e,delay:t,onUpdate:r,onComplete:o}){let n=()=>(r&&r(e[e.length-1]),o&&o(),{time:0,speed:1,duration:0,play:H,pause:H,stop:H,then:i=>(i(),Promise.resolve()),cancel:H,complete:H});return t?lr({keyframes:[0,1],duration:0,delay:t,onComplete:n}):n()}var wP={type:"spring",stiffness:500,damping:25,restSpeed:10},CP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TP={type:"keyframes",duration:.8},kP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nh=(e,{keyframes:t})=>t.length>2?TP:$e.has(e)?e.startsWith("scale")?CP(t[1]):wP:kP;var An=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ee.test(t)||t==="0")&&!t.startsWith("url("));var PP=new Set(["brightness","contrast","saturate","opacity"]);function EP(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=r.match(ir)||[];if(!o)return e;let n=r.replace(o,""),i=PP.has(t)?1:0;return o!==r&&(i*=100),t+"("+i+n+")"}var $P=/([a-z-]*)\(.*?\)/g,Mn=b(d({},Ee),{getAnimatableNone:e=>{let t=e.match($P);return t?t.map(EP).join(" "):e}});var _P=b(d({},la),{color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:Mn,WebkitFilter:Mn}),to=e=>_P[e];function Da(e,t){let r=to(e);return r!==Mn&&(r=Ee),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var Va=e=>/^0[^.\s]+$/.test(e);function ih(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Va(e)}function ah(e,t,r,o){let n=An(t,r),i;Array.isArray(r)?i=[...r]:i=[null,r];let a=o.from!==void 0?o.from:e.get(),s,l=[];for(let c=0;c<i.length;c++)i[c]===null&&(i[c]=c===0?a:i[c-1]),ih(i[c])&&l.push(c),typeof i[c]=="string"&&i[c]!=="none"&&i[c]!=="0"&&(s=i[c]);if(n&&l.length&&s)for(let c=0;c<l.length;c++){let u=l[c];i[u]=Da(t,s);}return i}function sh(f){var p=f,u=P(p,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return !!Object.keys(u).length}function Na(e,t){return e[t]||e.default||e}var ro=(e,t,r,o={})=>n=>{let i=Na(o,e)||{},a=i.delay||o.delay||0,{elapsed:s=0}=o;s=s-Ne(a);let l=ah(t,e,r,i),c=l[0],u=l[l.length-1],f=An(e,c),p=An(e,u);let m=b(d({keyframes:l,velocity:t.getVelocity(),ease:"easeOut"},i),{delay:-s,onUpdate:v=>{t.set(v),i.onUpdate&&i.onUpdate(v);},onComplete:()=>{n(),i.onComplete&&i.onComplete();}});if(sh(i)||(m=d(d({},m),nh(e,m))),m.duration&&(m.duration=Ne(m.duration)),m.repeatDelay&&(m.repeatDelay=Ne(m.repeatDelay)),!f||!p||rc.current||i.type===!1)return oh(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let v=rh(t,e,m);if(v)return v}return lr(m)};function cr(e){return !!(te(e)&&e.add)}var Ba=e=>/^\-?\d*\.?\d+$/.test(e);function oo(e,t){e.indexOf(t)===-1&&e.push(t);}function no(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1);}var Ft=class{constructor(){this.subscriptions=[];}add(t){return oo(this.subscriptions,t),()=>no(this.subscriptions,t)}notify(t,r,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,o);else for(let i=0;i<n;i++){let a=this.subscriptions[i];a&&a(t,r,o);}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0;}};var AP=e=>!isNaN(parseFloat(e)),vc=class{constructor(t,r={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(o,n=!0)=>{this.prev=this.current,this.current=o;let{delta:i,timestamp:a}=ne;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,z.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current);},this.scheduleVelocityCheck=()=>z.postRender(this.velocityCheck),this.velocityCheck=({timestamp:o})=>{o!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()));},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=AP(this.current),this.owner=r.owner;}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Ft);let o=this.events[t].add(r);return t==="change"?()=>{o(),z.read(()=>{this.events.change.getSize()||this.stop();});}:o}clearListeners(){for(let t in this.events)this.events[t].clear();}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r;}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify);}setWithVelocity(t,r,o){this.set(r),this.prev=t,this.timeDelta=o;}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ma(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 it(e,t){return new vc(e,t)}var ja=e=>t=>t.test(e);var ch={test:e=>e==="auto",parse:e=>e};var bc=[Ke,V,ke,ot,Zp,Xp,ch],io=e=>bc.find(ja(e));var MP=[...bc,se,Ee],uh=e=>MP.find(ja(e));function RP(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,it(r));}function fh(e,t){let r=Bt(e,t),a=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:o={},transition:n={}}=a,i=P(a,["transitionEnd","transition"]);i=d(d({},i),o);for(let s in i){let l=fm(i[s]);RP(e,s,l);}}function dh(e,t,r){var o,n;let i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;s<a;s++){let l=i[s],c=t[l],u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(n=(o=r[l])!==null&&o!==void 0?o:e.readValue(l))!==null&&n!==void 0?n:t[l]),u!=null&&(typeof u=="string"&&(Ba(u)||Va(u))?u=parseFloat(u):!uh(u)&&Ee.test(c)&&(u=Da(l,c)),e.addValue(l,it(u,{owner:e})),r[l]===void 0&&(r[l]=u),u!==null&&e.setBaseTarget(l,u));}}function IP(e,t){return t?(t[e]||t.default||t).from:void 0}function ph(e,t,r){let o={};for(let n in e){let i=IP(n,t);if(i!==void 0)o[n]=i;else {let a=r.getValue(n);a&&(o[n]=a.get());}}return o}function LP({protectedKeys:e,needsAnimating:t},r){let o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function za(e,t,{delay:r=0,transitionOverride:o,type:n}={}){let f=e.makeTargetAnimatable(t),{transition:i=e.getDefaultTransition(),transitionEnd:a}=f,s=P(f,["transition","transitionEnd"]),l=e.getValue("willChange");o&&(i=o);let c=[],u=n&&e.animationState&&e.animationState.getState()[n];for(let p in s){let m=e.getValue(p),v=s[p];if(!m||v===void 0||u&&LP(u,p))continue;let y=d({delay:r,elapsed:0},i);if(window.HandoffAppearAnimations&&!m.hasAnimated){let w=e.getProps()[km];w&&(y.elapsed=window.HandoffAppearAnimations(w,p,m,z),y.syncStart=!0);}m.start(ro(p,m,v,e.shouldReduceMotion&&$e.has(p)?{type:!1}:y));let x=m.animation;cr(l)&&(l.add(p),x.then(()=>l.remove(p))),c.push(x);}return a&&Promise.all(c).then(()=>{a&&fh(e,a);}),c}function Fa(e,t,r={}){let o=Bt(e,t,r.custom),{transition:n=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(n=r.transitionOverride);let i=o?()=>Promise.all(za(e,o,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=n;return OP(e,t,c+l,u,f,r)}:()=>Promise.resolve(),{when:s}=n;if(s){let[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(r.delay)])}function OP(e,t,r=0,o=0,n=1,i){let a=[],s=(e.variantChildren.size-1)*o,l=n===1?(c=0)=>c*o:(c=0)=>s-c*o;return Array.from(e.variantChildren).sort(DP).forEach((c,u)=>{c.notify("AnimationStart",t),a.push(Fa(c,t,b(d({},i),{delay:r+l(u)})).then(()=>c.notify("AnimationComplete",t)));}),Promise.all(a)}function DP(e,t){return e.sortNodePosition(t)}function mh(e,t,r={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let n=t.map(i=>Fa(e,i,r));o=Promise.all(n);}else if(typeof t=="string")o=Fa(e,t,r);else {let n=typeof t=="function"?Bt(e,t,r.custom):t;o=Promise.all(za(e,n,r));}return o.then(()=>e.notify("AnimationComplete",t))}var VP=[...ta].reverse(),NP=ta.length;function BP(e){return t=>Promise.all(t.map(({animation:r,options:o})=>mh(e,r,o)))}function hh(e){let t=BP(e),r=zP(),o=!0,n=(l,c)=>{let u=Bt(e,c);if(u){let f=u,{transition:p,transitionEnd:m}=f,v=P(f,["transition","transitionEnd"]);l=d(d(d({},l),v),m);}return l};function i(l){t=l(e);}function a(l,c){let u=e.getProps(),f=e.getVariantContext(!0)||{},p=[],m=new Set,v={},y=1/0;for(let w=0;w<NP;w++){let S=VP[w],C=r[S],k=u[S]!==void 0?u[S]:f[S],$=ht(k),L=S===c?C.isActive:null;L===!1&&(y=w);let R=k===f[S]&&k!==u[S]&&$;if(R&&o&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys=d({},v),!C.isActive&&L===null||!k&&!C.prevProp||Ot(k)||typeof k=="boolean")continue;let O=jP(C.prevProp,k),h=O||S===c&&C.isActive&&!R&&$||w>y&&$,I=Array.isArray(k)?k:[k],B=I.reduce(n,{});L===!1&&(B={});let{prevResolvedValues:_={}}=C,F=d(d({},_),B),T=E=>{h=!0,m.delete(E),C.needsAnimating[E]=!0;};for(let E in F){let j=B[E],Oe=_[E];v.hasOwnProperty(E)||(j!==Oe?ar(j)&&ar(Oe)?!tc(j,Oe)||O?T(E):C.protectedKeys[E]=!0:j!==void 0?T(E):m.add(E):j!==void 0&&m.has(E)?T(E):C.protectedKeys[E]=!0);}C.prevProp=k,C.prevResolvedValues=B,C.isActive&&(v=d(d({},v),B)),o&&e.blockInitialAnimation&&(h=!1),h&&!R&&p.push(...I.map(E=>({animation:E,options:d({type:S},l)})));}if(m.size){let w={};m.forEach(S=>{let C=e.getBaseTarget(S);C!==void 0&&(w[S]=C);}),p.push({animation:w});}let x=!!p.length;return o&&u.initial===!1&&!e.manuallyAnimateOnMount&&(x=!1),o=!1,x?t(p):Promise.resolve()}function s(l,c,u){var f;if(r[l].isActive===c)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var v;return (v=m.animationState)===null||v===void 0?void 0:v.setActive(l,c)}),r[l].isActive=c;let p=a(u,l);for(let m in r)r[m].protectedKeys={};return p}return {animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function jP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tc(t,e):!1}function ur(e=!1){return {isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zP(){return {animate:ur(!0),whileInView:ur(),whileHover:ur(),whileTap:ur(),whileDrag:ur(),whileFocus:ur(),exit:ur()}}var Wa=class extends fe{constructor(t){super(t),t.animationState||(t.animationState=hh(t));}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),Ot(t)&&(this.unmount=t.subscribe(this.node));}mount(){this.updateAnimationControlsSubscription();}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription();}unmount(){}};var FP=0,Ha=class extends fe{constructor(){super(...arguments),this.id=FP++;}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r,custom:o}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t,{custom:o!=null?o:this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id));}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id));}unmount(){}};var gh={animation:{Feature:Wa},exit:{Feature:Ha}};var yh=(e,t)=>Math.abs(e-t);function vh(e,t){let r=yh(e.x,t.x),o=yh(e.y,t.y);return Math.sqrt(jo(r,2)+jo(o,2))}var ao=class{constructor(t,r,{transformPagePoint:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=Sc(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,f=vh(c.offset,{x:0,y:0})>=3;if(!u&&!f)return;let{point:p}=c,{timestamp:m}=ne;this.history.push(b(d({},p),{timestamp:m}));let{onStart:v,onMove:y}=this.handlers;u||(v&&v(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c);},this.handlePointerMove=(c,u)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=xc(u,this.transformPagePoint),z.update(this.updatePoint,!0);},this.handlePointerUp=(c,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:f,onSessionEnd:p}=this.handlers,m=Sc(c.type==="pointercancel"?this.lastMoveEventInfo:xc(u,this.transformPagePoint),this.history);this.startEvent&&f&&f(c,m),p&&p(c,m);},!ba(t))return;this.handlers=r,this.transformPagePoint=o;let n=sr(t),i=xc(n,this.transformPagePoint),{point:a}=i,{timestamp:s}=ne;this.history=[b(d({},a),{timestamp:s})];let{onSessionStart:l}=r;l&&l(t,Sc(i,this.history)),this.removeListeners=Me(Ae(window,"pointermove",this.handlePointerMove),Ae(window,"pointerup",this.handlePointerUp),Ae(window,"pointercancel",this.handlePointerUp));}updateHandlers(t){this.handlers=t;}end(){this.removeListeners&&this.removeListeners(),Pe(this.updatePoint);}};function xc(e,t){return t?{point:t(e.point)}:e}function bh(e,t){return {x:e.x-t.x,y:e.y-t.y}}function Sc({point:e},t){return {point:e,delta:bh(e,xh(t)),offset:bh(e,WP(t)),velocity:HP(t,.1)}}function WP(e){return e[0]}function xh(e){return e[e.length-1]}function HP(e,t){if(e.length<2)return {x:0,y:0};let r=e.length-1,o=null,n=xh(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>Ne(t)));)r--;if(!o)return {x:0,y:0};let i=Re(n.timestamp-o.timestamp);if(i===0)return {x:0,y:0};let a={x:(n.x-o.x)/i,y:(n.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ge(e){return e.max-e.min}function Ka(e,t=0,r=.01){return Math.abs(e-t)<=r}function Sh(e,t,r,o=.5){e.origin=o,e.originPoint=K(t.min,t.max,e.origin),e.scale=ge(r)/ge(t),(Ka(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=K(r.min,r.max,e.origin)-e.originPoint,(Ka(e.translate)||isNaN(e.translate))&&(e.translate=0);}function so(e,t,r,o){Sh(e.x,t.x,r.x,o?o.originX:void 0),Sh(e.y,t.y,r.y,o?o.originY:void 0);}function wh(e,t,r){e.min=r.min+t.min,e.max=e.min+ge(t);}function Th(e,t,r){wh(e.x,t.x,r.x),wh(e.y,t.y,r.y);}function Ch(e,t,r){e.min=t.min-r.min,e.max=e.min+ge(t);}function lo(e,t,r){Ch(e.x,t.x,r.x),Ch(e.y,t.y,r.y);}function _h(e,{min:t,max:r},o){return t!==void 0&&e<t?e=o?K(t,e,o.min):Math.max(e,t):r!==void 0&&e>r&&(e=o?K(r,e,o.max):Math.min(e,r)),e}function kh(e,t,r){return {min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Ah(e,{top:t,left:r,bottom:o,right:n}){return {x:kh(e.x,r,n),y:kh(e.y,t,o)}}function Ph(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}function Mh(e,t){return {x:Ph(e.x,t.x),y:Ph(e.y,t.y)}}function Rh(e,t){let r=.5,o=ge(e),n=ge(t);return n>o?r=yt(t.min,t.max-o,e.min):o>n&&(r=yt(e.min,e.max-n,t.min)),Te(0,1,r)}function Ih(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var Ga=.35;function Lh(e=Ga){return e===!1?e=0:e===!0&&(e=Ga),{x:Eh(e,"left","right"),y:Eh(e,"top","bottom")}}function Eh(e,t,r){return {min:$h(e,t),max:$h(e,r)}}function $h(e,t){return typeof e=="number"?e:e[t]||0}var Oh=()=>({translate:0,scale:1,origin:0,originPoint:0}),fr=()=>({x:Oh(),y:Oh()}),Dh=()=>({min:0,max:0}),re=()=>({x:Dh(),y:Dh()});function Ge(e){return [e("x"),e("y")]}function Ua({top:e,left:t,right:r,bottom:o}){return {x:{min:t,max:r},y:{min:e,max:o}}}function Vh({x:e,y:t}){return {top:t.min,right:e.max,bottom:t.max,left:e.min}}function Nh(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return {top:r.y,left:r.x,bottom:o.y,right:o.x}}function wc(e){return e===void 0||e===1}function Ya({scale:e,scaleX:t,scaleY:r}){return !wc(e)||!wc(t)||!wc(r)}function vt(e){return Ya(e)||Cc(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Cc(e){return Bh(e.x)||Bh(e.y)}function Bh(e){return e&&e!=="0%"}function Rn(e,t,r){let o=e-r,n=t*o;return r+n}function jh(e,t,r,o,n){return n!==void 0&&(e=Rn(e,n,o)),Rn(e,r,o)+t}function Tc(e,t=0,r=1,o,n){e.min=jh(e.min,t,r,o,n),e.max=jh(e.max,t,r,o,n);}function kc(e,{x:t,y:r}){Tc(e.x,t.translate,t.scale,t.originPoint),Tc(e.y,r.translate,r.scale,r.originPoint);}function Wh(e,t,r,o=!1){let n=r.length;if(!n)return;t.x=t.y=1;let i,a;for(let s=0;s<n;s++){i=r[s],a=i.projectionDelta;let l=i.instance;l&&l.style&&l.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&dr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,kc(e,a)),o&&vt(i.latestValues)&&dr(e,i.latestValues));}t.x=zh(t.x),t.y=zh(t.y);}function zh(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function at(e,t){e.min=e.min+t,e.max=e.max+t;}function Fh(e,t,[r,o,n]){let i=t[n]!==void 0?t[n]:.5,a=K(e.min,e.max,i);Tc(e,t[r],t[o],a,t.scale);}var KP=["x","scaleX","originX"],GP=["y","scaleY","originY"];function dr(e,t){Fh(e.x,t,KP),Fh(e.y,t,GP);}function Pc(e,t){return Ua(Nh(e.getBoundingClientRect(),t))}function Hh(e,t,r){let o=Pc(e,r),{scroll:n}=t;return n&&(at(o.x,n.offset.x),at(o.y,n.offset.y)),o}var UP=new WeakMap,Xa=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=re(),this.visualElement=t;}start(t,{snapToCursor:r=!1}={}){let{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;let n=l=>{this.stopAnimation(),r&&this.snapToCursor(sr(l,"page").point);},i=(l,c)=>{let{drag:u,dragPropagation:f,onDragStart:p}=this.getProps();if(u&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Xl(u),!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),Ge(v=>{let y=this.getAxisMotionValue(v).get()||0;if(ke.test(y)){let{projection:x}=this.visualElement;if(x&&x.layout){let w=x.layout.layoutBox[v];w&&(y=ge(w)*(parseFloat(y)/100));}}this.originPoint[v]=y;}),p&&z.update(()=>p(l,c),!1,!0);let{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0);},a=(l,c)=>{let{dragPropagation:u,dragDirectionLock:f,onDirectionLock:p,onDrag:m}=this.getProps();if(!u&&!this.openGlobalLock)return;let{offset:v}=c;if(f&&this.currentDirection===null){this.currentDirection=YP(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,v),this.updateAxis("y",c.point,v),this.visualElement.render(),m&&m(l,c);},s=(l,c)=>this.stop(l,c);this.panSession=new ao(t,{onSessionStart:n,onStart:i,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()});}stop(t,r){let o=this.isDragging;if(this.cancel(),!o)return;let{velocity:n}=r;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&z.update(()=>i(t,r));}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1);}updateAxis(t,r,o){let{drag:n}=this.getProps();if(!o||!qa(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=_h(a,this.constraints[t],this.elastic[t])),i.set(a);}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:o}=this.visualElement.projection||{},n=this.constraints;t&&mt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=Ah(o.layoutBox,t):this.constraints=!1,this.elastic=Lh(r),n!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ge(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=Ih(o.layoutBox[i],this.constraints[i]));});}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!mt(t))return !1;let o=t.current;let{projection:n}=this.visualElement;if(!n||!n.layout)return !1;let i=Hh(o,n.root,this.visualElement.getTransformPagePoint()),a=Mh(n.layout.layoutBox,i);if(r){let s=r(Vh(a));this.hasMutatedConstraints=!!s,s&&(a=Ua(s));}return a}startAnimation(t){let{drag:r,dragMomentum:o,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Ge(u=>{if(!qa(u,r,this.currentDirection))return;let f=l&&l[u]||{};a&&(f={min:0,max:0});let p=n?200:1e6,m=n?40:1e7,v=d(d({type:"inertia",velocity:o?t[u]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10},i),f);return this.startAxisValueAnimation(u,v)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){let o=this.getAxisMotionValue(t);return o.start(ro(t,o,0,r))}stopAnimation(){Ge(t=>this.getAxisMotionValue(t).stop());}getAxisMotionValue(t){let r="_drag"+t.toUpperCase(),o=this.visualElement.getProps(),n=o[r];return n||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Ge(r=>{let{drag:o}=this.getProps();if(!qa(r,o,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(r);if(n&&n.layout){let{min:a,max:s}=n.layout.layoutBox[r];i.set(t[r]-K(a,s,.5));}});}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!mt(r)||!o||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Ge(a=>{let s=this.getAxisMotionValue(a);if(s){let l=s.get();n[a]=Rh({min:l,max:l},this.constraints[a]);}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ge(a=>{if(!qa(a,t,null))return;let s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(K(l,c,n[a]));});}addListeners(){if(!this.visualElement.current)return;UP.set(this.visualElement,this);let t=this.visualElement.current,r=Ae(t,"pointerdown",l=>{let{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l);}),o=()=>{let{dragConstraints:l}=this.getProps();mt(l)&&(this.constraints=this.resolveRefConstraints());},{projection:n}=this.visualElement,i=n.addEventListener("measure",o);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),o();let a=_e(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ge(u=>{let f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate));}),this.visualElement.render());});return ()=>{a(),r(),i(),s&&s();}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=Ga,dragMomentum:s=!0}=t;return b(d({},t),{drag:r,dragDirectionLock:o,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:s})}};function qa(e,t,r){return (t===!0||t===e)&&(r===null||r===e)}function YP(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var Za=class extends fe{constructor(t){super(t),this.removeGroupControls=H,this.removeListeners=H,this.controls=new Xa(t);}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||H;}unmount(){this.removeGroupControls(),this.removeListeners();}};var Kh=e=>(t,r)=>{e&&z.update(()=>e(t,r));},Ja=class extends fe{constructor(){super(...arguments),this.removePointerDownListener=H;}onPointerDown(t){this.session=new ao(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()});}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:o,onPanEnd:n}=this.node.getProps();return {onSessionStart:Kh(t),onStart:Kh(r),onMove:o,onEnd:(i,a)=>{delete this.session,n&&z.update(()=>n(i,a));}}}mount(){this.removePointerDownListener=Ae(this.node.current,"pointerdown",t=>this.onPointerDown(t));}update(){this.session&&this.session.updateHandlers(this.createPanHandlers());}unmount(){this.removePointerDownListener(),this.session&&this.session.end();}};function Gh(){let e=bt.useContext(It);if(e===null)return [!0,null];let{isPresent:t,onExitComplete:r,register:o}=e,n=bt.useId();return bt.useEffect(()=>o(n),[]),!t&&r?[!1,()=>r&&r(n)]:[!0]}var co={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Uh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var uo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;let r=Uh(e,t.target.x),o=Uh(e,t.target.y);return `${r}% ${o}%`}};var Yh={correct:(e,{treeScale:t,projectionDelta:r})=>{let o=e,n=Ee.parse(e);if(n.length>5)return o;let i=Ee.createTransformer(e),a=typeof n[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;n[0+a]/=s,n[1+a]/=l;let c=K(s,l,.5);return typeof n[2+a]=="number"&&(n[2+a]/=c),typeof n[3+a]=="number"&&(n[3+a]/=c),i(n)}};var Ec=class extends bt__namespace.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o,layoutId:n}=this.props,{projection:i}=t;Hp(JP),i&&(r.group&&r.group.add(i),o&&o.register&&n&&o.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove();}),i.setOptions(b(d({},i.options),{onExitComplete:()=>this.safeToRemove()}))),co.hasEverUpdated=!0;}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:o,drag:n,isPresent:i}=this.props,a=o.projection;return a&&(a.isPresent=i,n||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||z.postRender(()=>{let s=a.getStack();(!s||!s.members.length)&&this.safeToRemove();}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove();}));}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),o&&o.deregister&&o.deregister(n));}safeToRemove(){let{safeToRemove:t}=this.props;t&&t();}render(){return null}};function Qa(e){let[t,r]=Gh(),o=bt.useContext(Fr);return bt__namespace.default.createElement(Ec,b(d({},e),{layoutGroup:o,switchLayoutGroup:bt.useContext(oa),isPresent:t,safeToRemove:r}))}var JP={borderRadius:b(d({},uo),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:uo,borderTopRightRadius:uo,borderBottomLeftRadius:uo,borderBottomRightRadius:uo,boxShadow:Yh};var eg=["TopLeft","TopRight","BottomLeft","BottomRight"],QP=eg.length,Zh=e=>typeof e=="string"?parseFloat(e):e,Jh=e=>typeof e=="number"||V.test(e);function tg(e,t,r,o,n,i){n?(e.opacity=K(0,r.opacity!==void 0?r.opacity:1,e2(o)),e.opacityExit=K(t.opacity!==void 0?t.opacity:1,0,t2(o))):i&&(e.opacity=K(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,o));for(let a=0;a<QP;a++){let s=`border${eg[a]}Radius`,l=Qh(t,s),c=Qh(r,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Jh(l)===Jh(c)?(e[s]=Math.max(K(Zh(l),Zh(c),o),0),(ke.test(c)||ke.test(l))&&(e[s]+="%")):e[s]=c;}(t.rotate||r.rotate)&&(e.rotate=K(t.rotate||0,r.rotate||0,o));}function Qh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var e2=rg(0,.5,kn),t2=rg(.5,.95,H);function rg(e,t,r){return o=>o<e?0:o>t?1:r(yt(e,t,o))}function og(e,t){e.min=t.min,e.max=t.max;}function Be(e,t){og(e.x,t.x),og(e.y,t.y);}function ng(e,t,r,o,n){return e-=t,e=Rn(e,1/r,o),n!==void 0&&(e=Rn(e,1/n,o)),e}function r2(e,t=0,r=1,o=.5,n,i=e,a=e){if(ke.test(t)&&(t=parseFloat(t),t=K(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=K(i.min,i.max,o);e===i&&(s-=t),e.min=ng(e.min,t,r,s,n),e.max=ng(e.max,t,r,s,n);}function ig(e,t,[r,o,n],i,a){r2(e,t[r],t[o],t[n],t.scale,i,a);}var o2=["x","scaleX","originX"],n2=["y","scaleY","originY"];function $c(e,t,r,o){ig(e.x,t,o2,r?r.x:void 0,o?o.x:void 0),ig(e.y,t,n2,r?r.y:void 0,o?o.y:void 0);}function ag(e){return e.translate===0&&e.scale===1}function _c(e){return ag(e.x)&&ag(e.y)}function sg(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Ac(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 Mc(e){return ge(e.x)/ge(e.y)}var es=class{constructor(){this.members=[];}add(t){oo(this.members,t),t.scheduleRender();}remove(t){if(no(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r);}}relegate(t){let r=this.members.findIndex(n=>t===n);if(r===0)return !1;let o;for(let n=r;n>=0;n--){let i=this.members[n];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(t,r){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;n===!1&&o.hide();}}exitAnimationComplete(){this.members.forEach(t=>{let{options:r,resumingFrom:o}=t;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete();});}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1);});}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0);}};function Rc(e,t,r){let o="",n=e.x.translate/t.x,i=e.y.translate/t.y;if((n||i)&&(o=`translate3d(${n}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:l,rotateX:c,rotateY:u}=r;l&&(o+=`rotate(${l}deg) `),c&&(o+=`rotateX(${c}deg) `),u&&(o+=`rotateY(${u}deg) `);}let a=e.x.scale*t.x,s=e.y.scale*t.y;return (a!==1||s!==1)&&(o+=`scale(${a}, ${s})`),o||"none"}var lg=(e,t)=>e.depth-t.depth;var ts=class{constructor(){this.children=[],this.isDirty=!1;}add(t){oo(this.children,t),this.isDirty=!0;}remove(t){no(this.children,t),this.isDirty=!0;}forEach(t){this.isDirty&&this.children.sort(lg),this.isDirty=!1,this.children.forEach(t);}};function cg(e,t){let r=performance.now(),o=({timestamp:n})=>{let i=n-r;i>=t&&(Pe(o),e(i-t));};return z.read(o,!0),()=>Pe(o)}function ug(e){window.MotionDebug&&window.MotionDebug.record(e);}function fg(e){return e instanceof SVGElement&&e.tagName!=="svg"}function dg(e,t,r){let o=te(e)?e:it(e);return o.start(ro("",o,t,r)),o.animation}var pg=["","X","Y","Z"],mg=1e3,i2=0,pr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function rs({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(a={},s=t==null?void 0:t()){this.id=i2++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots());},this.updateProjection=()=>{pr.totalNodes=pr.resolvedTargetDeltas=pr.recalculatedProjection=0,this.nodes.forEach(l2),this.nodes.forEach(p2),this.nodes.forEach(m2),this.nodes.forEach(c2),ug(pr);},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ts);}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Ft),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){let l=this.eventHandlers.get(a);l&&l.notify(...s);}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=fg(a),this.instance=a;let{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let f,p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=cg(p,250),co.hasAnimatedSinceResize&&(co.hasAnimatedSinceResize=!1,this.nodes.forEach(gg));});}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:m,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let y=this.options.transition||u.getDefaultTransition()||b2,{onLayoutAnimationStart:x,onLayoutAnimationComplete:w}=u.getProps(),S=!this.targetLayout||!Ac(this.targetLayout,v)||m,C=!p&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||p&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,C);let k=b(d({},Na(y,"layout")),{onPlay:x,onComplete:w});(u.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k);}else p||gg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v;});}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Pe(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(h2),this.animationId++);}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){let f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1);}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate");}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hg);return}this.isUpdating||this.nodes.forEach(f2),this.isUpdating=!1,this.nodes.forEach(d2),this.nodes.forEach(a2),this.nodes.forEach(s2),this.clearAllSnapshots();let s=performance.now();ne.delta=Te(0,1e3/60,s-ne.timestamp),ne.timestamp=s,ne.isProcessing=!0,va.update.process(ne),va.preRender.process(ne),va.render.process(ne),ne.isProcessing=!1;}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()));}clearAllSnapshots(){this.nodes.forEach(u2),this.sharedNodes.forEach(g2);}scheduleUpdateProjection(){z.preRender(this.updateProjection,!1,!0);}scheduleCheckAfterUnmount(){z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed();});}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure());}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=re(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0);}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:o(this.instance),offset:r(this.instance)});}resetTransform(){if(!n)return;let a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!_c(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;a&&(s||vt(this.latestValues)||u)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender());}measure(a=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),x2(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return re();let s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(at(s.x,l.offset.x),at(s.y,l.offset.y)),s}removeElementScroll(a){let s=re();Be(s,a);for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:u,options:f}=c;if(c!==this.root&&u&&f.layoutScroll){if(u.isRoot){Be(s,a);let{scroll:p}=this.root;p&&(at(s.x,-p.offset.x),at(s.y,-p.offset.y));}at(s.x,u.offset.x),at(s.y,u.offset.y);}}return s}applyTransform(a,s=!1){let l=re();Be(l,a);for(let c=0;c<this.path.length;c++){let u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&dr(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),vt(u.latestValues)&&dr(l,u.latestValues);}return vt(this.latestValues)&&dr(l,this.latestValues),l}removeTransform(a){let s=re();Be(s,a);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!vt(c.latestValues))continue;Ya(c.latestValues)&&c.updateSnapshot();let u=re(),f=c.measurePageBox();Be(u,f),$c(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u);}return vt(this.latestValues)&&$c(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0;}setOptions(a){this.options=b(d(d({},this.options),a),{crossfade:a.crossfade!==void 0?a.crossfade:!0});}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!==ne.timestamp&&this.relativeParent.resolveTargetDelta(!0);}resolveTargetDelta(a=!1){var s;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;let{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=ne.timestamp,!this.targetDelta&&!this.relativeTarget){let m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),lo(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0;}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=re(),this.targetWithTransforms=re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Th(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Be(this.target,this.layout.layoutBox),kc(this.target,this.targetDelta)):Be(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),lo(this.relativeTargetOrigin,this.target,m.target),Be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0;}pr.resolvedTargetDeltas++;}}}getClosestProjectingParent(){if(!(!this.parent||Ya(this.parent.latestValues)||Cc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return !!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;let s=this.getLead(),l=!!this.resumingFrom||this!==s,c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ne.timestamp&&(c=!1),c)return;let{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;Be(this.layoutCorrected,this.layout.layoutBox);let p=this.treeScale.x,m=this.treeScale.y;Wh(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);let{target:v}=s;if(!v){this.projectionTransform&&(this.projectionDelta=fr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=fr(),this.projectionDeltaWithTransform=fr());let y=this.projectionTransform;so(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=Rc(this.projectionDelta,this.treeScale),(this.projectionTransform!==y||this.treeScale.x!==p||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),pr.recalculatedProjection++;}hide(){this.isVisible=!1;}show(){this.isVisible=!0;}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){let s=this.getStack();s&&s.scheduleRender();}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0);}setAnimationOrigin(a,s=!1){let l=this.snapshot,c=l?l.latestValues:{},u=d({},this.latestValues),f=fr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let p=re(),m=l?l.source:void 0,v=this.layout?this.layout.source:void 0,y=m!==v,x=this.getStack(),w=!x||x.members.length<=1,S=!!(y&&!w&&this.options.crossfade===!0&&!this.path.some(v2));this.animationProgress=0;let C;this.mixTargetDelta=k=>{let $=k/1e3;yg(f.x,a.x,$),yg(f.y,a.y,$),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),y2(this.relativeTarget,this.relativeTargetOrigin,p,$),C&&sg(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=re()),Be(C,this.relativeTarget)),y&&(this.animationValues=u,tg(u,c,this.latestValues,$,S,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$;},this.mixTargetDelta(this.options.layoutRoot?1e3:0);}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Pe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=z.update(()=>{co.hasAnimatedSinceResize=!0,this.currentAnimation=dg(0,mg,b(d({},a),{onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s);},onComplete:()=>{a.onComplete&&a.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);let a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete");}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mg),this.currentAnimation.stop()),this.completeAnimation();}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&wg(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||re();let f=ge(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;let p=ge(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p;}Be(s,l),dr(s,u),so(this.projectionDeltaWithTransform,this.layoutCorrected,s,u);}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new es),this.sharedNodes.get(a).add(s);let c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0});}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){var a;let{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;let{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s});}relegate(){let a=this.getStack();return a?a.relegate(this):!1}resetRotation(){let{visualElement:a}=this.options;if(!a)return;let s=!1,{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;let c={};for(let u=0;u<pg.length;u++){let f="rotate"+pg[u];l[f]&&(c[f]=l[f],a.setStaticValue(f,0));}a.render();for(let u in c)a.setStaticValue(u,c[u]);a.scheduleRender();}getProjectionStyles(a={}){var s,l;let c={};if(!this.instance||this.isSVG)return c;if(this.isVisible)c.visibility="";else return {visibility:"hidden"};let u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Jr(a.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;let f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){let y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Jr(a.pointerEvents)||""),this.hasProjected&&!vt(this.latestValues)&&(y.transform=u?u({},""):"none",this.hasProjected=!1),y}let p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=Rc(this.projectionDeltaWithTransform,this.treeScale,p),u&&(c.transform=u(p,c.transform));let{x:m,y:v}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${v.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(let y in Hr){if(p[y]===void 0)continue;let{correct:x,applyTo:w}=Hr[y],S=c.transform==="none"?p[y]:x(p[y],f);if(w){let C=w.length;for(let k=0;k<C;k++)c[w[k]]=S;}else c[y]=S;}return this.options.layoutId&&(c.pointerEvents=f===this?Jr(a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0;}resetTree(){this.root.nodes.forEach(a=>{var s;return (s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(hg),this.root.sharedNodes.clear();}}}function a2(e){e.updateLayout();}function s2(e){var t;let r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:n}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?Ge(f=>{let p=a?r.measuredBox[f]:r.layoutBox[f],m=ge(p);p.min=o[f].min,p.max=p.min+m;}):wg(i,r.layoutBox,o)&&Ge(f=>{let p=a?r.measuredBox[f]:r.layoutBox[f],m=ge(o[f]);p.max=p.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m);});let s=fr();so(s,o,r.layoutBox);let l=fr();a?so(l,e.applyTransform(n,!0),r.measuredBox):so(l,o,r.layoutBox);let c=!_c(s),u=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:p,layout:m}=f;if(p&&m){let v=re();lo(v,r.layoutBox,p.layoutBox);let y=re();lo(y,o,m.layoutBox),Ac(v,y)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=f);}}}e.notifyListeners("didUpdate",{layout:o,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u});}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o();}e.options.transition=void 0;}function l2(e){pr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty));}function c2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1;}function u2(e){e.clearSnapshot();}function hg(e){e.clearMeasurements();}function f2(e){e.isLayoutDirty=!1;}function d2(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform();}function gg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0;}function p2(e){e.resolveTargetDelta();}function m2(e){e.calcProjection();}function h2(e){e.resetRotation();}function g2(e){e.removeLeadSnapshot();}function yg(e,t,r){e.translate=K(t.translate,0,r),e.scale=K(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint;}function vg(e,t,r,o){e.min=K(t.min,r.min,o),e.max=K(t.max,r.max,o);}function y2(e,t,r,o){vg(e.x,t.x,r.x,o),vg(e.y,t.y,r.y,o);}function v2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var b2={duration:.45,ease:[.4,0,.1,1]},bg=e=>typeof navigator!="undefined"&&navigator.userAgent.toLowerCase().includes(e),xg=bg("applewebkit/")&&!bg("chrome/")?Math.round:H;function Sg(e){e.min=xg(e.min),e.max=xg(e.max);}function x2(e){Sg(e.x),Sg(e.y);}function wg(e,t,r){return e==="position"||e==="preserve-aspect"&&!Ka(Mc(t),Mc(r),.2)}var Cg=rs({attachResizeListener:(e,t)=>_e(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Ic={current:void 0},os=rs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ic.current){let e=new Cg({});e.mount(window),e.setOptions({layoutScroll:!0}),Ic.current=e;}return Ic.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none";},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Tg={pan:{Feature:Ja},drag:{Feature:Za,ProjectionNode:os,MeasureLayout:Qa}};var S2=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function w2(e){let t=S2.exec(e);if(!t)return [,];let[,r,o]=t;return [r,o]}function Lc(e,t,r=1){let[o,n]=w2(e);if(!o)return;let i=window.getComputedStyle(t).getPropertyValue(o);if(i){let a=i.trim();return Ba(a)?parseFloat(a):a}else return sa(n)?Lc(n,t,r+1):n}function kg(e,o,r){var t=P(o,[]);let n=e.current;if(!(n instanceof Element))return {target:t,transitionEnd:r};r&&(r=d({},r)),e.values.forEach(i=>{let a=i.get();if(!sa(a))return;let s=Lc(a,n);s&&i.set(s);});for(let i in t){let a=t[i];if(!sa(a))continue;let s=Lc(a,n);s&&(t[i]=s,r||(r={}),r[i]===void 0&&(r[i]=a));}return {target:t,transitionEnd:r}}var T2=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),$g=e=>T2.has(e),k2=e=>Object.keys(e).some($g),ns=e=>e===Ke||e===V,Pg=(e,t)=>parseFloat(e.split(", ")[t]),Eg=(e,t)=>(r,{transform:o})=>{if(o==="none"||!o)return 0;let n=o.match(/^matrix3d\((.+)\)$/);if(n)return Pg(n[1],t);{let i=o.match(/^matrix\((.+)\)$/);return i?Pg(i[1],e):0}},P2=new Set(["x","y","z"]),E2=Dt.filter(e=>!P2.has(e));function $2(e){let t=[];return E2.forEach(r=>{let o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0));}),t.length&&e.render(),t}var fo={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:Eg(4,13),y:Eg(5,14)};fo.translateX=fo.x;fo.translateY=fo.y;var _2=(e,t,r)=>{let o=t.measureViewportBox(),n=t.current,i=getComputedStyle(n),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{s[c]=fo[c](o,i);}),t.render();let l=t.measureViewportBox();return r.forEach(c=>{let u=t.getValue(c);u&&u.jump(s[c]),e[c]=fo[c](l,i);}),e},A2=(e,t,r={},o={})=>{t=d({},t),o=d({},o);let n=Object.keys(t).filter($g),i=[],a=!1,s=[];if(n.forEach(l=>{let c=e.getValue(l);if(!e.hasValue(l))return;let u=r[l],f=io(u),p=t[l],m;if(ar(p)){let v=p.length,y=p[0]===null?1:0;u=p[y],f=io(u);for(let x=y;x<v&&p[x]!==null;x++)m?ye(io(p[x])===m):(m=io(p[x]),ye(m===f||ns(f)&&ns(m)));}else m=io(p);if(f!==m)if(ns(f)&&ns(m)){let v=c.get();typeof v=="string"&&c.set(parseFloat(v)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&m===V&&(t[l]=p.map(parseFloat));}else f!=null&&f.transform&&(m!=null&&m.transform)&&(u===0||p===0)?u===0?c.set(m.transform(u)):t[l]=f.transform(p):(a||(i=$2(e),a=!0),s.push(l),o[l]=o[l]!==void 0?o[l]:t[l],c.jump(p));}),s.length){let l=s.indexOf("height")>=0?window.pageYOffset:null,c=_2(t,e,s);return i.length&&i.forEach(([u,f])=>{e.getValue(u).set(f);}),e.render(),Lt&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:o}}else return {target:t,transitionEnd:o}};function _g(e,t,r,o){return k2(t)?A2(e,t,r,o):{target:t,transitionEnd:o}}var Ag=(e,t,r,o)=>{let n=kg(e,t,o);return t=n.target,o=n.transitionEnd,_g(e,t,r,o)};var In={current:null},is={current:!1};function Mg(){if(is.current=!0,!!Lt)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>In.current=e.matches;e.addListener(t),t();}else In.current=!1;}function Rg(e,t,r){let{willChange:o}=t;for(let n in t){let i=t[n],a=r[n];if(te(i))e.addValue(n,i),cr(o)&&o.add(n);else if(te(a))e.addValue(n,it(i,{owner:e})),cr(o)&&o.remove(n);else if(a!==i)if(e.hasValue(n)){let s=e.getValue(n);!s.hasAnimated&&s.set(i);}else {let s=e.getStaticValue(n);e.addValue(n,it(s!==void 0?s:i,{owner:e}));}}for(let n in r)t[n]===void 0&&e.removeValue(n);return t}var Oc=new WeakMap;var Lg=Object.keys(nr),M2=Lg.length,Ig=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],R2=xn.length,as=class{constructor({parent:t,props:r,presenceContext:o,reducedMotionConfig:n,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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=()=>z.render(this.render,!1,!0);let{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget=d({},s),this.initialValues=r.initial?d({},s):{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.isControllingVariants=or(r),this.isVariantNode=ra(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let f=this.scrapeMotionValuesFromProps(r,{}),{willChange:c}=f,u=P(f,["willChange"]);for(let p in u){let m=u[p];s[p]!==void 0&&te(m)&&(m.set(s[p],!1),cr(c)&&c.add(p));}}scrapeMotionValuesFromProps(t,r){return {}}mount(t){this.current=t,Oc.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),is.current||Mg(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:In.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext);}unmount(){Oc.delete(this.current),this.projection&&this.projection.unmount(),Pe(this.notifyUpdate),Pe(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null;}bindToMotionValue(t,r){let o=$e.has(t),n=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&z.update(this.notifyUpdate,!1,!0),o&&this.projection&&(this.projection.isTransformDirty=!0);}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),i();});}sortNodePosition(t){return !this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(a,o,n,i){var s=a,r=P(s,["children"]);let l,c;for(let u=0;u<M2;u++){let f=Lg[u],{isEnabled:p,Feature:m,ProjectionNode:v,MeasureLayout:y}=nr[f];v&&(l=v),p(r)&&(!this.features[f]&&m&&(this.features[f]=new m(this)),y&&(c=y));}if(!this.projection&&l){this.projection=new l(this.latestValues,this.parent&&this.parent.projection);let{layoutId:u,layout:f,drag:p,dragConstraints:m,layoutScroll:v,layoutRoot:y}=r;this.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!p||m&&mt(m),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:i,layoutScroll:v,layoutRoot:y});}return c}updateFeatures(){for(let t in this.features){let r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0);}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props);}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):re()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r;}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<Ig.length;o++){let n=Ig[o];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i));}this.prevMotionValues=Rg(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue();}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let o=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(o.initial=this.props.initial),o}let r={};for(let o=0;o<R2;o++){let n=xn[o],i=this.props[n];(ht(i)||i===!1)&&(r[n]=i);}return r}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get();}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState);}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&r!==void 0&&(o=it(r,{owner:this}),this.addValue(t,o)),o}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r;}getBaseTarget(t){var r;let{initial:o}=this.props,n=typeof o=="string"||typeof o=="object"?(r=Zr(this.props,o))===null||r===void 0?void 0:r[t]:void 0;if(o&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!te(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Ft),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r);}};var po=class extends as{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:o}){delete r[t],delete o[t];}makeTargetAnimatableFromInstance(a,{transformValues:n},i){var s=a,{transition:t,transitionEnd:r}=s,o=P(s,["transition","transitionEnd"]);let l=ph(o,t||{},this);if(n&&(r&&(r=n(r)),o&&(o=n(o)),l&&(l=n(l))),i){dh(this,o,l);let c=Ag(this,o,l,r);r=c.transitionEnd,o=c.target;}return d({transition:t,transitionEnd:r},o)}};function I2(e){return window.getComputedStyle(e)}var ss=class extends po{readValueFromInstance(t,r){if($e.has(r)){let o=to(r);return o&&o.default||0}else {let o=I2(t),n=(aa(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Pc(t,r)}build(t,r,o,n){Kr(t,r,o,n.transformTemplate);}scrapeMotionValuesFromProps(t,r){return Xr(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;te(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`);}));}renderInstance(t,r,o,n){ua(t,r,o,n);}};var ls=class extends po{constructor(){super(...arguments),this.isSVGTag=!1;}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if($e.has(r)){let o=to(r);return o&&o.default||0}return r=fa.has(r)?r:qr(r),t.getAttribute(r)}measureInstanceViewportBox(){return re()}scrapeMotionValuesFromProps(t,r){return pa(t,r)}build(t,r,o,n){Ur(t,r,o,this.isSVGTag,n.transformTemplate);}renderInstance(t,r,o,n){da(t,r,o,n);}mount(t){this.isSVGTag=Yr(t.tagName),super.mount(t);}};var Og=(e,t)=>Wr(e)?new ls(t,{enableHardwareAcceleration:!1}):new ss(t,{enableHardwareAcceleration:!0});var Dg={layout:{ProjectionNode:os,MeasureLayout:Qa}};var L2=d(d(d(d({},gh),Tm),Tg),Dg),je=Fp((e,t)=>ym(e,t,L2,Og));function cs(){let e=bt.useRef(!1);return zr(()=>(e.current=!0,()=>{e.current=!1;}),[]),e}function Ng(){let e=cs(),[t,r]=bt.useState(0),o=bt.useCallback(()=>{e.current&&r(t+1);},[t]);return [bt.useCallback(()=>z.postRender(o),[o]),t]}var Dc=class extends bt__namespace.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let o=this.props.sizeRef.current;o.height=r.offsetHeight||0,o.width=r.offsetWidth||0,o.top=r.offsetTop,o.left=r.offsetLeft;}return null}componentDidUpdate(){}render(){return this.props.children}};function jg({children:e,isPresent:t}){let r=bt.useId(),o=bt.useRef(null),n=bt.useRef({width:0,height:0,top:0,left:0});return bt.useInsertionEffect(()=>{let{width:i,height:a,top:s,left:l}=n.current;if(t||!o.current||!i||!a)return;o.current.dataset.motionPopId=r;let c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
29
29
|
[data-motion-pop-id="${r}"] {
|
30
30
|
position: absolute !important;
|
31
31
|
width: ${i}px !important;
|
@@ -33,7 +33,7 @@ var _y=Object.create;var _o=Object.defineProperty,Ty=Object.defineProperties,Py=
|
|
33
33
|
top: ${s}px !important;
|
34
34
|
left: ${l}px !important;
|
35
35
|
}
|
36
|
-
`),()=>{document.head.removeChild(c);}},[t]),ht__namespace.createElement(ic,{isPresent:t,childRef:o,sizeRef:n},ht__namespace.cloneElement(e,{ref:o}))}var Ua=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:n,presenceAffectsLayout:i,mode:a})=>{let s=Xi(rT),l=ht.useId(),c=ht.useMemo(()=>({id:l,initial:t,isPresent:r,custom:n,onExitComplete:u=>{s.set(u,!0);for(let d of s.values())if(!d)return;o&&o();},register:u=>(s.set(u,!1),()=>s.delete(u))}),i?void 0:[r]);return ht.useMemo(()=>{s.forEach((u,d)=>s.set(d,!1));},[r]),ht__namespace.useEffect(()=>{!r&&!s.size&&o&&o();},[r]),a==="popLayout"&&(e=ht__namespace.createElement(Wh,{isPresent:r},e)),ht__namespace.createElement(Et.Provider,{value:c},e)};function rT(){return new Map}function Gh(e){return ht.useEffect(()=>()=>e(),[])}var ur=e=>e.key||"";function lT(e,t){e.forEach(r=>{let o=ur(r);t.set(o,r);});}function cT(e){let t=[];return ht.Children.forEach(e,r=>{ht.isValidElement(r)&&t.push(r);}),t}var rt=({children:e,custom:t,initial:r=!0,onExitComplete:o,exitBeforeEnter:n,presenceAffectsLayout:i=!0,mode:a="sync"})=>{let s=ht.useContext($r).forceRender||zh()[0],l=Ga(),c=cT(e),u=c,d=ht.useRef(new Map).current,m=ht.useRef(u),p=ht.useRef(new Map).current,g=ht.useRef(!0);if(Nr(()=>{g.current=!1,lT(c,p),m.current=u;}),Gh(()=>{g.current=!0,p.clear(),d.clear();}),g.current)return ht__namespace.createElement(ht__namespace.Fragment,null,u.map(S=>ht__namespace.createElement(Ua,{key:ur(S),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},S)));u=[...u];let y=m.current.map(ur),b=c.map(ur),x=y.length;for(let S=0;S<x;S++){let C=y[S];b.indexOf(C)===-1&&!d.has(C)&&d.set(C,void 0);}return a==="wait"&&d.size&&(u=[]),d.forEach((S,C)=>{if(b.indexOf(C)!==-1)return;let w=p.get(C);if(!w)return;let P=y.indexOf(C),E=S;if(!E){let A=()=>{d.delete(C);let M=Array.from(p.keys()).filter(O=>!b.includes(O));if(M.forEach(O=>p.delete(O)),m.current=c.filter(O=>{let j=ur(O);return j===C||M.includes(j)}),!d.size){if(l.current===!1)return;s(),o&&o();}};E=ht__namespace.createElement(Ua,{key:ur(w),isPresent:!1,onExitComplete:A,custom:t,presenceAffectsLayout:i,mode:a},w),d.set(C,E);}u.splice(P,0,E);}),u=u.map(S=>{let C=S.key;return d.has(C)?S:ht__namespace.createElement(Ua,{key:ur(S),isPresent:!0,presenceAffectsLayout:i,mode:a},S)}),ht__namespace.createElement(ht__namespace.Fragment,null,d.size?u:u.map(S=>ht.cloneElement(S)))};typeof document!="undefined"?ht__namespace.default.useLayoutEffect:()=>{};var bn=new Map,Uh=new Set;function Kh(){if(typeof window=="undefined")return;let e=r=>{let o=bn.get(r.target);o||(o=new Set,bn.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName);},t=r=>{let o=bn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),bn.delete(r.target)),bn.size===0)){for(let n of Uh)n();Uh.clear();}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t);}typeof document!="undefined"&&(document.readyState!=="loading"?Kh():document.addEventListener("DOMContentLoaded",Kh));function xT(){return typeof window.ResizeObserver!="undefined"}function Yh(e){let{ref:t,onResize:r}=e;ht.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(xT()){let n=new window.ResizeObserver(i=>{i.length&&r();});return n.observe(o),()=>{o&&n.unobserve(o);}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1);}},[r,t]);}function Zh(e,t){return ht__namespace.Children.toArray(e).find(r=>r.type===t)}function Qh(e,t){return ht__namespace.Children.toArray(e).filter(r=>Array.isArray(t)?t.some(o=>o===r.type):r.type===t)}var wT=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],cc=(e,t)=>{var r;let o=react.useTheme(),n=wT(e,(r=o.__breakpoints)==null?void 0:r.toArrayValue);return react.useBreakpointValue(n,t)};var[RT,mo]=react.createStylesContext("SuiEmptyState");var gg=react.forwardRef((e,t)=>{let r=mo(),o=f({boxSize:10},r.icon);return jsxRuntime.jsx(react.Icon,v(f({ref:t,role:"presentation",sx:o},e),{className:_("sui-empty-state__icon",e.className)}))});gg.displayName="EmptyStateIcon";var vc=ht__namespace.createContext({});function wg(e){let s=e,{theme:t,linkComponent:r,onError:o,children:n}=s,i=k(s,["theme","linkComponent","onError","children"]),a={linkComponent:r,onError:o};return jsxRuntime.jsx(vc.Provider,{value:a,children:jsxRuntime.jsx(react.ChakraProvider,v(f({},i),{theme:t||rn,children:n}))})}var VT=()=>ht__namespace.useContext(vc),$T=e=>jsxRuntime.jsx(react.chakra.a,f({},e));function bc(){let e=VT();return e!=null&&e.linkComponent?e.linkComponent:$T}var DT=class extends ht__namespace.Component{constructor(e){super(e),this.onError=(t,r)=>{var o,n,i,a;(n=(o=this.props).onError)==null||n.call(o,t,r),(a=(i=this.context).onError)==null||a.call(i,t,r);},this.state={error:null};}static getDerivedStateFromError(e){return {error:e}}componentDidCatch(e,t){this.onError(e,t);}render(){return this.state.error?this.props.fallback||jsxRuntime.jsx("h1",{children:"Something went wrong."}):this.props.children}};DT.contextType=vc;var _g=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[GT,Tg]=Oe({strict:!1,errorMessage:"AppShell context not available."}),UT=e=>{let t=react.useDisclosure(),r=_g(e.toggleBreakpoint),o=react.useBreakpointValue(r,{fallback:e.toggleBreakpoint||"lg"});return {isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:o}},[KT,rG]=react.createStylesContext("SuiAppShell"),qT=react.forwardRef((e,t)=>{let r=react.useMultiStyleConfig("SuiAppShell",e),y=react.omitThemingProps(e),{navbar:o,sidebar:n,aside:i,footer:a,children:s,mainRef:l}=y,c=k(y,["navbar","sidebar","aside","footer","children","mainRef"]),u=f({flexDirection:"column"},r.container),d=f({flex:1,minHeight:0,minWidth:0},r.inner),m=f({flex:1,flexDirection:"column",minWidth:0},r.main),p=ht__namespace.isValidElement(n)&&n.type.id==="Sidebar",g=UT({toggleBreakpoint:p?n==null?void 0:n.props.toggleBreakpoint:void 0});return jsxRuntime.jsx(GT,{value:g,children:jsxRuntime.jsx(KT,{value:r,children:jsxRuntime.jsxs(react.Flex,v(f({ref:t},c),{sx:u,className:_("sui-app-shell",e.className),children:[o,jsxRuntime.jsxs(react.Flex,{sx:d,className:"saas-app-shell__inner",children:[n,jsxRuntime.jsx(react.Flex,{ref:l,sx:m,className:"saas-app-shell__main",children:s}),i]}),a]}))})})});qT.displayName="AppShell";function rP(e){return jsxRuntime.jsx(react.Icon,v(f({viewBox:"0 0 24 24"},e),{children:jsxRuntime.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"})}))}function oP(e){return jsxRuntime.jsx(react.Icon,v(f({viewBox:"0 0 24 24"},e),{children:jsxRuntime.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"})}))}function og(e){return jsxRuntime.jsx(react.Icon,v(f({viewBox:"0 0 24 24"},e),{children:jsxRuntime.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"})}))}var Ja={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},xn={enter:{duration:.2,ease:Ja.easeOut},exit:{duration:.1,ease:Ja.easeIn}},Sn={enter:(e,t)=>v(f({},e),{delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>v(f({},e),{delay:typeof t=="number"?t:t==null?void 0:t.exit})},iP={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:o,delay:n})=>{var i;return v(f({opacity:0},e?{scale:t,transitionEnd:o==null?void 0:o.exit}:{transitionEnd:f({scale:t},o==null?void 0:o.exit)}),{transition:(i=r==null?void 0:r.exit)!=null?i:Sn.exit(xn.exit,n)})},enter:({transitionEnd:e,transition:t,delay:r})=>{var o;return {opacity:1,scale:1,transition:(o=t==null?void 0:t.enter)!=null?o:Sn.enter(xn.enter,r),transitionEnd:e==null?void 0:e.enter}}},Ag={initial:"exit",animate:"enter",exit:"exit",variants:iP},aP=ht.forwardRef(function(t,r){let y=t,{unmountOnExit:o,in:n,reverse:i=!0,initialScale:a=.95,className:s,transition:l,transitionEnd:c,delay:u}=y,d=k(y,["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"]),m=o?n&&o:!0,p=n||o?"enter":"exit",g={initialScale:a,reverse:i,transition:l,transitionEnd:c,delay:u};return jsxRuntime.jsx(rt,{custom:g,children:m&&jsxRuntime.jsx(Le.div,f(v(f({ref:r,className:Pi("chakra-offset-slide",s)},Ag),{animate:p,custom:g}),d))})});aP.displayName="ScaleFade";var lP={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:o,delay:n})=>{var i;return {opacity:0,x:e,y:t,transition:(i=r==null?void 0:r.exit)!=null?i:Sn.exit(xn.exit,n),transitionEnd:o==null?void 0:o.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var o;return {opacity:1,x:0,y:0,transition:(o=e==null?void 0:e.enter)!=null?o:Sn.enter(xn.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:o,reverse:n,delay:i})=>{var a;let s={x:t,y:e};return f({opacity:0,transition:(a=r==null?void 0:r.exit)!=null?a:Sn.exit(xn.exit,i)},n?v(f({},s),{transitionEnd:o==null?void 0:o.exit}):{transitionEnd:f(f({},s),o==null?void 0:o.exit)})}},Za={initial:"initial",animate:"enter",exit:"exit",variants:lP},cP=ht.forwardRef(function(t,r){let b=t,{unmountOnExit:o,in:n,reverse:i=!0,className:a,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:u,delay:d}=b,m=k(b,["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"]),p=o?n&&o:!0,g=n||o?"enter":"exit",y={offsetX:s,offsetY:l,reverse:i,transition:c,transitionEnd:u,delay:d};return jsxRuntime.jsx(rt,{custom:y,children:p&&jsxRuntime.jsx(Le.div,f(v(f({ref:r,className:Pi("chakra-offset-slide",a),custom:y},Za),{animate:g}),m))})});cP.displayName="SlideFade";var Ya={enter:{duration:.2,ease:Ja.easeOut},exit:{duration:.2,ease:Ja.easeIn}},dP={slideOutTop:v(f({},Za),{custom:{offsetY:"-100%",reverse:!0,transition:Ya},initial:"enter"}),slideOutBottom:v(f({},Za),{custom:{offsetY:"100%",reverse:!0,transition:Ya},initial:"enter"}),fade:v(f({},Za),{custom:{transition:Ya},initial:"enter"}),scale:v(f({},Ag),{custom:{initialScale:.1,reverse:!0,transition:Ya},initial:"enter"}),none:{custom:{}}},fP=Rr(Le.div),mP=ht__namespace.forwardRef((e,t)=>{let a=e,{motionPreset:r}=a,o=k(a,["motionPreset"]),n=dP[r],i=f({},n);return jsxRuntime.jsx(fP,f(f({ref:t},i),o))}),[pP,ho]=react.createStylesContext("SuiBanner"),Eg={info:{icon:oP,colorScheme:"blue"},warning:{icon:og,colorScheme:"orange"},success:{icon:rP,colorScheme:"green"},error:{icon:og,colorScheme:"red"}},[hP,Rg]=Oe({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in `<Banner />`"}),gP=react.forwardRef((e,t)=>{var r;let y=react.omitThemingProps(e),{id:o,status:n="info",isOpen:i=!0,onClose:a,motionPreset:s="slideOutTop"}=y,l=k(y,["id","status","isOpen","onClose","motionPreset"]),c=(r=e.colorScheme)!=null?r:Eg[n].colorScheme,u=react.useMultiStyleConfig("SuiBanner",v(f({},e),{colorScheme:c})),d=f({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden"},u.container),m={id:o||`banner-${react.useId()}`,status:n,onClose:a,isOpen:i},p=["warning","error"].includes(n)?"alert":"status",g=i?"enter":"exit";return jsxRuntime.jsx(hP,{value:m,children:jsxRuntime.jsx(pP,{value:u,children:jsxRuntime.jsx(rt,{children:i&&jsxRuntime.jsx(mP,v(f({id:m.id,role:p,ref:t,motionPreset:s,animate:g},l),{className:_("sui-banner",e.className),__css:d}))})})})});gP.displayName="Banner";var yP=react.forwardRef((e,t)=>{let r=ho();return jsxRuntime.jsx(react.chakra.div,v(f({ref:t},e),{className:_("sui-banner__content",e.className),__css:r.content}))});yP.displayName="BannerContent";var vP=react.forwardRef((e,t)=>{let r=ho();return jsxRuntime.jsx(react.chakra.div,v(f({ref:t},e),{className:_("sui-banner__title",e.className),__css:r.title}))});vP.displayName="BannerTitle";var bP=react.forwardRef((e,t)=>{let r=ho(),o=f({display:"inline"},r.description);return jsxRuntime.jsx(react.chakra.div,v(f({ref:t},e),{className:_("sui-banner__desc",e.className),__css:o}))});bP.displayName="BannerDescription";var xP=react.forwardRef((e,t)=>{let{children:r,variant:o}=e,n=ho();return jsxRuntime.jsx(react.chakra.div,v(f({ref:t},e),{className:_("sui-banner__actions",e.className),__css:n.actions,children:jsxRuntime.jsx(react.ButtonGroup,{variant:o,children:r})}))});xP.displayName="BannerActions";var CP=react.forwardRef((e,t)=>{let u=e,{onClick:r,className:o}=u,n=k(u,["onClick","className"]),{onClose:i,isOpen:a,id:s}=Rg(),l=_("sui-banner__close-btn",o),c=ho();return jsxRuntime.jsx(react.CloseButton,f({ref:t,__css:c.closeButton,className:l,onClick:St(r,d=>{d.stopPropagation(),i==null||i();}),"aria-controls":s,"aria-expanded":a!=null&&a.toString()?"true":"false"},n))});CP.displayName="BannerCloseButton";Oe({name:"UseCollapseReturn"});var [OP,An]=react.createStylesContext("SuiStructuredList"),NP=react.forwardRef((e,t)=>{let c=e,{items:r,children:o}=c,n=k(c,["items","children"]),i=react.useMultiStyleConfig("SuiStructuredList",n),a=react.omitThemingProps(n),s;r?s=r.map((u,d)=>ht.createElement(Mg,v(f({},u),{key:u.id||d}))):s=o;let l=f({py:2,position:"relative"},i.list);return jsxRuntime.jsx(OP,{value:i,children:jsxRuntime.jsx(react.chakra.ul,v(f({ref:t,__css:l},a),{className:_("sui-list",e.className),children:s}))})});NP.displayName="StructuredList";var Mg=react.forwardRef((e,t)=>{let g=e,{onClick:r,href:o,as:n,children:i}=g,a=k(g,["onClick","href","as","children"]),s=An(),l=!!(r||o),c=l?Ig:ht__namespace.Fragment,u=!!l,d=f(f({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",fontSize:"md"},s.item),u?{py:0,px:0}:{}),p=l?jsxRuntime.jsx(c,v(f({},l?{onClick:r,href:o,as:n}:{}),{children:i})):i;return jsxRuntime.jsx(react.chakra.li,v(f({ref:t,__css:d},a),{className:_("sui-list__item",e.className),children:p}))});Mg.displayName="StructuredListItem";var Ig=react.forwardRef((e,t)=>{let a=e,{children:r}=a,o=k(a,["children"]),n=An(),i=f({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flex:1,cursor:"pointer",userSelect:"none"},n.button);return jsxRuntime.jsx(react.chakra.div,v(f({ref:t,__css:i,role:"button",tabIndex:0},o),{className:_("sui-list__item-button",e.className),children:r}))});Ig.displayName="StructuredListButton";var FP=react.forwardRef((e,t)=>{let r=bc(),i=e,{href:o}=i,n=k(i,["href"]);return jsxRuntime.jsx(react.Link,f({as:r,ref:t,href:o},n))});FP.displayName="Link";react.createStylesContext("SuiLoadingOverlay");react.chakra(Le.div);Oe({name:"UseContextMenuContext",strict:!1});var [A2,rs]=react.createStylesContext("SuiPersona"),ug={online:{label:"Online",color:"presence.online"},offline:{label:"Offline",color:"presence.offline"},busy:{label:"Busy",color:"presence.busy"},dnd:{label:"Do-not-disturb",color:"presence.dnd"},away:{label:"Away",color:"presence.away"}},E2={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"};var Ng=react.forwardRef((e,t)=>{let l=e,{children:r}=l,o=k(l,["children"]),n=react.useMultiStyleConfig("SuiPersona",e),i=react.omitThemingProps(o),s=f(f({},{display:"flex",flexDirection:"row",alignItems:"center"}),n.container);return jsxRuntime.jsx(A2,{value:n,children:jsxRuntime.jsx(react.chakra.div,v(f({ref:t,__css:s},i),{className:_("sui-persona",e.className),children:r}))})});Ng.displayName="PersonaContainer";var $g=react.forwardRef((e,t)=>{var r,o,n,i,a;let ue=e,{name:s,presence:l,presenceLabel:c,presenceIcon:u,isOutOfOffice:d,badgeSize:m="1em",size:p,getInitials:g,icon:y,iconLabel:b,ignoreFallback:x,loading:S,onError:C,src:w,srcSet:P}=ue,E=k(ue,["name","presence","presenceLabel","presenceIcon","isOutOfOffice","badgeSize","size","getInitials","icon","iconLabel","ignoreFallback","loading","onError","src","srcSet"]),A={},M,O=react.useTheme(),j=((r=O.colors)==null?void 0:r.presence)||E2,W=!!((n=(o=O.semanticTokens)==null?void 0:o.colors)!=null&&n["presence.online"]);if(l){let de=c||((i=ug[l])==null?void 0:i.label),he=W?((a=ug[l])==null?void 0:a.color)||`presence.${l}`:j[l];d?(A.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:he,borderRadius:"50%",boxSizing:"border-box"}},A.borderWidth="0.15em",A.bg=react.useColorModeValue("white","gray.800")):A.bg=he,M=jsxRuntime.jsx(react.AvatarBadge,v(f({boxSize:m},A),{children:u})),de&&(M=jsxRuntime.jsx(react.Tooltip,{label:de,children:M}));}return jsxRuntime.jsx(react.Avatar,v(f({ref:t,name:s,size:p,getInitials:g,icon:y,iconLabel:b,ignoreFallback:x,loading:S,onError:C,src:w,srcSet:P},E),{children:M}))});$g.displayName="PersonaAvatar";var Lg=react.forwardRef((e,t)=>{let l=e,{children:r,className:o}=l,n=k(l,["children","className"]),i=rs(),s=f(f({},{display:"flex",flexDirection:"column"}),i.details);return jsxRuntime.jsx(react.chakra.div,v(f({ref:t},n),{__css:s,className:_("sui-persona__details",o),children:r}))});Lg.displayName="PersonaDetails";var Dg=react.forwardRef((e,t)=>{let r=rs();return jsxRuntime.jsx(react.chakra.span,v(f({ref:t},e),{__css:r.label,className:_("sui-persona__label",e.className)}))});Dg.displayName="PersonaLabel";var Bg=react.forwardRef((e,t)=>{let r=rs();return jsxRuntime.jsx(react.chakra.span,v(f({ref:t},e),{__css:r.secondaryLabel,className:_("sui-persona__secondary-label",e.className)}))});Bg.displayName="PersonaSecondaryLabel";var jg=react.forwardRef((e,t)=>{let r=rs();return jsxRuntime.jsx(react.chakra.span,v(f({ref:t},e),{__css:r.tertiaryLabel,className:_("sui-persona__tertiary-label",e.className)}))});jg.displayName="PersonaTertiaryLabel";var[$2,zg]=react.createStylesContext("SuiProperty"),L2=react.forwardRef((e,t)=>{let r=react.useMultiStyleConfig("SuiProperty",e),u=react.omitThemingProps(e),{children:o,label:n,value:i,labelWidth:a,spacing:s}=u,l=k(u,["children","label","value","labelWidth","spacing"]),c=f({minW:0,display:"flex",flexDirection:"row",alignItems:"center"},r.property);return jsxRuntime.jsx($2,{value:r,children:jsxRuntime.jsxs(react.chakra.dl,v(f({ref:t,__css:c},l),{className:_("sui-property",e.className),children:[n&&jsxRuntime.jsx(Fg,{width:a,minWidth:a,marginEnd:s,children:n}),i&&jsxRuntime.jsx(Wg,{children:i}),o]}))})});L2.displayName="Property";var Fg=react.forwardRef((e,t)=>{let r=zg(),c=e,{children:o,noOfLines:n=1,width:i,minWidth:a}=c,s=k(c,["children","noOfLines","width","minWidth"]),l=f({display:"flex",flexDirection:"row"},r.label);return i&&(l.minWidth=a||"auto",l.width=i),jsxRuntime.jsx(react.chakra.dt,v(f({ref:t,__css:l},s),{className:_("sui-property__label",e.className),children:jsxRuntime.jsx(react.chakra.span,{flex:"1",noOfLines:n,children:o})}))});Fg.displayName="PropertyLabel";var Wg=react.forwardRef((e,t)=>{let r=zg(),a=e,{children:o}=a,n=k(a,["children"]),i=f({display:"flex",flexDirection:"row",alignItems:"center",flex:1},r.value);return jsxRuntime.jsx(react.chakra.dd,v(f({ref:t,__css:i},n),{className:_("sui-property__value",e.className),children:o}))});Wg.displayName="PropertyValue";var H2=typeof window!="undefined";function dg(e){return H2?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var G2=e=>{let{elementRef:t,delay:r=30,callback:o,isEnabled:n}=e,i=ht.useRef(n?dg(t==null?void 0:t.current):{x:0,y:0}),a=null,s=()=>{let l=dg(t==null?void 0:t.current);typeof o=="function"&&o({prevPos:i.current,currPos:l}),i.current=l,a=null;};return ht.useEffect(()=>{if(!n)return;let l=()=>{r?a===null&&(a=setTimeout(s,r)):s();},c=(t==null?void 0:t.current)||window;return c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)},[t==null?void 0:t.current,r,n]),i.current};function U2(e){let b=e,{ref:t,parentRef:r,height:o="3.5rem",shouldHideOnScroll:n=!1,disableScrollHandler:i=!1,onScrollPositionChange:a,motionProps:s}=b,l=k(b,["ref","parentRef","height","shouldHideOnScroll","disableScrollHandler","onScrollPositionChange","motionProps"]),c=ht.useRef(null);ht.useImperativeHandle(t,()=>c.current);let u=ht.useRef(0),d=ht.useRef(0),[m,p]=ht.useState(!1),g=()=>{if(c.current){let x=c.current.offsetWidth;x!==u.current&&(u.current=x);}};return Yh({ref:c,onResize:()=>{var x;((x=c.current)==null?void 0:x.offsetWidth)!==u.current&&g();}}),ht.useEffect(()=>{var x;g(),d.current=((x=c.current)==null?void 0:x.offsetHeight)||0;},[]),G2({elementRef:r,isEnabled:n||!i,callback:({prevPos:x,currPos:S})=>{a==null||a(S.y),n&&p(C=>{let w=S.y>x.y&&S.y>d.current;return w!==C?w:C});}}),{containerRef:c,height:o,isHidden:m,shouldHideOnScroll:n,motionProps:s,getContainerProps:(x={})=>v(f(f({},l),s),{"data-hidden":xe(m),ref:c,style:f(f({"--navbar-height":o},l.style),x==null?void 0:x.style)})}}function Y2(e,t){return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Rn(e={}){let{name:t,strict:r=!0,hookName:o="useContext",providerName:n="Provider",errorMessage:i,defaultValue:a}=e,s=ht.createContext(a);s.displayName=t;function l(){var c;let u=ht.useContext(s);if(!u&&r){let d=new Error(i!=null?i:Y2(o,n));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return [s.Provider,l,s]}var[X2,fU]=Rn({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"}),[Z2,os]=Rn({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:"<NavBar />"}),eA=react.chakra(Le.nav),tA=react.forwardRef((e,t)=>{let l=e,{children:r}=l,o=k(l,["children"]),n=U2(v(f({},o),{ref:t})),i=react.useMultiStyleConfig("SuiNavbar",e),a=jsxRuntime.jsx(react.chakra.header,{__css:i.inner,className:"sui-navbar__inner",children:r}),s=f({top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0},i.container);return jsxRuntime.jsx(Z2,{value:i,children:jsxRuntime.jsx(X2,{value:n,children:jsxRuntime.jsx(eA,v(f({__css:s,animate:n.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:_("sui-navbar",e.className)},n.getContainerProps()),{children:a}))})})});tA.displayName="Navbar";var iA=react.forwardRef((e,t)=>{let a=e,{className:r,children:o}=a,n=k(a,["className","children"]),i=os();return jsxRuntime.jsx(react.chakra.div,v(f({ref:t,__css:i.brand,className:_("sui-navbar__brand")},n),{children:o}))});iA.displayName="NavbarBrand";var cA=react.forwardRef((e,t)=>{let l=e,{className:r,children:o,spacing:n=0}=l,i=k(l,["className","children","spacing"]),a=os(),s=v(f({},a.content),{"& > *:not(style) ~ *:not(style)":{marginStart:n}});return jsxRuntime.jsx(react.chakra.ul,v(f({ref:t,__css:s,className:_("sui-navbar__content",r)},i),{children:o}))});cA.displayName="NavbarContent";var mA=react.forwardRef((e,t)=>{let s=e,{className:r,children:o,isActive:n}=s,i=k(s,["className","children","isActive"]),a=os();return jsxRuntime.jsx(react.chakra.li,v(f({ref:t,__css:a.item,className:_("sui-navbar__item",r),"data-active":xe(n)},i),{children:o}))});mA.displayName="NavbarItem";var yA=react.forwardRef((e,t)=>{let l=e,{className:r,children:o,isActive:n}=l,i=k(l,["className","children","isActive"]),a=bc(),s=os();return jsxRuntime.jsx(react.chakra.a,v(f({as:a,ref:t,__css:s.link,"data-active":xe(n),className:_("sui-navbar__link",r)},i),{children:o}))});yA.displayName="NavbarLink";var [_A,Kg]=Oe({name:"SidebarContext",strict:!1}),[PA,AA]=Rn({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:"<Sidebar />"}),EA=react.chakra(Le.nav),RA={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},qg=react.forwardRef((e,t)=>{var r,o,n;let i=react.useMultiStyleConfig("SuiSidebar",e),s=(r=react.useTheme().components.SuiSidebar)==null?void 0:r.defaultProps,l=cc((o=e.variant)!=null?o:s==null?void 0:s.variant,{fallback:"base"}),c=cc((n=e.size)!=null?n:s==null?void 0:s.size,{fallback:"base"}),u=l==="compact",Co=react.omitThemingProps(e),{spacing:d=4,children:m,toggleBreakpoint:p="lg",className:g,motionPreset:y="slideInOut",isOpen:b,onOpen:x,onClose:S}=Co,C=k(Co,["spacing","children","toggleBreakpoint","className","motionPreset","isOpen","onOpen","onClose"]),w=Tg(),P=_g(p),E=react.useBreakpointValue(P,{fallback:void 0}),A=react.useBreakpointValue(P),M=typeof E=="undefined",O=typeof b!="undefined",j=(E||O)&&!u,W=react.useDisclosure({isOpen:b||(w==null?void 0:w.isSidebarOpen),onOpen:x||(w==null?void 0:w.openSidebar),onClose:S||(w==null?void 0:w.closeSidebar)}),{isOpen:ue,onClose:de,onOpen:he}=W;ht__namespace.useEffect(()=>{M&&A||u||O||(A?de():he());},[M,u,A]);let G=f({"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:d},display:"flex",flexDirection:"column"},E&&j?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}),ee=v(f({},W),{breakpoints:P,isMobile:E,variant:l,size:c}),ot=RA[u?"none":y||"none"];return jsxRuntime.jsx(_A,{value:ee,children:jsxRuntime.jsx(PA,{value:i,children:jsxRuntime.jsx(EA,v(f({ref:t,initial:!1,animate:!M&&(!j||ue?"enter":"exit"),variants:ot,__css:f(f({},G),i.container)},C),{id:W.getDisclosureProps().id,className:_("sui-sidebar",g),"data-compact":xe(u),"data-collapsible":xe(E&&j),children:m}))})})});qg.displayName="Sidebar";qg.id="Sidebar";Rn({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"});var [jA,Xg]=Rn({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"});var ey=react.forwardRef((o,r)=>{var n=o,{children:e}=n,t=k(n,["children"]);let i=Xg();return jsxRuntime.jsx(react.chakra.span,v(f({ref:r,__css:i.label},t),{className:_("sui-nav-item__label",t.className),children:e}))});ey.displayName="NavItemLabel";var ty=e=>{let t=Xg(),s=e,{className:r,children:o}=s,n=k(s,["className","children"]),i=ht__namespace.Children.only(o),a=ht__namespace.isValidElement(i)?ht__namespace.cloneElement(i,{focusable:"false","aria-hidden":!0}):null;return jsxRuntime.jsx(react.chakra.span,v(f({},n),{className:_("sui-nav-item__icon",e.className),__css:f({flexShrink:0},t.icon),children:a}))};ty.displayName="NavItemIcon";var KA=react.forwardRef((e,t)=>{let C=react.omitThemingProps(e),{href:r="#",icon:o,inset:n,className:i,tooltipProps:a,isActive:s,children:l}=C,c=k(C,["href","icon","inset","className","tooltipProps","isActive","children"]),u=bc(),{onClose:d,variant:m}=Kg()||{},p=m==="compact",g=react.useMultiStyleConfig("SuiNavItem",e),y=l,b=a==null?void 0:a.label;typeof y=="string"&&(!b&&p&&(b=y),y=jsxRuntime.jsx(ey,{children:y}));let x;r&&r!=="#"&&(x=u);let S=jsxRuntime.jsx(react.chakra.a,v(f({as:x,"aria-current":s?"page":void 0},c),{ref:t,href:r,className:"sui-nav-item__link","data-active":xe(s),__css:g.link,children:jsxRuntime.jsxs(react.chakra.span,{__css:v(f({},g.inner),{pl:n}),className:"sui-nav-item__inner",children:[o&&jsxRuntime.jsx(ty,{children:o}),y]})}));return jsxRuntime.jsx(jA,{value:g,children:jsxRuntime.jsx(react.Tooltip,v(f({label:b,placement:"right",openDelay:400},a),{children:jsxRuntime.jsx(react.chakra.div,{__css:g.item,onClick:d,"data-compact":xe(p),className:_("sui-nav-item",i),children:S})}))})});KA.displayName="NavItem";var nE=react.forwardRef((e,t)=>{let A=e,{placeholder:r="Search",value:o,defaultValue:n,size:i,variant:a,width:s,icon:l,resetIcon:c,rightElement:u,onChange:d,onReset:m,onKeyDown:p}=A,g=k(A,["placeholder","value","defaultValue","size","variant","width","icon","resetIcon","rightElement","onChange","onReset","onKeyDown"]),y=react.useMultiStyleConfig("SuiSearchInput",e),b=ht__namespace.useRef(null),[x,S]=react.useControllableState({value:o,defaultValue:n}),C=ht__namespace.useCallback(M=>{S(M.target.value);},[S]),w=ht__namespace.useCallback(M=>{M.key==="Escape"&&(S(""),P());},[m,S]),P=()=>{var M;S(""),m==null||m(),(M=b.current)==null||M.focus();},E=i==="lg"?"sm":"xs";return jsxRuntime.jsxs(react.InputGroup,{size:i,width:s,children:[jsxRuntime.jsx(react.InputLeftElement,{children:l||jsxRuntime.jsx(Zd,{})}),jsxRuntime.jsx(react.Input,f({type:"text",placeholder:r,variant:a,size:i,value:x,ref:react.useMergeRefs(t,b),sx:y.input,onChange:St(C,d),onKeyDown:St(w,p)},g)),jsxRuntime.jsx(react.InputRightElement,{children:x?jsxRuntime.jsx(react.IconButton,{onClick:P,size:E,variant:"ghost","aria-label":"Reset search",icon:c||jsxRuntime.jsx(Xd,{}),sx:y.reset}):u})]})});nE.displayName="SearchInput";var[yE,vE]=Oe({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function bE(e){let{step:t,onChange:r}=e,[o,n]=ht__namespace.useState(0),i=ht__namespace.useRef([]),[,a]=ht__namespace.useState(Date.now()),s=ht__namespace.useCallback(p=>{let g=[...i.current];g.indexOf(p)===-1&&g.push(p),i.current=g,a(Date.now());},[i,a]),l=p=>{i.current=i.current.slice(i.current.indexOf(p),1);},c=p=>{let g=i.current.indexOf(p);g!==-1&&n(g);},u=()=>{n(o+1);},d=()=>{n(o-1);};return ht__namespace.useEffect(()=>{typeof t=="string"?c(t):typeof t=="number"?n(t):o===-1&&n(0);},[t]),ht__namespace.useEffect(()=>{r==null||r(o);},[o,r]),{stepsRef:i,activeStep:i.current[o],activeIndex:o,isFirstStep:o===0,isLastStep:o===i.current.length-1,isCompleted:o>=i.current.length,setIndex:n,setStep:c,nextStep:u,prevStep:d,registerStep:s,unregisterStep:l}}function xE(e){let{name:t,isActive:r,isCompleted:o}=e,{registerStep:n,unregisterStep:i,activeStep:a}=vE();return ht__namespace.useEffect(()=>{if(t)return n(t),()=>{i(t);}},[]),{isActive:t?a===t:r,isCompleted:o}}var[SE,CE]=react.createStylesContext("Stepper"),wE=react.forwardRef((e,t)=>{var r,o,n,i;let j=e,{children:a,orientation:s="horizontal",index:l,step:c,onChange:u,variant:d,colorScheme:m,size:p,stepperProps:g}=j,y=k(j,["children","orientation","index","step","onChange","variant","colorScheme","size","stepperProps"]),b=react.useMultiStyleConfig("Stepper",e),x=bE({step:c!=null?c:l,onChange:u}),{activeIndex:S}=x,C=s==="vertical",w=Qh(a,iy),P=f({position:"relative"},b.item),E=w.reduce((W,ue,de,he)=>{let G=ht__namespace.cloneElement(ue,v(f({key:de},ue.props),{isActive:S===de,isCompleted:ue.props.isCompleted||S>de}));return C?W.push(jsxRuntime.jsxs(react.chakra.div,{className:"sui-steps__item",__css:P,children:[G,jsxRuntime.jsx(yc,{isOpen:S===de,orientation:s,children:ue.props.children}),de<he.length-1?jsxRuntime.jsx(react.StepSeparator,{}):null]},`content-${de}`)):W.push(G),W},[]),A=Zh(a,ay),M=(o=(r=w[S])==null?void 0:r.props)==null?void 0:o.children,O=S>=w.length?A:!C&&M?jsxRuntime.jsx(yc,{orientation:s,children:(i=(n=w[S])==null?void 0:n.props)==null?void 0:i.children}):null;return jsxRuntime.jsx(SE,{value:b,children:jsxRuntime.jsx(yE,{value:x,children:jsxRuntime.jsxs(react.chakra.div,v(f({ref:t,__css:b.container},y),{className:_("sui-steps",e.className),children:[jsxRuntime.jsx(react.Stepper,v(f({index:S,orientation:s,variant:d,colorScheme:m,size:p},g),{children:E})),O]}))})})});wE.displayName="Steps";var iy=e=>{let s=e,{render:t,icon:r,title:o,description:n}=s,i=k(s,["render","icon","title","description"]),a=xE(i);return t?t(f(f({},a),e)):jsxRuntime.jsxs(react.Step,{children:[jsxRuntime.jsx(react.StepIndicator,{children:jsxRuntime.jsx(react.StepStatus,{complete:jsxRuntime.jsx(react.StepIcon,{}),incomplete:jsxRuntime.jsx(react.StepNumber,{children:r}),active:jsxRuntime.jsx(react.StepNumber,{})})}),jsxRuntime.jsxs(react.Box,{flexShrink:"0",children:[jsxRuntime.jsx(react.StepTitle,{children:o}),n&&jsxRuntime.jsx(react.StepDescription,{children:n})]}),jsxRuntime.jsx(react.StepSeparator,{})]})};iy.displayName="StepsItem";var yc=e=>{let a=e,{children:t,isOpen:r=!0,orientation:o="horizontal"}=a,n=k(a,["children","isOpen","orientation"]),i=CE();return jsxRuntime.jsx(react.chakra.div,v(f({},n),{__css:i.content,className:_("sui-steps__content",e.className),"data-orientation":o,children:o==="vertical"?jsxRuntime.jsx(react.Collapse,{in:r,style:{overflow:r?"visible":"hidden"},children:jsxRuntime.jsx(react.chakra.div,{p:"2px",children:r?t:null})}):t}))};yc.displayName="StepsContent";var ay=e=>{let t={};return jsxRuntime.jsx(react.chakra.div,v(f({__css:t},e),{className:_("sui-steps__completed",e.className)}))};ay.displayName="StepsCompleted";var[RE,xo]=react.createStylesContext("SuiTimeline");var IE=react.forwardRef((e,t)=>{let a=e,{children:r}=a,o=k(a,["children"]),n=xo(),i=f({display:"flex"},n.item);return jsxRuntime.jsx(react.chakra.li,v(f({},o),{ref:t,__css:i,className:_("sui-timeline__item",e.className),children:r}))});IE.displayName="TimelineItem";react.forwardRef((e,t)=>{let d=e,{icon:r,children:o,isRound:n,"aria-label":i}=d,a=k(d,["icon","children","isRound","aria-label"]),s=react.useStyleConfig("SuiIconBadge",e),l=r||o,c=ht.isValidElement(l)?ht.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null,u=f({display:"inline-flex",alignItems:"center",justifyContent:"center"},s);return jsxRuntime.jsx(react.chakra.div,v(f({ref:t,__css:u,borderRadius:n?"full":void 0,"aria-label":i},a),{className:_("sui-icon-badge",e.className),children:c}))});var Mn=typeof window!="undefined";function UE(e,t){if(Mn&&"localStorage"in window)return t===void 0?localStorage.removeItem(e):localStorage.setItem(e,t)}function cy(e){if(Mn&&"localStorage"in window)return localStorage.getItem(e)}var KE=e=>{try{return JSON.stringify(e)}catch(t){throw new Error("useLocalStorage: failed to serialize the value to JSON")}},qE=e=>{try{return e&&JSON.parse(e)}catch(t){return e}},YE=e=>{let t=new CustomEvent("use-local-storage",{detail:e});window.dispatchEvent(t);},uy=(e,t,r={})=>{let{serialize:o=KE,deserialize:n=qE}=r,i=ht__namespace.default.useRef(!1),[a,s]=ht.useState(()=>{var l;return Mn?n((l=cy(e))!=null?l:void 0):t});return ht.useEffect(()=>{let l=c=>{let u=c instanceof CustomEvent,d=u?c.detail.key:c.key,m=u?c.detail.newValue:c.newValue;(u||c.storageArea===window.localStorage)&&d===e&&s(n(m!=null?m:void 0));};return Mn&&(window.addEventListener("storage",l),window.addEventListener("use-local-storage",l)),()=>{Mn&&(window.removeEventListener("storage",l),window.removeEventListener("use-local-storage",l));}},[]),ht.useEffect(()=>{if(!i.current){i.current=!0;return}let l=o(a);cy(e)!==l&&(UE(e,l),YE({key:e,newValue:l}));},[a]),[a===void 0?t:a,s]};var JE={black:"#0e1012",primary:{50:"#f6f7fd",100:"#dcdff5",200:"#bec3ed",300:"#9aa1e2",400:"#858edd",500:"#6b75d0",600:"#5a63af",700:"#484f8d",800:"#3d4377",900:"#2c3056"},grayAlpha:{50:"rgba(249, 249, 250, 0.5)",100:"rgba(241, 241, 243, 0.5)",200:"rgba(231, 231, 234, 0.5)",300:"rgba(211, 212, 216, 0.5)",400:"rgba(171, 172, 181, 0.5)",500:"rgba(124, 126, 139, 0.5)",600:"rgba(81, 84, 101, 0.5)",700:"rgba(52, 54, 67, 0.5)",800:"rgba(30, 32, 39, 0.5)",900:"rgba(24, 25, 31, 0.5)"},gray:{50:"#f9f9fa",100:"#f1f1f3",200:"#e7e7ea",300:"#d3d4d8",400:"#abacb5",500:"#7c7e8b",600:"#515465",700:"#343643",800:"#1e2027",900:"#18191f"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Pc=JE,QE={heading:"InterVariable, sans-serif",body:"InterVariable, sans-serif"},eR={xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},tR={},rR={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},oR=rR,nR={xs:"rgb(0 0 0 / 7%) 0px 1px 1px","dark-xs":"rgb(0 0 0 / 7%) 0px 1px 1px",outline:`0 0 0 2px ${te(Pc.primary[500],.6)({colors:Pc})}`},iR=nR,aR={colors:{muted:{default:"gray.500",_dark:"gray.400"}}},{definePartsStyle:yy,defineMultiStyleConfig:sR}=T(Wo.keys),dy=V("alert-fg"),fy=V("alert-bg"),Ac=V("alert-border");function lR(e){let{theme:t,colorScheme:r}=e,o=te(`${r}.600`,.16)(t);return {light:`colors.${r}.100`,dark:o}}function cR(e){let{theme:t,colorScheme:r}=e,o=te(`${r}.300`,.16)(t);return {light:`colors.${r}.200`,dark:o}}var uR=yy(e=>{let{colorScheme:t}=e,r=lR(e),o=cR(e);return {container:{borderWidth:"1px",[dy.variable]:`colors.${t}.500`,[fy.variable]:r.light,[Ac.variable]:o.light,_dark:{[dy.variable]:`colors.${t}.500`,[fy.variable]:r.dark,[Ac.variable]:o.dark}}}}),dR=yy(()=>({container:{borderColor:Ac.reference,borderRadius:"md",fontSize:"sm"},icon:{w:4,h:5},title:{fontSize:"sm",fontWeight:"medium"},description:{color:"muted"}})),fR=sR({defaultProps:{size:"sm",colorScheme:"primary"},baseStyle:dR,variants:{subtle:uR}}),vy=e=>{let{colorScheme:t,colorMode:r}=e,o=`${t}.500`,n=`${t}.600`;return t==="neutral"&&r==="dark"?(o="white",n="whiteAlpha.800"):t==="neutral"&&(o="black",n="blackAlpha.800"),{borderWidth:"1px",borderColor:o,boxShadow:"xs",bg:o,color:"white",fontWeight:"medium",_hover:{borderColor:n,bg:n},_dark:{boxShadow:"dark-xs"}}},mR=e=>({fontWeight:"medium",_checked:{bg:"blackAlpha.100"},_dark:{_checked:{bg:"whiteAlpha.100"}}}),pR=e=>{let{colorScheme:t}=e;return t==="gray"?{fontWeight:"medium"}:{fontWeight:"medium",color:`${t}.500`,_hover:{color:`${t}.400`,bg:"blackAlpha.50"},_dark:{color:`${t}.500`,_hover:{color:`${t}.400`,bg:"whiteAlpha.50"}}}},hR=e=>vy(v(f({},e),{colorScheme:"primary"})),gR={borderWidth:"1px",borderColor:"gray.200",boxShadow:"xs",bg:"white",fontWeight:"medium",color:"inherit",_hover:{borderColor:"gray.300",bg:"gray.50"},_dark:{boxShadow:"dark-xs",borderColor:"gray.600",bg:"gray.700",_hover:{borderColor:"gray.500",bg:"gray.600"}}},yR={borderWidth:"1px",borderColor:"gray.200",bg:"gray.200",color:"black",fontWeight:"medium",_hover:{borderColor:"gray.300",bg:"gray.200"},_dark:{borderColor:"gray.700",bg:"gray.700",color:"white",_hover:{borderColor:"gray.600"}}},vR={lg:{h:"8",minW:"10",fontSize:"md",px:"4",rounded:"6"},md:{h:"7",minW:"8",fontSize:"sm",px:"3",rounded:"4"},sm:{h:"6",minW:"6",fontSize:"sm",px:"2",rounded:"3"},xs:{h:"5",minW:"4",fontSize:"xs",px:"1",rounded:"3"}},bR={defaultProps:{size:"md",variant:"secondary"},variants:{solid:vy,outline:pR,ghost:mR,primary:hR,secondary:gR,tertiary:yR},sizes:vR},by=I("card").parts("container","header","title","subtitle","body","footer"),{definePartsStyle:ls}=T(by.keys),xR=V("card-bg"),wc=V("card-padding"),SR=V("card-shadow"),kc=V("card-radius"),CR=V("card-border-width","0"),is=V("card-border-color"),wR={sm:ls({container:{[kc.variable]:"radii.base",[wc.variable]:"space.3"}}),md:ls({container:{[kc.variable]:"radii.md",[wc.variable]:"space.4"}}),lg:ls({container:{[kc.variable]:"radii.xl",[wc.variable]:"space.6"}})},my=ls(e=>{let{isHoverable:t}=e;return {container:{[is.variable]:"colors.blackAlpha.200",[CR.variable]:"1px",[SR.variable]:"shadows.sm",_hover:t?{[is.variable]:"colors.blackAlpha.300"}:{},_dark:{[xR.variable]:"colors.gray.700",[is.variable]:"colors.whiteAlpha.50",_hover:t?{[is.variable]:"colors.whiteAlpha.300"}:{}}}}}),kR={parts:by.keys,defaultProps:{variant:"elevated"},variants:{elevated:my,shadow:my},sizes:wR},_R={baseStyle:e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}},TR={size:"sm"},PR={defaultProps:TR},{defineMultiStyleConfig:AR,definePartsStyle:ER}=T(Fs.keys),py=V("drawer-bg"),RR={bg:"blackAlpha.50"},MR=e=>({borderRadius:"md",margin:"8px",borderWidth:"1px",borderColor:"chakra-border-color",backdropFilter:"blur(10px) contrast(100%) saturate(100%) brightness(200%)",[py.variable]:"colors.whiteAlpha.800",fontSize:"md",_dark:{backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)",[py.variable]:"colors.grayAlpha.700"}}),IR={px:"4",py:"3",fontSize:"md",fontWeight:"semibold"},VR={position:"absolute",top:"2",insetEnd:"3"},OR=e=>({px:"4",py:"2"}),NR={px:"3",py:"3"},$R=ER(e=>({overlay:RR,dialog:se(MR,e),header:IR,closeButton:VR,body:se(OR,e),footer:NR})),LR=AR({baseStyle:$R}),DR=LR,{definePartsStyle:BR}=T(Kt.keys);function jR(e){let{focusBorderColor:t,errorBorderColor:r}=e;return {focusBorderColor:t||Y("blue.500","blue.300")(e),errorBorderColor:r||Y("red.500","red.300")(e)}}var xy=BR(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=jR(e);return {field:{border:"1px solid var(--chakra-colors-chakra-border-color)",bg:"inherit",_hover:{borderColor:"gray.300"},_invalid:{borderColor:ae(t,o),boxShadow:"none"},_focusVisible:{zIndex:1,borderColor:ae(t,r),boxShadow:"none"},_dark:{bg:"gray.900",borderColor:"chakra-border-color",_hover:{borderColor:"whiteAlpha.400"},_invalid:{borderColor:ae(t,o)},_focusVisible:{borderColor:ae(t,r)}}},addon:{borderColor:"inherit",bg:"gray.100",_dark:{borderColor:"whiteAlpha.50",bg:"whiteAlpha.300"}}}}),zR={sm:{field:{borderRadius:"4px",h:7},addon:{borderRadius:"4px",h:7}},md:{field:{px:3,h:9},addon:{px:3,h:9}}},In={defaultProps:{variant:"outline",size:"sm",focusBorderColor:"primary.500"},variants:{outline:xy},sizes:zR},FR={FormLabel:{baseStyle:{mb:1},variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},Input:In,NumberInput:In,PinInput:In,Textarea:{defaultProps:In.defaultProps,variants:{outline:e=>xy(e).field}},Select:In},WR={defaultProps:{size:"lg"}},_c=V("kbd-bg"),HR={[_c.variable]:"colors.blackAlpha.300",_dark:{[_c.variable]:"colors.whiteAlpha.300"},bg:_c.reference,borderRadius:"md",borderWidth:"0",borderBottomWidth:"0",padding:"1px",minW:"20px",textAlign:"center",":last-child":{mr:0}},GR={defaultProps:{variant:"solid"},baseStyle:HR},UR=GR,{defineMultiStyleConfig:KR,definePartsStyle:qR}=T(Ho.keys),qe=V("menu-bg"),Tc=V("menu-shadow"),YR={[qe.variable]:"colors.whiteAlpha.500",[Tc.variable]:"shadows.lg",backdropFilter:"blur(10px) contrast(100%) saturate(190%)",_dark:{[qe.variable]:"colors.grayAlpha.700",[Tc.variable]:"shadows.dark-lg",backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)"},py:"1",borderRadius:"md",borderWidth:"1px",bg:qe.reference,boxShadow:Tc.reference},XR={py:"1.5",px:"3",mx:"1",rounded:"md",fontSize:"sm",width:"calc(100% - 8px)",boxSizing:"border-box",bg:"transparent",_hover:{bg:qe.reference,[qe.variable]:"colors.grayAlpha.300"},_focus:{bg:qe.reference,[qe.variable]:"colors.grayAlpha.300"},_active:{bg:qe.reference,[qe.variable]:"colors.grayAlpha.300"},_expanded:{bg:qe.reference,[qe.variable]:"colors.grayAlpha.300"}},ZR={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},JR={transitionProperty:"common",transitionDuration:"normal"},QR={my:"1"},eM=qR({button:JR,list:YR,item:XR,groupTitle:ZR,divider:QR}),tM=KR({baseStyle:eM}),rM=tM,{defineMultiStyleConfig:oM,definePartsStyle:nM}=T(Go.keys),iM={bg:"blackAlpha.50"},aM=e=>({bg:"whiteAlpha.800",backdropFilter:"blur(10px) contrast(100%) saturate(100%) brightness(200%)",fontSize:"md",_dark:{bg:"grayAlpha.700",boxShadow:"dark-lg",backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)"}}),sM={px:"4",py:"3",fontSize:"md",fontWeight:"semibold"},lM={position:"absolute",top:"2",insetEnd:"3"},cM=e=>({px:"4",py:"2"}),uM={px:"3",py:"3"},dM=nM(e=>({overlay:iM,dialog:se(aM,e),header:sM,closeButton:lM,body:se(cM,e),footer:uM})),fM=oM({baseStyle:dM,defaultProps:{size:"md"}}),mM=fM,{defineMultiStyleConfig:pM}=T(Uo.keys),hM=pM({defaultProps:{colorScheme:"primary"},baseStyle:e=>{let{colorScheme:t}=e;return {track:{borderRadius:"md",bg:"gray.200",_dark:{bg:"gray.800"}},filledTrack:{bg:`${t}.500`}}}}),{defineMultiStyleConfig:gM,definePartsStyle:yM}=T(Hs.keys),as=V("popper-bg"),vM=V("popper-arrow-bg"),hy=V("popper-arrow-shadow-color"),bM={[as.variable]:"colors.whiteAlpha.800",bg:as.reference,[vM.variable]:as.reference,[hy.variable]:"colors.gray.200",backdropFilter:"blur(10px) contrast(100%) saturate(100%) brightness(200%)",_dark:{[as.variable]:"colors.grayAlpha.700",[hy.variable]:"colors.whiteAlpha.300",backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)"}},xM=yM(e=>({content:se(bM,e)})),SM=gM({baseStyle:xM,defaultProps:{size:"md"}}),CM=SM,wM={baseStyle:e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}},kM={defaultProps:{colorScheme:"primary"},baseStyle:e=>{let{colorScheme:t}=e;return {filledTrack:{bg:`${t}.500`}}}},{defineMultiStyleConfig:_M,definePartsStyle:TM}=T(Ko.keys),Vn=Ue("switch-bg"),PM=e=>{let{colorScheme:t}=e;return {[Vn.variable]:"colors.gray.300",_dark:{[Vn.variable]:"colors.whiteAlpha.300"},_checked:{[Vn.variable]:`colors.${t}.500`,_dark:{[Vn.variable]:`colors.${t}.500`}},bg:Vn.reference}},AM={bg:"white",_dark:{bg:"blackAlpha.800",_checked:{bg:"white"}}},EM=TM(e=>({track:PM(e),thumb:AM})),RM=_M({baseStyle:EM,defaultProps:{size:"md",colorScheme:"primary"}}),MM=RM,ss=Ue("tooltip-bg"),gy=Ue("tooltip-fg"),IM=Ue("popper-arrow-bg"),VM=e=>({display:"flex",[ss.variable]:"colors.white",[gy.variable]:"colors.blackAlpha.900",_dark:{[ss.variable]:"colors.gray.700",[gy.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[ss.reference],[IM.variable]:[ss.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),OM={baseStyle:VM},NM=f({Alert:fR,Button:bR,Card:kR,Checkbox:_R,CloseButton:PR,Drawer:DR,Heading:WR,Kbd:UR,Menu:rM,Modal:mM,Progress:hM,Popover:CM,Radio:wM,Slider:kM,Switch:MM,Tooltip:OM},FR),Sy=react.extendTheme({colors:Pc,fonts:QE,fontSizes:eR,textStyles:tR,sizes:oR,components:NM,shadows:iR,semanticTokens:aR},react.withDefaultColorScheme({colorScheme:"primary",components:["Radio","Switch","Checkbox"]}));var DM=react.extendTheme(Sy,rn),BM=()=>{let[e,t]=uy("storybook.theme","1");return ht__namespace.useEffect(()=>{let r=previewApi.addons.getChannel(),o=n=>{t(n);};return r.on(nt.SET_THEME,o),()=>{r.removeListener(nt.SET_THEME,o);}},[t]),e},Pq=previewApi.makeDecorator({name:"ChakraProviderDecorator",parameterName:"chakra",skipIfNoParametersOrOptions:!1,wrapper:(e,t,{parameters:r})=>{let {parameters:{saasui:o},globals:{[Fc]:n}}=t,i=BM(),a=ht__namespace.useCallback(()=>{switch(i){case"1":return rn;case"2":return DM;default:return ul}},[i]),s=(o==null?void 0:o.theme)||a();!!(o!=null&&o.theme);let c=o!=null&&o.theme?typeof o.theme=="function"?o.theme(t):o.theme:s,u=Gc(n||(c==null?void 0:c.direction)),d=ht__namespace.useMemo(()=>react.extendTheme({direction:u,styles:{global:{body:{minHeight:"var(--chakra-vh)"}}}},c),[c,u]);return jsxRuntime.jsxs(wg,v(f({},o),{theme:d,children:[jsxRuntime.jsx(Wc,{}),e(t)]}))}});/*! Bundled license information:
|
36
|
+
`),()=>{document.head.removeChild(c);}},[t]),bt__namespace.createElement(Dc,{isPresent:t,childRef:o,sizeRef:n},bt__namespace.cloneElement(e,{ref:o}))}var us=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:n,presenceAffectsLayout:i,mode:a})=>{let s=ma(j2),l=bt.useId(),c=bt.useMemo(()=>({id:l,initial:t,isPresent:r,custom:n,onExitComplete:u=>{s.set(u,!0);for(let f of s.values())if(!f)return;o&&o();},register:u=>(s.set(u,!1),()=>s.delete(u))}),i?void 0:[r]);return bt.useMemo(()=>{s.forEach((u,f)=>s.set(f,!1));},[r]),bt__namespace.useEffect(()=>{!r&&!s.size&&o&&o();},[r]),a==="popLayout"&&(e=bt__namespace.createElement(jg,{isPresent:r},e)),bt__namespace.createElement(It.Provider,{value:c},e)};function j2(){return new Map}function Fg(e){return bt.useEffect(()=>()=>e(),[])}var mr=e=>e.key||"";function G2(e,t){e.forEach(r=>{let o=mr(r);t.set(o,r);});}function U2(e){let t=[];return bt.Children.forEach(e,r=>{bt.isValidElement(r)&&t.push(r);}),t}var st=({children:e,custom:t,initial:r=!0,onExitComplete:o,exitBeforeEnter:n,presenceAffectsLayout:i=!0,mode:a="sync"})=>{let s=bt.useContext(Fr).forceRender||Ng()[0],l=cs(),c=U2(e),u=c,f=bt.useRef(new Map).current,p=bt.useRef(u),m=bt.useRef(new Map).current,v=bt.useRef(!0);if(zr(()=>{v.current=!1,G2(c,m),p.current=u;}),Fg(()=>{v.current=!0,m.clear(),f.clear();}),v.current)return bt__namespace.createElement(bt__namespace.Fragment,null,u.map(S=>bt__namespace.createElement(us,{key:mr(S),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},S)));u=[...u];let y=p.current.map(mr),x=c.map(mr),w=y.length;for(let S=0;S<w;S++){let C=y[S];x.indexOf(C)===-1&&!f.has(C)&&f.set(C,void 0);}return a==="wait"&&f.size&&(u=[]),f.forEach((S,C)=>{if(x.indexOf(C)!==-1)return;let k=m.get(C);if(!k)return;let $=y.indexOf(C),L=S;if(!L){let R=()=>{f.delete(C);let O=Array.from(m.keys()).filter(h=>!x.includes(h));if(O.forEach(h=>m.delete(h)),p.current=c.filter(h=>{let I=mr(h);return I===C||O.includes(I)}),!f.size){if(l.current===!1)return;s(),o&&o();}};L=bt__namespace.createElement(us,{key:mr(k),isPresent:!1,onExitComplete:R,custom:t,presenceAffectsLayout:i,mode:a},k),f.set(C,L);}u.splice($,0,L);}),u=u.map(S=>{let C=S.key;return f.has(C)?S:bt__namespace.createElement(us,{key:mr(S),isPresent:!0,presenceAffectsLayout:i,mode:a},S)}),bt__namespace.createElement(bt__namespace.Fragment,null,f.size?u:u.map(S=>bt.cloneElement(S)))};function Vc(e,t){var r;return Array.from((r=e==null?void 0:e.querySelectorAll(t))!=null?r:[])}function Wg(e,t){return e.find(r=>r.id===t)}function Nc(e,t){let r=Wg(e,t);return r?e.indexOf(r):-1}function Bc(e,t,r=!0){let o=Nc(e,t);return o=r?(o+1)%e.length:Math.min(o+1,e.length-1),e[o]}function jc(e,t,r=!0){let o=Nc(e,t);return o===-1?r?e[e.length-1]:null:(o=r?(o-1+e.length)%e.length:Math.max(0,o-1),e[o])}typeof document!="undefined"?bt__namespace.default.useLayoutEffect:()=>{};function ys(e){var t;return typeof window=="undefined"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Wc(e){var t;return typeof window!="undefined"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function go(){return Wc(/^Mac/i)}function Xg(){return ys(/Android/i)}var ho=new Map,Fc=new Set;function Ug(){if(typeof window=="undefined")return;let e=r=>{let o=ho.get(r.target);o||(o=new Set,ho.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName);},t=r=>{let o=ho.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),ho.delete(r.target)),ho.size===0)){for(let n of Fc)n();Fc.clear();}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t);}typeof document!="undefined"&&(document.readyState!=="loading"?Ug():document.addEventListener("DOMContentLoaded",Ug));function vs(e){return e.mozInputSource===0&&e.isTrusted?!0:Xg()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var my=bt__namespace.default.createContext({register:()=>{}});my.displayName="PressResponderContext";var bE=new Set,uy=!1,hr=!1,Xc=!1;function Jc(e,t){for(let r of bE)r(e,t);}function xE(e){return !(e.metaKey||!go()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function fy(e){hr=!0,xE(e)&&(Jc("keyboard",e));}function So(e){(e.type==="mousedown"||e.type==="pointerdown")&&(hr=!0,Jc("pointer",e));}function SE(e){vs(e)&&(hr=!0,"virtual");}function wE(e){e.target===window||e.target===document||(!hr&&!Xc&&(Jc("virtual",e)),hr=!1,Xc=!1);}function CE(){hr=!1,Xc=!0;}function dy(){if(typeof window=="undefined"||uy)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){hr=!0,e.apply(this,arguments);},document.addEventListener("keydown",fy,!0),document.addEventListener("keyup",fy,!0),document.addEventListener("click",SE,!0),window.addEventListener("focus",wE,!0),window.addEventListener("blur",CE,!1),typeof PointerEvent!="undefined"?(document.addEventListener("pointerdown",So,!0),document.addEventListener("pointermove",So,!0),document.addEventListener("pointerup",So,!0)):(document.addEventListener("mousedown",So,!0),document.addEventListener("mousemove",So,!0),document.addEventListener("mouseup",So,!0)),uy=!0;}typeof document!="undefined"&&(document.readyState!=="loading"?dy():document.addEventListener("DOMContentLoaded",dy));typeof document!="undefined"?bt__namespace.default.useLayoutEffect:()=>{};var On=new Map,vy=new Set;function by(){if(typeof window=="undefined")return;let e=r=>{let o=On.get(r.target);o||(o=new Set,On.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName);},t=r=>{let o=On.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),On.delete(r.target)),On.size===0)){for(let n of vy)n();vy.clear();}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t);}typeof document!="undefined"&&(document.readyState!=="loading"?by():document.addEventListener("DOMContentLoaded",by));function NE(){return typeof window.ResizeObserver!="undefined"}function Sy(e){let{ref:t,onResize:r}=e;bt.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(NE()){let n=new window.ResizeObserver(i=>{i.length&&r();});return n.observe(o),()=>{o&&n.unobserve(o);}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1);}},[r,t]);}function Cy(e,t){return bt__namespace.Children.toArray(e).find(r=>r.type===t)}function ky(e,t){return bt__namespace.Children.toArray(e).filter(r=>Array.isArray(t)?t.some(o=>o===r.type):r.type===t)}var zE=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],ru=(e,t)=>{var r;let o=react.useTheme(),n=zE(e,(r=o.__breakpoints)==null?void 0:r.toArrayValue);return react.useBreakpointValue(n,t)};var[YE,$o]=react.createStylesContext("SuiEmptyState");var Ky=react.forwardRef((e,t)=>{let r=$o(),o=d({boxSize:10},r.icon);return jsxRuntime.jsx(react.Icon,b(d({ref:t,role:"presentation",sx:o},e),{className:A("sui-empty-state__icon",e.className)}))});Ky.displayName="EmptyStateIcon";var fu=bt__namespace.createContext({});function Jy(e){let s=e,{theme:t,linkComponent:r,onError:o,children:n}=s,i=P(s,["theme","linkComponent","onError","children"]),a={linkComponent:r,onError:o};return jsxRuntime.jsx(fu.Provider,{value:a,children:jsxRuntime.jsx(react.ChakraProvider,b(d({},i),{theme:t||bn,children:n}))})}var ZE=()=>bt__namespace.useContext(fu),e$=e=>jsxRuntime.jsx(react.chakra.a,d({},e));function du(){let e=ZE();return e!=null&&e.linkComponent?e.linkComponent:e$}var r$=class extends bt__namespace.Component{constructor(e){super(e),this.onError=(t,r)=>{var o,n,i,a;(n=(o=this.props).onError)==null||n.call(o,t,r),(a=(i=this.context).onError)==null||a.call(i,t,r);},this.state={error:null};}static getDerivedStateFromError(e){return {error:e}}componentDidCatch(e,t){this.onError(e,t);}render(){return this.state.error?this.props.fallback||jsxRuntime.jsx("h1",{children:"Something went wrong."}):this.props.children}};r$.contextType=fu;var ev=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[c$,tv]=Se({strict:!1,errorMessage:"AppShell context not available."}),u$=e=>{let t=react.useDisclosure(),r=ev(e.toggleBreakpoint),o=react.useBreakpointValue(r,{fallback:e.toggleBreakpoint||"lg"});return {isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:o}},[f$,yY]=react.createStylesContext("SuiAppShell"),d$=react.forwardRef((e,t)=>{let r=react.useMultiStyleConfig("SuiAppShell",e),y=react.omitThemingProps(e),{navbar:o,sidebar:n,aside:i,footer:a,children:s,mainRef:l}=y,c=P(y,["navbar","sidebar","aside","footer","children","mainRef"]),u=d({flexDirection:"column"},r.container),f=d({flex:1,minHeight:0,minWidth:0},r.inner),p=d({flex:1,flexDirection:"column",minWidth:0},r.main),m=bt__namespace.isValidElement(n)&&n.type.id==="Sidebar",v=u$({toggleBreakpoint:m?n==null?void 0:n.props.toggleBreakpoint:void 0});return jsxRuntime.jsx(c$,{value:v,children:jsxRuntime.jsx(f$,{value:r,children:jsxRuntime.jsxs(react.Flex,b(d({ref:t},c),{sx:u,className:A("sui-app-shell",e.className),children:[o,jsxRuntime.jsxs(react.Flex,{sx:f,className:"saas-app-shell__inner",children:[n,jsxRuntime.jsx(react.Flex,{ref:l,sx:p,className:"saas-app-shell__main",children:s}),i]}),a]}))})})});d$.displayName="AppShell";function x$(e){return jsxRuntime.jsx(react.Icon,b(d({viewBox:"0 0 24 24"},e),{children:jsxRuntime.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"})}))}function S$(e){return jsxRuntime.jsx(react.Icon,b(d({viewBox:"0 0 24 24"},e),{children:jsxRuntime.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"})}))}function _y(e){return jsxRuntime.jsx(react.Icon,b(d({viewBox:"0 0 24 24"},e),{children:jsxRuntime.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"})}))}var $s={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Dn={enter:{duration:.2,ease:$s.easeOut},exit:{duration:.1,ease:$s.easeIn}},Vn={enter:(e,t)=>b(d({},e),{delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>b(d({},e),{delay:typeof t=="number"?t:t==null?void 0:t.exit})},C$={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:o,delay:n})=>{var i;return b(d({opacity:0},e?{scale:t,transitionEnd:o==null?void 0:o.exit}:{transitionEnd:d({scale:t},o==null?void 0:o.exit)}),{transition:(i=r==null?void 0:r.exit)!=null?i:Vn.exit(Dn.exit,n)})},enter:({transitionEnd:e,transition:t,delay:r})=>{var o;return {opacity:1,scale:1,transition:(o=t==null?void 0:t.enter)!=null?o:Vn.enter(Dn.enter,r),transitionEnd:e==null?void 0:e.enter}}},ov={initial:"exit",animate:"enter",exit:"exit",variants:C$},T$=bt.forwardRef(function(t,r){let y=t,{unmountOnExit:o,in:n,reverse:i=!0,initialScale:a=.95,className:s,transition:l,transitionEnd:c,delay:u}=y,f=P(y,["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"]),p=o?n&&o:!0,m=n||o?"enter":"exit",v={initialScale:a,reverse:i,transition:l,transitionEnd:c,delay:u};return jsxRuntime.jsx(st,{custom:v,children:p&&jsxRuntime.jsx(je.div,d(b(d({ref:r,className:zi("chakra-offset-slide",s)},ov),{animate:m,custom:v}),f))})});T$.displayName="ScaleFade";var P$={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:o,delay:n})=>{var i;return {opacity:0,x:e,y:t,transition:(i=r==null?void 0:r.exit)!=null?i:Vn.exit(Dn.exit,n),transitionEnd:o==null?void 0:o.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var o;return {opacity:1,x:0,y:0,transition:(o=e==null?void 0:e.enter)!=null?o:Vn.enter(Dn.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:o,reverse:n,delay:i})=>{var a;let s={x:t,y:e};return d({opacity:0,transition:(a=r==null?void 0:r.exit)!=null?a:Vn.exit(Dn.exit,i)},n?b(d({},s),{transitionEnd:o==null?void 0:o.exit}):{transitionEnd:d(d({},s),o==null?void 0:o.exit)})}},Es={initial:"initial",animate:"enter",exit:"exit",variants:P$},E$=bt.forwardRef(function(t,r){let x=t,{unmountOnExit:o,in:n,reverse:i=!0,className:a,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:u,delay:f}=x,p=P(x,["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"]),m=o?n&&o:!0,v=n||o?"enter":"exit",y={offsetX:s,offsetY:l,reverse:i,transition:c,transitionEnd:u,delay:f};return jsxRuntime.jsx(st,{custom:y,children:m&&jsxRuntime.jsx(je.div,d(b(d({ref:r,className:zi("chakra-offset-slide",a),custom:y},Es),{animate:v}),p))})});E$.displayName="SlideFade";var ks={enter:{duration:.2,ease:$s.easeOut},exit:{duration:.2,ease:$s.easeIn}},_$={slideOutTop:b(d({},Es),{custom:{offsetY:"-100%",reverse:!0,transition:ks},initial:"enter"}),slideOutBottom:b(d({},Es),{custom:{offsetY:"100%",reverse:!0,transition:ks},initial:"enter"}),fade:b(d({},Es),{custom:{transition:ks},initial:"enter"}),scale:b(d({},ov),{custom:{initialScale:.1,reverse:!0,transition:ks},initial:"enter"}),none:{custom:{}}},A$=Dr(je.div),M$=bt__namespace.forwardRef((e,t)=>{let a=e,{motionPreset:r}=a,o=P(a,["motionPreset"]),n=_$[r],i=d({},n);return jsxRuntime.jsx(A$,d(d({ref:t},i),o))}),[R$,Ao]=react.createStylesContext("SuiBanner"),nv={info:{icon:S$,colorScheme:"blue"},warning:{icon:_y,colorScheme:"orange"},success:{icon:x$,colorScheme:"green"},error:{icon:_y,colorScheme:"red"}},[I$,iv]=Se({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in `<Banner />`"}),L$=react.forwardRef((e,t)=>{var r;let y=react.omitThemingProps(e),{id:o,status:n="info",isOpen:i=!0,onClose:a,motionPreset:s="slideOutTop"}=y,l=P(y,["id","status","isOpen","onClose","motionPreset"]),c=(r=e.colorScheme)!=null?r:nv[n].colorScheme,u=react.useMultiStyleConfig("SuiBanner",b(d({},e),{colorScheme:c})),f=d({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden"},u.container),p={id:o||`banner-${react.useId()}`,status:n,onClose:a,isOpen:i},m=["warning","error"].includes(n)?"alert":"status",v=i?"enter":"exit";return jsxRuntime.jsx(I$,{value:p,children:jsxRuntime.jsx(R$,{value:u,children:jsxRuntime.jsx(st,{children:i&&jsxRuntime.jsx(M$,b(d({id:p.id,role:m,ref:t,motionPreset:s,animate:v},l),{className:A("sui-banner",e.className),__css:f}))})})})});L$.displayName="Banner";var O$=react.forwardRef((e,t)=>{let r=Ao();return jsxRuntime.jsx(react.chakra.div,b(d({ref:t},e),{className:A("sui-banner__content",e.className),__css:r.content}))});O$.displayName="BannerContent";var D$=react.forwardRef((e,t)=>{let r=Ao();return jsxRuntime.jsx(react.chakra.div,b(d({ref:t},e),{className:A("sui-banner__title",e.className),__css:r.title}))});D$.displayName="BannerTitle";var V$=react.forwardRef((e,t)=>{let r=Ao(),o=d({display:"inline"},r.description);return jsxRuntime.jsx(react.chakra.div,b(d({ref:t},e),{className:A("sui-banner__desc",e.className),__css:o}))});V$.displayName="BannerDescription";var N$=react.forwardRef((e,t)=>{let{children:r,variant:o}=e,n=Ao();return jsxRuntime.jsx(react.chakra.div,b(d({ref:t},e),{className:A("sui-banner__actions",e.className),__css:n.actions,children:jsxRuntime.jsx(react.ButtonGroup,{variant:o,children:r})}))});N$.displayName="BannerActions";var j$=react.forwardRef((e,t)=>{let u=e,{onClick:r,className:o}=u,n=P(u,["onClick","className"]),{onClose:i,isOpen:a,id:s}=iv(),l=A("sui-banner__close-btn",o),c=Ao();return jsxRuntime.jsx(react.CloseButton,d({ref:t,__css:c.closeButton,className:l,onClick:Ve(r,f=>{f.stopPropagation(),i==null||i();}),"aria-controls":s,"aria-expanded":a!=null&&a.toString()?"true":"false"},n))});j$.displayName="BannerCloseButton";Se({name:"UseCollapseReturn"});var [Q$,Wn]=react.createStylesContext("SuiStructuredList"),[e_,t_]=Se({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in `<StructuredList />`"});function r_(e){return Vc(e,"[role='button']:not([disabled])")}var o_=e=>{var t;let r=react.useId(),o=bt__namespace.useRef(null),[n,i]=bt__namespace.useState(null);return {id:(t=e.id)!=null?t:r,containerRef:o,focusId:n,setFocusId:i}},n_=react.forwardRef((e,t)=>{let u=e,{items:r,children:o}=u,n=P(u,["items","children"]),i=react.useMultiStyleConfig("SuiStructuredList",n),a=react.omitThemingProps(n),s;r?s=r.map((f,p)=>bt.createElement(sv,b(d({},f),{key:f.id||p}))):s=o;let l=d({py:2,position:"relative"},i.list),c=o_(e);return jsxRuntime.jsx(e_,{value:c,children:jsxRuntime.jsx(Q$,{value:i,children:jsxRuntime.jsx(react.chakra.ul,b(d({ref:react.useMergeRefs(t,c.containerRef),__css:l},a),{className:A("sui-list",e.className),children:s}))})})});n_.displayName="StructuredList";var sv=react.forwardRef((e,t)=>{let v=e,{onClick:r,href:o,as:n,children:i}=v,a=P(v,["onClick","href","as","children"]),s=Wn(),l=!!(r||o),c=l?lv:bt__namespace.Fragment,u=!!l,f=d(d({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",fontSize:"md"},s.item),u?{py:0,px:0}:{}),m=l?jsxRuntime.jsx(c,b(d({},l?{onClick:r,href:o,as:n}:{}),{children:i})):i;return jsxRuntime.jsx(react.chakra.li,b(d({ref:t,__css:f},a),{className:A("sui-list__item",e.className),children:m}))});sv.displayName="StructuredListItem";var a_=e=>{var t;let{id:r,containerRef:o,focusId:n,setFocusId:i}=t_(),a=`${r}-${react.useId()}`,s=(t=e.id)!=null?t:a,l=n===s;return {buttonProps:{id:s,["data-focus"]:he(l),tabIndex:l?0:-1,onFocus:Ve(e.onFocus,()=>{i(s);}),onKeyDown:Ve(e.onKeyDown,bt__namespace.useCallback(u=>{let f=r_(o.current),p={ArrowUp:()=>{var m;(m=jc(f,s))==null||m.focus();},ArrowDown:()=>{var m;(m=Bc(f,s))==null||m.focus();},Home:()=>{var m;(m=f[0])==null||m.focus();},End:()=>{var m;(m=f[f.length-1])==null||m.focus();}};p[u.key]&&(u.preventDefault(),p[u.key](u));},[s]))}}},lv=react.forwardRef((e,t)=>{let s=e,{children:r}=s,o=P(s,["children"]),{buttonProps:n}=a_(e),i=Wn(),a=d({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flex:1,cursor:"pointer",userSelect:"none"},i.button);return jsxRuntime.jsx(react.chakra.div,b(d(d({ref:t,__css:a,role:"button"},o),n),{className:A("sui-list__item-button",e.className),children:r}))});lv.displayName="StructuredListButton";var d_=react.forwardRef((e,t)=>{let r=du(),i=e,{href:o}=i,n=P(i,["href"]);return jsxRuntime.jsx(react.Link,d({as:r,ref:t,href:o},n))});d_.displayName="Link";react.createStylesContext("SuiLoadingOverlay");react.chakra(je.div);Se({name:"UseContextMenuContext",strict:!1});var [J_,Is]=react.createStylesContext("SuiPersona"),Ny={online:{label:"Online",color:"presence.online"},offline:{label:"Offline",color:"presence.offline"},busy:{label:"Busy",color:"presence.busy"},dnd:{label:"Do-not-disturb",color:"presence.dnd"},away:{label:"Away",color:"presence.away"}},Q_={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"};var uv=react.forwardRef((e,t)=>{let l=e,{children:r}=l,o=P(l,["children"]),n=react.useMultiStyleConfig("SuiPersona",e),i=react.omitThemingProps(o),s=d(d({},{display:"flex",flexDirection:"row",alignItems:"center"}),n.container);return jsxRuntime.jsx(J_,{value:n,children:jsxRuntime.jsx(react.chakra.div,b(d({ref:t,__css:s},i),{className:A("sui-persona",e.className),children:r}))})});uv.displayName="PersonaContainer";var fv=react.forwardRef((e,t)=>{var r,o,n,i,a;let _=e,{name:s,presence:l,presenceLabel:c,presenceIcon:u,isOutOfOffice:f,badgeSize:p="1em",size:m,getInitials:v,icon:y,iconLabel:x,ignoreFallback:w,loading:S,onError:C,src:k,srcSet:$}=_,L=P(_,["name","presence","presenceLabel","presenceIcon","isOutOfOffice","badgeSize","size","getInitials","icon","iconLabel","ignoreFallback","loading","onError","src","srcSet"]),R={},O,h=react.useTheme(),I=((r=h.colors)==null?void 0:r.presence)||Q_,B=!!((n=(o=h.semanticTokens)==null?void 0:o.colors)!=null&&n["presence.online"]);if(l){let F=c||((i=Ny[l])==null?void 0:i.label),T=B?((a=Ny[l])==null?void 0:a.color)||`presence.${l}`:I[l];f?(R.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:T,borderRadius:"50%",boxSizing:"border-box"}},R.borderWidth="0.15em",R.bg=react.useColorModeValue("white","gray.800")):R.bg=T,O=jsxRuntime.jsx(react.AvatarBadge,b(d({boxSize:p},R),{children:u})),F&&(O=jsxRuntime.jsx(react.Tooltip,{label:F,children:O}));}return jsxRuntime.jsx(react.Avatar,b(d({ref:t,name:s,size:m,getInitials:v,icon:y,iconLabel:x,ignoreFallback:w,loading:S,onError:C,src:k,srcSet:$},L),{children:O}))});fv.displayName="PersonaAvatar";var dv=react.forwardRef((e,t)=>{let l=e,{children:r,className:o}=l,n=P(l,["children","className"]),i=Is(),s=d(d({},{display:"flex",flexDirection:"column"}),i.details);return jsxRuntime.jsx(react.chakra.div,b(d({ref:t},n),{__css:s,className:A("sui-persona__details",o),children:r}))});dv.displayName="PersonaDetails";var pv=react.forwardRef((e,t)=>{let r=Is();return jsxRuntime.jsx(react.chakra.span,b(d({ref:t},e),{__css:r.label,className:A("sui-persona__label",e.className)}))});pv.displayName="PersonaLabel";var mv=react.forwardRef((e,t)=>{let r=Is();return jsxRuntime.jsx(react.chakra.span,b(d({ref:t},e),{__css:r.secondaryLabel,className:A("sui-persona__secondary-label",e.className)}))});mv.displayName="PersonaSecondaryLabel";var hv=react.forwardRef((e,t)=>{let r=Is();return jsxRuntime.jsx(react.chakra.span,b(d({ref:t},e),{__css:r.tertiaryLabel,className:A("sui-persona__tertiary-label",e.className)}))});hv.displayName="PersonaTertiaryLabel";var[aA,gv]=react.createStylesContext("SuiProperty"),sA=react.forwardRef((e,t)=>{let r=react.useMultiStyleConfig("SuiProperty",e),u=react.omitThemingProps(e),{children:o,label:n,value:i,labelWidth:a,spacing:s}=u,l=P(u,["children","label","value","labelWidth","spacing"]),c=d({minW:0,display:"flex",flexDirection:"row",alignItems:"center"},r.property);return jsxRuntime.jsx(aA,{value:r,children:jsxRuntime.jsxs(react.chakra.dl,b(d({ref:t,__css:c},l),{className:A("sui-property",e.className),children:[n&&jsxRuntime.jsx(yv,{width:a,minWidth:a,marginEnd:s,children:n}),i&&jsxRuntime.jsx(vv,{children:i}),o]}))})});sA.displayName="Property";var yv=react.forwardRef((e,t)=>{let r=gv(),c=e,{children:o,noOfLines:n=1,width:i,minWidth:a}=c,s=P(c,["children","noOfLines","width","minWidth"]),l=d({display:"flex",flexDirection:"row"},r.label);return i&&(l.minWidth=a||"auto",l.width=i),jsxRuntime.jsx(react.chakra.dt,b(d({ref:t,__css:l},s),{className:A("sui-property__label",e.className),children:jsxRuntime.jsx(react.chakra.span,{flex:"1",noOfLines:n,children:o})}))});yv.displayName="PropertyLabel";var vv=react.forwardRef((e,t)=>{let r=gv(),a=e,{children:o}=a,n=P(a,["children"]),i=d({display:"flex",flexDirection:"row",alignItems:"center",flex:1},r.value);return jsxRuntime.jsx(react.chakra.dd,b(d({ref:t,__css:i},n),{className:A("sui-property__value",e.className),children:o}))});vv.displayName="PropertyValue";var mA=typeof window!="undefined";function By(e){return mA?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var hA=e=>{let{elementRef:t,delay:r=30,callback:o,isEnabled:n}=e,i=bt.useRef(n?By(t==null?void 0:t.current):{x:0,y:0}),a=null,s=()=>{let l=By(t==null?void 0:t.current);typeof o=="function"&&o({prevPos:i.current,currPos:l}),i.current=l,a=null;};return bt.useEffect(()=>{if(!n)return;let l=()=>{r?a===null&&(a=setTimeout(s,r)):s();},c=(t==null?void 0:t.current)||window;return c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)},[t==null?void 0:t.current,r,n]),i.current};function gA(e){let x=e,{ref:t,parentRef:r,height:o="3.5rem",shouldHideOnScroll:n=!1,disableScrollHandler:i=!1,onScrollPositionChange:a,motionProps:s}=x,l=P(x,["ref","parentRef","height","shouldHideOnScroll","disableScrollHandler","onScrollPositionChange","motionProps"]),c=bt.useRef(null);bt.useImperativeHandle(t,()=>c.current);let u=bt.useRef(0),f=bt.useRef(0),[p,m]=bt.useState(!1),v=()=>{if(c.current){let w=c.current.offsetWidth;w!==u.current&&(u.current=w);}};return Sy({ref:c,onResize:()=>{var w;((w=c.current)==null?void 0:w.offsetWidth)!==u.current&&v();}}),bt.useEffect(()=>{var w;v(),f.current=((w=c.current)==null?void 0:w.offsetHeight)||0;},[]),hA({elementRef:r,isEnabled:n||!i,callback:({prevPos:w,currPos:S})=>{a==null||a(S.y),n&&m(C=>{let k=S.y>w.y&&S.y>f.current;return k!==C?k:C});}}),{containerRef:c,height:o,isHidden:p,shouldHideOnScroll:n,motionProps:s,getContainerProps:(w={})=>b(d(d({},l),s),{"data-hidden":he(p),ref:c,style:d(d({"--navbar-height":o},l.style),w==null?void 0:w.style)})}}function bA(e,t){return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Kn(e={}){let{name:t,strict:r=!0,hookName:o="useContext",providerName:n="Provider",errorMessage:i,defaultValue:a}=e,s=bt.createContext(a);s.displayName=t;function l(){var c;let u=bt.useContext(s);if(!u&&r){let f=new Error(i!=null?i:bA(o,n));throw f.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,f,l),f}return u}return [s.Provider,l,s]}var[xA,Mq]=Kn({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"}),[SA,Ls]=Kn({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:"<NavBar />"}),TA=react.chakra(je.nav),kA=react.forwardRef((e,t)=>{let l=e,{children:r}=l,o=P(l,["children"]),n=gA(b(d({},o),{ref:t})),i=react.useMultiStyleConfig("SuiNavbar",e),a=jsxRuntime.jsx(react.chakra.header,{__css:i.inner,className:"sui-navbar__inner",children:r}),s=d({top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0},i.container);return jsxRuntime.jsx(SA,{value:i,children:jsxRuntime.jsx(xA,{value:n,children:jsxRuntime.jsx(TA,b(d({__css:s,animate:n.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:A("sui-navbar",e.className)},n.getContainerProps()),{children:a}))})})});kA.displayName="Navbar";var _A=react.forwardRef((e,t)=>{let a=e,{className:r,children:o}=a,n=P(a,["className","children"]),i=Ls();return jsxRuntime.jsx(react.chakra.div,b(d({ref:t,__css:i.brand,className:A("sui-navbar__brand")},n),{children:o}))});_A.displayName="NavbarBrand";var IA=react.forwardRef((e,t)=>{let l=e,{className:r,children:o,spacing:n=0}=l,i=P(l,["className","children","spacing"]),a=Ls(),s=b(d({},a.content),{"& > *:not(style) ~ *:not(style)":{marginStart:n}});return jsxRuntime.jsx(react.chakra.ul,b(d({ref:t,__css:s,className:A("sui-navbar__content",r)},i),{children:o}))});IA.displayName="NavbarContent";var VA=react.forwardRef((e,t)=>{let s=e,{className:r,children:o,isActive:n}=s,i=P(s,["className","children","isActive"]),a=Ls();return jsxRuntime.jsx(react.chakra.li,b(d({ref:t,__css:a.item,className:A("sui-navbar__item",r),"data-active":he(n)},i),{children:o}))});VA.displayName="NavbarItem";var zA=react.forwardRef((e,t)=>{let l=e,{className:r,children:o,isActive:n}=l,i=P(l,["className","children","isActive"]),a=du(),s=Ls();return jsxRuntime.jsx(react.chakra.a,b(d({as:a,ref:t,__css:s.link,"data-active":he(n),className:A("sui-navbar__link",r)},i),{children:o}))});zA.displayName="NavbarLink";var [UA,Sv]=Se({name:"SidebarContext",strict:!1}),[qA,XA]=Kn({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:"<Sidebar />"}),ZA=react.chakra(je.nav),JA={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},wv=react.forwardRef((e,t)=>{var r,o,n;let i=react.useMultiStyleConfig("SuiSidebar",e),s=(r=react.useTheme().components.SuiSidebar)==null?void 0:r.defaultProps,l=ru((o=e.variant)!=null?o:s==null?void 0:s.variant,{fallback:"base"}),c=ru((n=e.size)!=null?n:s==null?void 0:s.size,{fallback:"base"}),u=l==="compact",Do=react.omitThemingProps(e),{spacing:f=4,children:p,toggleBreakpoint:m="lg",className:v,motionPreset:y="slideInOut",isOpen:x,onOpen:w,onClose:S}=Do,C=P(Do,["spacing","children","toggleBreakpoint","className","motionPreset","isOpen","onOpen","onClose"]),k=tv(),$=ev(m),L=react.useBreakpointValue($,{fallback:void 0}),R=react.useBreakpointValue($),O=typeof L=="undefined",h=typeof x!="undefined",I=(L||h)&&!u,B=react.useDisclosure({isOpen:x||(k==null?void 0:k.isSidebarOpen),onOpen:w||(k==null?void 0:k.openSidebar),onClose:S||(k==null?void 0:k.closeSidebar)}),{isOpen:_,onClose:F,onOpen:T}=B;bt__namespace.useEffect(()=>{O&&R||u||h||(R?F():T());},[O,u,R]);let E=d({"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:f},display:"flex",flexDirection:"column"},L&&I?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}),j=b(d({},B),{breakpoints:$,isMobile:L,variant:l,size:c}),Oe=JA[u?"none":y||"none"];return jsxRuntime.jsx(UA,{value:j,children:jsxRuntime.jsx(qA,{value:i,children:jsxRuntime.jsx(ZA,b(d({ref:t,initial:!1,animate:!O&&(!I||_?"enter":"exit"),variants:Oe,__css:d(d({},E),i.container)},C),{id:B.getDisclosureProps().id,className:A("sui-sidebar",v),"data-compact":he(u),"data-collapsible":he(L&&I),children:p}))})})});wv.displayName="Sidebar";wv.id="Sidebar";Kn({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"});var [l5,Tv]=Kn({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"});var $v=react.forwardRef((o,r)=>{var n=o,{children:e}=n,t=P(n,["children"]);let i=Tv();return jsxRuntime.jsx(react.chakra.span,b(d({ref:r,__css:i.label},t),{className:A("sui-nav-item__label",t.className),children:e}))});$v.displayName="NavItemLabel";var _v=e=>{let t=Tv(),s=e,{className:r,children:o}=s,n=P(s,["className","children"]),i=bt__namespace.Children.only(o),a=bt__namespace.isValidElement(i)?bt__namespace.cloneElement(i,{focusable:"false","aria-hidden":!0}):null;return jsxRuntime.jsx(react.chakra.span,b(d({},n),{className:A("sui-nav-item__icon",e.className),__css:d({flexShrink:0},t.icon),children:a}))};_v.displayName="NavItemIcon";var h5=react.forwardRef((e,t)=>{let C=react.omitThemingProps(e),{href:r,icon:o,inset:n,className:i,tooltipProps:a,isActive:s,children:l}=C,c=P(C,["href","icon","inset","className","tooltipProps","isActive","children"]),u=du(),{onClose:f,variant:p}=Sv()||{},m=p==="compact",v=react.useMultiStyleConfig("SuiNavItem",e),y=l,x=a==null?void 0:a.label;typeof y=="string"&&(!x&&m&&(x=y),y=jsxRuntime.jsx($v,{children:y}));let w;r&&(w=u);let S=jsxRuntime.jsx(react.chakra.a,b(d({as:w,"aria-current":s?"page":void 0},c),{ref:t,href:r,className:"sui-nav-item__link","data-active":he(s),__css:v.link,children:jsxRuntime.jsxs(react.chakra.span,{__css:b(d({},v.inner),{pl:n}),className:"sui-nav-item__inner",children:[o&&jsxRuntime.jsx(_v,{children:o}),y]})}));return jsxRuntime.jsx(l5,{value:v,children:jsxRuntime.jsx(react.Tooltip,b(d({label:x,placement:"right",openDelay:400},a),{children:jsxRuntime.jsx(react.chakra.div,{__css:v.item,onClick:f,"data-compact":he(m),className:A("sui-nav-item",i),children:S})}))})});h5.displayName="NavItem";var P5=react.forwardRef((e,t)=>{let R=e,{placeholder:r="Search",value:o,defaultValue:n,size:i,variant:a,width:s,icon:l,resetIcon:c,rightElement:u,onChange:f,onReset:p,onKeyDown:m}=R,v=P(R,["placeholder","value","defaultValue","size","variant","width","icon","resetIcon","rightElement","onChange","onReset","onKeyDown"]),y=react.useMultiStyleConfig("SuiSearchInput",e),x=bt__namespace.useRef(null),[w,S]=react.useControllableState({value:o,defaultValue:n}),C=bt__namespace.useCallback(O=>{S(O.target.value);},[S]),k=bt__namespace.useCallback(O=>{O.key==="Escape"&&(S(""),$());},[p,S]),$=()=>{var O;S(""),p==null||p(),(O=x.current)==null||O.focus();},L=i==="lg"?"sm":"xs";return jsxRuntime.jsxs(react.InputGroup,{size:i,width:s,children:[jsxRuntime.jsx(react.InputLeftElement,{children:l||jsxRuntime.jsx(Ud,{})}),jsxRuntime.jsx(react.Input,d({type:"text",placeholder:r,variant:a,size:i,value:w,ref:react.useMergeRefs(t,x),sx:y.input,onChange:Ve(C,f),onKeyDown:Ve(k,m)},v)),jsxRuntime.jsx(react.InputRightElement,{children:w?jsxRuntime.jsx(react.IconButton,{onClick:$,size:L,variant:"ghost","aria-label":"Reset search",icon:c||jsxRuntime.jsx(Gd,{}),sx:y.reset}):u})]})});P5.displayName="SearchInput";var[B5,j5]=Se({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function z5(e){let{step:t,onChange:r}=e,[o,n]=bt__namespace.useState(0),i=bt__namespace.useRef([]),[,a]=bt__namespace.useState(Date.now()),s=bt__namespace.useCallback(m=>{let v=[...i.current];v.indexOf(m)===-1&&v.push(m),i.current=v,a(Date.now());},[i,a]),l=m=>{i.current=i.current.slice(i.current.indexOf(m),1);},c=m=>{let v=i.current.indexOf(m);v!==-1&&n(v);},u=()=>{n(o+1);},f=()=>{n(o-1);};return bt__namespace.useEffect(()=>{typeof t=="string"?c(t):typeof t=="number"?n(t):o===-1&&n(0);},[t]),bt__namespace.useEffect(()=>{r==null||r(o);},[o,r]),{stepsRef:i,activeStep:i.current[o],activeIndex:o,isFirstStep:o===0,isLastStep:o===i.current.length-1,isCompleted:o>=i.current.length,setIndex:n,setStep:c,nextStep:u,prevStep:f,registerStep:s,unregisterStep:l}}function F5(e){let{name:t,isActive:r,isCompleted:o}=e,{registerStep:n,unregisterStep:i,activeStep:a}=j5();return bt__namespace.useEffect(()=>{if(t)return n(t),()=>{i(t);}},[]),{isActive:t?a===t:r,isCompleted:o}}var[W5,H5]=react.createStylesContext("Stepper"),K5=react.forwardRef((e,t)=>{var r,o,n,i;let I=e,{children:a,orientation:s="horizontal",index:l,step:c,onChange:u,variant:f,colorScheme:p,size:m,stepperProps:v}=I,y=P(I,["children","orientation","index","step","onChange","variant","colorScheme","size","stepperProps"]),x=react.useMultiStyleConfig("Stepper",e),w=z5({step:c!=null?c:l,onChange:u}),{activeIndex:S}=w,C=s==="vertical",k=ky(a,Iv),$=d({position:"relative"},x.item),L=k.reduce((B,_,F,T)=>{let E=bt__namespace.cloneElement(_,b(d({key:F},_.props),{isActive:S===F,isCompleted:_.props.isCompleted||S>F}));return C?B.push(jsxRuntime.jsxs(react.chakra.div,{className:"sui-steps__item",__css:$,children:[E,jsxRuntime.jsx(uu,{isOpen:S===F,orientation:s,children:_.props.children}),F<T.length-1?jsxRuntime.jsx(react.StepSeparator,{}):null]},`content-${F}`)):B.push(E),B},[]),R=Cy(a,Lv),O=(o=(r=k[S])==null?void 0:r.props)==null?void 0:o.children,h=S>=k.length?R:!C&&O?jsxRuntime.jsx(uu,{orientation:s,children:(i=(n=k[S])==null?void 0:n.props)==null?void 0:i.children}):null;return jsxRuntime.jsx(W5,{value:x,children:jsxRuntime.jsx(B5,{value:w,children:jsxRuntime.jsxs(react.chakra.div,b(d({ref:t,__css:x.container},y),{className:A("sui-steps",e.className),children:[jsxRuntime.jsx(react.Stepper,b(d({index:S,orientation:s,variant:f,colorScheme:p,size:m},v),{children:L})),h]}))})})});K5.displayName="Steps";var Iv=e=>{let s=e,{render:t,icon:r,title:o,description:n}=s,i=P(s,["render","icon","title","description"]),a=F5(i);return t?t(d(d({},a),e)):jsxRuntime.jsxs(react.Step,{children:[jsxRuntime.jsx(react.StepIndicator,{children:jsxRuntime.jsx(react.StepStatus,{complete:jsxRuntime.jsx(react.StepIcon,{}),incomplete:jsxRuntime.jsx(react.StepNumber,{children:r}),active:jsxRuntime.jsx(react.StepNumber,{})})}),jsxRuntime.jsxs(react.Box,{flexShrink:"0",children:[jsxRuntime.jsx(react.StepTitle,{children:o}),n&&jsxRuntime.jsx(react.StepDescription,{children:n})]}),jsxRuntime.jsx(react.StepSeparator,{})]})};Iv.displayName="StepsItem";var uu=e=>{let a=e,{children:t,isOpen:r=!0,orientation:o="horizontal"}=a,n=P(a,["children","isOpen","orientation"]),i=H5();return jsxRuntime.jsx(react.chakra.div,b(d({},n),{__css:i.content,className:A("sui-steps__content",e.className),"data-orientation":o,children:o==="vertical"?jsxRuntime.jsx(react.Collapse,{in:r,style:{overflow:r?"visible":"hidden"},children:jsxRuntime.jsx(react.chakra.div,{p:"2px",children:r?t:null})}):t}))};uu.displayName="StepsContent";var Lv=e=>{let t={};return jsxRuntime.jsx(react.chakra.div,b(d({__css:t},e),{className:A("sui-steps__completed",e.className)}))};Lv.displayName="StepsCompleted";var[J5,Lo]=react.createStylesContext("SuiTimeline");var eM=react.forwardRef((e,t)=>{let i=e,{children:r}=i,o=P(i,["children"]),n=Lo();return jsxRuntime.jsx(react.chakra.li,b(d({},o),{ref:t,__css:n.item,className:A("sui-timeline__item",e.className),children:r}))});eM.displayName="TimelineItem";react.forwardRef((e,t)=>{let p=e,{icon:r,children:o,isRound:n,"aria-label":i}=p,a=P(p,["icon","children","isRound","aria-label"]),s=react.useStyleConfig("SuiIconBadge",e),l=react.omitThemingProps(a),c=r||o,u=bt.isValidElement(c)?bt.cloneElement(c,{"aria-hidden":!0,focusable:!1}):null,f=d({display:"inline-flex",alignItems:"center",justifyContent:"center"},s);return jsxRuntime.jsx(react.chakra.div,b(d({ref:t,__css:f,borderRadius:n?"full":void 0,"aria-label":i},l),{className:A("sui-icon-badge",e.className),children:u}))});var Gn=typeof window!="undefined";function hM(e,t){if(Gn&&"localStorage"in window)return t===void 0?localStorage.removeItem(e):localStorage.setItem(e,t)}function Vv(e){if(Gn&&"localStorage"in window)return localStorage.getItem(e)}var gM=e=>{try{return JSON.stringify(e)}catch(t){throw new Error("useLocalStorage: failed to serialize the value to JSON")}},yM=e=>{try{return e&&JSON.parse(e)}catch(t){return e}},vM=e=>{let t=new CustomEvent("use-local-storage",{detail:e});window.dispatchEvent(t);},Nv=(e,t,r={})=>{let{serialize:o=gM,deserialize:n=yM}=r,i=bt__namespace.default.useRef(!1),[a,s]=bt.useState(()=>{var l;return Gn?n((l=Vv(e))!=null?l:void 0):t});return bt.useEffect(()=>{let l=c=>{let u=c instanceof CustomEvent,f=u?c.detail.key:c.key,p=u?c.detail.newValue:c.newValue;(u||c.storageArea===window.localStorage)&&f===e&&s(n(p!=null?p:void 0));};return Gn&&(window.addEventListener("storage",l),window.addEventListener("use-local-storage",l)),()=>{Gn&&(window.removeEventListener("storage",l),window.removeEventListener("use-local-storage",l));}},[]),bt.useEffect(()=>{if(!i.current){i.current=!0;return}let l=o(a);Vv(e)!==l&&(hM(e,l),vM({key:e,newValue:l}));},[a]),[a===void 0?t:a,s]};var SM={black:"#0e1012",primary:{50:"#f6f7fd",100:"#dcdff5",200:"#bec3ed",300:"#9aa1e2",400:"#858edd",500:"#6b75d0",600:"#5a63af",700:"#484f8d",800:"#3d4377",900:"#2c3056"},grayAlpha:{50:"rgba(249, 249, 250, 0.5)",100:"rgba(241, 241, 243, 0.5)",200:"rgba(231, 231, 234, 0.5)",300:"rgba(211, 212, 216, 0.5)",400:"rgba(171, 172, 181, 0.5)",500:"rgba(124, 126, 139, 0.5)",600:"rgba(81, 84, 101, 0.5)",700:"rgba(52, 54, 67, 0.5)",800:"rgba(30, 32, 39, 0.5)",900:"rgba(24, 25, 31, 0.5)"},gray:{50:"#f9f9fa",100:"#f1f1f3",200:"#e7e7ea",300:"#d3d4d8",400:"#abacb5",500:"#7c7e8b",600:"#515465",700:"#343643",800:"#1e2027",900:"#18191f"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Su=SM,wM={heading:"InterVariable, sans-serif",body:"InterVariable, sans-serif"},CM={xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},TM={},kM={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},PM=kM,EM={xs:"rgb(0 0 0 / 7%) 0px 1px 1px","dark-xs":"rgb(0 0 0 / 7%) 0px 1px 1px",outline:`0 0 0 2px ${X(Su.primary[500],.6)({colors:Su})}`},$M=EM,_M={colors:{muted:{default:"gray.500",_dark:"gray.400"}}},{definePartsStyle:Uv,defineMultiStyleConfig:AM}=M(nn.keys),Bv=D("alert-fg"),jv=D("alert-bg"),wu=D("alert-border");function MM(e){let{theme:t,colorScheme:r}=e,o=X(`${r}.600`,.16)(t);return {light:`colors.${r}.100`,dark:o}}function RM(e){let{theme:t,colorScheme:r}=e,o=X(`${r}.300`,.16)(t);return {light:`colors.${r}.200`,dark:o}}var IM=Uv(e=>{let{colorScheme:t}=e,r=MM(e),o=RM(e);return {container:{borderWidth:"1px",[Bv.variable]:`colors.${t}.500`,[jv.variable]:r.light,[wu.variable]:o.light,_dark:{[Bv.variable]:`colors.${t}.500`,[jv.variable]:r.dark,[wu.variable]:o.dark}}}}),LM=Uv(()=>({container:{borderColor:wu.reference,borderRadius:"md",fontSize:"sm"},icon:{w:4,h:5},title:{fontSize:"sm",fontWeight:"medium"},description:{color:"muted"}})),OM=AM({defaultProps:{size:"sm",colorScheme:"primary"},baseStyle:LM,variants:{subtle:IM}}),Yv=e=>{let{colorScheme:t,colorMode:r}=e,o=`${t}.500`,n=`${t}.600`;return t==="neutral"&&r==="dark"?(o="white",n="whiteAlpha.800"):t==="neutral"&&(o="black",n="blackAlpha.800"),{borderWidth:"1px",borderColor:o,boxShadow:"xs",bg:o,color:"white",fontWeight:"medium",_hover:{borderColor:n,bg:n},_dark:{boxShadow:"dark-xs"}}},DM=e=>({fontWeight:"medium",_checked:{bg:"blackAlpha.100"},_dark:{_checked:{bg:"whiteAlpha.100"}}}),VM=e=>{let{colorScheme:t}=e;return t==="gray"?{fontWeight:"medium"}:{fontWeight:"medium",color:`${t}.500`,_hover:{color:`${t}.400`,bg:"blackAlpha.50"},_dark:{color:`${t}.500`,_hover:{color:`${t}.400`,bg:"whiteAlpha.50"}}}},NM=e=>Yv(b(d({},e),{colorScheme:"primary"})),BM={borderWidth:"1px",borderColor:"gray.200",boxShadow:"xs",bg:"white",fontWeight:"medium",color:"inherit",_hover:{borderColor:"gray.300",bg:"gray.50"},_dark:{boxShadow:"dark-xs",borderColor:"gray.600",bg:"gray.700",_hover:{borderColor:"gray.500",bg:"gray.600"}}},jM={borderWidth:"1px",borderColor:"gray.200",bg:"gray.200",color:"black",fontWeight:"medium",_hover:{borderColor:"gray.300",bg:"gray.200"},_dark:{borderColor:"gray.700",bg:"gray.700",color:"white",_hover:{borderColor:"gray.600"}}},zM={lg:{h:"8",minW:"10",fontSize:"md",px:"4",rounded:"6"},md:{h:"7",minW:"8",fontSize:"sm",px:"3",rounded:"4"},sm:{h:"6",minW:"6",fontSize:"sm",px:"2",rounded:"3"},xs:{h:"5",minW:"4",fontSize:"xs",px:"1",rounded:"3"}},FM={defaultProps:{size:"md",variant:"secondary"},variants:{solid:Yv,outline:VM,ghost:DM,primary:NM,secondary:BM,tertiary:jM},sizes:zM},qv=N("card").parts("container","header","title","subtitle","body","footer"),{definePartsStyle:js}=M(qv.keys),WM=D("card-bg"),yu=D("card-padding"),HM=D("card-shadow"),vu=D("card-radius"),KM=D("card-border-width","0"),Ds=D("card-border-color"),GM={sm:js({container:{[vu.variable]:"radii.base",[yu.variable]:"space.3"}}),md:js({container:{[vu.variable]:"radii.md",[yu.variable]:"space.4"}}),lg:js({container:{[vu.variable]:"radii.xl",[yu.variable]:"space.6"}})},zv=js(e=>{let{isHoverable:t}=e;return {container:{[Ds.variable]:"colors.blackAlpha.200",[KM.variable]:"1px",[HM.variable]:"shadows.sm",_hover:t?{[Ds.variable]:"colors.blackAlpha.300"}:{},_dark:{[WM.variable]:"colors.gray.700",[Ds.variable]:"colors.whiteAlpha.50",_hover:t?{[Ds.variable]:"colors.whiteAlpha.300"}:{}}}}}),UM={parts:qv.keys,defaultProps:{variant:"elevated"},variants:{elevated:zv,shadow:zv},sizes:GM},YM={baseStyle:e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}},qM={size:"sm"},XM={defaultProps:qM},{defineMultiStyleConfig:ZM,definePartsStyle:JM}=M(xl.keys),Fv=D("drawer-bg"),QM={bg:"blackAlpha.50"},eR=e=>({borderRadius:"md",margin:"8px",borderWidth:"1px",borderColor:"chakra-border-color",backdropFilter:"blur(10px) contrast(100%) saturate(100%) brightness(200%)",[Fv.variable]:"colors.whiteAlpha.800",fontSize:"md",_dark:{backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)",[Fv.variable]:"colors.grayAlpha.700"}}),tR={px:"4",py:"3",fontSize:"md",fontWeight:"semibold"},rR={position:"absolute",top:"2",insetEnd:"3"},oR=e=>({px:"4",py:"2"}),nR={px:"3",py:"3"},iR=JM(e=>({overlay:QM,dialog:ue(eR,e),header:tR,closeButton:rR,body:ue(oR,e),footer:nR})),aR=ZM({baseStyle:iR}),sR=aR,lR={defaultProps:{size:"lg"}},bu=D("kbd-bg"),cR={[bu.variable]:"colors.blackAlpha.300",_dark:{[bu.variable]:"colors.whiteAlpha.300"},bg:bu.reference,borderRadius:"md",borderWidth:"0",borderBottomWidth:"0",padding:"1px",minW:"20px",textAlign:"center",":last-child":{mr:0}},uR={defaultProps:{variant:"solid"},baseStyle:cR},fR=uR,{defineMultiStyleConfig:dR,definePartsStyle:pR}=M(an.keys),Je=D("menu-bg"),xu=D("menu-shadow"),mR={[Je.variable]:"colors.whiteAlpha.500",[xu.variable]:"shadows.lg",backdropFilter:"blur(10px) contrast(100%) saturate(190%)",_dark:{[Je.variable]:"colors.grayAlpha.700",[xu.variable]:"shadows.dark-lg",backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)"},py:"1",borderRadius:"md",borderWidth:"1px",bg:Je.reference,boxShadow:xu.reference},hR={py:"1.5",px:"3",mx:"1",rounded:"md",fontSize:"sm",width:"calc(100% - 8px)",boxSizing:"border-box",bg:"transparent",_hover:{bg:Je.reference,[Je.variable]:"colors.grayAlpha.300"},_focus:{bg:Je.reference,[Je.variable]:"colors.grayAlpha.300"},_active:{bg:Je.reference,[Je.variable]:"colors.grayAlpha.300"},_expanded:{bg:Je.reference,[Je.variable]:"colors.grayAlpha.300"}},gR={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},yR={transitionProperty:"common",transitionDuration:"normal"},vR={my:"1"},bR=pR({button:yR,list:mR,item:hR,groupTitle:gR,divider:vR}),xR=dR({baseStyle:bR}),SR=xR,{defineMultiStyleConfig:wR,definePartsStyle:CR}=M(sn.keys),TR={bg:"blackAlpha.50"},kR=e=>({bg:"whiteAlpha.800",backdropFilter:"blur(10px) contrast(100%) saturate(100%) brightness(200%)",fontSize:"md",_dark:{bg:"grayAlpha.700",boxShadow:"dark-lg",backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)"}}),PR={px:"4",py:"3",fontSize:"md",fontWeight:"semibold"},ER={position:"absolute",top:"2",insetEnd:"3"},$R=e=>({px:"4",py:"2"}),_R={px:"3",py:"3"},AR=CR(e=>({overlay:TR,dialog:ue(kR,e),header:PR,closeButton:ER,body:ue($R,e),footer:_R})),MR=wR({baseStyle:AR,defaultProps:{size:"md"}}),RR=MR,{defineMultiStyleConfig:IR}=M(ln.keys),LR=IR({defaultProps:{colorScheme:"primary"},baseStyle:e=>{let{colorScheme:t}=e;return {track:{borderRadius:"md",bg:"gray.200",_dark:{bg:"gray.800"}},filledTrack:{bg:`${t}.500`}}}}),{defineMultiStyleConfig:OR,definePartsStyle:DR}=M(wl.keys),Vs=D("popper-bg"),VR=D("popper-arrow-bg"),Wv=D("popper-arrow-shadow-color"),NR={[Vs.variable]:"colors.whiteAlpha.800",bg:Vs.reference,[VR.variable]:Vs.reference,[Wv.variable]:"colors.gray.200",backdropFilter:"blur(10px) contrast(100%) saturate(100%) brightness(200%)",_dark:{[Vs.variable]:"colors.grayAlpha.700",[Wv.variable]:"colors.whiteAlpha.300",backdropFilter:"blur(10px) saturate(190%) contrast(70%) brightness(80%)"}},BR=DR(e=>({content:ue(NR,e)})),jR=OR({baseStyle:BR,defaultProps:{size:"md"}}),zR=jR,FR={baseStyle:e=>{let{colorScheme:t}=e;return {control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}},WR={defaultProps:{colorScheme:"primary"},baseStyle:e=>{let{colorScheme:t}=e;return {filledTrack:{bg:`${t}.500`}}}},{defineMultiStyleConfig:HR,definePartsStyle:KR}=M(cn.keys),Un=Xe("switch-bg"),GR=e=>{let{colorScheme:t}=e;return {[Un.variable]:"colors.gray.300",_dark:{[Un.variable]:"colors.whiteAlpha.300"},_checked:{[Un.variable]:`colors.${t}.500`,_dark:{[Un.variable]:`colors.${t}.500`}},bg:Un.reference}},UR={bg:"white",_dark:{bg:"blackAlpha.800",_checked:{bg:"white"}}},YR=KR(e=>({track:GR(e),thumb:UR})),qR=HR({baseStyle:YR,defaultProps:{size:"md",colorScheme:"primary"}}),XR=qR,Ns=Xe("tooltip-bg"),Hv=Xe("tooltip-fg"),ZR=Xe("popper-arrow-bg"),JR=e=>({display:"flex",[Ns.variable]:"colors.white",[Hv.variable]:"colors.blackAlpha.900",_dark:{[Ns.variable]:"colors.gray.700",[Hv.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[Ns.reference],[ZR.variable]:[Ns.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),QR={baseStyle:JR},{definePartsStyle:e3}=M(Zt.keys);function t3(e){let{focusBorderColor:t,errorBorderColor:r}=e;return {focusBorderColor:t||ee("blue.500","blue.300")(e),errorBorderColor:r||ee("red.500","red.300")(e)}}var Kv=D("input-border-radius"),Bs=D("input-height"),Gv=D("input-padding"),Xv=e3(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=t3(e);return {field:{border:"1px solid var(--chakra-colors-chakra-border-color)",bg:"inherit",_hover:{borderColor:"gray.300"},_invalid:{borderColor:ce(t,o),boxShadow:"none"},_focusVisible:{zIndex:1,borderColor:ce(t,r),boxShadow:"none"},_dark:{bg:"gray.900",borderColor:"chakra-border-color",_hover:{borderColor:"whiteAlpha.400"},_invalid:{borderColor:ce(t,o)},_focusVisible:{borderColor:ce(t,r)}}},addon:{borderColor:"inherit",bg:"gray.100",_dark:{borderColor:"whiteAlpha.50",bg:"whiteAlpha.300"}}}}),Zv={sm:{field:{[Kv.variable]:"radii.sm",[Bs.variable]:"sizes.7"},addon:{[Kv.variable]:"radii.sm",[Bs.variable]:"sizes.7"}},md:{field:{[Gv.variable]:"space.3",[Bs.variable]:"sizes.9"},addon:{[Gv.variable]:"space.3",[Bs.variable]:"sizes.9"}}},Jv={defaultProps:{variant:"outline",size:"sm",focusBorderColor:"primary.500"},variants:{outline:Xv},sizes:Zv},r3={baseStyle:{mb:1},variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},Cu=Jv,o3=Jv,n3={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:Xv},sizes:Zv},i3={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,r;return (r=(t=Cu.variants)==null?void 0:t.outline(e).field)!=null?r:{}}}},a3=Cu,s3={Alert:OM,Button:FM,Card:UM,Checkbox:YM,CloseButton:XM,Drawer:sR,Heading:lR,Kbd:fR,Menu:SR,Modal:RR,Progress:LR,Popover:zR,Radio:FR,Slider:WR,Switch:XR,Tooltip:QR,Input:Cu,PinInput:n3,FormLabel:r3,NumberInput:o3,Select:a3,Textarea:i3},Qv=react.extendTheme({colors:Su,fonts:wM,fontSizes:CM,textStyles:TM,sizes:PM,components:s3,shadows:$M,semanticTokens:_M},react.withDefaultColorScheme({colorScheme:"primary",components:["Radio","Switch","Checkbox"]}));var u3=react.extendTheme(Qv,bn),f3=()=>{let[e,t]=Nv("storybook.theme","1");return bt__namespace.useEffect(()=>{let r=previewApi.addons.getChannel(),o=n=>{t(n);};return r.on(ct.SET_THEME,o),()=>{r.removeListener(ct.SET_THEME,o);}},[t]),e},GZ=previewApi.makeDecorator({name:"ChakraProviderDecorator",parameterName:"chakra",skipIfNoParametersOrOptions:!1,wrapper:(e,t,{parameters:r})=>{let {parameters:{saasui:o},globals:{[Vu]:n}}=t,i=f3(),a=bt__namespace.useCallback(()=>{switch(i){case"1":return bn;case"2":return u3;default:return zl}},[i]),s=(o==null?void 0:o.theme)||a();!!(o!=null&&o.theme);let c=o!=null&&o.theme?typeof o.theme=="function"?o.theme(t):o.theme:s,u=ju(n||(c==null?void 0:c.direction)),f=bt__namespace.useMemo(()=>react.extendTheme({direction:u,styles:{global:{body:{minHeight:"var(--chakra-vh)"}}}},c),[c,u]);return jsxRuntime.jsxs(Jy,b(d({},o),{theme:f,children:[jsxRuntime.jsx(Nu,{}),e(t)]}))}});/*! Bundled license information:
|
37
37
|
|
38
38
|
react-is/cjs/react-is.production.min.js:
|
39
39
|
(** @license React v16.13.1
|
@@ -46,6 +46,6 @@ react-is/cjs/react-is.production.min.js:
|
|
46
46
|
*)
|
47
47
|
*/
|
48
48
|
|
49
|
-
exports.ChakraProviderDecorator =
|
49
|
+
exports.ChakraProviderDecorator = GZ;
|
50
50
|
//# sourceMappingURL=out.js.map
|
51
51
|
//# sourceMappingURL=ChakraProviderDecorator.js.map
|